atlas

Research map / Large language models / Instruction and fine-tuning

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

ICLR 2025 · Large language models › Instruction and fine-tuning · approach: Efficient LLM fine-tuning systems · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes CoLM, a mini-batch coreset selection method for memory-efficient LLM fine-tuning on imbalanced data mixtures, matching larger-batch gradients under Adam using zeroth-order sparsified V-projection gradients.

Problem

Training LLMs with large mini-batches improves convergence but needs prohibitive GPU memory; existing gradient-matching coreset selection fails for LLMs due to imbalanced language sources, Adam optimizer, and very high gradient dimensionality.

Approach

Keep all examples of small sources, select medoids of big sources using Adam-normalized gradients estimated with MeZO (SPSA) on the last V-projection and sparsified to top-magnitude dimensions, using l1 distance for medoid search.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use CoLM-selected mini-batches of bs=64 instead of random FT batches of bs=256Phi-2 fine-tuning with LoRA · MathInstructAvg All accuracy: $55.3_{\pm 0.5}$ -> $56.6_{\pm 0.9}$Helped
Use clusters from a fine-tuned model instead of updating clusters during fine-tuningCoLM on Phi-2 · SuperGLUEAvg accuracy: $78.7_{\pm 1.9}$ -> $81.0_{\pm 2.6}$Helped
Keep all examples from small sources in the coreset (ablation)CoLM · MathInstructAvg accuracy: $51.5_{\pm 0.5}$ -> $54.6_{\pm 0.6}$Helped
Select medoids separately for each big source (ablation)CoLM with small sources retained · MathInstructAvg accuracy: $54.6_{\pm 0.6}$ -> $55.1_{\pm 0.5}$Helped
Normalize gradients for Adam (ablation)CoLM with separate big-source medoids · MathInstructAvg accuracy: $55.1_{\pm 0.5}$ -> $56.6_{\pm 0.9}$Helped
Use uniform rather than weighted example weights (ablation)CoLM · MathInstructAvg accuracyHelped
Use ℓ1 distance instead of cosine distance (ablation)Medoid selection · MathInstructAvg accuracy: $51.3_{\pm 0.9}$ -> $51.5_{\pm 0.5}$No clear effect
Retain dimensions with the largest gradient magnitude (ablation)CoLM sparsification · MathInstructAvg accuracy: $55.4_{\pm 1.7}$ -> $56.6_{\pm 0.9}$Helped
Set sparsity dimension to 2560 rather than 1280 (ablation)CoLM · MathInstructAvg accuracy: $54.1_{\pm 1.3}$ -> $56.6_{\pm 0.9}$Helped
Use sparsified MeZO gradients instead of projected actual gradients (ablation)CoLM gradient estimation · MathInstructAvg accuracy: $55.2_{\pm 0.4}$ -> $56.6_{\pm 0.9}$Helped
Use the last V-projection instead of the last FC layer (ablation)CoLM gradient estimation · MathInstructAvg accuracy: $54.5_{\pm 0.1}$ -> $56.6_{\pm 0.9}$Helped
Use CoLM with bs=128 instead of standard pretraining with bs=256Llama-60M · Pile mixture downstream tasksAvg downstream accuracy: 42.5 -> 43.9Helped

Surprising findings

Limitations

Experimental setup

Datasets: MathInstruct SuperGLUE (SST-2, CB, MultiRC) The Pile (EuroParl, Github, HackerNews, NIH Exporters, Wikipedia)

Benchmarks: GSM8K MATH NumGLUE SVAMP Mathematics SimulEq SuperGLUE Squad WiC COPA

Metrics: exact match accuracy validation perplexity wall-clock time memory usage

Baselines: FT with bs=64 FT with bs=128 FT with bs=256 Big Loss Grad Norm Middle Perplexity Completion Length Least Confidence Facility Location

Builds on: gradient matching coresets (CRAIG) MeZO GaLore LoRA Big Loss selection

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy