# US 2022/0292360 A1 · Pruning neural networks

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

- Number: US 2022/0292360 A1
- Document ID: US20220292360A1
- Status: Published application
- Kind: A1
- Application number: 17/201,768
- Filed: 2021-03-15
- Published: 2022-09-15
- Earliest claimed: 2021-03-15
- Assignees: NVIDIA Corporation
- Applicants: NVIDIA Corporation
- Inventors: Maying Shen; Pavlo Molchanov; Hongxu Yin; Jose Manuel Alvarez Lopez
- Web page: https://patentgrep.com/patent/US20220292360A1

## CPC

- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06F 11/302: {where the computing system component is a software system}
- 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 3/084: Backpropagation, e.g. using gradient descent
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Apparatuses, systems, and techniques to remove one or more nodes of a neural network. In at least one embodiment, one or more nodes of a neural network are removed, based on, for example, whether the one or more nodes are likely to affect performance of the neural network.

## Claims

### Claim 1

A processor, comprising:
one or more circuits to remove one or more nodes of a neural network based, at least in part, on whether the one or more nodes are likely to affect performance of the neural network.

### Claim 2 (depends on 1)

The processor of claim 1, wherein the one or more circuits are to determine whether the one or more nodes are likely to affect the performance of the neural network by at least:
calculating a set of scores based at least in part on a set of nodes of the neural network;
determining one or more sub-networks of the neural network based on the set of nodes and the set of scores; and
calculating a set of metric values corresponding to the one or more sub-networks.

### Claim 3 (depends on 2)

The processor of claim 2, wherein the one or more circuits are to remove the one or more nodes of the neural network by at least:
selecting a sub-network of the one or more sub-networks based at least in part on the set of metric values; and
removing the one or more nodes from the neural network to result a different neural network corresponding to the sub-network.

### Claim 4 (depends on 2)

The processor of claim 2, wherein the set of scores are based on a magnitude-based criterion.

### Claim 5 (depends on 2)

The processor of claim 2, wherein the one or more sub-networks are determined based at least in part on maximum values of the set of scores.

### Claim 6 (depends on 3)

The processor of claim 3, wherein the set of metric values are determined based on normalized differences between sub-networks of the one or more sub-networks.

### Claim 7 (depends on 6)

The processor of claim 6, wherein the normalized differences are based on differences between numbers of nodes of layers of the sub-networks.

### Claim 8

A machine-readable medium having stored thereon a set of instructions, which if performed by one or more processors, cause the one or more processors to remove one or more nodes of a neural network based, at least in part, on whether the one or more nodes are likely to affect performance of the neural network.

### Claim 9 (depends on 8)

The machine-readable medium of claim 8, wherein the set of instructions to cause the one or more processors to remove the one or more nodes of the neural network based, at least in part, on whether the one or more nodes are likely to affect the performance of the neural network further include instructions, which if performed by the one or more processors, cause the one or more processors to:
determine a set of sub-networks of the neural network;
determine a set of values corresponding to the set of sub-networks; and
select a sub-network based at least in part on the set of values.

### Claim 10 (depends on 9)

The machine-readable medium of claim 9, wherein the set of sub-networks are determined based on gradient-based criterion.

### Claim 11 (depends on 9)

The machine-readable medium of claim 9, wherein the set of instructions further include instructions, which if performed by the one or more processors, cause the one or more processors to perform one or more pruning processes on the neural network to obtain a second neural network that matches the sub-network.

### Claim 12 (depends on 9)

The machine-readable medium of claim 9, a first value of the set of values is determined based at least in part on a difference between numbers of neurons of a layer of a first sub-network and a corresponding layer of a second sub-network.

### Claim 13 (depends on 9)

The machine-readable medium of claim 9, wherein the sub-network corresponds to a value of the set of values that is greater than at least one or more other values of the set of values.

### Claim 14 (depends on 9)

The machine-readable medium of claim 9, wherein the neural network is an image processing neural network part of one or more vehicle systems.

### Claim 15

A system, comprising:
one or more computers having one or more processors to train a neural network, at least in part, by removing one or more nodes of the neural network based, at least in part, on whether the one or more nodes are likely to affect performance of the neural network.

### Claim 16 (depends on 15)

The system of claim 15, wherein the one or more processors are further to:
determine a first set of scores for nodes of the neural network for a first training epoch;
determine a first sub-network of the neural network based on the first set of scores; and
calculate a first value for the first sub-network.

### Claim 17 (depends on 16)

The system of claim 16, wherein the one or more processors are further to:
determine a second set of scores for the nodes of the neural network for a second training epoch;
determine a second sub-network of the neural network based on the second set of scores; and
calculate a second value for the second sub-network.

### Claim 18 (depends on 17)

The system of claim 17, wherein the second value is calculated based on differences between the second sub-network and the first sub-network.

### Claim 19 (depends on 17)

The system of claim 17, wherein the one or more processors are further to compare the first value with the second value.

### Claim 20 (depends on 19)

The system of claim 19, wherein the one or more processors are to remove the one or more nodes of the neural network by at least, as a result of determining that the second value is greater than the first value and one or more values for one or more sub-networks, removing the one or more nodes from the neural network to result in a pruned neural network corresponding to the second sub-network.

### Claim 21 (depends on 20)

The system of claim 20, wherein the one or more processors are further to perform one or more training processes on the pruned neural network using one or more gradient descent algorithms.

### Claim 22

A machine-readable medium having stored thereon a set of instructions, which if performed by one or more processors, cause the one or more processors to at least:
cause one or more neural networks to be trained, at least in part, by removing one or more nodes of the one or more neural networks based, at least in part, on whether the one or more nodes are likely to affect performance of the one or more neural networks.

### Claim 23 (depends on 22)

The machine-readable medium of claim 22, wherein the set of instructions further include instructions, which if performed by the one or more processors, cause the one or more processors to:
determine a first network of the one or more neural networks for a first training iteration;
determine a second network of the one or more neural networks for a second training iteration;
calculate a first value corresponding to the first network; and
calculate a second value corresponding to the second network.

### Claim 24 (depends on 23)

The machine-readable medium of claim 23, wherein the set of instructions further include instructions, which if performed by the one or more processors, cause the one or more processors to compare the second value with the first value.

### Claim 25 (depends on 24)

The machine-readable medium of claim 24, wherein the set of instructions further include instructions, which if performed by the one or more processors, cause the one or more processors to, as a result of determining that the second value is not greater than the first value, determine a third network of the one or more neural networks for a third training iteration.

### Claim 26 (depends on 25)

The machine-readable medium of claim 25, wherein the set of instructions further include instructions, which if performed by the one or more processors, cause the one or more processors to:
compare a third value for the third network with at least the second value and the first value; and
as a result determining that the third value is greater than at least the second value and the first value, perform one or more pruning processes on the one or more neural networks to obtain the third network.

### Claim 27 (depends on 26)

The machine-readable medium of claim 26, wherein the set of instructions further include instructions, which if performed by the one or more processors, cause the one or more processors to perform one or more training processes on the third network.

### Claim 28 (depends on 22)

The machine-readable medium of claim 22, wherein the one or more neural networks comprise one or more convolutional neural networks part of one or more medical imaging systems.

### Claim 29

A processor comprising:
one or more circuits to use one or more neural networks to infer information from one or more inputs, wherein the one or more neural networks are trained, at least in part, by removing one or more nodes of the one or more neural networks based, at least in part, on whether the one or more nodes are likely to affect performance of the one or more neural networks.

### Claim 30 (depends on 29)

The processor of claim 29, wherein the one or more circuits are further to:
determine a first set of metric values for the one or more neural networks;
determine a second set of metric values for the one or more neural networks; and
compare the second set of metric values and the first set of metric values to determine a metric value of the second set of metric values.

### Claim 31 (depends on 30)

The processor of claim 30, wherein the metric value is greater than one or more metric values of the first set of metric values and the second set of metric values.

### Claim 32 (depends on 31)

The processor of claim 31, wherein the one or more circuits are further to remove the one or more nodes of the one or more neural networks based at least in part on the metric value to obtain a sub-network corresponding to the metric value.

### Claim 33 (depends on 29)

The processor of claim 29, wherein the one or more inputs comprise one or more images.

### Claim 34 (depends on 29)

The processor of claim 29, wherein the processor is part of one or more edge devices.
