Research map / Large language models / Instruction and fine-tuning
How to Train Long-Context Language Models (Effectively)
Tianyu Gao, Alexander Wettig, Howard Yen, Danqi Chen
Princeton University
Read the paperPlace an idea next to itCheck your own paper ↗
14measured effects
9improved
4hurt
1mixed
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| combine books and code repositories as long data (1:1) (ablation) | Llama-3-8B-Base continued training · HELMET long-context avg | avg score: books only 53.8, code repos only 52.3 -> 1:1 mix 54.6 | Improved |
| train on 100% long data instead of mixing in short data (ablation) | ProLong continued training · HELMET after SFT | long-context performance | Hurt |
| use 60% long / 40% short data ratio (ablation) | ProLong continued training · HELMET after SFT | avg score | Improved |
| use ProLong ShortMix instead of other short data sources (ablation) | Llama-3-8B-Base continued training · HELMET long-context avg | avg score: SlimPajama 52.9, FineWeb-Edu 53.0, DCLM 52.0 -> 54.6 | Improved |
| use only FineWeb-Edu as short data (ablation) | Llama-3-8B-Base continued training · short-context avg | avg accuracy: 65.5 (ShortMix) -> 63.0 | Hurt |
| switch to 512K training length after 64K training (ablation) | ProLong 64K (20B) · HELMET at 64K eval | Re-rank: 28.0 -> 32.9 | Improved |
| mix synthetic long-context instruction data into UltraChat SFT (ablation) | ProLong base · long-context avg | avg score: 55.7 (0%) -> 54.1 (1%) -> 43.3 (50%) | Hurt |
| generate synthetic SFT data with Llama-3-70B instead of 8B (ablation) | ProLong SFT with 3% synthetic · long-context avg | avg score: 3%: 53.5 (8B) -> 55.4 (70B); 10%: 53.9 -> 53.6 | Mixed |
| use UltraChat instead of Tulu v2 or ShareGPT for SFT (ablation) | ProLong base · long-context avg | avg score: Tulu v2 49.1, ShareGPT 45.2 -> 55.7 | Improved |
| raise RoPE frequency base (0.5e6 to 8e6 at 64K) (ablation) | Llama-3-8B-Base continued training · HELMET long-context avg | avg score: 29.1 -> 54.6 | Improved |
| disable cross-document attention (document masks) (ablation) | Llama-3-8B-Base continued training · HELMET long-context avg | avg score: 53.6 -> 54.6 | Improved |
| initialize from Llama-3-8B-Instruct instead of Base (ablation) | ProLong continued training · short-context avg | avg accuracy: 65.5 -> 67.7 (long-context 54.6 -> 55.0) | Improved |
Open problems in efficient LLM fine-tuning systems
Do efficient fine-tuning methods keep their gains on larger models, other languages and open-ended tasks, and what do they cost?
- Larger models than 8B to 30B were not tested. · 20 papers state it
- Experiments cover English or a few languages only. · 12 papers state it
- The method adds training, memory or inference cost. · 12 papers state it
Closest papers by meaning
- LongLoRA: Efficient Fine-tuning of Long-Context Large Language Models (ICLR 2024 · similarity 0.92)
- A Little Goes a Long Way: Efficient Long Context Training and Inference with Partial Contexts (ICLR 2025 · similarity 0.92)
- Data Engineering for Scaling Language Models to 128K Context (ICML 2024 · similarity 0.92)
- Skrull: Towards Efficient Long Context Fine-tuning through Dynamic Data Scheduling (NeurIPS 2025 · similarity 0.91)
- LongRoPE: Extending LLM Context Window Beyond 2 Million Tokens (ICML 2024 · similarity 0.91)
- Structured Packing in LLM Training Improves Long Context Utilization (AAAI 2025 · similarity 0.91)
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.