Decentralized dynamic unloading method guided by stability constraint and based on deep reinforcement learning
Deep reinforcement learning technology guided by stability constraints solves the problems of computing burden and queue conflict of IoT devices, implements a decentralized dynamic offloading strategy, reduces the long-term average computing cost of mobile edge computing, and meets real-time and low-latency requirements. needs.
Patent Information
- Application Number
- CN202410748937.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-06
AI Technical Summary
It is difficult for IoT devices to meet real-time and delay-sensitive needs, causing terminal devices with limited computing resources to face computational burdens. Existing technologies are difficult to effectively alleviate this problem, especially in mobile edge computing, where user buffer queue conflicts and computing costs are relatively high. high.
A decentralized dynamic offloading strategy based on deep reinforcement learning guided by stability constraints is used to build a task offloading model by defining user characteristic states and channel models, and use deep reinforcement learning algorithms to train and optimize task offloading decisions, independently formulated for each user Dynamic offloading strategy to avoid buffer queue conflicts and reduce computing costs.
It effectively avoids user buffer queue conflicts, optimizes long-term average computing costs, improves system stability and computing efficiency, and meets real-time and low-latency requirements.
Smart Images

Figure CN118612796A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of communication technology, and in particular relates to a decentralized dynamic unloading strategy based on deep reinforcement learning guided by stability constraints. Background Art
[0002] With the rapid development of the Internet of Things, more and more devices and sensors are connected to the Internet, allowing them to be interconnected through the network, which has brought great convenience to our lives. At the same time, the increase in mobile devices has spawned a variety of applications. With the continuous increase in data volume, mobile Internet services have exploded, bringing a heavy computing burden to terminals with limited computing resources. In this context, many devices require real-time response, but the Internet of Things usually has difficulty meeting the requirements of real-time and delay-sensitive devices, which makes the convenience brought by the Internet of Things face a great threat.
[0003] In order to alleviate the limitation of mobile computing power, mobile edge computing is considered to be a promising computing paradigm and has been widely used. Mobile edge computing is considered to be a promising technology for B5G and 6G networks. Its core is to deploy mobile edge computing servers at the edge of the wireless access network (such as cellular base stations), so that edge servers (such as base stations) can provide resource computing capabilities, which is convenient for mobile users to offload their computing workload to edge computing servers, thereby reducing computing energy and time costs, and further meeting the requirements of ultra-high bandwidth and ultra-low latency in future networks.
[0004] Therefore, the present invention proposes a decentralized dynamic unloading strategy based on deep reinforcement learning guided by stability constraints. Users can independently and dynamically formulate unloading strategies based on environmental information, avoiding user queue conflicts and reducing users' long-term average computing costs. Summary of the invention
[0005] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a decentralized dynamic unloading strategy based on deep reinforcement learning guided by stability constraints, so as to avoid user queue conflicts and reduce the user's long-term average overall computing cost.
[0006] The present invention solves the technical problem by adopting the following technical solutions:
[0007] A stability constraint-guided decentralized dynamic offloading formulation method based on deep reinforcement learning is defined, and a multi-user multi-input multi-output mobile edge computing system is defined, including a base station with N antennas, a mobile edge computing server and a group of single-antenna mobile users M = {1, 2, ..., M} and some randomly arriving independent computing tasks. The arrival task of each user changes dynamically and does not interfere with each other: the method comprises the following steps:
[0008] Establish a task offloading model. System users need to handle randomly arriving tasks, define the specific feature states of users, and constrain the stability of the user feature states. At the same time, convert the long-term optimization problem into deterministic optimization, and determine the optimization target based on the user's service quality requirements.
[0009] Train the constructed system model, deploy the algorithm agent to each user, and learn according to the user's characteristics. The goal of the model is to minimize the optimization target. Through continuous training iterations, a trained task offloading model is obtained.
[0010] The trained model is used to make task offloading decisions, and the status of each user is initialized as input. The trained task offloading model is used to obtain the optimal offloading strategy output.
[0011] Furthermore, the task offloading model is established, and it is defined that each user needs independent computing-intensive tasks. A discrete time model is adopted in the system, and the entire operation cycle is divided into continuous time frames of length τ0, represented as T = {0, 1, ..., T}, and the characteristic state of each user is represented as a tuple s m,t =[B m (t),φ m (t-1),h m (t)], where B m (t) is the user, φ m (t-1) is the normalized signal-to-interference-noise ratio between the user and the base station in the previous time slot, h m (t) is the signal vector used by the user for uplink transmission;
[0012] Define the queue buffer length B for the user task arrival when the user makes an offloading decision m (t) Stability constraints are imposed. Specifically, the queue buffer length B of the user task arriving at the next time slot m (t+1) and the queue buffer length B of the user task arriving at the current time slot m The difference between (t) has an upper bound, expressed as:
[0013]
[0014] The queue buffer length is guaranteed to be stable, queue conflicts are effectively avoided, and the long-term optimization problem C m Transformed into a deterministic optimization problem C in each time slot m (t), each user dynamically learns the decentralized offloading strategy and makes decisions independently of other users to select action a m (t) = [p l,m (t),p o,m (t)], where pl,m (t) represents the power allocated for local processing tasks, p o,m (t) represents the transmission power allocated by the user to the task offloaded to the edge server, that is, the percentage of task offloading can be determined.
[0015] Furthermore, the constructed system model is trained, and the task offloading model is trained under the framework of deep reinforcement learning such as DDPG to define the characteristic state s of the user. m,t =[B m (t),φ m (t-1),h m (t)] as the input of the offloading model, and the offloading strategy a m (t) = [p l,m (t),p o,m (t)] is defined as the action space input, and the negative value of the total computational cost of the queue buffer length stability constraint introduced when the user task arrives is used as the reward of the offloading model, that is, the goal of model optimization is to minimize the overall cost of user computation. The offloading model dynamically collects data and puts it into the experience buffer. Each iteration randomly samples a small batch of samples from the experience buffer, and optimizes the model parameters by gradient descent, thereby minimizing the loss function. The experience buffer of the offloading model is continuously updated.
[0016] Furthermore, the task offloading decision is made by using the trained model. First, the feature state s of each user is m,t =[B m (t),φ m (t-1),h m (t)] is randomly initialized and input into the offloading model with trained parameters. The offloading model performs parameter calculation on the input features and outputs the optimal offloading decision a m (t) = [p l,m (t),p o,m (t)], users perform corresponding local processing according to the allocated power and offload tasks to the edge server.
[0017] The advantages and positive effects of the present invention are: the present invention constructs a multi-user MEC system supporting MIMO, considering that in an environment with time-varying wireless channels and random arrival of task data, users interact with the system environment without prior information and independently learn dynamic computing offloading strategies. A new framework is proposed, which introduces queue stability constraints while users independently formulate offloading strategies based on deep reinforcement learning. Under the constraints of long-term queue stability, the long-term stability of the system is guaranteed, queue conflicts are effectively avoided, task processing delays are reduced, and the long-term average computing cost of users is optimized. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The technical solution of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments, but it should be understood that these drawings are designed only for explanation purposes and are not intended to limit the scope of the present invention. In addition, unless otherwise specified, these drawings are intended only to conceptually illustrate the structural configurations described herein and are not necessarily drawn to scale.
[0019] Figure 1 Diagram of a multi-user multi-input multi-output mobile edge computing system.
[0020] Figure 2 A diagram of the framework of the deep deterministic policy gradient algorithm for reducing the target value for developing dynamic offloading strategies.
[0021] Figure 3 , 4 5 are respectively comparison diagrams of the long-term average reward performance of the deep deterministic policy gradient algorithm dynamic unloading strategy scheme for reducing the target value proposed in the present invention and different unloading strategy schemes. Figure 3 is the long-term average reward of user 1; Figure 4 is the long-term average reward of user 2; Figure 5 is the long-term average reward of user 3. DETAILED DESCRIPTION
[0022] First of all, it should be noted that the specific structure, features and advantages of the present invention will be specifically described below by way of example, but all descriptions are only for illustration and should not be understood as limiting the present invention in any way. In addition, any single technical feature described or implied in the embodiments mentioned in the present invention, or any single technical feature shown or implied in the drawings, can still be combined or deleted between these technical features (or their equivalents), so as to obtain more other embodiments of the present invention that may not be directly mentioned in the present invention.
[0023] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application may be combined with each other.
[0024] This embodiment specifically describes the present invention in conjunction with the accompanying drawings:
[0025] Based on the purpose of the present invention, the present invention provides a decentralized dynamic unloading formulation method based on deep reinforcement learning guided by stability constraints, which comprises the following steps:
[0026] Establish a task offloading model. System users need to handle randomly arriving tasks, define the specific feature states of users, and constrain the stability of the user feature states. At the same time, convert the long-term optimization problem into deterministic optimization, and determine the optimization target based on the user's service quality requirements.
[0027] Train the constructed system model, deploy the algorithm agent to each user, and learn according to the user's characteristics. The goal of the model is to minimize the optimization target. Through continuous training iterations, a trained task offloading model is obtained.
[0028] The trained model is used to make task offloading decisions, and the status of each user is initialized as input. The trained task offloading model is used to obtain the optimal offloading strategy output.
[0029] The present invention is further explained by taking a multi-user edge computing system as an example. Figure 1 The diagram of the multi-user multi-input multi-output mobile edge computing system of the present invention is shown. The system includes a base station with N antennas, a mobile edge computing server and a group of single-antenna mobile users M={1,2,...,M} and some independent computing tasks that arrive randomly. In the multi-user scenario, the present invention sets the number of users M=3, and the arrival of tasks of all users follows the Poisson distribution and is independent of each other, so that the arrival tasks of each user change dynamically and do not interfere with each other. In the tth time slot, considering the time correlation between the time slots of each user, the channel model of the present invention adopts the Gaussian Markov block fading autoregressive model, which changes independently between different frames, so the channel vector can be expressed as:
[0030]
[0031] where ρ m is the correlation coefficient between adjacent time slots of the normalized channel. According to Jake’s fading spectrum, ρ m =J0(2πf d,m τ0), J0(·) is the first kind of Bessel function. Initialize the channel vector h m (0)~CN(0,h0(d0 / d m )αΙ N ), e(t)~CN(0,h0(d0 / d m )αΙ N ) represents the error vector, f d,m represents the Doppler frequency of user m, and τ0 represents the time slot length.
[0032] Set the noise to additive white Gaussian noise (AWGN) The variance is The N×M channel matrix between the base station and M users is expressed as, H(t)=[h1(t),h2(t),...,h M (t)]. The present invention expresses the signal-to-interference-plus-noise (SINR) at the base station as:
[0033]
[0034] The queue length of the task buffer of user m at the beginning of time slot t is determined by the amount of task data bits D processed locally by the user in time slot t. l,m (t), the amount of data bits offloaded to the MEC execution server for processing D o,m (t) and the task arrival amount A m (t) is determined by:
[0035]
[0036] The present invention balances energy cost and delay, and sets the goal to minimize the weighted sum of energy consumption and task buffering delay of each user agent, w m is the trade-off factor between user energy consumption and buffering delay. The optimization objective is expressed as:
[0037]
[0038] Lyapunov optimization is introduced as an optimization method for the queue length stability constraint of the user task buffer, and the long-term optimization problem is transformed into a deterministic optimization. The present invention introduces the Lyapunov function queue Q m (t) = B m (t) and the drift function is expressed as:
[0039]
[0040] in Since the arrival and service of each queue are bounded, B t > 0, there exists a constant B such that for all t and all possible queue vectors Q m (t) Both After adding the penalty function, the present invention obtains the upper bound of Lyapunov drift and penalty as a new optimization objective expressed as:
[0041] C m (t) = ΔL(Q m (t))-V(C m (t)|Q m (t))
[0042] In the model established in this embodiment, the deep deterministic policy gradient algorithm for reducing the target value of each user m is based on the actor-critic algorithm. The agent is a four-layer fully connected neural network with two hidden layers. The number of neurons is 400, 300, and the size of the state space and the size of the action space, respectively. All hidden layers are activated using the Relu function. Figure 2The framework diagram of the deep deterministic policy gradient algorithm for reducing the target value for formulating dynamic unloading strategies, in which the output layer of the actor network is activated by a sigmoid function to limit the action range, and all models are updated by an adaptive matrix estimation optimizer. The present invention sets the experience buffer size to B m =2.5×10 5 , the data sampling batch size for network parameter update is 16.
[0043] The present invention models it as a Markov decision process with a state space S, an action space A, an initial state distribution, a transfer function and a reward function r(s t ,a t ). In the proposed framework, the user’s state space s m,t =[B m (t),φ m (t-1),h m (t)], the user agent defines the reward of a state as the sum of future discounted rewards, expressed as Where γ∈[0,1] is the discount factor. In time slot t, the action space a m (t) = [p l,m (t),p o,m (t)] is the power allocation of the user for local execution and offloading on the mobile edge computing server, ensuring that it meets the constraints. The actor network evaluates the policy function to select the action a that produces the maximum reward i The critic network uses the value function to calculate the Q-value of the selected action, and the loss is calculated as the mean squared error between the time difference target and the Q-value estimate. For the target critic network, the input is the next state s i+1 and the policy μ`(s) output in the target actor network i+1 |θ μ` ), the output is used to calculate the time difference target, that is:
[0044] y i =r i +γQ`(s i+1 ,μ`(s i+1 ∣θ μ` )|θ Q` )-ε
[0045] where r i is the reward obtained by the actor network when it chooses action a in state s, γ is the discount factor, and Q`(s`,μ`(s`)) is the maximum future return of the next state. The target actor network μ` is used to predict the action value of the next state. A small batch of size N is sampled using a buffer to calculate the loss function of the critic network:
[0046]
[0047] Update the online critic network parameters by minimizing the given loss function:
[0048] For the update of actor network parameters, the present invention needs to maximize the Q value. Applying the chain rule, the policy gradient of the actor can be calculated as follows:
[0049]
[0050] where α Q and α μ is the learning rate, and the actor network parameters are updated according to the policy gradient. This improves the stability of learning, and the parameters of the target network are all soft updated.
[0051] θ μ` =τθ μ` -(1-τ)θ μ`
[0052] θ Q` =τθ Q` -(1-τ)θ Q`
[0053] The present invention considers the problem of dealing with continuous action space, so it is necessary to deal with the exploration problem. The exploration in the algorithm is irrelevant to the learning process, so the noise N sampled from the random noise process can be t Added to the output of the actor network to construct the exploration strategy μ, the noise can be selected according to the actual scene. The present invention uses the Ornstein-Uhlenbeck process to generate time-dependent exploration noise to improve the exploration efficiency in inertial physical control problems.
[0054] μ`(s)=μ(s|θ μ )+N t
[0055] The present invention implements the following deep reinforcement learning offloading decision algorithms for comparison. Dynamic offloading based on deep Q learning and dynamic offloading based on deep deterministic policy gradient. Since deep Q learning is based on discrete action space, the commonly used method of discretizing continuous action space is used to implement the offloading decision of deep Q learning. The present invention sets the same structure and parameters for all neural networks in the experiment to ensure fairness. Figure 3 ,4,5 The results show that the performance of the long-term average reward of the present invention on different user agents is better than other unloading decisions, saving the user's long-term average computing resources.
[0056] The above embodiments describe the present invention in detail, but the contents are only preferred embodiments of the present invention and cannot be considered to limit the scope of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the present invention.
Claims
1. A decentralized dynamic offloading method based on deep reinforcement learning guided by stability constraints defines a multi-user multi-input multi-output mobile edge computing system, including a base station with N antennas, a mobile edge computing server, and a group of single-antenna mobile users M = {1, 2, ..., M} and some randomly arriving independent computing tasks. The arrival task of each user changes dynamically and does not interfere with each other: It is characterized in that The method comprises the following steps: Establish a task offloading model. System users need to handle randomly arriving tasks, define the specific feature states of users, and constrain the stability of the user feature states. At the same time, convert the long-term optimization problem into deterministic optimization, and determine the optimization target based on the user's service quality requirements. Train the constructed system model, deploy the algorithm agent to each user, and learn according to the user's characteristics. The goal of the model is to minimize the optimization target. Through continuous training iterations, a trained task offloading model is obtained. The trained model is used to make task offloading decisions, and the status of each user is initialized as input. The trained task offloading model is used to obtain the optimal offloading strategy output.
2. The stability constraint-guided decentralized dynamic unloading method based on deep reinforcement learning according to claim 1, Features: The task offloading model is established, and each user is defined to have independent computationally intensive tasks. A discrete time model is used in the system to divide the entire operation cycle into time periods of length τ. 0 The continuous time frame is represented by T = {0, 1, ..., T}, and the characteristic state of each user is represented by a tuple s m,t =[B m (t),φ m (t-1),h m (t)], where B m (t) is the user, φ m (t-1) is the normalized signal-to-interference-noise ratio between the user and the base station in the previous time slot, h m (t) is the signal vector used by the user for uplink transmission; Define the queue buffer length B for the user task arrival when the user makes an offloading decision m (t) Stability constraints are imposed. Specifically, the queue buffer length B of the user task arriving at the next time slot m (t+1) and the queue buffer length B of the user task arriving at the current time slot m The difference between (t) has an upper bound, expressed as: The queue buffer length is guaranteed to be stable, queue conflicts are effectively avoided, and the long-term optimization problem C m Transformed into a deterministic optimization problem C in each time slot m (t), each user dynamically learns the decentralized offloading strategy and makes decisions independently of other users to select action a m (t) = [p l,m (t),p o,m (t)], where p l,m (t) represents the power allocated for local processing tasks, p o,m (t) represents the transmission power allocated by the user to the task offloaded to the edge server, that is, the percentage of task offloading can be determined.
3. The stability constraint-guided decentralized dynamic unloading method based on deep reinforcement learning according to claim 1, Features: The constructed system model is trained, the task offloading model is trained under the framework of deep reinforcement learning such as DDPG, and the characteristic state s of the user is defined. m,t =[B m (t),φ m (t-1),h m (t)] as the input of the offloading model, and the offloading strategy a m (t) = [p l,m (t),p o,m (t)] is defined as the action space input, and the negative value of the total computational cost of the queue buffer length stability constraint introduced when the user task arrives is used as the reward of the offloading model. That is, the goal of model optimization is to minimize the overall cost of user calculation. The offloading model dynamically collects data and puts it into the experience buffer. Each iteration randomly samples a small batch of samples from the experience buffer, and optimizes the model parameters by gradient descent, thereby minimizing the loss function. The experience buffer of the offloading model is continuously updated.
4. The stability constraint-guided decentralized dynamic unloading method based on deep reinforcement learning according to claim 1, Features: The above method uses the trained model to make task offloading decisions. First, the feature state s of each user is m,t =[B m (t),φ m (t-1),h m (t)] is randomly initialized and input into the offloading model with trained parameters. The offloading model performs parameter calculation on the input features and outputs the optimal offloading decision a m (t) = [p l,m (t),p o,m (t)], users perform corresponding local processing according to the allocated power and offload tasks to the edge server.
