mlsanityData to 7 Oct 2026

Mini-batch Coresets for Memory-efficient Language Model Training on Data Mixtures

arXiv 2407.19580 ↗First posted 28 Jul 2024cs.LG cs.AI cs.CLcited by 12

Not on the map. Why?

Abstract (arXiv)

Training with larger mini-batches improves the convergence rate and can yield superior performance. However, training with large mini-batches becomes prohibitive for Large Language Models (LLMs), due to the large GPU memory requirement. To address this problem, an effective approach is finding small mini-batch coresets that closely match the gradient of larger mini-batches. However, this approach becomes infeasible and ineffective for LLMs, due to the highly imbalanced mixture of sources in language data, use of the Adam optimizer, and the very large gradient dimensionality of LLMs. In this work, we address the above challenges by proposing Coresets for Training LLMs (CoLM). First, we show that mini-batch coresets found by gradient matching do not contain representative examples of the small sources w.h.p., and thus including all examples of the small sources in the mini-batch coresets is crucial for optimal performance. Second, we normalize the gradients by their historical exponential to find mini-batch coresets for training with Adam. Finally, we leverage zeroth-order methods to find smooth gradient of the last V-projection matrix and sparsify it to keep the dimensions with the largest normalized gradient magnitude. We apply CoLM to fine-tuning Phi-2, Phi-3, Zephyr, and Llama-3 models with LoRA on MathInstruct and SuperGLUE benchmark. Remarkably, CoLM reduces the memory requirement of fine-tuning by 2x and even outperforms training with 4x larger mini-batches. Moreover, CoLM seamlessly integrates with existing memory-efficient training methods like LoRA, further reducing the memory requirements of training LLMs. Our code is available at https://github.com/BigML-CS-UCLA/CoLM.

Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 37 of its 53 references that are in the map. First posted on arXiv 28 Jul 2024.

Builds on

37 of 53 references.

References · 37

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  2. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  3. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
  4. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  5. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  6. 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
  7. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
  8. 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,090
  9. 2023LIMA: Less Is More for Alignmentcited by 1,080
  10. 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 861
  11. 2016Training Deep Nets with Sublinear Memory Costcited by 825
  12. 2024DoRA: Weight-Decomposed Low-Rank Adaptationcited by 740
25 more
  1. 2013Stochastic First- and Zeroth-order Methods for Nonconvex Stochastic Programmingcited by 716
  2. 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 559
  3. 2024LESS: Selecting Influential Data for Targeted Instruction Tuningcited by 514
  4. 2023MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuningcited by 483
  5. 2024GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projectioncited by 447
  6. 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 425
  7. 2018WiC: the Word-in-Context Dataset for Evaluating Context-Sensitive Meaning Representationscited by 370
  8. 2023Fine-Tuning Language Models with Just Forward Passescited by 337
  9. 2018Not All Samples Are Created Equal: Deep Learning with Importance Samplingcited by 323
  10. 2023From Quantity to Quality: Boosting LLM Performance with Self-Guided Data Selection for Instruction Tuningcited by 301
  11. 2023TRAK: Attributing Model Behavior at Scalecited by 273
  12. 2023D4: Improving LLM Pretraining via Document De-Duplication and Diversificationcited by 146
  13. 2022NumGLUE: A Suite of Fundamental yet Challenging Mathematical Reasoning Taskscited by 110
  14. 2023MoDS: Model-oriented Data Selection for Instruction Tuningcited by 107
  15. 2019Accelerating Deep Learning by Focusing on the Biggest Loserscited by 94
  16. 2024Long Is More for Alignment: A Simple but Tough-to-Beat Baseline for Instruction Fine-Tuningcited by 85
  17. 2022Same Pre-training Loss, Better Downstream: Implicit Bias Matters for Language Modelscited by 84
  18. 2024Chain of LoRA: Efficient Fine-tuning of Language Models via Residual Learningcited by 80
  19. 2023Data Diversity Matters for Robust Instruction Tuningcited by 76
  20. 2023Tied-Lora: Enhancing parameter efficiency of LoRA with weight tyingcited by 65
  21. 2022Adaptive Second Order Coresets for Data-efficient Machine Learningcited by 60
  22. 2023Towards Sustainable Learning: Coresets for Data-efficient Deep Learningcited by 44
  23. 2024Zeroth-Order Fine-Tuning of LLMs with Extreme Sparsitycited by 27
  24. 2024An Experimental Design Framework for Label-Efficient Supervised Finetuning of Large Language Modelscited by 22
  25. 2018Faster Neural Network Training with Approximate Tensor Operationscited by 14

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 4; 2026: 8.

12 papers.