Skip to main content
QUICK REVIEW

[Paper Review] Advancing Model Pruning via Bi-level Optimization

Yihua Zhang, Yuguang Yao|arXiv (Cornell University)|Oct 8, 2022
Advanced Neural Network ApplicationsComputer Science18 citations
TL;DR

This paper proposes BiP, a bi-level optimization (BLO)-based model pruning method that formulates pruning as a technically grounded BLO problem, enabling efficient training dynamics akin to first-order optimization. BiP achieves winning tickets with accuracy matching or exceeding iterative magnitude pruning (IMP) while being 2–7× faster, outperforming one-shot methods in both accuracy and sparsity scalability across 5 models and 4 datasets.

ABSTRACT

The deployment constraints in practical applications necessitate the pruning of large-scale deep learning models, i.e., promoting their weight sparsity. As illustrated by the Lottery Ticket Hypothesis (LTH), pruning also has the potential of improving their generalization ability. At the core of LTH, iterative magnitude pruning (IMP) is the predominant pruning method to successfully find 'winning tickets'. Yet, the computation cost of IMP grows prohibitively as the targeted pruning ratio increases. To reduce the computation overhead, various efficient 'one-shot' pruning methods have been developed, but these schemes are usually unable to find winning tickets as good as IMP. This raises the question of how to close the gap between pruning accuracy and pruning efficiency? To tackle it, we pursue the algorithmic advancement of model pruning. Specifically, we formulate the pruning problem from a fresh and novel viewpoint, bi-level optimization (BLO). We show that the BLO interpretation provides a technically-grounded optimization base for an efficient implementation of the pruning-retraining learning paradigm used in IMP. We also show that the proposed bi-level optimization-oriented pruning method (termed BiP) is a special class of BLO problems with a bi-linear problem structure. By leveraging such bi-linearity, we theoretically show that BiP can be solved as easily as first-order optimization, thus inheriting the computation efficiency. Through extensive experiments on both structured and unstructured pruning with 5 model architectures and 4 data sets, we demonstrate that BiP can find better winning tickets than IMP in most cases, and is computationally as efficient as the one-shot pruning schemes, demonstrating 2-7 times speedup over IMP for the same level of model accuracy and sparsity.

Motivation & Objective

  • To close the performance-efficiency gap between iterative magnitude pruning (IMP) and one-shot pruning methods in deep learning model compression.
  • To provide a theoretically grounded optimization framework for the pruning-retraining paradigm used in IMP.
  • To develop a pruning method that achieves high sparsity and accuracy comparable to IMP but with significantly reduced computational cost.
  • To demonstrate that bi-level optimization can be efficiently solved via first-order methods by exploiting bi-linearity in the pruning problem.
  • To empirically validate BiP's superiority in finding sparse winning tickets across diverse architectures and datasets.

Proposed method

  • Formulate model pruning as a bi-level optimization (BLO) problem, where the upper level optimizes the pruning mask and the lower level fine-tunes the pruned model.
  • Leverage the bi-linear structure of the BLO problem to enable efficient first-order optimization, avoiding the computational burden of standard BLO solvers.
  • Use a single-step stochastic gradient descent (SGD) for the lower-level retraining, balancing convergence speed and computational cost.
  • Implement a training batch scheme that uses different or reversed batches for upper and lower levels to improve generalization and convergence.
  • Apply a differentiable masking mechanism to allow end-to-end optimization of the pruning mask and model weights.
  • Use a warm-up phase and adaptive learning rate scheduling to stabilize training during early iterations.

Experimental results

Research questions

  • RQ1Can bi-level optimization provide a theoretically sound and computationally efficient alternative to iterative magnitude pruning (IMP) for finding winning tickets?
  • RQ2How does the bi-linear structure of the pruning problem enable first-order optimization, and what are the computational advantages?
  • RQ3Can BiP achieve higher accuracy than one-shot pruning methods at high sparsity levels, particularly beyond low-ratio regimes?
  • RQ4How does the choice of training batch strategy (same, random, or reversed) affect convergence and final model performance?
  • RQ5Does BiP consistently find winning tickets—sparse subnetworks matching or exceeding the accuracy of the original dense model—across diverse architectures and datasets?

Key findings

  • BiP achieves test accuracy matching or exceeding that of iterative magnitude pruning (IMP) across all evaluated settings, including high sparsity levels up to 97.75%.
  • For 74% sparsity on CIFAR-10 with ResNet-18, BiP achieves 89.4% accuracy, matching IMP and outperforming the dense model (88.7%).
  • BiP reduces training time by up to 7× compared to IMP while maintaining or improving accuracy, demonstrating significant computational efficiency.
  • On Tiny-ImageNet and ImageNet, BiP finds the sparsest winning tickets: 36% sparsity on Tiny-ImageNet and 83% on ImageNet, outperforming IMP and one-shot baselines.
  • Using one SGD step per BLO iteration with longer training epochs yields better overall efficiency than multi-step SGD, despite slower early convergence.
  • The use of diverse or reversed training batches for upper and lower levels improves convergence and final accuracy, outperforming the same-batch scheme.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.