Neural Network Panning: Screening the Optimal Sparse Network Before Training

Xiatao Kang, Ping Li, Jiayi Yao, Chengxi Li · DOI

Abstract

Pruning neural networks before training not only compresses models but also accelerates the training phase, offering significant practical value. Current research has evolved from single-shot pruning to iterative methods using various weight-scoring metrics. This paper posits that network pruning is an "expressive force transfer" process, where remaining weights inherit the functional roles of removed ones. We propose Neural Network Panning, a pre-training pruning scheme that utilizes multi-index iterative steps guided by a reinforcement learning agent (RLPanning) to automate optimal expressive force scheduling. Experimental results demonstrate that Panning outperforms existing state-of-the-art pre-training pruning methods across various benchmarks.

Introduction: The Challenge of Pre-Training Pruning

Deep learning models are notoriously over-parameterized, leading to excessive memory and computational demands. While pruning—the removal of redundant weights—mitigates these costs, traditional methods often require training the full model first. Pruning at initialization is highly desirable for efficiency but remains challenging. Existing "single-shot" metrics, such as SNIP (sensitivity to loss) or GraSP (gradient flow), frequently fail at high compression ratios, often leading to layer disconnection or "layer collapse."

The Neural Network Panning Framework

We introduce Neural Network Panning, an iterative approach that treats weight selection as a refinement process. Unlike static methods, Panning acknowledges that a weight's importance is dynamic and dependent on the presence of its neighbors.

Multi-Metric Fusion and Iterative Pruning

Panning avoids reliance on a single criterion by fusing three distinct metrics: SNIP (loss sensitivity), GraSP (gradient flow), and SynFlow (inter-layer balance). By removing weights gradually, the "expressive force" of the network is allowed to redistribute among the remaining parameters, preserving the model's functional integrity even at extreme sparsity.

RLPanning: Automated Scheduling via Reinforcement Learning

To eliminate manual hyperparameter tuning, we developed RLPanning. This approach employs a TD3 (Twin Delayed Deep Deterministic Policy Gradient) agent to manage the pruning environment. The agent observes the network's state—including current loss and sparsity—and dynamically adjusts the weights of the fused metrics at each iteration.

The RLPanning framework: A TD3 agent interacts with an iterative pruning environment to optimize weight selection.

Key Insights: Expressive Force Transfer

A core insight of this work is that weight importance is not static. As the compression ratio increases, the "expressive force" (represented by metric scores) of the remaining weights shifts significantly. A weight that appears marginal at 50% sparsity may become a critical bottleneck at 99% sparsity. This dynamic is captured through iterative screening, preventing the premature removal of weights that become essential later in the process.

Comparison of metric scores during iterative pruning, illustrating how weight importance (expressive force) shifts as sparsity increases.

Experimental Results

The RLPanning method was evaluated on standard benchmarks including MNIST, CIFAR-10/100, and TinyImageNet using architectures like LeNet5, VGG19, and ResNet18.

  • Superior Accuracy at Extreme Sparsity: On VGG19 with CIFAR-10 at 98% sparsity, RLPanning achieved 92.12% accuracy, surpassing standard SNIP (91.16%).
  • Robustness Against Layer Collapse: While methods like SNIP often fail at 99% sparsity due to layer disconnection, Panning maintains high performance by balancing inter-layer connectivity.
  • Generalization: An RL agent trained on a small LeNet5 model successfully generalized to prune a ResNet18 model on TinyImageNet, suggesting it learned universal structural principles of neural networks.

Conclusion and Future Work

Neural Network Panning provides a robust framework for identifying optimal sparse subnetworks before training begins. By modeling pruning as a dynamic transfer of expressive force and leveraging reinforcement learning for automation, we achieve state-of-the-art results at extreme compression levels. Future work will extend this framework to structured sparsity and explore higher-order Taylor approximations for even more precise weight scheduling.

Summary updated

BibTeX
@misc{kang2022neural,
  author = {Xiatao Kang and Ping Li and Jiayi Yao and Chengxi Li},
  title = {{Neural Network Panning: Screening the Optimal Sparse Network Before Training}},
  year = {2022},
  eprint = {2209.13378},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.13378},
}
Figure