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

暂停调优用于长上下文理解:一种轻量级的LLM注意力重新校准方法

Pause-Tuning for Long-Context Comprehension: A Lightweight Approach to LLM Attention Recalibration

Algoverse AI Research(Algoverse AI研究院)

James Begin, Namit Agrawal, Eshan Singh, Yicheng Fu, Sean O'Brien, Vasu Sharma, Kevin Zhu

AI总结:

针对LLM长上下文中的“中间迷失”问题,提出暂停调优方法,通过插入暂停标记微调模型以重新分配注意力,在128K上下文中显著提升性能。

摘要:

大型语言模型(LLMs)在理解任务上表现出显著的能力,但在长上下文理解方面仍存在困难,尤其是在处理长输入中间部分的内容时。这一局限性被称为“中间迷失”(Lost-in-the-Middle, LITM)问题,它阻碍了模型在长上下文中充分处理和利用信息。为了解决这一问题,我们引入了暂停调优(pause-tuning)技术,该技术通过重新分配注意力来增强对长上下文输入的理解。我们的方法是在包含人工插入的暂停标记(pause tokens)的数据集上对语言模型进行微调,这些标记将输入分割成更小、更易于管理的部分。我们使用“大海捞针”(Needle-in-a-Haystack)基准测试,将暂停调优与替代方法进行比较,该基准要求模型在长达128K标记的上下文中检索嵌入的信息。实验结果表明,性能显著提升,LLaMA 3.2 3B Instruct模型和LLaMA 3.1 8B Instruct模型的平均性能分别提高了10.61%和3.57%,这表明暂停调优成功增强了注意力重新分配并改善了长上下文保持能力。代码和数据可在https://anonymous.4open.science/r/LITM-PauseTokens-7357获取。

英文摘要:

LLMs have demonstrated remarkable proficiency in understanding tasks but continue to struggle with long-context comprehension, particularly with content located in the middle of extensive inputs. This limitation, known as the Lost-in-the-Middle (LITM) problem, hinders models from fully processing and utilizing information across lengthy contexts. To address this issue, we introduce pause-tuning, a technique that redistributes attention to enhance comprehension of long-context inputs. Our approach involves fine-tuning language models on datasets with artificially inserted pause tokens, which serve to segment the input into smaller, more manageable parts. We evaluate pause-tuning against alternative approaches using the Needle-in-a-Haystack benchmark, where models must retrieve information embedded within contexts of up to 128K tokens. Experimental results demonstrate significant performance gains, with the LLaMA 3.2 3B Instruct model and the LLaMA 3.1 8B Instruct model improving by 10.61% and 3.57% respectively on average, suggesting that pause-tuning successfully enhances attention redistribution and improves long-context retention. The code and data are available at https://anonymous.4open.science/r/LITM-PauseTokens-7357.

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

↑