# US 2024/0005210 A1 · Data protection method, apparatus, medium and device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0005210 A1
- Document ID: US20240005210A1
- Status: Published application
- Kind: A1
- Application number: 18/252,559
- Filed: 2021-11-06
- Published: 2024-01-04
- Earliest claimed: 2020-11-13
- Applicants: Lemon Inc.
- Inventors: Jiankai SUN; Weihao GAO; Chong WANG; Hongyi ZHANG; Xiaobing LIU; Runliang LI; Xin YANG
- Web page: https://patentgrep.com/patent/US20240005210A1

## CPC

- G06N 20/00: Machine learning
- G06F 21/60: Protecting data
- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 21/6245: {Protecting personal data, e.g. for financial or medical purposes}
- G06N 3/045: Combinations of networks
- G06N 3/048: Activation functions
- G06N 3/08: Learning methods
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06N 3/098: Distributed learning, e.g. federated learning
- G06N 20/10: using kernel methods, e.g. support vector machines [SVM]
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure relates to a data protection method, an apparatus, a medium and a device. The method includes: acquiring gradient association information respectively corresponding to reference samples of a target batch of an active party of a joint training model; according to the proportion occupied respectively by reference samples of positive examples and reference samples of negative examples in all reference samples of the target batch, determining a constraint condition of the data noise to be added; determining information of said data noise according to the gradient association information and the constraint condition corresponding to the reference samples; correcting, according to the information of said data noise, an initial gradient transmission value corresponding to each reference sample, so as to obtain target gradient transmission information; and sending the target gradient transmission information to a passive party of the joint training model.

## Claims

### Claim 1

A data protection method, comprising:
acquiring gradient correlation information respectively corresponding to reference samples of a target batch of an active participant of a joint training model;
determining a constraint condition for data noise to be added according to proportions of a reference sample of a positive example and a reference sample of a negative example respectively in all the reference samples of the target batch;
determining information of the data noise to be added according to the gradient correlation information corresponding to the reference samples and the constraint condition;
correcting an initial gradient transfer value corresponding to each of the reference samples according to the information of the data noise to be added to obtain target gradient transfer information, wherein the target gradient transfer information is consistent for reference samples corresponding to different sample labels in the target batch; and
sending the target gradient transfer information to a passive participant of the joint training model, so that the passive participant adjusts a parameter of the joint training model according to the target gradient transfer information.

### Claim 2 (depends on 1)

The data protection method according to claim 1, wherein the constraint condition is used for constraining a variance of the data noise to be added.

### Claim 3 (depends on 1)

The data protection method according to claim 1, wherein the constraint condition is:
determining that a sum of a product of the proportion corresponding to the reference sample of the positive example and a trace of a matrix of covariance information of the data noise to be added corresponding to the reference sample of the positive example, and a product of the proportion corresponding to the reference sample of the negative example and a trace of a matrix of covariance information of the data noise to be added corresponding to the reference sample of the negative example is less than or equal to a target value of a preset hyper-parameter.

### Claim 4 (depends on 3)

The data protection method according to claim 3, wherein the target value of the preset hyper-parameter is determined by:
determining whether a current value of the preset hyper-parameter meets a parameter condition, an initial value of the preset hyper-parameter being the initial gradient transfer value, wherein the parameter condition is determined according to making an error of label prediction based on the target gradient transfer information greater than an error threshold;
in a case where the current value of the preset hyper-parameter does not meet the parameter condition, increasing a numerical value of the preset hyper-parameter by a proportion, and re-executing the determining whether the current value of the preset hyper-parameter meets the parameter condition; and
in a case where the current value of the preset hyper-parameter meets the parameter condition, determining the current value of the preset hyper-parameter as the target value.

### Claim 5 (depends on 1)

The data protection method according to claim 1, wherein the gradient correlation information comprises a sample label for characterizing a sample class and a prediction label determined based on the target gradient transfer information of the reference sample, wherein the prediction label is determined based on the target gradient transfer information of the reference sample by one or more prediction methods;
the determining information of the data noise to be added according to the gradient correlation information corresponding to the reference samples and the constraint condition comprises:
determining, according to a sample label and a prediction label of each of the reference samples, a mixed prediction error of predicting the reference sample based on each of the prediction methods; and
determining the information of the data noise to be added corresponding to the reference sample according to noise parameter information that maximizes a minimum value of the mixed prediction error corresponding to each of the prediction methods and meets the constraint condition.

### Claim 6 (depends on 5)

The data protection method according to claim 5, wherein the determining,
according to a sample label and a prediction label of each of the reference samples, a mixed prediction error of predicting the reference sample based on each of the prediction methods comprises:
for each of the prediction methods, determining a positive-example prediction error rate and a negative-example prediction error rate of the prediction method according to the sample label and the prediction label of each of the reference samples; and
determining, according to the positive-example prediction error rate and the negative-example prediction error rate of each of the prediction methods, the mixed prediction error of predicting the reference sample based on each of the prediction methods.

### Claim 7 (depends on 6)

The data protection method according to claim 6, wherein the determining,
according to the positive-example prediction error rate and the negative-example prediction error rate of each of the prediction methods, the mixed prediction error of predicting the reference sample based on each of the prediction methods comprises:
determining, as the mixed prediction error, a weighted sum obtained by respectively weighting the positive-example prediction error rate and the negative-example prediction error rate according to corresponding weights.

### Claim 8 (depends on 5)

The data protection method according to claim 5, wherein the weights corresponding to the positive-example prediction error rate and the negative-example prediction error rate are same; and
the determining the information of the data noise to be added corresponding to the reference sample according to noise parameter information that maximizes a minimum value of the mixed prediction error corresponding to each of the prediction methods and meets the constraint condition comprises:
determining noise information respectively corresponding to the reference sample of the positive example and the reference sample of the negative example according to parameter information respectively corresponding to the positive example and the negative example in the noise parameter information; and
determining the covariance information of the data noise to be added respectively corresponding to the reference sample of the positive example and the reference sample of the negative example according to the noise information respectively corresponding to the reference sample of the positive example and the reference sample of the negative example.

### Claim 9 (depends on 1)

The data protection method according to claim 1, wherein the initial gradient transfer value comprises a corresponding gradient of a preset loss function with respect to each neuron in an output layer of a sub-model trained by the passive participant of the joint training model.

### Claim 10 (depends on 4)

The data protection method according to claim 4, wherein in a case where the numerical value of the preset hyper-parameter is increased by the proportion, the proportion is a preset fixed proportion or a gradually decreased dynamic proportion.

### Claim 11 (depends on 5)

The data protection method according to claim 5, wherein the prediction method is to calculate a L2-norm value of the target gradient transfer information of the reference sample, determine the prediction label corresponding to the reference sample as the positive example in a case where the L2-norm value is greater than a preset threshold, and determine the prediction label corresponding to the reference sample as the negative example in a case where the L2-norm value is less than or equal to the preset threshold.

### Claim 12

(canceled)

### Claim 13

A non-transitory computer-readable medium having thereon stored a computer program which, when executed by a processing means, implements a data protection comprising:
acquiring gradient correlation information respectively corresponding to reference samples of a target batch of an active participant of a joint training model;
determining a constraint condition for data noise to be added according to proportions of a reference sample of a positive example and a reference sample of a negative example respectively in all the reference samples of the target batch;
determining information of the data noise to be added according to the gradient correlation information corresponding to the reference samples and the constraint condition;
correcting an initial gradient transfer value corresponding to each of the reference samples according to the information of the data noise to be added to obtain target gradient transfer information, wherein the target gradient transfer information is consistent for reference samples corresponding to different sample labels in the target batch; and
sending the target gradient transfer information to a passive participant of the joint training model, so that the passive participant adjusts a parameter of the joint training model according to the target gradient transfer information.

### Claim 14

An electronic device, comprising:
a storage means having a computer program stored thereon; and
a processing means configured to execute the computer program in the storage means to implement a data protection method comprising:
acquiring gradient correlation information respectively corresponding to reference samples of a target batch of an active participant of a joint training model;
determining a constraint condition for data noise to be added according to proportions of a reference sample of a positive example and a reference sample of a negative example respectively in all the reference samples of the target batch;
determining information of the data noise to be added according to the gradient correlation information corresponding to the reference samples and the constraint condition;
correcting an initial gradient transfer value corresponding to each of the reference samples according to the information of the data noise to be added to obtain target gradient transfer information, wherein the target gradient transfer information is consistent for reference samples corresponding to different sample labels in the target batch; and
sending the target gradient transfer information to a passive participant of the joint training model, so that the passive participant adjusts a parameter of the joint training model according to the target gradient transfer information.

### Claim at position 15

15-16. (canceled)

### Claim 17 (depends on 13)

The non-transitory computer-readable medium according to claim 13, wherein the constraint condition is used for constraining a variance of the data noise to be added.

### Claim 18 (depends on 13)

The non-transitory computer-readable medium according to claim 13, wherein the constraint condition is:
determining that a sum of a product of the proportion corresponding to the reference sample of the positive example and a trace of a matrix of covariance information of the data noise to be added corresponding to the reference sample of the positive example, and a product of the proportion corresponding to the reference sample of the negative example and a trace of a matrix of covariance information of the data noise to be added corresponding to the reference sample of the negative example is less than or equal to a target value of a preset hyper-parameter.

### Claim 19 (depends on 18)

The non-transitory computer-readable medium according to claim 18, wherein the target value of the preset hyper-parameter is determined by:
determining whether a current value of the preset hyper-parameter meets a parameter condition, an initial value of the preset hyper-parameter being the initial gradient transfer value, wherein the parameter condition is determined according to making an error of label prediction based on the target gradient transfer information greater than an error threshold;
in a case where the current value of the preset hyper-parameter does not meet the parameter condition, increasing a numerical value of the preset hyper-parameter by a proportion, and re-executing the determining whether the current value of the preset hyper-parameter meets the parameter condition; and
in a case where the current value of the preset hyper-parameter meets the parameter condition, determining the current value of the preset hyper-parameter as the target value.

### Claim 20 (depends on 13)

The non-transitory computer-readable medium according to claim 13, wherein the gradient correlation information comprises a sample label for characterizing a sample class and a prediction label determined based on the target gradient transfer information of the reference sample, wherein the prediction label is determined based on the target gradient transfer information of the reference sample by one or more prediction methods;
the determining information of the data noise to be added according to the gradient correlation information corresponding to the reference samples and the constraint condition comprises:
determining, according to a sample label and a prediction label of each of the reference samples, a mixed prediction error of predicting the reference sample based on each of the prediction methods; and
determining the information of the data noise to be added corresponding to the reference sample according to noise parameter information that maximizes a minimum value of the mixed prediction error corresponding to each of the prediction methods and meets the constraint condition.

### Claim 21 (depends on 14)

The electronic device according to claim 14, wherein the constraint condition is used for constraining a variance of the data noise to be added.

### Claim 22 (depends on 14)

The electronic device according to claim 14, wherein the constraint condition is:
determining that a sum of a product of the proportion corresponding to the reference sample of the positive example and a trace of a matrix of covariance information of the data noise to be added corresponding to the reference sample of the positive example, and a product of the proportion corresponding to the reference sample of the negative example and a trace of a matrix of covariance information of the data noise to be added corresponding to the reference sample of the negative example is less than or equal to a target value of a preset hyper-parameter.

### Claim 23 (depends on 22)

The electronic device according to claim 22, wherein the target value of the preset hyper-parameter is determined by:
determining whether a current value of the preset hyper-parameter meets a parameter condition, an initial value of the preset hyper-parameter being the initial gradient transfer value, wherein the parameter condition is determined according to making an error of label prediction based on the target gradient transfer information greater than an error threshold;
in a case where the current value of the preset hyper-parameter does not meet the parameter condition, increasing a numerical value of the preset hyper-parameter by a proportion, and re-executing the determining whether the current value of the preset hyper-parameter meets the parameter condition; and
in a case where the current value of the preset hyper-parameter meets the parameter condition, determining the current value of the preset hyper-parameter as the target value.
