Exclusive-Region Anchor Routing 解决 Vision Transformer 锚点坍缩问题
Anchors That Move Without Collapsing: Exclusive-Region Anchor Routing for Vision Transformers
搞 ViT 效率优化的人可以看看这篇:它先证明 Perceiver 和 AnchorFormer 的锚点会坍缩成一个摘要,再给出结构上不会坍缩的独占 Voronoi 划分, CIFAR-100 上比 Representative Attention 高 2.4-3.6 个点, 大分辨率下比 FlashAttention 训练快 1.5 倍、FLOPs 只有五分之一。缺点也写得很清楚:更费显存,从头训练打不过 ResNet-18。
一篇 arXiv 论文研究 Vision Transformer 中锚点(anchor)token 的路由机制。
作者发现 Perceiver 式通路和 AnchorFormer 通路在共享主干上会坍缩为单一摘要,后者的池化图相似度达 0.99,而 Representative Attention 等软路由仍部分冗余(0.
59-0.79)。
论文提出的独占区域划分(exclusive partition)在结构上不可能坍缩,在 CIFAR-100 上逐项比对比 Representative Attention 高 2.4-3.
6 个百分点。进一步的 focus anchors 将多数锚点放在学习到的重要性图峰值上,同时保持独占 Voronoi 划分,在杂乱画布场景比固定划分高 1.
5 个点(95% CI [0.5, 2.
6]),但在全高清交通标志识别上无优势。两种变体都能以约五分之一的 FLOPs 匹配带局部窗口的稠密注意力,固定划分每步训练速度比 FlashAttention 快 1.
5 倍,代价是内存更高。作者同时坦承局限:硬独占分配下 softmax 和 Sinkhorn 松弛会发散,Gumbel-softmax 可训练但精度更低;
且在此从头训练的场景下,ResNet-18 在所有任务上精度都更高。
Anchors That Move Without Collapsing: Exclusive-Region Anchor Routing for Vision Transformers
Anchor tokens let a vision transformer exchange global information through a few summaries, but nothing forces different anchors to summarise different things. On one shared backbone we show that a Perceiver-style pathway and an AnchorFormer pathway collapse to a single summary, the latter despite its mass normalisation (pooling-map similarity 0.99), while other soft pathways, including Representative Attention, stay partly redundant (0.59-0.79). These results concern the routing modules inside our block, not the full published models. An exclusive partition of the patch grid cannot collapse by construction, and matched component by component it is 2.4-3.6 points more accurate than Representative Attention on CIFAR-100. We then propose focus anchors, which place most anchors at the peaks of a learned importance map while all anchors keep one exclusive Voronoi partition. Focus anchors beat a fixed partition on a cluttered canvas (+1.5 points, 95% CI [0.5, 2.6]) but not on full-HD traffic-sign recognition. There, both variants match dense attention with local windows at about a fifth of its FLOPs, and the fixed partition also trains 1.5x faster per step than dense attention with FlashAttention, though both use more memory; a ViT on a downsampled input loses half its mean average precision. Hard exclusive assignment is the only region assignment we tested that is both stable and most accurate: softmax and Sinkhorn relaxations diverge, and Gumbel-softmax trains but is less accurate. We also report the limits: a ResNet-18 is more accurate on every task we trained it on in this from-scratch regime, and anchors train faster than FlashAttention only from about 1536x1536 pixels and never use less memory.
This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Vision Transformer, AnchorFormer, Perceiver, FlashAttention.
Source attribution: curated from arXiv cs.LG (@Aadi Gupta).