mlsanityData to 14 Oct 2026

Dynamic Loss-Based Sample Reweighting for Improved Large Language Model Pretraining

arXiv 2502.06733 ↗First posted 10 Feb 2025cs.LG cs.AIcited by 16

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2023GPT-4 Technical Reportcited by 18,396
  4. 2024The Llama 3 Herd of Modelscited by 14,715
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  6. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  7. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  8. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  9. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  10. 2017Crowdsourcing Multiple Choice Science Questionscited by 765
  11. 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 763
  12. 2018Learning to Reweight Examples for Robust Deep Learningcited by 675
26 more
  1. 2023DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretrainingcited by 399
  2. 2018Not All Samples Are Created Equal: Deep Learning with Importance Samplingcited by 328
  3. 2020Retrieve, Program, Repeat: Complex Knowledge Base Question Answering via Alternate Meta-learningcited by 216
  4. 2020Geometry-aware Instance-reweighted Adversarial Trainingcited by 198
  5. 2023A Pretrainer's Guide to Training Data: Measuring the Effects of Data Age, Domain Coverage, Quality, & Toxicitycited by 182
  6. 2024QuRating: Selecting High-Quality Data for Training Language Modelscited by 157
  7. 2015Online Batch Selection for Faster Training of Neural Networkscited by 122
  8. 2023Skill-it! A Data-Driven Skills Framework for Understanding and Training Language Modelscited by 121
  9. 2019Accelerating Deep Learning by Focusing on the Biggest Loserscited by 94
  10. 2020Rethinking Importance Weighting for Deep Learning under Distribution Shiftcited by 93
  11. 2023DoGE: Domain Reweighting with Generalization Estimationcited by 90
  12. 2023FedExP: Speeding Up Federated Averaging via Extrapolationcited by 69
  13. 2021Probabilistic Margins for Instance Reweighting in Adversarial Trainingcited by 57
  14. 2021A Farewell to the Bias-Variance Tradeoff? An Overview of the Theory of Overparameterized Machine Learningcited by 57
  15. 2019Overparameterized Neural Networks Implement Associative Memorycited by 45
  16. 2020An Online Method for A Class of Distributionally Robust Optimization with Non-Convex Objectivescited by 42
  17. 2023Self-Influence Guided Data Reweighting for Language Model Pre-trainingcited by 37
  18. 2018Robust Optimization over Multiple Domainscited by 34
  19. 2021Reweighting Augmented Samples by Minimizing the Maximal Expected Losscited by 21
  20. 2023Irreducible Curriculum for Language Model Pretrainingcited by 16
  21. 2020Are Adversarial Examples Created Equal? A Learnable Weighted Minimax Risk for Robustness under Non-uniform Attackscited by 14
  22. 2024Take the Bull by the Horns: Hard Sample-Reweighted Continual Training Improves LLM Generalizationcited by 12
  23. 2024Importance Weighting Can Help Large Language Models Self-Improvecited by 12
  24. 2023Adaptive Training Distributions with Scalable Online Bilevel Optimizationcited by 11
  25. 2023Stochastic Re-weighted Gradient Descent via Distributionally Robust Optimizationcited by 6
  26. 2023Doubly Robust Instance-Reweighted Adversarial Trainingcited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 9; 2026: 7.

16 papers.

Sort:

By area:

  1. 2025DataRater: Meta-Learned Dataset Curationcited by 13
  2. 2026Agentic Reinforcement Learning with Observation-Calibrated Self-Distillationcited by 7
  3. 2025GEAR: A General Evaluation Framework for Abductive Reasoningcited by 6
  4. 2026DataFlex: A Unified Framework for Data-Centric Dynamic Training of Large Language Modelscited by 5
  5. 2026A Survey on the Green Development of Large Models: From Resource-Efficient Architectures to Hardware-Software Co-Designcited by 5
  6. 2025Rethinking Supervised Fine-Tuning: Emphasizing Key Answer Tokens for Improved LLM Accuracycited by 4
  7. 2025LoReUn: Data Itself Implicitly Provides Cues to Improve Machine Unlearningcited by 3
  8. 2026Towards Next-Generation LLM Training: From the Data-Centric Perspectivecited by 3
  9. 2026Rethinking Data Curation in LLM Training: Online Reweighting Offers Better Generalization than Offline Methodscited by 3
  10. 2025ESLM: Risk-Averse Selective Language Modeling for Efficient Pretrainingcited by 1
  11. 2025DreamPRM-1.5: Unlocking the Potential of Each Instance for Multimodal Process Reward Model Trainingcited by 1
  12. 2025Capacity Matters: a Proof-of-Concept for Transformer Memorization on Real-World Datacited by 0
4 more
  1. 2025Exploring Polyglot Harmony: On Multilingual Data Allocation for Large Language Models Pretrainingcited by 0
  2. 2025Sampling and Loss Weights in Multi-Domain Trainingcited by 0
  3. 2026D3: Dynamic Directional Graph-Constrained Data Scheduling for LLM Trainingcited by 0
  4. 2026Age of Learning: Temporal Persistence of Prediction Errors as a Learning Signalcited by 0