Diversity of Transformer Layers: One Aspect of Parameter Scaling Laws
Not on the map. Why?
Abstract (arXiv)
Transformers deliver outstanding performance across a wide range of tasks and are now a dominant backbone architecture for large language models (LLMs). Their task-solving performance is improved by increasing parameter size, as shown in the recent studies on parameter scaling laws. Although recent mechanistic-interpretability studies have deepened our understanding of the internal behavior of Transformers by analyzing their residual stream, the relationship between these internal mechanisms and the parameter scaling laws remains unclear. To bridge this gap, we focus on layers and their size, which mainly decide the parameter size of Transformers. For this purpose, we first theoretically investigate the layers within the residual stream through a bias-diversity decomposition. The decomposition separates (i) bias, the error of each layer's output from the ground truth, and (ii) diversity, which indicates how much the outputs of each layer differ from each other. Analyzing Transformers under this theory reveals that performance improves when individual layers make predictions close to the correct answer and remain mutually diverse. We show that diversity becomes especially critical when individual layers' outputs are far from the ground truth. Finally, we introduce an information-theoretic diversity and show our main findings that adding layers enhances performance only when those layers behave differently, i.e., are diverse. We also reveal the performance gains from increasing the number of layers exhibit submodularity: marginal improvements diminish as additional layers increase, mirroring the logarithmic convergence predicted by the parameter scaling laws. Experiments on multiple semantic-understanding tasks with various LLMs empirically confirm the theoretical properties derived in this study.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 21 of its 33 references that are in the map. First posted on arXiv 29 May 2025.
Builds on
21 of 33 references.
References · 21
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2019Root Mean Square Layer Normalizationcited by 1,480
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2020On Layer Normalization in the Transformer Architecturecited by 922
9 more
- 2018Universal Transformerscited by 647
- 2022PromptSource: An Integrated Development Environment and Repository for Natural Language Promptscited by 289
- 2024MobileLLM: Optimizing Sub-billion Parameter Language Models for On-Device Use Casescited by 223
- 2017Bilateral Multi-Perspective Matching for Natural Language Sentencescited by 121
- 2020Submodular Combinatorial Information Measures with Applications in Machine Learningcited by 88
- 2021Lessons on Parameter Sharing across Layers in Transformerscited by 85
- 2024What Matters in Transformers? Not All Attention is Neededcited by 84
- 2023A Unified Theory of Diversity in Ensemble Learningcited by 71
- 2024When Parts Are Greater Than Sums: Individual LLM Components Can Outperform Full Modelscited by 6
Built on by
Citing papers per year: 2026: 2.
2 papers.