# US 2021/0064985 A1 · Machine learning hardware having reduced precision parameter components for efficient parameter update

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

- Number: US 2021/0064985 A1
- Document ID: US20210064985A1
- Status: Published application
- Kind: A1
- Application number: 16/558,585
- Filed: 2019-09-03
- Published: 2021-03-04
- Earliest claimed: 2019-09-03
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Xiao Sun; Jungwook Choi; Naigang Wang; Chia-Yu Chen; Kailash Gopalakrishnan
- Web page: https://patentgrep.com/patent/US20210064985A1

## CPC

- G06N 3/08: Learning methods
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/063: using electronic means
- G06N 3/098: Distributed learning, e.g. federated learning
- G06F 2207/382: Reconfigurable for different fixed word lengths
- G06F 2207/4824: Neural networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An apparatus for training and inferencing a neural network includes circuitry that is configured to generate a first weight having a first format including a first number of bits based at least in part on a second weight having a second format including a second number of bits and a residual having a third format including a third number of bits. The second number of bits and the third number of bits are each less than the first number of bits. The circuitry is further configured to update the second weight based at least in part on the first weight and to update the residual based at least in part on the updated second weight and the first weight. The circuitry is further configured to update the first weight based at least in part on the updated second weight and the updated residual.

## Claims

### Claim 1

An apparatus comprising circuitry for a neural network, the circuitry being configured:
to generate a first weight having a first format comprising a first number of bits based at least in part on a second weight having a second format comprising a second number of bits and a residual having a third format comprising a third number of bits, the second number of bits and the third number of bits each being less than the first number of bits;
to update the second weight based at least in part on the first weight; and
to update the residual based at least in part on the updated second weight and the first weight; and
to update the first weight based at least in part on the updated second weight and the updated residual.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the second number of bits comprises 8 bits.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the third number of bits comprises 16 bits.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the second number of bits and the third number of bits, together, comprise fewer bits than the first number of bits.

### Claim 5 (depends on 4)

The apparatus of claim 4, wherein updating the residual based at least in part on the updated second weight and the first weight comprises:
generating a second residual comprising a fourth number of bits based at least in part on the updated second weight and the first weight, the fourth number of bits having a greater number of bits than the third number of bits; and
quantizing the second residual from the fourth number of bits to the third number of bits to update the residual.

### Claim 6 (depends on 5)

The apparatus of claim 5, the circuitry being further configured:
to scale up the second residual based at least in part on a scaling factor prior to quantizing the second residual; and
to scale down the updated residual based at least in part on the scaling factor prior to updating the first weight based at least in part on the updated second weight and the updated residual.

### Claim 7

A method comprising:
generating a first weight having a first format comprising a first number of bits based at least in part on a second weight having a second format comprising a second number of bits and a residual having a third format comprising a third number of bits, the second number of bits and the third number of bits each being less than the first number of bits;
updating the second weight based at least in part on the first weight; and
updating the residual based at least in part on the updated second weight and the first weight; and
updating the first weight based at least in part on the updated second weight and the updated residual;
wherein the method is performed at least in part by circuitry for a neural network.

### Claim 8 (depends on 7)

The method of claim 7, wherein the second number of bits comprises 8 bits.

### Claim 9 (depends on 7)

The method of claim 7, wherein the third number of bits comprises 16 bits.

### Claim 10 (depends on 7)

The method of claim 7, wherein the second number of bits and the third number of bits, together, comprise fewer bits than the first number of bits.

### Claim 11 (depends on 10)

The method of claim 10, wherein updating the residual based at least in part on the updated second weight and the first weight comprises:
generating a second residual comprising a fourth number of bits based at least in part on the updated second weight and the first weight, the fourth number of bits having a greater number of bits than the third number of bits; and
quantizing the second residual from the fourth number of bits to the third number of bits to update the residual.

### Claim 12 (depends on 11)

The method of claim 11, the method further comprising:
scaling up the second residual based at least in part on a scaling factor prior to quantizing the second residual; and
scaling down the updated residual based at least in part on the scaling factor prior to updating the first weight based at least in part on the updated second weight and the updated residual.

### Claim 13

An apparatus comprising at least one learner of a multiple learner system comprising a plurality of components, the at least one learner configured:
to generate a portion of a gradient;
to provide the portion of the gradient to at least one other component of the multiple learner system; and
to obtain at least a portion of a weight from the at least one other component of the multiple learner system; and
to update the portion of the gradient based at least in part on the obtained at least a portion of the weight.

### Claim 14 (depends on 13)

The apparatus of claim 13,
wherein the at least one other component of the multiple learner system comprises a parameter server;
wherein the at least a portion of the weight comprises all of the weight; and
wherein the providing the portion of the gradient to the at least one other component of the multiple learner system comprises providing the portion of the gradient to the parameter server, the parameter server configured to generate the weight based at least in part on the provided portion of the gradient and to provide the weight to the at least one learner.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the parameter server is further configured:
to generate a residual based at least in part on the weight; and
to maintain the residual locally on the parameter server without providing the residual to the at least one learner.

### Claim 16 (depends on 13)

The apparatus of claim 13, wherein the multiple learner system comprises a plurality of learners configured in a ring format;
wherein the providing the portion of the gradient to the at least one other component of the multiple learner system comprises providing the portion of the gradient to at least one other learner of the plurality of learners;
wherein the at least one learner is further configured:
to receive at least a second portion of the gradient from the at least one other learner;
to generate at least a second portion of the weight based at least in part on the portion of the gradient and the second portion of the gradient; and
to provide the at least a second portion of the weight to the at least one other learner.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein the at least a portion of the weight obtained from the at least one other component of the multiple learner system comprises a third portion of the weight that was generated by at least a third learner of the multiple learner system.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein updating the portion of the gradient based at least in part on the obtained at least a portion of the weight comprises updating the portion of the gradient based at least in part on the second portion of the weight generated by the at least one learner and the third portion of the weight generated by at least the third learner of the multiple learner system.

### Claim 19 (depends on 16)

The apparatus of claim 16, wherein the at least one learner is further configured:
to generate a residual based at least in part on the generated at least a second portion of the weight; and
to update the at least a second portion of the weight based at least in part on the residual, wherein the residual is stored locally on the at least one learner and is not provided to the at least one learner of the plurality of learners.

### Claim 20 (depends on 13)

The apparatus of claim 13, wherein the portion of the gradient comprises a 16-bit format and the at least a portion of the weight comprises an 8-bit format.
