# US 2019/0095794 A1 · Methods and apparatus for training a neural network

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

- Number: US 2019/0095794 A1
- Document ID: US20190095794A1
- Status: Published application
- Kind: A1
- Application number: 15/716,047
- Filed: 2017-09-26
- Published: 2019-03-28
- Earliest claimed: 2017-09-26
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Rodrigo Aldana López; Leobardo Emmanuel Campos Macías; Julio Cesar Zamora Esquivel; Jesús Adán Cruz Vargas; David Gómez Gutiérrez
- Web page: https://patentgrep.com/patent/US20190095794A1

## CPC

- G06V 10/82: using neural networks
- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 20/00: Machine learning
- G06F 2218/12: Classification; Matching
- G06V 40/15: {Biometric patterns based on physiological signals, e.g. heartbeat, blood flow}
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods and apparatus for training a neural network are disclosed. An example apparatus includes a neural network trainer to determine an amount of training error experienced in a prior training epoch of a neural network, and determine a gradient descent value based on the amount of training error. A learning rate determiner is to calculate a learning rate based on the gradient descent value and a selected number of epochs such that a training process of the neural network is completed within the selected number of epochs, the neural network trainer to update weighting parameters of the neural network based on the learning rate.

## Claims

### Claim 1

An apparatus to train a neural network, the apparatus comprising:
a neural network trainer to determine an amount of training error experienced in a prior training epoch of a neural network, and determine a gradient descent value based on the amount of training error; and
a learning rate determiner to calculate a learning rate based on the gradient descent value and a selected number of epochs such that a training process of the neural network is completed within the selected number of epochs, the neural network trainer to update weighting parameters of the neural network based on the learning rate.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the neural network trainer is further to determine tuning parameters such that a training process is completed within a maximum number of epochs.

### Claim 3 (depends on 2)

The apparatus of claim 2, further including a tuning parameter memory to store the tuning parameters.

### Claim 4 (depends on 1)

The apparatus of claim 1, further including an epoch counter to store a number of epochs that have elapsed during the training process, and the neural network trainer is to, in response to determining that the number of epochs that have elapsed meets or exceeds the maximum number of epochs, terminate the training process.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the neural network trainer is further to, in response to determining that the amount of training error is less than a training error threshold, terminate the training process.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the learning rate is a first learning rate, and the learning rate determiner is to determine a second learning rate corresponding to a subsequent epoch, the second learning rate different from the first learning rate.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the learning rate determiner is to determine whether the learning rate is greater than a learning rate threshold, and, in response to determining that the learning rate is greater than the learning rate threshold, set the learning rate to the learning rate threshold.

### Claim 8 (depends on 1)

The apparatus of claim 1, further including a neural network processor to process an input to generate an output based on the weighting parameters.

### Claim 9

At least one non-transitory computer-readable storage medium comprising instructions which, when executed, cause a processor to at least:
determine an amount of training error experienced in a prior training epoch;
determine a gradient descent value based on the amount of training error;
calculate a learning rate based on the gradient descent value and a selected number of epochs such that a neural network training process is completed within the selected number of epochs; and
update weighting parameters of the neural network based on the learning rate.

### Claim 10 (depends on 9)

The at least one non-transitory computer-readable storage medium of claim 9, wherein the instructions, when executed, further cause the machine to calculate the learning rate based on tuning parameters selected such that the training process is completed within the selected number of epochs.

### Claim 11 (depends on 9)

The at least one non-transitory computer-readable storage medium of claim 9, wherein the instructions, when executed, further cause the machine to:
count a number of epochs that have elapsed during the training process; and
in response to a determination that the number of epochs that have elapsed meets or exceeds the selected number of epochs, terminate the training process.

### Claim 12 (depends on 9)

The at least one non-transitory computer-readable storage medium of claim 9, wherein the instructions, when executed, further cause the machine to:
determine an amount of training error using the updated weighting parameters; and
in response to a determination that the amount of training error is less than a training error threshold, terminate the training process.

### Claim 13 (depends on 9)

The at least one non-transitory computer-readable storage medium of claim 9, wherein the learning rate is a first learning rate, and the instructions, when executed, further cause the machine to determine a second learning rate corresponding to a subsequent epoch, the second learning rate different from the first learning rate.

### Claim 14 (depends on 9)

The at least one non-transitory computer-readable storage medium of claim 9, wherein the instructions, when executed, further cause the machine to:
determine whether the learning rate is greater than a learning rate threshold; and
in response to a determination that the learning rate is greater than the learning rate threshold, set the learning rate to the learning rate threshold.

### Claim 15

A method of training a neural network, the method comprising:
determining an amount of training error experienced in a prior training epoch;
determining a gradient descent value based on the amount of training error;
calculating, by executing an instruction with a processor, a learning rate based on the gradient descent value, the amount of training error, and tuning parameters, the tuning parameters selected such that a training process is completed within a maximum number of epochs; and
updating weighting parameters of the neural network based on the learning rate.

### Claim 16 (depends on 15)

The method of claim 15, further including:
counting a number of epochs that have elapsed during the training process; and
in response to determining that the number of epochs that have elapsed meets or exceeds the maximum number of epochs, terminating the training process.

### Claim 17 (depends on 15)

The method of claim 15, further including:
determining an amount of training error using the updated weighting parameters; and
in response to determining that the amount of training error is less than a training error threshold, terminating the training process.

### Claim 18 (depends on 15)

The method of claim 15, wherein the learning rate is a first learning rate, and further including determining a second learning rate corresponding to a subsequent epoch, the second learning rate different from the first learning rate.

### Claim 19 (depends on 15)

The method of claim 15, further including:
determining whether the learning rate is greater than a learning rate threshold; and
in response to determining that the learning rate is greater than the learning rate threshold, setting the learning rate to the learning rate threshold.

### Claim 20 (depends on 15)

The method of claim 15, wherein the learning rate is determined as a first tuning parameter times a sum of a second tuning parameter times the training error to the power of a third tuning parameter and a fourth tuning parameter times the training error to the power of a fifth tuning parameter, to the power of a sixth tuning parameter, divided by the gradient descent value.
