Abstract
Deep learning has become an increasingly popular and powerful methodology for modern pattern recognition systems. However, many deep neural networks have millions or billions of parameters, making them untenable for real-world applications due to constraints on memory size or latency requirements. As a result, efficient network compression techniques are often required for the widespread adoption of deep learning methods. We present DECORE, a reinforcement learning-based approach to automate the network compression process. DECORE assigns an agent to each channel in the network along with a light policy gradient method to learn which neurons or channels to be kept or removed. Each agent in the network has just one parameter (keep or drop) to learn, which leads to a much faster training process compared to existing approaches. DECORE provides state-of-the-art compression results on various network architectures and various datasets. For example, on the ResNet-110 architecture, it achieves a 64.8% compression and 61.8% FLOPs reduction as compared to the baseline model without any accuracy loss on the CIFAR-10 dataset. It can reduce the size of regular architectures like the VGG network by up to 99% with just a small accuracy drop of 2.28%. For a larger dataset like ImageNet with just 30 epochs of training, it can compress the ResNet-50 architecture by 44.7% and reduce FLOPs by 42.3%, with just a 0.69% drop on Top-5 accuracy of the uncompressed model. We also demonstrate that DECORE can be used to search for compressed network architectures based on various constraints, such as memory and FLOPs.
1. Introduction
Modern deep neural networks (DNNs) are notoriously over-parameterized, often containing millions or even billions of parameters. While this redundancy contributes to their high performance, it poses significant challenges for deployment on resource-constrained environments such as mobile devices, embedded systems, and edge hardware. Structured pruning—the process of removing entire channels or neurons—is a common solution, but determining which components are redundant is traditionally a labor-intensive process requiring expert intuition or computationally expensive automated searches.
DECORE (Deep Compression with Reinforcement Learning) addresses these challenges by introducing a highly efficient multi-agent reinforcement learning (RL) framework. By assigning a minimalist agent to every channel, DECORE automates the discovery of optimal sub-networks, achieving state-of-the-art compression with minimal computational overhead.
2. Methodology
The core innovation of DECORE is its decentralized approach to network pruning. Instead of a single complex controller managing the entire architecture, DECORE treats the neural network as an environment populated by multiple independent agents.
2.1 One Agent per Channel
Every channel in the network is assigned a dedicated agent. This fine-grained control allows the system to learn the specific importance of every individual feature map.
2.2 Minimalist Policy and Action
To avoid the high computational costs associated with traditional RL, each DECORE agent maintains only a single learnable parameter. This parameter represents the logit for the probability $p$ of keeping the channel. During the forward pass, a binary action $a_i \in \{0, 1\}$ is sampled from a Bernoulli distribution based on the sigmoid-transformed probability. If $a_i = 0$, the channel is dropped; if $a_i = 1$, it is retained.
2.3 Reward Mechanism and Optimization
The agents are trained using the REINFORCE algorithm, optimized via a dual reward system. Agents receive a positive reward for dropping channels (encouraging sparsity) but face a penalty if the model's prediction accuracy drops. Crucially, the policy parameters are updated independently of the network's weights, allowing for joint optimization that is significantly faster than iterative pruning-and-finetuning cycles.
3. Experimental Results
The researchers evaluated DECORE across a variety of architectures (VGG, ResNet, GoogLeNet, DenseNet) and datasets (CIFAR-10, ImageNet).
3.1 Performance on CIFAR-10
DECORE demonstrated exceptional efficiency on the CIFAR-10 benchmark. For the ResNet-110 architecture, it achieved a 64.8% reduction in parameters and a 61.8% reduction in FLOPs without any loss in Top-1 accuracy. In more aggressive scenarios, it reduced the size of VGG networks by up to 99% with only a marginal 2.28% drop in accuracy.
3.2 Scalability to ImageNet
On the large-scale ImageNet dataset, DECORE proved its efficiency by reaching state-of-the-art results in just 30 epochs of training. For ResNet-50, it achieved 44.7% parameter compression and 42.3% FLOPs reduction with only a 0.69% drop in Top-5 accuracy.
4. Key Insights
- Simplicity and Speed: By reducing the RL problem to a single parameter per agent, DECORE bypasses the "curse of dimensionality," making it orders of magnitude faster than previous RL-based methods like N2N or AMC.
- Learned Regularization: At lower compression rates, DECORE often improves model accuracy. The agents effectively act as a learned dropout mechanism, removing noisy or redundant features that might lead to overfitting.
- Constraint-Aware Search: The learned agent weights naturally rank channel importance. This allows users to satisfy specific hardware constraints (e.g., a 1MB memory limit) by simply selecting the top-$k$ channels based on their learned probabilities.
5. Conclusion
DECORE presents a robust and efficient framework for automated neural network compression. By leveraging a multi-agent RL approach with minimalist policies, it achieves significant reductions in model size and computational complexity across diverse architectures. Future work will explore applying DECORE to non-classification tasks like object detection and incorporating hardware-specific latency metrics directly into the reward function.
Summary updated