探究CLIP模型的局限性:表现最差的类别
Investigating the Limitation of CLIP Models: The Worst-Performing Categories
AI总结:
本研究发现CLIP模型存在部分类别准确率极低的缺陷,提出CMM指标识别最差类别并结合大语言模型丰富描述与加权集成提示,在无需人工标注的情况下提升了低表现类别的准确率。
摘要:
对比语言-图像预训练(Contrastive Language-Image Pre-training, CLIP)通过将自然语言融入视觉概念构建了一种基础模型,可在下游任务上实现零样本识别。通常人们认为,通过精心设计的文本提示,CLIP能在众多领域取得令人满意的整体准确率。然而我们发现,其在最差类别上的表现远逊于整体表现。例如在ImageNet数据集上,尽管整体准确率达到了64.1%,但共有10个类别的类别级准确率低至0%。这一现象揭示了使用CLIP模型的潜在风险,尤其是在特定类别至关重要的风险敏感型应用中。为解决该问题,我们探究了CLIP模型中两种模态之间的对齐情况,并提出类别匹配裕度(Class-wise Matching Margin, CMM)来衡量推理混淆程度。CMM能够有效识别表现最差的类别,并预估候选提示的潜在性能。我们进一步调用大语言模型来丰富最差表现类别的描述,并构建加权集成以突出高效提示。实验结果明确验证了我们所提方法的有效性:在无需手动提示工程、费力优化或访问带标注验证数据的情况下,ImageNet上最差10个类别的准确率提升至5.2%。
英文摘要:
Contrastive Language-Image Pre-training (CLIP) provides a foundation model by integrating natural language into visual concepts, enabling zero-shot recognition on downstream tasks. It is usually expected that satisfactory overall accuracy can be achieved across numerous domains through well-designed textual prompts. However, we found that their performance in the worst categories is significantly inferior to the overall performance. For example, on ImageNet, there are a total of 10 categories with class-wise accuracy as low as 0\%, even though the overall performance has achieved 64.1\%. This phenomenon reveals the potential risks associated with using CLIP models, particularly in risk-sensitive applications where specific categories hold significant importance. To address this issue, we investigate the alignment between the two modalities in the CLIP model and propose the Class-wise Matching Margin (\cmm) to measure the inference confusion. \cmm\ can effectively identify the worst-performing categories and estimate the potential performance of the candidate prompts. We further query large language models to enrich descriptions of worst-performing categories and build a weighted ensemble to highlight the efficient prompts. Experimental results clearly verify the effectiveness of our proposal, where the accuracy on the worst-10 categories on ImageNet is boosted to 5.2\%, without manual prompt engineering, laborious optimization, or access to labeled validation data.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。