LongCrafter: Towards Diverse Long-Context Understanding via Evidence-Graph-Guided Instruction Synthesis
Chenhao YuanYinhao XuShuwen XuXizhi YangJiaxiang LiuChenxi ZhouShaoping HuangHaolin Ren
Pengfei CaoJun ZhaoKang Liu Chenhao Yuan
Yinhao Xu
Shuwen Xu
Xizhi Yang
Jiaxiang Liu
Chenxi Zhou
Shaoping Huang
Haolin Ren

Pengfei Cao
Jun Zhao
Kang Liu
+11
LongCrafter is a structured framework for synthesizing long-context SFT data. It introduces a hierarchical task taxonomy covering local/shallow and global/deep levels, yielding 32 fine-grained task types. Guided by this taxonomy, it constructs task-aligned long contexts, decomposes them into evidence graphs modeling cross-paragraph dependencies, and generates instruction-response pairs strictly grounded in located evidence spans, ensuring controllable difficulty and faithful reasoning. Models fine-tuned on LongCrafter data outperform all SFT baselines and even official post-trained models on LongBench, LongBench v2, and LooGLE, with largest gains on high-difficulty tasks, and effectively mitigate the ``lost in the middle'' problem.

arXiv ·
· July 7, 2026