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.

Keywords

Subject

Publication details

Journal
Not available
Open access
Green open access

Cite this article

APA 7

Peng, Z., Liu, Y., Liu, Z., & Gore, J. (2026). Emergent Inverse-Depth Scaling From Nonlinearity In Attention. https://omanscience.com/en/articles/emergent-inverse-depth-scaling-from-nonlinearity-in-attention

MLA 9

Peng, Zirui, et al. "Emergent Inverse-Depth Scaling From Nonlinearity In Attention." https://omanscience.com/en/articles/emergent-inverse-depth-scaling-from-nonlinearity-in-attention.

Chicago (author–date)

Peng, Zirui, Yizhou Liu, Ziming Liu, and Jeff Gore. 2026. "Emergent Inverse-Depth Scaling From Nonlinearity In Attention." https://omanscience.com/en/articles/emergent-inverse-depth-scaling-from-nonlinearity-in-attention.

Harvard

Peng, Z., Liu, Y., Liu, Z. and Gore, J. (2026) 'Emergent Inverse-Depth Scaling From Nonlinearity In Attention', Available at: https://omanscience.com/en/articles/emergent-inverse-depth-scaling-from-nonlinearity-in-attention.

Vancouver

Peng Z, Liu Y, Liu Z, Gore J. Emergent Inverse-Depth Scaling From Nonlinearity In Attention. https://omanscience.com/en/articles/emergent-inverse-depth-scaling-from-nonlinearity-in-attention

IEEE

Z. Peng, Y. Liu, Z. Liu, and J. Gore, "Emergent Inverse-Depth Scaling From Nonlinearity In Attention," https://omanscience.com/en/articles/emergent-inverse-depth-scaling-from-nonlinearity-in-attention.