Skip to main content
QUICK REVIEW

[Paper Review] Keep the Gradients Flowing: Using Gradient Flow to Study Sparse Network Optimization

Kale-ab Tessera, Sara Hooker|arXiv (Cornell University)|Feb 2, 2021
Stochastic Gradient Optimization TechniquesComputer Science85 references16 citations
TL;DR

This paper introduces a new experimental framework, Same Capacity Sparse vs Dense Comparison (SC-SDC), and a normalized gradient flow metric, Effective Gradient Flow (EGF), to fairly evaluate sparse network optimization. It finds that standard optimization choices—like Adam with L2 regularization—harm sparse networks by disrupting gradient flow, and that BatchNorm, non-sparse activations (e.g., Swish), and careful optimizer selection are critical for performance.

ABSTRACT

Training sparse networks to converge to the same performance as dense neural architectures has proven to be elusive. Recent work suggests that initialization is the key. However, while this direction of research has had some success, focusing on initialization alone appears to be inadequate. In this paper, we take a broader view of training sparse networks and consider the role of regularization, optimization, and architecture choices on sparse models. We propose a simple experimental framework, Same Capacity Sparse vs Dense Comparison (SC-SDC), that allows for a fair comparison of sparse and dense networks. Furthermore, we propose a new measure of gradient flow, Effective Gradient Flow (EGF), that better correlates to performance in sparse networks. Using top-line metrics, SC-SDC and EGF, we show that default choices of optimizers, activation functions and regularizers used for dense networks can disadvantage sparse networks. Based upon these findings, we show that gradient flow in sparse networks can be improved by reconsidering aspects of the architecture design and the training regime. Our work suggests that initialization is only one piece of the puzzle and taking a wider view of tailoring optimization to sparse networks yields promising results.

Motivation & Objective

  • To address the persistent performance gap between sparse and dense networks despite advances in initialization.
  • To investigate whether standard optimization, regularization, and architectural choices disadvantage sparse networks.
  • To develop a fair benchmarking framework that isolates the impact of sparsity by matching active parameters and depth between sparse and dense models.
  • To introduce a new metric, Effective Gradient Flow (EGF), that better predicts performance in sparse networks than existing gradient flow measures.
  • To guide architectural and training regime choices that stabilize gradient flow and improve sparse network convergence.

Proposed method

  • Proposes Same Capacity Sparse vs Dense Comparison (SC-SDC), a controlled experimental setup comparing sparse and dense networks with identical active parameter counts and depth.
  • Introduces Effective Gradient Flow (EGF), a normalized gradient flow metric that accounts for the number of active weights, improving correlation with model performance in sparse settings.
  • Employs large-scale experiments across multiple architectures (e.g., Wide ResNet-50) and pruning methods (e.g., magnitude pruning) to evaluate optimization choices.
  • Systematically evaluates the impact of optimizers (Adam, RMSProp), regularization (L2, data augmentation), normalization (BatchNorm), activation functions (ReLU, Swish, PReLU), and weight initialization.
  • Uses EGF to diagnose and correlate optimization choices with gradient flow dynamics in sparse networks.
  • Validates findings across diverse settings, including dynamic pruning and initialization-pruning methods, to ensure generalizability.

Experimental results

Research questions

  • RQ1Do standard optimization and regularization choices—commonly used in dense networks—harm the training of sparse networks?
  • RQ2How does gradient flow in sparse networks differ from that in dense networks, and can it be better measured?
  • RQ3To what extent do architectural choices like BatchNorm, activation functions, and optimizer selection affect sparse network performance?
  • RQ4Can a fair comparison framework (SC-SDC) isolate the effects of sparsity from model size and depth differences?
  • RQ5Does improving gradient flow through architectural and training regime adjustments lead to better convergence in sparse networks?

Key findings

  • Standard optimizers like Adam and RMSProp, when combined with L2 regularization or data augmentation, lead to poor gradient flow and degraded performance in sparse networks.
  • Batch Normalization is significantly more critical for sparse networks than for dense ones, as it stabilizes gradient flow and enables convergence.
  • Non-sparse activation functions such as Swish and PReLU improve gradient flow in sparse networks due to their non-monotonic and adaptive properties.
  • Effective Gradient Flow (EGF) is a stronger predictor of top-line performance (e.g., accuracy, loss) in sparse networks than traditional gradient flow measures.
  • The performance gap between sparse and dense networks is not solely due to initialization; optimization and architectural choices play a decisive role.
  • The findings from SC-SDC and EGF generalize across architectures (e.g., Wide ResNet-50) and pruning methods (e.g., magnitude pruning), confirming the robustness of the insights.

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.