Relative Generalization Invariance of LLM Pretraining
Organizations: Yale University · National University of Singapore · Nanyang Technological University · A*STAR ·
Abstract
Large Language Model (LLM) pretraining performance is jointly shaped by three components of the training triplet: the optimizer, model architecture, and training data stream. However, how these components influence performance in distinct ways remains unclear. We take a first step toward isolating their effects by studying relative generalization. We introduce Relative Generalization Invariance (RGI), the invariance of the validation-loss difference between any two tokens across models. We show that RGI approximately holds across a wide range of optimizers and moderate architectural variations, suggesting that these choices induce an approximately uniform shift in token-wise losses. In contrast, changing the training data stream can substantially alter relative generalization. We further show that RGI cannot be explained by the neural tangent kernel or mean-field regimes alone and prove that it can emerge in an overparameterized quadratic model. Overall, our work identifies RGI as a new phenomenon in LLM pretraining that helps distinguish the effects of optimizers and architectures from those of training data.
Figures & tables
Appendix figures & tables29 assets
Supplementary material from the paper’s appendix.
Appendix
| Metric | Adam-mini | Adam | Lion | Muon | Scion | Soap |
| Average | 0.001 | 0.001 | 0.001 | 0.001 | 0.001 | 0.001 |
| Average | 3.500 | 3.457 | 3.554 | 3.409 | 3.459 | 3.403 |
| Average | 0.003 | 0.004 | 0.003 | 0.004 | 0.004 | 0.004 |
| Adam step | Validation loss | Adam-mini | Lion | Muon | Scion | Shampoo | SOAP |
| 0 | 11.023 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 |
| 1000 | 4.261 | 0.773 | 0.753 | 0.641 | 0.612 | 0.396 | 0.559 |
| 2000 | 3.815 | 0.658 | 0.604 | 0.475 | 0.469 | 0.186 | 0.400 |
| 3000 | 3.654 | 0.580 | 0.520 | 0.425 | 0.411 | 0.150 | 0.303 |
| 4000 | 3.588 | 0.526 | 0.465 | 0.377 | 0.383 | 0.130 | 0.257 |
| Step | Adam-mini | Lion | Muon | SOAP | Scion |
| 0 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 |
| 1000 | 0.321 | 0.738 | -0.275 | -0.341 | -0.226 |
| 2000 | 0.129 | 0.276 | -0.138 | -0.164 | -0.085 |
| 3000 | 0.092 | 0.181 | -0.099 | -0.117 | -0.046 |
| 4000 | 0.073 | 0.130 | -0.089 | -0.100 | -0.033 |
| 5000 | 0.067 | 0.107 | -0.072 | -0.083 | -0.018 |
Language Model Pretraining
Language model pretraining teaches models language patterns and knowledge from large text corpora before they are adapted to specific tasks.
See all 422 papers