A privacy-preserving computation offloading method for multi-access edge computing
Through the dual-delay deep deterministic policy gradient algorithm and dual Q-value shear learning technology, combined with the priority experience replay pool and dual independent critic networks, the stability issues of privacy protection and computing offloading strategies in multi-access edge computing are solved, and the Efficient QoS and privacy protection.
Patent Information
- Application Number
- CN202410713019.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-04
AI Technical Summary
In a multi-access edge computing environment, it is difficult for existing technologies to effectively weigh the privacy security, delay, energy consumption and task discard rate of the system, resulting in user privacy leakage and unstable computing offloading strategies, affecting QoS.
It uses a double-delay deep deterministic policy gradient algorithm, combined with double Q-value shear learning technology, and uses a priority experience replay pool and dual independent critic networks to weigh delay, energy consumption, task discarding and privacy entropy to formulate an optimal computing offloading strategy. Ensure algorithm stability and learning efficiency.
It achieves maximizing QoS in multi-access edge computing while protecting user privacy, reducing the problems of low learning rate and unstable training, and improving the optimization effect and learning performance of the computing offloading strategy.
Smart Images

Figure CN118276986B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of multi-access edge computing, and in particular relates to a computation offloading method with privacy protection in multi-access edge computing. Background Art
[0002] The rapid development of Internet of Things (IoT) technology has promoted the popularity of various smart mobile devices around the world, resulting in the emergence of various smart applications in our daily lives, such as smart home and smart medical care. These smart applications have significantly improved the user experience quality. However, these applications usually generate a large number of computing tasks, which makes it impossible for resource-constrained mobile devices to meet the data processing and computing requirements, which seriously affects the performance and quality of service (QoS) of the application. In order to meet these challenges, Multi-Access Edge Computing (MEC) technology has emerged. By deploying computing, storage and other resources near mobile devices, MEC can process data near the location where the data is generated, thereby significantly reducing latency and energy consumption and improving data processing efficiency. Although MEC brings many benefits, how to efficiently manage MEC resources while protecting user privacy, especially how to determine the optimal offloading strategy between edge servers and user devices to improve QoS, has become a key issue.
[0003] In response to the above problems, some existing studies consider improving QoS by reducing system latency and energy consumption in a single access point environment. However, in comparison, a multi-access point environment is closer to reality. In this environment, it is often assumed that computing tasks are fine-grained. Depending on the amount of data, network conditions, etc., tasks with large amounts of data are offloaded to the nearest edge server with data processing capabilities, while tasks with smaller amounts of data are offloaded to relatively distant servers for processing. This method can achieve the lowest latency, energy consumption, and task discard rate, but this method also has certain disadvantages. If the edge server is monitored by an attacker, the user's specific location can be inferred from the locations of multiple edge servers and the user's offloading preferences, which leaks the user's location privacy.
[0004] Existing studies rarely consider the above issues comprehensively, and usually only focus on one or several of them. Therefore, it is necessary to jointly consider the privacy security, latency, energy consumption and task discard rate of the system in a multi-access point network to maximize QoS. However, in a complex and dynamic environment such as MEC, it is particularly difficult to solve the above problems using traditional methods such as Lyapunov optimization method, convex optimization method, heuristic technology, etc. In this context, Deep Reinforcement Learning (DRL) provides a new method for solving the computational offloading problem in MEC due to its outstanding performance in solving complex decision-making problems. DRL combines the representation learning ability of Deep Learning (DL) and the decision-making ability of Reinforcement Learning (RL), enabling it to obtain the optimal strategy through interactive learning with the environment without explicit instructions. However, there are also certain defects in using DRL to solve the computational offloading problem. For example, deep neural networks need to be trained according to the state of the environment, but the scales of different state features may vary greatly, which will lead to unstable network updates, and gradient explosion or gradient disappearance problems may occur during training, affecting the training results. In addition, small batches of samples are randomly drawn from the experience buffer pool to train the network. Although this method can break the correlation between samples to a certain extent and improve data utilization efficiency, it ignores the difference in the importance of samples, resulting in low learning rate and unstable training. Summary of the invention
[0005] In view of the above-mentioned deficiencies in the prior art, the present invention provides a computational offloading method with privacy protection in multi-access edge computing, which solves the problem that the prior method ignores the importance difference of samples, resulting in low learning rate and unstable training.
[0006] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is: a computing offloading method with privacy protection in multi-access edge computing, comprising the following steps:
[0007] S1. Get including N User devices and M The multi-access edge computing environment of the edge servers is constructed, and the delay, energy consumption, task discarding and privacy entropy in the computing offloading process are obtained according to the multi-access edge computing environment.
[0008] S2, weigh the delay, energy consumption, task discard and privacy entropy in the offloading process to obtain the QoS service model in the computation offloading process;
[0009] S3, using a double-delayed deep deterministic policy gradient algorithm to solve the QoS service model in the computation offloading process and obtain the optimal computation offloading strategy;
[0010] S4. Perform computation offloading based on the optimal computation offloading strategy to achieve computation offloading with privacy protection in multi-access edge computing.
[0011] The beneficial effects of the present invention are as follows: QoS is maximized by weighing multiple performances at the same time; the state is normalized during the training process to ensure the stability of the algorithm during the training process; by calculating the importance sampling weight of each sample and determining the priority, samples with higher priority are selected during sampling, thereby improving learning efficiency and performance; and two independent critic networks are used to reduce the problem of over-estimation bias.
[0012] Furthermore, the expression for calculating the delay during the unloading process in step S1 is:
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021] in, For the n Delay in offloading calculations to each user device; is the maximum value function; For the n local processing delays of individual user devices; For the n The user device offloads the task to the m The total latency of edge servers processing; m Number the edge server; For the n The transmission delay of a user device offloading the task to the first edge server; For the n The edge server processing delay when the user device offloads the task to the first edge server; For then The transmission delay of a user device offloading the task to the second edge server; For the n The edge server processing delay when the user device offloads the task to the second edge server; For the n The user device offloads the task to the m The transmission delay of each edge server; For the n The user device offloads the task to the m edge server processing latency for each edge server; For the n tasks that are processed locally on the user device; C The number of cycles required for the CPU to calculate 1 bit of data; For the n The number of CPU cycles that a user device can process in each time slot; For the n Uninstalled on user devices m The tasks handled by the edge server; For the n The user device offloads the task to the m The data transmission rate of each edge server; For the m The computation frequency of each edge server; To allocate to n The channel bandwidth of each user device; is a logarithmic function with base 2; is a sine function; For the n The user device and m The signal to interference plus noise ratio between edge servers; For the n The user device offloads the task to the m The transmission power of each edge server; For the n The user device offloads the task to the m The wireless channel gain of the edge servers; For the k The user device offloads the task to the m The transmission power of each edge server; For the k The user device offloads the task to the m The wireless channel gain of the edge servers; is the arithmetic square root of the channel noise; N is the total number of user devices; k andn All are user equipment numbers; is the basic channel gain at one meter from the edge server; For the n The horizontal coordinate of a user device; For the m The horizontal axis of the edge servers; For the n The vertical coordinate of each user device; For the m The vertical coordinate of the edge server.
[0022] The beneficial effect of the above further solution is: taking into account the delay required for processing the task and reducing the waiting time of the user.
[0023] Furthermore, the expression for calculating the energy consumption during the unloading process in step S1 is:
[0024]
[0025]
[0026]
[0027] in, For the n Energy consumption during computation offloading of each user device; For the n Local processing power consumption of each user device; For the n The user device offloads the task to the m The transmission energy consumption of each edge server; For the n The computing power of each user device; For the n local processing delays of individual user devices; For the n The user device offloads the task to the m The transmission power of each edge server; For the n The user device offloads the task to the m The transmission delay of each edge server; M is the total number of edge servers; m Number the edge server.
[0028] The beneficial effect of the above further solution is: considering the energy consumption required for processing tasks and extending the battery life of user equipment.
[0029] Furthermore, the expression for calculating the amount of task discards during the offloading process in step S1 is:
[0030]
[0031]
[0032] in, For the n Each user device calculates the amount of task discarded during the offloading process; For custom functions; For the n tasks that are processed locally on the user device; For the n The maximum number of tasks that can be calculated by a user device; For the n The number of CPU cycles that a user device can process in each time slot; is the time slot length; C The number of cycles required for the CPU to calculate 1 bit of data; For the n Uninstalled on user devices m The tasks handled by the edge server; For the n The user device offloads the task to the m The data transmission rate of each edge server; is a symbol for numerical values, which can be or .
[0033] The beneficial effect of the above further solution is: considering the amount of tasks discarded during the task processing process, and improving QoS.
[0034] Furthermore, the expression for calculating the privacy entropy during the uninstallation process in step S1 is:
[0035]
[0036]
[0037] in, For the n The privacy entropy of each user device during the offloading process; M is the total number of edge servers; m Number the edge server; For the n The user device offloads the task to the m The privacy entropy of edge servers; is a logarithmic function with base 2; For the n Uninstalled on user devices mThe tasks handled by the edge server; is the maximum value of privacy entropy; For the n The total tasks that are offloaded from user devices to edge servers for processing.
[0038] The beneficial effect of the above further scheme is: considering the privacy entropy during task processing and protecting user privacy.
[0039] Furthermore, the expression of the QoS service model in the offloading process calculated in step S2 is:
[0040]
[0041] in, It is the QoS service model in the process of computing offloading; is the trade-off factor of privacy entropy; For the n The privacy entropy of each user device during the offloading process; is the trade-off factor for latency; For the n Delay in offloading calculations to each user device; is the trade-off factor for energy consumption; For the n Energy consumption during computation offloading of each user device; is the trade-off factor for the task abandonment rate; For the n Each user equipment calculates the task discarding amount during the offloading process.
[0042] The beneficial effect of the above further scheme is to maximize QoS by simultaneously weighing the latency, energy consumption, task discarding and privacy entropy during computation offloading.
[0043] Furthermore, the step S3 is specifically as follows:
[0044] S301, obtain n UEs in time slot i The initial state vector is:
[0045]
[0046] in, For the n UEs in time slot i The initial state vector of For the n computing tasks for each user device; For the n The horizontal coordinate of a user device; For the nThe vertical coordinate of each user device;
[0047] S302, according to n UEs in time slot i The initial state vector of is used to normalize the task features and coordinate features respectively to obtain the normalized task features and coordinate features:
[0048]
[0049]
[0050]
[0051] in, is the normalized task feature; is the minimum value of the task characteristic; is the maximum value of the task feature; After normalization, n The horizontal coordinate of a user device; is the minimum value of the horizontal axis; is the maximum value of the horizontal axis; After normalization, n The vertical coordinate of each user device; is the minimum value of the vertical axis; is the maximum value of the vertical axis;
[0052] S303, according to the normalized task features and coordinate features, obtain the n Current status of user devices ;
[0053] S304, according to n Current status of user devices Based on the current status , using the current strategy obtained by the target actor network , select action :
[0054]
[0055] in, For time slot i The action of choice; For the n The task of offloading from a user device to the first edge server for processing; For the n offload tasks from a user device to the second edge server for processing; For the n tasks that are processed locally on the user device; For then Uninstalled on user devices m The tasks handled by the edge server; For the n The transmission power of a user device to offload tasks to the first edge server; For the n The transmission power of a user device to offload tasks to the second edge server; For the n The computing power of each user device; For the n The user device offloads the task to the m The transmission power of each edge server;
[0056] S305: Execute action After that, observe the reward and the initial state vector of the next time slot, normalize the initial state vector of the next time slot, and obtain the state vector of the next time slot , and the sample Stored in the priority experience playback pool; the rewards The expression is:
[0057]
[0058] in, It is the QoS model in the process of computing offloading; is the trade-off factor of privacy entropy; For the n The privacy entropy of each user device during the offloading process; is the trade-off factor for latency; For the n Delay in offloading calculations to each user device; is the trade-off factor for energy consumption; For the n Energy consumption during computation offloading of each user device; is the trade-off factor for the task abandonment rate; For the n Each user device calculates the amount of task discarded during the offloading process;
[0059] S306, repeating steps S301-S305 to obtain samples of different time slots until the number of samples in the priority experience replay pool reaches the initial set value;
[0060] S307, extracting a sample set from the priority experience replay pool in the form of priority experience replay;
[0061] S308. For each sample in the sample set, use the target actor network and the target critic network to obtain a number of target values corresponding to the samples:
[0062]
[0063]
[0064] in, For the sample set j The target value of samples; j Number the samples in the sample set; For the sample set j The reward corresponding to each sample; is the discount factor used to calculate the present value of future rewards; is the minimum function; For the first target critic network j The new state corresponding to the sample and actions Output: To add noise to the action; are the parameters of the first target critic network; For the second target critic network j The new state corresponding to the sample and actions Output: are the parameters of the second target critic network; For the target actor network j The new state corresponding to the sample Output action; is a function that limits the range of noise values; is the noise used for target strategy smoothing; c is the noise limit value;
[0065] S309, updating the two critic networks according to the samples in the sample set and the target values corresponding to the samples with the goal of minimizing the loss function;
[0066] S3010, after the update times of each critic network reaches a threshold, update the actor network; the update formula of the actor network is:
[0067]
[0068] in, is the update formula of the actor network; To replay from the priority experience pool DMedium sampling state expectations; For the sample set j The state corresponding to each sample; For Action The gradient of For the sample set j The action corresponding to each sample; is the state of the first critic network and the second critic network and actions The smaller value of the output; are the parameters of the selected critic network; To express in equal The symbol in the case of ; Based on the state of the actor network The strategy obtained; Outputs information about the actor network The gradient of is the output of the actor network; are the parameters of the actor network;
[0069] S3011, using the target soft update method to update the target actor network and the two target critic networks respectively;
[0070] S3012, obtaining new samples generated in the current iteration round, and storing the new samples in the priority experience replay pool;
[0071] S3013. Update the priority of each sample in the priority experience replay pool:
[0072]
[0073]
[0074]
[0075] in, For the t In the round iteration, the priority experience replay pool The priority of each sample; Numbers the samples in the priority experience replay pool; is the maximum value function; For the t The first critic network calculates the first TD error of samples; For the t The second critic network calculates the TD error of samples; is the adjustment parameter, which is a positive number; is an absolute value; is the first critic network's The status of the samples and actions The output function of is the second critic network's The status of the samples and actions The output function of To use the current target actor network and the current target critic network, the first The target value of samples;
[0076] S3014. Repeat steps S307-S3013 until the target actor network and the two target critic networks converge to stable values, and obtain the optimal computation offloading strategy.
[0077] The beneficial effects of the above further scheme are as follows: the state normalization process ensures the stability of the algorithm during the training process; by calculating the importance sampling weight of each sample and determining the priority, samples with higher priority are selected during sampling, thereby improving learning efficiency and performance; using two independent critic networks to reduce the over-estimation bias problem.
[0078] Furthermore, the step S307 is specifically to extract a sample set from the priority experience replay pool in the form of priority experience replay based on the sample importance; the expression of the sample importance is:
[0079]
[0080]
[0081]
[0082] in, Prioritize experience replay pool The sample importance of samples; is the total number of samples in the priority experience replay pool; Prioritize experience replay pool The sampling probability of samples; Numbers the samples in the priority experience replay pool; is a parameter used to control the magnitude of the weight change; is the priority parameter; is the priority of the sample in the previous iteration.
[0083] The beneficial effect of the above further scheme is: by calculating the importance sampling weight of each sample, the sampling bias is corrected.
[0084] Furthermore, the loss function of each critic network in step S309 is expressed as:
[0085]
[0086] in, For the x The loss function of the critic network; x The numbers of the critic network and target critic network group; For the x The parameters of the critic network; Prioritize experience replay pool D Expectations of sampling in ; For the x The critic network is a state and actions Output: For the sample set j The sample importance of samples; For the sample set j The target value of each sample.
[0087] The beneficial effect of the above further solution is: using two independent critic networks to reduce the over-estimation bias problem.
[0088] Furthermore, the update formulas of the target actor network and the target critic network in step S3011 are respectively:
[0089]
[0090]
[0091] in, Updated parameters for the target actor network; is the soft update parameter; are the parameters of the target actor network; For the x The updated parameters of the target critic network; x The numbers of the critic network and target critic network group; For the x The parameters of the critic network; For the x The parameters of the target critic network.
[0092] The beneficial effects of the above further scheme are: ensuring learning stability and improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0093] Figure 1 The present invention is a flow chart of the method.
[0094] Figure 2 This is a schematic diagram of the MEC environment built in an embodiment of the present invention. DETAILED DESCRIPTION
[0095] The specific implementation modes of the present invention are described below to facilitate those skilled in the art to understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.
[0096] like Figure 1 As shown, in one embodiment of the present invention, a method for computing offloading with privacy protection in multi-access edge computing includes the following steps:
[0097] S1. Get including N User devices and M The multi-access edge computing environment of the edge servers is constructed, and the delay, energy consumption, task discarding and privacy entropy in the computing offloading process are obtained according to the multi-access edge computing environment.
[0098] S2, weigh the delay, energy consumption, task discard and privacy entropy in the offloading process to obtain the QoS service model in the computation offloading process;
[0099] S3, using a double-delayed deep deterministic policy gradient algorithm to solve the QoS service model in the computation offloading process and obtain the optimal computation offloading strategy;
[0100] S4. Perform computation offloading based on the optimal computation offloading strategy to achieve computation offloading with privacy protection in multi-access edge computing.
[0101] In this embodiment, the technical solution of the present invention is as follows:
[0102] In a dynamically changing multi-user, multi-server MEC environment, the offloading preference of offloading tasks to the nearest edge server for processing allows attackers to infer the user's location privacy by combining multiple edge servers. Although offloading tasks to remote servers can confuse the attacker's judgment, this will result in greater energy consumption and delay. Therefore, the present invention introduces the concept of privacy entropy, reduces dependence on proximal servers, increases the use of remote servers, and protects user privacy by sacrificing certain performance. Then, a QoS model is formulated based on the user's privacy entropy, delay, energy consumption, and task discard rate. Based on the idea of the dual-delay deep deterministic policy gradient algorithm, a computational offloading algorithm is designed using dual Q-value clipping learning technology to find the optimal solution of the model. For each sample, the target actor network and the target critic network are used to calculate the target value, and the smaller one is taken to update the network, thereby reducing the valuation bias and improving the stability of the algorithm learning. When the network is updated, the actor network is updated every time a certain number of critic network updates are performed, further improving the stability of the algorithm.
[0103] According to the established model, the DRL algorithm needs to select actions based on the state in the edge environment, but the scales of different state features may vary greatly. In order to handle the scale differences of different state features, the state is normalized before the algorithm selects actions based on the state to ensure the stability of deep neural network training. At the same time, the state normalization technology improves the algorithm's ability to recognize small target features and enhances the generalization ability of the model.
[0104] After the state is normalized, the action, reward, current state and next state after the action is executed according to the state sampling are stored in the experience buffer pool, and the experience training samples are extracted from it. In order to avoid randomly sampling small batches of samples from the experience buffer pool to train the network, thereby ignoring the importance differences of samples, resulting in low learning rate and unstable training. Therefore, during the training process of the algorithm, a priority experience replay mechanism is introduced. By calculating the importance sampling weight of each sample and determining the priority, samples with higher priority are selected during sampling to improve learning efficiency and stability.
[0105] Finally, combining the above technologies, a privacy-preserving computational offloading method in MEC named TD3-SN-PER (the algorithm is the content mentioned in step S3 of the present invention) is invented.
[0106] In this embodiment, a MEC environment is built. The MEC environment considered is as follows Figure 2 As shown, the device generating the computing task may be a portable device, a smart vehicle, a home device, etc. Assuming that there are User equipment, denoted as , a total of edge servers, denoted as , the computing task of the user device is defined as , the task is fine-grained. Definition is the decision variable, when When all tasks are executed locally, ,when When all tasks are offloaded to the edge server for processing, , which means that the task can be assigned to multiple edge servers for simultaneous processing. When the task is partially processed locally and partially processed on the edge server, .
[0107] The expression for calculating the delay during the unloading process in step S1 is:
[0108]
[0109]
[0110]
[0111]
[0112]
[0113]
[0114]
[0115]
[0116] in, For the n Delay in offloading calculations to each user device; is the maximum value function; For the n local processing delays of individual user devices; For the n The user device offloads the task to the m The total latency of edge servers processing; m Number the edge server; For the n The transmission delay of a user device offloading the task to the first edge server; For the n The edge server processing delay when the user device offloads the task to the first edge server; For the n The transmission delay of a user device offloading the task to the second edge server; For the n The edge server processing delay when the user device offloads the task to the second edge server; For the n The user device offloads the task to the m The transmission delay of each edge server; For the n The user device offloads the task to the m edge server processing latency for each edge server; For the n tasks that are processed locally on the user device; C The number of cycles required for the CPU to calculate 1 bit of data; For the n The number of CPU cycles that a user device can process in each time slot; For the n Uninstalled on user devices m The tasks handled by the edge server; For the n The user device offloads the task to the m The data transmission rate of each edge server; For the m The computation frequency of each edge server; To allocate to n The channel bandwidth of each user device; is a logarithmic function with base 2; is a sine function; For the n The user device and m The signal to interference plus noise ratio between edge servers; For the n The user device offloads the task to the m The transmission power of each edge server; For the n The user device offloads the task to the m The wireless channel gain of the edge servers; For the k The user device offloads the task to the m The transmission power of each edge server; For the k The user device offloads the task to the m The wireless channel gain of the edge servers; is the arithmetic square root of the channel noise; N is the total number of user devices; k and n All are user equipment numbers; is the basic channel gain at one meter from the edge server; For the n The horizontal coordinate of a user device; For the m The horizontal axis of the edge servers; For the n The vertical coordinate of each user device; For the m The vertical coordinate of the edge server.
[0117] The expression for calculating the energy consumption during the unloading process in step S1 is:
[0118]
[0119]
[0120]
[0121] in, For the n Energy consumption during computation offloading of each user device; For the n Local processing power consumption of each user device; For the n The user device offloads the task to the m The transmission energy consumption of each edge server; For the n The computing power of each user device; For the n local processing delays of individual user devices; For the n The user device offloads the task to the m The transmission power of each edge server; For the n The user device offloads the task to the m The transmission delay of each edge server; M is the total number of edge servers; m Number the edge server.
[0122] The expression for calculating the task discard amount in the offloading process in step S1 is:
[0123]
[0124]
[0125] in, For the n Each user device calculates the amount of task discarded during the offloading process; For custom functions; For then tasks that are processed locally on the user device; For the n The maximum number of tasks that can be calculated by a user device; For the n The number of CPU cycles that a user device can process in each time slot; is the time slot length; C The number of cycles required for the CPU to calculate 1 bit of data; For the n Uninstalled on user devices m The tasks handled by the edge server; For the n The user device offloads the task to the m The data transmission rate of each edge server; is a symbol for numerical values, which can be or .
[0126] The expression for calculating the privacy entropy during the uninstallation process in step S1 is:
[0127]
[0128]
[0129] in, For the n The privacy entropy of each user device during the offloading process; M is the total number of edge servers; m Number the edge server; For the n The user device offloads the task to the m The privacy entropy of edge servers; is a logarithmic function with base 2; For the n Uninstalled on user devices m The tasks handled by the edge server; is the maximum value of privacy entropy; For the n The total tasks that are offloaded from user devices to edge servers for processing.
[0130] The expression for calculating the QoS service model in the offloading process in step S2 is:
[0131]
[0132] in, It is the QoS service model in the process of computing offloading; is the trade-off factor of privacy entropy; For the n The privacy entropy of each user device during the offloading process; is the trade-off factor for latency; For the n Delay in offloading calculations to each user device; is the trade-off factor for energy consumption; For the n Energy consumption during computation offloading of each user device; is the trade-off factor for the task abandonment rate; For the n Each user equipment calculates the task discarding amount during the offloading process.
[0133] The step S3 is specifically as follows:
[0134] S301, obtain n UEs in time slot i The initial state vector is:
[0135]
[0136] in, For the n UEs in time slot i The initial state vector of For the n computing tasks for each user device; For the n The horizontal coordinate of a user device; For the n The vertical coordinate of each user device;
[0137] S302, according to n UEs in time slot i The initial state vector of is used to normalize the task features and coordinate features respectively to obtain the normalized task features and coordinate features:
[0138]
[0139]
[0140]
[0141] in, is the normalized task feature; is the minimum value of the task characteristic; is the maximum value of the task feature; After normalization, n The horizontal coordinate of a user device; is the minimum value of the horizontal axis; is the maximum value of the horizontal axis; After normalization, n The vertical coordinate of each user device; is the minimum value of the vertical axis; is the maximum value of the vertical axis;
[0142] S303, according to the normalized task features and coordinate features, obtain the n Current status of user devices ;
[0143] S304, according to n Current status of user devices Based on the current status , using the current strategy obtained by the target actor network , select action :
[0144]
[0145] in, For time slot i The action of choice; For the n The task of offloading from a user device to the first edge server for processing; For the n offload tasks from a user device to the second edge server for processing; For the n tasks that are processed locally on the user device; For the n Uninstalled on user devices m The tasks handled by the edge server; For the n The transmission power of a user device to offload tasks to the first edge server; For the n The transmission power of a user device to offload tasks to the second edge server; For the n The computing power of each user device; For the n The user device offloads the task to the m The transmission power of each edge server;
[0146] S305: Execute action After that, observe the reward and the initial state vector of the next time slot, normalize the initial state vector of the next time slot, and obtain the state vector of the next time slot , and the sample Stored in the priority experience playback pool; the rewards The expression is:
[0147]
[0148] in, It is the QoS model in the process of computing offloading; is the trade-off factor of privacy entropy; For the n The privacy entropy of each user device during the offloading process; is the trade-off factor for latency; For the n Delay in offloading calculations to each user device; is the trade-off factor for energy consumption; For the n Energy consumption during computation offloading of each user device; is the trade-off factor for the task abandonment rate; For the n Each user device calculates the amount of task discarded during the offloading process;
[0149] S306, repeating steps S301-S305 to obtain samples of different time slots until the number of samples in the priority experience replay pool reaches the initial set value;
[0150] S307, extracting a sample set from the priority experience replay pool in the form of priority experience replay;
[0151] S308. For each sample in the sample set, use the target actor network and the target critic network to obtain a number of target values corresponding to the samples:
[0152]
[0153]
[0154] in, For the sample set j The target value of samples; j Number the samples in the sample set; For the sample set j The reward corresponding to each sample; is the discount factor used to calculate the present value of future rewards; is the minimum function; For the first target critic network j The new state corresponding to the sample and actions Output: To add noise to the action; are the parameters of the first target critic network; For the second target critic network j The new state corresponding to the sample and actions Output: are the parameters of the second target critic network; For the target actor network j The new state corresponding to the sample Output action; is a function that limits the range of noise values; is the noise used for target strategy smoothing; c is the noise limit value;
[0155] S309, updating the two critic networks according to the samples in the sample set and the target values corresponding to the samples with the goal of minimizing the loss function;
[0156] S3010, after the update times of each critic network reaches a threshold, update the actor network; the update formula of the actor network is:
[0157]
[0158] in, is the update formula of the actor network; To replay from the priority experience pool D Medium sampling state expectations; For the sample set j The state corresponding to each sample; For Action The gradient of For the sample set j The action corresponding to each sample; is the state of the first critic network and the second critic network and actions The smaller value of the output; are the parameters of the selected critic network; To express in equal The symbol in the case of ; Based on the state of the actor network The strategy obtained; Outputs information about the actor network The gradient of is the output of the actor network; are the parameters of the actor network;
[0159] S3011, using the target soft update method to update the target actor network and the two target critic networks respectively;
[0160] S3012, obtaining new samples generated in the current iteration round, and storing the new samples in the priority experience replay pool;
[0161] S3013. Update the priority of each sample in the priority experience replay pool:
[0162]
[0163]
[0164]
[0165] in, For the t In the round iteration, the priority experience replay pool The priority of each sample; Numbers the samples in the priority experience replay pool; is the maximum value function; For the t The first critic network calculates the first TD error of samples; For the t The second critic network calculates the TD error of samples; is the adjustment parameter, which is a positive number; is an absolute value; is the first critic network's The status of the samples and actions The output function of is the second critic network's The status of the samples and actions The output function of To use the current target actor network and the current target critic network, the first The target value of samples;
[0166] S3014. Repeat steps S307-S3013 until the target actor network and the two target critic networks converge to stable values, and obtain the optimal computation offloading strategy.
[0167] The step S307 specifically involves extracting a sample set from the priority experience replay pool in the form of priority experience replay based on the sample importance; the expression of the sample importance is:
[0168]
[0169]
[0170]
[0171] in, Prioritize experience replay pool The sample importance of samples; is the total number of samples in the priority experience replay pool; Prioritize experience replay pool The sampling probability of samples; Numbers the samples in the priority experience replay pool; is a parameter used to control the magnitude of the weight change; is the priority parameter; is the priority of the sample in the previous iteration.
[0172] The loss function of each critic network in step S309 is expressed as:
[0173]
[0174] in, For the x The loss function of the critic network; x The numbers of the critic network and target critic network group; For the x The parameters of the critic network; Prioritize experience replay pool D Expectations of sampling in ; For the x The critic network is a state and actions Output: For the sample set j The sample importance of samples; For the sample set j The target value of each sample.
[0175] The update formulas of the target actor network and the target critic network in step S3011 are:
[0176]
[0177]
[0178] in, Updated parameters for the target actor network; is the soft update parameter; are the parameters of the target actor network; For the x The updated parameters of the target critic network; x The numbers of the critic network and target critic network group; For the x The parameters of the critic network; For the x The parameters of the target critic network.
Claims
1. A privacy-preserving computation offloading method in multi-access edge computing. It is characterized in that The following steps are involved: S1. Get including User devices and The multi-access edge computing environment of the edge servers is constructed, and the delay, energy consumption, task discarding amount and privacy entropy in the computing offloading process are obtained according to the multi-access edge computing environment. S2, weigh the delay, energy consumption, task discard and privacy entropy in the offloading process to obtain the QoS service model in the computation offloading process; S3, using a double-delayed deep deterministic policy gradient algorithm to solve the QoS service model in the computation offloading process, and obtain the optimal computation offloading strategy; the step S3 is specifically as follows: S301, obtain the UE in time slot The initial state vector is: in, For the UE in time slot The initial state vector of For the computing tasks for each user device; For the The horizontal coordinate of a user device; For the The vertical coordinate of each user device; S302, according to UE in time slot The initial state vector of is used to normalize the task features and coordinate features respectively to obtain the normalized task features and coordinate features: in, is the normalized task feature; is the minimum value of the task characteristic; is the maximum value of the task feature; After normalization, The horizontal coordinate of a user device; is the minimum value of the horizontal axis; is the maximum value of the horizontal axis; After normalization, The vertical coordinate of each user device; is the minimum value of the vertical axis; is the maximum value of the vertical axis; S303, according to the normalized task features and coordinate features, obtain the Current status of user devices ; S304, according to Current status of user devices Based on the current status , using the current strategy obtained by the target actor network , select action : in, For the The action of time slot selection; For the The task of offloading from a user device to the first edge server for processing; For the offload tasks from a user device to the second edge server for processing; For the tasks that are processed locally on the user device; For the Uninstalled on user devices The tasks handled by the edge server; For the The transmission power of a user device to offload tasks to the first edge server; For the The transmission power of a user device to offload tasks to the second edge server; For the The computing power of each user device; For the The user device offloads the task to the The transmission power of each edge server; S305: Execute action After that, observe the reward and the initial state vector of the next time slot, normalize the initial state vector of the next time slot, and obtain the state vector of the next time slot , and the sample Stored in the priority experience playback pool; the rewards The expression is: in, It is the QoS model in the process of computing offloading; is the trade-off factor of privacy entropy; For the The privacy entropy of each user device during the offloading process; is the trade-off factor for latency; For the Delay in computing offload process for each user device; is the trade-off factor for energy consumption; For the Energy consumption during computation offloading of each user device; is the trade-off factor for the task abandonment rate; For the Each user device calculates the amount of task discarded during the offloading process; S306, repeating steps S301-S305 to obtain samples of different time slots until the number of samples in the priority experience replay pool reaches the initial set value; S307, extracting a sample set from the priority experience replay pool in the form of priority experience replay; the step S307 is specifically extracting a sample set from the priority experience replay pool in the form of priority experience replay based on sample importance; the expression of sample importance is: in, Prioritize experience replay pool The sample importance of samples; is the total number of samples in the priority experience replay pool; Prioritize experience replay pool The sampling probability of samples; Numbers the samples in the priority experience replay pool; is a parameter used to control the magnitude of the weight change; is the priority parameter; is the priority of the sample in the previous iteration; S308. For each sample in the sample set, use the target actor network and the target critic network to obtain a number of target values corresponding to the samples: in, For the sample set The target value of samples; Number the samples in the sample set; For the sample set The reward corresponding to each sample; is the discount factor used to calculate the present value of future rewards; is the minimum function; For the first target critic network The new state corresponding to the sample and actions Output: To add noise to the action; are the parameters of the first target critic network; For the second target critic network The new state corresponding to the sample and actions Output: are the parameters of the second target critic network; For the target actor network The new state corresponding to the sample Output action; is a function that limits the range of noise values; is the noise used for target strategy smoothing; is the noise limit value; S309, updating the two critic networks according to the samples in the sample set and the target values corresponding to the samples with the goal of minimizing the loss function; S3010, after the update times of each critic network reaches a threshold, update the actor network; the update formula of the actor network is: in, is the update formula of the actor network; To replay from the priority experience pool Medium sampling state expectations; For the sample set The state corresponding to each sample; Number the samples in the sample set; For Action The gradient of For the sample set The action corresponding to each sample; is the state of the first critic network and the second critic network and actions The smaller value of the output; are the parameters of the selected critic network; To express in equal The symbol in the case of ; Based on the state of the actor network The strategy obtained; Outputs information about the actor network The gradient of is the output of the actor network; are the parameters of the actor network; S3011, using the target soft update method to update the target actor network and the two target critic networks respectively; S3012, obtaining new samples generated in the current iteration round, and storing the new samples in the priority experience replay pool; S3013. Update the priority of each sample in the priority experience replay pool: in, For the In the round iteration, the priority experience replay pool The priority of each sample; Numbers the samples in the priority experience replay pool; is the maximum value function; For the The first critic network calculated in the first iteration TD error of samples; For the The second critic network calculates the first TD error of samples; is the adjustment parameter, which is a positive number; is an absolute value; is the first critic network's The status of the samples and actions The output function of is the second critic network's The status of the samples and actions The output function of To use the current target actor network and the current target critic network, the first The target value of samples; S3014, repeating steps S307-S3013 until the target actor network and the two target critic networks converge to stable values, and obtaining the optimal computation offloading strategy; S4. Perform computation offloading based on the optimal computation offloading strategy to achieve computation offloading with privacy protection in multi-access edge computing.
2. The method for offloading computation with privacy protection in multi-access edge computing according to claim 1, It is characterized in that The expression for calculating the delay during the unloading process in step S1 is: in, For the Delay in computing offload process for each user device; is the maximum value function; For the local processing delays of individual user devices; For the The user device offloads the task to the The total latency of edge servers processing; Number the edge server; For the The transmission delay of a user device offloading the task to the first edge server; For the The edge server processing delay when the user device offloads the task to the first edge server; For the The transmission delay of a user device offloading the task to the second edge server; For the The edge server processing delay when the user device offloads the task to the second edge server; For the The user device offloads the task to the The transmission delay of each edge server; For the The user device offloads the task to the edge server processing latency for each edge server; For the tasks that are processed locally on the user device; The number of cycles required for the CPU to calculate 1 bit of data; For the UEs in each time slot The number of CPU cycles that can be processed; For the Uninstalled on user devices The tasks handled by the edge server; For the The user device offloads the task to the The data transmission rate of each edge server; For the The computation frequency of each edge server; To allocate to The channel bandwidth of each user equipment; is a logarithmic function with base 2; is a sine function; For the The user device and The signal to interference plus noise ratio between edge servers; For the The user device offloads the task to the The transmission power of each edge server; For the The user device offloads the task to the The wireless channel gain of the edge servers; For the The user device offloads the task to the The transmission power of each edge server; For the The user device offloads the task to the The wireless channel gain of the edge servers; is the arithmetic square root of the channel noise; is the total number of user devices; and All are user equipment numbers; is the basic channel gain at one meter from the edge server; For the The horizontal coordinate of a user device; For the The horizontal axis of the edge servers; For the The vertical coordinate of each user device; For the The vertical coordinate of the edge server.
3. The method for offloading computation with privacy protection in multi-access edge computing according to claim 1, It is characterized in that The expression for calculating the energy consumption during the unloading process in step S1 is: in, For the Energy consumption during computation offloading of each user device; For the Local processing power consumption of each user device; For the The user device offloads the task to the The transmission energy consumption of each edge server; For the The computing power of each user device; For the local processing delays of individual user devices; For the The user device offloads the task to the The transmission power of each edge server; For the The user device offloads the task to the The transmission delay of each edge server; is the total number of edge servers; Number the edge server.
4. According to the method for offloading computation with privacy protection in multi-access edge computing of claim 1, It is characterized in that The expression for calculating the task discard amount in the offloading process in step S1 is: in, For the Each user device calculates the amount of task discarded during the offloading process; For custom functions; For the tasks that are processed locally on the user device; For the The maximum number of tasks that can be calculated by a user device; For the UEs in each time slot The number of CPU cycles that can be processed; is the time slot length; The number of cycles required for the CPU to calculate 1 bit of data; For the Uninstalled on user devices The tasks handled by the edge server; For the The user device offloads the task to the The data transmission rate of each edge server; is a symbol for numerical values, which can be or .
5. The method for offloading computation with privacy protection in multi-access edge computing according to claim 1, It is characterized in that The expression for calculating the privacy entropy during the uninstallation process in step S1 is: in, For the The privacy entropy of each user device during the offloading process; is the total number of edge servers; Number the edge server; For the The user device offloads the task to the The privacy entropy of edge servers; is a logarithmic function with base 2; For the Uninstalled on user devices The tasks handled by the edge server; is the maximum value of privacy entropy; For the The total tasks that are offloaded from user devices to edge servers for processing.
6. The method for offloading computation with privacy protection in multi-access edge computing according to claim 1, It is characterized in that The expression for calculating the QoS service model in the offloading process in step S2 is: in, It is the QoS service model in the process of computing offloading; is the trade-off factor of privacy entropy; For the The privacy entropy of each user device during the offloading process; is the trade-off factor for latency; For the Delay in computing offload process for each user device; is the trade-off factor for energy consumption; For the Energy consumption during computation offloading of each user device; is the trade-off factor for the task abandonment rate; For the Each user equipment calculates the task discarding amount during the offloading process.
7. The method for offloading computation with privacy protection in multi-access edge computing according to claim 1, It is characterized in that The loss function of each critic network in S309 is expressed as: in, For the The loss function of the critic network; The numbers of the critic network and target critic network group; For the The parameters of the critic network; Prioritize experience replay pool Expectations of sampling in ; For the The critic network is a state and actions Output: For the sample set The sample importance of samples; For the sample set The target value of each sample.
8. The method for offloading computation with privacy protection in multi-access edge computing according to claim 1, It is characterized in that The update formulas of the target actor network and the target critic network in step S3011 are: in, Updated parameters for the target actor network; is the soft update parameter; are the parameters of the target actor network; For the The updated parameters of the target critic network; The numbers of the critic network and target critic network group; For the The parameters of the critic network; For the The parameters of the target critic network.
