arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.07160cs.CLcs.AIcs.LGstat.ML
收藏

自由能混合器

Free Energy Mixer

Georgia Institute of Technology(佐治亚理工学院)

Jiecheng Lu, Shihao Yang

AI总结:

自由能混合器通过值驱动的对数线性倾斜,改进了注意力机制的读取过程,实现更高效的通道选择,同时保持并行性和复杂度,适用于多种任务。

摘要:

标准注意力机制在存储键/值时是无损的,但通过每个头部的凸平均来读取它们,阻塞了通道选择。我们提出了自由能混合器(FEM):一种自由能(对数和指数)读取机制,它在索引上应用了一个值驱动的、每通道对数线性倾斜,以快速先验(例如,来自标准注意力的查询/键)进行处理。与试图改进和丰富(q,k)评分分布的方法不同,FEM将其视为先验,并在保持相同复杂度的情况下生成一个值感知的后验读取,平滑地从平均移动到每通道选择,随着可学习的逆温度增加,同时仍保持并行性和原始渐近复杂度(softmax为O(T²);线性可变体为O(T))。我们实例化了一个两级门控FEM,它可以与标准和线性注意力、线性RNNs和SSMs无缝集成。在匹配的参数预算下,它在NLP、视觉和时间序列任务上一致优于强基线。

英文摘要:

Standard attention stores keys/values losslessly but reads them via a per-head convex average, blocking channel-wise selection. We propose the Free Energy Mixer (FEM): a free-energy (log-sum-exp) read that applies a value-driven, per-channel log-linear tilt to a fast prior (e.g., from queries/keys in standard attention) over indices. Unlike methods that attempt to improve and enrich the $(q,k)$ scoring distribution, FEM treats it as a prior and yields a value-aware posterior read at unchanged complexity, smoothly moving from averaging to per-channel selection as the learnable inverse temperature increases, while still preserving parallelism and the original asymptotic complexity ($O(T^2)$ for softmax; $O(T)$ for linearizable variants). We instantiate a two-level gated FEM that is plug-and-play with standard and linear attention, linear RNNs and SSMs. It consistently outperforms strong baselines on NLP, vision, and time-series at matched parameter budgets.

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

↑