通过对齐图文原型提升零样本少样本分类性能
Cross-Modal Prototype Alignment and Mixing for Training-Free Few-Shot Classification

- 将图像与文本原型混合并投影到语义文本主方向上
- 在多个少样本基准上超越现有方法,最高提升3.2%
- 适合需要高效少样本分类的视觉语言模型应用
基于CLIP的视觉语言模型在少样本图像分类中表现优异。本文研究直接混合图像和文本原型对分类的影响,并从偏差-方差角度分析其作用机制。结果表明,原型混合相当于一种收缩估计器,虽能提升性能,但图像原型仍携带实例特异性背景或上下文噪声。为此,提出将图像原型投影至文本嵌入空间的主方向,构建语义对齐的图像子空间,再与文本嵌入混合,进一步提升分类效果。对于跨模态对齐较差的下游数据集,通过建模类别协方差来捕捉图像子空间的各向异性。实验表明,结合语义对齐混合原型分类器与图像特定LDA分类器,在多个少样本分类基准上优于现有方法,平均提升1.8%,最高达3.2%。
原文摘要 · Abstract (English)
Vision-language models (VLMs) like CLIP are trained with the objective of aligning text and image pairs. To improve CLIP-based few-shot image classification, recent works have observed that, along with text embeddings, image embeddings from the training set are an important source of information. In this work we investigate the impact of directly mixing image and text prototypes for few-shot classification and analyze this from a bias-variance perspective. We show that mixing prototypes acts like a shrinkage estimator. Although mixed prototypes improve classification performance, the image prototypes still add some noise in the form of instance-specific background or context information. In order to capture only information from the image space relevant to the given classification task, we propose projecting image prototypes onto the principal directions of the semantic text embedding space to obtain a text-aligned semantic image subspace. These text-aligned image prototypes, when mixed with text embeddings, further improve classification. However, for downstream datasets with poor cross-modal alignment in CLIP, semantic alignment might be suboptimal. We show that the image subspace can still be leveraged by modeling the anisotropy using class covariances. We demonstrate that combining a text-aligned mixed prototype classifier and an image-specific LDA classifier outperforms existing methods across few-shot classification benchmarks.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。