# US 2023/0058341 A1 · Neural network training method and apparatus using trend

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

- Number: US 2023/0058341 A1
- Document ID: US20230058341A1
- Status: Published application
- Kind: A1
- Application number: 17/721,989
- Filed: 2022-04-15
- Published: 2023-02-23
- Earliest claimed: 2021-08-20
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: JUN HAENG LEE; SEONGJIN PARK
- Web page: https://patentgrep.com/patent/US20230058341A1

## CPC

- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A neural network training method and apparatus are disclosed, where the neural network training method using trend includes receiving original training data and trend information, obtaining a first prediction value and a first loss from a neural network based on the original training data, obtaining a second prediction value from the neural network based on the original training data using the trend information, determining a target loss by modifying the first loss based on the first prediction value and the second prediction value, and training the neural network based on the target loss.

## Claims

### Claim 1

A neural network training method using trend, the neural network training method comprising:
receiving original training data and trend information;
obtaining a first prediction value and a first loss from a neural network based on the original training data;
obtaining a second prediction value from the neural network based on the original training data using the trend information;
determining a target loss by modifying the first loss based on the first prediction value and the second prediction value; and
training the neural network based on the target loss.

### Claim 2 (depends on 1)

The neural network training method of claim 1, wherein the trend information comprises information on a direction of a change in the training data.

### Claim 3 (depends on 1)

The neural network training method of claim 1, wherein the obtaining of the first prediction value and the first loss comprises:
generating random training data based on a feature of the original training data; and
obtaining the first prediction value and the first loss from the neural network based on the random training data.

### Claim 4 (depends on 3)

The neural network training method of claim 3, wherein the generating of the random training data comprises:
generating random input data by modifying a range of input data of the neural network based on a minimum value and a maximum value of the input data from among the original training data; and
masking a portion of output data of the neural network from among the original training data.

### Claim 5 (depends on 4)

The neural network training method of claim 4, wherein the generating of the random input data comprises:
calculating a modification range based on the minimum value, the maximum value, and the feature;
generating an expanded range by expanding the minimum value and the maximum value based on the modification range; and
generating the random input data based on the expanded range.

### Claim 6 (depends on 3)

The neural network training method of claim 3, wherein the obtaining of the second prediction value comprises:
generating training data reflecting a trend by adjusting the random training data using the trend information; and
obtaining the second prediction value from the neural network based on the adjusted training data.

### Claim 7 (depends on 1)

The neural network training method of claim 1, wherein the determining of the target loss comprises:
calculating a trend loss based on a difference between the first prediction value and the second prediction value; and
determining the target loss by modifying the first loss based on the trend loss.

### Claim 8 (depends on 7)

The neural network training method of claim 7, wherein the calculating of the trend loss based on the difference between the first prediction value and the second prediction value comprises:
calculating the trend loss based on subtracting the second prediction value from the first prediction value, in response to the output data of the neural network changing in an increasing direction by the trend; and
calculating the trend loss based on subtracting the first prediction value from the second prediction value, in response to the output data of the neural network changing in a decreasing direction by the trend.

### Claim 9 (depends on 7)

The neural network training method of claim 7, wherein the determining of the target loss by modifying the first loss based on the trend loss comprises:
determining a hyperparameter for the trend loss; and
determining the target loss by adding a product of the hyperparameter and the trend loss to the first loss.

### Claim 10 (depends on 1)

A non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform the neural network training method of claim 1.

### Claim 11

A neural network training apparatus using trend, the neural network training apparatus comprising:
a receiver configured to receive original training data and trend information; and
a processor configured to obtain a first prediction value and a first loss from a neural network based on the original training data,
obtain a second prediction value from the neural network based on the original training data using the trend information,
determine a target loss by modifying the first loss based on the first prediction value and the second prediction value, and
train the neural network based on the target loss.

### Claim 12 (depends on 11)

The neural network training apparatus of claim 11, wherein the trend information comprises information on a direction of a change in the training data.

### Claim 13 (depends on 11)

The neural network training apparatus of claim 11, wherein the processor is further configured to:
generate random training data based on a feature of the original training data, and
obtain the first prediction value and the first loss from the neural network based on the random training data.

### Claim 14 (depends on 13)

The neural network training apparatus of claim 13, wherein the processor is further configured to:
generate random input data by modifying a range of input data of the neural network based on a minimum value and a maximum value of the input data from among the original training data, and
mask a portion of output data of the neural network from among the original training data.

### Claim 15 (depends on 14)

The neural network training apparatus of claim 14, wherein the processor is further configured to:
calculate a modification range based on the minimum value, the maximum value, and the feature,
generate an expanded range by expanding the minimum value and the maximum value based on the modification range, and
generate the random input data based on the expanded range.

### Claim 16 (depends on 13)

The neural network training apparatus of claim 13, wherein the processor is further configured to:
generate training data reflecting a trend by adjusting the random training data using the trend information, and
obtain the second prediction value from the neural network based on the adjusted training data.

### Claim 17 (depends on 11)

The neural network training apparatus of claim 11, wherein the processor is further configured to:
calculate a trend loss based on a difference between the first prediction value and the second prediction value, and
determine the target loss by modifying the first loss based on the trend loss.

### Claim 18 (depends on 17)

The neural network training apparatus of claim 17, wherein the processor is further configured to:
calculate the trend loss based on subtracting the second prediction value from the first prediction value, in response to the output data of the neural network changing in an increasing direction by the trend, and
calculate the trend loss based on subtracting the first prediction value from the second prediction value, in response to the output data of the neural network changing in a decreasing direction by the trend.

### Claim 19 (depends on 17)

The neural network training apparatus of claim 17, wherein the processor is further configured to:
determine a hyperparameter for the trend loss, and
determine the target loss by adding a product of the hyperparameter and the trend loss to the first loss.

### Claim 20

A neural network training method using trend, the neural network training method comprising:
receiving original training data and trend information;
generating random training data based on a feature of the original training data;
obtaining a first prediction value and a first loss from a neural network based on the random training data;
adjusting the random training data using the trend information;
obtaining a second prediction value from the neural network based on the adjusted random training data;
determining a target loss by modifying the first loss based on the first prediction value and the second prediction value; and
training the neural network based on the target loss.

### Claim 21 (depends on 20)

The neural network training method of claim 20, wherein the generating of the random training data comprises modifying a range of input data of the neural network based on a minimum value and a maximum value of the input data from among the original training data.

### Claim 22 (depends on 21)

The neural network training method of claim 21, wherein the generating of the random training data comprises:
calculating a modification range based on a feature of the original training data, the minimum value, and the maximum value; and
generating the random training data from by expanding a range of the minimum value and the maximum value based on the modification range.

### Claim 23 (depends on 20)

The neural network training method of claim 20, wherein the determining of the target loss comprises:
determining a trend loss based on a difference between the first prediction value and the second prediction value;
determining a hyperparameter to adjust between the first loss and the trend loss; and
determining the target loss based on adding a product of the hyperparameter and the trend loss to the first loss.
