Understanding Normalization Layers for Sparse Training

Mohammed Adnan, Ekansh Sharma, Rahul Krishnan, Yani IoannouHiLD @ ICML 2025

TL;DR

This paper reveals that common normalization layers like Batch Normalization (BN) and Layer Normalization (LN) can destabilize sparse neural networks (SNNs) by amplifying gradients, leading to slower training and worse performance. To combat this, the authors propose a novel sparsity-aware preconditioned gradient descent method that effectively rescales gradients, improving both convergence and generalization in SNNs.

What Problem Does This Paper Address?

Deep learning models have become incredibly powerful, but their massive size makes training and deployment computationally expensive. Sparse training, which involves training models with a reduced number of connections, offers a promising avenue for efficiency. However, current sparse training methods often lag behind their dense counterparts in terms of generalization performance and convergence speed. This paper investigates a key missing piece of the puzzle: the impact of normalization layers, which are standard in dense networks, on the training dynamics of sparse networks. Specifically, the authors aim to understand why these layers, which are beneficial for dense models, might be hindering performance in sparse settings and to develop a solution.

Methods

The core of this work involves a two-pronged approach: theoretical analysis and empirical validation.

  • Theoretical Analysis: The authors delve into the mathematical underpinnings of how normalization layers interact with sparse network structures. They derive how Batch Normalization (BN) and Layer Normalization (LN) affect the gradient flow during backpropagation in sparse networks. Their analysis reveals that these layers can amplify the gradient norm by a factor related to the neuron's sparsity, leading to instability.
  • Sparsity-Aware Preconditioned Gradient Descent: To address the identified instability, the researchers propose a novel optimization method. This method modifies standard gradient descent by incorporating a preconditioner that specifically accounts for the sparsity of each neuron. By rescaling the gradients based on the inverse of the sparsity factor, it aims to counteract the gradient amplification caused by normalization layers and prevent blow-up.

Datasets

The authors evaluated their proposed method on standard image classification benchmarks:

  • CIFAR-100
  • ImageNet

They used ResNet-style architectures, specifically omitting skip connections to simplify the analysis of training dynamics.

Key Insights and Ideas

  • Normalization Layers are a Double-Edged Sword for Sparsity: While BN and LN are crucial for stabilizing and accelerating training in dense networks, they inadvertently introduce instability in sparse networks. This is because they amplify gradients based on neuron sparsity, leading to larger gradient norms and potentially exploding gradients.
  • Sparsity Pushes Networks Beyond the "Edge of Stability": The paper connects this instability to the "edge of stability" (EOS) phenomenon, where dense networks operate near a critical threshold. In sparse training, normalization layers increase the operator norm of the Hessian, pushing the network further beyond this stability bound, contributing to slower convergence and poorer generalization.
  • Sparsity-Aware Preconditioning is Key: The proposed method demonstrates that by intelligently rescaling gradients to account for sparsity, the negative effects of normalization layers can be mitigated, bringing sparse training dynamics closer to those of dense networks.

Key Results

  • Improved Generalization: The proposed sparsity-aware optimization method achieved better generalization performance compared to the baseline sparse training method on both CIFAR-100 and ImageNet datasets at moderate (0.80 sparsity) and high (0.90 sparsity) levels. For example, at 0.80 sparsity on CIFAR-100, their method achieved 69.21% accuracy compared to the baseline's 68.74%.
  • Faster Convergence: The paper shows that their method converges at a faster rate, as evidenced by plots of training loss and accuracy over epochs. The training loss decreases more rapidly early in training, indicating improved dynamics.
  • Stabilized Training Dynamics: The "Edge of Stability" analysis shows that their preconditioned gradient descent method reduces the curvature of the Hessian, bringing it closer to that of dense training and thus stabilizing the training process.

Limitations and Future Work

  • Architectural Focus: The current experiments were conducted on ResNet-style architectures without skip connections to simplify analysis. The authors plan to extend their analysis and methodology to models with residual connections in future work.
  • LayerNorm Exploration: While the paper theoretically analyzes LayerNorm's impact, the primary focus and proposed solution are geared towards networks employing Batch Normalization. Future work will further explore the application of their methodology with LayerNorm.
  • Broader Model Families: The authors intend to explore the application of their approach to a wider range of models and normalization techniques.

Summary updated

BibTeX
@inproceedings{adnan2025understanding,
  author = {Mohammed Adnan and Ekansh Sharma and Rahul Krishnan and Yani Ioannou},
  title = {{Understanding Normalization Layers for Sparse Training}},
  booktitle = {HiLD @ ICML},
  year = {2025},
  url = {https://openreview.net/forum?id=0zKHUxeAIK},
}
Figure