mlsanityData to 7 Oct 2026

A Theoretical Explanation of Activation Sparsity through Flat Minima and Adversarial Robustness

arXiv 2309.03004 ↗First posted 6 Sep 2023cs.LGcited by 7

Not on the map. Why?

Abstract (arXiv)

A recent empirical observation (Li et al., 2022b) of activation sparsity in MLP blocks offers an opportunity to drastically reduce computation costs for free. Although having attributed it to training dynamics, existing theoretical explanations of activation sparsity are restricted to shallow networks, small training steps and special training, despite its emergence in deep models standardly trained for a large number of steps. To fill these gaps, we propose the notion of gradient sparsity as one source of activation sparsity and a theoretical explanation based on it that sees sparsity a necessary step to adversarial robustness w.r.t. hidden features and parameters, which is approximately the flatness of minima for well-learned models. The theory applies to standardly trained LayerNorm-ed MLPs, and further to Transformers or other architectures trained with weight noises. Eliminating other sources of flatness except for sparsity, we discover the phenomenon that the ratio between the largest and smallest non-zero singular values of weight matrices is small. When discussing the emergence of this spectral concentration, we use random matrix theory (RMT) as a powerful tool to analyze stochastic gradient noises. Validational experiments are conducted to verify our gradient-sparsity-based explanation. We propose two plug-and-play modules for both training and finetuning for sparsity. Experiments on ImageNet-1k and C4 demonstrate their 50% sparsity improvements, indicating further potential cost reduction in both training and inference.

Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 30 of its 45 references that are in the map. First posted on arXiv 6 Sep 2023.

Builds on

30 of 45 references.

References · 30

  1. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2020Scaling Laws for Neural Language Modelscited by 6,411
  4. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
  5. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
  6. 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,337
  7. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
  8. 2021Scaling Vision with Sparse Mixture of Expertscited by 740
  9. 2021Knowledge Neurons in Pretrained Transformerscited by 590
  10. 2017Empirical Analysis of the Hessian of Over-Parametrized Neural Networkscited by 283
  11. 2017Emergence of Invariance and Disentanglement in Deep Representationscited by 213
  12. 2019A Tail-Index Analysis of Stochastic Gradient Noise in Deep Neural Networkscited by 213
18 more
  1. 2021Primer: Searching for Efficient Transformers for Language Modelingcited by 162
  2. 2021SwinBERT: End-to-End Transformers with Sparse Attention for Video Captioningcited by 161
  3. 2019Adaptively Sparse Transformerscited by 154
  4. 2020Towards Theoretically Understanding Why SGD Generalizes Better Than ADAM in Deep Learningcited by 125
  5. 2022The Lazy Neuron Phenomenon: On Emergence of Activation Sparsity in Transformerscited by 121
  6. 2018Three Mechanisms of Weight Decay Regularizationcited by 112
  7. 2017Stochastic gradient descent performs variational inference, converges to limit cycles for deep networkscited by 108
  8. 2022Sparse Mixture-of-Experts are Domain Generalizable Learnerscited by 85
  9. 2022SGD with Large Step Sizes Learns Sparse Featurescited by 66
  10. 2021Relating Adversarially Robust Generalization to Flat Minimacited by 57
  11. 2019Where is the Information in a Deep Neural Network?cited by 40
  12. 2020Effects of Parameter Norm Growth During Transformer Training: Inductive Bias from Gradient Descentcited by 40
  13. 2023Sharpness-Aware Minimization Leads to Low-Rank Featurescited by 38
  14. 2023Stochastic Collapse: How Gradient Noise Attracts SGD Dynamics Towards Simpler Subnetworkscited by 38
  15. 2022On the Adversarial Robustness of Mixture of Expertscited by 27
  16. 2023Ten Lessons We Have Learned in the New "Sparseland": A Short Handbook for Sparse Neural Network Researcherscited by 25
  17. 2022DynaST: Dynamic Sparse Transformer for Exemplar-Guided Image Generationcited by 24
  18. 2023Where We Have Arrived in Proving the Emergence of Sparse Symbolic Concepts in AI Modelscited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 3; 2026: 2.

7 papers.