# US 2023/0144390 A1 · Non-transitory computer-readable storage medium for storing operation program, operation method, and calculator

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

- Number: US 2023/0144390 A1
- Document ID: US20230144390A1
- Status: Published application
- Kind: A1
- Application number: 17/864,475
- Filed: 2022-07-14
- Published: 2023-05-11
- Earliest claimed: 2021-11-08
- Assignees: Fujitsu Limited
- Applicants: Fujitsu Limited
- Inventors: Tetsutaro HASHIMOTO
- Web page: https://patentgrep.com/patent/US20230144390A1

## 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/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/09: Supervised learning
- G06F 2218/12: Classification; Matching
- G06N 3/048: Activation functions
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A non-transitory computer-readable recording medium storing an operation program for causing a computer to execute processing including: performing first learning with a high-precision data type in each of layers included in a learning model; calculating a number of bits to be used for quantization in each of the layers, based on a threshold value that corresponds to a first quantization error and a degree of attenuation by accumulation of quantization errors in a case where quantization is performed in the first learning; and repeatedly performing second learning that includes quantization in a data type based on the calculated number of bits for each of the layers until the second learning converges.

## Claims

### Claim 1

A non-transitory computer-readable recording medium storing an operation program for causing a computer to execute processing comprising:
performing first learning with a high-precision data type in each of layers included in a learning model;
calculating a number of bits to be used for quantization in each of the layers, based on a threshold value that corresponds to a first quantization error and a degree of attenuation by accumulation of quantization errors in a case where quantization is performed in the first learning; and
repeatedly performing second learning that includes quantization in a data type based on the calculated number of bits for each of the layers until the second learning converges.

### Claim 2 (depends on 1)

The non-transitory computer-readable recording medium according to claim 1, wherein the calculating of the number of bits includes calculation of a number of bits of an exponent part and a number of bits of a significand part.

### Claim 3 (depends on 2)

The non-transitory computer-readable recording medium according to claim 2, wherein an upper limit of the first quantization error with which an attenuation amount is equal to or less than the threshold value is obtained, and the number of bits of the exponent part is calculated based on the upper limit of the first quantization error.

### Claim 4 (depends on 2)

The non-transitory computer-readable recording medium according to claim 2, wherein a condition in which a recognition rate does not decrease is generated based on an output value of the learning model, an upper limit of the first quantization error that satisfies the condition in which the recognition rate does not decrease is obtained, and the number of bits of the significand part is calculated based on the upper limit of the first quantization error.

### Claim 5 (depends on 1)

The non-transitory computer-readable recording medium according to claim 1, wherein
the learning of the learning model that includes the first learning and the second learning is executed by repeating an epoch that includes a plurality of iterations,
the first learning is executed in a plurality of predetermined epochs,
a number of bits to be used for the quantization in each of the layers is calculated in a last iteration of the first learning in the predetermined epoch, and
the second learning is executed by maintaining the data type of the quantization in each of the layers until the learning reaches a next predetermined epoch or converges.

### Claim 6

An operation method implemented by a computer, the operation method comprising:
performing first learning with a high-precision data type in each of layers included in a learning model;
calculating a number of bits to be used for quantization in each of the layers, based on a threshold value that corresponds to a first quantization error and a degree of attenuation by accumulation of quantization errors in a case where quantization is performed in the first learning; and
repeatedly performing second learning that includes quantization in a data type based on the calculated number of bits for each of the layers until the second learning converges.

### Claim 7

An operation apparatus comprising:
a memory; and
a processor coupled to the memory, the processor being configured to perform processing, the processing including:
performing first learning with a high-precision data type in each of layers included in a learning model;
calculating a number of bits to be used for quantization in each of the layers, based on a threshold value that corresponds to a first quantization error and a degree of attenuation by accumulation of quantization errors in a case where quantization is performed in the first learning; and
repeatedly performing second learning that includes quantization in a data type based on the calculated number of bits for each of the layers until the second learning converges.
