EntropyLong:通过预测不确定性实现有效的长上下文训练
EntropyLong: Effective Long-Context Training via Predictive Uncertainty
AI总结:
针对长上下文语言模型训练中现有数据构建方法难保证真长程依赖的问题,提出EntropyLong方法,通过预测不确定性验证依赖质量构建训练数据,显著提升长上下文任务性能。
摘要:
训练长上下文语言模型以捕获长程依赖关系需要专门的数据构建。当前的方法,如通用文本拼接或基于启发式的变体,往往无法保证存在真正的长程依赖。我们提出了EntropyLong,这是一种新颖的数据构建方法,利用预测不确定性来验证依赖质量。我们的方法识别文档中的高熵位置,从大型语料库中检索语义相关的上下文,并通过评估它们是否降低预测熵来验证其效用。这种模型在环的验证确保每个依赖关系都代表可衡量的信息增益,而非虚假相关性。我们通过将原始文档与这些经过验证的上下文补充相结合,构建具有长程依赖的训练样本。使用FineWebEdu和Cosmopedia,我们生成了一个包含128K长度序列的数据集,其中的依赖关系均经过验证。在该数据上训练的模型在RULER基准测试中表现出显著提升,尤其是在需要远距离信息的任务中。经过指令微调后,我们的模型在LongBenchv2上也取得了大幅增益,证明长上下文理解能力得到增强。大量消融研究进一步验证了基于熵的验证对于长上下文训练的必要性和有效性。
英文摘要:
Training long-context language models to capture long-range dependencies requires specialized data construction. Current approaches, such as generic text concatenation or heuristic-based variants, frequently fail to guarantee genuine long-range dependencies. We propose EntropyLong, a novel data construction method that leverages predictive uncertainty to verify dependency quality. Our approach identifies high-entropy positions in documents, retrieves semantically relevant contexts from large corpora, and verifies their utility by assessing whether they reduce prediction entropy. This model-in-the-loop verification ensures each dependency represents measurable information gain rather than spurious correlation. We construct training samples with long-range dependencies by combining original documents with these verified contextual supplements. Using FineWebEdu and Cosmopedia, we generate a dataset of 128K-length sequences with verified dependencies. Models trained on this data demonstrate significant improvements on RULER benchmarks, particularly in tasks requiring distant information. Following instruction fine-tuning, our models also achieve substantial gains on LongBenchv2, demonstrating enhanced long-context understanding. Extensive ablation studies further validate the necessity and effectiveness of entropybased verification for long-context training.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。