NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

RL-Pruner: Structured Pruning Using Reinforcement Learning for CNN Compression and Acceleration

Boyao Wang, Volodymyr V. KindratenkoarXiv 2024 · DOI

Introduction

Convolutional Neural Networks (CNNs) have become the standard for computer vision tasks but are often significantly over-parameterized. This redundancy hinders deployment on resource-constrained edge devices with limited memory and power. Structured pruning—the removal of entire filters or channels—offers a path toward efficient execution on standard hardware. However, determining the optimal sparsity ratio for each layer remains a manual and suboptimal process. RL-Pruner addresses this by automating the search for sparsity distributions using reinforcement learning (RL).

Methodology

RL-Pruner employs a three-stage automated pipeline to optimize the pruning process, treating the sparsity distribution as a learnable policy.

The three-stage RL-Pruner pipeline: (1) Initialization of prune distribution, (2) Generation of new distributions and model pruning, and (3) Evaluation of the compressed model to update the policy.
  1. Dependency Graph Construction: To handle complex architectures like ResNet (skip connections) or GoogLeNet (concatenations), RL-Pruner automatically maps layer dependencies. This ensures that removing a filter in one layer correctly triggers corresponding input removals in connected layers, maintaining model functionality.
  2. RL-based Sparsity Distribution: The core of the framework uses Monte Carlo sampling and Q-learning. The RL agent observes the model architecture (state), proposes a sparsity distribution across layers (action), and receives a reward based on a balance of test accuracy, FLOPs, and parameter count.
  3. Filter Selection and Fine-tuning: Once the sparsity per layer is determined, the "Taylor criterion" (weight-gradient product) identifies the least important filters for removal. Finally, Knowledge Distillation (KD) is used, with the original model as a teacher, to help the pruned student model recover accuracy.

Experimental Results

The framework was evaluated on CIFAR-10 and CIFAR-100 across diverse architectures, including VGG-19, ResNet-56, DenseNet-121, GoogLeNet, and MobileNetV3-Large.

Key results include:

  • VGG-19: Achieved 60% channel sparsity with less than a 1% accuracy drop on CIFAR-100.
  • GoogLeNet & MobileNetV3: Both reached 40% sparsity with less than 1% accuracy loss.
  • Comparative Performance: RL-Pruner consistently outperformed state-of-the-art methods like DepGraph and GReg, particularly at high sparsity levels (e.g., 75%).

Analysis and Insights

A critical observation in this work is the dynamic sensitivity of layers. A layer's importance is not fixed; as other parts of the network are pruned, the relative sensitivity of remaining layers shifts. This makes static pruning heuristics less effective than an adaptive RL agent.

Test error increase across different layers when pruning based on different baseline models (dense vs. sparse). The shifting peaks illustrate that layer sensitivity changes as the model becomes sparser.

Furthermore, the authors found that pruned models fine-tuned with KD often perform better than the same architecture trained from scratch. This suggests that the pruning process helps the model discover more efficient internal representations that are difficult to reach via standard training.

Conclusion and Limitations

RL-Pruner demonstrates that reinforcement learning can effectively automate the complex task of layer-wise sparsity allocation, making pruning architecture-agnostic. While highly effective, the iterative RL search process introduces computational overhead, often taking several hours. Additionally, extremely compact models like ResNet-56 offer less flexibility, leading to sharper performance drops at very high sparsity. Future work will explore extending this RL logic to unstructured pruning and quantization.

Summary updated

BibTeX
@misc{wang2024rl,
  author = {Boyao Wang and Volodymyr V. Kindratenko},
  title = {{RL-Pruner: Structured Pruning Using Reinforcement Learning for CNN Compression and Acceleration}},
  year = {2024},
  eprint = {2411.06463},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.06463},
}
Figure