# US 10,956,597 B2 · Loss function value determination method and device and electronic equipment

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

- Number: US 10,956,597 B2
- Document ID: US10956597B2
- Status: Granted
- Kind: B2
- Application number: 16/786,337
- Filed: 2020-02-10
- Published: 2020-06-04
- Granted: 2021-03-23
- Earliest claimed: 2019-05-23
- Assignees: Advanced New Technologies Co., Ltd.
- Applicants: Advanced New Technologies Co., Ltd.
- Inventors: Yashun Zhou; Lichun Li; Shan Yin; Huazhong Wang
- Web page: https://patentgrep.com/patent/US10956597B2

## CPC

- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F 21/6245: {Protecting personal data, e.g. for financial or medical purposes}
- G06N 20/00: Machine learning
- G06Q 50/265: {Personal security, identity or safety}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

Implementations of the present specification provide a value determination for a loss function. In an implementation, a first share of data that was generated based on a first parameter is received from a partner. A first term is determined based on the first share of the data. A second share of the data is generated based on a second parameter and a random number and transmitted to the partner. A coefficient of a second term is determined based on the random number. A second term is determined based on the coefficient of the second term and the second share of the data. The value of the loss function is determined based on the first term and the second term.

## Claims

### Claim 1

A computer-implemented method for determining a value of a loss function based on secret sharing, the method comprising:
receiving, by one or more processors of a first data party and from a second data party, a first share of data generated based on a first parameter, wherein the first share of data is calculated by the first data party based on a secret sharing algorithm performed between the first data party and the second data party, the first parameter is an intermediate result obtained by the first data party based on performing the secret sharing algorithm;
determining, by the one or more processors, a first term based on the first share of the data;
generating, by the one or more processors, a second share of the data based on a second parameter and a plurality of random numbers, wherein the second data is calculated by the second data party based on the secret sharing algorithm, the second parameter is an immediate result obtained by the second data party based on performing the secret sharing algorithm;
transmitting, by the one or more processors to the second data party, the second share of the data;
determining, by the one or more processors, a coefficient of a second term based on accumulatively multiply the plurality of random numbers;
determining, by the one or more processors, the second term based on the coefficient of the second term and the second share of the data; and
determining the value of the loss function based on the first term and the second term.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the loss function comprises a logarithmic loss function or a square loss function.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein determining the first term comprises:
accumulating the first share of the data to generate an accumulation result, the first term comprising the accumulation result.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein generating the second share comprises dividing the accumulation result by a number of elements of the data.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein determining the coefficient of the second term comprises:
accumulatively multiplying random numbers to generate the coefficient of the second term.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising:
determining whether to terminate a training based on the value of the loss function.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the first share of the data comprises label values that differentiate data types.

### Claim 8

A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations for determining a value of a loss function, the operations comprising:
receiving, by one or more processors of a first data party and from a second data party, a first share of data generated based on a first parameter, wherein the first share of data is calculated by the first data party based on a secret sharing algorithm performed between the first data party and the second data party, the first parameter is an intermediate result obtained by the first data party based on performing the secret sharing algorithm;
determining, by the one or more processors, a first term based on the first share of the data;
generating, by the one or more processors, a second share of the data based on a second parameter and a plurality of random numbers, wherein the second share of the data is calculated by the second data party based on the secret sharing algorithm, the second parameter is an immediate result obtained by the second data party based on performing the secret sharing algorithm;
transmitting, by the one or more processors to the second data party, the second share of the data;
determining, by the one or more processors, a coefficient of a second term based on accumulatively multiply the plurality of random numbers;
determining, by the one or more processors, the second term based on the coefficient of the second term and the second share of the data; and
determining the value of the loss function based on the first term and the second term.

### Claim 9 (depends on 8)

The non-transitory, computer-readable medium of claim 8, wherein the loss function comprises a logarithmic loss function or a square loss function.

### Claim 10 (depends on 8)

The non-transitory, computer-readable medium of claim 8, wherein determining the first term comprises:
accumulating the first share of the data to generate an accumulation result, the first term comprising the accumulation result.

### Claim 11 (depends on 10)

The non-transitory, computer-readable medium of claim 10, wherein generating the second share comprises dividing the accumulation result by a number of elements of the data.

### Claim 12 (depends on 8)

The non-transitory, computer-readable medium of claim 8, wherein determining the coefficient of the second term comprises:
accumulatively multiplying random numbers to generate the coefficient of the second term.

### Claim 13 (depends on 8)

The non-transitory, computer-readable medium of claim 8, wherein the operations further comprise:
determining whether to terminate a training based on the value of the loss function.

### Claim 14 (depends on 8)

The non-transitory, computer-readable medium of claim 8, wherein the first share of the data comprises label values that differentiate data types.

### Claim 15

A computer-implemented system, comprising:
one or more computers; and
one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform operations for determining a value of a loss function, the operations comprising:
receiving, by one or more processors of a first data party and from a second data party, a first share of data generated based on a first parameter, wherein the first share of data is calculated by the first data party based on a secret sharing algorithm performed between the first data party and the second data party, the first parameter is an intermediate result obtained by the first data party based on performing the secret sharing algorithm;
determining, by the one or more processors, a first term based on the first share of the data;
generating, by the one or more processors, a second share of the data based on a second parameter and a plurality of random numbers, wherein the second share of the data is calculated by the second data party based on the secret sharing algorithm, the second parameter is an immediate result obtained by the second data party based on performing the secret sharing algorithm;
transmitting, by the one or more processors to the second data party, the second share of the data;
determining, by the one or more processors, a coefficient of a second term based on accumulatively multiply the plurality of random numbers;
determining, by the one or more processors, the second term based on the coefficient of the second term and the second share of the data; and
determining the value of the loss function based on the first term and the second term.

### Claim 16 (depends on 15)

The computer-implemented system of claim 15, wherein the loss function comprises a logarithmic loss function or a square loss function.

### Claim 17 (depends on 15)

The computer-implemented system of claim 15, wherein determining the first term comprises:
accumulating the first share of the data to generate an accumulation result, the first term comprising the accumulation result.

### Claim 18 (depends on 15)

The computer-implemented system of claim 15, wherein generating the second share comprises dividing the accumulation result by a number of elements of the data.

### Claim 19 (depends on 15)

The computer-implemented system of claim 15, wherein determining the coefficient of the second term comprises:
accumulatively multiplying random numbers to generate the coefficient of the second term.

### Claim 20 (depends on 15)

The computer-implemented system of claim 15, wherein the operations further comprise:
determining whether to terminate a training based on the value of the loss function.
