# US 2019/0294929 A1 · Automatic Filter Pruning Technique For Convolutional Neural Networks

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

- Number: US 2019/0294929 A1
- Document ID: US20190294929A1
- Status: Published application
- Kind: A1
- Application number: 16/357,778
- Filed: 2019-03-19
- Published: 2019-09-26
- Earliest claimed: 2018-03-20
- Assignees: The Regents of the University of Michigan; DENSO International America, Inc.
- Applicants: The Regents of the University of Michigan; DENSO International America, Inc.
- Inventors: Heming YAO; Kayvan NAJARIAN; Jonathan GRYAK; Wei ZHANG
- Web page: https://patentgrep.com/patent/US20190294929A1

## CPC

- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06F 18/217: {Validation; Performance evaluation; Active pattern learning techniques}
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G06V 10/764: using classification, e.g. of video objects
- G06V 10/82: using neural networks
- G06V 20/597: {Recognising the driver's state or behaviour, e.g. attention or drowsiness}
- G06N 3/048: Activation functions
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

An automated pruning technique is proposed for reducing the size of a convolutional neural network. A large-sized network is trained and then connections between layers are explored to remove redundant parameters. Specifically, a scaling neural subnetwork is connected to the neural network and designed to infer importance of the filters in the neural network during training of the neural network. Output from the scaling neural subnetwork can then be used to remove filters from the neural network, thereby reducing the size of the convolutional neural network.

## Claims

### Claim 1

A computer-implemented method for pruning a convolutional neural network, the convolutional neural network includes a plurality of convolutional layers and each convolutional layer includes a plurality of neurons implemented in hardware, comprising:
for at least one convolutional layer in the convolutional neural network, connecting a scaling neural subnetwork to the at least one convolutional layer, where an input layer of the scaling neural subnetwork is configured to receive weights of the filters in the at least one convolutional layer and an output layer of the scaling neural network outputs a scale vector, where elements of the scale vector quantify importance of filters in the at least one convolutional layer;
training the convolutional neural network, including the scaling neural subnetworks connected thereto; and
for the at least one convolutional layer in the convolutional neural network, removing filters from the convolutional layer based on elements of a scale vector output by the respective scaling neural network, where filters are removed from the convolutional layer after training of the convolutional neural network.

### Claim 2 (depends on 1)

The method of claim 1 wherein the input layer of the scaling neural subnetwork evaluates size of the filters in the at least one convolutional layer by applying a norm.

### Claim 3 (depends on 2)

The method of claim 2 wherein the input layer of the scaling neural subnetwork evaluates similarity amongst filters in the at least one convolutional layer.

### Claim 4 (depends on 3)

The method of claim 3 wherein the input layer of the scaling neural subnetwork evaluates similarity amongst filters in the at least one convolutional layer by computing a cross-correlation between each pair of filters in the at least one convolutional layer.

### Claim 5 (depends on 4)

The method of claim 4 wherein an output layer of the scaling neural subnetwork is an activation function

### Claim 6 (depends on 1)

The method of claim 1 wherein connecting a scaling neural subnetwork to the at least one convolutional layer further comprises combining the scale vector from the scaling neural network with output from the respective convolutional layer.

### Claim 7 (depends on 1)

The method of claim 1 further comprises training the convolutional neural network using a backpropagation method.

### Claim 8 (depends on 1)

The method of claim 1 wherein removing filters from the at least one convolutional layer further includes comparing elements of the scale vector to a threshold and removing filters corresponding to the elements whose value is less than the threshold.

### Claim 9

A computer-implemented method for pruning a convolutional neural network, the convolutional neural network includes a plurality of convolutional layers and each convolutional layer includes a plurality of neurons implemented in hardware, comprising:
configuring a scaling neural subnetwork to extract descriptors from filters of a convolutional layer of the convolutional neural network and infer importance of the filters;
for at least one convolutional layer in the convolutional neural network, connecting the scaling neural subnetwork to the respective convolutional layer, where an input layer of the scaling neural subnetwork is configured to receive weights of the filters in the respective convolutional layer and an output layer of the scaling neural subnetwork outputs a scale vector, such that elements of the scale vector quantify importance of filters in the respective convolutional layer;
training the convolutional neural network, including the scaling neural subnetworks connected thereto; and
removing filters from the at least one convolutional layer based on elements of a scale vector output by the respective scaling neural subnetwork, where filters are removed from the at least one convolutional layer after training of the convolutional neural network.

### Claim 10 (depends on 9)

The method of claim 9 wherein the scaling neural subnetwork extracts descriptors from filters of a convolutional layer by applying a norm to weights of the filters.

### Claim 11 (depends on 9)

The method of claim 9 wherein the scaling neural subnetwork extracts descriptors from filters of a convolutional layer by determining similarity amongst filters in the respective convolutional layer.

### Claim 12 (depends on 11)

The method of claim 11 wherein the scaling neural subnetwork determines similarity amongst filters in the respective convolutional layer by computing a cross-correlation between each pair of filters in the respective convolutional layer.

### Claim 13 (depends on 9)

The method of claim 9 wherein an output layer of the scaling neural subnetwork is an activation function.

### Claim 14 (depends on 9)

The method of claim 9 wherein connecting a scaling neural subnetwork to the respective convolutional layer further comprises combining the scale vector from the scaling neural network with output from the respective convolutional layer.

### Claim 15 (depends on 9)

The method of claim 9 further comprises training the convolutional neural network using a backpropagation method.

### Claim 16 (depends on 9)

The method of claim 9 wherein removing filters from the convolutional layer further includes comparing elements of the scale vector to a threshold and removing filters corresponding to the elements whose value is less than the threshold.
