# US 2020/0394520 A1 · Channel pruning of a convolutional network based on gradient descent optimization

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

- Number: US 2020/0394520 A1
- Document ID: US20200394520A1
- Status: Published application
- Kind: A1
- Application number: 16/957,057
- Filed: 2018-03-28
- Published: 2020-12-17
- Earliest claimed: 2018-03-28
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Alexey Kruglov
- Web page: https://patentgrep.com/patent/US20200394520A1

## CPC

- G06N 3/045: Combinations of networks
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/063: using electronic means
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G06N 3/0985: Hyperparameter optimisation; Meta-learning; Learning-to-learn
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Techniques and mechanisms for determining the pruning of one or more channels from a convolutional neural network (CNN) based on a gradient descent analysis of a performance loss. In an embodiment, a mask layer selectively masks one or more channels which communicate data between layers of the CNN. The CNN provides an output, and calculations are performed to determine a relationship between the masking and a loss of the CNN. The various masking of different channels is based on respective random variables and on probability values each corresponding to a different respective channel In another embodiment, the masking is further based on a continuous mask function which approximates a binary step function.

## Claims

### Claim at position 1

1-25. (canceled)

### Claim 26

A computer device for evaluating a convolutional neural network (CNN), the computer device comprising circuitry to:
receive, with a plurality of channels of a mask layer, input data from a first layer of the CNN, wherein a configuration of the mask layer is based on a plurality of values which each correspond to a different respective channel of the plurality of channels, wherein the plurality of values each indicate a respective probability that the corresponding channel is to be maintained;
communicate an at least partially masked version of the input data from the mask layer to a second layer of the CNN, wherein, for each of one or more channels of the plurality of channels, masking of a respective portion of the input data is based on the value corresponding to the channel;
perform a gradient descent evaluation based on each of a loss L of the CNN, and a fraction w of the plurality of channels, wherein the loss L and the fraction w each correspond to the mask configuration;
determine updated parameters of the CNN based on the gradient descent evaluation; and
based on the updated parameters, signal that a channel is to be pruned from the CNN.

### Claim 27 (depends on 26)

The computer device of claim 26, further comprising circuitry to perform multiple iterations with a plurality of mask layers each coupled between a respective two layers of the CNN, wherein the multiple iterations each comprise:
for each mask layer of a plurality of mask layers, the mask layer to:
receive, with a plurality of channels of the mask layer, respective input data from the CNN; and
based on a current mask configuration of the mask layer, communicate an at least partially masked version of the respective input data from the mask layer to the CNN, wherein the current mask configuration is based on a plurality of values which each indicate a respective probability that a corresponding channel of the mask layer is to be maintained; and
evaluation logic to perform a gradient descent evaluation based on each of a respective loss of the CNN and a respective amount of the processing resource, wherein the respective loss and the respective amount of the processing resource correspond to a combination of the respective current mask configurations of the plurality of mask layers.

### Claim 28 (depends on 26)

The computer device of claim 26, further comprising circuitry to determine a second fraction of a second plurality of channels of a second mask layer coupled between a respective two layers of the CNN, the second fraction corresponding to another mask configuration of the second mask layer, wherein circuitry to perform the gradient descent evaluation based on the fraction w includes circuitry to determine, based on the fraction w and the second fraction, an amount F of a processing resource of the CNN.

### Claim 29 (depends on 28)

The computer device of claim 28, further comprising circuitry to perform a comparison with the amount F and a reference amount of the processing resource, wherein the circuitry to signal that the channel is to be pruned is responsive to the comparison.

### Claim 30 (depends on 29)

The computer device of claim 29, further comprising circuitry to update the reference amount of the processing resource according to an exponential decay function.

### Claim 31 (depends on 29)

The computer device of claim 29, wherein circuitry to perform the gradient descent evaluation comprises circuitry to determine an adjusted loss value based on a product of the amount F and a Lagrange multiplier λF, the computer device further comprising circuitry to update the reference amount of the processing resource according to heuristic function based on the Lagrange multiplier λF.

### Claim 32 (depends on 29)

The computer device of claim 29, wherein circuitry to perform the gradient descent evaluation comprises circuitry to determine an adjusted loss value based on a product of the amount F and a Lagrange multiplier λF, the computer device further comprising circuitry to update the Lagrange multiplier λF based on the reference amount of the processing resource.

### Claim 33 (depends on 26)

The computer device of claim 26, wherein circuitry to perform the gradient descent evaluation comprises circuitry to determine an adjusted loss value based on a product of the amount F and a Lagrange multiplier λF, the computer device further comprising circuitry to update the Lagrange multiplier λF based on the updated parameters of the CNN.

### Claim 34 (depends on 26)

The computer device of claim 26, wherein the first layer and the second layer are each a respective one of a convolutional layer or a fully connected layer.

### Claim 35

At least one non-transitory computer-readable storage medium having stored thereon instructions which, when executed by one or more processing units, cause the one or more processing units to perform a method for evaluating a convolutional neural network (CNN), the method comprising:
receiving, with a plurality of channels of a mask layer, input data from a first layer of the CNN, wherein a configuration of the mask layer is based on a plurality of values which each correspond to a different respective channel of the plurality of channels, the plurality of values each indicating a respective probability that the corresponding channel is to be maintained;
communicating an at least partially masked version of the input data from the mask layer to a second layer of the CNN, wherein, for each of one or more channels of the plurality of channels, masking of a respective portion of the input data is based on the value corresponding to the channel;
performing a gradient descent evaluation based on each of a loss L of the CNN, and a fraction w of the plurality of channels, wherein the loss L and the fraction w each correspond to the mask configuration;
determining updated parameters of the CNN based on the gradient descent evaluation; and
based on the updated parameters, signaling that a channel is to be pruned from the CNN.

### Claim 36 (depends on 35)

The at least one computer-readable storage medium of claim 35, the method further comprising performing multiple iterations with a plurality of mask layers each coupled between a respective two layers of the CNN, the multiple iterations each comprising:
for each mask layer of a plurality of mask layers:
receiving, with a plurality of channels of the mask layer, respective input data from the CNN; and
based on a current mask configuration of the mask layer, communicating an at least partially masked version of the respective input data from the mask layer to the CNN, wherein the current mask configuration is based on a plurality of values each indicating a respective probability that a corresponding channel of the mask layer is to be maintained; and
performing a gradient descent evaluation based on each of a respective loss of the CNN and a respective amount of the processing resource, wherein the respective loss and the respective amount of the processing resource correspond to a combination of the respective current mask configurations of the plurality of mask layers.

### Claim 37 (depends on 35)

The at least one computer-readable storage medium of claim 35, the method further comprising:
determining a second fraction of a second plurality of channels of a second mask layer coupled between a respective two layers of the CNN, the second fraction corresponding to another mask configuration of the second mask layer;
wherein performing the gradient descent evaluation based on the fraction w includes determining, based on the fraction w and the second fraction, an amount F of a processing resource of the CNN.

### Claim 38 (depends on 37)

The at least one computer-readable storage medium of claim 37, the method further comprising:
performing a comparison with the amount F and a reference amount of the processing resource, wherein the signaling is further based on the comparison.

### Claim 39 (depends on 38)

The at least one computer-readable storage medium of claim 38, the method further comprising updating the reference amount of the processing resource according to an exponential decay function.

### Claim 40 (depends on 38)

The at least one computer-readable storage medium of claim 38, wherein performing the gradient descent evaluation comprises determining an adjusted loss value based on a product of the amount F and a Lagrange multiplier λF, the method further comprising:
updating the reference amount of the processing resource according to heuristic function based on the Lagrange multiplier λF.

### Claim 41 (depends on 38)

The at least one computer-readable storage medium of claim 38, wherein performing the gradient descent evaluation comprises determining an adjusted loss value based on a product of the amount F and a Lagrange multiplier λF, the method further comprising:
updating the Lagrange multiplier λF based on the reference amount of the processing resource.

### Claim 42 (depends on 35)

The at least one computer-readable storage medium of claim 35, wherein performing the gradient descent evaluation comprises determining an adjusted loss value based on a product of the amount F and a Lagrange multiplier λF, the method further comprising updating the Lagrange multiplier λF based on the updated parameters of the CNN.

### Claim 43 (depends on 35)

The at least one computer-readable storage medium of claim 35, wherein the first layer and the second layer are each a respective one of a convolutional layer or a fully connected layer.

### Claim 44

A method for evaluating a convolutional neural network (CNN), the method comprising:
receiving, with a plurality of channels of a mask layer, input data from a first layer of the CNN, wherein a configuration of the mask layer is based on a plurality of values which each correspond to a different respective channel of the plurality of channels, the plurality of values each indicating a respective probability that the corresponding channel is to be maintained;
communicating an at least partially masked version of the input data from the mask layer to a second layer of the CNN, wherein, for each of one or more channels of the plurality of channels, masking of a respective portion of the input data is based on the value corresponding to the channel;
performing a gradient descent evaluation based on each of a loss L of the CNN, and a fraction w of the plurality of channels, wherein the loss L and the fraction w each correspond to the mask configuration;
determining updated parameters of the CNN based on the gradient descent evaluation; and
based on the updated parameters, signaling that a channel is to be pruned from the CNN.

### Claim 45 (depends on 44)

The method of claim 44, further comprising performing multiple iterations with a plurality of mask layers each coupled between a respective two layers of the CNN, the multiple iterations each comprising:
for each mask layer of a plurality of mask layers:
receiving, with a plurality of channels of the mask layer, respective input data from the CNN; and
based on a current mask configuration of the mask layer, communicating an at least partially masked version of the respective input data from the mask layer to the CNN, wherein the current mask configuration is based on a plurality of values each indicating a respective probability that a corresponding channel of the mask layer is to be maintained; and
performing a gradient descent evaluation based on each of a respective loss of the CNN and a respective amount of the processing resource, wherein the respective loss and the respective amount of the processing resource correspond to a combination of the respective current mask configurations of the plurality of mask layers.
