Skip to main content
QUICK REVIEW

[Paper Review] Single Shot Structured Pruning Before Training

Joost van Amersfoort, Milad Alizadeh|arXiv (Cornell University)|Jul 1, 2020
Machine Learning and Data ClassificationComputer Science28 references15 citations
TL;DR

This paper proposes 3SP, a single-shot structured pruning method applied before training that removes entire channels and hidden units to accelerate both training (2x faster on GPU) and inference (3x faster on CPU) with only a 0.5% accuracy drop on CIFAR-10. It uses a compute-aware scoring mechanism based on the SNIP objective to prioritize removal of high-cost, low-impact parameters, requiring only one forward-backward pass on a single batch.

ABSTRACT

We introduce a method to speed up training by 2x and inference by 3x in deep neural networks using structured pruning applied before training. Unlike previous works on pruning before training which prune individual weights, our work develops a methodology to remove entire channels and hidden units with the explicit aim of speeding up training and inference. We introduce a compute-aware scoring mechanism which enables pruning in units of sensitivity per FLOP removed, allowing even greater speed ups. Our method is fast, easy to implement, and needs just one forward/backward pass on a single batch of data to complete pruning before training begins.

Motivation & Objective

  • To address the high computational cost and carbon footprint of training deep neural networks by enabling pruning before training begins.
  • To develop a structured pruning method that removes entire channels and hidden units rather than individual weights, enabling speedups on standard hardware.
  • To introduce a compute-aware scoring mechanism that prioritizes removal of high-FLOP, low-impact parameters for greater efficiency.
  • To demonstrate that structured pruning before training is feasible and effective, reducing training time and energy consumption without significant accuracy loss.
  • To enable faster model adaptation in dynamic learning settings such as active learning, where rapid retraining is essential.

Proposed method

  • The method extends the SNIP objective to structured pruning by computing a score per channel or hidden unit based on the gradient of the loss with respect to the mask parameters.
  • It uses a first-order approximation of the loss change to estimate the impact of removing entire channels or units, enabling efficient one-pass pruning.
  • A compute-aware weighting is introduced that scales the pruning score by the FLOPs per parameter, favoring removal of expensive, low-impact components.
  • The final mask is determined by sorting scores and pruning the lowest-scoring channels/units according to a target sparsity ratio.
  • The entire pruning process is completed in a single forward and backward pass over a single minibatch, making it highly efficient.
  • The method is applied before any training, allowing the pruned network to be trained from scratch with reduced computational load.

Experimental results

Research questions

  • RQ1Can structured pruning be effectively applied before training to accelerate both training and inference on standard hardware?
  • RQ2How does compute-aware scoring improve pruning efficiency compared to standard magnitude-based or unstructured pruning approaches?
  • RQ3To what extent can a single forward-backward pass on a single batch enable effective pre-training pruning with minimal accuracy degradation?
  • RQ4How does the structured pruning approach compare to unstructured pruning methods like SNIP and GraSP in terms of performance and efficiency?
  • RQ5Can pre-training structured pruning enable faster model adaptation in active learning settings?

Key findings

  • The proposed 3SP method achieves a 2x speedup in training on a GPU and a 3x speedup in inference on a CPU, with only a 0.5% accuracy drop on CIFAR-10.
  • By incorporating compute-aware scoring, the method increases FLOP reduction from 60% to 85%, significantly enhancing efficiency.
  • The method requires only one forward and backward pass over a single batch of data, making it highly efficient and practical for real-world deployment.
  • Empirical analysis shows that the SNIP-based score remains effective in the structured setting, though GraSP’s approximation performs poorly in this context.
  • In active learning, 3SP enables faster data acquisition and model retraining, achieving higher accuracy within a fixed time budget than unpruned models.
  • The method reduces energy consumption and carbon emissions by eliminating wasteful training of full models, especially beneficial in resource-constrained settings.

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.