atlas

Research map / Large language models / Language, safety and interpretability

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

ICLR 2025 · Large language models › Language, safety and interpretability · approach: LLM unlearning and benchmarks · 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 fully online, loss-based instance-level reweighting (LinUpper, Quadratic, Extremes) for LLM pretraining, with a convergence analysis showing down-weighting low-loss samples tightens bounds, evaluated on GPT2 models and 1.4B/7B Llama.

Problem

Standard LLM pretraining treats all samples equally, and existing reweighting methods are group-level, static, or require stored per-sample statistics or validation-set bilevel optimization, which are impractical for single-epoch web-scale pretraining.

Approach

Reweight each minibatch sample online by a bounded, analytic transform of its normalized current loss (with a temperature r annealed during training and a cap of 2/b on weights), so no extra forward/backward passes or stored statistics are needed; a convergence theorem justifies down-weighting low-loss samples.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add LinUpper loss-based instance reweighting over uniform samplingGPT2-medium pretraining · SlimPajama-6B 7 domains, hold-out perplexitymean perplexity: 3.13 -> 3.10Helped
Add LinUpper loss-based instance reweighting over uniform samplingGPT2-mini and GPT2-small pretraining · SlimPajama-6B 7 domains, hold-out perplexitymean perplexity: 3.32 -> 3.30 (mini); 3.15 -> 3.13 (small)Helped
Use Quadratic reweighting instead of uniform (ablation)GPT2 pretraining · SlimPajama-6B hold-out perplexitymean perplexity: 3.13 -> 3.19 (medium); 3.15 -> 3.23 (small)Hurt
Use Extremes reweighting instead of uniform (ablation)GPT2 pretraining · SlimPajama-6B hold-out perplexitymean perplexity: 3.13 -> 3.21 (medium)Hurt
Add LinUpper on top of uniform 5-shot samplingGPT2-medium · 5-shot LogiQA, LogiQA2, SciQ, PiQAmean accuracy: 39.4 -> 40.9Helped
Use Quadratic reweighting instead of uniform (ablation)GPT2-medium · 5-shot LogiQA, LogiQA2, SciQ, PiQAmean accuracy: 39.4 -> 39.3Hurt
Use Extremes reweighting instead of uniform (ablation)GPT2-medium · 5-shot LogiQA, LogiQA2, SciQ, PiQAmean accuracy: 39.4 -> 39.8Helped
Add LinUpper on top of DoGE domain reweightingGPT2-medium non-uniform domain sampling · 5-shot LogiQA, LogiQA2, SciQ, PiQAmean accuracy: 40.8 -> 41.5Helped
Add LinUpper on top of DoReMi domain reweightingGPT2-medium non-uniform domain sampling · 5-shot LogiQA, LogiQA2, SciQ, PiQAmean accuracy: 41.0 -> 41.5Helped
Add LinUpper loss-based instance reweighting over uniform samplingLlama 1.4B pretraining · FineWeb subset, LUR 13 tasksmean accuracy: 48.51 -> 49.16 (+0.66)Helped
Add LinUpper loss-based instance reweighting over uniform samplingLlama 1.4B pretraining · FineWeb subset, QA 6 tasksmean accuracy: 42.35 -> 44.07 (+1.72)Helped
Add LinUpper loss-based instance reweighting over uniform samplingLlama 7B pretraining · FineWeb subset, LUR 13 tasksmean accuracy: 50.54 -> 51.98 (+1.44)Helped

Surprising findings

Limitations

Experimental setup

Datasets: SlimPajama-6B FineWeb 15T LogiQA LogiQA 2 SciQ PiQA BoolQ SocialIQA TriviaQA LM Eval Harness tasks

Benchmarks: LogiQA LogiQA 2 SciQ PiQA ARC Challenge ARC Easy COPA MMLU MNLI WinoGrande BoolQ SocialIQA

Metrics: perplexity accuracy test loss

Baselines: Uniform sampling DoGE DoReMi DRO-KL

Builds on: DoReMi DoGE SlimPajama DRO-KL

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