Emergent Inverse-Depth Scaling From Nonlinearity In Attention
Zirui Peng, Yizhou Liu, Ziming Liu, Jeff Gore
Key points
From the paper's conclusion- Our findings suggest that depth scaling may arise from nonlinearity in attention, which allows large language models to focus locally and may make the global covariance structure less relevant.
Abstract
Scaling laws describe power-law improvements in model performance with dataset size and parameter count, yet their underlying mechanisms are not fully understood. To explain the parameter count scaling, existing theory posits power-law scaling with model depth. In linear-attention models, this scaling is tied to a power-law data spectrum: unable to selectively attend to relevant tokens, these models learn according to global spectral strength, with stronger directions learned before weaker ones. Large language models, however, can be strongly nonlinear. Here, we show that nonlinear attention yields inverse-depth decay of loss across all tested data spectra. Nonlinearity enables attention to focus selectively on relevant tokens, allowing strong and weak spectral directions to be learned in parallel. Similar focusing across layers motivates a connection to the central limit theorem: shared error across layers sets the loss plateau, while aggregation turns layer-specific differences into continued gains with depth. Our findings suggest that depth scaling may arise from nonlinearity in attention, which allows large language models to focus locally and may make the global covariance structure less relevant.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Toward a Theoretical Understanding of Transformer Attention: Bayesian Estimation and Predictive SufficiencyarXiv · 2026
- What can linear attention learn from nonlinear teachers in-context?arXiv · 2026
- Not All Attention Is Equal: A Quantitative Survey of the EEI Trade-offarXiv · 2026
- Spectral Degeneration of Self-Attention under Isotropic Score GeometryarXiv · 2026
- Fast multipole attention: A scalable multilevel attention mechanism for text and images.Neural networks : the official journal of the International Neural Network Society · 2026
- Universal interpolation for deep residual self-attention networksarXiv · 2026