arXiv:2512.08606cs.CVcs.AI2025-12AAAI被引 5

用空提示消除文本模板偏差,让CLIP少靠模板、多看图像

Decoupling Template Bias in CLIP: Harnessing Empty Prompts for Enhanced Few-Shot Learning

  • 用不含类别信息的空提示捕捉无偏特征,抵消模板干扰
  • 在多个数据集上显著降低模板相似性导致的性能波动
  • 适合做少样本分类且追求模型公平性的研究者使用

对比语言-图像预训练(CLIP)模型通过对齐视觉与文本表征,在少样本学习中表现优异。本研究发现,文本模板与图像样本间的相似性(TSS)会引入偏差,导致模型依赖模板匹配而非真实类别对齐,从而降低分类准确率与鲁棒性。为此提出一种新框架:利用空提示(即表达‘空’概念但无类别信息的文本输入),捕获无偏的模板特征并校正TSS偏差。该框架分两阶段运行:预训练阶段通过空提示揭示并减少编码器内的模板偏差;微调阶段引入偏差校准损失,强制图像与其类别正确对齐,确保模型关注相关视觉线索。跨多个基准测试的实验表明,该方法有效缓解了由TSS引起的性能波动,提升了分类准确率与鲁棒性。

原文摘要 · Abstract (English)

The Contrastive Language-Image Pre-Training (CLIP) model excels in few-shot learning by aligning visual and textual representations. Our study shows that template-sample similarity (TSS), defined as the resemblance between a text template and an image sample, introduces bias. This bias leads the model to rely on template proximity rather than true sample-to-category alignment, reducing both accuracy and robustness in classification. We present a framework that uses empty prompts, textual inputs that convey the idea of "emptiness" without category information. These prompts capture unbiased template features and offset TSS bias. The framework employs two stages. During pre-training, empty prompts reveal and reduce template-induced bias within the CLIP encoder. During few-shot fine-tuning, a bias calibration loss enforces correct alignment between images and their categories, ensuring the model focuses on relevant visual cues. Experiments across multiple benchmarks demonstrate that our template correction method significantly reduces performance fluctuations caused by TSS, yielding higher classification accuracy and stronger robustness. The repository of this project is available at https://github.com/zhenyuZ-HUST/Decoupling-Template-Bias-in-CLIP.

少样本学习CLIP提示工程模型偏差

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