Skip to main content
QUICK REVIEW

[Paper Review] Efficient Neural Network Training via Forward and Backward Propagation Sparsification

Xiao Zhou, Weizhong Zhang|arXiv (Cornell University)|Nov 10, 2021
Domain Adaptation and Few-Shot LearningComputer Science51 references15 citations
TL;DR

This paper proposes a completely sparse training method for deep neural networks that achieves efficient forward and backward propagation by decoupling weight and structure parameter updates. It introduces a variance-reduced policy gradient estimator requiring only two forward passes, enabling fully sparse backpropagation and accelerating training by up to an order of magnitude compared to prior methods.

ABSTRACT

Sparse training is a natural idea to accelerate the training speed of deep neural networks and save the memory usage, especially since large modern neural networks are significantly over-parameterized. However, most of the existing methods cannot achieve this goal in practice because the chain rule based gradient (w.r.t. structure parameters) estimators adopted by previous methods require dense computation at least in the backward propagation step. This paper solves this problem by proposing an efficient sparse training method with completely sparse forward and backward passes. We first formulate the training process as a continuous minimization problem under global sparsity constraint. We then separate the optimization process into two steps, corresponding to weight update and structure parameter update. For the former step, we use the conventional chain rule, which can be sparse via exploiting the sparse structure. For the latter step, instead of using the chain rule based gradient estimators as in existing methods, we propose a variance reduced policy gradient estimator, which only requires two forward passes without backward propagation, thus achieving completely sparse training. We prove that the variance of our gradient estimator is bounded. Extensive experimental results on real-world datasets demonstrate that compared to previous methods, our algorithm is much more effective in accelerating the training process, up to an order of magnitude faster.

Motivation & Objective

  • To address the inefficiency of existing sparse training methods that require dense backward passes despite sparse forward passes.
  • To enable completely sparse forward and backward propagation by rethinking gradient estimation for structure parameters.
  • To develop a scalable, memory-efficient method that supports training of larger, over-parameterized networks without increasing memory overhead.
  • To achieve significant computational speedups in practice on standard deep learning frameworks like PyTorch and TensorFlow.

Proposed method

  • Formulates sparse neural network training as a constrained minimization problem under global sparsity, jointly optimizing weights and structure parameters (Bernoulli mask probabilities).
  • Decouples training into two steps: weight update via standard chain-rule-based backpropagation (sparsified via mask structure), and structure parameter update via a novel variance-reduced policy gradient estimator (VR-PGE).
  • Employs VR-PGE to estimate gradients for structure parameters using only two forward passes, eliminating the need for backward propagation and enabling fully sparse computation.
  • Controls global sparsity by constraining the sum of Bernoulli parameters, ensuring consistent network size throughout training.
  • Uses sparse subnetworks in both forward and backward passes, reducing FLOPs to approximately ρ² of the dense baseline, where ρ is the channel remain ratio.
  • Introduces a strategy to sample new subnetworks less frequently (e.g., every 50 iterations), enabling full model storage on CPU and subnetwork on GPU, reducing memory pressure.

Experimental results

Research questions

  • RQ1Can we achieve fully sparse training (both forward and backward passes) in deep neural networks without relying on dense backpropagation?
  • RQ2Can a variance-reduced policy gradient estimator replace chain-rule-based gradient estimation for structure parameters while maintaining training stability and convergence?
  • RQ3Does completely sparse training lead to significant computational speedups in practice, especially on standard deep learning frameworks?
  • RQ4Can the proposed method scale to larger networks without prohibitive memory or computational costs?

Key findings

  • The proposed method achieves up to a 7.41× speedup in training computational time on VGG-19 with only 0.8% of parameters remaining (ρ = 0.8).
  • On CIFAR-10 with ResNet32, the method achieves a 4.50× speedup with 3.06% of parameters retained, while maintaining 90.82% validation accuracy.
  • The variance of the proposed VR-PGE estimator is provably bounded, ensuring stable and reliable gradient updates.
  • The method maintains high accuracy across all sparsity levels, with only negligible degradation (e.g., 93.84% to 90.82% on VGG-19) even at very low channel remain ratios.
  • Empirical results show that the method is significantly faster than prior sparse training baselines, with speedups up to an order of magnitude.
  • Reducing subnetwork sampling frequency to every 50 iterations preserves final accuracy, enabling efficient memory management and scalability to larger models.

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.