提升CLIP对图像中存在/缺失物体的否定理解能力
Omni-NegCLIP: Enhancing CLIP with Front-Layer Contrastive Fine-Tuning for Comprehensive Negation Understanding
- 通过改进对比损失,分别针对存在与缺失的否定表达进行训练
- 在存在性否定任务上提升52.65%,在缺失性否定任务上提升12.50%
- 仅微调文本编码器前几层,保持原有图文检索能力并提升19.62%
视觉语言模型(VLM)在多模态任务中表现强劲,但对否定表达的理解仍较弱。本文提出Omni-NegCLIP,一种改进版CLIP模型,通过修改原始InfoNCE对比损失,增强对两类否定的理解:存在性否定(图像中实际存在的对象被否定)和缺失性否定(图像中可能存在的对象被否定)。设计了针对性的对比目标:存在性目标使图像嵌入靠近原描述嵌入,远离对应否定描述;缺失性目标则让图像嵌入同时对齐原描述和否定描述,但保持两者语义区分。基于观察发现,CLIP文本编码器前几层对否定文本学习能力更强,因此在每轮训练中仅微调这些层。实验表明,相比预训练CLIP,Omni-NegCLIP在存在性否定任务上提升52.65%,在缺失性否定任务上提升12.50%,且不损害通用图文检索能力,反而提升19.62%。相较已有方法,其对多种否定任务具备更全面的理解能力。
原文摘要 · Abstract (English)
Vision-Language Models (VLMs) have demonstrated strong capabilities across a wide range of multimodal tasks. However, recent studies have shown that VLMs, such as CLIP, perform poorly in understanding negation expressions, which are common in natural language. In this work, we propose Omni-NegCLIP, a fine-tuned CLIP model that improves CLIP's understanding of two types of negation, namely presence-based negation and absence-based negation, which correspond to negated expressions of objects that are actually present in an image and those that may plausibly exist in an image but are in fact absent, respectively, by modifying CLIP's original InfoNCE contrastive loss. Specifically, we design a presence-based contrastive objective that pulls image embeddings closer to their original caption embeddings while pushing them away from the corresponding presence-based negated caption embeddings, and an absence-based contrastive objective that aligns image embeddings with both original and absence-based negated caption embeddings while maintaining a semantic distinction between the two text embeddings. Based on our observation that the front transformer layers of CLIP text encoder have stronger learning ability for negated text than the later layers, we fine-tune the front transformer layers of the CLIP text encoder at each training step using the combined contrastive objective. Experimental results show that, compared with pretrained CLIP, Omni-NegCLIP improves performance on presence-based negation and absence-based negation tasks by up to 52.65% and 12.50%, respectively, without sacrificing general capability in image-text retrieval and even improving it by up to 19.62%. Compared with prior works, Omni-NegCLIP demonstrates a more comprehensive ability to understand multiple types of negation tasks.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。