# US 2023/0068874 A1 · Optimal learning rate selection through step sampling

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

- Number: US 2023/0068874 A1
- Document ID: US20230068874A1
- Status: Published application
- Kind: A1
- Application number: 17/695,064
- Filed: 2022-03-15
- Published: 2023-03-02
- Earliest claimed: 2021-08-31
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Suhel JABER; Brendon C. EBY
- Web page: https://patentgrep.com/patent/US20230068874A1

## CPC

- G06N 20/00: Machine learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method of training a model includes selecting a learning rate for the model, training the model based on the learning rate, determining a derivative of a loss for an objective function for the model with respect to the learning rate based on a result of the training, and based on the derivative of the loss being greater than a predetermined derivative threshold, determining at least one point of interest based on the result of the training, selecting a subsequent learning rate based on the at least one point of interest, training the model based on the subsequent learning rate, and selecting an optimal learning rate based on the training results.

## Claims

### Claim 1

A method of training a model, the method comprising:
selecting a learning rate for the model;
training the model based on the learning rate;
determining a derivative of a loss for an objective function for the model with respect to the learning rate based on a result of the training; and
based on the derivative of the loss being greater than a predetermined derivative threshold:
determining at least one point of interest based on the result of the training;
selecting a subsequent learning rate based on the at least one point of interest;
training the model based on the subsequent learning rate; and
selecting an optimal learning rate based on the training results.

### Claim 2 (depends on 1)

The method of claim 1, further comprising repeating the determining the at least one point of interest and the selecting the subsequent learning rate until a difference between the subsequent learning rate and a learning rate closest to the subsequent learning rate is less than a minimum difference threshold.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining at least one point of interest comprises:
determining a first learning rate where a minimum loss is achieved; and
determining a second learning rate that achieves a loss approximately halfway between a loss for a learning rate of zero and a loss at the first learning rate.

### Claim 4 (depends on 3)

The method of claim 3, wherein determining at least one point of interest further comprises determining a third learning rate with a minimum curvature less than the second learning rate, and
wherein selecting the subsequent learning rate comprises selecting a fourth learning rate as the subsequent learning rate that is approximately halfway between the third learning rate and the first learning rate.

### Claim 5 (depends on 4)

The method of claim 4, wherein the fourth learning rate is approximately halfway between the third learning rate and the first learning rate on a logarithmic scale.

### Claim 6 (depends on 3)

The method of claim 3, wherein selecting the subsequent learning rate comprises selecting the second learning rate as the subsequent learning rate.

### Claim 7 (depends on 1)

The method of claim 1, further comprising, based on the derivative of the loss being less than or equal to the predetermined derivative threshold:
selecting an updated learning rate, training the model based on the updated learning rate, and determining the derivative of the loss for the objective function for the model based on the updated learning rate based on a result of the training, until the derivative of the loss is greater than the predetermined derivative threshold.

### Claim 8

A system for training a model, the system comprising:
a processor; and
a memory storing instructions that, when executed, cause the processor to:
select an initial learning rate for the model;
train the model based on the initial learning rate;
determine a derivative of a loss of the initial learning rate based on a result of the training; and
based on the derivative of the loss being greater than a predetermined derivative threshold:
determine at least one point of interest based on the result of the training;
select a subsequent learning rate based on the at least one point of interest; and
train the model based on the subsequent learning rate.

### Claim 9 (depends on 8)

The system of claim 8, wherein the instructions, when executed, further cause the processor to repeat the determining the at least one point of interest, the selecting the subsequent learning rate, and the training the model based on the subsequent learning rate) until a difference between learning rates is less than a minimum difference threshold.

### Claim 10 (depends on 8)

The system of claim 8, wherein the instructions, when executed, further cause the processor to determine at least one point of interest by:
determining a first learning rate where a minimum loss is achieved; and
determining a second learning rate that achieves a loss approximately halfway between a loss for a learning rate of zero and a loss at the first learning rate.

### Claim 11 (depends on 10)

The system of claim 10, wherein the instructions, when executed, further cause the processor to determine at least one point of interest further by determining a third learning rate with a minimum curvature less than the second learning rate, and
wherein the instructions, when executed, further cause the processor to select the subsequent learning rate by selecting a fourth learning rate as the subsequent learning rate that is approximately halfway between the third learning rate and the first learning rate.

### Claim 12 (depends on 11)

The system of claim 11, wherein the fourth learning rate is approximately halfway between the third learning rate and the first learning rate on a logarithmic scale.

### Claim 13 (depends on 10)

The system of claim 10, wherein the instructions, when executed, further cause the processor to select the subsequent learning rate by selecting the second learning rate as the subsequent learning rate.

### Claim 14 (depends on 8)

The system of claim 8, wherein the instructions, when executed, further cause the processor to determine at least one point of interest by determining a fifth learning rate where the derivative of the loss of the initial learning rate reaches a minimum, and
wherein the instructions, when executed, further cause the processor to select the subsequent learning rate by selecting the fifth learning rate as the subsequent learning rate.

### Claim 15

A non-transitory computer-readable storage medium comprising instructions that, when executed, cause at least one processor to:
select an initial learning rate for the model;
train a model based on the initial learning rate;
determine a derivative of a loss of the initial learning rate based on a result of the training; and
based on the derivative of the loss being greater than a predetermined derivative threshold:
determine at least one point of interest based on the result of the training;
select a subsequent learning rate based on the at least one point of interest; and
train the model based on the subsequent learning rate.

### Claim 16 (depends on 15)

The storage medium of claim 15, wherein the instructions, when executed, further cause the at least one processor to repeat the determining the at least one point of interest, the selecting the subsequent learning rate, and the training the model based on the subsequent learning rate until a difference between learning rates is less than a minimum difference threshold.

### Claim 17 (depends on 15)

The storage medium of claim 15, wherein the instructions, when executed, further cause the at least one processor to determine at least one point of interest by:
determining a first learning rate where a minimum loss is achieved; and
determining a second learning rate that achieves a loss approximately halfway between a loss for a learning rate of zero and a loss at the first learning rate.

### Claim 18 (depends on 17)

The storage medium of claim 17, wherein the instructions, when executed, further cause the at least one processor to determine at least one point of interest further by determining a third learning rate with a minimum curvature less than the second learning rate, and
wherein the instructions, when executed, further cause the at least one processor to select the subsequent learning rate by selecting a fourth learning rate as the subsequent learning rate that is approximately halfway between the third learning rate and the first learning rate.

### Claim 19 (depends on 17)

The storage medium of claim 17, wherein the instructions, when executed, further cause the at least one processor to select the subsequent learning rate by selecting the second learning rate as the subsequent learning rate.

### Claim 20 (depends on 15)

The storage medium of claim 15, wherein the instructions, when executed, further cause the at least one processor to determine at least one point of interest by determining a fifth learning rate where the derivative of the loss of the initial learning rate reaches a minimum, and
wherein the instructions, when executed, further cause the at least one processor to select the subsequent learning rate by selecting the fifth learning rate as the subsequent learning rate.
