arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.01578cs.CL
收藏

ReGLA:改进门控线性注意力

ReGLA: Refining Gated Linear Attention

DIRO, Université de Montréal(蒙特利尔大学DIRO);Huawei Noah’s Ark Lab(华为诺亚实验室);Advanced Micro Devices, Inc.(先进微器件公司)

Peng Lu, Ivan Kobyzev, Mehdi Rezagholizadeh, Boxing Chen, Philippe Langlais

AI总结:

针对大型语言模型中softmax注意力的二次复杂度问题,本文提出改进的门控线性注意力架构ReGLA,通过优化特征映射、归一化层和门控机制,在从零开始训练和持续预训练等任务上显著提升了性能。

摘要:

大型语言模型(LLMs)的最新进展以其在复杂语言建模任务中的卓越性能而脱颖而出。然而,这些模型也因其巨大的计算和存储需求而闻名,这主要归因于softmax注意力的二次计算复杂度。为了缓解这一问题,线性注意力被设计用于降低标准Transformer中固有的二次时空复杂度。在这项工作中,我们对三个显著影响门控线性注意力模块性能的关键组件进行了全面探索:特征映射、归一化和门控机制。我们开发了一个特征映射函数,以解决先前方案忽略的一些关键问题。随后,我们为整合归一化层提供了进一步的理论依据,以稳定训练过程。此外,我们探索了门控机制的饱和现象,并通过一个改进模块对其进行了增强。我们进行了广泛的实验,结果表明我们的架构在包括从零开始训练和基于持续预训练的后线性化等大量任务中,均优于先前的门控线性注意力机制。

英文摘要:

Recent advancements in Large Language Models (LLMs) have set themselves apart with their exceptional performance in complex language modelling tasks. However, these models are also known for their significant computational and storage requirements, primarily due to the quadratic computation complexity of softmax attention. To mitigate this issue, linear attention has been designed to reduce the quadratic space-time complexity that is inherent in standard transformers. In this work, we embarked on a comprehensive exploration of three key components that substantially impact the performance of the Gated Linear Attention module: feature maps, normalization, and the gating mechanism. We developed a feature mapping function to address some crucial issues that previous suggestions overlooked. Then we offered further rationale for the integration of normalization layers to stabilize the training process. Moreover, we explored the saturation phenomenon of the gating mechanism and augmented it with a refining module. We conducted extensive experiments and showed our architecture outperforms previous Gated Linear Attention mechanisms in extensive tasks including training from scratch and post-linearization with continual pre-training.

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

↑