跳到正文
arXiv cs.AI· Hanno Ackermann, Hong Cai, Mohsen Ghafoorian, Amirhossein Habibian·· 10 小时前AI 评分32

HLA:Hadamard 线性注意力

HLA: Hadamard Linear Attention

AI 导读

论文提出 Hadamard Linear Attention(HLA),一种新的线性注意力方法:其非线性不像以往线性注意力那样分别作用于 queries 和 keys,而是在计算 pairwise 相似度之后施加,相当于用更高阶有理函数逼近 softmax。

正文 · 原文

View PDF HTML (experimental)

Abstract:The attention mechanism is an important reason for the success of transformers. It relies on computing pairwise relations between tokens. To reduce the high computational cost of standard quadratic attention, linear attention has been proposed as an efficient approximation. It employs kernel functions that are applied independently to the inputs before the pairwise similarities are calculated. That allows for an efficient computational procedure which, however, amounts to a low-degree rational function approximating softmax.
We propose Hadamard Linear Attention (HLA). Unlike previous works on linear attention, the nonlinearity in HLA is not applied separately to queries and keys, but, analogously to standard softmax attention, after the pairwise similarities have been computed. It will be shown that the proposed nonlinearity amounts to a higher-degree rational function to approximate softmax. An efficient computational scheme for the proposed method is derived that is similar to that of standard linear attention. In contrast to other approaches, no time-consuming tensor reshaping is necessary to apply the proposed algorithm. The effectiveness of the approach is demonstrated by applying it to a large diffusion transformer model for video generation, an application that involves very large amounts of tokens.
Subjects: Artificial Intelligence (cs.AI)
Cite as: arXiv:2602.12128 [cs.AI]
  (or arXiv:2602.12128v2 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2602.12128

arXiv-issued DOI via DataCite

Submission history

From: Hanno Ackermann [view email]
[v1] Thu, 12 Feb 2026 16:16:47 UTC (39,250 KB)
[v2] Wed, 25 Nov 2026 16:01:33 UTC (38,155 KB)

来源:arXiv cs.AI · arxiv.org