arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.25804cs.CL
收藏

超越长度:量化长程信息以用于长上下文 LLM 预训练数据

Beyond Length: Quantifying Long-Range Information for Long-Context LLM Pretraining Data

University of California, Los Angeles(加州大学洛杉矶分校);University of California, San Diego(加州大学圣地亚哥分校);Microsoft Research(微软研究院)

Haoran Deng, Yingyu Lin, Zhenghao Lin, Xiao Liu, Yizhou Sun, Yi-An Ma, Yeyun Gong

AI总结:

本文提出 LongFilter 框架,通过对比长上下文与短上下文模型预测的信息增益来筛选长程依赖数据,显著提升了 LLaMA-3-8B 在长上下文任务上的性能。

摘要:

长上下文语言模型通过利用跨越扩展文本跨度的依赖关系,解锁了在推理、代码生成和文档摘要方面的先进能力。然而,大量现成的长文本数据缺乏有意义的长距离依赖;大多数文本跨度仅使用局部上下文即可预测。在此类数据上训练效率低下,使得谨慎的数据选择至关重要。因此,我们引入了 LongFilter,这是一个为长上下文预训练量身定制训练数据的框架。LongFilter 通过对比长上下文与短上下文设置下的模型预测,来衡量扩展上下文提供的信息增益,从而识别出长程依赖至关重要的样本。使用 LLaMA-3-8B 将其上下文长度从 8K 扩展到 64K 的实验表明,LongFilter 能高效选择高质量数据,并在 HELMET、LongBench 和 RULER 等基准上取得显著提升。

英文摘要:

Long-context language models unlock advanced capabilities in reasoning, code generation, and document summarization by leveraging dependencies across extended spans of text. However, a significant portion of readily available long-text data lacks meaningful long-distance dependencies; most spans can be predicted using only local context. Training on such data is inefficient, making careful data selection crucial. Therefore, we introduce LongFilter, a framework for curating training data tailored to long-context pretraining. LongFilter measures the information gain provided by extended context by contrasting model predictions under long-context versus short-context settings, thereby identifying samples where long-range dependencies are essential. Experiments with LLaMA-3-8B, extending its context length from 8K to 64K, show that LongFilter efficiently selects high-quality data and yields substantial improvements on benchmarks such as HELMET, LongBench, and RULER.

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

↑