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

MHLA: 通过令牌级多头恢复线性注意力的表达性

MHLA: Restoring Expressivity of Linear Attention via Token-Level Multi-Head

Peking University(北京大学);NVIDIA(英伟达)

Kewei Zhang, Ye Huang, Yufan Deng, Jincheng Yu, Junsong Chen, Huan Ling, Enze Xie, Daquan Zhou

AI总结:

MHLA通过令牌级多头机制恢复线性注意力的表达性,提升多个领域任务性能

摘要:

尽管Transformer架构在许多领域占主导地位,但其二次自注意力复杂度阻碍了其在大规模应用中的使用。线性注意力提供了一种高效的替代方案,但直接应用时往往会降低性能,现有的修复方法通常通过额外模块(例如深度可分离卷积)重新引入计算开销,从而违背了原始目的。在本工作中,我们识别出这些方法中的关键失败模式:全局上下文崩溃,即模型失去表征多样性。为了解决这个问题,我们提出了多头线性注意力(MHLA),它通过在令牌维度上划分的头内计算注意力来保持这种多样性。我们证明MHLA在保持线性复杂度的同时恢复了softmax注意力的大部分表达能力,并在多个领域验证了其有效性,实现了在ImageNet分类上的3.6%提升,在NLP上的6.3%提升,在图像生成上的12.6%提升,在视频生成上的41%提升(在同一时间复杂度下).

英文摘要:

While the Transformer architecture dominates many fields, its quadratic self-attention complexity hinders its use in large-scale applications. Linear attention offers an efficient alternative, but its direct application often degrades performance, with existing fixes typically re-introducing computational overhead through extra modules (e.g., depthwise separable convolution) that defeat the original purpose. In this work, we identify a key failure mode in these methods: global context collapse, where the model loses representational diversity. To address this, we propose Multi-Head Linear Attention (MHLA), which preserves this diversity by computing attention within divided heads along the token dimension. We prove that MHLA maintains linear complexity while recovering much of the expressive power of softmax attention, and verify its effectiveness across multiple domains, achieving a 3.6\% improvement on ImageNet classification, a 6.3\% gain on NLP, a 12.6\% improvement on image generation, and a 41\% enhancement on video generation under the same time complexity.

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

↑