用随机注册符提升ViT跨域少样本学习性能
Random Registers for Cross-Domain Few-Shot Learning
- 用随机初始化的注册符替代可学习提示,增强模型泛化能力
- 在四个基准上实现领先效果,跨域迁移性能显著提升
- 适合关注视觉变压器跨域适应性的研究者与开发者
跨域少样本学习(CDFSL)旨在将数据丰富的源域知识迁移到数据稀缺的目标域。尽管视觉变换器(ViT)在众多视觉任务中表现优异,其在存在巨大域差异的CDFSL中的迁移能力仍待深入探索。本文发现:在源域训练期间,常见的提示调优方法可能损害ViT在目标域的泛化性能,而将其设为随机噪声(即随机注册符)却能持续提升目标域表现。深入分析表明,可学习提示会捕获源域中的域特异性信息,将无关视觉模式误认为关键线索,导致过拟合并增加损失曲面的陡峭度。相反,随机注册符本质上是一种针对损失曲面陡峭度的注意力扰动方式,有助于模型找到更平坦的极小值点,从而提高迁移能力。基于此现象与解释,我们提出一种简单有效的方法,在图像标记的语义区域添加随机注册符以增强注意力扰动,显著提升随机注册符的有效性与效率。四个基准上的大量实验验证了该方法的合理性与先进性。代码与模型见https://github.com/shuaiyi308/REAP。
原文摘要 · Abstract (English)
Cross-domain few-shot learning (CDFSL) aims to transfer knowledge from a data-sufficient source domain to data-scarce target domains. Although Vision Transformer (ViT) has shown superior capability in many vision tasks, its transferability against huge domain gaps in CDFSL is still under-explored. In this paper, we find an intriguing phenomenon: during the source-domain training, prompt tuning, as a common way to train ViT, could be harmful for the generalization of ViT in target domains, but setting them to random noises (i.e., random registers) could consistently improve target-domain performance. We then delve into this phenomenon for an interpretation. We find that learnable prompts capture domain information during the training on the source dataset, which views irrelevant visual patterns as vital cues for recognition. This can be viewed as a kind of overfitting and increases the sharpness of the loss landscapes. In contrast, random registers are essentially a novel way of perturbing attention for the sharpness-aware minimization, which helps the model find a flattened minimum in loss landscapes, increasing the transferability. Based on this phenomenon and interpretation, we further propose a simple but effective approach for CDFSL to enhance the perturbation on attention maps by adding random registers on the semantic regions of image tokens, improving the effectiveness and efficiency of random registers. Extensive experiments on four benchmarks validate our rationale and state-of-the-art performance. Codes and models are available at https://github.com/shuaiyi308/REAP.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。