arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.19622cs.CV
收藏

UniRefiner: 通过对比注册教会预训练ViTs自我处理杂质

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(深圳河套学院)

Congpei Qiu, Zhaoyu Hu, Wei Ke, Zhuotao Tian, Yanhao Wu, Tong Zhang

AI总结:

本文提出UniRefiner,一种通用 refinement 框架,通过对比注册方法教会预训练 ViT 自动处理空间敏感任务中的杂质 token,提升模型在密集预测任务中的表现。

摘要:

基于 Vision Transformers (ViTs) 的表示学习已取得显著进展,然而大规模模型在空间敏感任务中的实用性受到虚假 token 的阻碍。先前的缓解措施有限,通常将这些伪影狭义地定义为简单的高范数异常值。我们认为这种范围不足。对于密集预测任务,我们提出任何未能编码位置对齐语义的 token 应被视为伪影。这种更广义的定义揭示了一个更复杂的问题,促使我们系统地分类并表征三种基本类型的伪影 token,这些 token 污染了空间表示。基于这种全面的诊断,我们提出了 UniRefiner,一种通用的 refinement 框架,教会预训练 ViTs 自我处理这些伪影。UniRefiner 使用对比注册来显式隔离并重新分配伪影 token,通过双重目标:(i) 它将图像 token 与过滤后的正常 token 对齐以保持语义,(ii) 它将注册 token 与检测到的伪影 token 对齐以捕捉伪影信号。我们的方法仅需在 ~5k 图像上进行少量微调即可优化多种 ViTs,包括 EVA-CLIP-8B 和 InternViT-6B 等大规模模型。实验显示了一致且显著的改进:特别是优化后的 EVA-CLIP-8B 在 ADE20K 上达到 51.9% mIoU(+9.4%),超过 DINOv2(49.1%)等专用视觉模型,零样本分割精度提升高达 22%。UniRefiner 解锁了现有大规模基础模型的潜在空间能力,为它们的广泛应用铺平了道路。

英文摘要:

Representation learning with Vision Transformers (ViTs) has advanced rapidly, yet the utility of large-scale models in spatially sensitive tasks is hindered by spurious tokens. Prior efforts to mitigate this have been limited, often defining these artifacts narrowly, for example, as simple high-norm outliers. We argue that this scope is insufficient. For dense prediction tasks, we posit that any token failing to encode location-aligned semantics should be treated as a spurious artifact. This broader definition reveals a more complex problem, leading us to systematically categorize and characterize three fundamental types of spurious tokens that corrupt spatial representations. Based on this comprehensive diagnosis, we propose UniRefiner, a universal refinement framework that teaches pre-trained ViTs to self-dispose of these artifacts. UniRefiner uses contrastive registers to explicitly isolate and redistribute spurious tokens via a dual objective: (i) it aligns image tokens with filtered regular tokens to preserve semantics, and (ii) it aligns register tokens with detected spurious tokens to capture the spurious signals. Our method requires only a few epochs of fine-tuning on ~5k images to refine diverse ViTs, including massive models like EVA-CLIP-8B and InternViT-6B. Experiments demonstrate consistent and significant improvements: notably, the refined EVA-CLIP-8B achieves 51.9\% mIoU on ADE20K (+9.4\%), surpassing specialized vision models like DINOv2 (49.1\%), while zero-shot segmentation accuracy improves by up to 22\%. UniRefiner unlocks the latent spatial potential of existing large-scale foundation models, paving the way for their broader application.

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

↑