# US 2022/0292342 A1 · Communication Efficient Federated/Distributed Learning of Neural Networks

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

- Number: US 2022/0292342 A1
- Document ID: US20220292342A1
- Status: Published application
- Kind: A1
- Application number: 17/199,157
- Filed: 2021-03-11
- Published: 2022-09-15
- Earliest claimed: 2021-03-11
- Assignees: VMware, Inc.
- Applicants: VMware, Inc.
- Inventors: Yaniv Ben-Itzhak; Shay Vargaftik
- Web page: https://patentgrep.com/patent/US20220292342A1

## CPC

- G06N 3/08: Learning methods
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06F 9/4856: {resumption being on a different machine, e.g. task migration, virtual machine migration (G06F9/5088 takes precedence)}
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/09: Supervised learning
- G06N 3/098: Distributed learning, e.g. federated learning
- H04L 67/04: specially adapted for terminals or networks with limited capabilities; specially adapted for terminal portability
- H04L 67/12: specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L 67/566: Grouping or aggregating service requests, e.g. for unified processing
- G06N 3/063: using electronic means
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

In one set of embodiments, a client can receive from a server a copy of a neural network from a server including N layers. The client can further provide one or more data instances as input to the copy, the one or more data instances being part of a local training data set residing on the client, compute a client gradient comprising gradient values for the N layers, determine a partial client gradient comprising gradient values for a first K out of the N layers, and determine an output of a K-th layer of the copy, the output being a result of processing performed by the first K layers on the one or more data instances. The client can then transmit the partial client gradient and the output of the K-th layer to the server.

## Claims

### Claim 1

A method comprising:
receiving, by a client, a copy of a neural network from a server, the neural network including N layers;
providing, by the client, one or more data instances as input to the copy of the neural network, the one or more data instances being part of a local training data set residing on the client;
computing, by the client, a client gradient comprising gradient values for the N layers;
determining, by the client from the client gradient, a partial client gradient comprising gradient values for a first K out of the N layers;
determining, by the client, an output of a K-th layer of the copy of the neural network, the output being a result of processing performed by the first K layers on the one or more data instances; and
transmitting, by the client, the partial client gradient and the output of the K-th layer to the server.

### Claim 2 (depends on 1)

The method of claim 1 wherein the client further transmits one or more training labels associated with the one or more data instances to the server or a loss vector determined as a result of providing the one or more data instances as input to the copy of the neural network.

### Claim 3 (depends on 2)

The method of claim 2 wherein upon receiving the partial client gradient, the output of the K-th layer, and the one or more training labels or the loss vector, the server performs a forward pass of the output of the K-th layer through a last K-N out of the N layers and uses backpropagation to compute a gradient comprising gradient values for the last K-N layers.

### Claim 4 (depends on 3)

The method of claim 3 wherein the server further combines the gradient with the partial client gradient in order to determine the client gradient.

### Claim 5 (depends on 4)

The method of claim 4 wherein, upon determining the client gradient and one or more other client gradients for one or more other clients, the server computes a global gradient by aggregating the client gradient with the one or more other client gradients and updates parameters of the neural network based on the global gradient.

### Claim 6 (depends on 1)

The method of claim 1 wherein the client compresses the partial client gradient and the output of the K-th layer prior to transmitting the partial client gradient and the output of the K-th layer to the server.

### Claim 7 (depends on 1)

The method of claim 1 wherein the server compresses the copy of the neural network prior to transmitting the copy to the client.

### Claim 8

A non-transitory computer readable storage medium having stored thereon program code executable by a computer system, the program code causing the computer system to execute a method comprising:
receiving a copy of a neural network from a server, the neural network including N layers;
providing one or more data instances as input to the copy of the neural network, the one or more data instances being part of a local training data set residing on the computer system;
computing a client gradient comprising gradient values for the N layers;
determining, from the client gradient, a partial client gradient comprising gradient values for a first K out of the N layers;
determining an output of a K-th layer of the copy of the neural network, the output being a result of processing performed by the first K layers on the one or more data instances; and
transmitting the partial client gradient and the output of the K-th layer to the server.

### Claim 9 (depends on 8)

The non-transitory computer readable storage medium of claim 8 wherein the computer system further transmits one or more training labels associated with the one or more data instances to the server or a loss vector determined as a result of providing the one or more data instances as input to the copy of the neural network.

### Claim 10 (depends on 9)

The non-transitory computer readable storage medium of claim 9 wherein upon receiving the partial client gradient, the output of the K-th layer, and the one or more training labels or the loss vector, the server performs a forward pass of the output of the K-th layer through a last K-N out of the N layers and uses backpropagation to compute a gradient comprising gradient values for the last K-N N layers.

### Claim 11 (depends on 10)

The non-transitory computer readable storage medium of claim 10 wherein the server further combines the gradient with the partial client gradient in order to determine the client gradient.

### Claim 12 (depends on 11)

The non-transitory computer readable storage medium of claim 11 wherein, upon determining the client gradient and one or more other client gradients for one or more other computer systems, the server computes a global gradient by aggregating the client gradient with the one or more other client gradients and updates parameters of the neural network based on the global gradient.

### Claim 13 (depends on 8)

The non-transitory computer readable storage medium of claim 8 wherein the computer system compresses the partial client gradient and the output of the K-th layer prior to transmitting the partial client gradient and the output of the K-th layer to the server.

### Claim 14 (depends on 8)

The non-transitory computer readable storage medium of claim 8 wherein the server compresses the copy of the neural network prior to transmitting the copy to the computer system.

### Claim 15

A computer system comprising:
a processor;
a storage component storing a local training dataset; and
a non-transitory computer readable medium having stored thereon program code that, when executed by the processor, causes the processor to:
receive a copy of a neural network from a server, the neural network including N layers;
provide one or more data instances as input to the copy of the neural network, the one or more data instances being part of the local training data set;
determine, from the client gradient, a partial client gradient comprising gradient values for a first K out of the N layers;
determine an output of a K-th layer of the copy of the neural network, the output being a result of processing performed by the first K layers on the one or more data instances; and
transmit the partial client gradient and the output of the K-th layer to the server.

### Claim 16 (depends on 15)

The computer system of claim 15 wherein the processor further transmits one or more training labels associated with the one or more data instances to the server or a loss vector determined as a result of providing the one or more data instances as input to the copy of the neural network.

### Claim 17 (depends on 16)

The computer system of claim 16 wherein upon receiving the partial client gradient, the output of the K-th layer, and the one or more training labels, the server performs a forward pass of the output of the K-th layer through a last K-N out of the N layers and uses backpropagation to compute a gradient comprising gradient values for the last K-N layers.

### Claim 18 (depends on 17)

The computer system of claim 17 wherein the server further combines the gradient with the partial client gradient in order to determine the client gradient.

### Claim 19 (depends on 18)

The computer system of claim 18 wherein, upon determining the client gradient and one or more other client gradients for one or more other computer systems, the server computes a global gradient by aggregating the client gradient with the one or more other client gradients and updates parameters of the neural network based on the global gradient.

### Claim 20 (depends on 15)

The computer system of claim 15 wherein the processor compresses the partial client gradient and the output of the K-th layer prior to transmitting the partial client gradient and the output of the K-th layer to the server.

### Claim 21 (depends on 15)

The computer system of claim 15 wherein the server compresses the copy of the neural network prior to transmitting the copy to the computer system.
