arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.12766cs.CLcs.AI
收藏

NExtLong:面向无需长文档的有效长上下文训练

NExtLong: Toward Effective Long-Context Training without Long Documents

School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院);Tsinghua University(清华大学);Xiaohongshu Inc.(小红书公司)

Chaochen Gao, Xing Wu, Zijia Lin, Debing Zhang, Songlin Hu

AI总结:

NExtLong通过负文档扩展合成长上下文数据,增强模型的长距离依赖建模能力,在HELMET和RULER基准上显著提升性能,减少对非合成长文档的依赖。

摘要:

具有扩展上下文窗口的大型语言模型(LLMs)取得了显著进展,但由于长文档的稀缺性,这仍然是一个挑战。现有方法倾向于合成长上下文数据,但缺乏明确的机制来加强长距离依赖建模。为了解决这一局限性,我们提出了NExtLong,一种通过负文档扩展(Negative document Extension)合成长上下文数据的新框架。NExtLong将文档分解为多个元块(meta-chunks),并通过交错插入从预训练语料库中检索到的硬负干扰项(hard negative distractors)来扩展上下文。这种方法迫使模型从干扰内容中区分长距离依赖的上下文,从而增强其建模长距离依赖的能力。大量实验表明,与现有的长上下文合成方法以及在不合成长文档上训练的主流模型相比,NExtLong在HELMET和RULER基准上取得了显著的性能提升。这些发现凸显了NExtLong减少对非合成长文档依赖的能力,使其成为开发先进长上下文LLMs的有效框架。

英文摘要:

Large language models (LLMs) with extended context windows have made significant strides yet remain a challenge due to the scarcity of long documents. Existing methods tend to synthesize long-context data but lack a clear mechanism to reinforce the long-range dependency modeling. To address this limitation, we propose NExtLong, a novel framework for synthesizing long-context data through Negative document Extension. NExtLong decomposes a document into multiple meta-chunks and extends the context by interleaving hard negative distractors retrieved from pretraining corpora. This approach compels the model to discriminate long-range dependent context from distracting content, enhancing its ability to model long-range dependencies. Extensive experiments demonstrate that NExtLong achieves significant performance improvements on the HELMET and RULER benchmarks compared to existing long-context synthesis approaches and leading models, which are trained on non-synthetic long documents. These findings highlight NExtLong's ability to reduce reliance on non-synthetic long documents, making it an effective framework for developing advanced long-context LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑