[Paper Review] When and why vision-language models behave like bags-of-words, and what to do about it?
The paper introduces the Attribution, Relation, and Order (ARO) benchmark to diagnose compositional understanding in vision-language models and demonstrates that current models fail on relations, attributes, and order, then shows that composition-aware hard negatives can substantially improve performance.
Despite the success of large vision and language models (VLMs) in many downstream applications, it is unclear how well they encode compositional information. Here, we create the Attribution, Relation, and Order (ARO) benchmark to systematically evaluate the ability of VLMs to understand different types of relationships, attributes, and order. ARO consists of Visual Genome Attribution, to test the understanding of objects' properties; Visual Genome Relation, to test for relational understanding; and COCO & Flickr30k-Order, to test for order sensitivity. ARO is orders of magnitude larger than previous benchmarks of compositionality, with more than 50,000 test cases. We show where state-of-the-art VLMs have poor relational understanding, can blunder when linking objects to their attributes, and demonstrate a severe lack of order sensitivity. VLMs are predominantly trained and evaluated on large datasets with rich compositional structure in the images and captions. Yet, training on these datasets has not been enough to address the lack of compositional understanding, and evaluating on these datasets has failed to surface this deficiency. To understand why these limitations emerge and are not represented in the standard tests, we zoom into the evaluation and training procedures. We demonstrate that it is possible to perform well on retrieval over existing datasets without using the composition and order information. Given that contrastive pretraining optimizes for retrieval on datasets with similar shortcuts, we hypothesize that this can explain why the models do not need to learn to represent compositional information. This finding suggests a natural solution: composition-aware hard negative mining. We show that a simple-to-implement modification of contrastive learning significantly improves the performance on tasks requiring understanding of order and compositionality.
Motivation & Objective
- Assess how well vision-language models encode object attributes, relations, and word order in captions and images.
- Create large-scale benchmarks to measure attribution, relation, and order understanding.
- Analyze why retrieval-focused training may overlook compositional capabilities.
Proposed method
- Construct Visual Genome Attribution and Visual Genome Relation tasks to test object attributes and relations with swapped captions for ground-truth vs swapped cases.
- Create COCO Order and Flickr30k Order tasks to test model sensitivity to caption word order using systematic perturbations.
- Evaluate four state-of-the-art VLMs (CLIP, BLIP, Flava, X-VLM) on the ARO benchmarks.
- Critique retrieval and contrastive pretraining as insufficient assessments of compositional understanding.
- Propose composition-aware hard negative mining by generating negative captions and sampling nearest-neighbor images during finetuning.
- Demonstrate NegCLIP improves order/relational understanding with minimal downstream task performance loss.
Experimental results
Research questions
- RQ1Do VLMs reliably understand relational and attributive compositions in images?
- RQ2Are VLMs sensitive to word order in captions describing visually grounded scenes?
- RQ3Can contrastive pretraining on retrieval datasets cause models to ignore composition and order cues?
- RQ4Can composition-aware hard negative mining improve compositional understanding without hurting other tasks?
Key findings
- VLMs largely fail at relational understanding and attribute swapping, and show little sensitivity to caption order.
- Models perform near chance on Visual Genome Relation and Attribution tasks; e.g., spatial relations show varied but generally low accuracy, verbs are largely challenging, and attribution varies by model.
- Order sensitivity tests (COCO Order, Flickr30k Order) show models favor correct ordering little or not at all across tested models.
- Retrieval performance remains high even when order/compositional cues are perturbed, indicating retrieval-based evaluation hides compositional deficiencies.
- Introducing composition-aware hard negatives (NegCLIP) yields substantial gains: VG-Relation 63% to 81%, VG-Attribution 62% to 71%, COCO Order 46% to 86%, Flickr30k Order 59% to 91%, with negligible downstream-task drops.
- NegCLIP becomes competitive or superior on several compositional benchmarks while preserving performance on CIFAR-10/100, ImageNet, Flickr30k, and COCO.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.