Abstract
Vision language models have been criticized for their performance resembling bag-of-words models, lacking semantic understanding. Efforts to address this concern have included the integration of composition aware negative samples into contrastive learning methodologies. However, current negative generation methods show restricted semantic comprehension, diversity, and fluency. To tackle this issue, we propose leveraging Abstract Meaning Representation (AMR), a representation of considerable interest in natural language processing research, for negative sample generation. By altering the structure of the meaning representation, we create negative samples with entirely different meanings but share close plain paraphrases. These negatives, generated using AMR, are then incorporated alongside token swap negatives during contrastive training. Our results indicate that AMR generated negatives introduce significantly diverse patterns. Furthermore, the inclusion of AMR generated negative samples enhances the models’ performance across a range of compositional understanding tasks.
Introduction: The "Bag-of-Words" Problem
Despite the success of Vision Language Models (VLMs) like CLIP in zero-shot retrieval, they often struggle with compositional understanding. These models frequently behave like "bag-of-words" systems, relying on keyword presence rather than the structural relationships between concepts. For instance, a model might assign nearly identical similarity scores to "A horse eating hay while a dog stands behind" and "A dog eating hay while a horse stands behind," failing to distinguish the specific roles of the subjects and objects.
To address this, researchers have turned to contrastive learning using "hard negatives"—captions that contain the correct words but describe a different scene. However, traditional methods like random token swapping often produce ungrammatical or nonsensical text. This allows models to "cheat" by identifying linguistic errors rather than truly comparing text to visual evidence. This paper introduces a method to generate fluent, structurally diverse hard negatives using Abstract Meaning Representation (AMR).
Methodology: AMR-Based Negative Generation
The core contribution of this work is a pipeline that leverages the structured nature of AMR to create high-quality negative samples. AMR is a graph-based semantic representation where nodes represent concepts and directed edges represent their relationships.
As illustrated in the pipeline above, the process involves three key steps:
- AMR Parsing: An initial image caption is converted into an AMR graph using a pre-trained parser.
- Split and Reconstruct: The graph is decomposed into its root node and various edge-node pairs. These components are then randomly shuffled and reconnected to form a new, structurally valid graph that describes a different semantic scenario.
- AMR Generation: A T5-based text generator translates the modified graph back into natural language. Because the generator is trained on large-scale text data, it produces fluent, grammatically correct sentences even from shuffled semantic inputs.
Contrastive Training
The resulting model, AMR-NegCLIP, is fine-tuned using a hybrid contrastive loss. The training objective incorporates both standard positive pairs and a mixture of AMR-generated negatives and traditional token-swap negatives. This diversity in negative samples provides a curriculum of difficulty, forcing the model to learn both local token-level differences and global semantic structures.
Experimental Results
The authors evaluated AMR-NegCLIP on several rigorous benchmarks designed to test compositional reasoning:
- ARO (Attribution, Relation, and Order): AMR-NegCLIP showed significant gains over the NegCLIP baseline, particularly in the Visual Genome Relation (+2.2%) and COCO Order (+5.6%) tasks. These results indicate a superior ability to understand how objects relate to one another.
- SugarCrepe: On the "Swap" task—where objects or attributes are exchanged without changing the overall vocabulary—AMR-NegCLIP achieved a 5.9% improvement over NegCLIP. This benchmark is specifically designed to be "uncheatable" by ensuring all negative captions are fluent and plausible.
Conclusion
By shifting from simple token manipulation to structural semantic modification via AMR, this research demonstrates that fluency in negative samples is critical for forcing VLMs to develop true multimodal understanding. AMR-NegCLIP successfully bridges the gap between keyword matching and semantic comprehension, outperforming previous state-of-the-art methods on compositional benchmarks. Future work may involve more controlled AMR modifications to target specific model weaknesses beyond random shuffling.
Summary updated