We investigate the mechanism underlying a previously identified phenomenon in Vision Transformers - the emergence of high-norm tokens that lead to noisy attention maps (Darcet et al., 2024). We observe that in multiple models (e.g., CLIP, DINOv2), a sparse set of neurons is responsible for concentrating high-norm activations on outlier tokens, leading to irregular attention patterns and degrading downstream visual processing. While the existing solution for removing these outliers involves retraining models from scratch with additional learned register tokens, we use our findings to create a training-free approach to mitigate these artifacts. By shifting the high-norm activations from our discovered register neurons into an additional untrained token, we can mimic the effect of register tokens on a model already trained without registers. We demonstrate that our method produces cleaner attention and feature maps, enhances performance over base models across multiple downstream visual tasks, and achieves results comparable to models explicitly trained with register tokens. We then extend test-time registers to off-the-shelf vision-language models, yielding cleaner attention-based, text-to-image attribution. Finally, we outline a simple mathematical model that reflects the observed behavior of register neurons and high norm tokens. Our results suggest that test-time registers effectively take on the role of register tokens at test-time, offering a training-free solution for any pre-trained model released without them.
RATS! Patches Talk Through Registers: Emergent Parts in Register Attention Transformers
Johns Hopkins University(约翰霍普金斯大学);Office of Naval Research, Arlington, VA(海军研究办公室,阿灵顿,弗吉尼亚州);Department of Laboratory Medicine and Pathology, Mayo Clinic, MN, USA(梅奥诊所检验医学与病理学系,明尼苏达州,美国)
University of Surrey(萨里大学);Leibniz University of Hanover(莱布尼茨汉诺威大学);Nokia Technologies(诺基亚技术公司);University of Twente(特温特大学);University of Glasgow(格拉斯哥大学)
STRADAViT: Self-Supervised Domain Adaptation of Vision Transformer Backbones for Radio Astronomy
organization= Institute of Space Sciences;Astronomy , addressline= University of Malta , city= Msida , postcode= MSD2080 , country= Malta;organization= School of Physics;Astronomy, Royal Observatory , addressline= University of Edinburgh , city= Edinburgh , country= United Kingdom
UniRefiner: Teaching Pre-trained ViTs to Self-Dispose Dross via Contrastive Register
Xi’an Jiaotong University, School of Software Engineering(西安交通大学软件工程学院);University of Chinese Academy of Sciences(中国科学院大学);Harbin Institute of Technology (Shenzhen)(哈尔滨工业大学(深圳));Shenzhen Loop Area Institute(深圳河套学院)
本文提出UniRefiner,一种通用 refinement 框架,通过对比注册方法教会预训练 ViT 自动处理空间敏感任务中的杂质 token,提升模型在密集预测任务中的表现。
A Simple and Robust Framework for Cross-Modality Medical Image Segmentation applied to Vision Transformers
Centre des Matériaux (MAT)(材料中心);CNRS(法国国家科学研究中心);Centre de Mise en Forme des Matériaux (CEMEF)(材料成型中心);Centre de Morphologie Mathématique (CMM)(数学形态学中心);Mines Paris(巴黎高等矿业学院);Université PSL(巴黎文理研究大学)
InferVision Medical Technology Co., Ltd.(推想医疗科技股份有限公司)
通过纵向病变跟踪评估病变进展和治疗反应在临床实践中起着关键作用。当手动完成病变匹配时,用于该任务的自动化方法的动机是高昂的劳动力成本和时间消耗。以前的方法通常缺乏本地和全局信息的整合。在这项工作中,我们提出了一种基于变压器的方法,称为Transformer病变跟踪器(TLT)。具体来说,我们设计了一个基于交叉注意的Transformer(CAT)来捕获和结合全局和局部信息,以增强特征提取。我们还开发了一个基于配准的解剖注意力模块(RAAM),将解剖信息引入CAT,使其能够专注于有用的特征知识。提出了一种稀疏选择策略(SSS),用于选择特征和减少Transformer训练中的内存占用。此外,我们使用全局回归来进一步提高模型性能。我们在公共数据集上进行实验,以显示我们方法的优越性,并发现我们的模型性能与最先进的(SOTA)相比,平均欧几里得中心误差至少提高了14.3%(6mm vs. 7mm)。代码可在https://github.com/TangWen920812/TLT上获得。
GeoViSTA: Geospatial Vision-Tabular Transformer for Multimodal Environment Representation
Department of Electrical and Computer Engineering, Rice University(理海大学电气与计算机工程系);Center for Cardiovascular Computational and Precision Health, Department of Cardiology, DeBakey Heart and Vascular Center, Houston Methodist(休斯顿方法主义医疗中心心血管计算与精准健康中心、心内科部门、德贝基心脏和血管中心)
On the Robustness of Vision Transformers to Adversarial Examples
University of Connecticut(康涅狄格大学);CWI(荷兰国家数学与计算机科学研究所)
基于注意力的网络的最新进展表明,视觉Transformer可以在许多图像分类任务上实现最先进或接近最先进的结果。这使得Transformers处于独特的位置,成为传统卷积神经网络(CNN)的一个有前途的替代品。虽然CNN已经被仔细研究了对抗攻击,但视觉Transformer却不能这么说。在本文中,我们研究了视觉Transformer对抗性的例子的鲁棒性。我们对Transformer安全性的分析分为三个部分。首先,我们在标准白盒和黑盒攻击下测试Transformer。其次,我们研究了CNN和Transformers之间对抗性示例的可移植性。我们表明,对抗性的例子不容易在CNN和Transformers之间转移。基于这一发现,我们分析了CNN和Transformers的简单集成防御的安全性。通过创建一个新的攻击,自注意混合梯度攻击,我们表明,这样的合奏是不安全的白盒对手。然而,在黑盒对手,我们表明,合奏可以实现前所未有的鲁棒性,而不牺牲干净的准确性。我们对这项工作的分析是使用六种类型的白盒攻击和两种类型的黑盒攻击。我们的研究包括多个视觉Transformer,Big Transfer Models和CNN架构,这些架构在CIFAR-10,CIFAR-100和ImageNet上进行了训练。