atlas

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

Not All Tokens Are What You Need for Pretraining

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 6 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 Selective Language Modeling (SLM), which scores tokens by excess loss against a reference model and trains only on the top-k% tokens, yielding RHO-1 models with better math and general pretraining efficiency.

Problem

Standard causal language modeling applies next-token loss uniformly to all pretraining tokens, even though many are noisy, already learned, or irrelevant to the target distribution, wasting compute and hurting data efficiency.

Approach

Analyze token-level loss trajectories during pretraining to show heterogeneous dynamics, then train a language model only on tokens with high excess loss relative to a reference model trained on high-quality data (Selective Language Modeling), with a token selection ratio of about 60-70%.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply selective token loss instead of causal language modelingTinyllama-1.1B continual pretraining on OpenWebMath · GSM8K few-shot CoTaccuracy: 6.4 -> 29.8Helped
Apply selective token loss instead of causal language modelingTinyllama-1.1B continual pretraining on OpenWebMath · MATH few-shot CoTaccuracy: 2.4 -> 14.0Helped
Apply selective token loss instead of causal language modelingMistral-7B continual pretraining on OpenWebMath · GSM8K few-shot CoTaccuracy: 42.9 -> 66.9Helped
Apply selective token loss instead of causal language modelingMistral-7B continual pretraining on OpenWebMath · MATH few-shot CoTaccuracy: 22.2 -> 31.0Helped
Apply selective token loss rather than causal language modeling before ToRA-69k fine-tuningTinyllama-1B · MATH tool-integrated reasoningaccuracy: 38.4 -> 40.6Helped
Apply selective token loss rather than causal language modeling before ToRA-69k fine-tuningMistral-7B · MATH tool-integrated reasoningaccuracy: 48.4 -> 51.8Helped
Use reference-model loss to score tokens for self-referenced training (ablation)Tinyllama-1.1B on OpenWebMath · Average few-shot accuracyaccuracy: 21.5 -> 23.9Helped
Use reference-model entropy to score tokens for self-referenced training (ablation)Tinyllama-1.1B on OpenWebMath · Average few-shot accuracyaccuracy: 21.5 -> 23.0Helped
Select the intersection of tokens scored by reference loss and entropy (ablation)Tinyllama-1.1B on OpenWebMath · Average few-shot accuracyaccuracy: 21.5 -> 24.8Helped
Use the intersection of reference-loss and entropy token selections (ablation)Tinyllama-1.1B on PPile · Average few-shot accuracyaccuracy: 24.7 -> 26.5Helped
Use a smaller 1B reference model for token selectionLlama-2-7B continual pretraining · Average few-shot accuracyaccuracy: 43.5 -> 44.4Helped
Vary the token selection ratio (ablation)Tinyllama-1B SLM on OpenWebMath · GSM8K and MATH few-shotaccuracyMixed

Surprising findings

Limitations

Experimental setup

Datasets: OpenWebMath SlimPajama StarCoderData Tulu-v2 OpenHermes-2.5 ToRA-69k Proof-Pile-2

Benchmarks: GSM8K MATH SVAMP ASDiv MAWPS TabMWP MathQA MMLU-STEM SAT GSM-Hard MMLU BBH

Metrics: few-shot accuracy Pass@1 Pass@10 F1 validation loss

Baselines: Tinyllama-CT Mistral-CT DeepSeekMath-7B Gemma Qwen1.5 Phi-1.5 LLemma MAmmoTH ToRA

Builds on: Causal Language Modeling RHO-LOSS TinyLlama Mistral-7B ToRA

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