Advancing Model Pruning via Bi-level Optimization

Yihua Zhang, Yuguang Yao, Parikshit Ram, Pu Zhao, Tianlong Chen, Mingyi Hong, Yanzhi Wang, Sijia Liu

Abstract

Deep neural networks are notoriously over-parameterized, complicating deployment on resource-constrained hardware. While model pruning offers a solution, practitioners currently face a trade-off between the high accuracy of slow, iterative methods and the speed of less accurate "one-shot" techniques. This paper introduces Bi-level Pruning (BIP), a framework that leverages bi-level optimization to identify high-quality sparse subnetworks with the efficiency of a single training run, achieving up to a 7x speedup over traditional iterative methods.

Introduction

The research community has long sought the "winning ticket"—a sparse subnetwork that performs as well as its dense counterpart. The gold standard for finding these tickets is Iterative Magnitude Pruning (IMP). However, IMP is computationally prohibitive because it requires multiple rounds of pruning and retraining from scratch. Conversely, one-shot pruning methods are fast but often fail to match IMP's accuracy, particularly at high sparsity levels. BIP aims to bridge this gap by optimizing pruning accuracy and efficiency simultaneously.

Methodology: The Bi-level Framework

BIP rethinks pruning through the lens of Bi-level Optimization (BLO). In this framework, the pruning process is split into two nested tasks:

  • Upper Level (Pruning Task): Determines the optimal binary mask (identifying which weights to retain).
  • Lower Level (Retraining Task): Optimizes the values of the remaining non-zero weights.

Standard BLO is typically computationally expensive due to the need for second-order derivatives (Hessians) and matrix inversions. BIP bypasses these hurdles by exploiting two key properties: bi-linearity (the element-wise interaction between the mask and weights) and a Hessian-free assumption. By assuming the second-order derivatives of the loss are negligible—a common property in ReLU-based networks—the authors derived an "Implicit Gradient" formula requiring only first-order derivatives.

The BIP pipeline prunes directly to the target ratio in a single iterative process, alternating between upper-level mask updates and lower-level weight updates.

This allows BIP to update both the mask and the weights simultaneously in a single training pass, making the process as efficient as standard model training. Unlike IMP, BIP does not require "weight rewinding" to early training states; it finds high-quality subnetworks directly from a pre-trained model.

Experimental Results

The authors evaluated BIP across diverse benchmarks, including CIFAR-10, CIFAR-100, Tiny-ImageNet, and ImageNet, using architectures such as ResNet-18, ResNet-50, and VGG-16.

Efficiency and Accuracy

BIP consistently outperformed or matched state-of-the-art methods. Key findings include:

  • Speedup: BIP achieves a 2-7x speedup over IMP. For instance, on ResNet-18 (CIFAR-10), BIP identified a winning ticket in 86 minutes, whereas IMP required 620 minutes for a comparable result.
  • Sparsity Performance: BIP frequently identifies winning tickets at higher sparsity levels than IMP. In scenarios where IMP failed to match dense model accuracy (e.g., ResNet-20 on CIFAR-100), BIP succeeded.
  • Versatility: The framework supports both unstructured pruning and structured pruning (removing entire filters/channels), the latter of which is critical for hardware acceleration.
Performance snapshot showing BIP (red star) matching or exceeding the accuracy of IMP (orange triangle) while being significantly faster across different ResNet architectures.

Conclusion and Future Work

BIP provides a technically grounded optimization base for pruning that explicitly models the coupling between the mask and retrained weights. While highly effective, future research may explore the impact of the Hessian-free assumption on non-ReLU architectures and the potential for "curriculum learning" to further optimize the sequence of data fed to the bi-level tasks. Additionally, measuring actual latency gains on specialized hardware like FPGAs remains a vital next step for deployment.

Summary updated

BibTeX
@inproceedings{zhang2022advancing,
  author = {Yihua Zhang and Yuguang Yao and Parikshit Ram and Pu Zhao and Tianlong Chen and Mingyi Hong and Yanzhi Wang and Sijia Liu},
  title = {{Advancing Model Pruning via Bi-level Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=XuLnvmPbIiz},
}
Figure