Do Vision Transformers Need All-to-All Attention? Global Communication Through Elastic Learned Cores

Alan Z. Song, Yinjie Chen, Mu Nan, Deva Ramanan, Michael J. Tarr +1 more
5/12/2026
cs.CVcs.LG
transformer-attention

No confident code implementation found for this paper.

Abstract

Vision Transformers (ViTs) learn rich visual-semantic representations through all-to-all self-attention among patch tokens. However, this design implicitly assumes that direct pairwise patch interactions are necessary for effective representation learning.

Show full abstract

In this work, we challenge this assumption and show that representations supporting both global recognition and dense prediction can be learned without direct patch-to-patch interaction. We propose VECA (Visual Elastic-Core Attention), a vision transformer with core-periphery structured attention mediated by a small set of learned cores. Patch tokens exchange global information exclusively through these cores, while the full set of dense patches are preserved and iteratively updated across layers. This reduces attention complexity from $O(N^2)$ to $O(N)$, linear in the number of patches $N$ for a fixed core budget $C$. Unlike prior latent-token cross-attention architectures, VECA facilitates sparse global communication without compressing the spatial representation itself. Nested training along the core axis further enables a single model to elastically trade off computation and accuracy at inference time without retraining. Across image classification and dense prediction tasks, VECA remains competitive with full-attention backbones and outperforms the evaluated linear-complexity alternatives on most benchmarks. Moreover, without explicit supervision, these cores develop semantically organized structures that support object-label transfer across video frames. These results show that effective visual representations can be learned without direct all-to-all patch interaction.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{song2026vision,
  title  = {Do Vision Transformers Need All-to-All Attention? Global Communication Through Elastic Learned Cores},
  author = {Alan Z. Song and Yinjie Chen and Mu Nan and Deva Ramanan and Michael J. Tarr and Andrew F. Luo},
  year   = {2026},
  eprint = {2605.12491},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.12491v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.12491.svg)](https://codeofpaper.com/paper/2605.12491)

Discussion