Method and device for determining contribution value of participants in joint learning

By determining the weight and utility change value of the combination of participants in joint learning, establishing a lookup table, and iteratively calculating the marginal contribution value, the problem of low accuracy and low efficiency in the calculation of contribution value in the existing technology is solved, and a more accurate and efficient Contribution calculation.

CN114116705BActive Publication Date: 2024-09-24ENNEW ICOME INTERNET TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the existing technology, the calculation accuracy of participant contribution values ​​in joint learning is low, the calculation results are inaccurate, the data volume is large, and the efficiency is low, resulting in unfair distribution of contribution values.

Method used

By determining the weight of the combination of participants in joint learning, calculating the utility change value, establishing a lookup table, iteratively estimating the marginal contribution value, using the estimation method to update the lookup table, and finally calculating the accurate contribution value.

Benefits of technology

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

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114116705B
    Figure CN114116705B
Patent Text Reader

Abstract

The present disclosure provides a method and device for determining the contribution value of a participant in joint learning. The method includes: calculating the weight of each participant combination in all participant combinations, determining the utility change value of the joint model of the current aggregation period, and establishing a lookup table; when calculating the contribution value, selecting a participant combination and calculating the marginal contribution value of each participant in the participant combination, and judging whether to use the first estimation method or the second estimation method to estimate the utility value of the participant combination according to the marginal contribution value and the weight; using the estimation result to update the lookup table, and iteratively estimating the utility value of each participant combination in turn, obtaining the final lookup table obtained after updating according to the utility value, so as to use the final lookup table to calculate the contribution value of the participant. 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 contribution values ​​of participants 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 value of the participants in the joint learning, the joint learning system is usually used to determine the contribution value of each participant to the joint model in the joint learning 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 value 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-mentioned problems in the prior art, it is necessary to provide a method for determining the contribution values ​​of joint learning participants that can improve the calculation accuracy of the contribution value, reduce the amount of calculation data, make the calculation results 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 values ​​of participants in joint learning, so as to solve the problems of the existing method for calculating the contribution values ​​of joint learning, such as low calculation accuracy, inaccurate calculation results, large amount of calculation data and low calculation efficiency.

[0006] According to a first aspect of an embodiment of the present disclosure, a method for determining the contribution value of a participant in joint learning is provided, comprising: determining all combinations of participants based on the participants in the joint learning, and calculating the weight of each combination of participants in all combinations of participants; determining a first utility value of the joint model before the start of a current aggregation cycle, and a second utility value of the joint model after the end of the current aggregation cycle, calculating a utility change value based on the first utility value and the second utility value, and establishing a lookup table; wherein the utility change value is used to determine whether to calculate the contribution value of each participant in the current aggregation cycle; when determining to calculate the contribution value, selecting a combination of participants from all combinations of participants, and calculating the marginal contribution value corresponding to each participant in the combination of participants, and judging whether to estimate the utility value of the combination of participants using the first estimation method or the second estimation method according to the marginal contribution value and the weight; determining an estimation result of the utility value of the combination of participants using the first estimation method or the second estimation method, updating the lookup table using the estimation result, and iteratively estimating the utility value of each combination of participants in turn, obtaining a final lookup table updated according to the utility value, so as to calculate the contribution value of the participant using the final lookup table.

[0007] According to a second aspect of an embodiment of the present disclosure, there is provided a device for determining contribution values ​​of participants in joint learning, comprising: a determination module, configured to determine all combinations of participants based on the participants in the joint learning, and calculate the weight of each combination of participants in all combinations of participants; an establishment module, configured to determine a first utility value of the joint model before the start of a current aggregation cycle, and a second utility value of the joint model after the end of the current aggregation cycle, calculate a utility change value based on the first utility value and the second utility value, and establish a lookup table; wherein the utility change value is used to determine whether to calculate the contribution value of each participant in the current aggregation cycle; and a judgment module, configured to determine a first utility value of the joint model before the start of a current aggregation cycle, and a second utility value of the joint model after the end of the current aggregation cycle, calculate a utility change value based on the first utility value and the second utility value, and establish a lookup table; wherein the utility change value is used to determine whether to calculate the contribution value of each participant in the current aggregation cycle; and When calculating the contribution value, a participant combination is selected from all participant combinations, and the marginal contribution value corresponding to each participant in the participant combination is calculated. According to the marginal contribution value and the weight, it is determined whether to use the first estimation method or the second estimation method to estimate the utility value of the participant combination; the calculation module is configured to determine the estimation result of the utility value of the participant combination by the first estimation method or the second estimation method, update the lookup table using the estimation result, and iterate and estimate the utility value of each participant combination in turn, and obtain the final lookup table obtained after updating according to the utility value, so as to use the final lookup table to calculate the contribution value of the participant.

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

[0009] The method comprises the following steps: determining all combinations of participants based on the participants in the joint learning, and calculating the weight of each combination of participants in all combinations of participants; determining a first utility value of the joint model before the start of the current aggregation cycle, and a second utility value of the joint model after the end of the current aggregation cycle, calculating a utility change value based on the first utility value and the second utility value, and establishing a lookup table; wherein the utility change value is used to determine whether to calculate the contribution value of each participant in the current aggregation cycle; when determining to calculate the contribution value, selecting a combination of participants from all combinations of participants, and calculating the marginal contribution value corresponding to each participant in the combination of participants, and judging whether to use the first estimation method or the second estimation method to estimate the utility value of the combination of participants according to the marginal contribution value and the weight; determining the estimation result of the utility value of the combination of participants using the first estimation method or the second estimation method, updating the lookup table using the estimation result, and iterating and estimating the utility value of each combination of participants in turn, obtaining a final lookup table updated according to the utility value, so as to calculate the contribution value of the participants using the final lookup table. The present disclosure can improve the calculation accuracy of contribution values ​​in joint learning, reduce the amount of calculation data, make the calculation results of contribution values ​​more accurate, and increase the 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 It is a flowchart of a method for determining contribution values ​​of participants 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 It is a structural diagram of a device for determining contribution values ​​of participants in joint learning provided by an embodiment of the present disclosure;

[0015] Figure 5 It 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 value 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 value of each participant in the joint learning to the joint model training has become an urgent problem to be solved. In the prior art, the joint learning system determines the contribution value of each participant to the joint 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 value of the joint model in joint learning is low, and the accuracy of the joint learning contribution value of each participant is also low. This will lead to insufficient evaluation of the fairness and justice of the contribution value of each participant when the joint learning contribution value 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 value of each participant in joint learning based on the Shapley value calculation rule and in combination with 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 the joint model training of each participant in 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 device for determining contribution values ​​of participants 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 above three, 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 contribution values ​​of participants in joint learning provided by an embodiment of the present disclosure. Figure 2 The method for determining the contribution value of a participant in the joint learning can be executed by the server of the joint learning. Figure 2 As shown, the method for determining the contribution value of the participants in the joint learning may specifically include:

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

[0030] S202, determining a first utility value of the joint model before the current aggregation cycle begins, and a second utility value of the joint model after the current aggregation cycle ends, calculating a utility change value based on the first utility value and the second utility value, and establishing a lookup table; wherein the utility change value is used to determine whether to calculate the contribution value of each participant in the current aggregation cycle;

[0031] S203, when determining to calculate the contribution value, select a participant combination from all participant combinations, and calculate the marginal contribution value corresponding to each participant in the participant combination, and determine whether to use the first estimation method or the second estimation method to estimate the utility value of the participant combination according to the marginal contribution value and the weight;

[0032] S204, determine the estimation result of the utility value of the participant combination by the first estimation method or the second estimation method, use the estimation result to update the lookup table, and iteratively estimate the utility value of each participant combination in turn, and obtain the final lookup table after updating according to the utility value, so as to use the final lookup table to calculate the contribution value of the participant.

[0033] 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 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.

[0034] 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.

[0035] Furthermore, in federated learning, an aggregation cycle refers to a round of training for the federated 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 model.

[0036] According to the technical solution provided by the embodiment of the present disclosure, all combinations of participants are determined based on the participants in the joint learning, and the weight of each combination of participants in all combinations of participants is calculated; the first utility value of the joint model before the start of the current aggregation cycle and the second utility value of the joint model after the end of the current aggregation cycle are determined, the utility change value is calculated based on the first utility value and the second utility value, and a lookup table is established; wherein the utility change value is used to determine whether to calculate the contribution value of each participant in the current aggregation cycle; when determining to calculate the contribution value, a combination of participants is selected from all combinations of participants, and the marginal contribution value corresponding to each participant in the combination of participants is calculated, and according to the marginal contribution value and the weight, it is determined whether to use the first estimation method or the second estimation method to estimate the utility value of the combination of participants; the estimation result of the utility value of the combination of participants using the first estimation method or the second estimation method is determined, the lookup table is updated using the estimation result, and the utility value of each combination of participants is estimated iteratively in turn, and the final lookup table obtained after updating according to the utility value is obtained, so as to calculate the contribution value of the participant using the final lookup table. The present disclosure can improve the calculation accuracy of contribution values ​​in joint learning, reduce the amount of calculation data, make the calculation results of contribution values ​​more accurate, and increase the calculation efficiency.

[0037] 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:

[0038] In some embodiments, all combinations of participants are determined based on the participants in the joint learning, and the weight of each combination of participants in all combinations of participants is calculated, including: determining the participants in the joint learning, enumerating the participants in order from the least to the most to obtain multiple combinations of participants, and taking the set formed by the multiple combinations of participants as all combinations of participants; calculating the weight corresponding to the participant combination based on the number of participants in the participant combination, wherein the weight is used to represent the probability of the participant combination appearing in all combinations of participants.

[0039] 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:

[0040] 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 model aggregation method Agg(·), thresholds λ, η; where λ represents the first truncation threshold and η represents the second truncation threshold.

[0041] 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|! .

[0042] 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.

[0043] In some embodiments, a first utility value of the joint model before the start of the current aggregation cycle and a second utility value of the joint model after the end of the current aggregation cycle are determined, a utility change value is calculated based on the first utility value and the second utility value, and a lookup table is established, including: determining the first utility value and the second utility value corresponding to the joint model before and after the start of the current aggregation cycle, calculating the difference between the second utility value and the first utility value, using the difference as the utility change value, and establishing a lookup table containing all participant combinations corresponding to the current aggregation cycle; performing an initialization operation 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.

[0044] Specifically, the utility value corresponding to the joint 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 current aggregation cycle (i.e., the current aggregation cycle) and the initial utility value of the current 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:

[0045] 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.

[0046] 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.

[0047] In some embodiments, the utility change value is used to determine whether to calculate the contribution value of each participant in the current aggregation cycle, including: comparing the utility change value of the joint model corresponding to the current aggregation cycle with a preset first truncation threshold. When the utility change value is less than the first truncation threshold, it is determined that the contribution value of each participant in the current aggregation cycle is 0; otherwise, the contribution value of each participant in the current aggregation cycle is recalculated.

[0048] 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, 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 determining 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:

[0049] In the current aggregation cycle, if |v N -v0|≤λ, then the contribution value of each participant i in this aggregation period t And 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 contribution value of each participant in this aggregation cycle is directly judged to be 0.

[0050] 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 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.

[0051] In some embodiments, a participant combination is selected from all participant combinations, and the marginal contribution value corresponding to each participant in the participant combination is calculated, including: selecting a participant combination from all participant combinations in accordance with the arrangement order of each participant combination in all participant combinations, and randomly selecting a participant from the participant combination; dividing a sub-combination from the participant combination according to the participants, calculating the marginal contribution value generated when the participant joins the sub-combination, and iterating the participants in the participant combination in turn to calculate the marginal contribution value corresponding to each participant; wherein the sub-combination is a set of participants in the participant combination except the randomly selected participant.

[0052] 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.

[0053] 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:

[0054] 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) ).

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

[0056] In some embodiments, based on the marginal contribution value and the weight, it is determined whether to use the first estimation method or the second estimation method to estimate the utility value of the participant combination, including: calculating the product of the marginal contribution value of the participant and the weight of the participant combination to which the participant belongs, 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 second truncation threshold, it is determined to use the first estimation method to estimate the utility value of the participant combination; otherwise, the utility value of the participant combination is estimated using the second estimation method.

[0057] 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:

[0058] 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 use the utility value of the sub-combination to estimate the utility value of the participant combination P; otherwise, use the preset model deduction method to calculate the utility value of the participant combination P.

[0059] 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. The utility value of the participant combination P can be directly estimated using the utility value of the sub-combination. 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.

[0060] 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.

[0061] 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 use the utility value of the sub-combination to estimate the utility value of the participant combination or to use the model deduction method to calculate the utility value of the participant combination; since the complexity of model deduction is very high and the amount of calculation is large, therefore, by adding the above-mentioned judgment means, for the participant combination that does not need to perform model deduction, the utility value of the participant combination can be directly estimated by using the utility value of the sub-combination that has been calculated in the previous iteration process, thereby improving the calculation speed of the contribution value.

[0062] In some embodiments, the utility value of the participant combination is estimated using a first estimation method, including: obtaining the utility values ​​corresponding to sub-combinations in the participant combination from a lookup table, calculating the average, maximum or minimum values ​​of the utility values ​​corresponding to the sub-combinations, using the calculated average, maximum or minimum value as the estimated value of the utility value of the participant combination, and updating the lookup table according to the estimated value.

[0063] Specifically, the first estimation method is to estimate the utility value of the participant combination by using the utility values ​​corresponding to the sub-combinations in the participant combination. When using the utility values ​​of the sub-combinations that have been calculated to estimate the utility value of the participant combination, the utility value of the participant combination is approximated by calculating the average, maximum or minimum value between the utility values ​​of the sub-combinations. For example, for the participant combination (1, 2, 3), the value of v(1, 2, 3) can be estimated by using the average, maximum or minimum value of v(1, 2), v(2, 3), and v(1, 3), and the values ​​of v(1, 2), v(2, 3), and v(1, 3) already exist in the v_lut lookup table.

[0064] Furthermore, taking the calculation of the average value between the utility values ​​of the sub-combinations as an example, the calculation process of the utility value of the participant combination is described in detail, which may specifically include the following formula:

[0065] V(P)=mean(VS_hist)

[0066] Among them, V(P) represents the utility value of the participant combination, and VS_hist represents the utility value corresponding to the sub-combination; according to the average value calculation formula, the utility estimation value of the participant combination P can be obtained and the lookup table v_lut[P]=V(P) can be updated.

[0067] Furthermore, in the above calculation formula, the utility estimate of the participant combination P is calculated by the method of finding the average value (i.e., mean in the formula), but in actual application, in addition to the method of finding the average value, the utility estimate of the participant combination P can also be calculated by calculating the maximum value or the minimum value. 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 above utility value calculation method does not constitute a limitation on the technical solution of the present application.

[0068] In some embodiments, the utility value of the participant combination is estimated using a second estimation method, including: aggregating 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.

[0069] Specifically, the second estimation method is to use a preset model deduction method to calculate the utility value of the participant combination. The model deduction adopts 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.

[0070] In some embodiments, a final lookup table updated according to the utility value is obtained so that the contribution value of the participant can be calculated using the final lookup table, including: obtaining the utility value of the participant combination in the final lookup table, and using a preset Shapley value formula to calculate the contribution value corresponding to each participant respectively, wherein the contribution value is used to represent the contribution value of the participant to the joint model trained in the aggregation cycle in the joint learning.

[0071] 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.

[0072] 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:

[0073]

[0074] 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.

[0075] 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.

[0076] 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.

[0077] 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.

[0078] Figure 4 Schematic diagram of the structure of the device for determining the contribution value of a participant in the joint learning provided by the embodiment of the present disclosure. Figure 4 As shown, the device for determining the contribution value of the participating party in the joint learning includes:

[0079] The determination module 401 is configured to determine all combinations of participants based on the participants in the joint learning, and calculate the weight of each combination of participants in all combinations of participants;

[0080] Establishing module 402, configured to determine a first utility value of the joint model before the current aggregation period starts, and a second utility value of the joint model after the current aggregation period ends, calculate a utility change value based on the first utility value and the second utility value, and establish a lookup table; wherein the utility change value is used to determine whether to calculate the contribution value of each participant in the current aggregation period;

[0081] The judgment module 403 is configured to select a participant combination from all participant combinations when judging and calculating the contribution value, and calculate the marginal contribution value corresponding to each participant in the participant combination, and judge whether to use the first estimation method or the second estimation method to estimate the utility value of the participant combination according to the marginal contribution value and the weight;

[0082] The calculation module 404 is configured to determine the estimation result of the utility value of the participant combination by the first estimation method or the second estimation method, update the lookup table using the estimation result, and iteratively estimate the utility value of each participant combination in turn, and obtain the final lookup table after updating according to the utility value, so as to use the final lookup table to calculate the contribution value of the participant.

[0083] In some embodiments, Figure 4 The determination module 401 determines the participants in the joint learning, enumerates the participants in order from the least to the most in number to obtain multiple participant combinations, and takes the set formed by the multiple participant combinations as all participant combinations; calculates the weight corresponding to the participant combination based on the number of participants in the participant combination, wherein the weight is used to represent the probability of the participant combination appearing in all participant combinations.

[0084] In some embodiments, Figure 4 The establishment module 402 determines the first utility value and the second utility value corresponding to the joint model before and after the current aggregation cycle, calculates the difference between the second utility value and the first utility value, uses the difference as the utility change value, and establishes a lookup table containing all participant combinations corresponding to the current aggregation cycle; performs an initialization operation 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.

[0085] In some embodiments, Figure 4 The establishment module 402 compares the utility change value of the joint model corresponding to the current aggregation period with the preset first truncation threshold. When the utility change value is less than the first truncation threshold, it is judged that the contribution value of each participant in the current aggregation period is 0; otherwise, the contribution value of each participant in the current aggregation period is recalculated.

[0086] In some embodiments, Figure 4 The judgment module 403 selects a participant combination from all the participant combinations in accordance with the arrangement order of each participant combination in all the participant combinations, and randomly selects a participant from the participant combination; divides a sub-combination from the participant combination according to the participant, calculates the marginal contribution value generated when the participant joins the sub-combination, and iterates the participants in the participant combination in turn to calculate the marginal contribution value corresponding to each participant; wherein the sub-combination is a set of participants in the participant combination except the randomly selected participant.

[0087] In some embodiments, Figure 4 The judgment module 403 calculates the product of the marginal contribution value of the participant and the weight of the participant combination to which the participant belongs, and compares 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 second truncation threshold, it is determined to use the first estimation method to estimate the utility value of the participant combination; otherwise, the utility value of the participant combination is estimated using the second estimation method.

[0088] In some embodiments, Figure 4 The judgment module 403 obtains the utility value corresponding to the sub-combination in the participant combination from the lookup table, calculates the average value, maximum value or minimum value of the utility value corresponding to the sub-combination, uses the calculated average value, maximum value or minimum value as the estimated value of the utility value of the participant combination, and updates the lookup table according to the estimated value.

[0089] In some embodiments, Figure 4The judgment module 403 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 verification set, calculates the real utility value of the participant combination, and uses the real utility value to update the lookup table.

[0090] In some embodiments, Figure 4 The calculation module 404 obtains the utility value of the participant combination in the final lookup table, and uses the preset Shapley value formula to calculate the contribution value corresponding to each participant, wherein the contribution value is used to represent the contribution value of the participant to the joint model trained in the aggregation cycle in the joint learning.

[0091] 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.

[0092] 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.

[0093] 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.

[0094] 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.

[0095] 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.

[0096] 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.

[0097] 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.

[0098] 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.

[0099] 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.

[0100] 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.

[0101] 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.

[0102] 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.

[0103] 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.

[0104] 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 value of a participant in joint learning, characterized in that: include: Determine all combinations of participants based on the participants in the joint learning, and calculate the weight of each combination of participants in the all combinations of participants; Determine a first utility value of the joint model before the start of the current aggregation cycle, and a second utility value of the joint model after the end of the current aggregation cycle, calculate a utility change value based on the first utility value and the second utility value, and establish a lookup table; wherein the utility change value is used to determine whether to calculate the contribution value of each participant in the current aggregation cycle; When determining and calculating the contribution value, a participant combination is selected from all the participant combinations, and the marginal contribution value corresponding to each participant in the participant combination is calculated, and according to the marginal contribution value and the weight, it is determined whether to use the first estimation method or the second estimation method to estimate the utility value of the participant combination; Determine the estimation result of the utility value of the combination of participants using the first estimation method or the second estimation method, use the estimation result to update the lookup table, and iteratively estimate the utility value of each combination of participants in turn, and obtain the final lookup table after updating according to the utility value, so as to use the final lookup table to calculate the contribution value of the participant.

2. The method according to claim 1, characterized in that The determining of all combinations of participants based on the participants in the joint learning, and calculating the weight of each combination of participants in the all combinations of participants, includes: Determine the participants in the joint learning, enumerate the participants in order from the smallest to the largest number to obtain a plurality of participant combinations, and take the set formed by the plurality of participant combinations as the total participant combination; The weight corresponding to the participant combination is calculated based on the number of participants in the participant combination, wherein the weight is used to represent the probability of the participant combination appearing in all the participant combinations.

3. The method according to claim 1, characterized in that The determining of a first utility value of the joint model before the current aggregation period starts and a second utility value of the joint model after the current aggregation period ends, calculating a utility change value based on the first utility value and the second utility value, and establishing a lookup table includes: Determine the first utility value and the second utility value corresponding to the joint model before and after the current aggregation period, calculate the difference between the second utility value and the first utility value, use the difference as the utility change value, and establish a lookup table corresponding to the current aggregation period that includes all the participant combinations; 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 utility change value is used to determine whether to calculate the contribution value of each participant in the current aggregation period, including: The utility change value of the joint model corresponding to the current aggregation period is compared with the preset first truncation threshold. When the utility change value is less than the first truncation threshold, the contribution value of each participant in the current aggregation period is judged to be 0; otherwise, the contribution value of each participant in the current aggregation period is recalculated.

5. The method according to claim 1, characterized in that The selecting a participant combination from all the participant combinations and calculating the marginal contribution value corresponding to each participant in the participant combination includes: According to the arrangement order of each participant combination in the said all participant combinations, one participant combination is selected from the said all participant combinations in turn, and one participant is randomly selected from the said participant combinations; A sub-group is divided from the participant group according to the participant, and the marginal contribution value generated when the participant joins the sub-group is calculated, and the participants in the participant group are iterated in sequence to calculate the marginal contribution value corresponding to each participant; The sub-combination is a set of parties other than the randomly selected party in the party combination.

6. The method according to claim 5, characterized in that The step of determining, based on the marginal contribution value and the weight, whether to use the first estimation method or the second estimation method to estimate the utility value of the participant combination includes: Calculating the product of the marginal contribution value of the participant and the weight of the participant combination to which the participant belongs, and comparing 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 the second truncation threshold, it is determined to use the first estimation method to estimate the utility value of the participant combination; otherwise, the second estimation method is used to estimate the utility value of the participant combination.

7. The method according to claim 6, characterized in that The estimating the utility value of the participant combination by using the first estimation method includes: Obtain utility values ​​corresponding to sub-combinations in the participant combination from the lookup table, calculate an average value, a maximum value, or a minimum value for the utility values ​​corresponding to the sub-combinations, use the calculated average value, maximum value, or minimum value as an estimated value of the utility value of the participant combination, and update the lookup table based on the estimated value.

8. The method according to claim 6, characterized in that The estimating the utility value of the participant combination by using the second estimation method 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 obtaining of a final lookup table updated according to the utility value, so as to calculate the contribution value of the participant by using the final lookup table, includes: Obtain the utility value of the participant combination in the final lookup table, and use the preset Shapley value formula to calculate the contribution value corresponding to each participant, wherein the contribution value is used to represent the contribution value of the participant to the joint model trained in the aggregation cycle in the joint learning.

10. A device for determining the contribution value of a participant in joint learning, characterized in that: include: A determination module is configured to determine all combinations of participants based on the participants in the joint learning, and calculate the weight of each combination of participants in the all combinations of participants; An establishment module is configured to determine a first utility value of the joint model before the start of a current aggregation cycle and a second utility value of the joint model after the end of the current aggregation cycle, calculate a utility change value based on the first utility value and the second utility value, and establish a lookup table; wherein the utility change value is used to determine whether to calculate the contribution value of each participant in the current aggregation cycle; A judgment module is configured to select a participant combination from all the participant combinations when judging and calculating the contribution value, and calculate the marginal contribution value corresponding to each participant in the participant combination, and determine whether to use the first estimation method or the second estimation method to estimate the utility value of the participant combination according to the marginal contribution value and the weight; A calculation module is configured to determine an estimation result of the utility value of the combination of participants using the first estimation method or the second estimation method, update the lookup table using the estimation result, and iteratively estimate the utility value of each combination of participants in turn, and obtain a final lookup table updated according to the utility value, so as to use the final lookup table to calculate the contribution value of the participant.