[Paper Review] Deep Model Compression via Deep Reinforcement Learning.
This paper proposes a deep reinforcement learning (DRL)-based two-stage model compression framework for convolutional neural networks (CNNs), combining layer-wise channel pruning and kernel-wise variational pruning to reduce FLOPs and model size, followed by DRL-optimized quantization to minimize bit-width per layer. The method achieves 9x compression of VGGNet on CIFAR-10 with 0.2% accuracy gain and 33x compression of VGG-16 on ImageNet with no accuracy loss.
Besides accuracy, the storage of convolutional neural networks (CNN) models is another important factor considering limited hardware resources in practical applications. For example, autonomous driving requires the design of accurate yet fast CNN for low latency in object detection and classification. To fulfill the need, we aim at obtaining CNN models with both high testing accuracy and small size/storage to address resource constraints in many embedded systems. In particular, this paper focuses on proposing a generic reinforcement learning based model compression approach in a two-stage compression pipeline: pruning and quantization. The first stage of compression, i.e., pruning, is achieved via exploiting deep reinforcement learning (DRL) to co-learn the accuracy of CNN models updated after layer-wise channel pruning on a testing dataset and the FLOPs, number of floating point operations in each layer, updated after kernel-wise variational pruning using information dropout. Layer-wise channel pruning is to remove unimportant kernels from the input channel dimension while kernel-wise variational pruning is to remove unimportant kernels from the 2D-kernel dimensions, namely, height and width. The second stage, i.e., quantization, is achieved via a similar DRL approach but focuses on obtaining the optimal weight bits for individual layers. We further conduct experimental results on CIFAR-10 and ImageNet datasets. For the CIFAR-10 dataset, the proposed method can reduce the size of VGGNet by 9x from 20.04MB to 2.2MB with 0.2% accuracy increase. For the ImageNet dataset, the proposed method can reduce the size of VGG-16 by 33x from 138MB to 4.14MB with no accuracy loss.
Motivation & Objective
- Address the challenge of deploying accurate yet compact CNNs in resource-constrained embedded systems such as autonomous vehicles.
- Reduce model size and FLOPs without sacrificing testing accuracy to meet low-latency and storage requirements.
- Develop a generic, end-to-end compression pipeline using deep reinforcement learning for both pruning and quantization stages.
- Enable automatic, layer-specific optimization of pruning and bit-width selection through reinforcement learning.
- Achieve high compression ratios while preserving or slightly improving model accuracy on standard benchmarks.
Proposed method
- Employ deep reinforcement learning to co-learn model accuracy and FLOPs during layer-wise channel pruning, where unimportant kernels are removed along the input channel dimension.
- Apply kernel-wise variational pruning using information dropout to remove redundant filters across the 2D kernel dimensions (height and width).
- Use a separate DRL agent to determine the optimal number of bits per layer for quantization, minimizing bit-width while maintaining accuracy.
- Train the DRL agents on a validation set to balance accuracy retention and model compression across both pruning and quantization stages.
- Design a two-stage pipeline: first pruning via channel and kernel-wise removal, then quantization via bit-width optimization, both guided by DRL.
- Use a reward function that combines accuracy and FLOPs (or model size) to guide the DRL agents toward efficient, high-performance model compression.
Experimental results
Research questions
- RQ1Can deep reinforcement learning effectively co-optimize model accuracy and FLOPs during structured pruning of CNN layers?
- RQ2How well can DRL-based pruning preserve or improve accuracy while reducing model size and computational cost?
- RQ3Can DRL be used to automatically determine optimal bit-width per layer in quantization, balancing compression and accuracy?
- RQ4What compression ratios and accuracy trade-offs can be achieved on standard benchmarks like CIFAR-10 and ImageNet?
- RQ5Does the proposed two-stage DRL pipeline outperform conventional hand-crafted or heuristic compression methods in terms of model size and accuracy?
Key findings
- On the CIFAR-10 dataset, the proposed method reduced VGGNet size from 20.04MB to 2.2MB, achieving a 9x compression ratio with a 0.2% accuracy increase.
- On the ImageNet dataset, the method compressed VGG-16 from 138MB to 4.14MB, achieving a 33x compression ratio with no accuracy loss.
- The DRL-based pruning strategy effectively identified and removed unimportant filters across both channel and kernel dimensions, reducing FLOPs without degrading performance.
- The DRL-driven quantization process successfully determined optimal bit-width per layer, minimizing model size while maintaining high accuracy.
- The two-stage compression pipeline demonstrated strong generalization across different network architectures and datasets.
- The method achieved state-of-the-art compression efficiency, significantly outperforming conventional compression techniques in terms of size reduction and accuracy preservation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.