# US 2021/0287095 A1 · Quantization and inferencing for low-bitwidth neural networks

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

- Number: US 2021/0287095 A1
- Document ID: US20210287095A1
- Status: Published application
- Kind: A1
- Application number: 16/816,117
- Filed: 2020-03-11
- Published: 2021-09-16
- Earliest claimed: 2020-03-11
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Jamie Menjay LIN; Edwin Chongwoo PARK; Nojun KWAK
- Web page: https://patentgrep.com/patent/US20210287095A1

## CPC

- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06F 7/523: Multiplying only
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/063: using electronic means
- G06N 3/09: Supervised learning
- G06N 5/046: Forward inferencing; Production systems
- G06N 20/10: using kernel methods, e.g. support vector machines [SVM]
- G06F 2207/4824: Neural networks
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/047: Probabilistic or stochastic networks
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method for operating a low-bitwidth neural network includes converting a first activation to a non-negative value (e.g., absolute value). The first activation has a signed value. The sign of the activation is used to select a weight value. A product of the non-negative activation and the selected weight value is computed to determine a next activation. The next activation is quantized and supplied to a subsequent layer of the low-bitwidth neural network.

## Claims

### Claim 1

A method for operating a low-bitwidth neural network, comprising:
converting a first activation to a non-negative value of the first activation, the first activation having a sign value;
selecting a weight value;
computing a product of the non-negative value of the first activation and the selected weight value to determine a next activation; and
quantizing the next activation, the next activation being supplied to a subsequent layer of the low-bitwidth neural network.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
extracting sign bits of the first activation, the sign bits corresponding to a sign of the first activation; and
wherein the weight value is selected based at least in part on the sign of the first activation.

### Claim 3 (depends on 1)

The method of claim 1, in which the first activation is a two bit value and the weight value is a one bit value.

### Claim 4 (depends on 1)

The method of claim 1, further comprising computing the product by a bitwise exclusive OR (XOR) function based on the non-negative value of the first activation and the selected weight value.

### Claim 5 (depends on 1)

The method of claim 1, further comprising training the weight value for positive or negative activations using a phase selective convolution technique.

### Claim 6 (depends on 1)

The method of claim 1, in which the next activation is represented as a non-negative value of the next activation, sign bits of the next activation being extracted and supplied to a next layer with the non-negative value of the next activation.

### Claim 7 (depends on 1)

The method of claim 1, in which the non-negative value of the first activation comprises an absolute value of the first activation.

### Claim 8

An apparatus for operating a low-bitwidth neural network, comprising:
a memory; and
at least one processor coupled to the memory, the at least one processor being configured:
to convert a first activation to a non-negative value of the first activation, the first activation having a sign value;
to select a weight value;
to compute a product of the non-negative value of the first activation and the selected weight value to determine a next activation; and
to quantize the next activation, the next activation being supplied to a subsequent layer of the low-bitwidth neural network.

### Claim 9 (depends on 8)

The apparatus of claim 8, in which the at least one processor is further configured:
to extract sign bits of the first activation, the sign bits corresponding to a sign of the first activation; and
to select the weight value based at least in part on the sign of the first activation.

### Claim 10 (depends on 8)

The apparatus of claim 8, in which the first activation is a two bit value and the weight value is a one bit value.

### Claim 11 (depends on 8)

The apparatus of claim 8, in which the at least one processor is further configured to compute the product by a bitwise exclusive OR (XOR) function based on the non-negative value of the first activation and the selected weight value.

### Claim 12 (depends on 8)

The apparatus of claim 8, in which the at least one processor is further configured to train the weight value for positive or negative activations using a phase selective convolution technique.

### Claim 13 (depends on 8)

The apparatus of claim 8, in which the at least one processor is further configured:
to represent the next activation as the non-negative value of the next activation; and
to extract sign bits of the next activation and to supply the extracted sign bits to a next layer with the non-negative value of the next activation.

### Claim 14 (depends on 8)

The apparatus of claim 8, in which the non-negative value of the first activation comprises an absolute value of the first activation.

### Claim 15

An apparatus for operating a low-bitwidth neural network, comprising:
means for converting a first activation to a non-negative value of the first activation, the first activation having a sign value;
means for selecting a weight value;
means for computing a product of the non-negative value of the first activation and the selected weight value to determine a next activation; and
means for quantizing the next activation, the next activation being supplied to a subsequent layer of the low-bitwidth neural network.

### Claim 16 (depends on 15)

The apparatus of claim 15, further comprising:
means for extracting sign bits of the first activation, the sign bits corresponding to a sign of the first activation; and
means for selecting the weight value based at least in part on the sign of the first activation.

### Claim 17 (depends on 15)

The apparatus of claim 15, in which the first activation is a two bit value and the weight value is a one bit value.

### Claim 18 (depends on 15)

The apparatus of claim 15, further comprising means for computing the product by a bitwise exclusive OR (XOR) function based on the non-negative value of the first activation and the selected weight value.

### Claim 19 (depends on 15)

The apparatus of claim 15, further comprising means for training the weight value for positive or negative activations using a phase selective convolution technique.

### Claim 20 (depends on 15)

The apparatus of claim 15, further comprising means for representing the next activation as the non-negative value of the next activation, and
means for extracting sign bits of the next activation and
means for supplying the extracted sign bits to a next layer with the non-negative value of the next activation.
