Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Pruning method and device for convolutional neural network, equipment and medium

A convolutional neural network and pruning technology, applied in the computer field, can solve problems such as model irregularity, poor generalization, and time-consuming, and achieve the effects of reducing intelligence costs, improving generalization, and reducing costs

Active Publication Date: 2021-06-22
HUAQIAO UNIVERSITY
View PDF7 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] (1) Most of the existing neural network pruning methods require manual experts to continuously adjust the parameters to achieve the best pruning effect, which is very time-consuming in terms of actual effect, and the effect achieved at the same time is prone to local optimum or suboptimal Condition
[0005] (2) Existing model pruning methods focus on weight pruning in the model, which requires specific hardware support and poor generalization
After repeating so many times, record the previous pruning method and the corresponding accuracy, so as to train reinforcement learning, and finally predict through reinforcement learning, which is actually a random strategy that obeys the normal distribution, which leads to reinforcement learning. Practical application is not enough
At the same time, the invention is a model pruning operation for weights rather than complete filters, which will inevitably lead to irregular models, poor generalization in actual use, and specific hardware support is required

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Pruning method and device for convolutional neural network, equipment and medium
  • Pruning method and device for convolutional neural network, equipment and medium
  • Pruning method and device for convolutional neural network, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] Such as figure 1 As shown, the present embodiment provides a pruning method of a convolutional neural network, comprising the following steps:

[0035] S1. Obtain a data set of images, and divide the data set into a training set and a verification set in proportion;

[0036] S2. After initializing the convolutional neural network model to be pruned, multiple rounds of pre-training are performed on the images in the training set, so as to obtain the weight sum of each network layer, and determine the sensitive layer of the network according to the weight sum;

[0037] S3. Carry out multiple rounds of automatic pruning operations through reinforcement learning, and obtain the model accuracy of each round of pruning operations through verification set verification, so as to obtain the model pruning strategy with the highest model accuracy; during the period, according to the deterministic strategy of reinforcement learning, Implementing different compression strategies fo...

Embodiment 2

[0072] Such as image 3 As shown, a pruning device of a convolutional neural network is provided in this embodiment, including:

[0073] The data module is used to obtain the data set of the image, and divide the data set into a training set and a verification set in proportion;

[0074] The pre-training module is used to initialize the convolutional neural network model to be pruned, and perform multiple rounds of pre-training on the images in the training set, so as to obtain the weight sum of each network layer, and determine the sensitive layer of the network according to the weight sum;

[0075] The pruning module is used to perform multiple rounds of automatic pruning operations through reinforcement learning, and obtain the model accuracy of each round of pruning operations through verification set verification, so as to obtain the model pruning strategy with the highest model accuracy; during the period, according to the reinforcement learning Deterministic strategy, ...

Embodiment 3

[0110] This embodiment provides an electronic device, such as Figure 4 As shown, it includes a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, any implementation manner in Embodiment 1 can be realized.

[0111] Since the electronic device introduced in this embodiment is the device used to implement the method in Embodiment 1 of this application, based on the method described in Embodiment 1 of this application, those skilled in the art can understand the electronic device of this embodiment. Specific implementation methods and various variations thereof, so how the electronic device implements the method in the embodiment of the present application will not be described in detail here. As long as a person skilled in the art implements the equipment used by the method in the embodiment of the present application, it all belongs to the protection scope of the present application. ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a convolutional neural network pruning method, apparatus and device, and a medium. The method comprises the steps of obtaining a data set of an image and dividing the data set into a training set and a verification set; after a to-be-pruned convolutional neural network model is initialized, multiple rounds of pre-training being carried out on images in the training set, and determining a sensitive layer of the network; multiple rounds of automatic pruning operation being carried out through reinforcement learning, the model accuracy of each round of pruning operation being obtained, and therefore obtaining the model pruning strategy with the highest model accuracy. According to a deterministic strategy of reinforcement learning, different compression strategies are carried out on a sensitive layer and a non-sensitive layer of a network, so that the number of filters of each network layer is pruned; and performing fine tuning operation to obtain a final convolutional neural network model. According to the method, reinforcement learning is involved from the beginning of model pruning, the pruning strategy of the model is optimized according to the environment, the pruning object is a complete filter, irregularity of the model cannot be caused, and generalization is greatly improved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a pruning method, device, equipment and medium of a convolutional neural network. Background technique [0002] In recent years, on the one hand, the research results of deeper neural networks are getting better and better. On the other hand, with the continuous development and innovation of unmanned driving and smart mobile devices and other related fields, it is suitable for computing power. The requirements for deep neural network models on weaker edge devices are also gradually increasing. Due to the characteristics of the deep neural network, when it is deployed on a mobile device, the amount of parameters and floating-point calculations it contains are extremely large. For example, when using a 107-layer deep YOLO v3 network to detect an image with a resolution of 416×416, it will generate 240MB of parameters and perform up to 65 billion multiplication and accumu...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06N3/08G06N3/04
CPCG06N3/082G06N3/045
Inventor 张维纬周密余浩然
Owner HUAQIAO UNIVERSITY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products