# US 2024/0202543 A1 · Compression of model weights for distributed and federated learning

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

- Number: US 2024/0202543 A1
- Document ID: US20240202543A1
- Status: Published application
- Kind: A1
- Application number: 18/067,503
- Filed: 2022-12-16
- Published: 2024-06-20
- Earliest claimed: 2022-12-16
- Assignees: VMware, Inc.
- Applicants: VMware LLC
- Inventors: Yaniv Ben-Itzhak; Shay Vargaftik; Ron Dorfman
- Web page: https://patentgrep.com/patent/US20240202543A1

## CPC

- G06N 3/098: Distributed learning, e.g. federated learning
- G06N 3/045: Combinations of networks
- G06N 3/063: using electronic means
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Techniques for compressing the model weights of an artificial neural network (ANN) in the context of distributed learning (DL) or federated learning (FL) are provided. In one set of embodiments, these techniques include a hybrid approach for compressing the model weights that employs (1) a high complexity compression scheme to compress the ANN's model weights every k rounds of the DL/FL procedure (referred to as anchor rounds), and (2) a low complexity compression scheme to compress accumulated differences in model weights of the ANN for intermediate rounds between the anchor rounds.

## Claims

### Claim 1

A method comprising:
determining, by a parameter server directing a distributed learning (DL) or federated learning (FL) procedure for training an artificial neural network (ANN), whether a current round of the DL or FL procedure is an anchor round; and
upon determining that the current round is an anchor round:
compressing, by the parameter server, a model weight vector comprising current model weights of the ANN using a first compression scheme, the compressing resulting in an anchor point;
transmitting, by the parameter server, the anchor point to each of a plurality of participating clients in the current round; and
saving, by the parameter server, the anchor point for use in subsequent rounds.

### Claim 2 (depends on 1)

The method of claim 1 further comprising, upon determining that the current round is not an anchor round:
computing a sum of global gradients determined in one or more rounds since the last anchor round;
compressing the sum using a second compression scheme that has lower encoding complexity than the first compression scheme, the compressing of the sum resulting in a correction; and
retrieving a saved anchor point for a prior anchor round; and
for each participating client in the current round:
transmitting the correction to the participating client upon determining that the participating client has already received the saved anchor point; and
transmitting the retrieved anchor point and the correction to the participating client upon determining that the participating client has not already received the saved anchor point.

### Claim 3 (depends on 2)

The method of claim 2 wherein the parameter server assigns a bandwidth allocation for transmitting anchor points and corrections, and wherein the bandwidth allocation is dynamically changed as the DL or FL procedure progresses.

### Claim 4 (depends on 1)

The method of claim 1 wherein the current round is an anchor round if a round number of the current round is a multiple of a value k.

### Claim 5 (depends on 4)

The method of claim 4 wherein the value k is adaptively modified by the parameter server as the DL or FL procedure progresses, based on a status of the DL or FL procedure or a resource load on the parameter server.

### Claim 6 (depends on 1)

The method of claim 1 further comprising:
selecting a client to participate in a future round of the DL or FL procedure;
retrieving a saved anchor point for a prior anchor round;
transmitting the retrieved anchor point to the client before the future round; and
upon reaching the future round:
computing a sum of global gradients determined in one or more rounds since the prior anchor round;
compressing the sum using a second compression scheme that has lower encoding complexity than the first compression scheme, the compressing of the sum resulting in a correction; and
transmitting the correction to the client.

### Claim 7 (depends on 1)

The method of claim 1 wherein a regularization term is added to a loss function used by the participating clients to generate a gradient for the ANN, the regularization term being designed to minimize differences between model weights of the ANN and the compressed model weights in the anchor point.

### Claim 8

A non-transitory computer readable storage medium having stored thereon program code executable by a parameter server directing a distributed learning (DL) or federated learning (FL) procedure for training an artificial neural network (ANN), the program code causing the parameter server to:
determine whether a current round of the DL or FL procedure is an anchor round; and
upon determining that the current round is an anchor round:
compress a model weight vector comprising current model weights of the ANN using a first compression scheme, the compressing resulting in an anchor point;
transmit the anchor point to each of a plurality of participating clients in the current round; and
save the anchor point for use in subsequent rounds.

### Claim 9 (depends on 8)

The non-transitory computer readable storage medium of claim 8 wherein the program code further causes the parameter server to, upon determining that the current round is not an anchor round:
compute a sum of global gradients determined in one or more rounds since the last anchor round;
compress the sum using a second compression scheme that has lower encoding complexity than the first compression scheme, the compressing of the sum resulting in a correction;
retrieve a saved anchor point for a prior anchor round; and
for each participating client in the current round:
transmit the correction to the participating client upon determining that the participating client has already received the saved anchor point; and
transmit the retrieved anchor point and the correction to the participating client upon determining that the participating client has not already received the saved anchor point.

### Claim 10 (depends on 9)

The non-transitory computer readable storage medium of claim 9 wherein the parameter server assigns a bandwidth allocation for transmitting anchor points and corrections, and wherein the bandwidth allocation is dynamically changed as the DL or FL procedure progresses.

### Claim 11 (depends on 8)

The non-transitory computer readable storage medium of claim 8 wherein the current round is an anchor round if a round number of the current round is a multiple of a value k.

### Claim 12 (depends on 11)

The non-transitory computer readable storage medium of claim 11 wherein the value k is adaptively modified by the parameter server as the DL or FL procedure progresses, based on a status of the DL or FL procedure or a resource load on the parameter server.

### Claim 13 (depends on 8)

The non-transitory computer readable storage medium of claim 8 wherein the program code further causes the parameter server to:
select a client to participate in a future round of the DL or FL procedure;
retrieve a saved anchor point for a prior anchor round;
transmit the retrieved anchor point to the client before the future round; and
upon reaching the future round:
compute a sum of global gradients determined in one or more rounds since the prior anchor round;
compress the sum using a second compression scheme that has lower encoding complexity than the first compression scheme, the compressing of the sum resulting in a correction; and
transmit the correction to the client.

### Claim 14 (depends on 8)

The non-transitory computer readable storage medium of claim 8 wherein a regularization term is added to a loss function used by the participating clients to generate a gradient for the ANN, the regularization term being designed to minimize differences between model weights of the ANN and the compressed model weights in the anchor point.

### Claim 15

A computer system involved in directing a distributed learning (DL) or federated learning (FL) procedure for training an artificial neural network (ANN), the computer system comprising:
a processor; and
a non-transitory computer readable medium having stored thereon program code that, when executed by the processor, causes the processor to:
determine whether a current round of the DL or FL procedure is an anchor round; and
upon determining that the current round is an anchor round:
compress a model weight vector comprising current model weights of the ANN using a first compression scheme, the compressing resulting in an anchor point;
transmit the anchor point to each of a plurality of participating clients in the current round; and
save the anchor point for use in subsequent rounds.

### Claim 16 (depends on 15)

The computer system of claim 15 wherein the program code further causes the processor to, upon determining that the current round is not an anchor round:
compute a sum of global gradients determined in one or more rounds since the last anchor round;
compress the sum using a second compression scheme that has lower encoding complexity than the first compression scheme, the compressing of the sum resulting in a correction;
retrieve a saved anchor point for a prior anchor round; and
for each participating client in the current round:
transmit the correction to the participating client upon determining that the participating client has already received the saved anchor point; and
transmit the retrieved anchor point and the correction to the participating client upon determining that the participating client has not already received the saved anchor point.

### Claim 17 (depends on 16)

The computer system of claim 16 wherein the processor assigns a bandwidth allocation for transmitting anchor points and corrections, and wherein the bandwidth allocation is dynamically changed as the DL or FL procedure progresses.

### Claim 18 (depends on 15)

The computer system of claim 15 wherein the current round is an anchor round if a round number of the current round is a multiple of a value k.

### Claim 19 (depends on 18)

The computer system of claim 18 wherein the value k is adaptively modified by the processor as the DL or FL procedure progresses, based on a status of the DL or FL procedure or a resource load on the computer system.

### Claim 20 (depends on 15)

The computer system of claim 15 wherein the program code further causes the processor to:
select a client to participate in a future round of the DL or FL procedure;
retrieve a saved anchor point for a prior anchor round;
transmit the retrieved anchor point to the client before the future round; and
upon reaching the future round:
compute a sum of global gradients determined in one or more rounds since the prior anchor round;
compress the sum using a second compression scheme that has lower encoding complexity than the first compression scheme, the compressing of the sum resulting in a correction; and
transmit the correction to the client.

### Claim 21 (depends on 15)

The computer system of claim 15 wherein a regularization term is added to a loss function used by the participating clients to generate a gradient for the ANN, the regularization term being designed to minimize differences between model weights of the ANN and the compressed model weights in the anchor point.
