从分层混合专家视角看门控注意力的统计理论
A Statistical Theory of Gated Attention through the Lens of Hierarchical Mixture of Experts
研究严格证明门控注意力矩阵与多头自注意力矩阵的每个元素都可写成分层混合专家形式,将学习重构为专家估计问题后,门控注意力仅需多项式数量的数据点即可恢复模型参数,而多头自注意力需指数级数据点才能达到相同估计误差。分析同时从理论上解释了门控注意力为何更能缓解注意力汇现象与低秩瓶颈,并说明门控置于缩放点积注意力或值映射输出处优于多头自注意力架构中的其他位置。
arXiv:2602.01468v2 Announce Type: replace Abstract: Self-attention has greatly contributed to the success of the widely used Transformer architecture by enabling learning from data with long-range dependencies. In an effort to improve performance, a gated attention model that leverages a gating mechanism within the multi-head self-attention has recently been proposed as a promising alternative. Gated attention has been empirically demonstrated to increase the expressiveness of low-rank mapping in standard attention and even to eliminate the attention sink phenomenon. Despite its efficacy, a clear theoretical understanding of gated attention's benefits remains lacking in the literature. To close this gap, we rigorously show that each entry in a gated attention matrix or a multi-head self-attention matrix can be written as a hierarchical mixture of experts. By recasting learning as an expert estimation problem, we demonstrate that gated attention is more sample-efficient than multi-head self-attention. In particular, while the former needs only a polynomial number of data points to recover the model parameters, the latter requires exponentially many data points to achieve the same estimation error. Furthermore, our analysis also provides a theoretical justification for why gated attention is more effective at mitigating the attention sink phenomenon and the low-rank bottleneck when a gate is placed at the output of the scaled dot product attention or the value map rather than at other positions in the multi-head self-attention architecture.
来源:arXiv (AI + Vision + Imaging) · arxiv.org