# US 2024/0005157 A1 · Methods and systems for unstructured pruning of a neural network

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

- Number: US 2024/0005157 A1
- Document ID: US20240005157A1
- Status: Published application
- Kind: A1
- Application number: 17/761,182
- Filed: 2021-09-15
- Published: 2024-01-04
- Earliest claimed: 2020-09-17
- Assignees: Lightmetrics Technologies PVT. LTD.
- Applicants: LightMetrics Technologies Pvt. Ltd.
- Inventors: Krishna A G; Mithun ULIYAR; Ravi SHENOY
- Web page: https://patentgrep.com/patent/US20240005157A1

## CPC

- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- 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
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Embodiments provide methods and systems for unstructured pruning of a neural network. Method performed by a neural network pruning system includes accessing a trained neural network to be pruned. The trained neural network includes one or more neural layers. The method includes computing values of layer parameters for a filter associated with a neural layer based, at least in part, on a pruning criteria. The method further includes computing a tag identifier associated with the filter of the trained neural network based, at least in part, on corresponding values of layer parameters of the filter. The method further includes storing the tag identifier and the values of the layer parameters for filter of the trained neural network in a database.

## Claims

### Claim 1

A computer-implemented method (700) for unstructured pruning of a neural network, the computer-implemented method (700) comprising:
accessing (702), by a processor (206), a trained neural network (112) to be pruned, the trained neural network (112) comprising one or more neural layers;
computing (704), by the processor (206), values of layer parameters of a filter associated with a neural layer of the one or more neural layers based, at least in part, on a pruning criteria;
characterized in that, the computer-implemented method (700) comprising:
determining, by the processor (206), an enumeration among a plurality of enumerations based, at least in part, on the values of the layer parameters of the filter, wherein the plurality of enumerations is defined based on a sparsity value of the filter;
computing (706), by the processor (206), a tag identifier (316) associated with the filter based, at least in part, on the enumeration, the tag identifier (316) having a single numerical value indicating spatial locations of non-zero layer parameters in the filter; and
storing (708), by the processor (206), the tag identifier (316) and the non-zero layer parameters for the filter of the trained neural network (112) in a database (204) for inference.

### Claim 2 (depends on 1)

The computer-implemented method (700) as claimed in claim 1, wherein the layer parameters are weights of the filter.

### Claim 3 (depends on 1)

The computer-implemented method (700) as claimed in claim 1, wherein the trained neural network (112) is a convolutional neural network, and wherein the filter is a convolutional filter.

### Claim 4 (depends on 1)

The computer-implemented method (700) as claimed in claim 1, wherein computing the tag identifier (316) associated with the filter comprises:
pruning, by the processor (206), the filter to obtain a sparse weight matrix comprising zero and non-zero elements based, at least in part, on the pruning criteria; and
determining, by the processor (206), the tag identifier (316) associated with the filter based on the sparse weight matrix, the tag identifier (316) indicating spatial locations of the non-zero elements of the sparse weight matrix.

### Claim 5 (depends on 4)

The computer-implemented method (700) as claimed in claim 4, wherein computing the values of the layer parameters for the filter comprises:
receiving, by the processor (206), the sparsity value for the filter, wherein the sparsity value indicates a number of zero values of the layer parameters in the filter; and
adapting, by the processor (206), one or more values of the layer parameters of the filter based, at least in part on, a corresponding sparsity value and the pruning criteria to generate the sparse weight matrix.

### Claim 6 (depends on 4)

The computer-implemented method (700) as claimed in claim 4, wherein computing the tag identifier (316) further comprises:
identifying, by the processor (206), a structure associated with the sparse weight matrix after pruning;
determining, by the processor (206), the enumeration, based at least in part, on the identified structure; and
assigning, by the processor (206), the tag identifier (316) for the filter, based at least in part, on the enumeration, wherein the tag identifier (316) is indicative of weight elements of the filter that are to be multiplied with an input data of the filter.

### Claim 7 (depends on 4)

The computer-implemented method (700) as claimed in claim 4, wherein computing the tag identifier (316) further comprises:
receiving, by the processor (206), an enumeration preference for the filter; and
determining, by the processor (206), a subset of enumerations among a plurality of enumerations based, at least in part, on the enumeration preference and the pruning criteria for the filter.

### Claim 8 (depends on 1)

The computer-implemented method (700) as claimed in claim 1, wherein computing values of the layer parameters for the filter further comprises using one or more filter decomposition techniques on the filter with higher order filter dimensions to prune the trained neural network (112).

### Claim 9 (depends on 1)

The computer-implemented method (700) as claimed in claim 1, further comprising:
generating, by the processor (206), a filter function for the filter associated with the neural layer of the trained neural network (112) to be used in an inference phase, wherein the filter function is based, at least in part, on the tag identifier (316), the values of the layer parameters of the filter and an input variable; and
storing, by the processor (206), the filter function for the filter in the database (204).

### Claim 10 (depends on 9)

The computer-implemented method (700) as claimed in claim 9, wherein the tag identifier (316), the values of the layer parameters and the filter function associated with the filter of the neural layer are used to perform the inference on an inference data.
