门控使曲率:注意力中的几何表达性差距
Gating Enables Curvature: A Geometric Expressivity Gap in Attention
AI总结:
研究揭示门控注意力机制在几何表达性上的优势,通过分析高斯分布均值参数的几何结构,发现门控能产生非平坦流形,提升模型表现,尤其在非线性决策边界任务中表现更佳。
摘要:
乘法门控在神经架构中广泛应用,并被应用于注意力层以提升大语言模型的性能和训练稳定性。尽管门控注意力取得成功,其数学影响仍不明确。本文通过建模输出为高斯分布的均值参数,并分析诱导的Fisher-Rao几何,发现未门控的注意力操作受限于内在平坦的统计流形,而乘法门控能产生非平坦几何,包括正曲率流形,这些在未门控设置中无法达到。这些结果建立了未门控与门控注意力之间的几何表达性差距。实验表明,门控模型在需要非线性决策边界的任务中表现出更高的表示曲率和改进的性能,而在线性决策边界任务中无一致优势。此外,我们识别出一个结构化区域,在此区域内曲率在组合下累积,产生系统性的深度放大效应。
英文摘要:
Multiplicative gating is widely used in neural architectures and has recently been applied to attention layers to improve performance and training stability in large language models. Despite the success of gated attention, the mathematical implications of gated attention mechanisms remain poorly understood. We study attention through the geometry of its representations by modeling outputs as mean parameters of Gaussian distributions and analyzing the induced Fisher--Rao geometry. We show that ungated attention operator is restricted to intrinsically flat statistical manifolds due to its affine structure, while multiplicative gating enables non-flat geometries, including positively curved manifolds that are unattainable in the ungated setting. These results establish a geometric expressivity gap between ungated and gated attention. Empirically, we show that gated models exhibit higher representation curvature and improved performance on tasks requiring nonlinear decision boundaries whereas they provide no consistent advantage on tasks with linear decision boundaries. Furthermore, we identify a structured regime in which curvature accumulates under composition, yielding a systematic depth amplification effect.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。