SparseOpt: Addressing Normalization-induced Gradient Skew in Sparse Training

Mohammed Adnan, Rohan Jain, Tom Jacobs, Ekansh Sharma, Rahul G Krishnan, Rebekka Burkholz, Yani Ioannou

Dynamic Sparse Training (DST) represents a promising frontier in efficient AI, aiming to train sparse neural networks from scratch by dynamically updating the network's connectivity mask. However, DST methods typically suffer from painfully slow convergence, often requiring up to five times longer to train than dense counterparts. While prior research has focused on optimizing pruning and regrowth criteria, this paper identifies a more fundamental bottleneck: Batch Normalization (BN).

The Root Cause: Normalization-Induced Gradient Skew

Batch Normalization is a staple for stabilizing dense network training, but the authors discover that it behaves erratically in sparse layers. Standard BN implementations assume every neuron has the same number of inputs. In sparse networks, this assumption is false.

Because neurons in a sparse layer have varying numbers of incoming connections (heterogeneous fan-in), BN scales their gradients differently. This creates a "gradient skew"—a rotation and distortion of the descent direction. It is not merely an issue of gradients becoming too large; rather, they point in the wrong direction, distorting the relative contribution of each parameter to the total update.

In DST, the network topology changes abruptly every few hundred iterations. This causes the per-neuron sparsity to jump, which in turn causes the BN-induced gradient skew to shift suddenly, leading to highly unstable optimization trajectories.

SparseOpt: A Sparsity-Aware Optimizer

To address this instability, the authors propose SparseOpt, a preconditioned gradient descent algorithm tailored specifically for sparse training.

Through mathematical analysis, the researchers prove that BN amplifies the gradients of sparse neurons by a factor of $(1-s_i)^{-1/2}$, where $s_i$ is the sparsity of neuron $i$. In a dense layer, $s_i$ is zero, resulting in uniform scaling. To fix the distortion in sparse layers, SparseOpt introduces a diagonal preconditioning matrix $D$ that applies a correction factor of $\sqrt{1-s_i}$ to each neuron's gradient.

This simple but highly effective rescaling cancels out the BN-induced distortion, restoring a uniform gradient scale across the layer. Furthermore, SparseOpt is a "plug-and-play" solution: it adjusts gradient updates during the optimization step without requiring any changes to the underlying model architecture.

Experimental Setup and Key Results

The researchers evaluated SparseOpt on standard, high-stakes computer vision benchmarks—CIFAR-100 (using ResNet-20) and ImageNet (using ResNet-50)—against popular DST algorithms like RigL (Rigging the Lottery) and SET (Sparse Evolutionary Training). SparseOpt consistently outperformed standard SGD across extreme sparsity levels (90%, 95%, and 97%).

  • Faster Convergence: On ImageNet at 95% sparsity, SparseOpt achieved higher accuracy in 90 epochs than the baseline did in 180 epochs. Essentially, it cuts training time in half while maintaining performance.
  • Higher Accuracy: SparseOpt consistently reached higher final Top-1 accuracies. For instance, on ImageNet at 97% sparsity using RigL, it achieved 71.15% accuracy in 90 epochs, compared to the baseline's 69.94%.
  • Better Generalization: Models trained with SparseOpt performed better on unseen test data, suggesting that correcting the gradient direction helps the network settle into superior local minima.

Limitations and Future Directions

While SparseOpt significantly advances DST, the paper highlights a few intriguing avenues for future work:

  • The "Regrowth" Paradox: Interestingly, while SparseOpt excels at updating weights, the authors found that using the original (skewed) gradients is actually better for the DST "regrowth" step—the phase where the algorithm decides which new connections to add. The skew may inadvertently aid in exploring new topologies, a phenomenon that warrants deeper investigation.
  • Beyond Batch Normalization: The paper focuses primarily on BN, but preliminary results in the appendix suggest that Layer Normalization (LN)—the standard for Transformers and Large Language Models (LLMs)—suffers from similar gradient skew issues. Extending SparseOpt to LLMs is a clear and promising next step.
  • Computational Overhead: Calculating per-neuron sparsity for every update adds a minor computational overhead. However, the authors argue this cost is negligible compared to the massive gains in convergence speed.

Ultimately, SparseOpt reveals that the "instability" often attributed to sparse training is largely a side effect of our normalization layers, taking a significant step toward making Dynamic Sparse Training practically competitive with dense training.

Summary updated

BibTeX
@inproceedings{adnan2026sparseopt,
  author = {Mohammed Adnan and Rohan Jain and Tom Jacobs and Ekansh Sharma and Rahul G Krishnan and Rebekka Burkholz and Yani Ioannou},
  title = {{SparseOpt: Addressing Normalization-induced Gradient Skew in Sparse Training}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=o9JP7N8YO9},
}
Figure