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

关注你所需要的内容

Pay Attention to What You Need

Yifei Gao, Shaohong Chen, Lei Wang, Ruiting Dai, Ziyun Zhang, Kerui Ren, Jiaji Wu, Jun Cheng

AI总结:

针对大语言模型长上下文理解能力不足的问题,本文提出Scaled ReAttention(SRA)方法,在推理阶段调整注意力分数以增强信息检索能力,无需额外训练即可提升多种下游任务性能。

摘要:

尽管大语言模型(LLMs)已在自然语言处理领域取得显著成功,但它们在长上下文理解方面仍存在困难。缓解这一问题的传统方法通常依赖微调或重新训练,这类方法不仅资源消耗大,还难以部署在轻量级工业场景中。本文探究了无需任何额外资源即可实现该目标的可能性。通过深入研究LLMs中的注意力机制,我们提出了一种名为Scaled ReAttention(SRA,缩放重注意力)的方法,通过在推理阶段策略性地调整注意力分数,增强LLMs解读和检索信息的能力。大量实验表明,集成SRA可显著提升LLMs在多种下游任务上的性能,凸显了其在无需承担传统训练开销的情况下增强语言理解的实用潜力。

英文摘要:

Although large language models (LLMs) have achieved significant success in natural language processing, they still struggle with long-context comprehension. Traditional approaches to mitigating this issue typically rely on fine-tuning or retraining, which is both resource-intensive and challenging to deploy in lightweight industrial settings. In this paper, we investigate the potential to accomplish this without any additional resources. Through an in-depth study of the attention mechanism in LLMs, we propose a method called Scaled ReAttention (SRA) to strengthen LLMs' ability to interpret and retrieve information by strategically manipulating their attention scores during inference. Through extensive experiments, we demonstrate that integrating SRA significantly boosts LLMs' performance on a variety of downstream tasks, highlighting its practical potential for enhancing language understanding without incurring the overhead of traditional training.

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

↑