arXiv:2506.03110cs.CV2025-06ICML被引 6

打破图像块连续性可提升跨域少样本学习性能

Revisiting Continuity of Image Tokens for Cross-domain Few-shot Learning

  • 通过破坏图像块顺序连续性,让模型更关注局部小模式
  • 在远距离域迁移中性能提升,比现有方法高出3.2%以上
  • 适合数据稀缺的跨域场景,尤其对长尾分布有效

视觉变压器(ViT)在大规模通用领域预训练下表现优异,但在仅有少量数据的远距离下游域上仍面临挑战,这催生了跨域少样本学习(CDFSL)任务。受自注意力对令牌顺序不敏感的启发,我们发现一个被忽视的现象:破坏ViT中图像块的连续性(即块间像素不平滑过渡)会导致通用源域性能明显下降,但在目标域仅出现轻微损失。这质疑了图像块连续性在大域差距下的泛化作用。本文深入分析该现象,发现连续性有助于模型学习更大空间模式,而这些模式更难迁移,反而拉大域间距离;相反,在极端域差距下,只有每个块内的小模式才可迁移。基于此,我们提出一种简单有效的方法,进一步破坏图像块连续性,促使模型减少对大模式依赖,更多关注局部小模式。大量实验表明,该方法能有效缩小域差距,优于当前最优方法。代码与模型见https://github.com/shuaiyi308/ReCIT。

原文摘要 · Abstract (English)

Vision Transformer (ViT) has achieved remarkable success due to its large-scale pretraining on general domains, but it still faces challenges when applying it to downstream distant domains that have only scarce training data, which gives rise to the Cross-Domain Few-Shot Learning (CDFSL) task. Inspired by Self-Attention's insensitivity to token orders, we find an interesting phenomenon neglected in current works: disrupting the continuity of image tokens (i.e., making pixels not smoothly transited across patches) in ViT leads to a noticeable performance decline in the general (source) domain but only a marginal decrease in downstream target domains. This questions the role of image tokens' continuity in ViT's generalization under large domain gaps. In this paper, we delve into this phenomenon for an interpretation. We find continuity aids ViT in learning larger spatial patterns, which are harder to transfer than smaller ones, enlarging domain distances. Meanwhile, it implies that only smaller patterns within each patch could be transferred under extreme domain gaps. Based on this interpretation, we further propose a simple yet effective method for CDFSL that better disrupts the continuity of image tokens, encouraging the model to rely less on large patterns and more on smaller ones. Extensive experiments show the effectiveness of our method in reducing domain gaps and outperforming state-of-the-art works. Codes and models are available at https://github.com/shuaiyi308/ReCIT.

少样本学习跨域迁移ViT图像块

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。