Dynamic Loss-Based Sample Reweighting for Improved Large Language Model Pretraining
Not on the map. Why?
Abstract (arXiv)
Pretraining large language models (LLMs) on vast and heterogeneous datasets is crucial for achieving state-of-the-art performance across diverse downstream tasks. However, current training paradigms treat all samples equally, overlooking the importance or relevance of individual samples throughout the training process. Existing reweighting strategies, which primarily focus on group-level data importance, fail to leverage fine-grained instance-level information and do not adapt dynamically to individual sample importance as training progresses. In this paper, we introduce novel algorithms for dynamic, instance-level data reweighting aimed at improving both the efficiency and effectiveness of LLM pretraining. Our methods adjust the weight of each training sample based on its loss value in an online fashion, allowing the model to dynamically focus on more informative or important samples at the current training stage. In particular, our framework allows us to systematically devise reweighting strategies deprioritizing redundant or uninformative data, which we find tend to work best. Furthermore, we develop a new theoretical framework for analyzing the impact of loss-based reweighting on the convergence of gradient-based optimization, providing the first formal characterization of how these strategies affect convergence bounds. We empirically validate our approach across a spectrum of tasks, from pretraining 7B and 1.4B parameter LLMs to smaller-scale language models and linear regression problems, demonstrating that our loss-based reweighting approach can lead to faster convergence and significantly improved performance.
Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Builds on 38 of its 44 references that are in the map. First posted on arXiv 10 Feb 2025.
Builds on
38 of 44 references.
References · 38
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2017Crowdsourcing Multiple Choice Science Questionscited by 765
- 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 763
- 2018Learning to Reweight Examples for Robust Deep Learningcited by 675
26 more
- 2023DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretrainingcited by 399
- 2018Not All Samples Are Created Equal: Deep Learning with Importance Samplingcited by 328
- 2020Retrieve, Program, Repeat: Complex Knowledge Base Question Answering via Alternate Meta-learningcited by 216
- 2020Geometry-aware Instance-reweighted Adversarial Trainingcited by 198
- 2023A Pretrainer's Guide to Training Data: Measuring the Effects of Data Age, Domain Coverage, Quality, & Toxicitycited by 182
- 2024QuRating: Selecting High-Quality Data for Training Language Modelscited by 157
- 2015Online Batch Selection for Faster Training of Neural Networkscited by 122
- 2023Skill-it! A Data-Driven Skills Framework for Understanding and Training Language Modelscited by 121
- 2019Accelerating Deep Learning by Focusing on the Biggest Loserscited by 94
- 2020Rethinking Importance Weighting for Deep Learning under Distribution Shiftcited by 93
- 2023DoGE: Domain Reweighting with Generalization Estimationcited by 90
- 2023FedExP: Speeding Up Federated Averaging via Extrapolationcited by 69
- 2021Probabilistic Margins for Instance Reweighting in Adversarial Trainingcited by 57
- 2021A Farewell to the Bias-Variance Tradeoff? An Overview of the Theory of Overparameterized Machine Learningcited by 57
- 2019Overparameterized Neural Networks Implement Associative Memorycited by 45
- 2020An Online Method for A Class of Distributionally Robust Optimization with Non-Convex Objectivescited by 42
- 2023Self-Influence Guided Data Reweighting for Language Model Pre-trainingcited by 37
- 2018Robust Optimization over Multiple Domainscited by 34
- 2021Reweighting Augmented Samples by Minimizing the Maximal Expected Losscited by 21
- 2023Irreducible Curriculum for Language Model Pretrainingcited by 16
- 2020Are Adversarial Examples Created Equal? A Learnable Weighted Minimax Risk for Robustness under Non-uniform Attackscited by 14
- 2024Take the Bull by the Horns: Hard Sample-Reweighted Continual Training Improves LLM Generalizationcited by 12
- 2024Importance Weighting Can Help Large Language Models Self-Improvecited by 12
- 2023Adaptive Training Distributions with Scalable Online Bilevel Optimizationcited by 11
- 2023Stochastic Re-weighted Gradient Descent via Distributionally Robust Optimizationcited by 6
- 2023Doubly Robust Instance-Reweighted Adversarial Trainingcited by 2
Built on by
Citing papers per year: 2025: 9; 2026: 7.
16 papers.
Sort:
By area:
- 2025DataRater: Meta-Learned Dataset Curationcited by 13
- 2026Agentic Reinforcement Learning with Observation-Calibrated Self-Distillationcited by 7
- 2025GEAR: A General Evaluation Framework for Abductive Reasoningcited by 6
- 2026DataFlex: A Unified Framework for Data-Centric Dynamic Training of Large Language Modelscited by 5
- 2026A Survey on the Green Development of Large Models: From Resource-Efficient Architectures to Hardware-Software Co-Designcited by 5
- 2025Rethinking Supervised Fine-Tuning: Emphasizing Key Answer Tokens for Improved LLM Accuracycited by 4
- 2025LoReUn: Data Itself Implicitly Provides Cues to Improve Machine Unlearningcited by 3
- 2026Towards Next-Generation LLM Training: From the Data-Centric Perspectivecited by 3
- 2026Rethinking Data Curation in LLM Training: Online Reweighting Offers Better Generalization than Offline Methodscited by 3
- 2025ESLM: Risk-Averse Selective Language Modeling for Efficient Pretrainingcited by 1
- 2025DreamPRM-1.5: Unlocking the Potential of Each Instance for Multimodal Process Reward Model Trainingcited by 1
- 2025Capacity Matters: a Proof-of-Concept for Transformer Memorization on Real-World Datacited by 0
4 more
- 2025Exploring Polyglot Harmony: On Multilingual Data Allocation for Large Language Models Pretrainingcited by 0
- 2025Sampling and Loss Weights in Multi-Domain Trainingcited by 0
- 2026D3: Dynamic Directional Graph-Constrained Data Scheduling for LLM Trainingcited by 0
- 2026Age of Learning: Temporal Persistence of Prediction Errors as a Learning Signalcited by 0
- 2026Age of Learning: Temporal Persistence of Prediction Errors as a Learning Signal26 Sep 2026
- 2026Agentic Reinforcement Learning with Observation-Calibrated Self-Distillation5 Aug 2026
- 2026A Survey on the Green Development of Large Models: From Resource-Efficient Architectures to Hardware-Software Co-Design10 Jul 2026
- 2026D3: Dynamic Directional Graph-Constrained Data Scheduling for LLM Training29 May 2026
- 2026Rethinking Data Curation in LLM Training: Online Reweighting Offers Better Generalization than Offline Methods19 Apr 2026
- 2026DataFlex: A Unified Framework for Data-Centric Dynamic Training of Large Language Models27 Mar 2026
- 2026Towards Next-Generation LLM Training: From the Data-Centric Perspective16 Mar 2026
- 2025Rethinking Supervised Fine-Tuning: Emphasizing Key Answer Tokens for Improved LLM Accuracy24 Dec 2025
- 2025Sampling and Loss Weights in Multi-Domain Training10 Nov 2025
- 2025GEAR: A General Evaluation Framework for Abductive Reasoning28 Sep 2025
- 2025Exploring Polyglot Harmony: On Multilingual Data Allocation for Large Language Models Pretraining19 Sep 2025
- 2025DreamPRM-1.5: Unlocking the Potential of Each Instance for Multimodal Process Reward Model Training5 Sep 2025
4 more
- 2025LoReUn: Data Itself Implicitly Provides Cues to Improve Machine Unlearning30 Jul 2025
- 2025Capacity Matters: a Proof-of-Concept for Transformer Memorization on Real-World Data17 Jun 2025
- 2025ESLM: Risk-Averse Selective Language Modeling for Efficient Pretraining26 May 2025
- 2025DataRater: Meta-Learned Dataset Curation23 May 2025
- 2025GEAR: A General Evaluation Framework for Abductive Reasoningcited by 6
- 2025Rethinking Supervised Fine-Tuning: Emphasizing Key Answer Tokens for Improved LLM Accuracycited by 4
- 2026Rethinking Data Curation in LLM Training: Online Reweighting Offers Better Generalization than Offline Methodscited by 3
- 2025DreamPRM-1.5: Unlocking the Potential of Each Instance for Multimodal Process Reward Model Trainingcited by 1
- 2026Rethinking Data Curation in LLM Training: Online Reweighting Offers Better Generalization than Offline Methods19 Apr 2026
- 2025Rethinking Supervised Fine-Tuning: Emphasizing Key Answer Tokens for Improved LLM Accuracy24 Dec 2025
- 2025GEAR: A General Evaluation Framework for Abductive Reasoning28 Sep 2025
- 2025DreamPRM-1.5: Unlocking the Potential of Each Instance for Multimodal Process Reward Model Training5 Sep 2025
- 2025DataRater: Meta-Learned Dataset Curationcited by 13
- 2026DataFlex: A Unified Framework for Data-Centric Dynamic Training of Large Language Modelscited by 5
- 2026A Survey on the Green Development of Large Models: From Resource-Efficient Architectures to Hardware-Software Co-Designcited by 5
- 2026Towards Next-Generation LLM Training: From the Data-Centric Perspectivecited by 3
- 2025ESLM: Risk-Averse Selective Language Modeling for Efficient Pretrainingcited by 1
- 2025Capacity Matters: a Proof-of-Concept for Transformer Memorization on Real-World Datacited by 0
- 2025Exploring Polyglot Harmony: On Multilingual Data Allocation for Large Language Models Pretrainingcited by 0
- 2025Sampling and Loss Weights in Multi-Domain Trainingcited by 0
- 2026D3: Dynamic Directional Graph-Constrained Data Scheduling for LLM Trainingcited by 0
- 2026Age of Learning: Temporal Persistence of Prediction Errors as a Learning Signalcited by 0
- 2026Age of Learning: Temporal Persistence of Prediction Errors as a Learning Signal26 Sep 2026
- 2026A Survey on the Green Development of Large Models: From Resource-Efficient Architectures to Hardware-Software Co-Design10 Jul 2026
- 2026D3: Dynamic Directional Graph-Constrained Data Scheduling for LLM Training29 May 2026
- 2026DataFlex: A Unified Framework for Data-Centric Dynamic Training of Large Language Models27 Mar 2026
- 2026Towards Next-Generation LLM Training: From the Data-Centric Perspective16 Mar 2026
- 2025Sampling and Loss Weights in Multi-Domain Training10 Nov 2025
- 2025Exploring Polyglot Harmony: On Multilingual Data Allocation for Large Language Models Pretraining19 Sep 2025
- 2025Capacity Matters: a Proof-of-Concept for Transformer Memorization on Real-World Data17 Jun 2025
- 2025ESLM: Risk-Averse Selective Language Modeling for Efficient Pretraining26 May 2025
- 2025DataRater: Meta-Learned Dataset Curation23 May 2025