所有路径都通向崩溃
All Routes Lead to Collapse
AI总结:
本文证明注意力下沉、表示崩溃和范数分层并非Transformer特有,而是基于内容的路由在固定相似度度量下的普遍现象,并提出几何视角诊断路由机制与表示的不匹配。
摘要:
注意力下沉、表示崩溃和范数分层被视为Transformer特有的病理现象。我们证明它们并非注意力特有:它们是内容基路由在固定相似度度量下的表现。我们给出一个重述恒等式:softmax注意力是在常数键范数下对欧几里得距离进行玻尔兹曼加权聚合,因此其分数忽略了$-\|k\|^2$项,对键的幅度不敏感。这预测任何度量与其表示不匹配的路由器应通过集中路由并崩溃被路由的表示来补偿。我们在不同轴上进行评分和聚合的路由器上测试:跨令牌的softmax注意力(九个预训练Transformer)、跨节点的图注意力、跨时间的选择性状态空间模型和循环混合器、以及跨深度的学习残差。所有路由器都发展出相同的特征,并且两个模型内消融实验表明这是由路由机制而非偶然动态引起的。形式是偶然的,由每个路由器在其内容分数旁携带的位置刹车强度决定;我们扫描该刹车并将其起始点移动至整个范围。机制不是偶然的,且不需要范数分层:具有范数归一化键的路由器同样集中。我们不声称这些模型实现了黎曼几何;几何视角是一种诊断,指出了平坦、范数盲度量的不足。
英文摘要:
Attention sinks, representation collapse, and norm stratification are treated as transformer-specific pathologies. We show they are not specific to attention: they are what content-based routing does under a fixed similarity metric. We give a reframing identity: softmax attention is Boltzmann-weighted aggregation over Euclidean distances with constant key norms, so its score omits a $-\|k\|^2$ term and is blind to key magnitude. This predicts that any router whose metric is ill-matched to its representations should compensate, by concentrating its routing and collapsing the routed representations. We test it on routers that score and aggregate over different axes: softmax attention over tokens (nine pretrained transformers), graph attention over nodes, a selective state-space model and a recurrent mixer over time, and learned residuals over depth. All develop the same signature, and two within-model ablations show it is caused by the routing mechanism rather than by incidental dynamics. The form is contingent, set by the strength of the positional brake each router carries alongside its content score; we sweep that brake and move the onset across its whole range. The mechanism is not contingent, and it does not require norm stratification: a router with norm-normalized keys concentrates just the same. We do not claim these models implement Riemannian geometry; the geometric view is a diagnostic that names the inadequacy of the flat, norm-blind metric.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。