Resource flow balancing strategy method for generative artificial intelligence in computing power network
By constructing a hierarchical tree structure and fluid model, combined with a diffusion model, the revenue and service strategies of computing power nodes are dynamically adjusted to solve the problem of resource flow balance in the computing power network and achieve efficient resource utilization and content generation.
Patent Information
- Application Number
- CN202410801781.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-27
AI Technical Summary
In computing power networks, it is difficult for existing technologies to achieve a balanced flow of resources in a dynamic environment, resulting in low resource utilization efficiency and reduced content generation efficiency. Moreover, traditional methods cannot effectively capture the liquidity of computing power resources and resources in complex multi-dimensional spaces. benefit.
Analyze information entropy by building a hierarchical tree structure, establish a fluid model and a diffusion model, dynamically adjust the income and service strategies of computing power nodes, maximize average social welfare, and use fluid stop equilibrium strategies and diffusion models to optimize resource flow.
It achieves cost-effective access to computing resources in a dynamic environment, effectively alleviates the continuity of computing resources and resource efficiency problems in multi-dimensional states, and improves the efficiency of content generation and resource utilization.
Smart Images

Figure CN118708342A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence, and in particular to a resource flow balancing strategy method for generative artificial intelligence in a computing network. Background Art
[0002] Recently, artificial intelligence (AIGC) has represented a groundbreaking approach to generating, altering, and refining large amounts of data, marking a significant advance in the field of content creation and processing. AIGC makes it feasible to create content by learning from big data, which relies heavily on large-scale artificial intelligence (AI) models. These AI models contain billions to trillions of training parameters, so the demand for computing resources is growing exponentially. Recently, the frequent downtime caused by the surge in ChatGPT user traffic reflects ChatGPT's high dependence on computing resources. In order to alleviate the ubiquitous demand for computing power, computing power networks (CPNs) are emerging as a new computing paradigm. CPNs integrate a large amount of computing power resources in decentralized infrastructures such as cloud centers, network edges, and computing power nodes into a virtual network to form a computing power pool to improve computing performance. In CPNs, nodes with computing power resources have the ability to provide or consume resources.
[0003] By dynamically adjusting the inflow and outflow of resources, CPNs can effectively support complex and computationally intensive AIGC computing tasks in highly dynamically changing environments. Figure 1 The CPNs architecture supporting AIGC is presented, including the user layer, service provider layer, and CPNs layer. Specifically, the user submits the AIGC request to the service provider layer, the service provider layer purchases computing power services from the CPNs layer, and the CPNs layer provides services to the service provider layer. The main focus is on the problem of the CPNs layer: how to maintain a balanced flow of resources in a dynamic environment to provide accurate and real-time services. The existing technology has the following disadvantages:
[0004] Uncertainty in the value of the requested information. The quality of the request plays a crucial role in the quality of the generated content. Uncertainty and immeasurable request quality reduce the efficiency of content generation, increase the difficulty of model reasoning, and lead to inefficient use of computing resources.
[0005] The continuity of computing power resources cannot be expressed. Due to the high variability of computing power demand, computing power resources are changing rapidly, showing strong continuity close to a fluid state. However, traditional discrete methods cannot capture the fluidity of computing power resources in a timely manner. The inaccurate representation of computing power resources leads to a reduction in the accuracy of resource benefits.
[0006] It is impossible to represent complex multi-dimensional spaces. In order to obtain the best solution for resource efficiency, traditional methods consider using deep reinforcement learning (DRL) algorithms, which need to interact with the environment to learn effectively. With the increasing emphasis on resource continuity, DRL algorithms have encountered challenges in adapting to highly dynamic environmental conditions and potential continuous fluctuations. Summary of the invention
[0007] The purpose of the present invention is to provide a resource flow balancing strategy method for generative artificial intelligence in a computing power network, to achieve economical and efficient access to computing power resources, and to dynamically adjust system strategies to maximize the average social welfare of the CPNs layer.
[0008] To achieve the above-mentioned purpose, the present invention provides a resource flow balancing strategy method for generative artificial intelligence in a computing network, comprising:
[0009] Analyze user information content and establish a hierarchical tree structure, and obtain information entropy through the hierarchical tree structure to analyze resource consumption;
[0010] Build a fluid model to obtain the revenue per unit of computing power node based on resource consumption and energy consumption;
[0011] Analyze the average social benefit based on the income of each unit of computing power node, and obtain the maximized average social welfare based on the average social benefit;
[0012] A diffusion model is constructed to solve the optimization problem of maximizing average social welfare.
[0013] Preferably, the user information content is analyzed and a hierarchical tree structure is established, and the information entropy is obtained through the hierarchical tree structure to analyze resource consumption, including
[0014] The variable G expressing the user request is discrete, and a request g of a specified user is j Input to the constructed tree, g j The probability of falling into a certain layer in the tree is P gj , the metric of a user AIGC request G in CPNs is defined as the information entropy H G :
[0015]
[0016] Where N is the number of discrete variables in the user request set G, and P is specified gj ∈[0.5,1), the number of layers of the tree is n∈[1,+∞), request P gj Falling on layer n'∈[0,n-1], g j Falling on a certain layer in the tree, it is derived as
[0017]
[0018] The unit price of resources consumed per bit of information entropy is defined as C 2 , so the resource cost for each user is
[0019] W=C 2 H G .
[0020] Preferably, a fluid model is constructed to obtain the income per unit computing power node based on resource consumption and energy consumption, including
[0021] X(t) represents the level of the hash pool at time t, V represents the adjustment threshold, and when X(t)≤V, the service rate of the hash pool is expressed as u 0 , when X(t)>V, the computing power pool appropriately increases the service rate, expressed as u 1 ,u 1 >u 0 >0;
[0022] The vacation and work cycle of the computing power pool is subject to the parameter q 0 and q 1 The exponential distribution of these two parameters is independent and interlaced. In the working state, if there is no fluid flowing in or the liquid level X(t) = 0, the computing pool is in an idle state. When the working state ends, even if there is still fluid in the computing pool, it will enter the vacation state. The state of the computing pool is expressed as Γ(t):
[0023]
[0024] In the flow model with threshold regulation, the arrival rate of the fluid follows an exponential distribution with parameter λ, while the service rate is a piecewise constant function in the computing pool. The waiting capacity of CPNs is infinite. The process dynamics equation for recording the liquid level of the computing pool in state Γ(t) at time t is
[0025]
[0026] Among them, (λ-u 0 ) + =max{λ-u 0 ,0}, the binary process {X(t),Γ(t)} is a Markov process. Based on the alternating update process, the steady-state distribution of Γ(t) {w i ,i=0,1} is
[0027]
[0028] The state of the computing power pool when the fluid arrives is (x, i). In order to evaluate the expected income when the fluid flows in, the income per unit computing power node is defined as
[0029] Φ(x,i)=R-αC 1 E(S(x,i))-βW
[0030] Where R is the revenue per unit of fluid when the service is completed, C 1 is the energy cost for waiting for service, S(x,i) represents the waiting service time of the fluid in CPNs when the observed liquid level is x and the state of the computing pool is i, α represents the weight coefficient of energy cost, β represents the weight coefficient of resource cost, in order to ensure that the fluid flows into the computing pool when x=0, it is stipulated
[0031] Preferably, the energy consumption is solved as follows:
[0032] Analyze the stop equilibrium strategy of fluid;
[0033] According to the fluid stop balance strategy, when the computing power pool is in state i, the steady-state distribution of the liquid level is analyzed;
[0034] The steady-state distribution of the fluid level is analyzed according to the steady-state distribution of the liquid surface, and the average fluid level is obtained according to the LaplaceStieltjes transformation of the steady-state distribution of the fluid level.
[0035] Preferably, the fluid stopping equilibrium strategy is analyzed, including that when Φ(x,i)>0, the fluid strictly tends to flow into the calculation pool, and when Φ(x,i)<0, it tends to be rejected, and when Φ(x,i)=0, the fluid stopping equilibrium strategy is obtained:
[0036]
[0037] In the formula, x * (0) is the stopping strategy value when the fluid level is not higher than the threshold and the system is in state 0, x * (1) is the stopping strategy value when the fluid level is not higher than the threshold and the system is in state 1, y * (0) is the stopping strategy value when the fluid level is higher than the threshold and the system is in state 0, y * (1) is the stopping strategy value when the system is in state 1 when the fluid level is higher than the threshold;
[0038] Observe (X(t),Γ(t)) at time t. When x≤V, X(t) <x * (Γ(t)), the fluid flows in, otherwise it stops, and when x>V and X(t) <y * (Γ(t)) when the fluid enters, otherwise the fluid stops.
[0039] Preferably, according to the fluid stop balance strategy, when the computing power pool state is i, the liquid level steady-state distribution includes
[0040]
[0041] In the formula, H i is the steady-state distribution of the liquid surface, P r For probability, all computing nodes in CPNs follow the stopping strategy, and five steady-state fluid distribution situations emerge based on the relationship between λ and service rate:
[0042] Case 1: u 1 >u 0 >λ, depending on the size of the control threshold V, the fluid has two steady-state situations.
[0043] (1) When x * (0)≤V,
[0044]
[0045] in, The probability value at the jump discontinuity point and the probability density under different system states are:
[0046]
[0047] Where P 0 (x * (0)) is the jump discontinuity point when the system state is 0 and is x * The probability value of (0), P 1 (x * (0)) is the jump discontinuity point x when the system state is 1 * The probability value of (0), P 1 (0) is the probability value of the jump discontinuity point being 0 when the system state is 0, h 0 (x) is the probability density when the system state is 0, h 1 (x) is the probability density when the system state is 1;
[0048] (2) When x * (0)>V,
[0049]
[0050] in The probability value at the jump discontinuity point and the probability density under different system states are:
[0051]
[0052] In the formula, Q 0 (V) is the probability value of the jump discontinuity point being V, Q 1 (V) is the probability value of the jump discontinuity point being V, Q 1 (y *(0)) is the jump discontinuity point y * The probability value of (0), Q 0 (y * (0)) is the jump discontinuity point y * The probability value of (0);
[0053] Case 2: u 1 >u 0 =λ, there are two steady-state situations for the fluid:
[0054] When x * (0)≤V, the fluid level is maintained at x * (0) unchanged, when x * (0)>V, the steady-state distribution of the fluid is
[0055]
[0056] The probability value at the jump discontinuity point and the probability density under different system states are:
[0057]
[0058] Where q(V) is the probability value of the jump discontinuity point being V;
[0059] Case 3: u 1 >λ>u 0 , there are two steady-state situations for the fluid:
[0060] When x * (0)≤V, the fluid level is maintained at x * (0) unchanged, when x * When (0)>V, the fluid level remains unchanged at V;
[0061] Case 4: u 1 =λ>u 0 There are three steady-state situations for the fluid: * (1)≤V, the fluid level is maintained at x * (1) unchanged, when x * (0)≤V <x * (1), the fluid level remains constant at V, when x * (0)>V, the fluid level is maintained at y * (0) unchanged;
[0062] Case 5: λ>u 1 >u 0 There are two steady-state situations for the fluid: when x * (0)≤V, the fluid level is maintained at x * (1) unchanged, when x *(0)>V, the fluid level is maintained at y * (1) No change.
[0063] Preferably, the steady-state distribution of the fluid level is analyzed according to the steady-state distribution of the liquid surface, and the average fluid level is obtained according to the Laplace Stieltjes transformation of the steady-state distribution of the fluid level, including:
[0064] Analyze the steady-state distribution of fluid level based on the steady-state distribution of liquid surface
[0065] H(x)=Pr{X(t)≤x}=H 0 (x)+H 1 (x)
[0066] Where H 0 (x) and H 1 The values of the two states (x) are added to obtain H(x) as the steady-state probability distribution of the fluid level. In order to obtain the average fluid level E(X), the Laplace Stieltjes transformation of the steady-state distribution of the fluid level is used to obtain the average fluid level:
[0067]
[0068] Where s is the complex frequency, there are five cases of average fluid level:
[0069] Case 1: u 1 >u 0 >λ, when x * When (0)≤V, the steady-state distribution of the fluid is
[0070]
[0071] The corresponding Laplace Stieltjes transform is
[0072]
[0073] The average fluid level is
[0074]
[0075] When x * (0)>V, the steady-state distribution of the fluid is
[0076]
[0077] The corresponding Laplace Stieltjes transform is
[0078]
[0079] The average fluid level is
[0080]
[0081] Case 2: u 1 >u 0 =λ, there are two steady-state situations for the fluid:
[0082] When x * (0)≤V, the average fluid level E(X)=x * (0), when x * (0)>V, the steady-state distribution of the fluid is
[0083]
[0084] The corresponding Laplace Stieltjes transform is
[0085]
[0086] The average fluid level is
[0087]
[0088] Case 3: u 1 >λ>u 0 , when x * (1)≤V, the average fluid level E(X)=x * (1), when x * (1)>V, the average fluid level E(X) = V;
[0089] Case 4: u 1 =λ>u 0 , when x * (1)≤V, the average fluid level E(X)=x * (1); when x * (0)≤V <x * (1), the average fluid level E(X) = V; when x * (0)>V, the average fluid level E(X)=y * (0);
[0090] Case 5: λ>u 1 >u 0 , when x * (0)≤V, the average fluid level E(X)=x * (1); when x * (0)>V, the average fluid level E(X)=y * (1).
[0091] Preferably, the average social benefit is analyzed based on the income of each unit computing power node, and the average social welfare is maximized based on the average social benefit, which specifically includes
[0092] First, define the average social benefit as:
[0093] B(x * (0),x * (1),y * (0),y * (1)) = λ e (R-βW)-αC 1 E(X)
[0094] Among them, B(x * (0),x * (1),y * (0),y * (1)) is the average social benefit, λ e is the effective arrival rate, and the average social benefit includes five situations:
[0095] Case 1: u 1 >u 0 >λ,
[0096]
[0097] Case 2: u 1 >u 0 =λ,
[0098]
[0099] Case 3: u 1 >λ>u 0 ,
[0100]
[0101] Case 4: u 1 =λ>u 0 ,
[0102]
[0103] Case 5: λ>u 1 >u 0 ,
[0104]
[0105] Therefore, according to the average social benefit, the maximum average social welfare is obtained:
[0106]
[0107] stC1:0 0 1
[0108] C2:λ,q 0 ,q 1 >0.
[0109] Preferably, a diffusion model is constructed, specifically including
[0110] The forward diffusion chain gradually introduces a series of noise coefficients {δ 1 ,δ 2 ,...δ T} is used as a Markov chain to train the data, and the forward step is defined as:
[0111]
[0112] Among them, Q t (·) represents the forward process, t is the step size, η t represents diffusion data, η t-1 represents the diffusion data at step t-1, q(η t |η t-1 ) represents the forward step t of the diffusion model, represents normal distribution, δ t represents the t-step noise coefficient, I represents the identity matrix, and the forward process is
[0113]
[0114] Where η 0 represents the 0-step diffusion data, δ represents the noise parameter, q(η 1:T |η 0 ) represents the repeated application q from time 1 to T;
[0115] After training, samples are extracted from the diffusion model and used to perform a reverse diffusion chain from t = T to t = 0; the inverse process of the Gaussian transformation parameterized by θ is:
[0116]
[0117] Among them, A t (·) and p θ (η t-1 |η t ) represent the tth reverse step and the reverse diffusion step respectively; μ θ (η t ,t)、∑ θ μ θ (η t , t) represent the mean and variance coefficient of the reverse step, respectively.
[0118] Preferably, the optimization problem of maximizing average social welfare is solved, which includes
[0119] Set the threshold V and unit energy cost C 1 and arrival rate λ are considered as environmental variables and expressed as π(t)={V,C 1 ,λ}, at time t, the action a(t) in the given environment is = {u 0 ,u 1 ,q 0 ,q 1}, the diffusion network maps the environmental state to social welfare as an action guidance strategy, i.e. The parameter of the reverse diffusion chain is θ, and the process is defined as
[0120]
[0121] Among them, p θ (a(t-1)|a(t),π(t)) is modeled as a Gaussian distribution μ θ (a(t),π(t),t),∑ θ (a(t),π(t),t)),∑ θ (a(t),π(t),t)=ρ t I is the coefficient of variance of the reverse step
[0122]
[0123] In the formula, ρ t represents the variance parameter, m represents the variable, so the task of training the optimal average social welfare policy in a complex high-dimensional environment is transferred to the training policy generation network ∈ θ When t=1,∈ θ Set to 0;
[0124] Define a utility evaluation network Q to train ∈ θ , and use the network Q to evaluate the actions resulting from the expected cumulative welfare, the optimal strategy Aims to maximize expected average social welfare
[0125]
[0126] In the formula, represents the loss function, Represents action guidance strategy;
[0127] The judgment network using the double Q-learning method involves two networks Q1, Q2 and their target networks Q1', Q2' and Optimize network metrics by maximizing objectives
[0128] Where r(π(t), a(t)) represents the buffer under (π(t), a(t)), γ represents the discount factor, and a 0 (t+1) represents the guiding strategy, represents the target network under this strategy, Represents the critic network under the guidance strategy.
[0129] Therefore, the present invention adopts the above-mentioned resource flow balancing strategy method of generative artificial intelligence in a computing network, and the technical effects are as follows:
[0130] (1) As the starting point of content generation, AIGC requests play a vital role in achieving the expected results. Information entropy is introduced to measure the information value of AIGC requests. By building a tree structure to analyze the core information contained in the request, economical and efficient computing resource access is achieved.
[0131] (2) The process of computing power nodes dynamically flowing into the computing power pool is regarded as "water flow", so that its continuity is modeled through the flow model. In addition, a congestion control threshold is introduced to adjust the service rate, which effectively alleviates queue congestion. A fluid stop balancing strategy is proposed, and the average fluid level in the computing power pool is obtained based on the Laplace-Stieltjes transform.
[0132] (3) Considering the complex multidimensional state and action space in CPNs, a diffusion-based resource flow balancing algorithm is developed to dynamically adjust the system strategy to maximize the average social welfare of CPNs. BRIEF DESCRIPTION OF THE DRAWINGS
[0133] Figure 1 AIGC architecture assisted by CPNs;
[0134] Figure 2 The status of the hash pool;
[0135] Figure 3 To explore equilibrium strategies based on diffusion models;
[0136] Figure 4 is the utility of information entropy;
[0137] Figure 5 The benefits of the service rate parameters for the flow model;
[0138] Figure 6 The benefits of the flow model period parameters;
[0139] Figure 7 For the welfare comparison under different learning rates, Figure 7(a) is the welfare comparison when Actor-lr = 1e-3, Actor-lr = 1e-5, and Actor-lr = 1e-6. Figure 7 (b) is the welfare comparison under the conditions of Actor-lr=1e-4, Actor-lr=1e-5, and Actor-lr=1e-7;
[0140] Figure 8 For the welfare comparison of different algorithms, Figure 8 (a) for the benefits of SAC, PPO and this method, Figure 8 (b) Greedy, Random and this method are the strategic benefits. DETAILED DESCRIPTION
[0141] The technical solution of the present invention is further described below through the accompanying drawings and embodiments.
[0142] Unless otherwise defined, technical or scientific terms used in the present invention shall have the common meanings understood by one having ordinary skills in the field to which the present invention belongs.
[0143] Embodiment 1
[0144] In the present invention, the generative artificial intelligence architecture in the computing power network includes three participants. 1) User: an individual or entity that initiates a request to be executed. 2) Service provider: acts as an intermediary between the user and CPNs, such as an AIGC application. 3) CPNs: This entity is responsible for processing the user AIGC service entrusted by the service provider. In CPNs, there are a large number of computing power nodes that dynamically participate in the process of flowing in and out of the computing power pool. The participation of the computing power nodes depends on their rewards, represented by Φ. In the computing power pool, each unit of fluid will receive a benefit R when the service is completed. However, this benefit is also accompanied by the energy cost C used to wait for the service. 1 and the resource cost W for information entropy analysis per unit time. The goal is to maximize the average social welfare of CPNs.
[0145] Step 1: Analyze user information content and establish a hierarchical tree structure. Obtain information entropy through the hierarchical tree structure to analyze resource consumption
[0146] The information content is analyzed by clustering method and a hierarchical tree structure is established, which is the basis for calculating information entropy. Specifically, the variable G expressing the user request is discrete. j Input to the constructed tree, g j The probability of falling into a certain layer in the tree is P gj Referring to the definition of Shannon entropy, the measure of a user AIGC request G in CPNs is defined as information entropy H G :
[0147]
[0148] Where N is the number of discrete variables in the user request set G, and P is specified gj ∈[0.5,1). Assuming the number of layers of the tree is n∈[1,+∞), request P gj The probability of falling on layer n'∈[0,n-1] can be derived as
[0149]
[0150] The unit price of resources consumed per bit of information entropy is defined as C 2 Therefore, the resource cost of each user is W = C 2 H G .
[0151] Step 2: Build a fluid model to obtain the revenue per unit computing power node based on resource consumption and energy consumption
[0152] Not all computing nodes flow into the computing pool to provide resources. Therefore, a threshold-regulated fluid queue is considered to represent nodes that wish to flow into the computing pool to provide resources.
[0153] like Figure 2 As shown in the figure, two states of the computing power pool are shown. X(t) represents the liquid level of the computing power pool at time t, and V represents the adjustment threshold. When X(t)≤V, the service rate of the computing power pool is expressed as u 0 (i.e. slow service rate), when X(t)>V, the computing power pool appropriately increases the service rate, expressed as u 1 (i.e. fast service rate), u 1 >u 0 >0. The vacation and work cycle of the computing power pool are subject to the parameter q 0 and q 1 The exponential distribution of , these two parameters are independently staggered. If there is no fluid flowing in the working state or the liquid level X(t) = 0, the computing pool is in an idle state. When the working state ends, even if there is still fluid in the computing pool, it will enter the vacation state. The state of the computing pool is expressed as Γ(t):
[0154]
[0155] In the flow model with threshold regulation, the arrival rate of the fluid (i.e., the inflow rate) follows an exponential distribution with parameter λ, while the service rate (i.e., the outflow rate) is a piecewise constant function in the computing pool. Assuming that the waiting capacity of CPNs is infinite, the process dynamics equation that records the liquid level of the computing pool in state Γ(t) at time t is
[0156]
[0157] where (λ-u 0 ) + =max{λ-u 0 ,0}. The binary process {X(t),Γ(t)} is a Markov process. Based on the alternating update process, the steady-state distribution of Γ(t) {w i ,i=0,1} is
[0158]
[0159] Fluid is strategic, and when it arrives, it decides whether to flow into the computing pool, which depends on its expected income. The decision of fluid is irreversible. Assume that the state of the computing pool when the fluid arrives is (x,i). In order to evaluate the expected income when it flows in, the income per unit computing power node is defined as Φ(x,i)=R-αC 1 E(S(x,i))-βW.
[0160] Where r is the revenue per unit of fluid when the service is completed, C 1 is the energy cost for waiting for service, S(x,i) represents the waiting service time of the fluid in CPNs when the observed fluid level is x and the state of the computing pool is i. α represents the weight coefficient of energy cost, and β represents the weight coefficient of resource cost. In order to ensure that the fluid flows into the computing pool when x=0, it is specified
[0161] Step 2.1: Analyze the fluid's stopping equilibrium strategy
[0162] In addition, when Φ(x,i)>0, the fluid strictly tends to flow into the computing pool, while Φ(x,i)<0, it tends to reject. When Φ(x,i)=0, the fluid stop equilibrium strategy is obtained:
[0163]
[0164] In the formula, x * (0) is the stopping strategy value when the fluid level is not higher than the threshold and the system is in state 0, x * (1) is the stopping strategy value when the fluid level is not higher than the threshold and the system is in state 1, y * (0) is the stopping strategy value when the fluid level is higher than the threshold and the system is in state 0, y * (1) is the stopping strategy value when the system is in state 1 when the fluid level is higher than the threshold;
[0165] When (X(t),Γ(t)) is observed at time t, when x≤V, if X(t) <x * (Γ(t)), the fluid flows in, otherwise it stops, and when x>V and X(t) <y* (Γ(t)) when the fluid enters, otherwise the fluid stops.
[0166] Step 2.2: Analyze the steady-state distribution of the liquid level when the computing power pool is in state i according to the fluid stop balance strategy
[0167]
[0168] In the formula, H i is the steady-state distribution of the liquid surface, P r Assuming that all computing nodes in CPNs follow the stopping strategy, five steady-state fluid distribution situations emerge based on the relationship between λ and service rate.
[0169] Case 1: u 1 >u 0 >λ, depending on the size of the control threshold V, the fluid has two steady-state situations.
[0170] When x * (0)≤V,
[0171]
[0172] in, The probability value at the jump discontinuity point and the probability density under different system states are:
[0173]
[0174] Where P 0 (x * (0)) is the jump discontinuity point when the system state is 0 and is x * The probability value of (0), P 1 (x * (0)) is the jump discontinuity point x when the system state is 1 * The probability value of (0), P 1 (0) is the probability value of the jump discontinuity point being 0 when the system state is 0, h 0 (x) is the probability density when the system state is 0, h 1 (x) is the probability density when the system state is 1;
[0175] When x * (0)>V,
[0176]
[0177] in The probability value at the jump discontinuity point and the probability density under different system states are:
[0178]
[0179] In the formula, Q 0 (V) is the probability value of the jump discontinuity point being V, Q 1 (V) is the probability value of the jump discontinuity point being V, Q 1 (y * (0)) is the jump discontinuity point y * The probability value of (0), Q 0 (y * (0)) is the jump discontinuity point y * (0) probability value.
[0180] Case 2: u 1 >u 0 =λ, there are two steady-state situations for the fluid: when x * (0)≤V, the fluid level is maintained at x * (0) remains unchanged. * (0)>V, the steady-state distribution of the fluid is
[0181]
[0182]
[0183] The probability value at the jump discontinuity point and the probability density under different system states are:
[0184]
[0185] Where q(V) is the probability value of the jump discontinuity point being V;
[0186] Case 3: u 1 >λ>u 0 , there are two steady-state situations for the fluid:
[0187] When x * (0)≤V, the fluid level is maintained at x * (0)No change.
[0188] When x * When (0)>V, the fluid level remains unchanged at V.
[0189] Case 4: u 1 =λ>u 0 , there are three steady-state situations for the fluid:
[0190] When x * (1)≤V, the fluid level is maintained at x * (1) No change.
[0191] When x * (0)≤V <x * (1), the fluid level remains constant at V.
[0192] When x * (0)>V, the fluid level is maintained at y * (0)Unchanged:
[0193] Case 5: λ>u 1 >u 0 , there are two steady-state situations for the fluid:
[0194] When x * (0)≤V, the fluid level is maintained at x * (1) No change.
[0195] When x * (0)>V, the fluid level is maintained at y * (1) No change.
[0196] Step 2.3: Analyze the steady-state distribution of the fluid level according to the steady-state distribution of the liquid surface, and obtain the average fluid level according to the Laplace Stieltjes transformation of the steady-state distribution of the fluid level.
[0197] Analyze the steady-state distribution of fluid level based on the steady-state distribution of liquid surface
[0198] H(x)=Pr{X(t)≤x}=H 0 (x)+H 1 (x)
[0199] Where H 0 (x) and H 1 The values of the two states (x) are added to obtain H(x) as the steady-state probability distribution of the fluid level. In order to obtain the average fluid level E(X), the Laplace Stieltjes transformation of the steady-state distribution of the fluid level is used to obtain the average fluid level:
[0200]
[0201] Where s is the complex frequency, there are five cases of average fluid level. Case 1: u 1 >u 0 >λ,
[0202] When x * When (0)≤V, the steady-state distribution of the fluid is
[0203]
[0204] The corresponding Laplace Stieltjes transform is
[0205]
[0206] The average fluid level is
[0207]
[0208] When x * (0)>V, the steady-state distribution of the fluid is
[0209]
[0210] The corresponding Laplace Stieltjes transform is
[0211]
[0212] The average fluid level is
[0213]
[0214] Case 2: u 1 >u 0 =λ, the fluid has two steady-state conditions. * (0)≤V, the average fluid level E(X)=x * (0). When x * (0)>V, the steady-state distribution of the fluid is
[0215]
[0216] The corresponding Laplace Stieltjes transform is
[0217]
[0218] The average fluid level is
[0219]
[0220] Case 3: u 1 >λ>u 0 :When x * (1)≤V, the average fluid level E(X)=x * (1). When x * (1)>V, the average fluid level E(X)=V.
[0221] Case 4: u 1 =λ>u 0 :When x * (1)≤V, the average fluid level E(X)=x * (1). When x * (0)≤V <x * (1), the average fluid level E(X) = V. * (0)>V, the average fluid level E(X)=y* (0).
[0222] Case 5: λ>u 1 >u 0 :When x * (0)≤V, the average fluid level E(X)=x * (1). When x * (0)>V, the average fluid level E(X)=y * (1).
[0223] Step 3: Analyze the average social benefit based on the income of each unit computing power node, and obtain the maximum average social welfare based on the average social benefit
[0224] First, define the average social benefit as:
[0225] B(x * (0),x * (1),y * (0),y * (1)) = λ e (R-βW)-αC 1 E(X)
[0226] Among them, B(x * (0),x * (1),y * (0),y * (1)) is the average social benefit, λ e is the effective arrival rate, then the average social benefits in each case are
[0227] Case 1: u 1 >u 0 >λ,
[0228]
[0229] Case 2: u 1 >u 0 =λ,
[0230]
[0231] Case 3: u 1 >λ>u 0 ,
[0232]
[0233] Case 4: u 1 =λ>u 0 ,
[0234]
[0235] Case 5: λ>u 1 >u 0 ,
[0236]
[0237] Therefore, the resource flow balancing strategy of generative artificial intelligence in the computing network can dynamically determine the flow strategy, with the goal of maximizing average social welfare:
[0238]
[0239] stC1:0 0 1
[0240] C2:λ,q 0 ,q 1 >0.
[0241] Step 4: Build a diffusion model
[0242] The diffusion model is inspired by the diffusion phenomenon in non-equilibrium thermodynamics, so it can better model complex distribution scenarios and provide a basis for resource flow balance strategies to generate more optimized operations. In addition, resource flow balance strategies incorporate more environmental information into their actions to provide more accurate strategic information to achieve optimal social welfare. By considering the environmental state π(t), a diffusion-based network module is developed for action generation. This approach enables the resource flow balance strategy of generative artificial intelligence in computing power networks to flexibly calculate the optimal social welfare. Diffusion-based action generation can be viewed as an iterative denoising process utilizing Markov.
[0243] The forward diffusion chain gradually introduces a series of noise coefficients {δ 1 ,δ 2 ,...δ T} as a Markov chain to train the data. Therefore, the forward step is defined as:
[0244]
[0245] Among them, Q t (·) represents the forward process, t is the step size, η t represents diffusion data, η t-1 represents the diffusion data at step t-1, q(η t |η t-1 ) represents the forward step t of the diffusion model, represents normal distribution, δ t represents the t-step noise coefficient, I represents the identity matrix, and the forward process is
[0246] Where η 0 represents the 0-step diffusion data, δ represents the noise parameter, q(η 1:T |η 0 ) represents the repeated application q from time 1 to T;
[0247] After training, samples are extracted from the diffusion model and used to perform a reverse diffusion chain from t = T to t = 0. The inverse Gaussian transformation parameterized by θ is:
[0248]
[0249] Among them A t (·) and p θ (η t-1 |η t ) represent the tth reverse step and the back diffusion step, respectively. θ (η t ,t)、∑ θ μ θ (η t , t) represent the mean and variance coefficient of the reverse step, respectively.
[0250] Step 5: Solve the optimization problem of maximizing average social welfare
[0251] like Figure 3 As shown in the resource flow balancing strategy, the action generation model can be regarded as an iterative denoising process related to environmental variables. 1 and arrival rate λ are considered as environmental variables and expressed as π(t)={V,C 1 ,λ}. At time t, the action a(t) in the given environment = {u 0 ,u 1 ,q 0 ,q 1},like Figure 3 As shown. The diffusion network maps the environmental state to social welfare as an action guidance strategy, namely The parameter of the reverse diffusion chain is θ, and the process is defined as
[0252]
[0253] Among them, p θ (a(t-1)|a(t),π(t)) can be modeled as a Gaussian distribution is the coefficient of variance of the backward step
[0254]
[0255] In the formula, ρ trepresents the variance parameter, m represents the variable, so the task of training the optimal average social welfare policy in a complex high-dimensional environment is transferred to the training policy generation network ∈ θ When t=1,∈ θ is set to 0 to improve the sampling quality. Specifically, a utility evaluation network Q is defined to train ∈ θ , and use the network Q to evaluate the actions resulting from the expected cumulative welfare, the optimal strategy Aims to maximize expected average social welfare.
[0256]
[0257] In the formula, represents the loss function, Represents action guidance strategy;
[0258] The judgment network using the double Q-learning method involves two networks Q1, Q2 and their target networks Q1', Q2' and Optimize network metrics by maximizing objectives
[0259] Where r(π(t), a(t)) represents the buffer under (π(t), a(t)), γ represents the discount factor, and a 0 (t+1) represents the guiding strategy, represents the target network under this strategy, Represents the critic network under the guidance strategy.
[0260] Embodiment 2
[0261] In order to verify the effectiveness of information entropy, the widely used public dataset DiffusionDB Large is used to construct a hierarchical tree structure. Five different requests are taken, labeled A to E, containing one to five core information respectively. Initially, without information entropy, all requests belong to the base layer of the tree structure, and their entropy is uniformly set to 0.5. Figure 4 As shown, as the information entropy is integrated, a systematic decrease in entropy is observed in association with the increase in the amount of core information. This entropy reduction confirms the correlation between information precision and the stability of requests. Specifically, the increase in core information enhances the precision of the requested information, thereby reducing their entropy.
[0262] For the utility analysis of the flow model, we set R = 20, α = 1, β = 0, and examine the impact of two different sets of parameters: service rate and cycle parameter. The optimal social welfare target value is 38.
[0263] Performance analysis of service rate: Figure 5Depicts the slow service rate and the fast service rate (u 0 and u 1 ) is a scenario characterized by slow service rates. 0 The increase in u leads to a decrease in fluid waiting time and energy consumption, thus improving social welfare, peaking at 33.7 until u 0 >λ, the system is busy because it attracts a large number of computing nodes, which prolongs the waiting time of nodes and increases energy consumption, thus reducing social welfare. On the contrary, when there is only a fast service rate, social welfare is constant at 1.1. This constant occurs because the initial service rate of the system has far exceeded the arrival rate, resulting in a large influx of nodes and system congestion.
[0264] In addition, the three-dimensional diagram shows a scenario where the system has two service rates, achieving a maximum social welfare of 37.5. When constrained to a single slow service rate, the system lacks a strong strategy to manage the increase in computing nodes, thereby extending service waiting time. In contrast, relying entirely on a high service rate will result in significant energy consumption during low traffic periods and may cause system congestion during peak hours. In addition, despite supporting two service rates, the system fails to consider dynamically adjusting the proportion parameters, resulting in poor adaptability during peak and off-peak hours. Therefore, a way to comprehensively improve the average social welfare is to dynamically configure the service rate and period parameters.
[0265] Performance analysis of cycle parameters: In order to analyze Figure 6 The period parameter results shown are based on u 0 =1.5,u 1 = 3. Here, keeping q 1 =1,q 0 The increase of leads to the extension of the vacation state, which leads to the increase of fluid waiting time, so the social welfare decreases. The maximum social welfare obtained in this configuration is 35.3. In contrast, keeping q 0 =1 and increase q 1 , social welfare increases due to shortened waiting time, and the maximum reward is 35.4. 0 and q 1 The experiment (3D graph) shows that the larger the q 1 tends to increase the reward, up to 37.6. Obviously, extending the period parameter of the working state is positively correlated with increasing social welfare. However, under the current setting, the system still fails to achieve maximum social welfare because its service rate is set to remain constant.
[0266] The experiments highlight the importance of parameter tuning for optimizing social welfare and demonstrate the effectiveness of the flow model in adapting to different business needs.
[0267] The effectiveness of AIGC's resource flow balancing strategy in the computing network, optimizing the learning rate of this method to determine the ideal parameters, such as Figure 7 As shown. The performance peaks at a learning rate of 1×10-5. Comparative analysis is performed with established benchmarks. First, the performance of the proposed algorithm is evaluated against two deep reinforcement learning (DRL) algorithms: Soft Actor-Critic (SAC) and Proximal Policy Optimization (PPO). Figure 8 The training results shown in (a) show that both SAC and PPO achieve lower social welfare and require more iterations to converge than the method of the present invention. This difference in performance is attributed to the inability of traditional DRL algorithms to effectively adapt to the dynamic complexity inherent in flow models. SAC initially achieves higher social welfare, and then its performance drops significantly after 10,000 iterations, which is speculated to be due to its instability in managing high-dimensional complex environments.
[0268] Subsequently, the strategy of the present invention is combined with Figure 8 Two traditional strategies in (b) Greedy and Random are compared and analyzed: Greedy and Random. The greedy approach aims to maximize welfare immediately, so it fails to fully explore and misses the opportunity to discover a better strategy. It is trapped in the local optimal solution without achieving the global optimal. Similarly, the random strategy chooses actions without considering their potential benefits, showing an unstable behavior pattern. These findings emphasize the advantages of the method of the present invention in managing complex environments and its ability to learn and adapt over time.
[0269] Therefore, the present invention adopts the above-mentioned resource flow balancing strategy method of generative artificial intelligence in a computing power network to achieve economical and efficient access to computing power resources and dynamically adjust system strategies to maximize the average social welfare of CPNs.
[0270] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.
Claims
1. A resource flow balancing strategy method for generative artificial intelligence in a computing network, characterized in that: include Analyze user information content and establish a hierarchical tree structure, and obtain information entropy through the hierarchical tree structure to analyze resource consumption; Build a fluid model to obtain the revenue per unit of computing power node based on resource consumption and energy consumption; Analyze the average social benefit based on the income of each unit of computing power node, and obtain the maximized average social welfare based on the average social benefit; A diffusion model is constructed to solve the optimization problem of maximizing average social welfare.
2. According to claim 1, a resource flow balancing strategy method for generative artificial intelligence in a computing network is characterized in that: The user information content is analyzed and a hierarchical tree structure is established, and information entropy is obtained through the hierarchical tree structure to analyze resource consumption, including The variable G expressing the user request is discrete, and a request g of a specified user is j Input to the constructed tree, g j The probability of falling into a certain layer in the tree is P gj , the metric of a user AIGC request G in CPNs is defined as the information entropy H G : Where N is the number of discrete variables in the user request set G, and P is specified gj ∈[0.5,1), the number of layers of the tree is n∈[1,+∞), request P gj Falling on layer n'∈[0,n-1], g j Falling on a certain layer in the tree, it is derived as The unit price of resources consumed per bit of information entropy is defined as C2. Therefore, the resource cost of each user is W = C2H. G .
3. According to claim 2, a resource flow balancing strategy method for generative artificial intelligence in a computing network is characterized in that: Build a fluid model to obtain the revenue per unit computing power node based on resource consumption and energy consumption, including X(t) represents the level of the hash pool at time t, V represents the adjustment threshold, when X(t)≤V, the service rate of the hash pool is represented by u0, when X(t)>V, the hash pool appropriately increases the service rate represented by u1, u1>u0>0; The rest and working cycles of the hash pool follow an exponential distribution with parameters q0 and q1. These two parameters are independently staggered. In the working state, if there is no fluid flowing in or the liquid level X(t) = 0, the hash pool is in an idle state; when the working state ends, even if there is still fluid in the hash pool, it will enter the rest state. The state of the hash pool is expressed as Γ(t): In the flow model with threshold regulation, the arrival rate of the fluid follows an exponential distribution with parameter λ, while the service rate is a piecewise constant function in the computing pool. The waiting capacity of CPNs is infinite. The process dynamics equation for recording the liquid level of the computing pool in state Γ(t) at time t is Among them, (λ-u0) + = max{λ-u0,0}, the binary process {X(t),Γ(t)} is a Markov process. Based on the alternating update process, the steady-state distribution of Γ(t) {w i ,i=0,1} is The state of the computing power pool when the fluid arrives is (x,i). In order to evaluate the expected income when the fluid flows in, the income per unit computing power node is defined as Φ(x,i)=R-αC1E(S(x,i))-βW Among them, R is the revenue that each unit of fluid will get when the service is completed, C1 is the energy cost for waiting for the service, S(x,i) represents the waiting service time of the fluid in CPNs when the observed liquid level is x and the state of the computing pool is i, α represents the weight coefficient of the energy cost, and β represents the weight coefficient of the resource cost. In order to ensure that the fluid flows into the computing pool when x=0, it is stipulated 4. According to claim 1, a resource flow balancing strategy method for generative artificial intelligence in a computing network is characterized in that: The energy consumption is solved as follows: Analyze the stop equilibrium strategy of fluid; According to the fluid stop balance strategy, when the computing power pool is in state i, the steady-state distribution of the liquid level is analyzed; The steady-state distribution of the fluid level is analyzed according to the steady-state distribution of the liquid surface, and the average fluid level is obtained according to the LaplaceStieltjes transformation of the steady-state distribution of the fluid level.
5. According to claim 4, a resource flow balancing strategy method for generative artificial intelligence in a computing network is characterized in that: The stopping equilibrium strategy of the fluid is analyzed, including that when Φ(x,i)>0, the fluid strictly tends to flow into the computing pool, and when Φ(x,i)<0, it tends to be rejected. When Φ(x,i)=0, the fluid stopping equilibrium strategy is obtained: In the formula, x * (0) is the stopping strategy value when the fluid level is not higher than the threshold and the system is in state 0, x * (1) is the stopping strategy value when the fluid level is not higher than the threshold and the system is in state 1, y * (0) is the stopping strategy value when the fluid level is higher than the threshold and the system is in state 0, y * (1) is the stopping strategy value when the system is in state 1 when the fluid level is higher than the threshold; Observe (X(t),Γ(t)) at time t. When x≤V, X(t) <x * (Γ(t)), the fluid flows in, otherwise it stops, and when x>V and X(t) <y * (Γ(t)) when the fluid enters, otherwise the fluid stops.
6. According to claim 5, a resource flow balancing strategy method for generative artificial intelligence in a computing network is characterized in that: According to the fluid stop balance strategy, when the computing power pool is in state i, the steady-state distribution of the liquid level includes In the formula, H i is the steady-state distribution of the liquid surface, P r For probability, all computing nodes in CPNs follow the stopping strategy, and five steady-state fluid distribution situations emerge based on the relationship between λ and service rate: Case 1: u1>u0>λ. According to the size of the control threshold V, the fluid has two steady-state conditions. (1) When x * (0)≤V, in, The probability value at the jump discontinuity point and the probability density under different system states are: In the formula, P0(x * (0)) is the jump discontinuity point when the system state is 0 and is x * The probability value of (0), P1(x * (0)) is the jump discontinuity point x when the system state is 1 * (0), P1(0) is the probability value of the jump discontinuity point being 0 when the system state is 0, h0(x) is the probability density when the system state is 0, and h1(x) is the probability density when the system state is 1; (2) When x * (0)>V, in The probability value at the jump discontinuity point and the probability density under different system states are: Where Q0(V) is the probability value of the jump discontinuity point being V, Q1(V) is the probability value of the jump discontinuity point being V, and Q1(y * (0)) is the jump discontinuity point y * The probability value of (0), Q0(y * (0)) is the jump discontinuity point y * (0) probability value; Case 2: u1>u0=λ, the fluid has two steady-state conditions: When x * (0)≤V, the fluid level is maintained at x * (0) unchanged, when x * (0)>V, the steady-state distribution of the fluid is The probability value at the jump discontinuity point and the probability density under different system states are: Where q(V) is the probability value of the jump discontinuity point being V; Case 3: u1>λ>u0, the fluid has two steady-state conditions: When x * (0)≤V, the fluid level is maintained at x * (0) unchanged, when x * When (0)>V, the fluid level remains unchanged at V; Case 4: u1=λ>u0, the fluid has three steady-state conditions: when x * (1)≤V, the fluid level is maintained at x * (1) unchanged, when x * (0)≤V <x * (1), the fluid level remains constant at V, when x * (0)>V, the fluid level is maintained at y * (0) unchanged; Case 5: λ>u1>u0, the fluid has two steady-state conditions: when x * (0)≤V, the fluid level is maintained at x * (1) unchanged, when x * (0)>V, the fluid level is maintained at y * (1) No change.
7. According to claim 6, a resource flow balancing strategy method for generative artificial intelligence in a computing network is characterized in that: The steady-state distribution of the fluid level is analyzed according to the steady-state distribution of the liquid surface, and the average fluid level is obtained according to the Laplace Stieltjes transformation of the steady-state distribution of the fluid level, including: Analyze the steady-state distribution of fluid level based on the steady-state distribution of liquid surface H(x)=Pr{X(t)≤x}=H0(x)+H1(x) In the formula, the values of H0(x) and H1(x) are added to obtain H(x), which is the steady-state probability distribution of the fluid level. In order to obtain the average fluid level E(X), the average fluid level is obtained according to the Laplace Stieltjes transformation of the steady-state distribution of the fluid level: Where s is the complex frequency, there are five cases of average fluid level: Case 1: u1>u0>λ, when x * When (0)≤V, the steady-state distribution of the fluid is The corresponding Laplace Stieltjes transform is The average fluid level is When x * (0)>V, the steady-state distribution of the fluid is The corresponding Laplace Stieltjes transform is The average fluid level is Case 2: u1>u0=λ, the fluid has two steady-state conditions: When x * (0)≤V, the average fluid level E(X)=x * (0), when x * (0)>V, the steady-state distribution of the fluid is The corresponding Laplace Stieltjes transform is The average fluid level is Case 3: u1>λ>u0, when x * (1)≤V, the average fluid level E(X)=x * (1), when x * (1)>V, the average fluid level E(X) = V; Case 4: u1=λ>u0, when x * (1)≤V, the average fluid level E(X)=x * (1); when x * (0)≤V <x * (1), the average fluid level E(X) = V; when x * (0)>V, the average fluid level E(X)=y * (0); Case 5: λ>u1>u0, when x * (0)≤V, the average fluid level E(X)=x * (1); when x * (0)>V, the average fluid level E(X)=y * (1).
8. According to claim 7, a resource flow balancing strategy method for generative artificial intelligence in a computing network is characterized in that: The average social benefit is analyzed based on the income of each unit of computing power node, and the maximum average social welfare is obtained based on the average social benefit. Specifically, First, define the average social benefit as: B(x * (0),x * (1),y * (0),y * (1))=λe(R-βW)-αC1E(X) Among them, B(x * (0),x * (1),y * (0),y * (1)) is the average social benefit, λ e is the effective arrival rate, and the average social benefit includes five situations: Case 1: u1>u0>λ, Case 2: u1>u0=λ, Case 3: u1>λ>u0, Case 4: u1=λ>u0, Case 5: λ>u1>u0, Therefore, according to the average social benefit, the maximum average social welfare is obtained: P: stC1:0 <u0<u1 C2:λ,q0,q1>0.
9. According to claim 1, a resource flow balancing strategy method for generative artificial intelligence in a computing network is characterized in that: Constructing a diffusion model, specifically including gradually introducing a series of noise coefficients {δ1,δ2,...δ T } is used as a Markov chain to train the data, and the forward step is defined as: Among them, Q t (·) represents the forward process, t is the step size, η t represents diffusion data, η t-1 represents the diffusion data at step t-1, q(η t |η t-1 ) represents the forward step t of the diffusion model, represents normal distribution, δ t represents the t-step noise coefficient, I represents the identity matrix, and the forward process is In the formula, η0 represents the 0-step diffusion data, δ represents the noise parameter, and q(η 1:T |η0) represents the repeated application q from time 1 to T; After training, samples are extracted from the diffusion model and used to perform a reverse diffusion chain from t = T to t = 0; the inverse process of the Gaussian transformation parameterized by θ is: Among them, A t (·) and p θ (η t-1 |η t ) represent the tth reverse step and the reverse diffusion step respectively; μ θ (η t ,t)、∑ θ μ θ (η t , t) represent the mean and variance coefficient of the reverse step, respectively.
10. The resource flow balancing strategy method of generative artificial intelligence in a computing network according to claim 9 is characterized in that: Solve the optimization problem of maximizing average social welfare, including The threshold V, unit energy cost C1 and arrival rate λ are regarded as environmental variables, expressed as π(t) = {V, C1, λ}. Given the action a(t) = {u0, u1, q0, q1} in the environment at time t, the diffusion network maps the environmental state to social welfare as an action guidance strategy, that is, The parameter of the reverse diffusion chain is θ, and the process is defined as Among them, p θ (a(t-1)|a(t),π(t)) is modeled as a Gaussian distribution μ θ (a(t),π(t),t),∑ θ (a(t),π(t),t)),∑ θ (a(t),π(t),t)=ρ t I is the coefficient of variance of the reverse step In the formula, ρ t represents the variance parameter, m represents the variable, so the task of training the optimal average social welfare policy in a complex high-dimensional environment is transferred to the training policy generation network ∈ θ When t=1,∈ θ Set to 0; Define a utility evaluation network Q to train ∈ θ , and use the network Q to evaluate the actions resulting from the expected cumulative welfare, the optimal strategy Aims to maximize expected average social welfare In the formula, represents the loss function, represents the action guidance strategy; The judgment network using the double Q-learning method involves two networks Q1, Q2 and their target networks Q1', Q2' and Optimize network metrics by maximizing objectives In the formula, r(π(t), a(t)) represents the buffer under (π(t), a(t)), γ represents the discount factor, a0(t+1) represents the guidance strategy, represents the target network under this strategy, Represents the critic network under the guidance strategy.
