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.
Figures & tables
Figure 1: One block. Patches communicate locally inside windows and globally only through their own anchor; the N×N attention of a ViT is replaced by A×A attention among anchors.
Pathway
Test accuracy (%)
Map similarity
Spread
perceiver
40.92 ± 0.30
0.998
0.00
anchorformer
42.52 ± 0.68
0.990
0.06
competitive
42.14 ± 0.67
0.792
0.22
paca
42.02 ± 0.07
0.592
0.18
rpattention (with its conv)
47.54 ± 0.73
0.683
0.27
dense (no anchors)
40.93 ± 0.95
–
–
Table 1: Anchor collapse on CIFAR-100 at 2242 (16 anchors, 10 epochs). Mean ± std over seeds 42/43/44; similarity and spread averaged over blocks and seeds. Bottom: the 3×3 depth-wise convolution bypass of Representative Attention removed from it, or added to the partition.
Figure 2: Collapse metrics per block (seed 42), trained (solid) and at initialisation (dashed), for the pathways of the original comparison. The perceiver and anchorformer pathways converge to the same summary; the fixed partition keeps zero map similarity and the highest spread.
Cluttered CIFAR-10
Tiny IN
Model
Params
GFLOPs
10 ep.
30 ep.
15 ep.
focus -16
11.4M
5.49
49.84 ± 0.26
66.82 ± 0.66
17.68 ± 0.33
focus -4
11.4M
5.45
47.52 ± 1.11
64.67 ± 0.26
–
fixed -16
11.4M
5.49
46.71 ± 1.72
65.29 ± 0.94
16.73 ± 0.46
dense-win
12.8M
7.25
–
65.10 ± 0.45
20.50 ± 0.29
ViT, 2562
9.3M
5.28
46.74 ± 0.42
61.99 ± 0.54
18.25 ± 0.33
Table 2: Cluttered CIFAR-10 and Tiny ImageNet canvas: test accuracy (%), mean ± std over 3 seeds. GFLOPs per image include attention. Bottom: paired gaps, mean [95% CI].
Figure 3: Final-block regions (colours) and anchor positions in each block (dots, darker = later) of focus -16 on four test canvases; the white box is the object.
Figure 4: Test accuracy during training, mean over 3 seeds (band: min–max; omitted for ResNet-18, whose per-epoch test accuracy fluctuates strongly). Anchor models solid, baselines dashed or dotted.
Megapixel MNIST
DFG, 1920×1080
Model
5122 , test
test
validation
GFLOPs
focus -64
91.15 ± 0.92
30.28 ± 0.88
38.89 ± 1.52
187
fixed -64
91.87 ± 0.35
29.62 ± 0.20
40.00 ± 1.30
187
dense-win
91.40 ± 0.20
30.28 ± 0.85
38.92 ± 1.65
912
Dense ViT, full resolution
86.10 ± 0.96
28.60 ± 0.64
39.54 ± 0.88
846
ViT, 2562 / 256 -wide
93.37 ± 2.40
–
–
–
Table 3: High-resolution tasks, mean ± std over 3 seeds. Megapixel MNIST: test accuracy (%); focus anchors over seeds 43 and 44 (seed 42: Sec. 8 ). DFG: mAP with max-pooled heads on the official test split and on our validation split, which holds out blocks of consecutive frames; GFLOPs per DFG image.
Resolution
Dense ViT, FlashAttention
Dense ViT, plain
fixed -64
focus -64
5122
11.5 (0.9)
44.8 (2.6)
44.7 (1.4)
196.9 (1.5)
10242
58.9 (3.0)
548.6 (30.0)
68.5 (4.8)
196.7 (5.3)
15362
198.4 (6.3)
out of memory
134.9 (10.5)
296.2 (11.5)
20482
533.6 (11.1)
out of memory
232.1 (18.5)
288.2 (20.2)
1920×1152
187.9 (6.4)
out of memory
128.0 (10.4)
204.2 (11.3)
Table 4: Training step at batch 8 in ms (peak training memory in GB), untrained models, one A100, bf16, measured alone. Dense ViT with the fused FlashAttention kernel or with plain attention.
Variant
Test accuracy (%)
Note
Reference: hard assignment, own anchor
53.78 ± 0.09
Soft (softmax) assignment
10.00 / 10.00 / 10.00
diverged in all seeds
Soft + Sinkhorn balancing
9.98 / 10.00 / 12.44
peaked at 26–39%, then diverged
Soft Gumbel-softmax, annealed
22.08 / 49.53 / 51.30
seed 42 diverged at epoch 9
Read from 2 nearest anchors
53.76 ± 0.19
− 0.03 [ − 0.35, +0.30]
Read from 3 nearest anchors
54.61 ± 0.55
+0.83 [ − 0.55, +2.20]
Table 5: Routing variants of focus -16 on Cluttered CIFAR-10, 10 epochs, gradient clipping 1.0 and 2-epoch warmup, seeds 42/43/44. Paired gaps against the reference, mean [95% CI].
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
Collapse
Cluttered, 10 ep.
Cluttered, 30 ep.
Tiny IN
High resolution
Data
CIFAR-100
CIFAR-10 canvas
CIFAR-10 canvas
Tiny IN canvas
MMNIST / DFG
Epochs
10
10
30
15
30 / 20
Batch
128
128
128
128
32
Learning rate
3⋅10−4
3⋅10−4
1.25⋅10−4
1.25⋅10−4
2⋅10−4
Clip / warmup
–
– ∗
1.0 / 2
1.0 / 2
1.0 / 2
Augmentation
flip
flip
flip
flip
none
Appendix
Table 6: Training settings. All runs: AdamW, weight decay 0.05, cosine schedule, from scratch. “Clip”: gradient-norm clipping; “warmup”: linear, in epochs.
seed 42
seed 43
seed 44
mean
95% CI
4 anchors
+1.71
+1.23
+1.51
+1.48
[+0.88, +2.08]
16 anchors
+1.53
+2.90
+4.96
+3.13
[ − 1.16, +7.42]
Appendix
Table 7: Paired gaps focus − fixed on Cluttered CIFAR-10 at 10 epochs.
Setting
Test accuracy (%)
Δ
β=3
53.98
+0.30
β=30
49.33
− 4.35
σs=0.75
53.59
− 0.09
σs=3
21.88
− 31.80
σh=0.15
52.90
− 0.78
σh=1.0
52.26
− 1.42
Appendix
Table 8: focus -16 on Cluttered CIFAR-10, 10 epochs, clip and warmup, seed 42; one parameter changed at a time from β=10 , σs=1.5 patches, σh=0.35 (reference 53.68).
focus -64
fixed -64
dense-win
Dense ViT
ViT 480-wide
ResNet-18
mAP
8.10
8.14
12.35
11.02
8.76
8.33
Appendix
Table 9: DFG with average-pooled heads, seed 42, 20 epochs, test mAP (chance 3.1).
Model
GFLOPs
Train step
Train memory
Inference
focus -16
5.49
99.3 ms
4.53 GB
5,259 img/s
focus -4
5.45
70.8 ms
4.24 GB
6,207 img/s
fixed -16
5.49
60.7 ms
4.31 GB
6,408 img/s
ViT, 2562
5.28
32.4 ms
3.11 GB
11,176 img/s
ViT, 1282
1.21
20.6 ms
1.17 GB
39,339 img/s
PVTv2-B0
1.51
52.4 ms
4.94 GB
6,310 img/s
Appendix
Table 10: Cost at 2562 on one A100 (bf16, untrained, measured alone), training step at batch 128.
Vision Transformers (ViTs) face severe computational bottlenecks due to the quadratic complexity of self-attention at high resolutions. Existing token reduction methods rely on local metrics -- such as single-layer attention scores -- that are inherently vulnerable to the attention sink phenomenon, where uninformative tokens are paradoxically preserved over salient foreground objects. We propose ASAP (Attention Sink Anchored Pruning), a training-free framework that recasts this sink as a feature. Modeling ViT information flow as a Lazy Random Walk, ASAP identifies the sink as a dominant accumulator of probability mass. By computing the diffusion distance to the sink within the cumulative transition matrix, ASAP partitions tokens via Radial Diffusion Clustering and compresses background redundancy through Transition Weight Pooling in a single shot. Extensive experiments across image, video, and vision-language tasks demonstrate ASAP outperforms state-of-the-art methods, accelerating throughput by up to 48% while maintaining or even exceeding baseline accuracy.
Jaehyuk Lee, Hanyoung Kim, Yanggee Kim +1
Department of Mathematics, Korea University, Seoul, Republic of Korea · Korea University, Seoul, Republic of Korea
Vision Transformers (ViTs) achieve strong image recognition performance, but their self-attention increases quadratically with the number of input tokens and makes them computationally expensive. The standard implementation of ViT models treats all patch tokens with equal importance across every layer of the model. This uniform treatment introduces redundant computation and may reduce the model's focus on the most discriminative object regions. In this paper, we propose ConvRoute-ViT, a convolutional token routing mechanism for efficient vision transformers that performs token reduction through convolutional routing. Our model preserves the most relevant patch tokens according to class-token attention at selected layers, while the remaining tokens are spatially reorganized and compressed into a compact set of convolutional summary tokens. This design reduces the sequence length without completely removing the contextual information of the less informative tokens. By applying the routing process hierarchically, the proposed framework constructs compact and discriminative representations for deeper layers. Experiments on CIFAR-100 and TinyImageNet show that ConvRoute-ViT improves computational efficiency while maintaining classification accuracy compared with the base ViT.
We present ARTA, a mixed-resolution coarse-to-fine vision transformer for efficient dense feature extraction. Unlike models that begin with dense high-resolution (fine) tokens, ARTA starts with low-resolution (coarse) tokens and uses a lightweight allocator to predict which regions require more fine tokens. The allocator iteratively predicts a semantic (class) boundary score and allocates additional tokens to patches above a low threshold, concentrating token density near boundaries while maintaining high sensitivity to weak boundary evidence. This targeted allocation encourages tokens to represent a single semantic class rather than a mixture of classes. Mixed-resolution attention enables interaction between coarse and fine tokens, focusing computation on semantically complex areas while avoiding redundant processing in homogeneous regions. Experiments demonstrate that ARTA achieves state-of-the-art results on ADE20K and COCO-Stuff with substantially fewer FLOPs, and delivers competitive performance on Cityscapes at markedly lower compute. For example, ARTA-Base attains 54.6 mIoU on ADE20K in the ~100M-parameter class while using fewer FLOPs and less memory than comparable backbones.
David Hagerman, Roman Naeem, Erik Brorsson +2
Chalmers University of TechnologyChalmers University of technology, 412 96 Gothenburg, Sweden