Abstract
Negation is a fundamental linguistic concept used by humans to convey information that they do not desire. Despite this, minimal research has focused on negation within text-guided image editing. This lack of research means that vision-language models (VLMs) for image editing may struggle to understand negation, implying that they struggle to provide accurate results. One barrier to achieving human-level intelligence is the lack of a standard collection by which research into negation can be evaluated. This paper presents the first large-scale dataset, Negative Instruction (NeIn), for studying negation within instruction-based image editing. Our dataset comprises 366,957 quintuplets, including 342,775 queries for training and 24,182 queries for benchmarking image editing methods. Specifically, we automatically generate NeIn based on MS-COCO via a two-step generation and filtering process. Extensive experiments demonstrate that even recent state-of-the-art VLMs struggle to understand negative queries, but training on NeIn significantly improves their performance.
Introduction: The Challenge of Negation
While current Vision-Language Models (VLMs) excel at adding or modifying elements in images, they frequently fail when processing negative instructions—requests to exclude or remove specific objects. For example, a prompt like "a street without a car" often triggers the model to add more cars. This phenomenon, known as "presence bias," occurs because models are primarily trained on datasets that describe what is in an image. Consequently, the mention of an object acts as a strong generation signal, while the negative marker (e.g., "no," "without") is effectively ignored.
Methodology: The NeIn Dataset
To address this limitation, we introduce NeIn (Negative Instruction), the first large-scale dataset specifically designed to teach VLMs the concept of absence. The dataset was constructed using an automated pipeline:
- Generation Phase: We employ a "reverse generation" logic. Starting with a clean target image, we use BLIP to identify objects not present. We then use an image-to-image model (InstructPix2Pix) to artificially add that object, creating a synthetic source image. This provides a perfect ground truth for the removal task: returning to the original clean image given a negative instruction.
- Filtering Phase: To ensure quality, we use LLaVA-NeXT to verify that the synthetic image contains the added object and remains structurally consistent with the original.
- Linguistic Diversity: The dataset includes 32 different negative markers (e.g., "lacks," "missing," "nowhere to be seen") to ensure models learn the concept of negation rather than just a single keyword.
Experimental Results
We evaluated several state-of-the-art models using two new metrics: Removal Score (success in deleting the requested object) and Retention Score (preservation of the rest of the image).
Before training on NeIn, standard models like InstructPix2Pix showed a dismal removal score of only 3.83%. After fine-tuning on our dataset, this success rate jumped to 93.62%. Furthermore, the fine-tuned models maintained higher image fidelity (measured via CLIP-I and DINO scores) and demonstrated the ability to generalize to complex, out-of-distribution prompts that they had not encountered during training.
Conclusion
The NeIn dataset provides a critical benchmark and training resource for improving negation understanding in VLMs. By shifting the focus from what is present to what should be absent, we move closer to achieving human-level intelligence in AI-driven image editing. Future work will explore more complex logical negations and expand the application of NeIn to other vision-language tasks like composed image retrieval.
Summary updated