Data Distribution as a Lever for Guiding Optimizers Toward Superior Generalization in LLMs
Not on the map. Why?
Abstract (arXiv)
Can modifying the training data distribution guide optimizers toward solutions with improved generalization when training large language models (LLMs)? In this work, we theoretically analyze an in-context linear regression model with multi-head linear self-attention, and compare the training dynamics of two gradient based optimizers, namely gradient descent (GD) and sharpness-aware minimization (SAM), the latter exhibiting superior generalization properties but is prohibitively expensive for training even medium-sized LLMs. We show, for the first time, that SAM induces a lower simplicity bias (SB)-the tendency of an optimizer to preferentially learn simpler features earlier in training-and identify this reduction as a key factor underlying its improved generalization performance. Motivated by this insight, we demonstrate that altering the training data distribution by upsampling or augmenting examples learned later in training similarly reduces SB and leads to improved generalization. Our extensive experiments show that our strategy improves the performance of multiple LLMs-including Phi2-2.7B , Llama3.2-1B, Gemma3-1B-PT, and Qwen3-0.6B-Base-achieving relative accuracy gains up to 18% when fine-tuned with AdamW and Muon on mathematical reasoning tasks.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 47 of its 56 references that are in the map. First posted on arXiv 31 Jan 2026.
Builds on
47 of 56 references.
References · 47
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2025Gemma 3 Technical Reportcited by 1,824
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2018Reconciling modern machine learning practice and the bias-variance trade-offcited by 927
- 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 878
- 2013Exact solutions to the nonlinear dynamics of learning in deep linear neural networkscited by 763
- 2022Transformers learn in-context by gradient descentcited by 732
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
35 more
- 2019Deep Double Descent: Where Bigger Models and More Data Hurtcited by 672
- 2023MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuningcited by 487
- 2023Trained Transformers Learn Linear Models In-Contextcited by 337
- 2017Implicit Regularization in Matrix Factorizationcited by 322
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 298
- 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 279
- 2019SGD on Neural Networks Learns Functions of Increasing Complexitycited by 204
- 2018A mathematical theory of semantic development in deep neural networkscited by 186
- 2018Gradient descent aligns the layers of deep linear networkscited by 182
- 2018Algorithmic Regularization in Learning Deep Homogeneous Models: Layers are Automatically Balancedcited by 177
- 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 170
- 2022Towards Understanding Sharpness-Aware Minimizationcited by 146
- 2022NumGLUE: A Suite of Fundamental yet Challenging Mathematical Reasoning Taskscited by 112
- 2021Neural Networks as Kernel Learners: The Silent Alignment Effectcited by 106
- 2023How Many Pretraining Tasks Are Needed for In-Context Learning of Linear Regression?cited by 96
- 2022How Does Sharpness-Aware Minimization Minimize Sharpness?cited by 65
- 2020The Surprising Simplicity of the Early-Time Learning Dynamics of Neural Networkscited by 58
- 2024Asymptotic theory of in-context learning by linear attentioncited by 55
- 2022The Dynamics of Sharpness-Aware Minimization: Bouncing Across Ravines and Drifting Towards Wide Minimacited by 51
- 2023Transformers Learn to Achieve Second-Order Convergence Rates for In-Context Linear Regressioncited by 49
- 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 46
- 2024In-Context Learning of a Linear Transformer Block: Benefits of the MLP Component and One-Step GD Initializationcited by 33
- 2025Transformers Learn to Implement Multi-step Gradient Descent with Chain of Thoughtcited by 32
- 2023Why Does Sharpness-Aware Minimization Generalize Better Than SGD?cited by 28
- 2024Linear Transformers are Versatile In-Context Learnerscited by 28
- 2024Fine-grained Analysis of In-context Linear Estimation: Data, Architecture, and Beyondcited by 24
- 2024A distributional simplicity bias in the learning dynamics of transformerscited by 24
- 2024Trained Transformer Classifiers Generalize and Exhibit Benign Overfitting In-Contextcited by 15
- 2024Mini-batch Coresets for Memory-efficient Language Model Training on Data Mixturescited by 12
- 2024On the Role of Depth and Looping for In-Context Learning with Task Diversitycited by 11
- 2024Learning and Transferring Sparse Contextual Bigrams with Linear Transformerscited by 9
- 2025Avoiding spurious sharpness minimization broadens applicability of SAMcited by 8
- 2024Context-Scaling versus Task-Scaling in In-Context Learningcited by 6
- 2025Understanding the Role of Training Data in Test-Time Scalingcited by 4
- 2024Changing the Training Data Distribution to Reduce Simplicity Bias Improves In-distribution Generalizationcited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Prismatic Synthesis: Gradient-based Data Diversification Boosts Generalization in LLM Reasoning
- 2025Compute-Optimal LLMs Provably Generalize Better With Scale
- 2024How to Train Data-Efficient LLMs
- 2026Sparse Semantic Dimension as a Generalization Certificate for LLMs
- 2024GReaTer: Gradients over Reasoning Makes Smaller Language Models Strong Prompt Optimizers
- 2025Large Language Models as Universal Predictors? An Empirical Study on Small Tabular Datasets
- 2024Rethinking Conventional Wisdom in Machine Learning: From Generalization to Scaling
- 2025Beyond Single-Task: Robust Multi-Task Length Generalization for LLMs