Intelligent computing offloading method in vehicle edge computing scenarios based on deep reinforcement learning
Deep reinforcement learning is used to optimize offloading decisions and resource allocation in vehicle edge computing scenarios, solving the problem that traditional methods are difficult to quickly solve the optimal strategy in a time-varying wireless channel environment, achieving rapid convergence and adaptability, and reducing system calculation time. extension.
Patent Information
- Application Number
- CN202211048897.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-30
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-08-30
AI Technical Summary
In vehicle edge computing scenarios, traditional computing offloading methods are difficult to quickly solve the optimal offloading strategy in a time-varying wireless channel environment, resulting in high system computing delays and inability to adapt to rapidly changing vehicle weights and resource allocation requirements.
Using an intelligent computing offloading method based on deep reinforcement learning, a relaxed offloading decision set is generated through a deep neural network, and converted into a binary decision through quantification and optimization algorithms to jointly optimize the offloading decision of the vehicle terminal, the computing resource allocation of the edge server, and the channel time Slot resource allocation to reduce system computing delay.
In the highly dynamic Internet of Vehicles environment, it can quickly converge to the optimal offloading strategy, automatically adjust the strategy to adapt to vehicle weight changes, significantly reduce system computing latency, and improve the performance and user experience of in-vehicle applications.
Smart Images

Figure CN115460710B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile edge computing, and in particular to an intelligent online unloading method in a vehicle edge computing scenario based on deep reinforcement learning. Background Art
[0002] In recent years, with the continuous development of Internet of Vehicles technology and the continuous increase in the number of cars, a large number of in-vehicle applications and multimedia services have emerged one after another. They have higher and higher requirements for service quality, user experience and system overhead, resulting in an increasing demand for resources such as computing power and energy consumption. The computing resources and energy storage contained in the vehicle itself are not yet well capable of handling the types of computing-intensive and delay-sensitive tasks that are widely present in the current new in-vehicle applications. In terms of solving the problem of insufficient computing resources, computational offloading has become a hot research topic in the Internet of Vehicles.
[0003] The so-called computing offloading technology refers to transferring or "offloading" computing tasks to servers with idle resources for computing and transmitting the computing results back, thereby solving the problem of insufficient computing resources. Currently, cloud computing is a relatively mature computing offloading method, which offloads computing tasks to the cloud for computing. However, due to the large transmission delay between the cloud and the vehicle, cloud computing is not suitable for vehicle scenarios.
[0004] Mobile edge computing is a technology based on this. It offloads computing tasks to edge servers that are closer for computing. Correspondingly, in vehicle scenarios, combining mobile edge computing with the Internet of Vehicles is Vehicular Edge Computing (VEC). Vehicular Edge Computing (VEC) is currently highly anticipated as an effective method to improve the performance of in-vehicle applications. By combining the Internet of Vehicles with Mobile Edge Computing (MEC), the latency and energy consumption generated by vehicle terminals during computing tasks can be effectively reduced. Despite this, due to the limited battery life and capacity of vehicles, it is still difficult to guarantee the performance of in-vehicle applications in the long term.
[0005] Wireless Power Transfer (WPT) refers to the process of transferring energy from an energy source to an electrical load. This process is achieved through wireless transmission rather than traditional wired methods. Using air as the medium, the energy source transmits energy to the wireless device to ensure that the wireless device has sufficient energy to handle various tasks. The latest research shows the feasibility of wireless energy transfer technology.
[0006] Because the battery life and energy of the vehicle are limited, the present invention considers adding wireless energy transmission technology to transmit energy to the vehicle through the mobile edge server to further reduce the vehicle's energy consumption. By combining wireless energy transmission technology with the VEC network, the edge server can replenish energy for the vehicle by wireless transmission, thereby ensuring and improving the performance of vehicle-mounted applications and the user's service experience. This is the wireless power mobile edge computing technology. In a wireless fading environment, in a multi-user scenario, a major challenge is to jointly optimize a single computing mode (offloading or local computing) and wireless resource allocation. Due to the existence of binary offloading variables, this type of problem is usually modeled as a mixed integer programming (Mixed Integer Programming, MIP) problem. To address this problem, the traditional branch and bound algorithm and dynamic programming are used to solve the MIP problem, which has extremely high computational complexity and cannot be applied to real-time changing application environments; while the heuristic local search method and the convex relaxation method can reduce the computational complexity, but both require a large number of iterations to achieve a satisfactory local optimum, and are not suitable for making real-time offloading decisions in fast fading channels. Summary of the invention
[0007] For a wireless powered mobile edge computing network comprising an edge server and multiple vehicle terminals, the present invention proposes an intelligent computing offloading method in a vehicle edge computing scenario based on deep reinforcement learning. According to the time-varying nature of the wireless channel, an online framework based on deep reinforcement learning is adopted to jointly optimize the offloading decisions of each vehicle terminal, the local computing capability of the vehicle, the vehicle data transmission power, the channel time slot resource allocation decision, and the computing resource allocation decision of the edge server, so as to minimize the system computing delay and obtain the optimal offloading decision.
[0008] The technical solution of the present invention is:
[0009] The intelligent computing offloading method in a vehicle edge computing scenario based on deep reinforcement learning comprises the following steps:
[0010] Step 1: Based on the wireless channel gain h within this time frame i , a relaxed offloading decision set x is generated through a deep neural network t ;
[0011] Step 2: Use the order-preserving quantization method to convert the relaxed offloading decision set x generated in step 1 into t Quantized into K binary offloading decisions;
[0012] Step 3: Quantify each binary offloading decision x k Substitute into problem P1:
[0013] P1:
[0014] stC1:x i ∈{0,1}
[0015] C2:
[0016] C3:
[0017] C4:
[0018] C5: Where N is the number of vehicle terminals, x i is the unloading action of vehicle terminal i (i=1,…,N), x i =1 means that the computing task of vehicle terminal i is offloaded to the edge server, x i =0 means that the computing task of vehicle terminal i is executed locally; f M is the total computing resources owned by the edge server, f i The computing resources allocated by the edge server to vehicle terminal i, is the total edge computing delay of vehicle terminal i, w i The weight factor for calculating the delay of vehicle terminal i task, is the local computing delay of vehicle terminal i, a is the proportion of energy channel transmission time from edge server to vehicle terminal, τ i is the proportion of channel duration of vehicle terminal i;
[0019] Transform problem P1 into resource allocation sub-problem P2:
[0020] P2:
[0021] stC2, C3, C4, C5
[0022] Where φ is the number of cycles required to process 1 bit of task data, D i is the data volume of the computing task on vehicle terminal i, μ is the energy harvesting efficiency, P is the transmission power of the edge server, and h i is the wireless channel gain in the i-th time period, k i is the calculated energy efficiency coefficient of vehicle terminal i, β i is the transmission overhead coefficient of the uplink of vehicle terminal i; X0 and X1 are used to represent the set of vehicles that adopt local calculation and offload calculation respectively; W is the bandwidth of the wireless channel; σ 2 is the Gaussian noise spectrum density of the wireless channel;
[0023] Step 4: Decompose problem P2 into two sub-problems P3 and P4:
[0024] P3:
[0025] stC4、C5
[0026] P4:
[0027] stC2、C3
[0028] Solving problem P3 yields the time slot allocation {a,τ}; solving problem P4 yields the computing resource allocation f;
[0029] Step 5: For each binary offloading decision, substitute the results of solving problems P3 and P4 into problem P1 and solve the resulting system delay. For all binary offloading decisions, select the binary offloading decision with the smallest system delay as the optimal offloading decision.
[0030] Step 6: The optimal offloading decision and wireless channel gain h i Stored in memory as empirically labeled data;
[0031] Step 7: Every δ time frames, randomly select a data sample from the memory, train the deep neural network, update the parameters θ in the deep neural network, and then return to step 1 until the method ends.
[0032] Furthermore, the total edge computing delay of vehicle terminal i is for in is the uplink data transmission delay of vehicle terminal i, The execution delay required for the edge server to execute the task transmitted from vehicle terminal i.
[0033] Furthermore, in step 2, the relaxed offloading decision x t The process of quantizing the offloading decision into K bins is:
[0034] For a given 1≤K≤N+1, the relaxed unloading decision x t Generate K quantized offloading decision sets {x k}(k=1,…,K);
[0035] When k is 1, the first binary uninstall decision x is generated. 1,i for:
[0036]
[0037] where x t,i For uninstall decision x t The i-th element in ;
[0038] x tThe elements of are sorted according to their distance from 0.5, represented by |x t,(1) -0.5|≤|x t,(2) -0.5|≤…≤|x t,(i) -0.5|…≤|x t,(N) -0.5|, where x t,(i) For x t The i-th statistic of t,(k-1) , for the kth (k=1,…,K) binary offloading decision x k for:
[0039]
[0040] Furthermore, in step 4, the interior point method is used to solve problem P3 to obtain the time slot allocation {a,τ}; the Lagrange dual method is used to solve problem P4 to obtain the computing resource allocation f.
[0041] Beneficial Effects
[0042] Compared with traditional heuristic algorithms, the present invention adopts deep reinforcement learning, which has both the powerful computing power of deep learning and the autonomous learning ability of reinforcement learning, and can automatically update the uninstallation strategy in a highly dynamically changing Internet of Vehicles environment.
[0043] The present invention can not only quickly converge to the optimal unloading strategy in a time-varying wireless channel environment; when the weights of each vehicle terminal change, the present invention can automatically adjust the unloading strategy and quickly converge to a new optimal unloading strategy, and has strong robustness.
[0044] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0046] Figure 1 : Simplified model diagram of problem P1;
[0047] Figure 2 : Method framework diagram;
[0048] Figure 3 : The training loss change curve of the neural network;
[0049] Figure 4 : Profit ratio curve chart;
[0050] Figure 5 : The impact of learning rate on revenue ratio;
[0051] Figure 6 : The impact of batch size on revenue ratio;
[0052] Figure 7 : The impact of memory size on revenue ratio;
[0053] Figure 8 : The effect of training interval on the benefit ratio;
[0054] Fig. 9 : Modify the weight training loss change analysis;
[0055] Fig.10 : Modify the analysis of changes in weight-return ratio. DETAILED DESCRIPTION
[0056] The present invention proposes an intelligent computing offloading method in a vehicle edge computing scenario based on deep reinforcement learning, wherein the edge server can broadcast energy to each vehicle terminal, and the vehicle terminal can receive energy and use it to perform tasks. The present invention adopts a binary offloading decision, that is, the task is either calculated locally at the vehicle terminal or offloaded to the edge server for calculation. According to the time-varying conditions of the wireless channel, the present invention minimizes the computing delay of the system by jointly optimizing the offloading decision of the vehicle terminal, the local computing power and the data transmission power, the channel time slot allocation decision, and the computing resource allocation decision on the edge server. Among them, the local computing power of the vehicle refers to the ability of the vehicle to process computing tasks locally; the vehicle data transmission power refers to the power size of the vehicle when transmitting task data to the edge server; the channel time slot resource allocation decision refers to the edge server transmitting energy to each vehicle. Channel resources need to be occupied, and the vehicle using edge computing also needs to occupy channel resources to transmit task data to the edge server, but the channel resources are limited, and it is necessary to reasonably allocate channel resources to ensure the minimum delay; the edge server computing resource allocation decision refers to the edge server for vehicles using edge computing. The computing power allocated to each vehicle, but the total computing power of the edge server is limited, so it is necessary to reasonably allocate computing power to ensure the minimum delay.
[0057] This problem can be modeled as a mixed integer programming problem. However, due to the combinatorial nature of multi-user computing mode selection and its strong coupling with resource allocation, traditional numerical optimization methods are difficult to solve quickly within the channel coherence time. The online offloading algorithm based on deep reinforcement learning proposed in the present invention jointly optimizes five variables, namely, offloading decision, vehicle local computing power, vehicle data transmission power, channel time slot resource allocation decision, and edge server computing resource allocation decision, to obtain the optimal offloading decision. There is no need to solve combinatorial optimization, which greatly reduces the computational complexity. The optimal offloading strategy can be obtained in a short time, minimizing the total delay of the system.
[0058] Parameter Table
[0059]
[0060]
[0061]
[0062] The intelligent computing offloading method in the vehicle edge computing scenario based on deep reinforcement learning proposed in the present invention is implemented by the following steps in each time frame:
[0063] Step 1: Based on the wireless channel gain h within this time frame i , a relaxed offloading decision set x is generated through a deep neural network t ;
[0064] The deep neural network here can generate relaxed offloading decisions and quantify the optimal offloading decision even if it is not fully trained. The optimal offloading decision obtained each time and the wireless channel gain in the current time period are combined into data samples for storage; each time a data sample is selected to train the neural network so that a better offloading decision can be obtained next time.
[0065] The unloading decision is a parameter used to indicate the unloading action of the vehicle terminal, and the values 0 and 1 represent local calculation and unloading calculation respectively. i represents the unloading decision of the i-th vehicle terminal in this time period. And the parameter x t Refers to the set of relaxed unloading decisions generated by the neural network in each time period. Unlike the previous parameters which only take values 0 or 1, this parameter is a set of N elements, each with a value between 0 and 1.
[0066] Step 2: Use the order-preserving quantization method to convert the relaxed offloading decision set x generated in step 1 into t Quantized into K binary offloading decisions:
[0067] Specifically, for a given 1≤K≤N+1, the relaxed unloading decision x t Generate K quantized offloading decision sets {x k}(k=1,…,K), as shown below, where x k It is also a set containing N elements, each element takes a value of 0 or 1, indicating the unloading decision of the corresponding vehicle terminal.
[0068] When k is 1, the first binary uninstall decision x is generated. 1,i for:
[0069]
[0070] where x t,i For the set x t The i-th element in .
[0071] x t The entries (i.e. elements) of are sorted according to their distance from 0.5 (according to x t The entries are sorted by their relative distance from the value 0.5), expressed as |x t,(1) -0.5|≤|x t,(2) -0.5|≤…≤|x t,(i) -0.5|…≤|x t,(N) -0.5|, where x t,(i) For x t The i-th statistic of . Based on x t,(k-1) , for the kth (k=1,…,K) binary offloading decision x k for:
[0072]
[0073] Step 3: Quantify each binary offloading decision x k Substitute into problem P1:
[0074] P1:
[0075] stC1:x i ∈{0,1}
[0076] C2:
[0077] C3:
[0078] C4:
[0079] C5:
[0080] At this point, problem P1 is transformed into the resource allocation sub-problem P2:
[0081] P2:
[0082] stC2, C3, C4, C5
[0083] In this formula, X0 and X1 are used to represent the set of vehicles that adopt local calculation and unloading calculation, respectively. That is, X0 represents the set of vehicle terminal unloading decisions in this set of unloading decisions whose value is 0, that is, the set of vehicle terminal unloading decisions that adopt local calculation, and X1 represents the set of vehicle terminal unloading decisions in this set of unloading decisions whose value is 1, that is, the set of vehicle terminal unloading decisions that adopt local calculation.
[0084] Step 4: Decompose problem P2 into two sub-problems P3 and P4:
[0085] P3:
[0086] stC4、C5
[0087] P4:
[0088] stC2、C3
[0089] Use the interior point method to solve problem P3 and obtain the time slot allocation {a,τ}; use the Lagrange dual method to solve problem P4 and obtain the computing resource allocation f.
[0090] Step 5: For each binary offloading decision, substitute the results of solving problems P3 and P4 into problem P1 and solve the resulting system delay. For all binary offloading decisions, select the binary offloading decision with the smallest system delay as the optimal offloading decision x i .
[0091] If the unloading decisions of each vehicle terminal are determined, then problem P1 can be transformed into P2. This transformation process is achieved by directly calculating the K quantified unloading decisions separately, but we must eventually select the best one. The optimal unloading decision is obtained by decomposing P2 into P3 and P4, and then substituting it into P1 to solve for the optimal delay.
[0092] All binary offloading decisions here refer to the K offloading decisions obtained by the neural network through the wireless channel gain at that time in each time period. The parameter symbols in the above problem are not all for a certain vehicle terminal, but represent the offloading actions of all vehicle terminals. Time slot allocation and computing resource allocation are not for a certain vehicle terminal, but include a set of allocation strategies for all vehicle terminals that take offloading calculations.
[0093] Step 6: Obtain the optimal unloading decision x i and the wireless channel gain h i Stored in memory as empirically labeled data.
[0094] Step 7: Every δ time frames, randomly select a data sample from the memory (the empirical labeled data previously stored in the memory) to train the deep neural network. And use the Adam algorithm to update the DNN parameters θ.
[0095] Algorithm pseudo code:
[0096]
[0097]
[0098] The following description is made in conjunction with specific embodiments, which are exemplary and intended to be used to explain the present invention, but are not to be construed as limiting the present invention.
[0099] The computing model of this embodiment consists of two parts: local computing and edge computing. In the local computing mode, the computing task is directly calculated on the vehicle terminal, and the delay is the local computing delay of vehicle terminal i. In edge computing mode, computing tasks are offloaded from vehicle terminals to edge servers for computing. The latency is the uplink data transmission latency of vehicle terminal i, the execution latency required for the edge server to execute the tasks transmitted by vehicle terminal i, and the latency of edge server result data return. The edge service ignores the latency generated by the edge server result data return phase. The total latency of edge computing for vehicle terminal i is for:
[0100]
[0101] The present invention jointly optimizes the unloading decision x of each intelligent vehicle terminal i i ∈{0,1}, channel time slot allocation decision {a,τ i}、Edge server computing resource allocation decision f i , the local computing power of the vehicle terminal i l and data transmission power P i To minimize the system utility function T(x,a,τ,f,f l ,P), establish a minimum delay optimization problem P0, expressed as follows:
[0102]
[0103] P0:
[0104] stC1:x i ∈{0,1}
[0105] C2:
[0106] C3:
[0107] C4:
[0108] C5:
[0109] C6:
[0110] C7:
[0111] Where: w i The weight factor for calculating the delay of vehicle terminal i task, w i The relative size of reflects the relative priority of different vehicles, that is, reflects the sensitivity of different vehicle computing tasks to delay. The larger the weight factor, the more sensitive the computing task of this vehicle unit is to delay. M is the maximum computing capacity of the edge server.
[0112] For problem P0, we first explore the local computing capacity f of vehicle terminal i. i l and data transmission power P i Impact on problem optimization:
[0113] The transmission delay caused when all the energy received from the edge server is used for local computing Can be minimized. At this time, the local computing delay for:
[0114]
[0115] The transmission delay caused when all the energy received from the edge server is used for data transmission Can be minimized. The minimum transmission delay is:
[0116]
[0117] The local computing capacity f of vehicle terminal i under the optimal condition i l and data transmission power P i After determination, consider the utility function T(x,a,τ,f):
[0118]
[0119] At this point, problem P0 can be transformed into problem P1:
[0120] P1:
[0121] stC1:x i ∈{0,1}
[0122] C2:
[0123] C3:
[0124] C4:
[0125] C5:
[0126] The algorithm consists of three alternating phases: offloading decision generation, channel and computing resource allocation, and offloading strategy update. Figure 1 shown.
[0127] Offloading decision generation phase: In time frame t, by observing the wireless channel gain h i As input, use DNN to build a relaxed offloading decision x t As the mapping relationship between the outputs. Use the ReLu function as the activation function of the hidden layer of the neural network, and use the Sigmoid function as the activation function of the output layer of the neural network to make the output relaxation unloading decision x t Satisfy x i ∈(0,1). An order-preserving quantization method is used to relax the unloading decision x t Specifically, for a given 1≤K≤N+1, the relaxed unloading decision x t Generate a set of K quantized offloading decisions {x k}, as shown below:
[0128] The first binary uninstall decision generated is:
[0129]
[0130] x t The entries are sorted so that their distances are 0.5, expressed as |x t,(1) -0.5|≤|x t,(2) -0.5|≤…|x t,(i) -0.5|…|x t,(N) -0.5|, where x t,(i) For x t The i-th statistic of . Based on x t,(k-1) , for the kth (k=1,…,K) binary offloading decision x k for:
[0131]
[0132] Channel and computing resource allocation stage: decompose the problem into two sub-problems: offloading decision and resource allocation. Figure 1 shown.
[0133] The resource allocation subproblem P2 is expressed as:
[0134] P2:
[0135] stC2, C3, C4, C5
[0136] It can be decomposed into two sub-problems: transmission delay solution and computational delay solution, which are expressed as:
[0137] P3:
[0138] stC4、C5
[0139] P4:
[0140] stC2、C3
[0141] For the transmission delay subproblem P3, the interior point method is used to solve the time slot allocation {a,τ}; for the computational delay subproblem P4, the Lagrange dual method is used to solve the computational resource allocation f.
[0142] After solving the optimal channel time slot allocation decision and edge server computing resource allocation decision, the channel time slot allocation decision {a, τ i} and edge server computing resource allocation decision f i Substitute the total delay into problem P1 and select the minimum total delay as the optimal calculation delay. The corresponding offloading decision is the optimal offloading decision.
[0143] Unloading strategy update phase: Maintain an initial empty memory with limited capacity and update the optimal unloading decision x at the end of each time frame. i The corresponding wireless channel gain h i The empirical labeled data is stored in the memory and used to train the DNN. When the memory space is full, the oldest data in the memory is replaced with the latest data to ensure that the data samples used for training are reliable. A set of data samples are randomly selected from the memory for training using the experience replay technique. The Adam algorithm is used to update the DNN parameters θ by minimizing the cross entropy loss. After collecting enough empirical labeled data, the DNN only needs to be trained every δ time frames.
[0144] The present invention obtains simulation results by using Tensor Flow 1.0 in Python. Figures 3 to 8 .
[0145] We use Powercast TX91501-3W with P = 3 watts as the energy transmitter of the edge server and P2110 collector as the energy receiver of each vehicle terminal. We denote the distance from the i-th vehicle terminal to the edge server as d i , d iThe value of is evenly distributed between (2.5, 5.2) meters, that is, each vehicle terminal is evenly distributed in a circle with an upper and lower radius of (2.5, 5.2) meters centered on the edge server, so that the access point of the edge server can cover all vehicle terminals. Without loss of generality, we assume that the wireless channel gain remains unchanged within a time frame and changes independently between different time frames. We use the following rules to give the value of the weight factor of vehicle terminal i: If the number of vehicle terminal i is an odd number, then w i Set to 1, otherwise set to 1.5. Consider a neural network consisting of one input layer, two hidden layers, and one output layer, where the first and second layers contain 120 and 80 hidden neurons, respectively. Set the training interval δ = 10, the training batch size |T| = 128, the memory size is 1024, and the learning rate of the Adam optimizer is set to 0.01. Other parameter settings are shown in the following table:
[0146] Simulation parameters Parameter settings Bandwidth W 2MHZ <![CDATA[Computing task data volume D i > <![CDATA[5×10 6 bytes]]> <![CDATA[Channel noise power σ 2 > <![CDATA[1.0×10 -8 ]]> <![CDATA[Edge server computing power f M > <![CDATA[8×10 9 cycles / s]]> Edge server energy transmission power P 0.5W Number of cycles per bit φ 100 <![CDATA[Transmission overhead coefficient β i > 4
[0147] All simulation experiments are run on a computer equipped with an Intel Pentium CPU G860.
[0148] Figure 3 The figure shows the convergence of the neural network training loss. As we can see from the figure, as the number of training times increases, the training loss gradually decreases and gradually converges to a smaller value. After that, as the number of training times increases further, the training loss remains basically stable. We can assume that the algorithm can converge quickly in a vehicle environment with time-varying channel conditions, helping to make unloading decisions quickly.
[0149] definition The optimal system delay calculated by enumerating all binary offloading decisions using the greedy algorithm, T * (h,x) is the optimal delay obtained by the algorithm of the present invention. To show the effectiveness of the algorithm of the present invention in obtaining the optimal delay. The change of the benefit ratio is as follows Figure 4 As shown. When the training just started, we can see that the benefit ratio is about 0.9. At this time, it is obvious that there is still a large gap between the optimal delay obtained by the algorithm and the optimal delay calculated by the greedy algorithm. As the number of training times increases, we can see that the benefit ratio is constantly approaching 1, which means that the gap between the optimal delays obtained by the two algorithms is constantly narrowing. After the number of training times exceeds 2100, we can see that the benefit ratio basically approaches 1 and no longer changes. At this time, the gap between the optimal solutions obtained by the two algorithms is very small, and we can think that the proposed algorithm gradually converges to the optimal solution.
[0150] Figures 5 to 8 The effects of the learning rate, batch size, memory size, and training interval of the neural network in the Adam optimizer on the convergence performance and effective performance of the present invention are respectively,
[0151] The robustness of the present invention is analyzed in the scenario of alternating weights. At the beginning of the simulation experiment, the weights of all vehicle units are determined according to the parity of the serial numbers. For vehicle terminals with odd serial numbers, we set their weights to 1, and for vehicle terminals with even serial numbers, we set their weights to 1.5. When the number of training times reaches 2500, the weights of the vehicle terminals with odd and even serial numbers are swapped. Finally, when the number of training times reaches 3500, we restore the weights to their original states. We also use a greedy algorithm to obtain the optimal delay under different weight distributions to calculate the benefit ratio. The changes in training loss and benefit ratio are shown in the figure. Fig. 9 , Fig.10 As shown. Although the weights have changed, the training loss and benefit ratio are not affected, and a solution very close to the optimal solution can still be obtained. This shows that the present invention can quickly and automatically adjust the unloading strategy according to the changed weights, and finally converge to a new optimal unloading decision.
[0152] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations on the present invention. A person skilled in the art may change, modify, replace and modify the above embodiments within the scope of the present invention without departing from the principles and intent of the present invention.
Claims
1. A method for intelligent computing offloading in a vehicle edge computing scenario based on deep reinforcement learning, characterized in that: The following steps are involved: Step 1: Based on the wireless channel gain h within this time frame i , a relaxed offloading decision set x is generated through a deep neural network t ; Step 2: Use the order-preserving quantization method to convert the relaxed offloading decision set x generated in step 1 into t Quantified into K binary offloading decisions, the specific process is: For a given 1≤K≤N+1, the relaxed unloading decision x t Generate K quantized offloading decision sets {x k }(k=1,…,K); When k is 1, the first binary uninstall decision x is generated. 1,i for: where x t,i For uninstall decision x t The i-th element in ; x t The elements of are sorted according to their distance from 0.5, represented by |x t,(1) -0.5|≤|x t,(2) -0.5|≤…≤|x t,(i) -0.5|…≤|x t,(N) -0.5|, where x t,(i) For x t The i-th statistic of t,(k-1) , for the kth (k=1,…,K) binary offloading decision x k for: Step 3: Quantify each binary offloading decision x k Substitute into problem P1: Where N is the number of vehicle terminals, x i is the unloading action of vehicle terminal i (i=1,…,N), x i =1 means that the computing task of vehicle terminal i is offloaded to the edge server, x i =0 means that the computing task of vehicle terminal i is executed locally; f M is the total computing resources owned by the edge server, f i The computing resources allocated by the edge server to vehicle terminal i, is the total edge computing delay of vehicle terminal i, w i The weight factor for calculating the delay of vehicle terminal i task, is the local computing delay of vehicle terminal i, a is the proportion of energy channel transmission time from edge server to vehicle terminal, τ i is the proportion of channel duration of vehicle terminal i; Transform problem P1 into resource allocation sub-problem P2: Where φ is the number of cycles required to process 1 bit of task data, D i is the data volume of the computing task on vehicle terminal i, μ is the energy harvesting efficiency, P is the transmission power of the edge server, and h i is the wireless channel gain in the i-th time period, k i is the calculated energy efficiency coefficient of vehicle terminal i, β i is the transmission overhead coefficient of the uplink of vehicle terminal i; X0 and X1 are used to represent the set of vehicles that adopt local calculation and offload calculation respectively; W is the bandwidth of the wireless channel; σ 2 is the Gaussian noise spectrum density of the wireless channel; Step 4: Decompose problem P2 into two sub-problems P3 and P4: Solving problem P3 yields the time slot allocation {a,τ}; solving problem P4 yields the computing resource allocation f; Step 5: For each binary offloading decision, substitute the results of solving problems P3 and P4 into problem P1 and solve the resulting system delay. For all binary offloading decisions, select the binary offloading decision with the smallest system delay as the optimal offloading decision. Step 6: The optimal offloading decision and wireless channel gain h i Stored in memory as empirically labeled data; Step 7: Every δ time frames, randomly select a data sample from the memory, train the deep neural network, update the deep neural network parameters θ, and then return to step 1 until the method ends.
2. According to claim 1, a method for offloading intelligent computing in a vehicle edge computing scenario based on deep reinforcement learning is characterized in that: The total edge computing delay of vehicle terminal i is for in is the uplink data transmission delay of vehicle terminal i, The execution delay required for the edge server to execute the task transmitted from vehicle terminal i.
3. According to claim 1, a method for offloading intelligent computing in a vehicle edge computing scenario based on deep reinforcement learning is characterized in that: In step 4, the interior point method is used to solve problem P3 to obtain the time slot allocation {a,τ}; Use the Lagrange dual method to solve problem P4 and obtain the computing resource allocation f.
