A federated learning node resource allocation and incentive collaborative optimization method
By jointly designing an edge-cloud collaborative architecture, NOMA resource allocation, and Stackelberg game-theoretic incentives, the problems of resource heterogeneity, communication bottlenecks, and malicious behavior in federated learning are solved, training efficiency and security are improved, a fair incentive mechanism is achieved, and user participation is enhanced.
Patent Information
- Application Number
- CN202611242746.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-17
- Publication Date
- 2026-11-27
AI Technical Summary
Existing federated learning technologies suffer from resource heterogeneity and communication bottlenecks, malicious behavior threats, and insufficient participation incentives in multi-user collaborative scenarios, resulting in low training efficiency, poor security, and user churn.
By adopting a joint design of edge-cloud collaborative architecture, NOMA resource allocation, credit assessment and Stackelberg game incentives, the problems of communication interference, malicious behavior and insufficient participation motivation are solved by optimizing user-side resource allocation and server-side incentive mechanisms.
It significantly improved communication efficiency, enhanced system security, implemented a fair incentive mechanism, and increased user participation and system sustainability.
Smart Images

Figure CN123185607A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a cross-technology of mobile edge computing and federated learning, and in particular to a method for collaborative optimization of resource allocation and incentives for federated learning nodes, which is applicable to application scenarios such as multi-user collaborative training, data privacy protection, communication resource optimization, and user behavior incentives. Background Technology
[0002] With the rapid development of extended reality, digital twins, and artificial intelligence technologies, various distributed collaborative scenarios that blend the virtual and real worlds are constantly emerging, demonstrating enormous application potential in fields such as virtual social interaction, immersive entertainment, and the industrial internet. These collaborative scenarios typically feature multi-entity collaboration, strong real-time interaction, massive terminal access, and highly heterogeneous data, posing severe challenges to underlying network transmission, computing processing, and data security.
[0003] Federated learning, as a distributed machine learning framework that ensures "data does not leave the local machine," provides an ideal solution for balancing privacy protection and collaborative intelligence in various distributed collaborative scenarios.
[0004] However, existing federated learning technologies still face the following technical bottlenecks when directly applied to such distributed collaborative scenarios: First, resource heterogeneity and communication bottlenecks: User terminals in the scenario vary significantly in computing power, battery energy, and network conditions, leading to the "weakest link" effect, where the worst-performing user slows down the training speed of the entire system. Furthermore, concurrent uploads of model parameters by multiple users generate severe communication interference and resource contention. Existing orthogonal multiple access methods have low spectral efficiency, making it difficult to meet the scenario's requirements for low latency and high throughput. Second, malicious behavior and security threats: Federated learning systems are vulnerable to various malicious attacks, including data poisoning, disguised poisoning, collaborative poisoning, and "free-riding" (i.e., users contributing very little data in exchange for model services and rewards). These behaviors severely pollute the global model, waste computing resources, and undermine system fairness. Existing federated learning frameworks lack effective mechanisms for identifying and suppressing such complex malicious behaviors. Third, insufficient participation incentives: Participants in federated learning need to consume the computing and communication resources of their own devices and bear certain privacy risks. Without reasonable and effective economic incentives, rational users will lack the willingness to participate in the long term, leading to "cold start" and user churn issues for the system. Existing incentive mechanisms often fail to link user contributions, reputation, and rewards in a refined and dynamic manner, and rarely consider multiple realistic conditions such as budget constraints, latency constraints, and deterrence against malicious behavior.
[0005] Therefore, there is an urgent need to design a resource allocation and incentive mechanism for edge-cloud collaborative federated learning that can comprehensively consider factors such as user heterogeneity, communication efficiency, malicious behavior suppression, and economic incentives, so as to improve the training efficiency, security, and sustainability of federated learning in various distributed collaborative scenarios. Summary of the Invention
[0006] This invention addresses the shortcomings of existing technologies by providing a collaborative optimization method for resource allocation and incentives for federated learning nodes. It aims to solve the problems of low communication efficiency, rampant malicious behavior, and insufficient participation motivation in existing technologies through the joint design of edge-cloud collaborative architecture, NOMA resource allocation, credit assessment, and Stackelberg game incentives.
[0007] The technical solution of this invention is as follows:
[0008] A collaborative optimization method for resource allocation and incentives of federated learning nodes includes the following steps: Step S1: Construct a federated learning system model, the system model including: For mobile users, each user terminal is equipped with a computing and communication module to perform federated learning local training using local datasets and generate local model parameters; The MEC server, deployed at the network edge, is used to receive the local model parameters uploaded by users within its alliance, and to perform filtering, purification processing and reward allocation on the local model parameters. AI agent is used to aggregate effective parameters refined from one or more MEC servers, perform global model iteration, and distribute the updated global model to users; Step S2: Design a user-side uplink resource allocation method based on Non-Orthogonal Multiple Access (NOMA), including: Access MEC server Users are sorted in descending order of channel gain, and the user index is re-marked after sorting. ,in To access the MEC server The total number of users; To address channel interference between users, establish communication channels for each user. Uplink signal-to-interference-plus-noise ratio (SINR) model ,in For user transmit power, For noise power, To exclude users External access MEC server Other user indexes, To access the MEC server The user set, For users The transmission power, For users To MEC server Channel gain; Based on SINR constraints, establish user Uplink transmission rate model ,in This represents the total uplink bandwidth. Number of sub-channels; And solve the user's problem using a recursive method. Optimal transmit power Its recursive formula is To minimize communication latency and energy consumption during concurrent transmission by multiple users; among which, For the alliance Excluding users Other user indexes; Step S3: Construct a differentiated incentive mechanism based on Stackelberg game theory: The MEC server acts as the leader, responsible for deciding on fixed rewards. and contribution reward coefficient Users are treated as followers, and their participation in federated learning and choice of which MEC server alliance to join are determined based on their net benefits. Build users Net income function ,in, As an indicator variable for the validity of user parameters, MEC server Give users The reward For user data volume, For user credit score, Penalties for user latency violations Punishment for malicious behavior Cost of user participation; Build MEC server Net income function ,in Rewards are given to MEC servers for AI agents. Penalties for system latency violations The purification cost of MEC servers, MEC server Parameter selection of profit coefficient, MEC server The set of users served constitutes the alliance; Under the constraints of rationality, budget, capacity, latency, and penalty, the optimal fixed reward for the MEC server is solved using the Lagrange multiplier method. and the optimal contribution reward coefficient ; Step S4: Design an alliance iteration parameter algorithm. Through alternating iterations of two stages, "user alliance selection" and "MEC reward parameter optimization", solve the equilibrium solution of the Stackelberg game and output the optimal alliance structure and the corresponding optimal reward parameters.
[0009] Furthermore, the specific steps include: Step S1: Construct a federated learning system model This invention constructs a three-layer collaborative system architecture comprising a user layer, an MEC server layer, and a cloud AI agent layer.
[0010] (1) User layer: Each user (Equipped with VR / AR devices, smartphones, etc.) Possesses local datasets The amount of data is And possesses a certain computing power Users are responsible for training models using local data and uploading the resulting local model parameters to their respective MEC servers.
[0011] (2) MEC server layer: contains multiple MEC servers deployed at the network edge. The server is responsible for collecting parameters uploaded by users within its alliance, performing parameter standardization, cluster analysis, and outlier detection screening and purification operations, and distributing rewards to users based on their contributions. The purified and valid parameters will then be uploaded to the cloud-based AI agent.
[0012] (3) Cloud AI Agent Layer: As a global coordinator, it is responsible for aggregating valid parameters from various MEC servers, executing global model iteration, and distributing the updated global model parameters to all users to start the next round of training.
[0013] This three-layer architecture moves computing and intelligence from the cloud to the edge, effectively reducing core network load and end-to-end latency, and providing a foundation for the efficient deployment of federated learning.
[0014] Step S2: Design a user-side uplink resource allocation method based on NOMA To address the communication interference and resource contention issues caused by multiple users concurrently uploading model parameters, this invention introduces Non-Orthogonal Multiple Access (NOMA) technology.
[0015] For the uplink portion, all connections are made to the same MEC server. Users share the same resource blocks. The receiver (MEC server) uses serial interference cancellation technology to decode user signals in descending order of channel gain, with users having higher channel gain being decoded first.
[0016] Specifically, assuming the user equipment is based on channel gain Sort, then user The uplink signal-to-interference-plus-noise ratio (SINR) model is as follows: (1) in, User The actual power when uploading parameters User Channel gain, It is Gaussian noise power. It's interference from other users. To exclude users External access MEC server Other user indexes. The general SINR formula used in step 2 above (applicable to all multi-user scenarios) is used here, while the formula used here is a NOMA-specific formula. It utilizes the serial interference cancellation technology adopted by the MEC server in the NOMA system to decode user signals in descending order of channel gain. Therefore, user i is only affected by interference from users after it, and the signals of users before it have been successfully cancelled.
[0017] user The uplink transmission rate is given by Shannon's formula: (2) in, It's the uplink bandwidth. This refers to the number of sub-channels. To ensure communication quality for all users, the following conditions must be met. , The goal is to set a common target SINR. Using a recursive approach, starting with the user with the highest channel gain, the minimum transmit power that satisfies the constraints can be calculated for each user. : (3) in, For the alliance Excluding users Other user indexes, For users On the MEC server The uplink signal-to-interference-plus-noise ratio (SINNR) at a given point clearly reveals the coupling relationship between user power, channel conditions, and sequencing in a NOMA system. Power allocation using this method can significantly improve spectrum utilization and reduce communication latency and total energy consumption while ensuring service quality for all users.
[0018] Step S3: Construct a differentiated incentive mechanism based on Stackelberg game theory To address the issues of insufficient user engagement and malicious interference, this invention models the interaction between the MEC server and the user as a master-slave game (Stackelberg Game) model.
[0019] Leader (MEC Server): Each MEC server As a leader, the strategy is to decide on a two-part reward mechanism: a fixed reward... and contribution reward coefficient Its goal is to maximize its net profit. .
[0020] Followers (users): Each user As a follower, after observing the reward strategies of each MEC server, one should consider the net benefits they can gain from participating in federated learning. , rationally choose which MEC server alliance to join (or not to participate) in order to maximize their own interests.
[0021] User Net Revenue Model The design is as follows: (4) in, It is an indicator variable for parameter validity. If the user parameters pass basic screening such as IQR outlier detection by the MEC server, then Otherwise, it is 0; It is the reward that users receive from the MEC server, and it is different from fixed rewards and data volume. and user credit score Proportional. This is a penalty for user latency violations; if a user's local training latency exceeds the maximum allowed value. If such behavior is found, a fine will be imposed to limit the user's training time. It is a punishment for malicious behavior, used to exert economic deterrence against behaviors such as poisoning and hitchhiking. This represents the total cost of user participation, including latency and energy costs during the training and upload phases. and It is the time delay-economic cost conversion factor, which converts time delay costs into economic costs; and It is the energy consumption-economic cost conversion coefficient, which converts energy consumption costs into economic costs; It is a local training latency model built to characterize the time cost of users participating in training; This refers to the energy consumption during the user's local training phase. This refers to the user's uplink parameter transmission delay; This refers to the communication energy consumption during the user parameter upload process.
[0022] Credit assessment model In order to accurately identify malicious users and ride-sharing users, this invention designs a multi-dimensional credit assessment model.
[0023] (5) in, It is the average cosine similarity between the user's parameters and the parameters of other users within the same alliance. and As an indicator variable of validity Mean cosine similarity The weights of the two values reflect the consistency between the model's update direction and the mainstream trend. A very low similarity score may indicate poisoning.
[0024] MEC Server Net Revenue Model The design is as follows: (6) in, This is a reward given by the AI agent based on the quality of the valid parameters uploaded to the MEC server. This is a penalty for system latency violations; if the total latency of a training round is... Exceeding the maximum allowed value If so, a fine will be imposed on the MEC server. This refers to the cost incurred by the MEC server in performing parameter filtering and purification. It is the parameter selection benefit coefficient of MEC.
[0025] Optimization and Constraints: The goal of the MEC server is to maximize its net benefit, and its decision problem is formulated as follows:
[0026] The constraints include: 1. Rational constraints: Ensure user participation and benefits Not less than its retention utility .
[0027] 2. Budget constraints: Total reward expenditure for MEC servers Not exceeding the budget .
[0028] 3. Capacity constraints: MEC server service user count Not exceeding its capacity .
[0029] 4. Delay Constraints: The delay does not exceed the system's maximum set value.
[0030] 5. Punishment and constraints: To ensure that malicious users cannot gain any positive benefits from the system. Profits obtained by malicious users.
[0031] Solving for the optimal reward strategy: This invention employs the Lagrange multiplier method. Under the tight constraints of budget and penalty constraints, an analytical solution for the optimal reward parameters can be derived: (7) (8) in, The optimal contribution reward coefficient, For optimal fixed rewards, To increase the number of trustworthy users, Representative of a subset of trustworthy users ( ), The average cost for malicious users, The total credit weighted data for trustworthy users. Let be the average data volume of malicious users. This analytical solution directly correlates the optimal reward coefficient with the system budget, the average cost of malicious users, the average data contribution of malicious users, the overall contribution of honest users, the total number of honest users, and the malicious penalty coefficient, providing a clear and calculable basis for reward decisions for the MEC server.
[0032] Step S4: Design the alliance iterative parameter algorithm To solve the equilibrium of the Stackelberg game in a dynamic user environment, this invention designs a coalition iterative parameter algorithm. This algorithm iteratively executes the following two phases until the system converges: 1. Alliance Selection Phase (User Response): Each user According to the reward strategies currently announced by each MEC server Calculate the net benefit of joining each potential alliance. The leader selects the alliance with the highest and positive returns to join. This stage demonstrates the best response of followers to the leader's strategy.
[0033] 2. Reward Optimization Phase (Leader Decision): Each MEC server Its current number of alliance member users Once determined, the fixed reward is re-optimized according to formulas (7) and (8). and contribution reward coefficient In order to maximize their own net profit.
[0034] The two phases described above alternate. As the iteration progresses, users adjust their alliance selection based on the updated reward strategy, and the server updates its reward parameters according to the new alliance composition. When the alliance structure no longer changes, the system reaches Stackelberg equilibrium, and the output alliance structure and reward parameters at this point represent the optimal solution sought in this invention.
[0035] Refer to the attached diagram in the instruction manual. Figure 3 , 4 The decomposition and iteration process of the algorithm is demonstrated. This invention achieves joint optimization and dynamic matching of user-side resources (data, computing power) and server-side resources (budget, rewards) through this algorithm.
[0036] Furthermore, in step S1, the iterative process of local training in federated learning includes the following six stages: The first stage is the user's local training stage, and its latency model is: The energy consumption model is ,in These are the user's computing power parameters. The training energy consumption coefficient; The second stage is the stage of uploading user parameters to the MEC server, and its latency model is as follows: The energy consumption model is ,in Parameters uploaded by the user; The third stage is the MEC server parameter selection stage, and its latency model is as follows: The energy consumption model is ,in These are parameters related to the clustering algorithm. These are the computing power parameters for the MEC server. Process the energy consumption factor for the server; The fourth stage is the stage where the MEC server uploads parameters to the AI agent; The fifth stage is the AI agent global parameter iteration stage, and its latency model is as follows: The energy consumption model is ,in It is the number of CPU cycles required for the AI agent to calculate a unit parameter. It is the number of computation cycles that the AI agent's CPU can complete per second. Define the energy consumption coefficient for AI agent iteration; define the effective parameter set after removing outliers as follows: , The parameters after removing outliers are: ; The sixth stage is the stage where the AI agent sends parameters to the user, and its latency model is as follows: The energy consumption model is ,in For downlink transmission rate, These are the parameters sent out by the AI agent after updating the local model. It is the power of the parameters sent by the AI agent. This is the time when the AI agent sends out parameters.
[0037] Furthermore, in step S3, a user credit score is constructed. The model is: ,in, Let be the mean cosine similarity between the user parameter and the parameters of other users within the alliance, calculated using the following formula: , and These are the weighting coefficients. , users respectively , Uploaded to MEC server The parameters.
[0038] Furthermore, in step S3, the malicious behavior punishment The model is: , in This is the penalty coefficient for malicious acts.
[0039] Furthermore, in step S3, the rational constraint is... Net revenue for users Not less than its retention utility The budget constraint is That is, the total reward paid by the MEC server. Not exceeding its budget The capacity constraint is That is, the number of users served by a single MEC server. Not exceeding its maximum load capacity The time delay constraint is That is, the total delay of one round of federated learning Not exceeding the maximum allowable delay of the system The penalty constraint is This refers to the net profit that malicious users gain from the system. Not correct.
[0040] Furthermore, in step S3, because the MEC server will minimize reward expenditure to maximize its own profit in the Stackelberg game equilibrium, the budget constraint must be a tight constraint; simultaneously, to deter malicious behavior, the penalty constraint must also be a tight constraint. Other constraints (rationality constraint, capacity constraint, and latency constraint) are loose constraints during normal system operation. Therefore, under the condition that the budget constraint and penalty constraint are tight, because the MEC server will minimize reward expenditure to maximize its own profit in the Stackelberg game equilibrium, the budget constraint must be a tight constraint; simultaneously, to deter malicious behavior, the malicious deterrence penalty constraint must also be a tight constraint; other constraints (rationality constraint, capacity constraint, and latency constraint) are loose constraints during normal system operation. The optimal contribution reward coefficient obtained by solving using the Lagrange multiplier method... and optimal fixed reward The parsing expression is: , , in, MEC server The number of trustworthy users within the alliance The average cost for malicious users, This represents the average amount of data collected by malicious users. The total amount of credit-weighted data for trustworthy users. This is the malicious penalty coefficient. Budget for MEC servers.
[0041] Furthermore, in step S4, the alliance iterative parameter algorithm includes the following steps: Step S41: Initialize the alliance structure Reward parameters for MEC servers ; Step S42: Enter the alliance selection phase, each user Traverse all MEC servers According to the user's net benefit function Calculate the expected payoff for joining each candidate alliance, select the alliance with the highest payoff that satisfies the participation constraints, and update the current alliance structure. ; Step S43: Enter the reward parameter optimization phase for each MEC server. Based on the current user composition within the alliance, solve for the optimal fixed reward. and the optimal contribution reward coefficient ; Step S44: Determine the alliance structure Check if there has been a change. If there has been a change, proceed to step S42; if there has been no change, determine that the system has reached Stackelberg equilibrium and output the current optimal alliance structure. and optimal reward parameters .
[0042] Furthermore, when the MEC server performs screening and purification processing on the local model parameters, it employs a method combining K-means clustering algorithm and IQR outlier detection. Specifically, the K-means algorithm clusters the local model parameters into K clusters, then calculates the interquartile range (IQR) from the distance of each sample within a cluster to its cluster center, and identifies outliers with distances greater than a certain threshold. The samples were identified as outliers and removed, among which... It is at the 75th percentile.
[0043] The beneficial effects of this invention are as follows: 1. Improve communication and training efficiency: By introducing NOMA technology for uplink power allocation, multiple users can transmit parameters concurrently on the same resource block, which significantly improves spectrum utilization and uplink throughput, effectively reduces communication latency during the upload phase of federated learning models, and alleviates the "weakest link" effect caused by heterogeneous devices.
[0044] 2. Enhanced System Security and Robustness: A credit mechanism combining parameter validity screening and cosine similarity assessment is constructed, which can effectively identify and suppress malicious behaviors such as data poisoning, coordinated attacks, and free-riding. Simultaneously, by setting penalty constraints, it ensures that malicious behavior is not economically profitable, thus purifying the federated learning environment at its source.
[0045] 3. Achieving efficient and fair differentiated incentives: The "fixed + contribution" reward mechanism based on Stackelberg game theory can accurately link user rewards to their comprehensive contributions, such as data volume and credit score, within the constraints of the MEC server budget, thus achieving "rewarding the good and punishing the bad." Honest users receive higher rewards, while malicious and freeloader users have limited rewards, effectively improving user participation.
[0046] 4. Provides an analytical optimal strategy: Through rigorous mathematical derivation, an analytical expression for the optimal reward coefficient of the MEC server is given under key constraints, providing system operators with a clear and easy-to-implement decision-making basis and avoiding complex numerical optimization iterations.
[0047] 5. Superior system performance: Simulation experiments show that the mechanism proposed in this invention is significantly better than existing baseline algorithms such as fixed allocation, data volume ratio allocation, and reputation value ratio allocation in terms of total benefits for honest users, fairness of reward distribution, and ability to suppress malicious users. Attached Figure Description
[0048] Figure 1 This is a diagram of the overall architecture for collaborative training of MEC nodes in federated learning, which integrates credit assessment, anomaly detection, and game-theoretic incentives.
[0049] Figure 2 This is a flowchart illustrating the overall process of resource allocation for federated learning nodes in this invention. Figure 3 A flowchart illustrating the iterative selection of the user alliance in this invention; Figure 4 This is a schematic diagram of the game incentive mechanism proposed in this invention; Figure 5 This is a schematic diagram of the IQR outlier detection rule described in this invention; Figure 6 This is a bar chart showing the average benefits for three types of users and the MEC server under the algorithm proposed in this invention. Figure 7 This is a graph showing the impact of the contribution reward coefficient on the efficiency of the MEC server and the average efficiency of trustworthy users in the algorithm proposed in this invention. Figure 8 This is a graph showing the change in the average benefit of honest users under different user ratios for the algorithm proposed in this invention. Figure 9 This is a graph showing the change in the MEC server efficiency of the algorithm proposed in this invention under different user ratios. Figure 10 The graph shows the variation of the average benefit of the algorithm proposed in this invention for three types of users under different budgets. Figure 11 A bar chart comparing the total revenue of trustworthy users under different algorithms; Figure 12 A bar chart comparing the proportion of budget allocated to trustworthy users under each algorithm; Figure 13 A bar chart comparing the proportion of budget allocated to ride-sharing users under each algorithm; Figure 14 A bar chart comparing the proportion of budget allocated to malicious users under each algorithm; Figure 15 A stacked bar chart providing an overview of the proportion of budget allocated to the three types of users under each algorithm; Figure 16 A comparison chart of the response curves of rewards from different algorithms to user contributions. Detailed Implementation
[0050] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments. These embodiments are implemented based on the technical solution of the present invention, providing detailed implementation methods and specific operating procedures. However, the scope of protection of the present invention is not limited to the following embodiments.
[0051] Example: System Parameter Initialization This embodiment implements the method proposed in this invention in a simulated edge computing environment.
[0052] Network topology: Consider There are two MEC servers, each covering two different geographical regions. Several users are randomly distributed within the coverage area of two MEC servers. The channel gain between the users and the MEC servers... Generated based on distance and path loss models.
[0053] User configuration: Users are divided into three categories: trustworthy users (percentage) ), ride-sharing users (percentage) ) and malicious users (percentage) User data volume obey The data is uniformly distributed. The minimum effective data size threshold is set to... The user's local computing power The energy consumption coefficient of the device is set according to the parameters of mainstream mobile terminals.
[0054] MEC server configuration: per MEC server Budget (Unit: Virtual Points), Maximum Number of Users The server's computing power The unit processing overhead is referenced to the typical value for edge servers.
[0055] AI Agent Configuration: The cloud-based AI agent possesses powerful computing capabilities. It is responsible for performing global model aggregation, and the aggregation algorithm adopts the classic FedAvg.
[0056] Algorithm parameters: In the alliance iterative algorithm, parameters such as step size and convergence threshold are set to typical values.
[0057] Step S1: Construct and model the system First, following step S1 of the invention, a three-layer system architecture is established. Based on this, a precise mathematical model is performed on the complete process of one round of federated learning (one communication round), including: user local training latency. Energy consumption Uplink NOMA transmission delay Energy consumption MEC server filtering latency Energy consumption AI agent global iteration latency Energy consumption and downlink broadcast latency Energy consumption These models form the basis for all subsequent optimization and simulation analyses.
[0058] Step S2: Perform uplink resource allocation based on NOMA For each MEC server Assuming its current user set is Perform the following operations: 1. Channel ordering: Measure or obtain the channel gain of all users to the server. Sort the results in descending order to obtain the sorted user list. .
[0059] 2. SINR Target Setting: To ensure communication quality, a common target SINR is set. (For example, when the corresponding modulation and coding scheme is QPSK 1 / 2,) dB).
[0060] 3. Recursive Power Allocation: Based on Formula 3, starting with User 1 (best channel), calculate its minimum required transmit power:
[0061] Then calculate the power of user 2:
[0062] This process continues until the transmit power of all users is calculated. .
[0063] Through this NOMA power allocation, all users It can simultaneously and at the same frequency set its local model parameters Uploaded to MEC server .
[0064] Step S3: Construct and solve the Stackelberg game incentive model Sub-step S3.1: MEC server initializes reward policy During initialization, each MEC server Determine the initial reward strategy.
[0065] Sub-step S3.2: User alliance selection (follower game) Each user Make the following decisions: 1. Receive reward policies broadcast by all MEC servers. .
[0066] 2. For each MEC server They predicted the net gains they would receive if they joined their alliance. According to Formula 4, this requires calculation: Expected Rewards ,in It can be estimated based on the user's historical credit score.
[0067] Expected Costs It depends on the latency and energy consumption of its local training and uploading.
[0068] Potential punishment and .
[0069] 3. Select the MEC server that will bring the greatest positive returns. It then sends a join request. If there is no positive benefit, it will not participate in this round of training.
[0070] 4. MEC Server After receiving a user request, if the current alliance size It did not exceed its capacity limit. If so, then the user is accepted to join.
[0071] Sub-step S3.3: MEC server parameter filtering and credit update When the alliance After the MEC server is formed and all users have completed uploading parameters, Perform the following operations: 1. Parameter standardization: Standardizing the received parameter set. Standardize the data to eliminate the influence of dimensions.
[0072] 2. K-means clustering: Clusters the standardized parameters into... Clusters (e.g.) Or 3), identify the distribution of the main parameters.
[0073] 3. IQR Outlier Detection: For each cluster, calculate the Euclidean distance from all samples within that cluster to the cluster center. Calculate the first quartile of these distances. and the third and fourth quartiles The interquartile range is obtained. Distance greater than The samples were labeled as outliers (abnormal parameters). Refer to the attached diagram in the instruction manual. Figure 5 It visually demonstrates the IQR principle.
[0074] 4. Credit Assessment: Based on the results of step 3, set up indicator variables for user validity. (If the user parameter is not an outlier, then) Otherwise, the value is 0). Then, calculate each user's credit score according to Formula 5. .for Users who use this method will have very low credit scores.
[0075] 5. Malicious Punishment: For those judged to act maliciously (e.g., or parameter similarity Below the threshold Users who violate the formula will be subject to malicious penalties. .
[0076] Sub-step S3.4: MEC server reward parameter optimization (leader game) Upon learning of the current alliance All users , After obtaining cost information, the MEC server Based on Formulas 7 and 8, recalculate the optimal fixed reward. and contribution reward coefficient .
[0077] This optimization process is under budget constraints. and punishment constraints This is conducted under the guidance of [the relevant authority / organization]. The analytical solution enables the MEC server to quickly and accurately adjust its incentive strategy to maximize its own gains. .
[0078] Step S4: Alliance Iteration and Equilibrium Solution Following the algorithm described in step S4, the "User Alliance Selection" (sub-step S3.2) and "MEC Reward Optimization" (sub-step S3.4) are executed alternately.
[0079] The algorithm pseudocode is as follows: 1. Input: Set of users MEC server set Initial reward parameters ( ), system constraint parameters (preservation utility) ,Budget ,capacity ) 2. Output: Optimal alliance structure Optimal reward parameters ( ) 3. Initialize the optimal alliance structure Initial reward parameters
[0080] 4. While Optimal Alliance Structure Changes do 5. For each user do 6. Selection Phase: User Traverse all MEC servers Generate an alliance
[0081] 7. Utility Calculation Phase: User Calculate your credit score using formulas 4 and 5. And in the candidate alliance Net income
[0082] 8. Update the best alliance: users Choose the option that yields the greatest benefit and satisfies the following conditions. alliance Join the alliance and update the current alliance structure.
[0083] 9. End for 10. Reward Parameter Optimization Phase: for each MEC server do 11. Calculate the MEC server according to Formula 6. Net income under the current alliance
[0084] 12. Optimize reward parameters ( ), ensuring that conditions such as budget and penalty constraints are met. 13. End for 14. Update the optimal alliance structure
[0085] 15. End while 16. Output the optimal alliance structure Optimal reward parameters ( ) Simulation verification and effect analysis To verify the effectiveness of the method of the present invention, this embodiment conducted a large number of experiments on the Python simulation platform and compared it with a variety of baseline algorithms.
[0086] 1. Average User Benefit Analysis like Figure 6 The bar chart shown illustrates the average benefits of the system under the current experimental design for the three types of users and the MEC server. Honest users significantly benefit more than malicious users. While hitchhikers may receive a small gain, the system's penalties ultimately result in a negative benefit, forcing them to use more data to achieve positive returns. Overall, the chart reflects the effectiveness of the proposed mechanism, namely, a "rewarding the good and suppressing the bad" mechanism. The system's reward resources flow to users with high contributions and good reputations, making it difficult for malicious behavior to profit through the mechanism design.
[0087] 2. Analysis of the impact of contribution reward coefficient on efficiency Figure 7 Showing fixed rewards Under the condition, contribution reward coefficient The impact on MEC server efficiency and average efficiency of trustworthy users. The results show that, with... As the number of users with high integrity increases, the average benefit for trustworthy users rises slowly, while the benefit for MEC servers continues to decline, showing a clear inverse trend. This phenomenon indicates that... The increased sensitivity of the reward function to user contributions allows trustworthy users to earn more rewards for their higher contributions; however, the increased total amount of rewards paid to users by the platform compresses the net efficiency on the server side. Therefore, it is evident that... The choice will directly affect the system's balance between "user incentives" and "platform revenue." If... If the value is too small, it will not provide sufficient incentive for trustworthy users; if... If the value is too high, the platform's effectiveness may decline too quickly. Therefore, it is necessary to select a reasonable parameter between the two, taking into account the system objectives, so that the incentive mechanism can ensure the benefits for honest users while maintaining the platform's sustainable operation.
[0088] 3. The impact of user structure on system efficiency Benefits of trustworthy users: such as Figure 8 As shown, the average benefit of honest users increases with the proportion of honest users. This indicates that a healthy and honest participation environment is conducive to improving the benefits of high-quality users. When the proportion of malicious users increases, the benefits of honest users decrease. However, under a high proportion of malicious users, the surviving few high-quality honest users experience a temporary rebound in benefits due to the concentration of rewards, but ultimately decline sharply due to the overall deterioration of the environment.
[0089] MEC server benefits: such as Figure 9 As shown, the effectiveness of the MEC server increases significantly with the increase in the proportion of honest users, but decreases or even becomes negative with the increase in the proportion of malicious users. This confirms that malicious behavior can seriously damage platform revenue, highlighting the importance of the malicious suppression mechanism of this invention.
[0090] 4. The impact of budget on user benefits like Figure 10 As shown, with the MEC server budget With the increase in honest users, the average benefit of honest users continues to rise, while the average benefit of freeloaders and malicious users remains below zero. This proves that the mechanism proposed in this invention can effectively direct increased budget resources to honest users while continuously imposing economic pressure on dishonest users, thus achieving the design goal of "rewarding honesty and punishing malice".
[0091] 5. Comparative Analysis with Baseline Algorithms This invention selects five baseline algorithms for comparison: fixed allocation, data volume ratio allocation, reputation ratio allocation, budget logarithm ratio allocation, and budget index ratio allocation.
[0092] Budget allocation structure: such as Figure 11 As shown, the optimization algorithm of this invention yields the highest total reward for honest users, indicating that this method can allocate more budget to honest users with high actual contributions, thus achieving the best incentive effect. Figure 12 , 13 As shown in Figures 14 and 15, the optimization algorithm proposed in this invention can allocate the highest proportion of the budget to honest users and the lowest proportion of the budget to hitchhikers and malicious users, thus achieving the optimal "rewarding the good and punishing the bad" effect.
[0093] Reward-Contribution Response Curve: (e.g.) Figure 16 As shown, the reward curve of the algorithm of this invention steadily increases with the increase of user contribution value, and maintains a high reward level in the high contribution range. This indicates that the algorithm can effectively incentivize users with low to medium contribution to increase their participation, and also fully reward users with high contribution, with both the accuracy and effectiveness of the incentive being superior to other curves.
[0094] In summary, the experimental results strongly demonstrate that the proposed method for collaborative optimization of resource allocation and incentives for federated learning nodes has significant technical advantages and practical value in improving communication efficiency, suppressing malicious behavior, accurately incentivizing honest users, and maximizing the overall benefits of the system.
[0095] The above-described embodiments are merely one implementation of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the appended claims.
Claims
1. A method for collaborative optimization of resource allocation and incentives for federated learning nodes, characterized in that, Includes the following steps: Step S1: Construct a federated learning system model, the system model including: For mobile users, each user terminal is equipped with a computing and communication module to perform federated learning local training using local datasets and generate local model parameters; The MEC server, deployed at the network edge, is used to receive the local model parameters uploaded by users within its alliance, and to perform filtering, purification processing and reward allocation on the local model parameters. AI agent is used to aggregate effective parameters refined from one or more MEC servers, perform global model iteration, and distribute the updated global model to users; Step S2: Design a user-side uplink resource allocation method based on Non-Orthogonal Multiple Access (NOMA), including: Access MEC server Users are sorted in descending order of channel gain, and the user index is re-marked after sorting. ,in To access the MEC server The total number of users; To address channel interference between users, establish communication channels for each user. Uplink signal-to-interference-plus-noise ratio (SINR) model ,in For user transmit power, For noise power, To exclude users External access MEC server Other user indexes, To access the MEC server The user set, For users The transmission power, For users To MEC server Channel gain; Based on SINR constraints, establish user Uplink transmission rate model ,in This represents the total uplink bandwidth. Number of sub-channels; And solve the user's problem using a recursive method. Optimal transmit power Its recursive formula is To minimize communication latency and energy consumption during concurrent transmission by multiple users; among which, For the alliance Excluding users Other user indexes; Step S3: Construct a differentiated incentive mechanism based on Stackelberg game theory: The MEC server acts as the leader, responsible for deciding on fixed rewards. and contribution reward coefficient Users are treated as followers, and their participation in federated learning and choice of which MEC server alliance to join are determined based on their net benefits. Build users Net income function ,in, As an indicator variable for the validity of user parameters, MEC server Give users The reward For user data volume, For user credit score, Penalties for user latency violations Punishment for malicious behavior Cost of user participation; Build a MEC server Net income function ,in Rewards are given to MEC servers for AI agents. Penalties for system latency violations The purification cost of MEC servers, MEC server Parameter selection of profit coefficient, MEC server The set of users served constitutes the alliance; Under the constraints of rationality, budget, capacity, latency, and penalty, the optimal fixed reward for the MEC server is solved using the Lagrange multiplier method. and the optimal contribution reward coefficient ; Step S4: Design an alliance iteration parameter algorithm. Through alternating iterations of two stages, "user alliance selection" and "MEC reward parameter optimization", solve the equilibrium solution of the Stackelberg game and output the optimal alliance structure and the corresponding optimal reward parameters.
2. The method for collaborative optimization of resource allocation and incentives for federated learning nodes according to claim 1, characterized in that, In step S1, the iterative process of local training in federated learning includes the following six stages: The first stage is the user's local training stage, and its latency model is... The energy consumption model is ,in These are the user's computing power parameters. The training energy consumption coefficient; The second stage is the stage of uploading user parameters to the MEC server, and its latency model is as follows: The energy consumption model is ,in Parameters uploaded by the user; The third stage is the MEC server parameter selection stage, and its latency model is as follows: The energy consumption model is ,in These are parameters related to the clustering algorithm. These are the computing power parameters for the MEC server. Process the energy consumption factor for the server; The fourth stage is the stage where the MEC server uploads parameters to the AI agent; The fifth stage is the AI agent global parameter iteration stage, and its latency model is as follows: The energy consumption model is ,in It is the number of CPU cycles required for the AI agent to calculate a unit parameter. It is the number of computation cycles that the AI agent's CPU can complete per second. Define the energy consumption coefficient for AI agent iteration; define the effective parameter set after removing outliers as follows: , ;in, For the first The upper limit of the distance threshold that can be calculated for cluster samples. For users Uploaded to MEC server The parameters, These are parameters that have undergone standardization. For the first The cluster centers of each cluster; the parameters after removing outliers are... ,in For server The received parameter dataset; The sixth stage is the stage where the AI agent sends parameters to the user, and its latency model is as follows: The energy consumption model is ,in For downlink transmission rate, These are the parameters sent out by the AI agent after updating the local model. It is the power of the parameters sent by the AI agent. This refers to the time when the AI agent sends out parameters.
3. The method for collaborative optimization of resource allocation and incentives for federated learning nodes according to claim 1, characterized in that, In step S3, user credit scores are constructed. The model is: ,in, Let be the mean cosine similarity between the user parameter and the parameters of other users within the alliance, calculated using the following formula: , and These are the weighting coefficients. , users respectively , Uploaded to MEC server The parameters.
4. The method for collaborative optimization of resource allocation and incentives for federated learning nodes according to claim 1, characterized in that, In step S3, the malicious behavior punishment The model is: , in This is the penalty coefficient for malicious acts.
5. The method for collaborative optimization of resource allocation and incentives for federated learning nodes according to claim 1, characterized in that, In step S3, the rational constraint is Net revenue for users Not less than its retention utility The budget constraint is That is, the total reward paid by the MEC server. Not exceeding its budget The capacity constraint is That is, the number of users served by a single MEC server. Not exceeding its maximum load capacity The time delay constraint is That is, the total delay of one round of federated learning Not exceeding the maximum allowable delay of the system The penalty constraint is This refers to the net profit that malicious users gain from the system. Not correct.
6. The method for collaborative optimization of resource allocation and incentives for federated learning nodes according to claim 1, characterized in that, In step S3, under the condition that the budget constraint and penalty constraint are tight constraints, the optimal contribution reward coefficient is obtained by solving the Lagrange multiplier method. and optimal fixed reward The parsing expression is: , , in, MEC server The number of trustworthy users within the alliance The average cost for malicious users, This represents the average amount of data collected by malicious users. The total amount of credit-weighted data for trustworthy users. This is the malicious penalty coefficient. Budget for MEC servers.
7. The method for collaborative optimization of resource allocation and incentives for federated learning nodes according to claim 1, characterized in that, In step S4, the alliance iterative parameter algorithm includes the following steps: Step S41: Initialize the alliance structure Reward parameters for MEC servers ; Step S42: Enter the alliance selection phase, each user Traverse all MEC servers According to the user's net benefit function Calculate the expected payoff for joining each candidate alliance, select the alliance with the highest payoff that satisfies the rationality constraint, and update the current alliance structure. ; Step S43: Enter the reward parameter optimization phase for each MEC server. Based on the current user composition within the alliance, solve for the optimal fixed reward. and the optimal contribution reward coefficient ; Step S44: Determine the alliance structure Check if there has been a change. If there has been a change, proceed to step S42; if there has been no change, determine that the system has reached Stackelberg equilibrium and output the current optimal alliance structure. and optimal reward parameters .
8. The method for collaborative optimization of resource allocation and incentives for federated learning nodes according to claim 1, characterized in that, When the MEC server performs filtering and purification processing on the local model parameters, it employs a method combining K-means clustering algorithm and IQR outlier detection. Specifically, the K-means algorithm clusters the local model parameters into K clusters, then calculates the interquartile range (IQR) from the distance of each sample within a cluster to its cluster center, and identifies outliers with distances greater than a certain threshold. The samples were identified as outliers and removed, among which... It is at the 75th percentile.
