Vertical federation feature derivation method, device, and medium based on privacy computing

Using private computing technology to determine and update model parameters in vertical federated learning solves the problem of invalid feature values ​​affecting model training efficiency in vertical federated learning, achieving more efficient model training and data privacy protection.

CN114881247BActive Publication Date: 2024-10-18TONGDUN NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210658086.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-10
Publication Date
2024-10-18
Estimated Expiration
2042-06-10

AI Technical Summary

Technical Problem

In vertical federated learning, due to the large number of invalid feature values ​​in the sample, the model training efficiency is low, which affects the efficiency of data fusion and research and development.

Method used

Through the method based on privacy calculation, the first party and the second party respectively determine the linear features and interactive features, update the model parameters through the target loss function, use encryption technology to reduce the impact of invalid feature values, and improve the efficiency of gradient calculation.

Benefits of technology

It effectively reduces the impact of invalid feature values ​​on model training, improves model training efficiency in longitudinal federated learning, and ensures data privacy and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114881247B_ABST
    Figure CN114881247B_ABST
Patent Text Reader

Abstract

The present application provides a vertical federated feature derivation method, device, and medium based on privacy computing, which relates to the field of computer technology, including: a first participant determines a target loss function based on a first linear feature and a first interactive feature generated by the first participant, a second linear feature and a second interactive feature generated by a second participant, and a feature label of the first participant, and determines a first gradient for updating a first model parameter according to the target loss function; encrypts the residual feature in the first gradient into a residual ciphertext, and sends the residual ciphertext to the second participant; the second participant generates a gradient ciphertext to be decrypted according to the residual ciphertext, and sends the gradient ciphertext to be decrypted to the first participant; the first participant decrypts the gradient ciphertext to be decrypted, obtains target data containing a second gradient for updating a second model parameter, and sends the target data to the second participant. This can improve the efficiency of model training in vertical federated learning scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more specifically, to a vertical federated feature derivation method, device, and medium based on privacy computing. Background Art

[0002] With the development of artificial intelligence technology, people's demand for data is growing. Different institutions have different data, and the data are often complementary in multiple dimensions, so there is usually a great demand for data integration between different Internet organizations. Due to considerations such as the privacy protection of local data, it is difficult to directly aggregate the data of different institutions, so it is easy to form data islands, making it difficult for Internet organizations to use existing data in multiple fields to complete further research and development. Therefore, the method of federated learning is proposed to solve the above problems.

[0003] Generally speaking, the above problems can be solved by using a vertical federated learning method with consistent data samples and complementary feature dimensions. However, in vertical federated learning, there are usually many invalid feature values ​​in the samples (which can also be understood as sparse valid values ​​in the samples). The dimensions of such samples are usually high, which can easily affect the efficiency of model training in the application scenarios of vertical federated learning.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The purpose of this application is to provide a vertical federated feature derivation method based on privacy computing, a vertical federated feature derivation device based on privacy computing, a computer-readable storage medium and an electronic device, which can improve the model training efficiency in the vertical federated learning scenario.

[0006] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0007] According to one aspect of the present application, a vertical federated feature derivation method based on privacy computing is provided, the method comprising a first participant and a second participant; the first participant comprises a feature label, a first local sample and a first model parameter, and the second participant comprises a second local sample and a second model parameter; the method comprises:

[0008] The first participant determines a first linear feature and a first interactive feature based on the first local sample;

[0009] The second participant determines a second linear feature and a second interactive feature based on the second local sample, and sends the second linear feature and the second interactive feature to the first participant;

[0010] The first participant determines a target loss function based on the first linear feature, the first interactive feature, the second linear feature, the second interactive feature, and the feature label, and determines a first gradient for updating the first model parameter according to the target loss function; encrypts the residual feature in the first gradient into a residual ciphertext, and sends the residual ciphertext to the second participant;

[0011] The second participant generates a gradient ciphertext to be decrypted based on the residual ciphertext, and sends the gradient ciphertext to be decrypted to the first participant;

[0012] The first participant decrypts the gradient ciphertext to be decrypted, obtains target data including the second gradient, and sends the target data to the second participant; wherein the second gradient is used to update the second model parameters.

[0013] In an exemplary embodiment of the present application, the method further includes:

[0014] The first participant generates a corresponding public key and private key, and sends the public key to the second participant; wherein the private key is used to decrypt the gradient ciphertext to be decrypted.

[0015] In an exemplary embodiment of the present application, the first participant encrypts the residual feature in the first gradient into a residual ciphertext, including:

[0016] The first participant extracts residual features in the first gradient according to a preset extraction rule;

[0017] The first participant encrypts the residual features using the public key to obtain the residual ciphertext.

[0018] In an exemplary embodiment of the present application, the second party generates a gradient ciphertext to be decrypted according to the residual ciphertext, including:

[0019] The second participant calculates the intermediate parameter according to the residual ciphertext, and calculates the mask corresponding to the intermediate parameter based on the preset ciphertext space;

[0020] The second participant encrypts the mask using the public key to obtain the masked ciphertext;

[0021] The second participant fuses the masked ciphertext and the intermediate parameters to obtain the gradient ciphertext to be decrypted.

[0022] In an exemplary embodiment of the present application, after the first participant determines a first gradient for updating a first model parameter according to the target loss function, the method further includes:

[0023] The first participant updates the first model parameter according to the first gradient.

[0024] In an exemplary embodiment of the present application, after the first participant sends the target data to the second participant, the method further includes:

[0025] The second party parses a second gradient from the target data based on the mask;

[0026] The second participant updates the second model parameters according to the second gradient.

[0027] In an exemplary embodiment of the present application, after the first participant updates the first model parameter according to the first gradient, the method further includes:

[0028] After obtaining the data to be predicted, the first participant inputs the data to be predicted into the first model, and predicts the label corresponding to the data to be predicted through the first model; wherein the updated first model parameters are applied to the first model.

[0029] According to one aspect of the present application, a vertical federation feature derivation device based on privacy computing is provided, comprising:

[0030] A first feature determination module, configured to determine a first linear feature and a first interactive feature based on a first local sample;

[0031] A second feature determination module, configured to determine a second linear feature and a second interactive feature based on a second local sample, and send the second linear feature and the second interactive feature to the first participant;

[0032] A first parameter determination module is used to determine a target loss function based on the first linear feature, the first interactive feature, the second linear feature, the second interactive feature and the feature label, and determine a first gradient for updating the first model parameter according to the target loss function; encrypt the residual feature in the first gradient into a residual ciphertext, and send the residual ciphertext to the second participant;

[0033] A second parameter determination module is used to generate a gradient ciphertext to be decrypted according to the residual ciphertext, and send the gradient ciphertext to be decrypted to the first participant;

[0034] The first parameter determination module is also used to decrypt the gradient ciphertext to be decrypted, obtain target data containing the second gradient, and send the target data to the second participant; wherein the second gradient is used to update the second model parameter.

[0035] In an exemplary embodiment of the present application, the device further includes:

[0036] A key generation module is used to generate corresponding public keys and private keys, and send the public key to the second participant; wherein the private key is used to decrypt the gradient ciphertext to be decrypted.

[0037] In an exemplary embodiment of the present application, the first parameter determination module encrypts the residual feature in the first gradient into a residual ciphertext, including:

[0038] The first parameter determination module extracts residual features in the first gradient according to a preset extraction rule;

[0039] The first parameter determination module encrypts the residual feature by using a public key to obtain a residual ciphertext.

[0040] In an exemplary embodiment of the present application, the second parameter determination module generates a gradient ciphertext to be decrypted according to the residual ciphertext, including:

[0041] The second parameter determination module calculates the mask corresponding to the residual ciphertext based on the preset ciphertext space;

[0042] The second parameter determination module encrypts the mask by using the public key to obtain the mask ciphertext;

[0043] The second parameter determination module fuses the mask ciphertext and the residual ciphertext to obtain the gradient ciphertext to be decrypted.

[0044] In an exemplary embodiment of the present application, the device further includes:

[0045] The first model updating module is used to update the first model parameter according to the first gradient after the first parameter determination module determines the first gradient for updating the first model parameter according to the target loss function.

[0046] In an exemplary embodiment of the present application, the device further includes:

[0047] The second model updating module is used to parse the second gradient from the target data based on the mask after the first parameter determination module sends the target data to the second participant; and update the second model parameters according to the second gradient.

[0048] In an exemplary embodiment of the present application, the device further includes:

[0049] A prediction module is used to input the data to be predicted into the first model after updating the first model parameters according to the first gradient and after obtaining the data to be predicted, and predict the label corresponding to the data to be predicted through the first model; wherein the updated first model parameters are applied to the first model.

[0050] According to one aspect of the present application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform any one of the above methods by executing the executable instructions.

[0051] According to one aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, any one of the above methods is implemented.

[0052] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.

[0053] The exemplary embodiments of the present application may have some or all of the following beneficial effects:

[0054] In a vertical federated feature derivation method based on privacy computing provided in an example embodiment of the present application, the method includes a first participant and a second participant; the first participant includes a feature label, a first local sample and a first model parameter, and the second participant includes a second local sample and a second model parameter; the method may specifically include the following steps: the first participant determines a first linear feature and a first interactive feature based on the first local sample; the second participant determines a second linear feature and a second interactive feature based on the second local sample, and sends the second linear feature and the second interactive feature to the first participant; the first participant determines a target loss function based on the first linear feature, the first interactive feature, the second linear feature, the second interactive feature and the feature label, and determines a first gradient for updating the first model parameter according to the target loss function; the residual feature in the first gradient is encrypting into a residual ciphertext, and the residual ciphertext is sent to the second participant; the second participant generates a gradient ciphertext to be decrypted based on the residual ciphertext, and sends the gradient ciphertext to be decrypted to the first participant; the first participant decrypts the gradient ciphertext to be decrypted to obtain target data containing the second gradient, and sends the target data to the second participant; wherein the second gradient is used to update the second model parameter. It can be seen that the implementation of the above scheme can reduce the impact of invalid feature values ​​on vertical federated learning based on the above feature derivation method, so as to improve the efficiency of determining the first gradient and the second gradient, which is beneficial to improve the model training efficiency in the vertical federated learning scenario.

[0055] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0057] Figure 1 A schematic diagram showing an exemplary system architecture of a vertical federation feature derivation method based on privacy computing and a vertical federation feature derivation device based on privacy computing to which an embodiment of the present application can be applied;

[0058] Figure 2 A flowchart of a vertical federation feature derivation method based on privacy computing according to an embodiment of the present application is schematically shown;

[0059] Figure 3 A flowchart of a vertical federation feature derivation method based on privacy computing according to another embodiment of the present application is schematically shown;

[0060] Figure 4 A sequence diagram of a vertical federation feature derivation method based on privacy computing according to an embodiment of the present application is schematically shown;

[0061] Figure 5 The structure block diagram of a vertical federation feature derivation device based on privacy computing in one embodiment of the present application is schematically shown;

[0062] Figure 6 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0063] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present application will be more comprehensive and complete, and the concept of the example embodiments will be fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical solutions of the present application may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present application.

[0064] In addition, the accompanying drawings are only schematic illustrations of the present application and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0065] See also Figure 1 , Figure 1 A schematic diagram of the system architecture of an exemplary application environment of a vertical federated feature derivation method based on privacy computing and a vertical federated feature derivation device based on privacy computing to which an embodiment of the present application can be applied is shown.

[0066] like Figure 1 As shown, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc. The terminal devices 101, 102, 103 may be various electronic devices with display screens, including but not limited to desktop computers, portable computers, smart phones, tablet computers, etc. It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. For example, the server 105 may be a server cluster composed of multiple servers.

[0067] In the vertical federation feature derivation method based on privacy computing provided in the embodiment of the present application, in one case, the first participant can be a terminal device 101, 102 or 103, and the second participant can be a server 105, so as to realize data interaction between the terminal device and the server; in the second case, the second participant can be a terminal device 101, 102 or 103, and the first participant can be a server 105, so as to realize data interaction between the terminal device and the server; in the third case, the first participant can be any one of the terminal devices 101, 102 or 103, and the second participant can also be any one of the terminal devices 101, 102 or 103, so as to realize data interaction between terminal devices and terminal devices; in the fourth case, the server 105 can be a server cluster, the first participant can be a server node in the server cluster, and the second participant can also be a server node in the server cluster, so as to realize data interaction between server nodes and server nodes.

[0068] For example, taking the first case as an example, the terminal device 101, 102 or 103 determines the first linear feature and the first interactive feature based on the first local sample; the server 105 determines the second linear feature and the second interactive feature based on the second local sample, and sends the second linear feature and the second interactive feature to the terminal device 101, 102 or 103; the terminal device 101, 102 or 103 determines the target loss function based on the first linear feature, the first interactive feature, the second linear feature, the second interactive feature and the feature label, and determines the first gradient for updating the first model parameter according to the target loss function; the residual feature in the first gradient is encrypting into a residual ciphertext, and the residual ciphertext is sent to the server 105; the server 105 generates a gradient ciphertext to be decrypted according to the residual ciphertext, and sends the gradient ciphertext to be decrypted to the terminal device 101, 102 or 103; the terminal device 101, 102 or 103 decrypts the gradient ciphertext to be decrypted, obtains the target data containing the second gradient, and sends the target data to the server 105; wherein the second gradient is used to update the second model parameter.

[0069] See also Figure 2 , Figure 2 The flowchart of the vertical federated feature derivation method based on privacy computing according to an embodiment of the present application is schematically shown. The method includes a first participant and a second participant; the first participant includes a feature label, a first local sample and a first model parameter, and the second participant includes a second local sample and a second model parameter; the number of invalid feature values ​​in the first local sample is greater than a first threshold, and the number of invalid feature values ​​in the second local sample is greater than a second threshold. Figure 2 As shown, the vertical federated feature derivation method based on privacy computing includes: steps S210 to S250.

[0070] Step S210: The first participant determines a first linear feature and a first interactive feature based on a first local sample.

[0071] Step S220: The second participant determines a second linear feature and a second interactive feature based on the second local sample, and sends the second linear feature and the second interactive feature to the first participant.

[0072] Step S230: The first participant determines a target loss function based on the first linear feature, the first interactive feature, the second linear feature, the second interactive feature and the feature label, and determines a first gradient for updating the first model parameter according to the target loss function; encrypts the residual feature in the first gradient into a residual ciphertext, and sends the residual ciphertext to the second participant.

[0073] Step S240: The second participant generates a gradient ciphertext to be decrypted according to the residual ciphertext, and sends the gradient ciphertext to be decrypted to the first participant.

[0074] Step S250: The first participant decrypts the first partial derivative to be decrypted, obtains target data including the second gradient, and sends the target data to the second participant; wherein the second gradient is used to update the second model parameters.

[0075] Implementation Figure 2 The method shown can reduce the impact of invalid feature values ​​on vertical federated learning based on the above-mentioned feature derivation method to improve the efficiency of determining the first gradient and the second gradient, which is beneficial to improving the model training efficiency in the vertical federated learning scenario.

[0076] Next, the above steps of this exemplary embodiment are described in more detail.

[0077] In step S210, the first participant determines a first linear feature and a first interactive feature based on a first local sample.

[0078] Specifically, the difference between the first participant and the second participant is that the first participant contains a label, while the second participant does not contain a label. In the vertical federated learning scenario, one or more first participants and one or more second participants may be included, wherein any first participant and any second participant may implement the processing of sample data by implementing the embodiments of the present application.

[0079] For example, the first party may include features "name", "gender", "violation frequency" and a label "whether it is a high-quality customer", which can be specifically expressed as follows:

[0080]

[0081] The second participant may include the features "name", "gender", "reimbursement frequency" and "reimbursement amount", which may be specifically represented as follows:

[0082] User ID Name Reimbursement frequency Reimbursement amount 1 ** 0 0 2 *** 5 30 3 ## 0 0 4 ### 0 0 5 $$$ 0 0

[0083] In the present application, the first local sample corresponding to the first participant may belong to a sparse matrix / high-dimensional sparse matrix, and the second local sample corresponding to the second participant may also belong to a sparse matrix / high-dimensional sparse matrix. In this case, it is necessary to implement feature derivation for the first local sample and the second local sample through the embodiment of the present application to reduce the impact of the number of invalid eigenvalues ​​in the first local sample and the second local sample on the model training efficiency.

[0084] For example, if the first local sample of the first participant is represented as the following high-dimensional sparse matrix:

[0085]

[0086] The second local sample of the second participant is represented as the following high-dimensional sparse matrix:

[0087]

[0088] Among them, the number of 0s in the high-dimensional sparse matrix can be understood as the number of invalid eigenvalues. For the first local sample, when the number of invalid eigenvalues ​​in the first local sample is greater than the first threshold and the number of invalid eigenvalues ​​in the second local sample is greater than the second threshold, the embodiment of the present application can be executed; wherein, the first threshold and the second threshold can be understood as constants, the first threshold and the second threshold can be the same or different, the first threshold can be greater than the second threshold or less than the second threshold, it should be noted that the first threshold and the second threshold are only used to limit the triggering conditions of the present application, that is, the number of invalid eigenvalues ​​in the first local sample needs to be greater than the first threshold, and the number of invalid eigenvalues ​​in the second local sample needs to be greater than the second threshold. When the above conditions are met, the execution of the embodiment of the present application is triggered, so that the execution of the embodiment of the present application can be avoided when the number of invalid eigenvalues ​​in the first local sample is less than the first threshold, or when the number of invalid eigenvalues ​​in the second local sample is less than the second threshold, which is conducive to improving the utilization of computing resources.

[0089] When the number of invalid feature values ​​in the first local sample is greater than a first threshold and the number of invalid feature values ​​in the second local sample is greater than a second threshold, the first participant can determine the first linear feature and the first interactive feature based on the first local sample, and the second participant can determine the second linear feature and the second interactive feature based on the second local sample.

[0090] The first participant determines the first linear feature and the first interactive feature based on the first local sample, which may specifically include: the first participant converts the first local sample x (1) Substitute the expression To get the first interaction feature and the first linear feature F(x (1) ), where the first model parameter θ (1) include i is the counter of the sample feature number, B is the second local sample x (1) The number of sample features, f is a preset counter for the feature encoding of each feature (eg, the second local sample / the first local sample), and k is the dimension of the feature encoding.

[0091] As an optional embodiment, the method further includes: the first participant generates a corresponding public key and private key, and sends the public key to the second participant; wherein the private key is used to decrypt the gradient ciphertext to be decrypted.

[0092] Specifically, the corresponding public key and private key can be expressed as (pk, sk), where pk refers to the public key and sk refers to the private key.

[0093] It should be noted that the step of "the first party generates corresponding public and private keys, and sends the public key to the second party; wherein the private key is used to decrypt the gradient ciphertext to be decrypted" can be set before or after any step in step S210 to step S220, and the embodiment of the present application is not limited thereto.

[0094] It can be seen that by implementing this optional embodiment, encrypted transmission between the data and the second party can be achieved through the public key and the private key, thereby ensuring that the transmitted content is not stolen and improving the confidentiality of the transmission process.

[0095] In step S220, the second participant determines a second linear feature and a second interactive feature based on the second local sample, and sends the second linear feature and the second interactive feature to the first participant.

[0096] Specifically, the second participant determines the second linear feature and the second interactive feature based on the second local sample, which may specifically include: the second participant converts the second local sample x (2) Substitute the expression To obtain the second interaction feature and the second linear feature F(x (1) ), where the second model parameter θ (2) include i is the counter of the sample feature number, B is the second local sample x (2) The number of sample features, f is a preset counter for the feature encoding of each feature (eg, the second local sample / the first local sample), and k is the dimension of the feature encoding.

[0097] It should be noted that the present application does not limit the execution order of step S210 and step S220. In actual applications, step S210 can be executed first or step S220 can be executed first, or the time when the first participant executes step S210 and the time when the second participant executes step S220 can be the same time, that is, step S210 and step S220 can be executed simultaneously.

[0098] In step S230, the first participant determines a target loss function based on the first linear feature, the first interactive feature, the second linear feature, the second interactive feature and the feature label, and determines a first gradient for updating the first model parameter according to the target loss function; encrypts the residual feature in the first gradient into a residual ciphertext, and sends the residual ciphertext to the second participant.

[0099] Specifically, the first participant determines the target loss function based on the first linear feature, the first interactive feature, the second linear feature, the second interactive feature and the feature label, including: the first participant converts the first linear feature F(x (1) ), the first interaction feature E(x (1) ), the second linear feature F(x (2) ), the second interaction feature E(x (2) ) into the expression Get F(x); then, combine F(x) and feature label y m Substitute the target loss function expression into To obtain the target loss function L(θ (1) ,θ (2) ), m is the sample counter, and M is the maximum value of the sample counter.

[0100] Then, determining a first gradient for updating the first model parameter according to the target loss function includes: based on the expression About θ (1) Find the partial derivative and get the first gradient

[0101] in, Specifically, it can be expressed as:

[0102]

[0103] As an optional embodiment, the first party encrypts the residual features in the first gradient into residual ciphertext, including: the first party extracts the residual features in the first gradient according to a preset extraction rule; the first party encrypts the residual features through a public key to obtain the residual ciphertext.

[0104] Specifically, the preset extraction rule is used to limit the representation form of the first gradient, and the first participant extracts the residual feature in the first gradient according to the preset extraction rule, including: the first participant extracts the first gradient according to the preset extraction rule The residual features in

[0105] Then, the first participant encrypts the residual feature y with the public key to obtain the residual ciphertext, including: the first participant encrypts the residual feature y with the public key pk diff Perform homomorphic encryption to obtain the residual ciphertext [y diff ].

[0106] It can be seen that by implementing this optional embodiment, the residual features in the first gradient can be encrypted with a public key to avoid encrypting the entire first gradient and sending it to the second participant. The second participant only needs the residual features during the calculation process, so it is only necessary to encrypt the residual features and send them to the second participant. This can not only ensure that the first gradient is not solved by the second participant, but also improve the transmission efficiency by encrypting only the residual part.

[0107] As an optional embodiment, after the first participant determines the first gradient for updating the first model parameter according to the target loss function, the method further includes: the first participant updates the first model parameter according to the first gradient.

[0108] Specifically, the first model parameters may be parameters of the first model corresponding to the first participant, and the first model parameters may include weights and bias items, etc.

[0109] It can be seen that by implementing this optional embodiment, a more accurate first gradient can be calculated based on the second linear feature and the second interactive feature of the second participant, thereby realizing feature-derived federated learning to improve model training efficiency.

[0110] In step S240, the second participant generates a gradient ciphertext to be decrypted according to the residual ciphertext, and sends the gradient ciphertext to be decrypted to the first participant.

[0111] Specifically, the residual ciphertext can be expressed as [y diff ], the gradient ciphertext to be decrypted can be expressed as

[0112] As an optional embodiment, the second party generates a gradient ciphertext to be decrypted based on the residual ciphertext, including: the second party calculates an intermediate parameter based on the residual ciphertext, and calculates a mask corresponding to the intermediate parameter based on a preset ciphertext space; the second party encrypts the mask using a public key to obtain a masked ciphertext; the second party fuses the masked ciphertext and the intermediate parameter to obtain a gradient ciphertext to be decrypted.

[0113] Specifically, the second participant calculates the intermediate parameter according to the residual ciphertext, and calculates the mask corresponding to the intermediate parameter based on the preset ciphertext space, including: the second participant calculates the mask corresponding to the residual ciphertext [y diff ] Calculate intermediate parameters And calculate the intermediate parameters based on the preset ciphertext space The mask R 2 ; The preset ciphertext space is used to limit the calculation rules of the mask. Then, the second participant encrypts the mask with the public key to obtain the masked ciphertext, including: the second participant encrypts the mask R with the public key pk 2 , get the masked ciphertext [R 2]. Then, the second participant fuses the masked ciphertext and the intermediate parameter to obtain the gradient ciphertext to be decrypted, including: the second participant fuses the masked ciphertext [R 2 ] and intermediate parameters Get the gradient ciphertext to be decrypted

[0114] It can be seen that implementing this optional embodiment can improve the confidentiality of the gradient ciphertext to be decrypted, avoid the first participant solving the mask and then parsing to obtain the second gradient, thereby improving the confidentiality of the second gradient.

[0115] In step S250, the first participant decrypts the gradient ciphertext to be decrypted, obtains target data including the second gradient, and sends the target data to the second participant; wherein the second gradient is used to update the second model parameters.

[0116] Specifically, the first participant decrypts the gradient ciphertext to be decrypted based on the private key sk, including: the first participant decrypts the gradient ciphertext to be decrypted. It should be noted that the target data obtained after the first participant decrypts the gradient ciphertext to be decrypted cannot enable the first participant to obtain the second gradient. Although the target data contains the second gradient, the first participant does not hold the mask and the second participant holds the mask. Therefore, the second participant can parse the second gradient in the target data through the mask, which can avoid the second participant exposing the update of the second model parameters in the vertical federated learning scenario, and can facilitate the second participant to keep the update of the second model parameters confidential, so as to ensure that the party's secrets are not leaked when achieving the purpose of federated learning.

[0117] In addition, the target data can be expressed as The second gradient can be expressed as The second gradient can also be understood as the gradient used to update the second model parameters. 2 , the first party does not hold the mask R 2 In this case, it is not possible to The second gradient is obtained directly in While holding mask R 2 The second party can The second gradient is analyzed

[0118] As an optional embodiment, after the first participant sends the target data to the second participant, the method further includes: the second participant parses a second gradient from the target data based on the mask; and the second participant updates the second model parameters according to the second gradient.

[0119] Specifically, the second model parameters may be parameters of the second model corresponding to the second participant, and the second model parameters may include weights and bias items, etc.

[0120] It can be seen that the implementation of this optional embodiment can enable the second party to trigger the first party to help it decrypt the target data containing the second gradient without disclosing its own model training situation, and then parse the second gradient in the target data through the mask, and then update the second model parameters based on the second gradient. This can improve the model training efficiency while achieving the confidentiality of vertical federated learning.

[0121] As an optional embodiment, after the first participant updates the first model parameters according to the first gradient, the method also includes: after the first participant obtains the data to be predicted, the first participant inputs the data to be predicted into the first model, and predicts the label corresponding to the data to be predicted through the first model; wherein the updated first model parameters are applied to the first model.

[0122] The data to be predicted can be the data of any user. For example, the data to be predicted can include the following fields: "name", "gender", "violation frequency". The label field to be predicted can be expressed as "whether it is a high-quality customer", and the label corresponding to the predicted data can be "yes" or "no".

[0123] It can be seen that the implementation of this optional embodiment can enable the first model parameters derived from the vertical federated features to be applied to the first model and perform label prediction based on the first model, so as to obtain a more accurate label and make the match between the label and the data to be predicted higher.

[0124] See also Figure 3 , Figure 3 The flowchart of the vertical federation feature derivation method based on privacy computing according to another embodiment of the present application is schematically shown. Figure 3 As shown, the vertical federated feature derivation method based on privacy computing includes: steps S310 to S390.

[0125] Step S310: The first participant generates corresponding public keys and private keys, and sends the public key to the second participant.

[0126] Step S320: The first participant determines a first linear feature and a first interactive feature based on the first local sample.

[0127] Step S330: The second participant determines a second linear feature and a second interactive feature based on the second local sample, and sends the second linear feature and the second interactive feature to the first participant.

[0128] Step S340: The first participant determines a target loss function based on the first linear feature, the first interactive feature, the second linear feature, the second interactive feature, and the feature label, and determines a first gradient for updating the first model parameter according to the target loss function.

[0129] Step S350: The first participant extracts residual features in the first gradient according to a preset extraction rule, encrypts the residual features by a public key to obtain residual ciphertext, and sends the residual ciphertext to the second participant.

[0130] Step S360: The second participant calculates the intermediate parameters based on the residual ciphertext, and calculates the mask corresponding to the intermediate parameters based on the preset ciphertext space, and encrypts the mask through the public key to obtain the masked ciphertext, and then merges the masked ciphertext and the residual ciphertext to obtain the gradient ciphertext to be decrypted, and sends the gradient ciphertext to be decrypted to the first participant.

[0131] Step S370: The first participant decrypts the gradient ciphertext to be decrypted using a private key to obtain target data including a second gradient, and sends the target data to the second participant; wherein the second gradient is used to update the second model parameters.

[0132] Step S380: The first participant updates the first model parameters according to the first gradient.

[0133] Step S390: The second participant parses a second gradient from the target data based on the mask, and updates the second model parameters according to the second gradient.

[0134] It should be noted that steps S310 to S390 are Figure 2 The steps and their embodiments shown correspond to each other. For the specific implementation of steps S310 to S390, please refer to Figure 2 The steps and embodiments shown are not described in detail here.

[0135] It can be seen that implementation Figure 3 The method shown can reduce the impact of invalid feature values ​​on vertical federated learning based on the above-mentioned feature derivation method to improve the efficiency of determining the first gradient and the second gradient, which is beneficial to improving the model training efficiency in the vertical federated learning scenario.

[0136] See also Figure 4 , Figure 4 The following schematically shows a sequence diagram of a vertical federation feature derivation method based on privacy computing according to an embodiment of the present application. Figure 4As shown, the sequence diagram includes: step S400 to step S426. Among them, one or more steps in step S400 to step S426 can be triggered by a built-in functional module, and its corresponding function can be understood as a protocol for regulating the dialogue between participants. At least one of the first participant and the second participant has the built-in dialogue protocol to achieve Figure 4 The sequence diagram shown.

[0137] Step S400: The first party generates corresponding public keys and private keys.

[0138] Step S402: The first party sends the public key to the second party.

[0139] Step S404: The first participant determines a first linear feature and a first interactive feature based on the first local sample.

[0140] Step S406: The second participant determines a second linear feature and a second interactive feature based on the second local sample.

[0141] Step S408: The second participant forwards the second linear feature and the second interactive feature to the first participant.

[0142] Step S410: The first participant determines a target loss function based on the first linear feature, the first interactive feature, the second linear feature, the second interactive feature, and the feature label, and determines a first gradient for updating a first model parameter according to the target loss function.

[0143] Step S412: The first participant extracts residual features in the first gradient according to a preset extraction rule, encrypts the residual features using a public key, and obtains residual ciphertext.

[0144] Step S414: The first participant sends the residual ciphertext to the second participant.

[0145] Step S416: The second participant calculates the mask corresponding to the residual ciphertext based on the preset ciphertext space, and encrypts the mask through the public key to obtain the masked ciphertext, and then merges the masked ciphertext and the residual ciphertext to obtain the gradient ciphertext to be decrypted.

[0146] Step S418: The second participant forwards the gradient ciphertext to be decrypted to the first participant.

[0147] Step S420: The first participant decrypts the gradient ciphertext to be decrypted using a private key to obtain target data containing a second gradient; wherein the second gradient is used to update the second model parameters.

[0148] Step S422: The first participant sends the target data to the second participant.

[0149] Step S424: The first participant updates the first model parameters according to the first gradient.

[0150] Step S426: The second participant parses a second gradient from the target data based on the mask, and updates the second model parameters according to the second gradient.

[0151] It can be seen that implementation Figure 4 The sequence diagram shown can reduce the impact of invalid feature values ​​on vertical federated learning based on the above-mentioned feature derivation method to improve the efficiency of determining the first gradient and the second gradient, which is beneficial to improving the model training efficiency in the vertical federated learning scenario.

[0152] See also Figure 5 , Figure 5 The structure block diagram of a vertical federation feature derivation device based on privacy computing in one embodiment of the present application is schematically shown. Figure 5 As shown, the vertical federation feature derivation device 500 based on privacy computing may include: a first feature determination module 501, a second feature determination module 502, a first parameter determination module 503, and a second parameter determination module 504, wherein:

[0153] A first feature determination module 501, configured to determine a first linear feature and a first interactive feature based on a first local sample;

[0154] A second feature determination module 502, configured to determine a second linear feature and a second interactive feature based on a second local sample, and send the second linear feature and the second interactive feature to the first participant;

[0155] A first parameter determination module 503 is used to determine a target loss function based on the first linear feature, the first interactive feature, the second linear feature, the second interactive feature and the feature label, and determine a first gradient for updating the first model parameter according to the target loss function; encrypt the residual feature in the first gradient into a residual ciphertext, and send the residual ciphertext to the second participant;

[0156] A second parameter determination module 504 is used to generate a gradient ciphertext to be decrypted according to the residual ciphertext, and send the gradient ciphertext to be decrypted to the first participant;

[0157] The first parameter determination module 503 is also used to decrypt the gradient ciphertext to be decrypted, obtain target data including the second gradient, and send the target data to the second participant; wherein the second gradient is used to update the second model parameter.

[0158] It should be noted that the first feature determination module 501, the second feature determination module 502, the first parameter determination module 503, and the second parameter determination module 504 can be set in the same server / terminal device, or respectively set in different servers / terminal devices. For example, the first feature determination module 501 and the first parameter determination module 503 can be set in server node A, and the second feature determination module 502 and the second parameter determination module 504 can be set in server node B; wherein, server node A and server node B can be independent server nodes, or they can belong to the same server cluster or be interpreted as other forms, which is not limited in the embodiments of the present application.

[0159] It can be seen that implementation Figure 5 The device shown can reduce the impact of invalid feature values ​​on vertical federated learning based on the above-mentioned feature derivation method to improve the efficiency of determining the first gradient and the second gradient, which is beneficial to improving the model training efficiency in the vertical federated learning scenario.

[0160] In an exemplary embodiment of the present application, the device further includes:

[0161] A key generation module is used to generate corresponding public keys and private keys, and send the public key to the second participant; wherein the private key is used to decrypt the gradient ciphertext to be decrypted.

[0162] It can be seen that by implementing this optional embodiment, encrypted transmission between the data and the second party can be achieved through the public key and the private key, thereby ensuring that the transmitted content is not stolen and improving the confidentiality of the transmission process.

[0163] In an exemplary embodiment of the present application, the first parameter determination module 503 encrypts the residual feature in the first gradient into a residual ciphertext, including:

[0164] The first parameter determination module 503 extracts residual features in the first gradient according to a preset extraction rule;

[0165] The first parameter determination module 503 encrypts the residual feature by using a public key to obtain a residual ciphertext.

[0166] It can be seen that by implementing this optional embodiment, the residual features in the first gradient can be encrypted with a public key to avoid encrypting the entire first gradient and sending it to the second participant. The second participant only needs the residual features during the calculation process, so it is only necessary to encrypt the residual features and send them to the second participant. This can not only ensure that the first gradient is not solved by the second participant, but also improve the transmission efficiency by encrypting only the residual part.

[0167] In an exemplary embodiment of the present application, the second parameter determination module 504 generates a gradient ciphertext to be decrypted according to the residual ciphertext, including:

[0168] The second parameter determination module 504 calculates a mask corresponding to the residual ciphertext based on a preset ciphertext space;

[0169] The second parameter determination module 504 encrypts the mask by using the public key to obtain the mask ciphertext;

[0170] The second parameter determination module 504 fuses the mask ciphertext and the residual ciphertext to obtain the gradient ciphertext to be decrypted.

[0171] It can be seen that implementing this optional embodiment can improve the confidentiality of the gradient ciphertext to be decrypted, avoid the first participant solving the mask and then parsing to obtain the second gradient, thereby improving the confidentiality of the second gradient.

[0172] In an exemplary embodiment of the present application, the device further includes:

[0173] The first model updating module is used to update the first model parameter according to the first gradient after the first parameter determination module 503 determines the first gradient for updating the first model parameter according to the target loss function.

[0174] It can be seen that by implementing this optional embodiment, a more accurate first gradient can be calculated based on the second linear feature and the second interactive feature of the second participant, thereby realizing feature-derived federated learning to improve model training efficiency.

[0175] In an exemplary embodiment of the present application, the device further includes:

[0176] The second model updating module is used to parse the second gradient from the target data based on the mask after the first parameter determination module sends the target data to the second participant; and update the second model parameters according to the second gradient.

[0177] It can be seen that the implementation of this optional embodiment can enable the second party to trigger the first party to help it decrypt the target data containing the second gradient without disclosing its own model training situation, and then parse the second gradient in the target data through the mask, and then update the second model parameters based on the second gradient. This can improve the model training efficiency while achieving the confidentiality of vertical federated learning.

[0178] In an exemplary embodiment of the present application, the device further includes:

[0179] A prediction module is used to input the data to be predicted into the first model after updating the first model parameters according to the first gradient and after obtaining the data to be predicted, and predict the label corresponding to the data to be predicted through the first model; wherein the updated first model parameters are applied to the first model.

[0180] It can be seen that the implementation of this optional embodiment can enable the first model parameters derived from the vertical federated features to be applied to the first model and perform label prediction based on the first model, so as to obtain a more accurate label and make the match between the label and the data to be predicted higher.

[0181] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0182] Since the various functional modules of the vertical federated feature derivation device based on privacy computing in the example embodiment of the present application correspond to the steps of the example embodiment of the vertical federated feature derivation method based on privacy computing mentioned above, for details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the vertical federated feature derivation method based on privacy computing mentioned above in the present application.

[0183] See also Figure 6 , Figure 6 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.

[0184] It should be noted that Figure 6 The computer system 600 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0185] like Figure 6 As shown, computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. Various programs and data required for system operation are also stored in RAM 603. CPU 601, ROM 602 and RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to bus 604.

[0186] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0187] In particular, according to an embodiment of the present application, the process described below with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 609, and / or installed from a removable medium 611. When the computer program is executed by a central processing unit (CPU) 601, various functions defined in the method and apparatus of the present application are executed.

[0188] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.

[0189] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0190] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0191] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not constitute limitations on the units themselves in some cases.

[0192] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0193] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A vertical federated feature derivation method based on privacy computing, It is characterized in that The method includes a first participant and a second participant; the first participant includes a feature tag, a first local sample and a first model parameter, and the second participant includes a second local sample and a second model parameter; the first participant and the second participant are terminal devices / servers; the method includes: The first participant determines a first linear feature and a first interactive feature based on the first local sample; The second participant determines, based on the second local sample, a second linear feature and a second interactive feature, and sends the second linear feature and the second interactive feature to the first participant; The first participant determines a target loss function based on the first linear feature, the first interactive feature, the second linear feature, the second interactive feature, and the feature label, and determines a first gradient for updating the first model parameter according to the target loss function; encrypts the residual feature in the first gradient into a residual ciphertext, and sends the residual ciphertext to the second participant; The second participant generates a gradient ciphertext to be decrypted according to the residual ciphertext, and sends the gradient ciphertext to be decrypted to the first participant; The first participant decrypts the gradient ciphertext to be decrypted to obtain target data including a second gradient, and sends the target data to the second participant; wherein the second gradient is used to update the second model parameter; The second participant generates a gradient ciphertext to be decrypted according to the residual ciphertext, including: The second participant calculates an intermediate parameter according to the residual ciphertext, and calculates a mask corresponding to the intermediate parameter based on a preset ciphertext space; The second participant encrypts the mask using the public key of the first participant to obtain a masked ciphertext; The second participant fuses the masked ciphertext and the intermediate parameter to obtain a gradient ciphertext to be decrypted; After the first participant sends the target data to the second participant, the method further includes: The second participant parses the second gradient from the target data based on the mask; The second participant updates the second model parameters according to the second gradient.

2. The method according to claim 1, It is characterized in that The method further comprises: The first participant generates a corresponding public key and private key, and sends the public key to the second participant; wherein the private key is used to decrypt the gradient ciphertext to be decrypted.

3. The method according to claim 2, It is characterized in that The first participant encrypts the residual features in the first gradient into residual ciphertext, including: The first participant extracts residual features in the first gradient according to a preset extraction rule; The first participant encrypts the residual feature using the public key to obtain a residual ciphertext.

4. The method according to any one of claims 1 to 3, It is characterized in that After the first participant determines the first gradient for updating the first model parameter according to the target loss function, the method further includes: The first participant updates the first model parameters according to the first gradient.

5. The method according to claim 4, It is characterized in that After the first participant updates the first model parameter according to the first gradient, the method further includes: After obtaining the data to be predicted, the first participant inputs the data to be predicted into the first model, and predicts the label corresponding to the data to be predicted through the first model; wherein the updated first model parameters are applied to the first model.

6. A vertical federation feature derivation device based on privacy computing, It is characterized in that include: A first feature determination module, configured to determine a first linear feature and a first interactive feature based on a first local sample; A second feature determination module, configured to determine a second linear feature and a second interactive feature based on a second local sample, and send the second linear feature and the second interactive feature to a first participant; the first participant includes a feature label, the first local sample, and a first model parameter; A first parameter determination module is used to determine a target loss function based on the first linear feature, the first interactive feature, the second linear feature, the second interactive feature and the feature label, and determine a first gradient for updating the first model parameter according to the target loss function; encrypt the residual feature in the first gradient into a residual ciphertext, and send the residual ciphertext to a second participant; the second participant includes the second local sample and the second model parameter A second parameter determination module, configured to generate a gradient ciphertext to be decrypted according to the residual ciphertext, and send the gradient ciphertext to be decrypted to the first participant; The first parameter determination module is further used to decrypt the gradient ciphertext to be decrypted, obtain target data including a second gradient, and send the target data to the second participant; wherein the second gradient is used to update the second model parameter; The second parameter determination module generates a gradient ciphertext to be decrypted according to the residual ciphertext, including: The second parameter determination module calculates an intermediate parameter according to the residual ciphertext, and calculates a mask corresponding to the intermediate parameter based on a preset ciphertext space; The second parameter determination module encrypts the mask by using the public key of the first participant to obtain a mask ciphertext; The second parameter determination module fuses the mask ciphertext and the intermediate parameter to obtain the gradient ciphertext to be decrypted; Wherein, the device further comprises: A first model updating module, configured to parse the second gradient from the target data based on the mask after the first participant sends the target data to the second participant; and update the second model parameters according to the second gradient; The first participant and the second participant are terminal devices / servers.

7. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

8. An electronic device, It is characterized in that include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method according to any one of claims 1 to 5 by executing the executable instructions.

Citation Information

Patent Citations

  • Model training method and device, equipment and medium

    CN112149141A

  • Joint training method and device of model, storage medium and program product

    CN112818374A