arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.12491cs.CVcs.LG
收藏

弹性注意力核心用于可扩展的视觉变换器

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

Carnegie Mellon University(卡内基梅隆大学);University of Hong Kong(香港大学);Columbia University(哥伦比亚大学)

Alan Z. Song, Yinjie Chen, Mu Nan, Deva Ramanan, Michael J. Tarr, Andrew F. Luo

AI总结:

本文提出VECA架构,通过弹性核心-外围注意力机制实现线性复杂度,避免二次缩放,提升高分辨率视觉任务性能。

摘要:

视觉变换器(ViTs)通过利用全连接自注意力机制实现强大的数据驱动扩展。然而,这种灵活性带来了计算成本,其规模与图像分辨率平方成正比,限制了ViTs在高分辨率领域的应用。本文挑战这一假设,证明有效视觉表示可在无直接块间交互的情况下学习。我们提出VECA(视觉弹性核心注意力),一种使用高效线性时间核心-外围结构注意力的视觉变换器架构,通过少量学习的核心实现。在VECA中,这些核心充当通信接口:块标记仅通过核心标记交换信息,核心标记从头初始化并在层间传播。由于N个图像块仅与分辨率不变的C个学习“核心”嵌入直接交互,这导致线性复杂度O(N)对于预定的C,从而绕过二次缩放。与先前的交叉注意力架构相比,VECA保持并迭代更新全部N个输入标记,避免了小C方式的瓶颈。结合核心轴上的嵌套训练,我们的模型可以在推理时弹性权衡计算和精度。在分类和密集任务中,VECA实现了与最新视觉基础模型相当的性能,同时降低了计算成本。我们的结果确立了弹性核心-外围注意力作为视觉变换器的可扩展替代基础模块。

英文摘要:

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. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑