[Paper Review] Automated Model Compression by Jointly Applied Pruning and Quantization
This paper proposes AJPQ, an automated model compression framework that jointly optimizes pruning and quantization as a unified mixed-precision quantization problem, using hierarchical reinforcement learning to simultaneously determine layer sparsity and channel-specific bitwidths. By treating pruning as 0-bit quantization, AJPQ achieves superior compression efficiency and performance—reducing model size by over 5× and FLOPs by 2× with minimal accuracy loss—outperforming sequential approaches like AMC+HAQ.
In the traditional deep compression framework, iteratively performing network pruning and quantization can reduce the model size and computation cost to meet the deployment requirements. However, such a step-wise application of pruning and quantization may lead to suboptimal solutions and unnecessary time consumption. In this paper, we tackle this issue by integrating network pruning and quantization as a unified joint compression problem and then use AutoML to automatically solve it. We find the pruning process can be regarded as the channel-wise quantization with 0 bit. Thus, the separate two-step pruning and quantization can be simplified as the one-step quantization with mixed precision. This unification not only simplifies the compression pipeline but also avoids the compression divergence. To implement this idea, we propose the automated model compression by jointly applied pruning and quantization (AJPQ). AJPQ is designed with a hierarchical architecture: the layer controller controls the layer sparsity, and the channel controller decides the bit-width for each kernel. Following the same importance criterion, the layer controller and the channel controller collaboratively decide the compression strategy. With the help of reinforcement learning, our one-step compression is automatically achieved. Compared with the state-of-the-art automated compression methods, our method obtains a better accuracy while reducing the storage considerably. For fixed precision quantization, AJPQ can reduce more than five times model size and two times computation with a slight performance increase for Skynet in remote sensing object detection. When mixed-precision is allowed, AJPQ can reduce five times model size with only 1.06% top-5 accuracy decline for MobileNet in the classification task.
Motivation & Objective
- To address the suboptimal performance and high time cost of sequential pruning and quantization in deep neural network compression.
- To unify network pruning and quantization into a single joint optimization problem by reinterpreting pruning as 0-bit channel-wise quantization.
- To enable automated, globally optimal compression strategy search using hierarchical reinforcement learning with minimal human intervention.
- To improve compression efficiency and accuracy retention by co-optimizing layer sparsity and channel bitwidths in a single, unified pipeline.
Proposed method
- Reformulate pruning as channel-wise quantization with 0 bits, enabling joint optimization of sparsity and bitwidth as a single mixed-precision quantization problem.
- Design a hierarchical reinforcement learning architecture with a layer controller (for sparsity in continuous space) and a channel controller (for per-channel bitwidth selection).
- Use Deep Deterministic Policy Gradient (DDPG) to train the layer controller for optimal preserved ratio per layer.
- Apply the same importance criterion to both controllers to ensure consistent and collaborative compression decisions across layers and channels.
- Implement a reward function that penalizes plans violating size or FLOP constraints while rewarding performance preservation, enabling efficient exploration.
- Use a two-stage search: first, the layer controller determines which channels to keep; then, the channel controller assigns bitwidths to the remaining channels.
Experimental results
Research questions
- RQ1Can pruning and quantization be effectively unified into a single optimization problem to improve compression efficiency?
- RQ2Does joint optimization of sparsity and bitwidth selection yield better model compression with less performance degradation than sequential methods?
- RQ3Can hierarchical reinforcement learning effectively explore the large search space of mixed-precision configurations across layers and channels?
- RQ4How does the proposed reward function compare to existing ones in guiding efficient and accurate compression search?
- RQ5Does the proposed layer selection strategy (large layer first) outperform existing strategies (e.g., deep layer first) in compression effectiveness?
Key findings
- AJPQ reduces model size by more than 5× and FLOPs by 2× for Skynet in remote sensing object detection, with a 0.001% increase in top-5 accuracy.
- For MobileNet in image classification, AJPQ achieves a 5× model size reduction with only 1.06% top-5 accuracy decline under mixed-precision quantization.
- AJPQ achieves 0.744× FLOP reduction and 0.001% accuracy gain on Skynet, outperforming AMC+HAQ in both metrics.
- The hierarchical AJPQ framework reduces time consumption by nearly half compared to the sequential AMC+HAQ pipeline due to one-step compression.
- AJPQ’s 'large layer first' layer selection rule achieves 0.09 higher top-1 accuracy and 0.004 larger size reduction than HAQ’s 'deep layer first' rule.
- The proposed reward function effectively filters out infeasible compression plans and reduces exploration noise, leading to faster convergence and better performance than AMC and HAQ.
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.