A resource allocation method and device for federated learning

By reading and utilizing resource allocation configuration information in collaborative learning, identifying target demanders and resource contributors, and calculating matching allocation values, the problem of unfair evaluation reward mechanisms is solved, promoting the enthusiasm of resource contributors and the authenticity of data, and ensuring the long-term sustainability of collaborative learning.

CN116502812BActive Publication Date: 2026-11-27新奥新智科技有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210050177.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-17
Publication Date
2026-11-27
Estimated Expiration
2042-01-17

AI Technical Summary

Technical Problem

In existing technologies, the evaluation and reward mechanisms for collaborative learning mostly adopt an average distribution method, which leads to unreasonable and unfair distribution, and easily causes the loss of participants with sufficient and effective data, thus affecting the long-term sustainable development of collaborative learning.

Method used

By reading preset resource allocation configuration information, including attribute configuration information, contribution configuration information, and monitoring configuration information, the system obtains the demand information of the model demanders, identifies the target demanders and resource contributors, calculates and feeds back matching allocation values ​​based on this information, motivates resource contributors and constrains them to provide real and effective model parameters.

Benefits of technology

This ensures the fairness and effectiveness of resource allocation, motivates resource contributors, guarantees the provision of authentic and effective model parameters, and promotes the long-term, healthy, and sustainable development of collaborative learning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116502812B_ABST
    Figure CN116502812B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the technical field of machine learning, and provides a resource allocation method and device for federated learning. The method comprises the following steps: reading preset resource allocation configuration information; obtaining model demand information provided by a plurality of model demand parties, the resource allocation configuration information comprising attribute configuration information, contribution degree configuration information and monitoring configuration information; determining a target demand party according to the attribute configuration information and the model demand information; determining a plurality of target resource contribution parties matched with the model demand information, and obtaining model resources of each target resource contribution party; and determining an allocation value corresponding to each target resource contribution party according to the attribute configuration information, the contribution degree configuration information, the monitoring configuration information and the model resources. The present disclosure can make each target resource contribution party obtain an allocation value matched with the model resources provided by the target resource contribution party, stimulate the enthusiasm of the resource contribution party in providing model resources, and be conducive to long-term and sustainable development of federated learning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of machine learning technology, and in particular to a resource allocation method and apparatus for collaborative learning. Background Technology

[0002] In an environment where privacy and data protection are receiving increasing attention, federated learning has become a very popular research direction in the field of artificial intelligence. Federated learning refers to the comprehensive utilization of multiple AI (Artificial Intelligence) technologies, collaborating with multiple parties to jointly explore the value of data and foster new intelligent business models and formats based on collaborative modeling, while ensuring data security and user privacy.

[0003] For federated learning, the continuous participation of stakeholders in the process (e.g., through sharing encrypted model parameters) is crucial for its long-term success. However, in existing technologies, the evaluation and reward mechanisms for federated learning mostly adopt an average distribution method, which inevitably leads to problems such as unreasonable and unfair distribution. This can easily cause some stakeholders with sufficient and effective data to leave due to unfair incentive distribution, which will undoubtedly be detrimental to the long-term healthy and sustainable development of federated learning. Summary of the Invention

[0004] In view of this, the present disclosure provides a resource allocation method and apparatus for collaborative learning to solve the problem that most of the evaluation and reward mechanisms for collaborative learning in the prior art adopt an average allocation method, which inevitably leads to problems such as unreasonable and unfair allocation. This can easily cause some participants with sufficient and effective data to be lost due to unfair incentive allocation, which is not conducive to the long-term healthy and sustainable development of collaborative learning.

[0005] A first aspect of this disclosure provides a resource allocation method for joint learning, comprising:

[0006] Read the preset resource allocation configuration information, which includes attribute configuration information, contribution configuration information, and monitoring configuration information;

[0007] Obtain model requirement information from multiple model requesters, and determine the target requester based on attribute configuration information and model requirement information;

[0008] Identify multiple target resource contributors that match the model requirements information, and obtain the model resources for each target resource contributor, including model parameters and the amount of effective training data.

[0009] Based on the attribute configuration information, contribution configuration information, monitoring configuration information, and model resources, determine the allocation value corresponding to each target resource contributor, and feed back the allocation value to each target resource contributor.

[0010] A second aspect of this disclosure provides a resource allocation apparatus for collaborative learning, comprising:

[0011] The reading module is configured to read preset resource allocation configuration information, which includes attribute configuration information, contribution configuration information, and monitoring configuration information.

[0012] The demand side determination module is configured to obtain model demand information provided by multiple model demand sides, and determine the target demand side based on the attribute configuration information and model demand information.

[0013] The resource acquisition module is configured to identify multiple target resource contributors that match the model requirement information, and acquire the model resources of each target resource contributor, including model parameters and the amount of effective training data.

[0014] The allocation module is configured to determine the allocation value for each target resource contributor based on attribute configuration information, contribution configuration information, monitoring configuration information, and model resources, and then feed the allocation value back to each target resource contributor.

[0015] A third aspect of this disclosure provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method described above.

[0016] A fourth aspect of this disclosure provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described method.

[0017] Compared with the prior art, the beneficial effects of this disclosure embodiment include at least the following: This disclosure embodiment reads preset resource allocation configuration information, including attribute configuration information, contribution configuration information, and monitoring configuration information; obtains model demand information provided by multiple model demanders; determines target demanders based on attribute configuration information and model demand information; determines multiple target resource contributors matching the model demand information; obtains model resources for each target resource contributor, including model parameters and effective training data volume; determines the allocation value corresponding to each target resource contributor based on attribute configuration information, contribution configuration information, monitoring configuration information, and model resources; and feeds back the allocation value to each target resource contributor. This fully considers factors such as the contribution of each target resource contributor to the utility of the model required by the model demander, so that each target resource contributor can obtain an allocation value that matches the model resources they provide. This not only motivates resource contributors to provide model resources but also further constrains resource contributors to provide real and effective model parameters, which is conducive to the long-term, healthy, and sustainable development of joint learning. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this disclosure, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a schematic diagram of the architecture (simulation platform) of the joint learning according to an embodiment of this disclosure;

[0020] Figure 2 This is a flowchart illustrating a resource allocation method for collaborative learning provided in an embodiment of this disclosure;

[0021] Figure 3 This is a schematic diagram of the structure of a resource allocation device for collaborative learning provided in an embodiment of this disclosure;

[0022] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0023] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, so as to provide a thorough understanding of the embodiments of this disclosure. However, those skilled in the art will understand that this disclosure may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this disclosure with unnecessary detail.

[0024] Federation learning refers to the comprehensive utilization of multiple AI (Artificial Intelligence) technologies, under the premise of ensuring data security and user privacy, to collaboratively explore the value of data and foster new intelligent business forms and models based on joint modeling. Federation learning has at least the following characteristics:

[0025] (1) Participating nodes control their own data in a weakly centralized joint training mode to ensure data privacy and security in the process of co-creating intelligence.

[0026] (2) In different application scenarios, various model aggregation optimization strategies are established by using screening and / or combination of AI algorithms and privacy-preserving computing to obtain high-level and high-quality models.

[0027] (3) Under the premise of ensuring data security and user privacy, based on multiple model aggregation optimization strategies, obtain methods to improve the performance of the federated learning engine. The performance methods can be improved by solving problems such as parallel computing architecture, information interaction under large-scale cross-domain networks, intelligent perception, and anomaly handling mechanisms.

[0028] (4) Obtain the needs of multiple users in various scenarios, determine the true contribution of each joint participant through a mutual trust mechanism, and allocate incentives accordingly.

[0029] Based on the above approach, an AI technology ecosystem based on collaborative learning can be established, fully leveraging the value of industry data and promoting the implementation of scenarios in vertical fields.

[0030] The following will describe in detail, with reference to the accompanying drawings, a resource allocation method and apparatus for collaborative learning according to embodiments of the present disclosure.

[0031] Figure 1 This is a schematic diagram of a joint learning architecture (simulation platform) according to an embodiment of this disclosure. Figure 1 As shown, the architecture (simulation platform) of joint learning may include a server (resource allocation center) 101, multiple target resource contributors 102, and multiple model demanders 103.

[0032] During the joint learning process, the resource allocation center 101 can be pre-configured manually with resource allocation information that may be used in subsequent simulated auction scenarios. This resource allocation configuration information includes attribute configuration information, contribution configuration information, and monitoring configuration information. When the simulated auction program is started, the resource allocation center 101 can read the preset resource allocation configuration information, and then obtain model demand information provided by multiple model demanders 103. Based on the attribute configuration information and model demand information, the target demander is determined. Next, multiple target resource contributors 102 that match the model demand information are further determined, and the model resources of each target resource contributor are obtained. The model resources include model parameters and the amount of effective training data. Then, based on the aforementioned attribute configuration information, contribution configuration information, monitoring configuration information, and model resources, the allocation value corresponding to each target resource contributor is determined, and the allocation value is fed back to each target resource contributor, thereby completing the entire model resource auction process.

[0033] The embodiments disclosed herein fully consider factors such as the contribution of each target resource contributor to the utility of the model required by the model requester, so that each target resource contributor can obtain an allocation value that matches the model resources they provide. This not only motivates resource contributors to provide model resources, but also further constrains resource contributors to provide real and effective model parameters, which is conducive to the long-term, healthy and sustainable development of joint learning.

[0034] It should be noted that the number and type of target resource providers and model requesters can be set according to the actual situation, and no specific restrictions are imposed in this disclosure.

[0035] Figure 2 This is a flowchart illustrating a resource allocation method for collaborative learning provided in an embodiment of this disclosure. Figure 2 The resource allocation method for joint learning can be determined by... Figure 1 The resource allocation center 101 executes this. For example... Figure 2 As shown, the resource allocation method for this joint learning includes:

[0036] Step S201: Read the preset resource allocation configuration information, which includes attribute configuration information, contribution configuration information and monitoring configuration information.

[0037] As an example, resource allocation configuration information can be obtained by manually pre-configuring specific parameter values, or it can be randomly generated within a range of manually pre-configured parameter values.

[0038] Specifically, attribute configuration information may include the auction method, which includes, but is not limited to, first-bid auction and VCG price auction. The principle of a first-bid auction is that the highest bidder wins. The principle of a VCG price auction is to calculate the revenue loss to the total auction income after a bidder wins the auctioned item; theoretically, this loss is the fee that the winning bidder should pay.

[0039] Contribution configuration information, including but not limited to contribution measurement methods, such as allocation based on marginal contribution (meaning that the benefit of each node is the utility it generates when it joins the team) and allocation based on Shapely value (aiming to exclude the influence of nodes joining the set in different orders, thereby more fairly estimating their contribution to the set).

[0040] Monitoring configuration information includes, but is not limited to, training data deviation (the degree of deviation between the training data provided by the resource contributor and the model samples required by the model requester), resource deviation (generally the deviation between the computing resources owned by the resource contributor and the computing resources required for training the model), and online stability deviation (generally the deviation between the probability of the resource contributor disconnecting during joint training and the preset online rate).

[0041] As an example, a data structure for configuring the resource allocation center 101 object can be generated in the platform memory by running a preset computer program. This data structure can be in the form of a one-dimensional array such as "[attribute configuration information, contribution configuration information, monitoring configuration information]".

[0042] Step S202: Obtain model requirement information provided by multiple model requesters, and determine the target requester based on the attribute configuration information and model requirement information.

[0043] As an example, a communication channel can be pre-built between the resource allocation center 101 and multiple target resource contributors 102 and multiple model requesters 103. After starting the simulation program, the resource allocation center 101 can listen to this communication channel and realize communication and information exchange with the multiple target resource contributors 102 and multiple model requesters 103.

[0044] In some embodiments, the aforementioned model requirement information includes requirement models. Determining the target demander based on attribute configuration information and model requirement information specifically includes: classifying multiple model demanders according to the requirement models to obtain a set of model demanders corresponding to each requirement model; and selecting the target demander from the set of model demanders based on the attribute configuration information.

[0045] Specifically, when running the preset model auction simulation program, the resource allocation center 101 can start listening to the communication channel and receive model requirement information provided by multiple model requesters 103 through the communication channel. This model requirement information includes the required model of each model requester. The required model can be determined according to the actual business needs of the model requester. For example, if the business need of the model requester is to improve the accuracy of facial recognition in the attendance system, then the required model can be a facial recognition model.

[0046] Next, based on the demand model of each demand party, these demand parties are classified to obtain a set of demand parties corresponding to each demand model. This set of demand parties includes at least one demand party.

[0047] For example, suppose there are five model demanders: A, B, C, D, and E. Demanders A and B require face recognition models, while demanders C, D, and E require load forecasting models. Based on these demand models, the five demanders can be divided into two categories: one is set 01 (including demanders A and B) corresponding to the face recognition model, and the other is set 02 (including demanders C, D, and E) corresponding to the load forecasting model.

[0048] In some embodiments, the target demander is selected from the model demander set based on the attribute configuration information, specifically including: obtaining the budget resources of each model demander in the model demander set; and identifying the model demander with the most budget resources as the target demander.

[0049] Assuming the given attribute configuration information is a first-bid auction, meaning the highest bidder wins, we can further obtain the budget resources of each model demander. Here, budget resources can refer to the budgeted amount, i.e., the budget to purchase the required model. Then, we compare the budget resources of each pair of model demanders in each set, and determine the model demander with the largest budget resources (i.e., the highest bidder) as the target demander.

[0050] For example, if the budget resources of model demander A in model demander set 01 are X yuan and the budget resources of model demander B are Y yuan, and X > Y, then model demander A is identified as the target demander.

[0051] Step S203: Identify multiple target resource contributors that match the model requirement information, and obtain the model resources of each target resource contributor. The model resources include model parameters and the amount of effective training data.

[0052] In some embodiments, the resource allocation center 101 can broadcast model bidding information through a preset communication channel so that each resource contributor can receive the model bidding information. The model bidding information includes the required model, the required training samples, the required number of samples, and the incentive coefficient; and receive model information of the models to be auctioned from multiple resource contributors based on the model bidding information.

[0053] The required training sample type can be determined based on the required model. Assuming the required model is a face recognition model, then the required training samples could be images / videos containing faces. The required number of samples usually refers to the number of samples needed to satisfy at least one round of joint training. For example, if one round of training requires 100 samples, then the required number of samples is 100.

[0054] The incentive coefficient is related to the correlation between the training samples and the demand model. Generally, the higher the correlation, the larger the incentive coefficient. As an example, assuming the required training samples are pictures / images / videos containing faces, then training samples containing pictures / images / videos containing faces can be considered as samples with high correlation, and their corresponding incentive coefficient can be set to 0.8. Training samples not containing pictures / images / videos not containing faces can be considered as samples with low correlation (or no correlation), and their corresponding incentive coefficient can be set to 0.2.

[0055] As an example, when a resource contributor (a participant who owns training data) receives the model bidding information broadcast by the resource allocation center 101 through the aforementioned communication channel, specifying that the required model is a face recognition model, the required training samples (including images / videos containing faces), the required number of samples (100 samples per round), and the incentive coefficient (0.8 for samples containing images / videos containing faces and 0.2 for samples not containing faces), it can determine whether to participate in this bidding activity based on its own training data and the aforementioned model bidding information.

[0056] In some embodiments, model information of auction models reported by multiple resource contributors can be obtained first, including the model type of the auction model; then, the similarity between the model type of the auction model and the model type of the demand model can be calculated; finally, multiple target resource contributors that match the model type of the demand model can be determined based on the similarity.

[0057] As an example, based on the above model bidding information and combined with its own training data, the resource contributors participating in this bidding activity can be determined. They can use their own training data to train the basic model issued by the resource allocation center 101, obtain the trained model, and feed back the model information of the trained model (i.e. the model information of the model to be auctioned) to the resource allocation center 101.

[0058] As an example, after obtaining the model information (including the model type) of the models to be auctioned reported by each resource contributor, the resource allocation center 101 can further calculate the similarity (e.g., cosine similarity) between the model type of the model to be auctioned reported by each resource contributor and the model type of the demand model. Then, it sorts the resource contributors according to the similarity from highest to lowest, obtaining a sorted list. Finally, based on actual needs, at least two resource contributors are selected as target resource contributors in the order of the sorted list.

[0059] Step S204: Based on the attribute configuration information, contribution configuration information, monitoring configuration information, and model resources, determine the allocation value corresponding to each target resource contributor, and feed back the allocation value to each target resource contributor.

[0060] In some embodiments, the auction value of each target resource contributor is calculated based on attribute configuration information and a preset first weight;

[0061] Based on the contribution configuration information, model parameters, effective training data volume, and preset second weights, calculate the contribution value of each target resource contributor;

[0062] Based on the monitoring configuration information and the preset third weight, calculate the penalty value for each target resource contributor;

[0063] The allocation value for each target resource contributor is determined based on the auction value, contribution value, and penalty value.

[0064] The first, second, and third weights can be flexibly set according to the actual situation, and there are no specific restrictions here. For example, the first, second, and third weights can be set to 0.5, 0.3, and 0.2, respectively.

[0065] As an example, the auction value for each target resource contributor is calculated based on attribute configuration information and a preset first weight. Specifically, the auction value can be calculated based on the pricing corresponding to the auction method and its corresponding preset first weight value. For example, if the auction method is a first-price auction, the first-price auction price can be the remaining portion of the budgeted resources provided by the target requester after deducting the service cost of the resource allocation center.

[0066] Effective training data volume refers to the amount of training data whose relevance to the model required by the target user reaches a preset relevance threshold. For example, if the target user requires a face recognition model, then the training data associated with the face recognition model consists of images / pictures / videos containing faces. The preset relevance threshold can be set according to actual conditions, such as 50% or 100%. For example, assuming that the relevance between training data containing images / pictures / videos and the face recognition model is 100%, and the relevance between training data not containing faces and the face recognition model is 0%, the preset relevance threshold can be set to 100%. In other words, in this example, effective training data volume refers to the number of data points whose relevance to the face recognition model required by the target user reaches 100% (i.e., training data containing images / pictures / videos containing faces).

[0067] Generally, when training a deep neural network model, its model parameters typically include weights and biases.

[0068] As an example, the contribution value of each target resource contributor is calculated based on contribution configuration information, model parameters, effective training data volume, and preset second weights. Specifically, the model parameters provided by the resource contributor can update the iterative model of the target requester's required model stored in the resource allocation center. Then, the updated iterative model is tested using pre-stored test data to determine the extent to which the model parameters provided by the resource contributor improve the performance of the iterative model. Generally, the higher the degree of improvement, the higher the contribution of the resource contributor, and the higher the contribution value. Similarly, the more effective training data provided by the resource contributor, the greater the contribution to the improvement of model performance, and the higher the contribution value.

[0069] In practical applications, the contribution value of each resource contributor can be calculated based on the pre-configured contribution measurement method (such as allocation by marginal contribution), as well as the model parameters, effective training data volume, and preset second weights provided by each resource contributor.

[0070] In some embodiments, the penalty value for each target resource contributor is calculated based on monitoring configuration information and a preset third weight, specifically including:

[0071] Determine the first, second, and third penalties for each target resource contributor;

[0072] Calculate the penalty value for each target resource contributor based on the first penalty item, the second penalty item, and the third penalty item.

[0073] The penalty value is mainly set to punish resource contributors who provide false or invalid model information.

[0074] The first penalty term can be training data bias, the second penalty term can be resource bias, and the third penalty term can be online stability bias.

[0075] For each of the above deviation terms, its corresponding penalty weight can be determined based on the degree of its impact on model performance. For example, if the impact of the first penalty term on model performance is greater than that of the second penalty term, which is greater than that of the third penalty term, then the penalty weights for the first, second, and third penalty terms can be set to 0.7, 0.2, and 0.1, respectively. It should be noted that the penalty weights can be flexibly set according to the actual situation, and no specific restrictions are imposed here.

[0076] As an example, the penalty value for each resource contributor can be calculated using the formula: Penalty Value = First Penalty Item * First Penalty Weight + Second Penalty Item * Second Penalty Weight + Third Penalty Item * Third Penalty Weight.

[0077] Then, the allocation value corresponding to each target resource contributor is calculated according to the formula: Allocation value = Auction value + Contribution value - Penalty value.

[0078] The technical solution provided in this disclosure reads preset resource allocation configuration information, including attribute configuration information, contribution configuration information, and monitoring configuration information; obtains model requirement information provided by multiple model requesters; determines target requesters based on the attribute configuration information and model requirement information; identifies multiple target resource contributors matching the model requirement information; obtains model resources for each target resource contributor, including model parameters and effective training data volume; and determines the allocation value corresponding to each target resource contributor based on the attribute configuration information, contribution configuration information, monitoring configuration information, and model resources, and feeds the allocation value back to each target resource contributor. This fully considers factors such as the contribution of each target resource contributor to the utility of the model required by the model requester, ensuring that each target resource contributor receives an allocation value matching the model resources they provide. This not only motivates resource contributors to provide model resources but also further constrains them to provide real and effective model parameters, thus facilitating the long-term, healthy, and sustainable development of collaborative learning.

[0079] All the above-mentioned optional technical solutions can be combined in any way to form the optional embodiments of this application, and will not be described in detail here.

[0080] The following are embodiments of the apparatus disclosed herein, which can be used to execute embodiments of the method disclosed herein. For details not disclosed in the apparatus embodiments of this disclosure, please refer to the embodiments of the method disclosed herein.

[0081] Figure 3This is a schematic diagram of a resource allocation device for collaborative learning provided in an embodiment of this disclosure. Figure 3 As shown, the resource allocation device for this collaborative learning includes:

[0082] The reading module 301 is configured to read preset resource allocation configuration information, which includes attribute configuration information, contribution configuration information and monitoring configuration information.

[0083] The demand side determination module 302 is configured to obtain model demand information provided by multiple model demand sides, and determine the target demand side based on the attribute configuration information and model demand information.

[0084] The resource acquisition module 303 is configured to identify multiple target resource contributors that match the model requirement information, and acquire the model resources of each target resource contributor, including model parameters and effective training data volume.

[0085] The allocation module 304 is configured to determine the allocation value corresponding to each target resource contributor based on attribute configuration information, contribution configuration information, monitoring configuration information and model resources, and to feed back the allocation value to each target resource contributor.

[0086] The technical solution provided in this embodiment reads preset resource allocation configuration information, including attribute configuration information, contribution configuration information, and monitoring configuration information, through a reading module 301. A demand-side determination module 302 obtains model demand information from multiple model demanders and determines target demanders based on the attribute configuration information and model demand information. A resource acquisition module 303 determines multiple target resource contributors matching the model demand information and obtains model resources from each target resource contributor, including model parameters and effective training data. An allocation module 304 determines the allocation value corresponding to each target resource contributor based on the attribute configuration information, contribution configuration information, monitoring configuration information, and model resources, and feeds the allocation value back to each target resource contributor. This fully considers factors such as the contribution of each target resource contributor to the utility of the model required by the model demander, ensuring that each target resource contributor receives an allocation value matching the model resources they provide. This not only motivates resource contributors to provide model resources but also further constrains them to provide real and effective model parameters, thus facilitating the long-term, healthy, and sustainable development of collaborative learning.

[0087] In some embodiments, the model requirement information mentioned above includes a requirement model. The above steps, determining the target demander based on attribute configuration information and model requirement information, include:

[0088] Based on the demand model, multiple demanders are classified to obtain the set of demanders corresponding to each demand model.

[0089] Based on the attribute configuration information, the target demander is selected from the set of model demanders.

[0090] In some embodiments, the above step of filtering target demanders from the model demander set based on attribute configuration information includes:

[0091] Obtain the budget resources for each model requester in the model requester set;

[0092] The model demander with the most budget resources is identified as the target demander.

[0093] In some embodiments, the above step of identifying multiple target resource contributors that match the model requirement information includes:

[0094] Obtain model information for auction models reported by multiple resource contributors. The model information for auction models includes the model type of the auction model.

[0095] Calculate the similarity between the model type of the model to be auctioned and the model type of the demand model, and determine multiple target resource contributors that match the model type of the demand model based on the similarity.

[0096] In some embodiments, before obtaining the model information of the auction models reported by multiple resource contributors, the above steps further include:

[0097] The model bidding information is broadcast through a pre-set communication channel so that each resource contributor can receive the model bidding information. The model bidding information includes the required model, the required training samples, the required number of samples, and the incentive coefficient.

[0098] Receive model information for models to be auctioned from multiple resource contributors based on model bidding information.

[0099] In some embodiments, the above steps, based on attribute configuration information, contribution configuration information, monitoring configuration information, and model resources, determine the allocation value corresponding to each target resource contributor, including:

[0100] Based on the attribute configuration information and the preset first weight, calculate the auction value for each target resource contributor;

[0101] Based on the contribution configuration information, model parameters, effective training data volume, and preset second weights, calculate the contribution value of each target resource contributor;

[0102] Based on the monitoring configuration information and the preset third weight, calculate the penalty value for each target resource contributor;

[0103] The allocation value for each target resource contributor is determined based on the auction value, contribution value, and penalty value.

[0104] In some embodiments, the above steps, including calculating the penalty value for each target resource contributor based on monitoring configuration information and a preset third weight, include:

[0105] Determine the first, second, and third penalties for each target resource contributor;

[0106] Calculate the penalty value for each target resource contributor based on the first penalty item, the second penalty item, and the third penalty item.

[0107] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this disclosure.

[0108] Figure 4 This is a schematic diagram of the electronic device 400 provided in an embodiment of this disclosure. Figure 4 As shown, the electronic device 400 of this embodiment includes a processor 401, a memory 402, and a computer program 403 stored in the memory 402 and executable on the processor 401. When the processor 401 executes the computer program 403, it implements the steps in the various method embodiments described above. Alternatively, when the processor 401 executes the computer program 403, it implements the functions of each module / unit in the various device embodiments described above.

[0109] For example, computer program 403 may be divided into one or more modules / units, which are stored in memory 402 and executed by processor 401 to perform the present disclosure. The one or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of computer program 403 in electronic device 400.

[0110] Electronic device 400 can be a desktop computer, laptop, handheld computer, cloud server, or other electronic device. Electronic device 400 may include, but is not limited to, processor 401 and memory 402. Those skilled in the art will understand that... Figure 4 This is merely an example of electronic device 400 and does not constitute a limitation on electronic device 400. It may include more or fewer components than shown, or combine certain components, or different components. For example, electronic device may also include input / output devices, network access devices, buses, etc.

[0111] Processor 401 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0112] The memory 402 can be an internal storage unit of the electronic device 400, such as a hard disk or RAM of the electronic device 400. The memory 402 can also be an external storage device of the electronic device 400, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the electronic device 400. Furthermore, the memory 402 can include both internal and external storage units of the electronic device 400. The memory 402 is used to store computer programs and other programs and data required by the electronic device. The memory 402 can also be used to temporarily store data that has been output or will be output.

[0113] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0114] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0115] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.

[0116] In the embodiments provided in this disclosure, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. Multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0117] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0118] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0119] If an integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program may include computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. A computer-readable medium may include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in a computer-readable medium may be appropriately added to or subtracted according to the requirements of legislation and patent practice in a jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media may not include electrical carrier signals and telecommunication signals.

[0120] The above embodiments are only used to illustrate the technical solutions of this disclosure, and are not intended to limit it. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure, and should all be included within the protection scope of this disclosure.

Claims

1. A resource allocation method for joint learning, characterized in that, include: Read the preset resource allocation configuration information, which includes attribute configuration information, contribution configuration information and monitoring configuration information. The attribute configuration information includes the auction method, the contribution configuration information includes the contribution measurement method, and the monitoring configuration information includes training data deviation, resource deviation and online stability deviation. Obtain model requirement information from multiple model requesters, and determine the target requester based on the attribute configuration information and the model requirement information; Identify multiple target resource contributors that match the model requirement information, and obtain the model resources of each target resource contributor. The model resources include model parameters and effective training data, wherein the training data is at least one of images and videos containing human faces. Based on the attribute configuration information, contribution configuration information, monitoring configuration information and model resources, determine the allocation value corresponding to each target resource contributor and feed the allocation value back to each target resource contributor. The step of determining the allocation value corresponding to each of the target resource contributors based on the attribute configuration information, contribution configuration information, monitoring configuration information, and model resources includes: Based on the attribute configuration information and the preset first weight, calculate the auction value for each of the target resource contributors; The contribution value of each target resource contributor is calculated based on the contribution configuration information, the model parameters, the effective training data volume, and the preset second weight. Based on the monitoring configuration information and the preset third weight, calculate the penalty value for each of the target resource contributors; Based on the auction value, contribution value, and penalty value, determine the allocation value corresponding to each contributor to the target resource.

2. The method according to claim 1, characterized in that, The model requirement information includes the requirement model; The step of determining the target demander based on the attribute configuration information and the model requirement information includes: Based on the demand model, the multiple model demanders are classified to obtain a set of model demanders corresponding to each demand model. Based on the attribute configuration information, target demanders are selected from the model demander set.

3. The method according to claim 2, characterized in that, The step of filtering target demanders from the model demander set based on the attribute configuration information includes: Obtain the budget resources for each model demander in the model demander set; The model demander with the most budget resources is identified as the target demander.

4. The method according to claim 2, characterized in that, The process of identifying multiple target resource contributors that match the model's requirement information includes: Obtain model information of models to be auctioned reported by multiple resource contributors, wherein the model information of the models to be auctioned includes the model type of the models to be auctioned; Calculate the similarity between the model type of the model to be auctioned and the model type of the demand model, and determine multiple target resource contributors that match the model type of the demand model based on the similarity.

5. The method according to claim 4, characterized in that, Before obtaining the model information of the auction models reported by the multiple resource contributors, the process also includes: The model bidding information is broadcast through a preset communication channel so that each resource contributor can receive the model bidding information, which includes the required model, the required training samples, the required number of samples, and the incentive coefficient. Receive model information of models to be auctioned from multiple resource contributors based on the model bidding information.

6. The method according to claim 1, characterized in that, The step of calculating the penalty value for each target resource contributor based on the monitoring configuration information and the preset third weight includes: Determine the first penalty, second penalty, and third penalty for each of the target resource contributors; Calculate the penalty value for each of the target resource contributors based on the first penalty item, the second penalty item, and the third penalty item.

7. A resource allocation device for collaborative learning, characterized in that, include: The reading module is configured to read preset resource allocation configuration information, which includes attribute configuration information, contribution configuration information, and monitoring configuration information. The attribute configuration information includes the auction method, the contribution configuration information includes the contribution measurement method, and the monitoring configuration information includes training data deviation, resource deviation, and online stability deviation. The demand side determination module is configured to obtain model demand information provided by multiple model demand sides, and determine the target demand side based on the attribute configuration information and the model demand information. The resource acquisition module is configured to identify multiple target resource contributors that match the model requirement information, and acquire model resources for each target resource contributor. The model resources include model parameters and effective training data, wherein the training data is at least one of images and videos containing human faces. The allocation module is configured to determine the allocation value corresponding to each of the target resource contributors based on the attribute configuration information, contribution configuration information, monitoring configuration information and the model resources, and to feed back the allocation value to each of the target resource contributors. The step of determining the allocation value corresponding to each of the target resource contributors based on the attribute configuration information, contribution configuration information, monitoring configuration information, and model resources includes: Based on the attribute configuration information and the preset first weight, calculate the auction value for each of the target resource contributors; The contribution value of each target resource contributor is calculated based on the contribution configuration information, the model parameters, the effective training data volume, and the preset second weight. Based on the monitoring configuration information and the preset third weight, calculate the penalty value for each of the target resource contributors; Based on the auction value, contribution value, and penalty value, determine the allocation value corresponding to each contributor to the target resource.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 6.

9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Resource allocation method and device and storage medium

    CN110020926A

  • Resource allocation method and device, readable medium and electronic equipment

    CN112650583A

  • Privacy protection method and system for improving communication efficiency and reasonably distributing rewards

    CN113806800A