OptiSelect: How does the Optimizer Shape Data Curriculum?
Organizations: EPFL
Abstract
Online data selection has demonstrated substantial efficiency gains for LLM pretraining by training on the most valuable candidates within each batch. Since a candidate's value is realized through its effective model update, principled selection should account for the optimizer step, which reshapes the raw gradient before it updates model parameters. We formalize this optimizer-aware selection paradigm as OptiSelect and present the first systematic study of how the optimizer shapes data selection. Our theory establishes a selection gain principle in which the advantage of online selection is governed by the discriminability of the optimizer-induced utility scores. We prove that sign-based and polar-tangential preconditioners of Lion and Muon would suffer from a discriminability collapse which caps attainable gains from OptiSelect, whereas diagonal-adaptive optimizers such as AdamW and Sophia admit strictly better upper bounds. The proposed principle also yields a quantitative derivation of the optimal candidate oversampling ratio. Pretraining experiments on 124M and 720M models are consistent with our theoretical analysis and show that AdamW's diagonal-adaptive scoring geometry remains the strongest scoring geometry even with Muon as optimizer. We further demonstrate that OptiSelect retains its benefits under data rephrasing, a technique used in modern data processing pipelines. Our findings provide theoretical foundations and practical guidance for co-designing optimizers and data selection in LLM pretraining.
Figures & tables
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Optimizer | Operator family | Linear in ? | Magnitude information |
|---|---|---|---|
| Operators analyzed | |||
| SGD | Unpreconditioned (identity) | ✓ | ✓ |
| AdamW | Diagonal adaptive (second moment) | ✓ | ✓ |
| AdEMAMix | Diagonal adaptive (second moment) | ✓ | ✓ |
| Sophia | Diagonal adaptive (curvature) | ✓ § | ✓ |
| Muon | Matrix sign / polar tangent | ✓ ‡ | Tangential; radial discarded |
| Scale | layers | heads | seq. len. | tokens/step | |
|---|---|---|---|---|---|
| 124M | 768 | 12 | 12 | 512 | 32,768 |
| 720M | 2048 | 12 | 16 | 512 | 131,072 |
| Optimizer | Mode | val / dwn at default | |||
|---|---|---|---|---|---|
| AdamW | std | 3.692 / 3.963 | 3.610 / 3.865 | 3.579 / 3.840 | 3.642 / 3.902 |
| sel | 3.733 / 3.850 | 3.650 / 3.771 | 3.616 / 3.745 | 3.949 / 4.080 | |
| AdEMAMix | std | 3.680 / 3.950 | 3.617 / 3.885 | 3.599 / 3.863 | 4.206 / 4.446 |
| sel | 3.724 / 3.855 | 3.659 / 3.780 | 3.635 / 3.763 | 4.484 / 4.646 | |
| Sophia | std | 3.796 / 4.062 | 3.687 / 3.947 | 3.647 / 3.908 | 3.730 / 3.979 |
| sel | 3.828 / 3.950 | 3.724 / 3.856 | 3.679 / 3.804 | 3.737 / 3.891 | |
| refresh (steps) | ||||
|---|---|---|---|---|
| downstream loss | 3.7165 | 3.7178 | 3.7421 | 3.8244 |
| FineWeb-HQ val. loss | 3.6265 | 3.6265 | 3.6185 | 3.6052 |
| selection entropy | 0.84 | 0.84 | 0.81 | 0.79 |
| (s) | 0.51 | 0.50 | 0.50 | 0.48 |
| Held-out FineWeb-HQ loss | Downstream loss | |||||
|---|---|---|---|---|---|---|
| Optimizer | std@ k | sel@ k | std@ k | sel@ k | ||
| AdamW | 3.107 | 3.094 | -0.013 | 3.361 | 3.241 | -0.119 |
| AdEMAMix | 3.108 | 3.093 | -0.014 | 3.410 | 3.274 | -0.135 |
| Sophia | 3.198 | 3.179 | -0.019 | 3.486 | 3.458 | -0.028 |
| Lion | 3.133 | 3.116 | -0.016 | 3.417 | 3.399 | -0.018 |
| D-Muon | 3.204 | 3.195 | -0.008 | 3.455 | 3.471 | +0.015 |
| Held-out FineWeb-HQ | Downstream probe | |||||
|---|---|---|---|---|---|---|
| Optimizer | std@ k | sel@ k | std@ k | sel@ k | ||
| AdamW | 2.704 | 2.714 | +0.010 | 2.995 | 2.891 | -0.104 |
| AdEMAMix | 2.705 | 2.710 | +0.005 | 3.004 | 2.908 | -0.096 |
| Sophia | 2.745 | 2.736 | -0.009 | 3.049 | 3.026 | -0.023 |
| Lion | 2.729 | 2.731 | +0.002 | 3.018 | 3.022 | +0.004 |
| D-Muon | 2.696 | 2.684 | -0.012 | 2.993 | 2.944 | -0.049 |
Training Data Selection
Training data selection studies how to choose, filter, weight, or schedule examples to improve learning while reducing data and compute costs.
See all 187 papers