[Paper Review] Learning to Prune Deep Neural Networks via Reinforcement Learning
This paper proposes PuRL, a reinforcement learning-based method for pruning deep neural networks that uses dense rewards at each pruning step to accelerate training and improve sample efficiency. PuRL achieves 80.27% sparsity on ResNet-50 with 75.37% Top-1 accuracy on ImageNet, reducing RL training episodes from 400 (AMC) to just 55 while matching state-of-the-art performance.
This paper proposes PuRL - a deep reinforcement learning (RL) based algorithm for pruning neural networks. Unlike current RL based model compression approaches where feedback is given only at the end of each episode to the agent, PuRL provides rewards at every pruning step. This enables PuRL to achieve sparsity and accuracy comparable to current state-of-the-art methods, while having a much shorter training cycle. PuRL achieves more than 80% sparsity on the ResNet-50 model while retaining a Top-1 accuracy of 75.37% on the ImageNet dataset. Through our experiments we show that PuRL is also able to sparsify already efficient architectures like MobileNet-V2. In addition to performance characterisation experiments, we also provide a discussion and analysis of the various RL design choices that went into the tuning of the Markov Decision Process underlying PuRL. Lastly, we point out that PuRL is simple to use and can be easily adapted for various architectures.
Motivation & Objective
- To automate neural network pruning using reinforcement learning for improved efficiency and scalability.
- To address the slow convergence of existing RL-based pruning methods that rely on sparse rewards given only at episode end.
- To design a Markov Decision Process (MDP) with dense rewards and efficient action space for faster, more effective pruning policy learning.
- To evaluate PuRL across diverse architectures, including ResNet-50, MobileNet-V2, and EfficientNet-B2, demonstrating generalization and ease of adaptation.
- To provide ablation studies on MDP components (state, action, reward) to guide future RL-based pruning design.
Proposed method
- Formalizes network pruning as a Markov Decision Process (MDP) with state, action, reward, transition, and discount components.
- Uses a dense reward function that provides feedback after every pruning step, enabling faster policy learning compared to end-of-episode rewards.
- Employs a magnitude-based pruning criterion using a threshold derived from weight standard deviation: weights with |w| < ασ(w) are pruned.
- Introduces a discrete action space over α values (e.g., 0.0, 0.1, ..., 2.2) and experiments with increasing step size to 0.2 for reduced search complexity.
- Uses iterative pruning with gradual sparsity targets and fine-tuning to preserve accuracy during compression.
- Employs two state representations: a low-dimensional tuple (layer index, accuracy, pruned proportion) and a high-dimensional per-layer accuracy and sparsity vector.
Experimental results
Research questions
- RQ1Does providing dense rewards at each pruning step significantly improve learning efficiency and convergence speed compared to sparse rewards?
- RQ2How do different state representations affect the agent’s ability to learn an effective pruning policy?
- RQ3Can reducing the number of actions in the action space lead to better performance through improved exploration and policy learning?
- RQ4How well does the proposed method generalize across different neural network architectures, including efficient models like MobileNet-V2 and EfficientNet-B2?
- RQ5What are the relative impacts of reward shaping, action space design, and state representation on final sparsity and accuracy?
Key findings
- PuRL reduces the number of required RL episodes from 400 (AMC) to 55 on ResNet-50, achieving 85% fewer episodes while maintaining competitive accuracy.
- Dense rewards improve final accuracy by 24 percentage points and sparsity by 4 percentage points compared to sparse rewards, demonstrating superior learning efficiency.
- Using a larger action step size (0.2 instead of 0.1) results in a Pareto-dominant solution, improving both sparsity and accuracy over the baseline.
- PuRL achieves 80.27% sparsity on ResNet-50 with 75.37% Top-1 accuracy on ImageNet, matching state-of-the-art performance.
- The method generalizes well to efficient architectures: PuRL achieves over 1.5x higher sparsity than AMC on MobileNet-V2 and EfficientNet-B2 without hyperparameter tuning.
- The ablation study confirms that dense rewards and a reduced action space are critical for fast convergence and high performance, with minimal impact from state representation choice.
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.