Towards the Connection between Activation Sparsity and Flat Minima
Not on the map. Why?
Abstract (arXiv)
The observation that activation sparsity emerges in MLP blocks of standardly trained Transformers offers an opportunity to drastically reduce computation costs without sacrificing performance. To theoretically explain this phenomenon, existing works have shown that activation sparsity does not result from the data properties or data fitting but from the implicit bias of the training process. However, these connections are obtained with strong assumptions, which cannot be applied to deep models standardly trained with a large number of steps. Different from these works, we find that the flatness of loss landscapes is also closely related to the MLP activation sparsity and can serve as a weaker and naturally emerging assumption standard deep networks. Specifically, we find that 1) the MLP activation sparsity equals a ratio between "augmented flatness" (a weighted sum of flatness measures) and the product of the input norm and activation gradient of the MLP. We empirically find that this ratio decreases during training, leading to sparse activations. 2) We also propose the notion of derivative sparsity, which reduces to activation sparsity under ReLU, but further enables pruning in the backward propagation and is more stable than activation sparsity. With the theoretical findings, we can further encourage activation sparsity by decreasing the numerator and increasing the denominator of the ratio using three methods. These plug-and-play modifications can effectively reduce the ratio and produce sparser activations. Experiments on ImageNet-1K and C4 demonstrate relative improvements of at least 36% on inference sparsity and at least 50% on training sparsity over vanilla Transformers, indicating further potential cost reduction in both inference and training
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 43 of its 59 references that are in the map. First posted on arXiv 25 May 2026.
Builds on
43 of 59 references.
References · 43
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 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
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2021LAION-400M: Open Dataset of CLIP-Filtered 400 Million Image-Text Pairscited by 1,544
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,404
- 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
- 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,194
- 2021Knowledge Neurons in Pretrained Transformerscited by 590
31 more
- 2021SWAD: Domain Generalization by Seeking Flat Minimacited by 431
- 2017Information-theoretic analysis of generalization capability of learning algorithmscited by 299
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 247
- 2021User-friendly introduction to PAC-Bayes boundscited by 234
- 2017Emergence of Invariance and Disentanglement in Deep Representationscited by 213
- 2019A Tail-Index Analysis of Stochastic Gradient Noise in Deep Neural Networkscited by 213
- 2018Gradient descent aligns the layers of deep linear networkscited by 182
- 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
- 2020Reasoning About Generalization via Conditional Mutual Informationcited by 145
- 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
- 2023ReLU Strikes Back: Exploiting Activation Sparsity in Large Language Modelscited by 91
- 2020Relative Flatness and Generalizationcited by 88
- 2021Small random initialization is akin to spectral learning: Optimization and generalization guarantees for overparameterized low-rank matrix reconstructioncited by 77
- 2022SGD with Large Step Sizes Learns Sparse Featurescited by 66
- 2018Chaining Mutual Information and Tightening Generalization Boundscited by 65
- 2022The alignment property of SGD noise and how it helps select flat minima: A stability analysiscited by 64
- 2023Gradient Norm Aware Minimization Seeks First-Order Flatness and Improves Generalizationcited by 57
- 2024Training-Free Activation Sparsity in Large Language Modelscited by 51
- 2024From Lazy to Rich: Exact Learning Dynamics in Deep Linear Networkscited by 46
- 2022Anticorrelated Noise Injection for Improved Generalizationcited by 41
- 2023Sharpness-Aware Minimization Leads to Low-Rank Featurescited by 38
- 2018Accelerating Convolutional Neural Networks via Activation Map Compressioncited by 34
- 2021Power-law escape rate of SGDcited by 29
- 2022On the Adversarial Robustness of Mixture of Expertscited by 27
- 2023Flatness-Aware Minimization for Domain Generalizationcited by 27
- 2023Tighter Information-Theoretic Generalization Bounds from Supersamplescited by 21
- 2023Where We Have Arrived in Proving the Emergence of Sparse Symbolic Concepts in AI Modelscited by 8
- 2026Leveraging Flatness to Improve Information-Theoretic Generalization Bounds for SGDcited by 2
Built on by
Not cited yet.