不依赖标签,用多领域数据自动校准视觉语言模型的偏差
UMFC: Unsupervised Multi-Domain Feature Calibration for Vision-Language Models
- 通过无监督方式识别并消除视觉与文本编码器中的领域偏好
- 在跨域迁移和测试时适应任务中超越原始CLIP,媲美需标注数据的方法
- 适合缺乏标注数据但有多种领域样本的模型部署场景
预训练视觉语言模型(如CLIP)虽具备强大的零样本迁移能力,但仍受领域偏移影响,通常需标注数据适配下游任务,成本较高。本文提出一种利用无标签多领域数据增强模型泛化能力的新方法。我们发现CLIP在视觉编码器中更关注领域信息而非类别区分,在文本编码器中则偏向领域相关类别。为此,我们设计了无需训练、无需标签的无监督多领域特征校准方法(UMFC),从领域特定特征中估计图像级偏差,并基于领域转移方向估计文本级偏差,分别从原始特征中减去以实现领域不变性。在多种设置下(包括归纳学习与测试时适应)评估表明,该方法优于原始CLIP,且性能达到需额外标注或优化的先进方法水平。代码已公开于https://github.com/GIT-LJc/UMFC。
原文摘要 · Abstract (English)
Pre-trained vision-language models (e.g., CLIP) have shown powerful zero-shot transfer capabilities. But they still struggle with domain shifts and typically require labeled data to adapt to downstream tasks, which could be costly. In this work, we aim to leverage unlabeled data that naturally spans multiple domains to enhance the transferability of vision-language models. Under this unsupervised multi-domain setting, we have identified inherent model bias within CLIP, notably in its visual and text encoders. Specifically, we observe that CLIP's visual encoder tends to prioritize encoding domain over discriminative category information, meanwhile its text encoder exhibits a preference for domain-relevant classes. To mitigate this model bias, we propose a training-free and label-free feature calibration method, Unsupervised Multi-domain Feature Calibration (UMFC). UMFC estimates image-level biases from domain-specific features and text-level biases from the direction of domain transition. These biases are subsequently subtracted from original image and text features separately, to render them domain-invariant. We evaluate our method on multiple settings including transductive learning and test-time adaptation. Extensive experiments show that our method outperforms CLIP and performs on par with the state-of-the-arts that need additional annotations or optimization. Our code is available at https://github.com/GIT-LJc/UMFC.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。