arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.00833cs.CVcs.AI
收藏

线性微分视觉Transformer:通过成对差分学习视觉对比

Linear Differential Vision Transformer: Learning Visual Contrasts via Pairwise Differentials

Tsinghua University(清华大学);Peking University(北京大学)

Yifan Pu, Jixuan Ying, Qixiu Li, Tianzhu Ye, Dongchen Han, Xiaochen Wang, Ziyi Wang, Xinyu Shao, Gao Huang, Xiu Li

AI总结:

提出Visual-Contrast Attention (VCA)替代MHSA,通过正负流差分交互学习视觉对比,将复杂度降至O(N n C),在几乎不增加参数和计算量的情况下显著提升图像识别与生成性能。

摘要:

Vision Transformers (ViTs) 已成为图像识别和图像生成的通用骨干网络。然而,它们的 Multi-Head Self-Attention (MHSA) 层仍然为每个 token 对执行二次的 query-key 交互,将大部分计算花费在视觉上微弱或冗余的相关性上。我们引入了 Visual-Contrast Attention (VCA),作为 MHSA 的直接替代品,它注入了显式的判别概念,同时将理论复杂度从 O(N N C) 降低到 O(N n C),其中 n << N。VCA 首先将每个头部的密集 query 场提炼为少量空间池化的视觉对比 token,然后将它们分为可学习的正流和负流,其差分交互突出了真正区分不同区域的因素。该模块为 DeiT-Tiny 骨干网络增加了不到 0.3M 的参数,不需要额外的 FLOPs,并且完全与架构无关。在实验中,VCA 将 DeiT-Tiny 在 ImageNet-1K 上的 top-1 准确率从 72.2% 提升至 75.6% (+3.4),并将三个强大的分层 ViTs 提升了高达 3.1%,而在类条件 ImageNet 生成中,它在扩散 (DiT) 和流 (SiT) 模型中将 FID-50K 降低了 2.1 到 5.2 个点。广泛的消融实验证实:(i) 空间池化提供低方差全局线索,(ii) 双重位置嵌入对于对比推理是不可或缺的,(iii) 在两个阶段结合这两者产生最强的协同效应。因此,VCA 为更快速、更敏锐的 Vision Transformers 提供了一条简单路径。源代码可在 https://github.com/LeapLabTHU/LinearDiff 获取。

英文摘要:

Vision Transformers (ViTs) have become a universal backbone for both image recognition and image generation. Yet their Multi-Head Self-Attention (MHSA) layer still performs a quadratic query-key interaction for every token pair, spending the bulk of computation on visually weak or redundant correlations. We introduce Visual-Contrast Attention (VCA), a drop-in replacement for MHSA that injects an explicit notion of discrimination while reducing the theoretical complexity from O(N N C) to O(N n C) with n << N. VCA first distils each head's dense query field into a handful of spatially pooled visual-contrast tokens, then splits them into a learnable positive and negative stream whose differential interaction highlights what truly separates one region from another. The module adds fewer than 0.3M parameters to a DeiT-Tiny backbone, requires no extra FLOPs, and is wholly architecture-agnostic. Empirically, VCA lifts DeiT-Tiny top-1 accuracy on ImageNet-1K from 72.2% to 75.6% (+3.4) and improves three strong hierarchical ViTs by up to 3.1%, while in class-conditional ImageNet generation it lowers FID-50K by 2.1 to 5.2 points across both diffusion (DiT) and flow (SiT) models. Extensive ablations confirm that (i) spatial pooling supplies low-variance global cues, (ii) dual positional embeddings are indispensable for contrastive reasoning, and (iii) combining the two in both stages yields the strongest synergy. VCA therefore offers a simple path towards faster and sharper Vision Transformers. The source code is available at https://github.com/LeapLabTHU/LinearDiff.

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

↑