arXiv:2506.17307cs.LGcs.CV2025-06ICLR被引 23

让冻结的CLIP在测试时用少量样本适应新领域,效果更好。

Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptation

  • 在输入空间学习补充知识,不依赖CLIP原有特征
  • 在iWildCam和FMoW上分别提升5.1和3.1个百分点
  • 适合资源有限、需快速适配新场景的任务

少样本测试时领域自适应旨在仅用少量无标签样本,在测试时将模型适配到特定领域,以应对领域偏移。以往方法利用CLIP强大的分布外泛化能力,通过生成领域特定提示来引导其通用冻结特征。然而,由于下游数据集未被CLIP直接观察,仅依赖特征空间知识受限于CLIP的先验知识。尤其当使用较弱主干如ViT-B/16时,在复杂真实世界基准上性能显著下降。本文不再继承CLIP固有的分布外能力,而是直接在输入空间学习,以补充数据集特定知识。具体地,在CLIP并行引入独立分支,通过反向注意力强制学习专属信息;为更好捕捉下游任务的标签语义,提出贪婪文本集成与精炼策略增强文本特征间差异性;随后通过生成的领域提示,以领域感知方式逐步融合视觉与文本特征,实现对特定领域的适配。大量实验表明,该方法在5个大规模基准(WILDS与DomainNet)上表现更优,尤其在小模型如ViT-B/16上,于iWildCam上F1提升+5.1,于FMoW上WC Acc提升+3.1%。

原文摘要 · Abstract (English)

Few-shot Test-Time Domain Adaptation focuses on adapting a model at test time to a specific domain using only a few unlabeled examples, addressing domain shift. Prior methods leverage CLIP's strong out-of-distribution (OOD) abilities by generating domain-specific prompts to guide its generalized, frozen features. However, since downstream datasets are not explicitly seen by CLIP, solely depending on the feature space knowledge is constrained by CLIP's prior knowledge. Notably, when using a less robust backbone like ViT-B/16, performance significantly drops on challenging real-world benchmarks. Departing from the state-of-the-art of inheriting the intrinsic OOD capability of CLIP, this work introduces learning directly on the input space to complement the dataset-specific knowledge for frozen CLIP. Specifically, an independent side branch is attached in parallel with CLIP and enforced to learn exclusive knowledge via revert attention. To better capture the dataset-specific label semantics for downstream adaptation, we propose to enhance the inter-dispersion among text features via greedy text ensemble and refinement. The text and visual features are then progressively fused in a domain-aware manner by a generated domain prompt to adapt toward a specific domain. Extensive experiments show our method's superiority on 5 large-scale benchmarks (WILDS and DomainNet), notably improving over smaller networks like ViT-B/16 with gains of \textbf{+5.1} in F1 for iWildCam and \textbf{+3.1\%} in WC Acc for FMoW.

领域自适应少样本学习CLIP测试时适应

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