# US 2024/0005135 A1 · Accelerating neural networks with low precision-based multiplication and exploiting sparsity in higher order bits

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

- Number: US 2024/0005135 A1
- Document ID: US20240005135A1
- Status: Published application
- Kind: A1
- Application number: 18/135,958
- Filed: 2023-04-18
- Published: 2024-01-04
- Earliest claimed: 2020-05-05
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Avishaii Abuhatzera; Om Ji Omer; Ritwika Chowdhury; Lance Hacking
- Web page: https://patentgrep.com/patent/US20240005135A1

## CPC

- G06N 3/063: using electronic means
- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- 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/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06F 2207/3808: concerning the type of numbers or the way they are handled
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An apparatus to facilitate accelerating neural networks with low precision-based multiplication and exploiting sparsity in higher order bits is disclosed. The apparatus includes a processor comprising a re-encoder to re-encode a first input number of signed input numbers represented in a first precision format as part of a machine learning model, the first input number re-encoded into two signed input numbers of a second precision format, wherein the first precision format is a higher precision format than the second precision format. The processor further includes a multiply-add circuit to perform operations in the first precision format using the two signed input numbers of the second precision format; and a sparsity hardware circuit to reduce computing on zero values at the multiply-add circuit, wherein the processor to execute the machine learning model using the re-encoder, the multiply-add circuit, and the sparsity hardware circuit.

## Claims

### Claim at position 1

1-23. (canceled)

### Claim 24

An apparatus for deep learning, comprising:
a mixed precision unit configured to:
decompose an element in an input feature map of a deep learning operation into two input elements, the element in the input feature map having a first precision, the two input elements having a second precision that is lower than the first precision, and
decompose a weight of the deep learning operation into two weight elements, the weight associated with the element in the input feature map, the weight having the first precision, the two weight elements having the second precision;
a multiply-accumulation unit configured to perform a computation using the two input elements and the two weight elements; and
a sparsity unit configured to skip one or more computations of one or more zero-valued elements in the input feature map by the multiply-accumulation unit.

### Claim 25 (depends on 24)

The apparatus of claim 24, further comprising:
a compression unit configured to compress a plurality of elements in the input feature map, the plurality of elements comprising the element.

### Claim 26 (depends on 25)

The apparatus of claim 25, wherein the compression unit configured to compress a plurality of weights of the deep learning operation, the plurality of weights comprising the weight.

### Claim 27 (depends on 24)

The apparatus of claim 24, wherein multiply-accumulation unit is further configured to:
generate an output activation of the deep learning operation from the computation.

### Claim 28 (depends on 27)

The apparatus of claim 27, wherein the mixed precision unit is further configured to:
decompose the output activation into two output elements having the second precision.

### Claim 29 (depends on 27)

The apparatus of claim 27, further comprising:
a compression unit configured to compress a plurality of output activations of the deep learning operation, the plurality of output operations comprising the output activation.

### Claim 30 (depends on 24)

The apparatus of claim 24, further comprising:
an additional unit configured to compute the element in the input feature map based on an activation function.

### Claim 31

A method for deep learning, comprising:
decomposing an element in an input feature map of a deep learning operation into two input elements, the element in the input feature map having a first precision, the two input elements having a second precision that is lower than the first precision, the input feature map further comprising one or more zero-valued elements; and
decomposing a weight of the deep learning operation into two weight elements, the weight associated with the element in the input feature map, the weight having the first precision, the two weight elements having the second precision;
performing a computation using the two input elements and the two weight elements; and
skipping one or more computations of the one or more zero-valued elements.

### Claim 32 (depends on 31)

The method of claim 31, further comprising:
compressing the input feature map; and
storing a compressed version of the input feature map in a memory.

### Claim 33 (depends on 31)

The method of claim 31, further comprising:
compressing a plurality of weights of the deep learning operation, the plurality of weights comprising the weight.

### Claim 34 (depends on 31)

The method of claim 31, further comprising:
generating an output activation of the deep learning operation from the computation.

### Claim 35 (depends on 34)

The method of claim 34, further comprising:
decomposing the output activation into two output elements having the second precision.

### Claim 36 (depends on 34)

The method of claim 34, further comprising:
compressing a plurality of output activations of the deep learning operation, the plurality of output operations comprising the output activation.

### Claim 37 (depends on 31)

The method of claim 31, further comprising:
computing the element in the input feature map based on an activation function.

### Claim 38

One or more non-transitory computer-readable media storing instructions executable to perform operations, the operations comprising:
decomposing an element in an input feature map of a deep learning operation into two input elements, the element in the input feature map having a first precision, the two input elements having a second precision that is lower than the first precision, the input feature map further comprising one or more zero-valued elements; and
decomposing a weight of the deep learning operation into two weight elements, the weight associated with the element in the input feature map, the weight having the first precision, the two weight elements having the second precision;
performing a computation using the two input elements and the two weight elements; and
skipping one or more computations of the one or more zero-valued elements.

### Claim 39 (depends on 38)

The one or more non-transitory computer-readable media of claim 38, wherein the operations further comprise:
compressing the input feature map; and
storing a compressed version of the input feature map in a memory.

### Claim 40 (depends on 38)

The one or more non-transitory computer-readable media of claim 38, wherein the operations further comprise:
compressing a plurality of weights of the deep learning operation, the plurality of weights comprising the weight.

### Claim 41 (depends on 38)

The one or more non-transitory computer-readable media of claim 38, wherein the operations further comprise, further comprising:
generating an output activation of the deep learning operation from the computation.

### Claim 42 (depends on 41)

The one or more non-transitory computer-readable media of claim 41, wherein the operations further comprise, further comprising:
decomposing the output activation into two output elements having the second precision.

### Claim 43 (depends on 38)

The one or more non-transitory computer-readable media of claim 38, wherein the operations further comprise:
computing the element in the input feature map based on an activation function.
