Generalizing From Short to Long: Effective Data Synthesis for Long-Context Instruction Tuning
On the map: Synthetic data and self-improvement for LLMs → Code and instruction data synthesis
Abstract (arXiv)
Long-context modelling for large language models (LLMs) has been a key area of recent research because many real world use cases require reasoning over longer inputs such as documents. The focus of research into modelling long context has been on how to model position and there has been little investigation into other important aspects of language modelling such as instruction tuning. Long context training examples are challenging and expensive to create and use. In this paper, we investigate how to design instruction data for the post-training phase of a long context pre-trained model: how much and what type of context is needed for optimal and efficient post-training. Our controlled study reveals that models instruction-tuned on short contexts can effectively generalize to longer ones, while also identifying other critical factors such as instruction difficulty and context composition. Based on these findings, we propose context synthesis, a novel data synthesis framework that leverages off-the-shelf LLMs to generate extended background contexts for high-quality instruction-answer pairs. Experiment results on the document-level benchmark (LongBench) demonstrate that our proposed approach outperforms previous instruction synthesis approaches and comes close to the performance of human-annotated long-context instruction data. The project will be available at: https://github.com/NJUNLP/context-synthesis.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Placed in Code and instruction data synthesis, one of 13 directions in Synthetic data and self-improvement for LLMs. Builds on 17 of its 24 references that are in the map. First posted on arXiv 21 Feb 2025.
Builds on
17 of 24 references.
Closest ancestors · 1
Same direction, newest first
Other references · 16
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 839
- 2015Improving Neural Machine Translation Models with Monolingual Datacited by 788
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
- 2023Effective Long-Context Scaling of Foundation Modelscited by 303
- 2024Long-context LLMs Struggle with Long In-context Learningcited by 286
- 2016SummaRuNNer: A Recurrent Neural Network based Sequence Model for Extractive Summarization of Documentscited by 246
- 2024Data Engineering for Scaling Language Models to 128K Contextcited by 186
4 more
- 2023ZeroSCROLLS: A Zero-Shot Benchmark for Long Text Understandingcited by 176
- 2024How to Train Long-Context Language Models (Effectively)cited by 146
- 2024One Thousand and One Pairs: A "novel" challenge for long-context language modelscited by 80
- 2024Language Models can Self-Lengthen to Generate Long Textscited by 24
Built on by
Citing papers per year: 2025: 4; 2026: 4.
8 papers.
- 2025SoLoPO: Unlocking Long-Context Capabilities in LLMs via Short-to-Long Preference Optimizationcited by 10
- 2025Cache Me If You Can: How Many KVs Do You Need for Effective Long-Context LMs?cited by 10
- 2025A Controllable Examination for Long-Context Language Modelscited by 7
- 2025LongMagpie: A Self-synthesis Method for Generating Large-scale Long-context Instructionscited by 6
- 2026Incentivizing In-depth Reasoning over Long Contexts with Process Advantage Shapingcited by 3
- 2026Probing How Scalable Table Data Enhances General Long-Context Reasoningcited by 1
- 2026Adam's Law: Textual Frequency Law on Large Language Modelscited by 0
- 2026TrajLong: Co-Designing Agentic and Long-Context Supervision for Mid-Trainingcited by 0
- 2026TrajLong: Co-Designing Agentic and Long-Context Supervision for Mid-Training4 Oct 2026
- 2026Adam's Law: Textual Frequency Law on Large Language Models2 Apr 2026
- 2026Probing How Scalable Table Data Enhances General Long-Context Reasoning23 Mar 2026
- 2026Incentivizing In-depth Reasoning over Long Contexts with Process Advantage Shaping18 Jan 2026
- 2025Cache Me If You Can: How Many KVs Do You Need for Effective Long-Context LMs?20 Jun 2025
- 2025A Controllable Examination for Long-Context Language Models3 Jun 2025
- 2025LongMagpie: A Self-synthesis Method for Generating Large-scale Long-context Instructions22 May 2025
- 2025SoLoPO: Unlocking Long-Context Capabilities in LLMs via Short-to-Long Preference Optimization16 May 2025
Similar, not cited
Close in wording, no citation either way
- 2024LongAlign: A Recipe for Long Context Alignment of Large Language Models
- 2025From 128K to 4M: Efficient Training of Ultra-Long Context Large Language Models
- 2025Scaling Instruction-Tuned LLMs to Million-Token Contexts via Hierarchical Synthetic Data Generation
- 2025Modular Techniques for Synthetic Long-Context Data Generation in Language Model Training and Evaluation
- 2025Flora: Effortless Context Construction to Arbitrary Length and Scale
- 2025Instruction Tuning with and without Context: Behavioral Shifts and Downstream Impact
- 2026LongCrafter: Towards Diverse Long-Context Understanding via Evidence-Graph-Guided Instruction Synthesis
- 2024Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Models