Skip to main content
QUICK REVIEW

[Paper Review] Training Sparse Neural Networks

Suraj Srinivas, Akshayvarun Subramanya|arXiv (Cornell University)|Nov 21, 2016
Sparse and Compressive Sensing TechniquesEngineering19 references11 citations
TL;DR

This paper proposes a differentiable gating mechanism that enables end-to-end training of sparse neural networks by learning binary gate variables to prune parameters dynamically. By using a bi-modal regularizer on gate variables and thresholding them at 0.5, the method achieves state-of-the-art compression with minimal accuracy drop—reducing parameters by up to 10.3x on AlexNet while maintaining 69.04% top-1 accuracy.

ABSTRACT

Deep neural networks with lots of parameters are typically used for large-scale computer vision tasks such as image classification. This is a result of using dense matrix multiplications and convolutions. However, sparse computations are known to be much more efficient. In this work, we train and build neural networks which implicitly use sparse computations. We introduce additional gate variables to perform parameter selection and show that this is equivalent to using a spike-and-slab prior. We experimentally validate our method on both small and large networks and achieve state-of-the-art compression results for sparse neural network models.

Motivation & Objective

  • To develop a method that induces structural sparsity in deep neural networks during training, reducing parameter count without sacrificing performance.
  • To address the challenge of training sparse networks where traditional L1/L2 regularization fails to induce meaningful sparsity in non-convex deep learning problems.
  • To enable end-to-end training of sparse networks by jointly learning weights and pruning decisions through a differentiable gate mechanism.
  • To achieve state-of-the-art model compression ratios on standard vision benchmarks like LeNet-5, AlexNet, and VGG-16.
  • To ensure robustness to initialization and efficient fine-tuning by pre-initializing gate variables based on magnitude of original weights.

Proposed method

  • Introduces learnable gate variables G that are differentiable and interpreted as Bernoulli parameters, with binary samples G^s used to mask weights.
  • Uses a bi-modal regularizer w×(1−w) on gate variables to encourage values to cluster near 0 or 1, promoting sparsity.
  • Applies thresholding (maximum-likelihood draw) at 0.5 to convert real-valued gates into binary masks, ensuring determinism during inference.
  • Combines the bi-modal regularizer with L1 or L2 regularization on gate variables to stabilize training and enhance sparsity.
  • Employs a joint optimization objective: minimize loss(ŷ(θ,Φ), y) + λ‖Φ‖, where Φ is the index set derived from G^s, penalizing total number of parameters.
  • Pre-initializes gate variables by setting g=1 for top-k% weights and g=0.49 for others, preserving important parameters during early training.

Experimental results

Research questions

  • RQ1Can a differentiable, learnable gating mechanism effectively induce structural sparsity in deep neural networks during end-to-end training?
  • RQ2How does the bi-modal regularizer on gate variables compare to standard L1/L2 penalties in promoting meaningful sparsity in non-convex deep learning problems?
  • RQ3What is the impact of pre-initializing gate variables based on weight magnitude on convergence speed and final sparsity-accuracy trade-off?
  • RQ4Can this method achieve state-of-the-art compression ratios on standard vision architectures like AlexNet and VGG-16 while maintaining high accuracy?
  • RQ5How does the method scale in terms of training time and compression efficiency compared to existing pruning and compression techniques?

Key findings

  • The proposed method achieves a 10.3x compression rate on AlexNet (9.8M parameters including indices) with 69.04% top-1 accuracy, outperforming prior methods.
  • On VGG-16, the method achieves a 14x compression rate with 69.04% top-1 accuracy, demonstrating strong generalization across architectures.
  • For LeNet-5, the method removes 96% of parameters with only a 0.24% drop in accuracy, achieving state-of-the-art compression performance.
  • The method reduces fine-tuning time to ~18 hours on AlexNet (vs. 173 hours in prior work), with only 18 hours of training on a single Titan X GPU.
  • Pre-initializing gates based on weight magnitude significantly improves final sparsity and accuracy, especially in fully connected layers with 95% sparsity.
  • The method is robust to initialization, with both constant and stochastic initialization yielding similar sparsity levels, indicating stability in training.

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.