arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.14727cs.LG
收藏

Transformer 的表达能力:从热带几何学视角出发

Geometric Capacity of Transformers: A Tropical Geometry Perspective

Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究院);University of Chinese Academy of Sciences(中国科学院大学);Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学人工智能学院)

Ye Su, Yong Liu

AI总结:

本文从热带几何学角度研究Transformer的几何表达能力,通过将自注意力建模为向量值热带有理映射,证明其在零温极限下精确生成幂 Voronoi 图,并推导出Transformer线性区域数量的紧渐进行为。

摘要:

为了量化Transformer的几何表达能力,我们引入热带几何框架来表征其精确的空间划分能力。通过将自注意力建模为向量值热带有理映射,我们证明其在零温极限下恰好等于幂 Voronoi 图。基于这一等价性,我们建立了多头自注意力(MHSA)的组合理由:通过牛顿多面体的Minkowski和,多头聚合将多面体复杂度扩展到O(N^H),克服了单头的O(N)瓶颈。扩展到深度架构,我们推导出Transformer中线性区域数量的首个紧渐进行为(Θ(N^{d_{\text{model}}L})),证明由序列长度N、环境嵌入维度d_{\text{model}}和网络深度L内在驱动的组合爆炸。重要的是,我们保证这种理想化的多面体骨架在几何上是稳定的:有限温度软注意力通过指数紧的微分近似界保持这些拓扑划分。

英文摘要:

To quantify the geometric capacity of transformers, we develop a tropical-geometric framework for analyzing the spatial partitions induced by conditioned self-attention. In the zero-temperature limit, we show that fixed-key top-$1$ routing is exactly represented by a power diagram in query space, while an auxiliary log-lifted value parameterization yields a vector-valued tropical rational representation. For Multi-Head Self-Attention (MHSA) with sequence length $N$ and $H$ attention heads, the joint routing geometry is encoded by Minkowski sums of headwise Newton polytopes, giving an $\mathcal{O}(N^H)$ universal bound that sharpens to $\mathcal{O}((HN)^{d_{\mathrm{model}}-1})$ once the number of heads reaches the intrinsic dimension $d_{\mathrm{model}}$. Extending this analysis across depth $L$, we derive the first tight asymptotic bounds on the number of linear regions in transformers ($Θ\!\left(N^{\min\{H,d_{\mathrm{model}}-1\}L}\right)$). We further show that finite-temperature softmax preserves the top-$1$ routing structure and admits exponentially decaying local approximation and differential bounds away from routing boundaries.

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

↑