Skip to main content
QUICK REVIEW

[Paper Review] Fast as CHITA: Neural Network Pruning with Combinatorial Optimization

Riade Benbaki, Wenyu Chen|arXiv (Cornell University)|Feb 28, 2023
Advanced Neural Network ApplicationsComputer Science3 citations
TL;DR

CHITA is a novel, Hessian-free optimization framework for neural network pruning that formulates pruning as an ℓ₀-constrained sparse regression problem using a memory-efficient n×p data matrix instead of a dense p×p Hessian, enabling fast, low-memory pruning with state-of-the-art accuracy. It achieves up to 63% relative accuracy improvement at 2% sparsity and reduces runtime by up to 1000× compared to prior methods.

ABSTRACT

The sheer size of modern neural networks makes model serving a serious computational challenge. A popular class of compression techniques overcomes this challenge by pruning or sparsifying the weights of pretrained networks. While useful, these techniques often face serious tradeoffs between computational requirements and compression quality. In this work, we propose a novel optimization-based pruning framework that considers the combined effect of pruning (and updating) multiple weights subject to a sparsity constraint. Our approach, CHITA, extends the classical Optimal Brain Surgeon framework and results in significant improvements in speed, memory, and performance over existing optimization-based approaches for network pruning. CHITA's main workhorse performs combinatorial optimization updates on a memory-friendly representation of local quadratic approximation(s) of the loss function. On a standard benchmark of pretrained models and datasets, CHITA leads to significantly better sparsity-accuracy tradeoffs than competing methods. For example, for MLPNet with only 2% of the weights retained, our approach improves the accuracy by 63% relative to the state of the art. Furthermore, when used in conjunction with fine-tuning SGD steps, our method achieves significant accuracy gains over the state-of-the-art approaches.

Motivation & Objective

  • Address the high computational and memory costs of existing optimization-based pruning methods that rely on dense Hessian matrices.
  • Improve pruning accuracy by jointly optimizing the removal and updating of multiple weights, rather than pruning them individually.
  • Enable scalable pruning of large models (e.g., 4.2M parameters) in under a minute with under 20GB RAM, overcoming memory limitations of prior approaches.
  • Develop a multi-stage pruning strategy that iteratively updates the local quadratic loss approximation to enhance final model accuracy.
  • Integrate effectively into gradual pruning pipelines to outperform state-of-the-art unstructured pruning methods.

Proposed method

  • Reformulate network pruning as an ℓ₀-constrained sparse regression problem using a local quadratic approximation of the loss function.
  • Replace the computationally expensive p×p Hessian matrix with an n×p data matrix (n ≪ p), where n is the number of sub-samples used to approximate the Hessian, drastically reducing memory usage.
  • Develop a novel IHT-based algorithm with improved stepsize selection and active set strategies to accelerate convergence and enhance pruning performance.
  • Implement a multi-stage pruning framework that re-computes the local quadratic model after each pruning stage to maintain accuracy in high-sparsity regimes.
  • Use a Hessian-free approach that avoids explicit Hessian computation and storage by leveraging the structure of the quadratic approximation.
  • Integrate with fine-tuning SGD steps in gradual pruning to further boost accuracy.

Experimental results

Research questions

  • RQ1Can a combinatorial optimization-based pruning method achieve superior accuracy and speed by avoiding explicit Hessian matrix computation?
  • RQ2To what extent does the ℓ₀-constrained sparse regression reformulation with an n×p matrix reduce memory usage compared to p×p Hessian approximations?
  • RQ3How does the multi-stage pruning strategy, which re-optimizes the local loss approximation, improve final model accuracy compared to single-stage methods?
  • RQ4Can the proposed framework be efficiently integrated into existing gradual pruning pipelines to achieve state-of-the-art performance?
  • RQ5What is the trade-off between pruning speed, memory usage, and accuracy across different sparsity levels and model architectures?

Key findings

  • CHITA prunes a 4.2M-parameter network to 80% sparsity in under one minute using less than 20GB of RAM, outperforming CBS and WoodFisher, which run out of memory under similar conditions.
  • At 2% sparsity, CHITA improves accuracy by 63% relative to the state of the art, demonstrating a significant gain in the sparsity-accuracy trade-off.
  • In the 89% sparsity regime on MobileNetV1, CHITA achieves only a 6.00% accuracy drop compared to 11.29% for the previous SOTA, with 67.68% test accuracy.
  • On ResNet50 at 98% sparsity, CHITA achieves 69.80% accuracy, outperforming the second-best method (65.55%) by 4.25 percentage points.
  • When combined with gradual pruning and fine-tuning, CHITA achieves state-of-the-art accuracy across all evaluated sparsity levels on both MobileNetV1 and ResNet50.
  • The multi-stage CHITA variant achieves better accuracy than the single-stage version, confirming the benefit of iterative local model updates during pruning.

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.