# US 2022/0292300 A1 · Efficient quantization for neural network deployment and execution

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

- Number: US 2022/0292300 A1
- Document ID: US20220292300A1
- Status: Published application
- Kind: A1
- Application number: 17/513,689
- Filed: 2021-10-28
- Published: 2022-09-15
- Earliest claimed: 2021-03-12
- Assignees: Cypress Semiconductor Corporation
- Applicants: Cypress Semiconductor Corporation
- Inventors: Ashutosh Pandey; Kaiping Li; Vikram Kumar Ramanna
- Web page: https://patentgrep.com/patent/US20220292300A1

## CPC

- G06F 18/2137: based on criteria of topology preservation, e.g. multidimensional scaling or self-organising maps
- G06N 3/08: Learning methods
- G06F 18/2431: Multiple classes
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/048: Activation functions
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/09: Supervised learning
- G06N 3/063: using electronic means
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Implementations disclosed describe methods and systems to perform the methods of deploying and executing machine learning models on target-specific computational platforms. Optimization techniques include but are not limited to alignment of kernel operations with hardware instructions of a target processing device, reduction of kernel dimensions near boundaries of data, efficient reuse of a small number of memory components during neural network operations, run-time quantization of data and neural network parameters, and other methods.

## Claims

### Claim 1

A method to deploy a trained machine learning model (MLM) on an edge computing device, the method comprising:
obtaining a first input data into the MLM;
identifying a first range of values associated with the first input data;
identifying a second range of values associated with an integer number format;
obtaining a first rescaled input data by rescaling the first input data based on a mapping of the first range of values to the second range of values;
processing the first rescaled input data using a first neuron layer of the MLM to obtain a first intermediate data; and
obtaining, using the first intermediate data, a first inference output of the MLM, the first inference output comprising a first classification of the first input data.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first range of values comprises a minimum value of the first input data and a maximum value of the first input data.

### Claim 3 (depends on 1)

The method of claim 1, wherein the first range of values comprises a predetermined portion of the first input data.

### Claim 4 (depends on 3)

The method of claim 3, wherein the predetermined portion of the first input data comprises a predetermined quantity of standard deviations of a distribution of the first input data.

### Claim 5 (depends on 1)

The method of claim 1, wherein the integer number format is one of an 8-bit integer format or a 16-bit integer format.

### Claim 6 (depends on 1)

The method of claim 1, wherein the integer format is a format used to store weights of the first neuron layer of the MLM.

### Claim 7 (depends on 1)

The method of claim 1, wherein obtaining the first inference output of the MLM comprises:
identifying a third range of values associated with the first intermediate data;
identifying a fourth range of values associated with an integer number format of the first intermediate data;
obtaining a second rescaled input data by rescaling the first intermediate data based on a mapping of the third range of values to the fourth range of values;
processing the second rescaled input data using the second neuron layer of the MLM to obtain a second intermediate data; and
obtaining, using the second intermediate data, the first inference output of the MLM.

### Claim 8 (depends on 1)

The method of claim 1, wherein the first input data is in a floating-point number format.

### Claim 9 (depends on 1)

The method of claim 1, wherein the first input data comprises a digital representation of a sound.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
obtaining a second input data into the MLM;
identifying a third range of values associated with the second input data;
obtaining a second rescaled input data by rescaling the second input data based on a mapping of the third range of values to the second range of values;
processing the second rescaled input data using a first neuron layer of the MLM to obtain a second intermediate data; and
obtaining, using the first intermediate data, a second inference output of the MLM, the first inference output comprising a second classification of the second input data.

### Claim 11

A method comprising:
obtaining a plurality of input data into an MLM, the MLM comprising parameters stored in a first integer number format; and
processing the plurality of the input data to obtain a plurality of respective classifications of the input data, wherein processing of each of the plurality of the input data comprises:
identifying a range of values associated with a corresponding input data;
obtaining a rescaled input data by rescaling the corresponding input data based on a mapping of the identified range of values to a second integer number format; and
obtaining, using the rescaled input data an inference output comprising a classification of the corresponding input data.

### Claim 12 (depends on 11)

The method of claim 11, wherein the parameters stored in the first integer number format comprise weights of a first neuron layer of the MLM, and wherein the first integer number format is the same as the second integer number format.

### Claim 13 (depends on 11)

The method of claim 11, wherein each of the plurality of the input data is in a floating-point number format.

### Claim 14 (depends on 11)

The method of claim 11, wherein each of the plurality of the input data comprises a digital representation of a sound.

### Claim 15

A system comprising:
a memory subsystem; and
a processing device communicatively coupled to the memory subsystem, the processing device to:
obtain a first input data into the MLM;
identify a first range of values associated with the first input data;
identify a second range of values associated with an integer number format;
obtain a first rescaled input data by rescaling the first input data based on a mapping of the first range of values to the second range of values;
process the first rescaled input data using a first neuron layer of the MLM to obtain a first intermediate data; and
obtain, using the first intermediate data, a first inference output of the MLM, the first inference output comprising a first classification of the first input data.

### Claim 16 (depends on 15)

The system of claim 15, wherein the first range of values comprises a predetermined portion of the first input data.

### Claim 17 (depends on 16)

The system of claim 16, wherein the predetermined portion of the first input data comprises a predetermined quantity of standard deviations of a distribution of the first input data.

### Claim 18 (depends on 15)

The system of claim 15, wherein the integer number format is one of an 8-bit integer format or a 16-bit integer format.

### Claim 19 (depends on 15)

The system of claim 15, wherein the integer format is a format used to store weights of the first neuron layer of the MLM.

### Claim 20 (depends on 15)

The system of claim 15, wherein to obtain the first inference output of the MLM, the processing device is to:
identify a third range of values associated with the first intermediate data;
identify a fourth range of values associated with an integer number format of the first intermediate data;
obtain a second rescaled input data by rescaling the first intermediate data based on a mapping of the third range of values to the fourth range of values;
process the second rescaled input data using the second neuron layer of the MLM to obtain a second intermediate data; and
obtain, using the second intermediate data, the first inference output of the MLM.
