# US 2020/0394552 A1 · Aggregated maching learning verification for database

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

- Number: US 2020/0394552 A1
- Document ID: US20200394552A1
- Status: Published application
- Kind: A1
- Application number: 16/438,495
- Filed: 2019-06-12
- Published: 2020-12-17
- Earliest claimed: 2019-06-12
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Venkata Sitaramagiridharganesh Ganapavarapu; Kanthi Sarpatwar; Karthikeyan Shanmugam; Roman Vaculin
- Web page: https://patentgrep.com/patent/US20200394552A1

## CPC

- G06N 20/00: Machine learning
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- H04L 9/0891: {Revocation or update of secret information, e.g. encryption key update or rekeying}
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- H04L 9/3247: {involving digital signatures}
- H04L 9/3297: {involving time stamps, e.g. generation of time stamps}
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- H04L 63/123: {received data contents, e.g. message integrity}
- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

An example operation may include one or more of generating, by a plurality of training participant clients, gradient calculations for machine learning model training, each of the training participant clients comprising a training dataset, converting, by a training aggregator coupled to the plurality of training participant clients, the gradient calculations to a plurality of transaction proposals, receiving, by one or more endorser nodes or peers of a blockchain network, the plurality of transaction proposals, executing, by each of the endorser nodes or peers, a verify gradient smart contract, and providing endorsements corresponding to the plurality of transaction proposals to the training aggregator.

## Claims

### Claim 1

A system, comprising:
a training participant network, comprising:
a plurality of training participant clients, each comprising a training dataset and configured to:
generate gradient calculations that each correspond to a training iteration for machine learning model training using stochastic gradient descent, the machine learning model training comprising a plurality of training iterations; and
a training aggregator, coupled to each of the plurality of training participation clients, and configured to convert gradient calculations into a plurality of transaction proposals;
a blockchain network, comprising:
one or more endorser nodes or peers, each comprising a verify gradient smart contract and configured to endorse the plurality of transaction proposals.

### Claim 2 (depends on 1)

The system of claim 1, wherein the verify gradient smart contract does not perform gradient calculation, wherein the verify gradient smart contract verifies results of gradient calculations from the transaction proposals.

### Claim 3 (depends on 2)

The system of claim 2, wherein the training aggregator converts gradient calculations into the plurality of transaction proposals comprises the training aggregator configured to:
receive the gradient calculations and metadata from each of the plurality of training participation clients; and
create a separate transaction proposal from the received metadata for each training participation client.

### Claim 4 (depends on 2)

The system of claim 2, wherein the transaction proposals specify a batch from the training dataset, a loss function, current parameter weights, and a gradient calculation, wherein the batch comprises a subset of samples from the training dataset for a training iteration.

### Claim 5 (depends on 2)

The system of claim 2, wherein data and model parameters that correspond to the training dataset are stored outside the blockchain network, wherein verification-related data is stored in a blockchain for the blockchain network.

### Claim 6 (depends on 2)

The system of claim 2, wherein the one or more endorser nodes or peers are configured to endorse the plurality of transaction proposals comprises the one or more endorser nodes are further configured to:
receive the plurality of transaction proposals;
execute the verify gradient smart contract on each of the transaction proposals; and
provide endorsements that correspond to the plurality of transaction proposals, wherein the training aggregator is further configured to:
receive the endorsements;
include the endorsements in transactions;
submit the transactions to the blockchain network;
apply aggregated endorsed gradients to an original machine learning model; and
submit a new transaction proposal with an updated machine learning model.

### Claim 7 (depends on 2)

The system of claim 2, wherein the one or more endorser nodes or peers not comprising the verify gradient smart contract, wherein the one or more endorser nodes forward the plurality of transaction proposals to an independent auditor outside the blockchain network, wherein the independent auditor comprises the verify gradient smart contract and is configured to:
receive the plurality of transaction proposals;
execute the verify gradient smart contract on each of the plurality of transaction proposals; and
provide verification results that correspond to the plurality of transaction proposals to the endorser nodes or peers.

### Claim 8

A method, comprising:
generating, by a plurality of training participant clients, gradient calculations for machine learning model training, each of the training participant clients comprising a training dataset;
converting, by a training aggregator coupled to the plurality of training participant clients, the gradient calculations to a plurality of transaction proposals;
receiving, by one or more endorser nodes or peers of a blockchain network, the plurality of transaction proposals;
executing, by each of the endorser nodes or peers, a verify gradient smart contract; and
providing endorsements corresponding to the plurality of transaction proposals to the training aggregator.

### Claim 9 (depends on 8)

The method of claim 8, wherein the verify gradient smart contract does not perform gradient calculation, wherein the verify gradient smart contract verifies results of gradient calculations from the transaction proposals.

### Claim 10 (depends on 9)

The method of claim 9, wherein converting the gradient calculations to the plurality of transaction proposals comprising:
receiving the gradient calculations and metadata from each of the plurality of training participation clients; and
creating a separate transaction proposal from the received metadata for each training participation client, wherein each of the plurality of transaction proposals corresponding to a training iteration for machine learning model training using stochastic gradient descent, the machine learning model training comprising a plurality of training iterations.

### Claim 11 (depends on 10)

The method of claim 10, wherein the transaction proposals specify a batch from the training dataset, a loss function, current parameter weights, and a gradient calculation, wherein the batch comprises a subset of samples from the training dataset for a training iteration.

### Claim 12 (depends on 10)

The method of claim 10, wherein data and model parameters corresponding to the training dataset are stored outside the blockchain network, wherein verification-related data is stored in a blockchain for the blockchain network.

### Claim 13 (depends on 10)

The method of claim 10, further comprising:
receiving the endorsements;
applying endorsed gradient calculations to the machine learning model;
including, by the training aggregator, the endorsements in a transaction; and
submitting the transaction to the blockchain network.

### Claim 14 (depends on 10)

The method of claim 10, wherein the one or more endorser nodes or peers not comprising the verify gradient smart contract, wherein the method further comprising:
forwarding, by the one or more endorser nodes, the transaction proposals to an independent auditor outside the blockchain network, wherein the independent auditor comprising the verify gradient smart contract, wherein the method further comprising:
receiving, by the independent auditor, the plurality of transaction proposals;
executing the verify gradient smart contract; and
providing, by the independent auditor, verification results corresponding to the plurality of transaction proposals to the one or more endorser nodes or peers.

### Claim 15

A non-transitory computer readable medium comprising instructions, that when read by a processor, cause the processor to perform:
generating, by a plurality of training participant clients, gradient calculations for machine learning model training, each of the training participant clients comprising a training dataset;
converting, by a training aggregator coupled to the plurality of training participant clients, the gradient calculations to a plurality of transaction proposals;
receiving, by one or more endorser nodes or peers of a blockchain network, the plurality of transaction proposals;
executing, by each of the endorser nodes or peers, a verify gradient smart contract; and
providing endorsements corresponding to the plurality of transaction proposals to the training aggregator.

### Claim 16 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the verify gradient smart contract does not perform gradient calculation, wherein the verify gradient smart contract verifies results of gradient calculations from the transaction proposals.

### Claim 17 (depends on 16)

The non-transitory computer readable medium of claim 16, wherein converting the gradient calculations to the plurality of transaction proposals comprising:
receiving the gradient calculations and metadata from each of the plurality of training participation clients; and
creating a separate transaction proposal from the received metadata for each training participation client, wherein each of the plurality of transaction proposals corresponding to a training iteration for machine learning model training using stochastic gradient descent, the machine learning model training comprising a plurality of training iterations.

### Claim 18 (depends on 17)

The non-transitory computer readable medium of claim 17, wherein the transaction proposals specify a batch from the training dataset, a loss function, current parameter weights, and a gradient calculation, wherein the batch comprises a subset of samples from the training dataset for a training iteration, wherein data and model parameters corresponding to the training dataset are stored outside the blockchain network, wherein verification-related data is stored in a blockchain for the blockchain network.

### Claim 19 (depends on 17)

The non-transitory computer readable medium of claim 17, further comprising:
receiving the endorsements;
applying endorsed gradient calculations to the machine learning model;
including, by the training aggregator, the endorsements in a transaction; and
submitting the transaction to the blockchain network.

### Claim 20 (depends on 17)

The non-transitory computer readable medium of claim 17, wherein the one or more endorser nodes or peers not comprising the verify gradient smart contract, wherein the instructions cause the processor to further perform:
forwarding, by the one or more endorser nodes, the transaction proposals to an independent auditor outside the blockchain network, wherein the independent auditor comprising the verify gradient smart contract, wherein the instructions cause the processor to further perform:
receiving, by the independent auditor, the plurality of transaction proposals;
executing the verify gradient smart contract; and
providing, by the independent auditor, verification results corresponding to the plurality of transaction proposals to the one or more endorser nodes or peers.
