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

Boyao Wang, Volodymyr Kindratenko
11/10/2024
cs.CVcs.AI

Official code: Beryex/RLPruner-CNN (29 stars, MIT, last commit 2025-06-08).

Abstract

Convolutional Neural Networks (CNNs) have demonstrated exceptional performance in recent years. Compressing these models not only reduces storage requirements, making deployment to edge devices feasible, but also accelerates inference, thereby reducing latency and computational costs. Structured pruning, which removes filters at the layer level, directly modifies the model architecture. This approach achieves a more compact architecture while maintaining target accuracy, ensuring that the compressed model retains good compatibility and hardware efficiency. Our method is based on a key observation: filters in different layers of a neural network have varying importance to the model's performance. When the number of filters to prune is fixed, the optimal pruning distribution across different layers is uneven to minimize performance loss. Layers that are more sensitive to pruning should account for a smaller proportion of the pruning distribution. To leverage this insight, we propose RL-Pruner, which uses reinforcement learning to learn the optimal pruning distribution. RL-Pruner can automatically extract dependencies between filters in the input model and perform pruning, without requiring model-specific pruning implementations. We conducted experiments on models such as GoogleNet, ResNet, and MobileNet, comparing our approach to other structured pruning methods to validate its effectiveness. Our code is available at https://github.com/Beryex/RLPruner-CNN.

View on arXivView PDF

Code Implementations(1)

MIT

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

293Shell, PythonJan 16, 20241 years agoMIT

Similar Papers

Cite this paper

@article{wang2024rlpruner,
  title  = {RL-Pruner: Structured Pruning Using Reinforcement Learning for CNN Compression and Acceleration},
  author = {Boyao Wang and Volodymyr Kindratenko},
  year   = {2024},
  eprint = {2411.06463},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.06463v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.06463.svg)](https://codeofpaper.com/paper/2411.06463)

Discussion