Which Long Documents Matter? A Controlled Study of Data Selection for Context Extension
Junlong Jia, Jiang Zhou, Xing Wu, Chaochen Gao Tinghao Yu, Feng Zhang, Lilin Wang
Abstract
Natural long documents are widely used for context extension, but which selection pipelines are effective remains unclear. We conduct a controlled comparison on Qwen2.5-3B at 128K under matched 6B-token continued-training budgets. Random sampling of natural long documents (random-long) outperforms repacking at longer evaluation lengths. Within the same candidate pool, selecting documents with high LongPPL key-token density yields further gains, unlike the evaluated generic-quality and LLM-judge selectors. We introduce truncLongPPL to reduce scoring cost by computing key-token density over a truncated prefix. At 128K, scoring the first half of the reference span yields downstream performance close to full-span scoring with a measured end-to-end scoring speedup. Across three training seeds, truncLongPPL achieves the highest mean scores among evaluated pipelines, exceeding random-long by 4.54 points on validation HELMET and 3.28 on held-out RULER, with gains most consistent in retrieval. At a 256K target context, it gains 2.82 average RULER points over random-long on Qwen2.5-3B. In short/long mixed training across Qwen2.5-3B, Qwen3-8B, and OLMo~3-7B, it gains 1.47--7.31 average RULER points over random-long mixing, with seven-task short-context averages within 0.23 points of the corresponding baselines. After supervised fine-tuning (SFT), Qwen3-8B and OLMo~3-7B models trained with selected long documents outperform their random-long counterparts by 1.13--1.67 points on LongBench v2 and 0.62--1.44 points on MRCR.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI
- Comments
- Work in progress
Related papers
VistaTree: Question Answering over Long Multimodal Documents with Image-Derived Summary Trees
Shared title terminologycs.CLYexiang Cheng, Xiaochen Zheng, David Tokar et al.
ContextFact: Remembering Facts in Context for Long-Term Conversational Agents
Shared title terminologycs.CLJiayu Huang, Yichao Cai, Xinyu Li et al.
Shaping the Document, Not the Model: Optimized Suffixes for Context Following
Shared title terminologycs.CLGia-Bao Dinh Ho, Sekh Mainul Islam, Masahiro Kaneko et al.
LEAPS: Long-context Evaluation of Adaptive Pattern Learning and State Tracking
Shared title terminologycs.CLHoward Yen, Nitya Mani, Alex Renda et al.
The Bottleneck Is Retrieval, Not Reading: Diagnosing Evidence-Based Generation with RAG for Long Context Question Answering
Shared title terminologycs.CLDebopriyo Banerjee, Owais Aijaz, Ahmer Tabassum et al.
DiaLong: Benchmarking Reminiscence in Long-Context Dialogues
Shared title terminologycs.CLOwen Bianchi, Samer Aslan, Ryunosuke Saito