arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.12181cs.CLcs.LG
收藏

关于LLMs中长上下文扩展与泛化的对照研究

A Controlled Study on Long Context Extension and Generalization in LLMs

Shanghai AI Lab(上海人工智能实验室);Massachusetts Institute of Technology(麻省理工学院);Cornell University(康奈尔大学)

Yi Lu, Jing Nathan Yan, Songlin Yang, Justin T. Chiu, Siyu Ren, Fei Yuan, Wenting Zhao, Zhiyong Wu, Alexander M. Rush

AI总结:

本研究在一致基础模型与数据下标准化评估长上下文扩展方法,发现困惑度是长上下文任务的关键指标,近似注意力方法表现不佳,精确微调在扩展范围内有效但外推仍困难。

摘要:

广泛的文本理解与上下文学习要求语言模型能够利用完整的文档上下文。由于直接训练长上下文模型在实现上存在挑战,已有许多方法被提出用于扩展模型以处理长上下文。然而,由于数据和模型类别的差异,比较这些方法一直颇具挑战,导致在如何评估长上下文性能以及其是否不同于标准评估方面存在不确定性。我们实施了一套针对扩展方法的对照协议与标准化评估,采用一致的基础模型和扩展数据。我们的研究为长上下文行为提供了几点见解。首先,我们重申了困惑度作为通用性能指标的关键作用,即便在更长上下文的任务中也是如此。其次,我们发现当前的近似注意力方法在长上下文任务中系统性表现不佳。最后,我们证实,基于精确微调的方法通常在其扩展范围内是有效的,而外推依然困难。所有代码库、模型和检查点都将开源,以促进透明度并推动这一AI发展关键领域的进一步研究。

英文摘要:

Broad textual understanding and in-context learning require language models that utilize full document contexts. Due to the implementation challenges associated with directly training long-context models, many methods have been proposed for extending models to handle long contexts. However, owing to differences in data and model classes, it has been challenging to compare these approaches, leading to uncertainty as to how to evaluate long-context performance and whether it differs from standard evaluation. We implement a controlled protocol for extension methods with a standardized evaluation, utilizing consistent base models and extension data. Our study yields several insights into long-context behavior. First, we reaffirm the critical role of perplexity as a general-purpose performance indicator even in longer-context tasks. Second, we find that current approximate attention methods systematically underperform across long-context tasks. Finally, we confirm that exact fine-tuning based methods are generally effective within the range of their extension, whereas extrapolation remains challenging. All codebases, models, and checkpoints will be made available open-source, promoting transparency and facilitating further research in this critical area of AI development.

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

↑