# US 2022/0044122 A1 · Memory-efficient neural network training

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

- Number: US 2022/0044122 A1
- Document ID: US20220044122A1
- Status: Published application
- Kind: A1
- Application number: 17/510,959
- Filed: 2021-10-26
- Published: 2022-02-10
- Earliest claimed: 2021-10-26
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Hesham Mostafa
- Web page: https://patentgrep.com/patent/US20220044122A1

## CPC

- G06N 3/08: Learning methods
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/063: using electronic means
- G06N 3/09: Supervised learning
- G06N 3/098: Distributed learning, e.g. federated learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Various embodiments provide apparatuses, systems, and methods related to a first worker of a distributed neural network (NN), The first worker may execute a forward training pass of a first node of a distributed NN, wherein execution of the forward training pass includes generation of a first computational graph (CG) that is based on inputs related to a second node that is processed by a second worker of the distributed NN. The first worker may also delete, subsequent to the forward training pass of the first node, the CG. The first worker may also execute, a backward pass of the first node, wherein execution of the backward pass includes re-generation of at least a portion of the first CG. Other embodiments may be described and claimed.

## Claims

### Claim 1

An apparatus to be employed in a distributed neural network (NN), wherein the apparatus comprises:
a first worker to:
execute a forward training pass of a first node of a distributed NN, wherein execution of the forward training pass includes generation of a first computational graph (CG) that is based on inputs related to a second node that is processed by a second worker of the distributed NN;
delete, subsequent to the forward training pass of the first node, the CG; and
execute, a backward pass of the first node, wherein execution of the backward pass includes re-generation of at least a portion of the first CG; and
a second worker communicatively coupled with the first worker, wherein the second worker is to provide at least one input of the inputs related to the second node.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the first worker is further to:
identify, based on the backward pass, an alteration to an input of the inputs related to the second node of the distributed NN; and
facilitate the alteration.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the inputs related to the second node include an input value and a weight value of the second node.

### Claim 4 (depends on 3)

The apparatus of claim 3, wherein the input value and the weight value are provided by the second worker to the first worker.

### Claim 5 (depends on 3)

The apparatus of claim 3, wherein the input value is provided by the second worker to the first worker, and the weight value is retrieved from a memory communicatively coupled with the first worker.

### Claim 6 (depends on 3)

The apparatus of claim 3, wherein facilitating alteration of the inputs related to the second node includes providing, by the first worker, an indication that the second worker is to alter the input value.

### Claim 7 (depends on 3)

The apparatus of claim 3, wherein facilitating alteration of the data related to the second node includes providing, by the first worker, an indication that the second worker is to alter the weight value.

### Claim 8 (depends on 1)

The apparatus of claim 1, wherein the apparatus includes a multi-core processor, and wherein the first worker is a first core of the multi-core processor and the second worker is a second core of the multi-core processor.

### Claim 9 (depends on 1)

The apparatus of claim 1, wherein the first worker is a first processor of an electronic device, and the second worker is a second processor of the electronic device.

### Claim 10

One or more non-transitory computer-readable media comprising instructions that, upon execution of the instructions by a first worker of a distributed neural network (NN) training system, are to cause the first worker to:
execute a forward training pass of a first node of a distributed NN, wherein execution of the forward training pass includes generation of a first computational graph (CG) that is based on inputs related to a second node that is processed by a second worker of the distributed NN;
delete, subsequent to the forward training pass of the first node, the CG; and
execute, a backward pass of the first node, wherein execution of the backward pass includes re-generation of at least a portion of the first CG.

### Claim 11 (depends on 10)

The one or more non-transitory computer-readable media of claim 10, wherein the instructions are further to:
identify, by the first worker, based on the backward pass, an alteration to an input of the inputs related to the second node of the distributed NN; and
facilitate, by the first worker, the alteration.

### Claim 12 (depends on 10)

The one or more non-transitory computer-readable media of claim 10, wherein the inputs related to the second node include an input value and a weight value of the second node.

### Claim 13 (depends on 12)

The one or more non-transitory computer-readable media of claim 12, wherein the input value and the weight value are provided by the second worker to the first worker.

### Claim 14 (depends on 12)

The one or more non-transitory computer-readable media of claim 12, wherein the input value is provided by the second worker to the first worker, and the weight value is retrieved from a memory communicatively coupled with the first worker.

### Claim 15 (depends on 12)

The one or more non-transitory computer-readable media of claim 12, wherein facilitating alteration of the inputs related to the second node includes providing, by the first worker, an indication that the second worker is to alter the input value.

### Claim 16 (depends on 12)

The one or more non-transitory computer-readable media of claim 12, wherein facilitating alteration of the data related to the second node includes providing, by the first worker, an indication that the second worker is to alter the weight value.

### Claim 17

A method comprising:
executing, by a first worker of a distributed neural network (NN), a forward training pass of a first node of the distributed NN, wherein execution of the forward training pass includes generation of a first computational graph (CG) that is based on inputs related to a second node that is processed by a second worker of the distributed NN;
deleting, by the first worker subsequent to the forward training pass of the first node, the CG; and
executing, by the first worker, a backward pass of the first node, wherein execution of the backward pass includes re-generation of at least a portion of the first CG.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
identifying, by the first worker, based on the backward pass, an alteration to an input of the inputs related to the second node of the distributed NN; and
facilitating, by the first worker, the alteration.

### Claim 19 (depends on 17)

The method of claim 17, wherein the inputs related to the second node include an input value and a weight value of the second node.

### Claim 20 (depends on 19)

The method of claim 19, wherein the input value and the weight value are provided by the second worker to the first worker.

### Claim 21 (depends on 19)

The method of claim 19, wherein the input value is provided by the second worker to the first worker, and the weight value is retrieved from a memory communicatively coupled with the first worker.

### Claim 22 (depends on 19)

The method of claim 19, wherein facilitating alteration of the inputs related to the second node includes providing, by the first worker, an indication that the second worker is to alter the input value.

### Claim 23 (depends on 19)

The method of claim 19, wherein facilitating alteration of the data related to the second node includes providing, by the first worker, an indication that the second worker is to alter the weight value.
