内部表示之间的微小差异在通过Transformer层时会收缩或增长,这会影响信息的保留方式以及模型对扰动的敏感性。然而,目前仍不清楚注意力权重的变化何时能将原本会收缩的表示差异转变为会增长的差异。我们提出了**各向异性表示动力学的混合门控理论(Mixture-Gated Theory of Anisotropic Representation Dynamics)**,该理论将自注意力分解为值传输(value transport)、查询门控(query gating)和键门控(key gating)。我们的分析揭示了被关注表示的几何结构如何约束门控,以及这些机制之间的相互作用如何逆转由值传输引起的收缩。我们将这一现象形式化为门控诱导的状态切换(gating-induced regime switching),即表示差异在固定注意力路由下收缩,但在全注意力(full attention)下扩张。我们推导了一个充要的谱准则,该准则可在无需穷举搜索的情况下证明切换的存在或不存在,并确定切换方向。除了存在性,我们的理论还刻画了最大相对切换强度,证明了门控可克服的收缩严重程度,并确定了每个非零方向都发生切换的子空间的最大维度。在四种Transformer架构上进行的实验通过解析和有限前向比较验证了这些预测,揭示了不同的查询-键门控机制以及非平凡的切换子空间。我们的结果为注意力路由如何改变局部表示动力学提供了一种机制和谱层面的理解。
英文摘要:
Small differences between internal representations can shrink or grow as they pass through a Transformer layer, affecting how information is preserved and how sensitive the model is to perturbations. Yet it remains unclear when changes in attention weights can turn a representation difference that would otherwise shrink into one that grows. We develop a Mixture-Gated Theory of Anisotropic Representation Dynamics that separates self-attention into value transport, query gating, and key gating. Our analysis reveals how the geometry of attended representations constrains gating and how interactions between these mechanisms can reverse contraction induced by value transport. We formalize this phenomenon as gating-induced regime switching, where a representation difference contracts under fixed attention routing but expands under full attention. We derive a necessary and sufficient spectral criterion that certifies the existence or absence of switching and identifies switching directions without exhaustive search. Beyond existence, our theory characterizes maximum relative switching strength, certifies the severity of contraction that gating can overcome, and determines the largest dimension of a subspace in which every nonzero direction switches. Experiments across four Transformer architectures validate these predictions through analytical and finite-forward comparisons, revealing distinct and joint query--key gating mechanisms and nontrivial switching subspaces. Our results provide a mechanistic and spectral understanding of how attention routing can alter local representation dynamics.
Towards Convergence Rates for Parameter Estimation in Gaussian-gated Mixture of Experts
The University of Texas at Austin(德克萨斯大学奥斯汀分校);The University of Queensland(昆士兰大学);Univ. Grenoble Alpes(格勒诺布尔大学);Inria(法国国家信息与自动化研究所);CNRS(法国国家科学研究中心);Grenoble INP(格勒诺布尔理工学院);LJK(让·昆廷诺实验室)
Fast Model Selection and Stable Optimization for Softmax-Gated Multinomial-Logistic Mixture of Experts Models
School of Computing, National University of Singapore, Singapore.(新加坡国立大学计算机学院);ARC Centre of Excellence for the Mathematical Analysis of Cellular Systems(细胞系统数学分析卓越研究中心);School of Mathematical Sciences, Queensland University of Technology, Brisbane, Australia.(昆士兰科技大学数学科学学院);Department of Statistics and Data Science, University of Texas at Austin, Austin, USA(德克萨斯大学奥斯汀分校统计与数据科学系)
Model Selection for Gaussian-gated Gaussian Mixture of Experts Using Dendrograms of Mixing Measures
University of Science - VNUHCM(越南胡志明市科学大学);ARC Centre of Excellence for the Mathematical Analysis of Cellular System(细胞系统数学分析卓越研究中心);School of Mathematical Sciences Queensland University of Technology(昆士兰理工大学数学科学学院);Department of Statistics University of Michigan(密歇根大学统计学系);Department of Statistics and Data Science University of Texas at Austin(德克萨斯大学奥斯汀分校统计学与数据科学系)
Dendrograms of Mixing Measures for Softmax-Gated Gaussian Mixture of Experts: Consistency Without Model Sweeps
Faculty of Mathematics and Computer Science, University of Science, Ho Chi Minh City, Vietnam(越南胡志明市科学大学数学与计算机科学学院);Vietnam National University Ho Chi Minh City, Vietnam(越南胡志明市国家大学);Faculty of Information Technology, University of Science, Ho Chi Minh City, Vietnam(越南胡志明市科学大学信息技术学院);ARC Centre of Excellence for the Mathematical Analysis of Cellular Systems(细胞系统数学分析 excellence 中心);School of Mathematical Sciences, Queensland University of Technology, Brisbane City, Australia(昆士兰科技大学数学科学学院);Department of Statistics and Data Science, University of Texas at Austin, Austin, USA(德克萨斯大学奥斯汀分校统计与数据科学系)
Robust Mixture-of-Expert Training for Convolutional Neural Networks
Michigan State University(密歇根州立大学);University of Texas at Austin(德克萨斯大学奥斯汀分校);The University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校);MIT(麻省理工学院);Harvard University(哈佛大学);UC Santa Barbara(加州大学圣巴巴拉分校);Carnegie Mellon University(卡内基梅隆大学);UIUC(伊利诺伊大学厄巴纳-香槟分校);IBM Research(IBM研究院)
Revisiting Incremental Stochastic Majorization-Minimization Algorithms with Applications to Mixture of Experts
School of Computing, National University of Singapore(新加坡国立大学计算机学院);ARC Centre of Excellence for the Mathematical Analysis of Cellular Systems(细胞系统数学分析卓越中心);School of Mathematical Sciences, Queensland University of Technology(昆士兰科技大学数学科学学院);Laboratoire d’Analyse et d’Architecture des Systèmes, CNRS(系统分析与架构实验室,CNRS);School of Medicine and Dentistry, Griffith University(格里菲斯大学医学与牙科学院);Department of Mathematics and Physical Sciences, La Trobe University(拉特罗布大学数学与物理科学系);Institute of Mathematics for Industry, Kyushu University(工业数学研究所,九州大学);Faculty of Mathematics and Computer Science, University of Science, Ho Chi Minh City(胡志明市大学数学与计算机科学学院);Vietnam National University, Ho Chi Minh City(越南国家大学,胡志明市);Univ. Grenoble Alpes, Inria, CNRS, Grenoble INP, LJK(格勒诺布尔阿尔卑斯大学,Inria,CNRS,格勒诺布尔INP,LJK)