WildLong: Synthesizing Realistic Long-Context Instruction Data at Scale

Jiaxi Li, Xingxing Zhang, Xun Wang, Xiaolong Huang, Li Dong +4 more
2/23/2025
cs.CL

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) with extended context windows enable tasks requiring extensive information integration but are limited by the scarcity of high-quality, diverse datasets for long-context instruction tuning. Existing data synthesis methods focus narrowly on objectives like fact retrieval and summarization, restricting their generalizability to complex, real-world tasks. WildLong extracts meta-information from real user queries, models co-occurrence relationships via graph-based methods, and employs adaptive generation to produce scalable data. It extends beyond single-document tasks to support multi-document reasoning, such as cross-document comparison and aggregation. Our models, finetuned on 150K instruction-response pairs synthesized using WildLong, surpasses existing open-source long-context-optimized models across benchmarks while maintaining strong performance on short-context tasks without incorporating supplementary short-context data. By generating a more diverse and realistic long-context instruction dataset, WildLong enhances LLMs' ability to generalize to complex, real-world reasoning over long contexts, establishing a new paradigm for long-context data synthesis.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2025wildlong,
  title  = {WildLong: Synthesizing Realistic Long-Context Instruction Data at Scale},
  author = {Jiaxi Li and Xingxing Zhang and Xun Wang and Xiaolong Huang and Li Dong and Liang Wang and Si-Qing Chen and Wei Lu and Furu Wei},
  year   = {2025},
  eprint = {2502.16684},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.16684v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.16684.svg)](https://codeofpaper.com/paper/2502.16684)

Discussion