A Theoretical Explanation of Activation Sparsity through Flat Minima and Adversarial Robustness
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
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,337
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2021Scaling Vision with Sparse Mixture of Expertscited by 740
- 2021Knowledge Neurons in Pretrained Transformerscited by 590
- 2017Empirical Analysis of the Hessian of Over-Parametrized Neural Networkscited by 283
- 2017Emergence of Invariance and Disentanglement in Deep Representationscited by 213
- 2019A Tail-Index Analysis of Stochastic Gradient Noise in Deep Neural Networkscited by 213
18 more
- 2021Primer: Searching for Efficient Transformers for Language Modelingcited by 162
- 2021SwinBERT: End-to-End Transformers with Sparse Attention for Video Captioningcited by 161
- 2019Adaptively Sparse Transformerscited by 154
- 2020Towards Theoretically Understanding Why SGD Generalizes Better Than ADAM in Deep Learningcited by 125
- 2022The Lazy Neuron Phenomenon: On Emergence of Activation Sparsity in Transformerscited by 121
- 2018Three Mechanisms of Weight Decay Regularizationcited by 112
- 2017Stochastic gradient descent performs variational inference, converges to limit cycles for deep networkscited by 108
- 2022Sparse Mixture-of-Experts are Domain Generalizable Learnerscited by 85
- 2022SGD with Large Step Sizes Learns Sparse Featurescited by 66
- 2021Relating Adversarially Robust Generalization to Flat Minimacited by 57
- 2019Where is the Information in a Deep Neural Network?cited by 40
- 2020Effects of Parameter Norm Growth During Transformer Training: Inductive Bias from Gradient Descentcited by 40
- 2023Sharpness-Aware Minimization Leads to Low-Rank Featurescited by 38
- 2023Stochastic Collapse: How Gradient Noise Attracts SGD Dynamics Towards Simpler Subnetworkscited by 38
- 2022On the Adversarial Robustness of Mixture of Expertscited by 27
- 2023Ten Lessons We Have Learned in the New "Sparseland": A Short Handbook for Sparse Neural Network Researcherscited by 25
- 2022DynaST: Dynamic Sparse Transformer for Exemplar-Guided Image Generationcited by 24
- 2023Where We Have Arrived in Proving the Emergence of Sparse Symbolic Concepts in AI Modelscited by 8
Built on by
Citing papers per year: 2024: 2; 2025: 3; 2026: 2.
7 papers.
- 2025Grokking and Generalization Collapse: Insights from textttHTSR theorycited by 8
- 2024Progress Measures for Grokking on Real-world Taskscited by 7
- 2024Learning Neural Networks with Sparse Activationscited by 6
- 2025Spark Transformer: Reactivating Sparsity in FFN and Attentioncited by 5
- 2025Universal Properties of Activation Sparsity in Modern Large Language Modelscited by 5
- 2026Late-Stage Generalization Collapse in Grokking: Detecting anti-grokking with Weightwatchercited by 2
- 2026On the Necessity of Attention-FFN Split in Vision Transformerscited by 0
- 2026On the Necessity of Attention-FFN Split in Vision Transformers7 Oct 2026
- 2026Late-Stage Generalization Collapse in Grokking: Detecting anti-grokking with Weightwatcher2 Feb 2026
- 2025Universal Properties of Activation Sparsity in Modern Large Language Models30 Aug 2025
- 2025Spark Transformer: Reactivating Sparsity in FFN and Attention7 Jun 2025
- 2025Grokking and Generalization Collapse: Insights from textttHTSR theory4 Jun 2025
- 2024Learning Neural Networks with Sparse Activations26 Jun 2024
- 2024Progress Measures for Grokking on Real-world Tasks21 May 2024