Know "No" Better: A Data-Driven Approach for Enhancing Negation Awareness in CLIP

Junsung Park, Jungbeom Lee, Jongyoon Song, Sangwon Yu, Dahuin Jung, Sungroh Yoon

TL;DR

This paper tackles CLIP's surprising weakness in understanding negation, a crucial linguistic element. They propose a data-centric approach, generating novel negation-inclusive captions and introducing a new benchmark, NegRefCOCOg, to better evaluate this capability. Their fine-tuned model, NegationCLIP, significantly improves negation understanding across various multimodal tasks without sacrificing general performance.

What Problem Does This Paper Address?

Vision-Language Models (VLMs) like CLIP have revolutionized how machines understand the interplay between images and text. However, a significant blind spot exists: understanding negation. While humans easily grasp the difference between "a dog running" and "a dog NOT running," CLIP often struggles, leading to misinterpretations in tasks like text-to-image generation and image-text matching. The authors hypothesize this stems from a lack of diverse, visually aligned negation-inclusive data in CLIP's original training set. Existing benchmarks also fall short, often simplifying negation or introducing biases.

Methods

The core of this work lies in two novel data generation pipelines designed to create high-quality, negation-inclusive captions:

  1. Generating Negation from Object Absence: This pipeline leverages existing image captioning datasets. It uses a Large Language Model (LLM) to identify plausible objects that could be in an image but are not mentioned in the caption. A Multimodal LLM (MLLM) then verifies the absence of these objects in the actual image. Finally, the LLM augments the original caption to naturally incorporate negation based on the confirmed absent objects.
  2. Expanding Diversity of Negation: To go beyond object absence, this pipeline utilizes Question-Answering (VQA) datasets. It specifically selects question-answer pairs where the answer is "no." This allows for negations related to actions, attributes, and other aspects beyond simple object presence. An LLM then augments the original caption with negation based on these "no" answers.

These pipelines generate a large dataset of negation-inclusive captions, which are then used to fine-tune CLIP's text encoder, resulting in NegationCLIP.

To address the limitations of existing evaluation methods, the authors propose NegRefCOCOg, a new benchmark specifically designed for evaluating negation comprehension in VLMs. It's built upon referring image segmentation datasets and ensures that every query involves negation, covering a broader range of negation types and positions within a sentence.

Datasets

  • Training Data Generation:
    • COCO: Used as the source for image captioning data.
  • VQAv2: Used as the source for question-answering data.
  • Evaluation Benchmarks:
    • NegRefCOCOg (New Benchmark): Designed to evaluate negation comprehension in image-text matching tasks. It samples prompts from RefCOCOg and creates positive and hard negative image patches.
  • VALSE Existence: Evaluates negation in image-to-text retrieval.
  • ImageNet Classification & COCO Retrieval: Used to assess if fine-tuning on negation data degrades general performance.
  • PhraseCut & RefCOCOg (Neg): Used for evaluating referring image segmentation.

Key Insights and Ideas

  • Negation is a Data Problem: The paper strongly suggests that CLIP's negation deficiency isn't an inherent architectural flaw but rather a consequence of insufficient and misaligned negation examples in its pre-training data.
  • LLMs and MLLMs are Powerful for Data Augmentation: The proposed pipelines demonstrate the effectiveness of leveraging LLMs and MLLMs to synthetically generate high-quality, contextually relevant negation-inclusive data at scale.
  • Beyond Object Negation is Crucial: The VQA-based pipeline highlights the importance of capturing negations related to actions and attributes, not just object presence, for robust negation understanding.
  • Dedicated Benchmarks are Essential: The creation of NegRefCOCOg underscores the need for specialized evaluation tools that can accurately measure negation comprehension without introducing biases.

Key Results

  • NegationCLIP Outperforms Baselines: NegationCLIP consistently achieves superior performance on the proposed NegRefCOCOg benchmark and the VALSE Existence benchmark across various CLIP architectures (ViT-B/32, ViT-B/16, ViT-L/14). For instance, on ViT-L/14, NegationCLIP achieved 62.95% on NegRefCOCOg, compared to 57.27% for the original CLIP.
  • General Performance Preserved: Fine-tuning with negation-inclusive data does not degrade CLIP's general capabilities. NegationCLIP maintains competitive or even slightly improved performance on ImageNet classification and COCO retrieval compared to the original CLIP.
  • Improved Text-to-Image Generation: Replacing the text encoder in Stable Diffusion XL with NegationCLIP significantly improves the generation of images from negation-inclusive prompts. The "Neg Score" increased by over 0.15 compared to the original text encoder.
  • Enhanced Referring Image Segmentation: NegationCLIPSeg, by using the NegationCLIP text encoder, shows improved performance on negation-inclusive prompts in referring image segmentation tasks, particularly on the RefCOCOg (Neg) subset.

Limitations and Future Work

  • Potential for Alignment Challenges in Complex Models: While NegationCLIP's text encoder can be directly substituted into models like SDXL, the authors note that this might introduce minor alignment challenges, suggesting further adaptation of diffusion models could be beneficial.
  • Future Work: The paper implicitly suggests that further exploration of data generation techniques and the development of more comprehensive negation benchmarks will be crucial for advancing VLM capabilities. The success of NegationCLIP in various downstream tasks also points towards its potential as a general-purpose, negation-aware text encoder for a wider range of multimodal applications.

Summary updated

BibTeX
@inproceedings{park2025know,
  author = {Junsung Park and Jungbeom Lee and Jongyoon Song and Sangwon Yu and Dahuin Jung and Sungroh Yoon},
  title = {{Know "No" Better: A Data-Driven Approach for Enhancing Negation Awareness in CLIP}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure