mlsanityData to 14 Oct 2026

Generalizing From Short to Long: Effective Data Synthesis for Long-Context Instruction Tuning

arXiv 2502.15592 ↗First posted 21 Feb 2025cs.CL cs.AIcited by 8

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

  1. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructions20 Dec

Other references · 16

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  3. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  4. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  5. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  6. 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 839
  7. 2015Improving Neural Machine Translation Models with Monolingual Datacited by 788
  8. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
  9. 2023Effective Long-Context Scaling of Foundation Modelscited by 303
  10. 2024Long-context LLMs Struggle with Long In-context Learningcited by 286
  11. 2016SummaRuNNer: A Recurrent Neural Network based Sequence Model for Extractive Summarization of Documentscited by 246
  12. 2024Data Engineering for Scaling Language Models to 128K Contextcited by 186
4 more
  1. 2023ZeroSCROLLS: A Zero-Shot Benchmark for Long Text Understandingcited by 176
  2. 2024How to Train Long-Context Language Models (Effectively)cited by 146
  3. 2024One Thousand and One Pairs: A "novel" challenge for long-context language modelscited by 80
  4. 2024Language Models can Self-Lengthen to Generate Long Textscited by 24

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 4; 2026: 4.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024LongAlign: A Recipe for Long Context Alignment of Large Language Models
  2. 2025From 128K to 4M: Efficient Training of Ultra-Long Context Large Language Models
  3. 2025Scaling Instruction-Tuned LLMs to Million-Token Contexts via Hierarchical Synthetic Data Generation
  4. 2025Modular Techniques for Synthetic Long-Context Data Generation in Language Model Training and Evaluation
  5. 2025Flora: Effortless Context Construction to Arbitrary Length and Scale
  6. 2025Instruction Tuning with and without Context: Behavioral Shifts and Downstream Impact
  7. 2026LongCrafter: Towards Diverse Long-Context Understanding via Evidence-Graph-Guided Instruction Synthesis
  8. 2024Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Models