# US 2025/0378334 A1 · Sparsity control based on hardware for deep-neural networks

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

- Number: US 2025/0378334 A1
- Document ID: US20250378334A1
- Status: Published application
- Kind: A1
- Application number: 19/243,946
- Filed: 2025-06-20
- Published: 2025-12-11
- Earliest claimed: 2019-06-20
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Sofiane Yous; Hamza Yous
- Web page: https://patentgrep.com/patent/US20250378334A1

## CPC

- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06F 17/15: Correlation function computation {including computation of convolution operations (arithmetic circuits for sum of products per se, e.g. multiply-accumulators G06F7/5443; digital filters, e.g. FIR, IIR, adaptive filters 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 5/04: Inference or reasoning models
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems, methods, computer program products, and apparatuses to transform a weight space of an inference model to increase the compute efficiency of a target inference platform. A density of a weight space can be determined, and a transformation parameter derived based on the determined density. The weight space can be re-ordered based on the transformation parameter to balance the compute load between the processing elements (PEs) of the target platform, and as such, reduce the idle time and/or stalls of the PEs.

## Claims

### Claim at position 1

1-20. (canceled)

### Claim 21

One or more non-transitory computer-readable media storing instructions executable to perform operations, the operations comprising:
determining, based on the one or more features of a hardware device, a transformation parameter for a neural network model, the one or more features of the hardware device comprising a number of processing elements in the hardware device;
transforming a weight tensor of a first layer in the neural network model based on the transformation parameter, the transformed weight tensor of the first layer having same weights as the weight tensor of the first layer and having a different shape from the weight tensor of the first layer;
transforming a weight tensor of a second layer in the neural network model based on the transformation parameter, the second layer arranged after the first layer in the neural network model, the transformed weight tensor of the first layer having same weights as the weight tensor of the second layer and having a different shape from the weight tensor of the second layer; and
executing, by the hardware device, the first layer and second layer of the neural network model,
wherein a total number of processing elements used for executing the first layer or the second layer is reduced by transforming the weight tensor of the first layer and the weight tensor of the first layer.

### Claim 22 (depends on 21)

The one or more non-transitory computer-readable media of claim 21, wherein determining the transformation parameter comprises determining the transformation parameter further based on a density of non-zero weights in the weight tensor.

### Claim 23 (depends on 22)

The one or more non-transitory computer-readable media of claim 22, further comprising:
determining the density of non-zero weights in the weight tensor based on a sparsity map of the weight tensor.

### Claim 24 (depends on 21)

The one or more non-transitory computer-readable media of claim 21, wherein the transformed weight tensor of the first layer has fewer dimensions of the weight tensor of the first layer.

### Claim 25 (depends on 21)

The one or more non-transitory computer-readable media of claim 21, wherein the weight tensor of the first layer is a four-dimensional tensor, and the transformed weight tensor of the first layer is a two-dimensional tensor.

### Claim 26 (depends on 21)

The one or more non-transitory computer-readable media of claim 21, wherein transforming the weight tensor of the first layer comprises reordering weights in the weight tensor of the first layer over an output channel of the first layer.

### Claim 27 (depends on 21)

The one or more non-transitory computer-readable media of claim 21, wherein executing the first layer and second layer comprises performing a single convolution on an input tensor of the first layer by using the transformed weight tensor of the first layer and transformed weight tensor of the second layer.

### Claim 28

An apparatus, comprising:
a computer processor for executing computer program instructions; and
a non-transitory computer-readable memory storing computer program instructions executable by the computer processor to perform operations, the operations comprising:
determining, based on the one or more features of a hardware device, a transformation parameter for a neural network model, the one or more features of the hardware device comprising a number of processing elements in the hardware device,
transforming a weight tensor of a first layer in the neural network model based on the transformation parameter, the transformed weight tensor of the first layer having same weights as the weight tensor of the first layer and having a different shape from the weight tensor of the first layer,
transforming a weight tensor of a second layer in the neural network model based on the transformation parameter, the second layer arranged after the first layer in the neural network model, the transformed weight tensor of the first layer having same weights as the weight tensor of the second layer and having a different shape from the weight tensor of the second layer, and
executing, by the hardware device, the first layer and second layer of the neural network model,
wherein a total number of processing elements used for executing the first layer or the second layer is reduced by transforming the weight tensor of the first layer and the weight tensor of the first layer.

### Claim 29 (depends on 28)

The apparatus of claim 28, wherein determining the transformation parameter comprises determining the transformation parameter further based on a density of non-zero weights in the weight tensor.

### Claim 30 (depends on 29)

The apparatus of claim 29, wherein the operations further comprise:
determining the density of non-zero weights in the weight tensor based on a sparsity map of the weight tensor.

### Claim 31 (depends on 28)

The apparatus of claim 28, wherein the transformed weight tensor of the first layer has fewer dimensions of the weight tensor of the first layer.

### Claim 32 (depends on 28)

The apparatus of claim 28, wherein the weight tensor of the first layer is a four-dimensional tensor, and the transformed weight tensor of the first layer is a two-dimensional tensor.

### Claim 33 (depends on 28)

The apparatus of claim 28, wherein transforming the weight tensor of the first layer comprises reordering weights in the weight tensor of the first layer over an output channel of the first layer.

### Claim 34 (depends on 28)

The apparatus of claim 28, wherein executing the first layer and second layer comprises performing a single convolution on an input tensor of the first layer by using the transformed weight tensor of the first layer and transformed weight tensor of the second layer.

### Claim 35

A method, comprising:
determining, based on the one or more features of a hardware device, a transformation parameter for a neural network model, the one or more features of the hardware device comprising a number of processing elements in the hardware device;
transforming a weight tensor of a first layer in the neural network model based on the transformation parameter, the transformed weight tensor of the first layer having same weights as the weight tensor of the first layer and having a different shape from the weight tensor of the first layer;
transforming a weight tensor of a second layer in the neural network model based on the transformation parameter, the second layer arranged after the first layer in the neural network model, the transformed weight tensor of the first layer having same weights as the weight tensor of the second layer and having a different shape from the weight tensor of the second layer; and
executing, by the hardware device, the first layer and second layer of the neural network model,
wherein a total number of processing elements used for executing the first layer or the second layer is reduced by transforming the weight tensor of the first layer and the weight tensor of the first layer.

### Claim 36 (depends on 35)

The method of claim 35, wherein determining the transformation parameter comprises determining the transformation parameter further based on a density of non-zero weights in the weight tensor.

### Claim 37 (depends on 35)

The method of claim 35, wherein the transformed weight tensor of the first layer has fewer dimensions of the weight tensor of the first layer.

### Claim 38 (depends on 35)

The method of claim 35, wherein the weight tensor of the first layer is a four-dimensional tensor, and the transformed weight tensor of the first layer is a two-dimensional tensor.

### Claim 39 (depends on 35)

The method of claim 35, wherein transforming the weight tensor of the first layer comprises reordering weights in the weight tensor of the first layer over an output channel of the first layer.

### Claim 40 (depends on 35)

The method of claim 35, wherein executing the first layer and second layer comprises performing a single convolution on an input tensor of the first layer by using the transformed weight tensor of the first layer and transformed weight tensor of the second layer.
