# US 2022/0284298 A1 · Method and apparatus for 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/0284298 A1
- Document ID: US20220284298A1
- Status: Published application
- Kind: A1
- Application number: 17/769,707
- Filed: 2020-10-06
- Published: 2022-09-08
- Earliest claimed: 2019-10-15
- Assignees: Sisvel Technology S.R.L.; Institut Mines-Telecom
- Applicants: Sisvel Technology S.R.L.; Institut Mines TéLéCom
- Inventors: Enzo TARTAGLIONE; Marco GRANGETTO; Francesco ODIERNA; Andrea BRAGAGNOLO; Attilio FIANDROTTI
- Web page: https://patentgrep.com/patent/US20220284298A1

## 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/048: Activation functions
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

The present invention relates to a method for pruning a neural network comprising a plurality of neurons, said method comprising: an initialization phase, wherein input information is fetched comprising at least parameters ({wni,bni}) related to said neural network and a dataset (D) representative of a task that said neural network has to deal with, wherein said parameters ({wni,bni}) comprising a weights vector (wni) and/or a bias (bni) related to at least one neuron of said plurality of neurons; a regularization phase, wherein said neural network is trained according to a training algorithm by using said dataset (D); a thresholding phase, wherein an element (wnij) of said weights vector (wni) is put at zero when its absolute value is below a given threshold (T).

## Claims

### Claim 1

A method for pruning a neural network comprising a plurality of neurons, said method comprising:
an initialization phase, wherein input information is fetched by input means, said input information comprising at least parameters ({wni,bni}) related to said neural network and a dataset (D) representative of a task that said neural network has to deal with, wherein said parameters ({wni,bni}) comprising a weights vector (wni) and/or a bias (bni) related to at least one neuron of said plurality of neurons;
a regularization phase, wherein said neural network is trained by processing means according to a training algorithm by using said dataset (D);
a thresholding phase, wherein an element (wnij) of said weights vector (wni) is put at zero by said processing means when its absolute value is below a given threshold (T),
said method being characterized in that, during said regularization phase, said parameters ({wni,bni}) evolve according to a regularized update rule based on a neural sensitivity measure (S) to drive towards zero parameters related to at least one less sensitive neuron of said neural network, wherein said neural sensitivity measure (S) is based on a pre-activation signal of at least one neuron of said plurality of neurons.

### Claim 2 (depends on 1)

The method according to claim 1, wherein said pre-activation signal depends on an input values vector (Yn−1) and the parameters ({wni,bni}) of said at least one neuron.

### Claim 3 (depends on 1)

The method according to claim 1, wherein said regularized update rule drives toward zero the weights vector (wni) related to said at least one less sensitive neuron.

### Claim 4 (depends on 1)

The method according to claim 1, wherein said neural sensitivity measure (S) represents a measure of the global impact of a given neuron in an output layer of said neural network, wherein all the previous neurons are involved in the computation of said neural sensitivity measure (S).

### Claim 5 (depends on 1)

The method according to claim 1, wherein said neural sensitivity measure (S) is based only on said pre-activation signal and an output signal of each of said neurons individually.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the value of said threshold (T) is determined by increasing it from a minimum value (Tmin) until an optimal value (T*) is reached, wherein said minimum value (Tmin) is determined by taking the minimum of the entire set of said parameters ({wni,bni}).

### Claim 7 (depends on 1)

The method according to claim 1, wherein said bias (bni) related to at least one neuron is put at zero when its corresponding weights vector (wni) is put at zero.

### Claim 8 (depends on 1)

The method according to claim 1, wherein said training algorithm is the Gradient Descent algorithm or the Stochastic Gradient Descent algorithm.

### Claim 9 (depends on 1)

The method according to claim 1, comprising an output phase wherein processed data, such as pruned parameters {w*ni,b*ni} and/or pruned model (M*) of a resulting pruned neural network, are provided as output by said processing means.

### Claim 10 (depends on 9)

The method according to claim 9, wherein said processed data are transmitted to a device by communication means.

### Claim 11

An apparatus for pruning a neural network comprising a plurality of neurons, said apparatus comprising input means and processing means, said apparatus being adapted to perform:
an initialization phase, wherein input information is fetched by said input means and said input information comprising at least parameters ({wni,bni}) related to said neural network, a dataset (D) representative of a task that said neural network has to deal with, wherein said parameters ({wni,bni}) comprising a weights vector (wni) and/or a bias (bni) related to at least one neuron of said plurality of neurons;
a regularization phase, wherein said neural network is trained by said processing means according to a training algorithm by using said dataset (D);
a thresholding phase, wherein an element (wnij) of said weights vector (wni) is put at zero by said processing means when its absolute value is below a given threshold (T),
said apparatus being characterized in that, during said regularization phase, said parameters ({wni,bni}) evolve according to a regularized update rule based on a neural sensitivity measure (S) to drive towards zero parameters related to at least one less sensitive neuron of said neural network, wherein said neural sensitivity measure (S) is based on a pre-activation signal of at least one neuron of said plurality of neurons.

### Claim 12 (depends on 11)

The apparatus according to claim 11, wherein said pre-activation signal depends on an input values vector (Yn−1) and the parameters ({wni,bni}) of said at least one neuron.

### Claim 13 (depends on 11)

The apparatus according to claim 11, wherein said regularized update rule drives toward zero the weights vector (wni) related to said at least one less sensitive neuron.

### Claim 14 (depends on 11)

The apparatus according to claim 11, wherein said neural sensitivity measure (S) represents a measure of the global impact of a given neuron in an output layer of said neural network, wherein all the previous neurons are involved in the computation of said neural sensitivity measure (S).

### Claim 15 (depends on 11)

The apparatus according to claim 11, wherein said neural sensitivity measure (S) is based only on said pre-activation signal and an output signal of each of said neuron individually.

### Claim 16 (depends on 11)

The apparatus according to claim 11, wherein the value of said threshold (T) is determined by increasing it from a minimum value (Tmin) until an optimal value (T*) is reached, wherein said minimum value (Tmin) is determined by taking the minimum of the entire set of said parameters ({wni,bni}).

### Claim 17 (depends on 11)

The apparatus according to claim 11, wherein said bias (bni) related to at least one neuron is put at zero when its corresponding weights vector (wni) is put at zero.

### Claim 18 (depends on 11)

The apparatus according to claim 11, wherein said training algorithm is the Gradient Descent algorithm or the Stochastic Gradient Descent algorithm.

### Claim 19 (depends on 11)

The apparatus according to claim 11, comprising an output phase wherein processed data, such as pruned parameters {w*ni,b*ni} and/or pruned model (M*) of a resulting pruned neural network, are provided as output by said processing means.

### Claim 20 (depends on 19)

The apparatus according to claim 19, comprising communication means wherein, said processed data are transmitted to a device by said communication means.
