Method and device for determining contribution of participants in joint learning

By constructing a combination of participants and calculating weights, combined with interpolation functions and model deduction, the problem of low contribution calculation accuracy in joint learning is solved, and a more accurate and efficient contribution assessment is achieved.

CN114116740BActive Publication Date: 2024-10-29新奥新智科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111326664.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-10
Publication Date
2024-10-29
Estimated Expiration
2041-11-10

AI Technical Summary

Technical Problem

In the existing technology, the calculation accuracy of participants' contribution in joint learning is low, the calculation results are inaccurate, the data volume is large, and the efficiency is low, resulting in the contribution evaluation being insufficient to ensure fairness and impartiality.

Method used

By constructing a combination of participants, calculating the weight, judging the utility change value, using interpolation functions or preset model deduction methods to calculate the utility value, updating the lookup table, and finally calculating the contribution of each participant based on the Shapley value.

Benefits of technology

It improves the calculation accuracy of contribution value, reduces the amount of calculation data, and improves calculation efficiency, making the contribution assessment more accurate and efficient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114116740B_ABST
    Figure CN114116740B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method and device for determining the contribution of a participant in joint learning. The method includes: constructing all combinations of participants and calculating the weight of each combination of participants; determining the utility change value of the joint learning model before and after the aggregation period and establishing a lookup table, judging whether to calculate the contribution value of the participant according to the utility change value; selecting a combination of participants from all combinations of participants, estimating the marginal contribution value of the participant, judging whether to use an interpolation function to calculate the utility value of the combination of participants according to the estimation result and the weight; updating the lookup table according to the utility value of the combination of participants, selecting the combination of participants in turn, until the utility values ​​of all combinations of participants are calculated, updating the lookup table using the utility value of the combination of participants, and calculating the contribution value of the participant based on the final updated lookup table. The present disclosure can improve the calculation accuracy and efficiency of the contribution value in joint learning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of joint learning, and in particular to a method and device for determining the contribution of a participant in joint learning. Background Art

[0002] With the development of artificial intelligence and distributed machine learning technology, the federated learning method of uniting different participants for machine learning has become a mainstream trend in training artificial intelligence models. As a new distributed machine learning framework, federated learning meets the needs of multiple clients to train models under the requirements of data security.

[0003] In the prior art, when measuring the contribution of participants in joint learning, the joint learning system is usually used to determine the contribution of each participant to the joint learning model based on the amount of local data of each participant. However, since the local data of each participant may have uneven data quality and different forms of local data, the existing joint learning contribution calculation method has problems such as low calculation accuracy, inaccurate calculation results, large amount of calculation data, and low calculation efficiency.

[0004] In view of the above problems in the prior art, it is necessary to provide a method for determining the contribution of joint learning participants that can improve the calculation accuracy of the contribution value, reduce the amount of calculation data, make the calculation result of the contribution value more accurate, and have higher calculation efficiency. Summary of the invention

[0005] In view of this, the embodiments of the present disclosure provide a method and device for determining the contribution of participants in joint learning, so as to solve the problems of the existing method for calculating the contribution of joint learning, such as low calculation accuracy, inaccurate calculation results, large amount of calculation data and low calculation efficiency.

[0006] In a first aspect of an embodiment of the present disclosure, a method for determining the contribution of a participant in joint learning is provided, comprising: determining the participants in the joint learning, constructing all combinations of participants based on the participants, and calculating the weight corresponding to each combination of participants; determining the utility change value corresponding to the joint learning model before and after the aggregation period and establishing a lookup table, judging whether to calculate the contribution value of the participant in the aggregation period according to the utility change value; when the judgment result is yes, selecting a combination of participants from all combinations of participants in a predetermined order, and estimating the marginal contribution value of each participant in the selected combination of participants, judging according to the estimation result and the weight of the combination of participants. Determine whether to use an interpolation function to calculate the utility value of the participant combination; when the judgment result is yes, use the interpolation function to calculate the utility value of the participant combination; when the judgment result is no, use a preset model deduction method to calculate the utility value of the participant combination, and update the lookup table based on the calculated utility value of the participant combination; select each participant combination in turn until the utility values ​​of all participant combinations are calculated, and use the utility values ​​of all participant combinations to update the lookup table to obtain a final updated lookup table, so as to calculate the contribution value of each participant based on the final updated lookup table, and determine the contribution degree of the participant in joint learning according to the contribution value.

[0007] According to a second aspect of the embodiments of the present disclosure, there is provided a device for determining the contribution of a participant in joint learning, comprising: a construction module, configured to determine the participants in the joint learning, construct all combinations of participants based on the participants, and calculate the weight corresponding to each combination of participants; a first judgment module, configured to determine the utility change value corresponding to the joint learning model before and after the aggregation period and establish a lookup table, and judge whether to calculate the contribution value of the participant in the aggregation period according to the utility change value; a second judgment module, configured to select a combination of participants from all combinations of participants in a predetermined order when the judgment result is yes, and estimate the marginal contribution value of each participant in the selected combination of participants, and calculate the weight corresponding to each combination of participants according to the estimation result and the weight of each combination of participants; The weight of the combination is used to determine whether to use the interpolation function to calculate the utility value of the participant combination; the update module is configured to use the interpolation function to calculate the utility value of the participant combination when the judgment result is yes, and use the preset model deduction method to calculate the utility value of the participant combination when the judgment result is no, and update the lookup table according to the calculated utility value of the participant combination; the calculation module is configured to select each participant combination in turn until the utility values ​​of all participant combinations are calculated, and update the lookup table with the utility values ​​of all participant combinations to obtain the final updated lookup table, so as to calculate the contribution value of each participant based on the final updated lookup table, and determine the contribution degree of the participant in the joint learning according to the contribution value.

[0008] At least one of the above technical solutions adopted in the embodiments of the present disclosure can achieve the following beneficial effects:

[0009] By determining the participants of the joint learning, all the combinations of participants are constructed based on the participants, and the weight corresponding to each combination of participants is calculated; the utility change value corresponding to the joint learning model before and after the aggregation period is determined and a lookup table is established, and it is judged whether to calculate the contribution value of the participants in the aggregation period according to the utility change value; when the judgment result is yes, a combination of participants is selected from all the combinations of participants in a predetermined order, and the marginal contribution value of each participant in the selected combination of participants is estimated, and according to the estimation result and the weight of the combination of participants, it is judged whether to use the interpolation function to calculate the utility of the combination of participants The utility value of the combination of participants is calculated; when the judgment result is yes, the utility value of the combination of participants is calculated using the interpolation function; when the judgment result is no, the utility value of the combination of participants is calculated using the preset model deduction method, and the lookup table is updated according to the calculated utility value of the combination of participants; each combination of participants is selected in turn until the utility value of all combinations of participants is calculated, and the lookup table is updated using the utility values ​​of all combinations of participants to obtain the final updated lookup table, so as to calculate the contribution value of each participant based on the final updated lookup table, and determine the contribution of the participant in the joint learning according to the contribution value. The present disclosure can improve the calculation accuracy of the contribution value in the joint learning, reduce the amount of calculation data, make the calculation result of the contribution value more accurate, and have higher calculation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0011] Figure 1 is a schematic diagram of a joint learning architecture provided by an embodiment of the present disclosure;

[0012] Figure 2 is a flow chart of a method for determining the contribution of a participant in joint learning provided by an embodiment of the present disclosure;

[0013] Figure 3 It is a schematic diagram of a program flow for calculating the contribution value of a participant provided by an embodiment of the present disclosure;

[0014] Figure 4 is a schematic diagram of the structure of a device for determining the contribution of a participant in joint learning provided by an embodiment of the present disclosure;

[0015] Figure 5It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0016] In the following description, specific details such as specific system structures and technologies are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present disclosure. However, it should be clear to those skilled in the art that the present disclosure may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obstructing the description of the present disclosure with unnecessary details.

[0017] Federated learning refers to the comprehensive use of various AI (Artificial Intelligence) technologies to jointly explore the value of data and give rise to new intelligent formats and models based on joint modeling, while ensuring data security and user privacy. Federated learning has at least the following characteristics:

[0018] (1) A weakly centralized joint training model in which participating nodes control their own data to ensure data privacy and security in the process of co-creating intelligence.

[0019] (2) In different application scenarios, we use screening and / or combination of AI algorithms and privacy-preserving computing to establish multiple model aggregation optimization strategies to obtain high-level, high-quality models.

[0020] (3) Under the premise of ensuring data security and user privacy, methods to improve the performance of the federated learning engine are obtained based on multiple model aggregation optimization strategies. The performance method can be achieved by solving problems including computing architecture parallelism, information interaction in large-scale cross-domain networks, intelligent perception, and exception handling mechanisms to improve the overall performance of the federated learning engine.

[0021] (4) Obtain the needs of multiple users in each scenario, determine a reasonable assessment of the true contribution of each joint participant through a mutual trust mechanism, and distribute incentives.

[0022] Based on the above methods, we can establish an AI technology ecosystem based on federated learning, give full play to the value of industry data, and promote the implementation of scenarios in vertical fields.

[0023] At present, with the increase in the number of participants in joint learning and the amount of calculated data, how to accurately and quickly evaluate the contribution of each participant in the joint learning to the training of the joint learning model has become an urgent problem to be solved. In the prior art, the joint learning system determines the contribution of each participant to the joint learning model based on the amount of local data of each participant. However, since the local data of each participant may have uneven data quality, different formats or forms of local data, and many overlapping data features of each participant, the calculation efficiency of the contribution to the joint learning model in the joint learning is low, and the accuracy of the joint learning contribution of each participant is also low. This will lead to insufficient evaluation of the fairness and justice of the contribution of each participant when the joint learning contribution is used to distribute the benefits of each participant in the future.

[0024] In view of the above problems in the prior art, it is necessary to provide a method for calculating the contribution of each participant in joint learning based on the Shapley value calculation rule and the marginal contribution value generated when each participant joins the participant combination. Based on the embodiments of the present disclosure, it is possible to improve the accurate calculation of the contribution value of each participant in the joint learning model training in the joint learning, and reduce the amount of calculation, so that the calculation result of the contribution value is more accurate and the calculation efficiency is higher.

[0025] A method and apparatus for determining the contribution of a participant in joint learning according to an embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0026] Figure 1 Schematic diagram of a joint learning architecture provided by an embodiment of the present disclosure. Figure 1 As shown, the architecture of the federated learning may include a server (central node) 101 and participants 102 , 103 , and 104 .

[0027] In the joint learning process, the basic model can be established by the server 101, and the server 101 sends the model to the participants 102, 103, and 104 with which the communication connection is established. The basic model can also be uploaded to the server 101 by any participant after establishment, and the server 101 sends the model to other participants with which the communication connection is established. The participants 102, 103, and 104 build the model according to the downloaded basic structure and model parameters, use local data to train the model, obtain updated model parameters, and encrypt and upload the updated model parameters to the server 101. The server 101 aggregates the model parameters sent by the participants 102, 103, and 104 to obtain the global model parameters, and transmits the global model parameters back to the participants 102, 103, and 104. The participants 102, 103, and 104 iterate their respective models according to the received global model parameters until the model finally converges, thereby realizing the training of the model. In the joint learning process, the data uploaded by participants 102, 103 and 104 are model parameters, local data will not be uploaded to server 101, and all participants can share the final model parameters, so joint modeling can be achieved on the basis of ensuring data privacy. It should be noted that the number of participants is not limited to the three as described above, but can be set as needed, and the embodiments of the present disclosure do not limit this.

[0028] Figure 2 It is a flowchart of a method for determining the contribution of a participant in joint learning provided by an embodiment of the present disclosure. Figure 2 The method for determining the contribution of a participant in a joint learning may be executed by a joint learning server. Figure 2 As shown, the method for determining the contribution of a participant in joint learning may specifically include:

[0029] S201, determining the participants of the joint learning, constructing all the participant combinations based on the participants, and calculating the weight corresponding to each participant combination;

[0030] S202, determining the utility change value corresponding to the joint learning model before and after the aggregation period and establishing a lookup table, and judging whether to calculate the contribution value of the participants in the aggregation period according to the utility change value;

[0031] S203, when the judgment result is yes, a participant combination is selected from all participant combinations according to a predetermined order, and the marginal contribution value of each participant in the selected participant combination is estimated, and according to the estimation result and the weight of the participant combination, it is determined whether to use an interpolation function to calculate the utility value of the participant combination;

[0032] S204, when the judgment result is yes, the utility value of the participant combination is calculated using the interpolation function; when the judgment result is no, the utility value of the participant combination is calculated using a preset model deduction method, and the lookup table is updated according to the calculated utility value of the participant combination;

[0033] S205, select each participant combination in turn until the utility values ​​of all participant combinations are calculated, and use the utility values ​​of all participant combinations to update the lookup table to obtain a final updated lookup table, so as to calculate the contribution value of each participant based on the final updated lookup table, and determine the contribution degree of the participant in joint learning according to the contribution value.

[0034] Specifically, each participant corresponds to a node in the joint learning framework, and each node corresponds to a participant device. The participant device can be a PC, tablet computer, smart phone, smart wearable device, etc. Each participant device has a client terminal of the joint learning participant, but the participant device is not limited to the above devices or clients. The joint learning framework also has a node (i.e., a server) that provides services to the client. The server can be a server for performing aggregation operations. The server can coordinate multiple clients to perform joint learning to obtain a joint learning model. The server can be an independent physical server, or it can be a server cluster composed of multiple physical servers or a cloud computing server.

[0035] Furthermore, the participant combination refers to the mutual arrangement and combination between the individuals of all participants in the joint learning, and is a participant combination composed of the individuals of the participants. For example: in a joint learning framework, there are 3 participants, namely A, B, and C, then the following participant combinations can be formed between them: A, B, C, AB, BC, AC.

[0036] Furthermore, in federated learning, an aggregation cycle refers to a round of training for the federated learning model. Each participating client uses local data to train the local model. When the local model training reaches convergence, the trained local model parameters are obtained and sent to the server. All participants will upload their own local model parameters in each aggregation round, and the server will perform weighted averaging to obtain a federated model. Therefore, each participant will make its own contribution in each round. Here, a round means that the server conducts a complete training of the federated learning model.

[0037] According to the technical solution provided by the embodiment of the present disclosure, by determining the participants of the joint learning, all the participant combinations are constructed based on the participants, and the weight corresponding to each participant combination is calculated; the utility change value corresponding to the joint learning model before and after the aggregation period is determined and a lookup table is established, and it is judged whether to calculate the contribution value of the participants in the aggregation period according to the utility change value; when the judgment result is yes, a participant combination is selected from all the participant combinations in a predetermined order, and the marginal contribution value of each participant in the selected participant combination is estimated, and according to the estimation result and the weight of the participant combination, it is judged whether to use the interpolation function to calculate the contribution value of the participant in the aggregation period. The utility value of the combination of participants is calculated; when the judgment result is yes, the utility value of the combination of participants is calculated using an interpolation function; when the judgment result is no, the utility value of the combination of participants is calculated using a preset model deduction method, and the lookup table is updated according to the calculated utility value of the combination of participants; each combination of participants is selected in turn until the utility value of all combinations of participants is calculated, and the lookup table is updated using the utility values ​​of all combinations of participants to obtain the final updated lookup table, so as to calculate the contribution value of each participant based on the final updated lookup table, and determine the contribution of the participant in the joint learning according to the contribution value. The present disclosure can improve the calculation accuracy of the contribution value in joint learning, reduce the amount of calculation data, make the calculation result of the contribution value more accurate, and have higher calculation efficiency.

[0038] The following is a detailed description of the cyclic process of calculating the contribution value of each participant in the joint learning of the present disclosure in conjunction with a specific program flow diagram. Figure 3 Schematic diagram of the program flow for calculating the contribution value of a participant provided by the embodiment of the present disclosure. Figure 3 As shown, the procedure for calculating the contribution value of the participants may specifically include the following contents:

[0039] In some embodiments, all combinations of participants are constructed based on the participants, and the weight corresponding to each combination of participants is calculated, including: based on all participants in the joint learning, all combinations of participants are constructed in a manner from the least to the most in terms of the number of participants, all combinations of participants contain multiple combinations of participants, and the weight is calculated according to the number of participants in each combination of participants; wherein the weight is used to represent the probability of a combination of participants appearing in all combinations of participants.

[0040] Specifically, the participants of joint learning and the process of constructing a combination of all participants are described in detail below in conjunction with a specific embodiment, which may specifically include the following contents:

[0041] Assume that there are N participants 1, 2, ...i...n-1, n in the joint learning. The training is aggregated for a total of T cycles. The local model M uploaded by each participant i is recorded for each aggregation cycle t during the training process. i (t), and the joint model M after center aggregation (t) , initialize the model M (0) , there is an evaluation function or utility function V(·) for model performance (such as accuracy, loss, etc.), a joint learning model aggregation method Agg(·), thresholds λ, η; where λ represents the first truncation threshold and η represents the second truncation threshold.

[0042] Furthermore, first, according to all the participants in the joint learning, all possible combinations of participants Ps = [(1,), (2,), (3,) ..., (1,2), (1,3), (2,3), ... P, ... N] are enumerated from the smallest to the largest number of participants; for each sub-combination S with 0, 1, 2, ... n-1 participants, the weight w is calculated |S| =|S|! (|N|-|S|-1)! / |N|! .

[0043] It should be noted that each participant combination corresponds to a sub-combination S mentioned above. When calculating the weight of the sub-combination S, it is based on the number of participants in each sub-combination. In the participant combination, one participant corresponds to an element in a set, that is, the weight corresponding to the participant combination is calculated according to the number of elements in the participant combination. The weight corresponding to each sub-combination can be considered as the probability of the sub-combination appearing in the overall participant combination.

[0044] In some embodiments, the utility change value corresponding to the joint learning model before and after the aggregation cycle is determined and a lookup table is established, including: for each aggregation cycle, an initial utility value and a final utility value of the aggregation cycle are determined, the difference between the final utility value and the initial utility value is used as the utility change value, and a lookup table containing all participant combinations corresponding to the aggregation cycle is established; an initialization operation is performed on the lookup table so that the initial utility values ​​of other participant combinations in the lookup table except for the empty set participant combination and the full set participant combination are 0; wherein the lookup table is used to store the utility values ​​corresponding to all participant combinations.

[0045] Specifically, the utility value corresponding to the joint learning model is calculated at the beginning and end of each aggregation cycle, and a lookup table is established. That is, for each aggregation cycle, the final utility value of the aggregation cycle and the initial utility value of the aggregation cycle can be calculated first. The calculation process of the initial utility value and the final utility value of the aggregation cycle is described in detail below in conjunction with a specific embodiment, which may specifically include the following contents:

[0046] For each aggregation period t, calculate v N =V(M (t) ), v0=V(M (t-1)), and establish a lookup table v_lut = {():v0,(1,):0,(2,):0,(3,):0…,(1,2):0,(1,3):0,(2,3):0,…N:vN}, where v N It represents the final utility value of the joint model after the end of the current aggregation cycle, and v0 represents the utility value of the joint model after the end of the previous aggregation cycle corresponding to the current aggregation cycle. Of course, v0 can also be understood as the initial utility value of the current aggregation cycle before the start of the current aggregation cycle. The difference in different expressions does not constitute a limitation on the essential meaning of v0, and the above two expressions are equivalent.

[0047] Furthermore, when the lookup table is initialized, except for the empty set () and the participant combinations corresponding to the full set N, the utility values ​​of other participant combinations in all participant combinations Ps are set to 0. By establishing a v_lut lookup table and using the lookup table to cache the utility values ​​of the participant combinations, thereby recording the calculated utility values, the calculation amount for subsequent contribution value calculations can be reduced to avoid repeated calculations.

[0048] In some embodiments, whether to calculate the contribution value of the participants in the aggregation cycle is determined based on the utility change value, including: comparing the utility change value of the aggregation cycle with a preset first truncation threshold; when the utility change value of the aggregation cycle is less than the first truncation threshold, and the utility change values ​​of two consecutive aggregation cycles are less than the first truncation threshold, then the contribution value of each participant in the aggregation cycle is judged to be 0; otherwise, the contribution value of each participant in the aggregation cycle is calculated.

[0049] Specifically, by calculating the final utility value of the current aggregation cycle and the initial utility value of the current aggregation cycle, if the difference between the final utility value and the initial utility value corresponding to the current aggregation cycle is less than the first cutoff threshold, and if the difference between the final utility value and the initial utility value is less than the first cutoff threshold for two consecutive aggregation cycles, the calculation is terminated, and the contribution value of each participant in the current aggregation cycle is regarded as 0, that is, each participant has not made a contribution in the current aggregation cycle. The following is a detailed description of the process of using a calculator to determine whether to calculate the contribution value of each participant in the current aggregation cycle in conjunction with a specific embodiment, which may specifically include the following contents:

[0050] If |v N -v0|≤λ, then the counter is incremented by 1. If the counter exceeds 1 (the counter value is greater than or equal to 2), then the contribution value of each participant i in this aggregation period t is Then return to the previous step, otherwise continue to the next step; in other words, by subtracting the final utility value corresponding to the aggregation model generated before and after the current aggregation cycle from the initial utility value, and comparing the difference with the first truncation threshold, when the difference is less than the first truncation threshold, the value of the counter is increased by 1. If the counter is greater than or equal to 2 (that is, the utility change value of the aggregation model generated by two consecutive aggregation cycles is less than the threshold), the contribution value of each participant in this aggregation cycle is judged to be 0.

[0051] The purpose of the embodiment of the present disclosure is to evaluate the changes in the utility value of the joint model in this round before formally calculating the contribution value of each participant. According to the evaluation results, it can be determined whether the utility value of the joint model has been improved after the current round of aggregate training, that is, whether the performance of the joint model itself has been improved. If the improvement in model performance is small, it can be considered that the contribution value of each participant in this round is 0; if the performance improvement of the joint learning model is relatively large in this round, then continue to perform the following calculation, that is, specifically calculate the contribution value of each participant in this round. The present disclosure can determine in advance whether it is necessary to further calculate the contribution value of the participant, or directly calculate the contribution value of the participant in this round as 0, thereby avoiding invalid calculation processes and improving calculation efficiency.

[0052] In some embodiments, a participant combination is selected from all participant combinations in a predetermined order, and the marginal contribution value of each participant in the selected participant combination is estimated, including: selecting the participant combinations in sequence according to the arrangement order of the participant combinations in all participant combinations, and iterating the participants in the selected participant combination in sequence, so as to estimate the marginal contribution value generated when the participant joins the participant combination, and obtain an estimated value of the marginal contribution value.

[0053] Specifically, when it is determined that the contribution value of each participant in this round needs to be calculated, a participant combination P is selected in order from all the participant combinations Ps in this round. The selection order here is consistent with the order when enumerating all possible participant combinations Ps, that is, the combination with a small number of participants is selected first, and then the combination with a large number of participants is selected progressively.

[0054] Furthermore, in the process of selecting each participant combination P in turn, for each participant combination P, the marginal contribution value of each participant in the participant combination is estimated, that is, the marginal contribution value generated when each participant joins the participant combination is calculated; the estimation process of the marginal contribution value of each participant in the participant combination P is described in detail below in conjunction with a specific embodiment, which may specifically include the following contents:

[0055] For each participant j in P, P can be divided into two subsets: {j} and S = P\{j}, that is, P = S∪{j}; calculate the marginal contribution of j joining S. When calculating the marginal contribution, the actual marginal contribution should be Δ j_real =v S∪{j} -v S =V(S∪{j})-V(S)=V(P)-V(S); however, the value of V(P) cannot be determined yet, so the scaling principle is used to enlarge V(P) to v N , thus estimating the marginal contribution of j as Δ j_est =v N -v S =v_lut[N]-v_lut[S], and v S Add to the list VS_hist (corresponding to another cache table), because v S It has been calculated in the previous combination P'. Here, it only needs to be obtained from the lookup table v_lut, without calculating V(M S (t) ).

[0056] Furthermore, the above calculation method is used to loop over each element (participant j) in the participant combination P until each element in the participant combination P is looped over once, and finally the marginal contribution value corresponding to each participant in each participant combination is estimated.

[0057] In some embodiments, based on the estimation result and the weight of the participant combination, it is determined whether to use an interpolation function to calculate the utility value of the participant combination, including: calculating the product of the estimated value of the marginal contribution value corresponding to the participant and the weight of the participant combination corresponding to the participant, and comparing the product with a preset second truncation threshold; when the product corresponding to each participant in the participant combination is less than or equal to the preset second truncation threshold, it is determined to use an interpolation function to calculate the utility value of the participant combination; otherwise, the utility value of the participant combination is calculated using a preset model deduction method.

[0058] Specifically, according to the relationship between the product of the marginal contribution value of the participant and the weight of the participant combination corresponding to the participant and the second cutoff threshold, it is determined whether to calculate the utility value of the participant combination; the calculation and judgment process of the above product are described in detail below in conjunction with a specific embodiment, which may specifically include the following contents:

[0059] Calculate the product of the marginal contribution value of participant j and the weight of the participant combination P to which participant j belongs |Δ j_est *w |S| |, if all participants j in the participant combination P satisfy |Δ j_est *w |S||≤η*|vN-v0|, then the utility value of the participant combination P is calculated using the interpolation function; otherwise, the utility value of the participant combination P is calculated using the preset model deduction method.

[0060] That is to say, if the marginal contribution value corresponding to each participant in the participant combination P satisfies the above formula, then the utility value of the participant combination P does not need to be deduced any further, and the interpolation function can be directly used to calculate the utility value of the participant combination P. If the marginal contribution value of one participant does not meet the requirements, it is necessary to perform model deduction on the participant combination P and calculate the utility value.

[0061] It should be noted that the marginal contribution value corresponding to each participant in the above-mentioned participant combination P satisfies the above-mentioned formula is only an optional embodiment. In addition, other judgment criteria can also be set. For example, the marginal contribution value of any participant in the participant combination P does not satisfy the above-mentioned formula, or half of the participants in the participant combination P do not satisfy the above-mentioned formula, or there is any proportion of participants in the participant combination P that do not satisfy the above-mentioned formula, and so on.

[0062] According to the technical solution provided by the embodiment of the present disclosure, in order to determine in advance whether to perform model deduction on the participant combination, the marginal contribution value of each participant in the participant combination is estimated by amplifying the utility value, and the estimated value is multiplied by the weight of the participant combination, and the product is compared with the second truncation threshold, so as to determine whether to calculate the utility value of the participant combination by means of an interpolation function or by means of model deduction; since the complexity of model deduction is very high and the amount of calculation is large, by adding the above-mentioned judgment means, for the participant combination that does not need to be model deduced, the utility values ​​of the sub-combinations calculated in the previous iteration process can be directly used for weighted summation, thereby improving the calculation speed of the contribution value.

[0063] In some embodiments, an interpolation function is used to calculate the utility value of a participant combination, including: based on the utility value of the participant combination calculated during the historical iteration process and the utility value corresponding to the participant combination when the participant combination is the full set of participant combinations, the utility value of the participant combination is estimated using a preset interpolation function to obtain an estimated value corresponding to the utility value of the participant combination, and the lookup table is updated according to the estimated value.

[0064] Specifically, the principle of calculating the utility value by the interpolation function is to use the utility value of the sub-combination that has been calculated to estimate the utility value of the participating party combination, that is, to approximate the utility value of the participating party combination according to the utility value of the sub-combination in the previous iteration process. For example, for the participating party combination (1, 2, 3), the values ​​of v(1, 2), v(2, 3), and v(1, 3) can be used to estimate the value of v(1, 2, 3), and the values ​​of v(1, 2), v(2, 3), and v(1, 3) already exist in the v_lut lookup table.

[0065] Furthermore, the calculation formula of the interpolation function V(P) = interpolate(mean(VS_hist),v N ,P,N), and obtain the utility estimate of the participant combination P according to the calculation formula and update the lookup table v_lut[P]=V(P). The implementation method of the interpolation function interpolate(·) is:

[0066]

[0067] In the calculation formula of the above interpolation function, mean(VS_hist), v N , the sub-combination P and the full combination N are taken as the input of the function, calculated and output.

[0068] Furthermore, in the calculation formula of the above interpolation function, the utility estimate of the participant combination P is calculated by averaging (i.e., mean in the formula). However, in practical applications, in addition to averaging, the utility estimate of the participant combination P can also be calculated by calculating the maximum value, minimum value, or median. When the maximum value method is used for calculation, mean in the above formula can be directly replaced by max, and when the minimum value method is used for calculation, mean in the above formula can be directly replaced by min. Therefore, the calculation method of the interpolation function does not constitute a limitation on the technical solution of the present application.

[0069] In some embodiments, the utility value of the participant combination is calculated using a preset model deduction method, and the lookup table is updated based on the calculated utility value of the participant combination, including: aggregating the model parameters corresponding to the participant combination, and performing model deduction on the model corresponding to the participant combination, aggregating the weight of each participant in the participant combination to obtain the weight of the participant combination, performing model deduction on the participant combination on a standard validation set, calculating the true utility value of the participant combination, and updating the lookup table using the true utility value.

[0070] Specifically, the model is derived using the formula V(P)=V(M P (t))=V(Agg(P)), and according to the calculation formula, the real utility value of the participant combination P is obtained and the lookup table v_lut[P]=V(P) is updated.

[0071] In some embodiments, the contribution value of each participant is calculated based on the final updated lookup table, including: according to the utility value of each participant combination in the final updated lookup table, using a preset Shapley value calculation formula to calculate the contribution value corresponding to each participant, wherein the contribution value is used to represent the contribution of the participant to the joint learning model trained in the aggregation cycle in the joint learning.

[0072] Specifically, according to the calculation process of the utility value of the participant combination P in the above embodiment, the entire participant combination Ps is looped once to obtain the final updated v_lut lookup table, and the utility values ​​corresponding to the participant combinations in the lookup table are substituted into the preset Shapley value calculation formula in turn, and the contribution value corresponding to each participant is calculated to obtain the contribution value of each contributor in the current aggregation cycle.

[0073] Furthermore, Shapley Value is a method of fairly distributing benefits based on the average marginal contribution of individual i when joining portfolio S. Its computational complexity is O(2 n ), n is the total number of individuals. The calculation formula is:

[0074]

[0075] The Shapley value considers all possible orders of individual i joining the sub-combination, where N represents the full combination, S represents the sub-combination under a certain arrangement, V(·) represents the utility function, the |·| symbol represents the number of elements in the set, [V(S∪{i})–V(S)] represents the marginal utility after i joins the sub-combination S, and the weight w |S| =|S|! (|N|-|S|-1)! / |N|! represents the probability of the combination appearing.

[0076] Furthermore, the above steps are repeated to obtain the contribution value of each participant i in all T aggregation cycles, and the contribution value of participant i to the joint model is accumulated; that is, all aggregation cycles are calculated in the above manner to obtain the contribution value corresponding to each participant in each aggregation cycle, and then accumulated to obtain the total contribution value.

[0077] Furthermore, the first cutoff threshold λ is set in the following manner: Let the marginal gain of the final joint model utility function relative to the initial model be Δ U =|V(M (T) )-V(M (0) )|, where T is the total communication rounds, and λ can be set to ΔU *0.01. The second truncation threshold η can be used to represent the error level of the contribution value, and can be set to η=1e-3~1e-5.

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

[0079] Figure 4 is a schematic diagram of the structure of the device for determining the contribution of a participant in joint learning provided by an embodiment of the present disclosure. Figure 4 As shown, the device for determining the contribution of a participant in joint learning includes:

[0080] The construction module 401 is configured to determine the participants of the joint learning, construct all the participant combinations based on the participants, and calculate the weight corresponding to each participant combination;

[0081] The first judgment module 402 is configured to determine the utility change value corresponding to the joint learning model before and after the aggregation period and establish a lookup table, and determine whether to calculate the contribution value of the participants in the aggregation period according to the utility change value;

[0082] The second judgment module 403 is configured to select a participant combination from all participant combinations according to a predetermined order when the judgment result is yes, and estimate the marginal contribution value of each participant in the selected participant combination, and determine whether to use an interpolation function to calculate the utility value of the participant combination according to the estimation result and the weight of the participant combination;

[0083] The updating module 404 is configured to calculate the utility value of the participant combination using an interpolation function when the judgment result is yes, and calculate the utility value of the participant combination using a preset model deduction method when the judgment result is no, and update the lookup table according to the calculated utility value of the participant combination;

[0084] The calculation module 405 is configured to select each participant combination in turn until the utility values ​​of all participant combinations are calculated, and use the utility values ​​of all participant combinations to update the lookup table to obtain a final updated lookup table, so as to calculate the contribution value of each participant based on the final updated lookup table, and determine the contribution of the participant in the joint learning according to the contribution value.

[0085] In some embodiments, Figure 4The construction module 401 constructs all the participant combinations according to all the participants in the joint learning in a manner from the least to the most number of participants. The all the participant combinations include multiple participant combinations, and the weight is calculated according to the number of participants in each participant combination; wherein the weight is used to represent the probability of the participant combination appearing in all the participant combinations.

[0086] In some embodiments, Figure 4 The first judgment module 402 determines the initial utility value and the final utility value of the aggregation period for each aggregation period, takes the difference between the final utility value and the initial utility value as the utility change value, and establishes a lookup table containing all participant combinations corresponding to the aggregation period; performs an initialization operation on the lookup table so that the initial utility values ​​of other participant combinations except the empty set participant combination and the full set participant combination in the lookup table are 0; wherein the lookup table is used to store the utility values ​​corresponding to all participant combinations.

[0087] In some embodiments, Figure 4 The first judgment module 402 compares the utility change value of the aggregation period with a preset first truncation threshold. When the utility change value of the aggregation period is less than the first truncation threshold, and the utility change values ​​of multiple consecutive aggregation periods are all less than the first truncation threshold, it is judged that the contribution value of each participant in the aggregation period is 0; otherwise, the contribution value of each participant in the aggregation period is calculated.

[0088] In some embodiments, Figure 4 The second judgment module 403 selects the participant combinations in sequence according to the arrangement order of the participant combinations in all the participant combinations, and iterates the participants in the selected participant combinations in sequence, so as to estimate the marginal contribution value generated when the participant joins the participant combination, and obtain the estimated value of the marginal contribution value.

[0089] In some embodiments, Figure 4 The second judgment module 403 calculates the product of the estimated value of the marginal contribution value corresponding to the participant and the weight of the participant combination corresponding to the participant, and compares the product with the preset second truncation threshold; when the product corresponding to each participant in the participant combination is less than or equal to the preset second truncation threshold, it is determined to use the interpolation function to calculate the utility value of the participant combination; otherwise, the utility value of the participant combination is calculated using the preset model deduction method.

[0090] In some embodiments, Figure 4The update module 404 estimates the utility value of the participant combination based on the utility value of the participant combination calculated during the historical iteration process and the utility value corresponding to the participant combination when the participant combination is the full set participant combination, obtains the estimated value corresponding to the utility value of the participant combination, and updates the lookup table according to the estimated value.

[0091] In some embodiments, Figure 4 The update module 404 aggregates the model parameters corresponding to the participant combination, and performs model deduction on the model corresponding to the participant combination, aggregates the weight of each participant in the participant combination to obtain the weight of the participant combination, performs model deduction on the participant combination on the standard validation set, calculates the real utility value of the participant combination, and uses the real utility value to update the lookup table.

[0092] In some embodiments, Figure 4 The calculation module 405 calculates the contribution value corresponding to each participant according to the utility value of each participant combination in the final updated lookup table using the preset Shapley value calculation formula, wherein the contribution value is used to represent the contribution of the participant to the joint learning model trained in the aggregation cycle in the joint learning.

[0093] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean 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 the present disclosure.

[0094] Figure 5 Schematic diagram of the structure of the electronic device 5 provided by the embodiment of the present disclosure. Figure 5 As shown, the electronic device 5 of this embodiment includes: a processor 501, a memory 502, and a computer program 503 stored in the memory 502 and executable on the processor 501. When the processor 501 executes the computer program 503, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 501 executes the computer program 503, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0095] Exemplarily, the computer program 503 may be divided into one or more modules / units, which are stored in the memory 502 and executed by the processor 501 to complete the present disclosure. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 503 in the electronic device 5.

[0096] The electronic device 5 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 5 may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art will appreciate that Figure 5 It is only an example of the electronic device 5 and does not constitute a limitation of the electronic device 5. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.

[0097] The processor 501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0098] The memory 502 may be an internal storage unit of the electronic device 5, for example, a hard disk or memory of the electronic device 5. The memory 502 may also be an external storage device of the electronic device 5, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 5. Further, the memory 502 may also include both an internal storage unit of the electronic device 5 and an external storage device. The memory 502 is used to store computer programs and other programs and data required by the electronic device. The memory 502 may also be used to temporarily store data that has been output or is to be output.

[0099] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by 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 embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0100] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0101] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example 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 performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this disclosure.

[0102] In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus / computer equipment and methods can be implemented in other ways. For example, the apparatus / computer equipment embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. Multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection of the apparatus or unit, which may be electrical, mechanical or other forms.

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

[0104] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0105] If the integrated module / unit is implemented in the form of 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, the present disclosure implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.

[0106] The above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should all be included in the protection scope of the present disclosure.

Claims

1. A method for determining the contribution of a participant in joint learning, characterized in that: include: Determine the participants of the joint learning, construct all participant combinations based on the participants, and calculate the weight corresponding to each participant combination; Determine the utility change value corresponding to the joint learning model before and after the aggregation period and establish a lookup table, and determine whether to calculate the contribution value of the participants in the aggregation period according to the utility change value; When the judgment result is yes, a participant combination is selected from all the participant combinations according to a predetermined order, and the marginal contribution value of each participant in the selected participant combination is estimated, and according to the estimation result and the weight of the participant combination, it is determined whether to use an interpolation function to calculate the utility value of the participant combination; When the judgment result is yes, the utility value of the participant combination is calculated using an interpolation function; when the judgment result is no, the utility value of the participant combination is calculated using a preset model deduction method, and the lookup table is updated according to the calculated utility value of the participant combination; Select each participant combination in turn until the utility values ​​of all the participant combinations are calculated, and use the utility values ​​of all the participant combinations to update the lookup table to obtain a final updated lookup table, so as to calculate the contribution value of each participant based on the final updated lookup table, and determine the contribution degree of the participant in the joint learning according to the contribution value.

2. The method according to claim 1, characterized in that The constructing all participant combinations based on the participants and calculating the weight corresponding to each participant combination includes: According to all the participants in the joint learning, construct the combination of all participants in a manner from the least to the most number of participants, wherein the combination of all participants includes multiple combinations of participants, and calculate the weight according to the number of participants in each combination of participants; The weight is used to represent the probability of the participant combination appearing in all participant combinations.

3. The method according to claim 1, characterized in that The determining of the utility change value corresponding to the joint learning model before and after the aggregation period and establishing a lookup table includes: For each of the aggregation cycles, determine the initial utility value and the final utility value of the aggregation cycle, use the difference between the final utility value and the initial utility value as the utility change value, and establish a lookup table corresponding to the aggregation cycle and containing all the combinations of the participating parties; An initialization operation is performed on the lookup table so that the initial utility values ​​of other participant combinations in the lookup table except the empty set participant combination and the full set participant combination are 0; wherein the lookup table is used to store the utility values ​​corresponding to all the participant combinations.

4. The method according to claim 3, characterized in that The determining whether to calculate the contribution value of the participants in the aggregation period according to the utility change value includes: The utility change value of the aggregation cycle is compared with a preset first truncation threshold. When the utility change value of the aggregation cycle is less than the first truncation threshold, and the utility change values ​​of multiple consecutive rounds of the aggregation cycle are all less than the first truncation threshold, then the contribution value of each participant in the aggregation cycle is judged to be 0; otherwise, the contribution value of each participant in the aggregation cycle is calculated.

5. The method according to claim 1, characterized in that The step of selecting a participant combination from all the participant combinations in a predetermined order and estimating the marginal contribution value of each participant in the selected participant combination comprises: According to the arrangement order of the participant combinations in all the participant combinations, the participant combinations are selected in turn, and the participants in the selected participant combinations are iterated in turn, so as to estimate the marginal contribution value generated when the participant is added to the participant combination, and obtain the estimated value of the marginal contribution value.

6. The method according to claim 5, characterized in that The step of determining whether to use an interpolation function to calculate the utility value of the combination of participants based on the estimation result and the weight of the combination of participants includes: Calculate the product of the estimated value of the marginal contribution value corresponding to the participant and the weight of the participant corresponding to the participant combination, and compare the product with a preset second cutoff threshold; When the product corresponding to each of the participants in the participant combination is less than or equal to a preset second truncation threshold, it is determined whether to use an interpolation function to calculate the utility value of the participant combination; otherwise, the utility value of the participant combination is calculated using a preset model deduction method.

7. The method according to claim 6, characterized in that The calculating the utility value of the participant combination by using an interpolation function includes: Based on the utility value of the participant combination calculated during the historical iteration process and the utility value corresponding to the participant combination when the participant combination is the full set participant combination, the utility value of the participant combination is estimated using a preset interpolation function to obtain an estimated value corresponding to the utility value of the participant combination, and the lookup table is updated according to the estimated value.

8. The method according to claim 1, characterized in that The method of calculating the utility value of the participant combination by using a preset model deduction method, and updating the lookup table according to the calculated utility value of the participant combination, includes: The model parameters corresponding to the participant combination are aggregated, and the model corresponding to the participant combination is deduced, the weight of each participant in the participant combination is aggregated to obtain the weight of the participant combination, the model of the participant combination is deduced on a standard validation set, the real utility value of the participant combination is calculated, and the lookup table is updated using the real utility value.

9. The method according to claim 1, characterized in that: The calculating the contribution value of each of the participants based on the finally updated lookup table includes: According to the utility value of each combination of the participants in the finally updated lookup table, the contribution value corresponding to each participant is calculated using the preset Shapley value calculation formula, wherein the contribution value is used to represent the contribution of the participant to the joint learning model trained in the aggregation cycle in the joint learning.

10. A device for determining the contribution of a participant in joint learning, characterized in that: include: A construction module is configured to determine the participants of the joint learning, construct all participant combinations based on the participants, and calculate the weight corresponding to each participant combination; A first judgment module is configured to determine the utility change value corresponding to the joint learning model before and after the aggregation period and establish a lookup table, and determine whether to calculate the contribution value of the participants in the aggregation period according to the utility change value; The second judgment module is configured to select a participant combination from all the participant combinations in a predetermined order when the judgment result is yes, and estimate the marginal contribution value of each participant in the selected participant combination, and determine whether to use an interpolation function to calculate the utility value of the participant combination according to the estimation result and the weight of the participant combination; An updating module is configured to calculate the utility value of the participant combination using an interpolation function when the judgment result is yes, and calculate the utility value of the participant combination using a preset model deduction method when the judgment result is no, and update the lookup table according to the calculated utility value of the participant combination; The calculation module is configured to select each participant combination in turn until the utility values ​​of all the participant combinations are calculated, and use the utility values ​​of all the participant combinations to update the lookup table to obtain a final updated lookup table, so as to calculate the contribution value of each participant based on the final updated lookup table, and determine the contribution degree of the participant in the joint learning according to the contribution value.

Citation Information

Patent Citations

  • Method and device for determining contribution value of participant in joint learning

    CN114116705A

  • Method and device for determining contribution degree of participant in joint learning

    CN114116707A