This is the official github repo for the paper Superposition Yields Robust Neural Scaling, Yizhou Liu, Ziming Liu, and Jeff Gore, NeurIPS 2025 (Oral, Best Paper Runner-up).
Superposition means that models represent more features than dimensions they have, which is true for LLMs since there are too many things to represent in language. We find that superposition leads to a power-law loss with width without assuming power laws elsewhere, leading to the observed neural scaling law. And the reason for the power law is geometric constraint of representations.
The code of the following figure is './exp/exp-17.py'
We use Anthropic's toy model of superposition, adding weight decay or growth to control the degree of superposition.
Weight decay (or growth when the value is negative) can control superposition reflected by the fraction of represented features.
The code of the following figure is './exp/exp-10.py' and './exp/exp-10-3.py'
We need to answer when the loss is a power law with model dimension, and what control the power law exponent (we call it model exponent here).
We analyze the data from './exp/exp-17.py', './exp/exp-10.py' and './exp/exp-10-3.py' in the following figure.
In the weak superposition regime (weight decay is large), the loss is well described by the expected number of activated but unlearned features, which is a power law once the feature distribution is.
The data are from './exp/exp-10.py' and './exp/exp-10-3.py'.
Scaling behavior in the strong superposition regime is robust due to generic geometric fact that when many more vectors are squeezed into a lower dimensional space, their overlaps scale inversely proportional to square root of dimension.
The data are from './exp/exp-10.py' and './exp/exp-10-3.py'.
The scaling exponents are robust to the number of expected activated features in one data point.
The data are from './exp/exp-15.py'.
LLMs agree with the toy model results in the strong superposition regime from underlying overlaps between representations to loss scaling with model dimension.
Analysis of overlaps is in './LLMs/overlap-0.py'. We also analyzed norm distribution in './LLMs/norm-0.py' and token frequencies in './LLMs/token-freq-0.py' (see Appendix in the paper). Loss evaluation can be found in './LLMs/cali-1.py'.
@article{liu2025superposition,
title={Superposition Yields Robust Neural Scaling},
author={Liu, Yizhou and Liu, Ziming and Gore, Jeff},
journal={Advances in Neural Information Processing Systems},
volume={38},
pages={159269--159305},
year={2025}
}
or
@article{liu2025superposition,
title={Superposition Yields Robust Neural Scaling},
author={Liu, Yizhou and Liu, Ziming and Gore, Jeff},
journal={arXiv preprint arXiv:2505.10465},
year={2025}
}
- Depth Scaling Due to Limited Transformation: Inverse Depth Scaling From Most Layers Being Similar (paper link, code link)
- Time Scaling Due to Limited Training: Universal One-third Time Scaling in Learning Peaked Distributions (paper link, code link)








