paper-with-me

홈 › Papers

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

2023-09-06 · Ze Peng, Lei Qi, Yinghuan Shi, Yang Gao

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.

📄 PDF Abstract BibTeX arXiv:2309.03004

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Towards the Connection between Activation Sparsity and Flat Minima

2026-05-25 · Ze Peng, Jian Zhang, Lei Qi, Yang Gao 외 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 th…

Interpretability as Compression: Reconsidering SAE Explanations of Neural Activations with MDL-SAEs

2024-10-15 · Kola Ayonrinde, Michael T. Pearce, Lee Sharkey

Sparse Autoencoders (SAEs) have emerged as a useful tool for interpreting the internal representations of neural networks. However, naively optimising SAEs for reconstruction loss and sparsity results in a preference for…

FlatENN: Train Flat for Enhanced Fault Tolerance of Quantized Deep Neural Networks

2022-12-29 · Akul Malhotra, Sumeet Kumar Gupta

Model compression via quantization and sparsity enhancement has gained an immense interest to enable the deployment of deep neural networks (DNNs) in resource-constrained edge environments. Although these techniques have…

Model CompressionQuantization

Sharpness Minimization Algorithms Do Not Only Minimize Sharpness To Achieve Better Generalization

2023-07-20 · NeurIPS 2023 11

Despite extensive studies, the underlying reason as to why overparameterized neural networks can generalize remains elusive. Existing theory shows that common stochastic optimizers prefer flatter minimizers of the traini…

FACE: Faithful Automatic Concept Extraction

2025-10-13 · Dipkamal Bhusal, Michael Clifford, Sara Rampazzi, Nidhi Rastogi arxiv

Interpreting deep neural networks through concept-based explanations offers a bridge between low-level features and high-level human-understandable semantics. However, existing automatic concept discovery methods often f…