Abstract
Compositional reasoning is a hallmark of human visual intelligence. Yet, despite the size of large vision-language models (VLMs), they struggle to represent simple compositions by combining objects with their attributes. To measure this lack of compositional capability, we design Cola, a text-to-image retrieval benchmark to Compose Objects Localized with Attributes. To solve Cola, a model must retrieve images with the correct configuration of attributes and objects, avoiding distractors with the same elements in the wrong configuration. Our evaluation finds that while humans achieve 83.33% accuracy, current VLMs lag significantly. We explore six adaptation strategies and find that training a multimodal attention layer (MM-Adapter) that jointly attends over frozen pre-trained image and language features is the most effective approach.
The Compositionality Gap
Current state-of-the-art vision-language models like CLIP often operate as "bags of words." They excel at identifying individual objects or attributes but fail to correctly bind them. For instance, when prompted with "round white table," a model might retrieve an image containing a square table with a round white plate on top. This failure in compositionality—the ability to understand how parts combine into a specific whole—is a significant hurdle for reliable visual reasoning.
Existing benchmarks often fail to isolate this specific attribute-object binding problem. Cola addresses this by providing approximately 1.2k composed queries across 30k images, specifically designed to test whether a model can distinguish between correct and incorrect attribute-object configurations in both single-object and complex multi-object scenes.
The Cola Benchmark
Cola sources images from four major datasets: GQA, CLEVR, PACO, and Visual Genome. It categorizes challenges into:
- Single-object queries: e.g., "square white plate."
- Multi-object queries: e.g., "small wood table to the right of the large dark chair."
The benchmark requires the model to perform text-to-image retrieval, a task found to be significantly harder than image-to-text retrieval due to the noise in current image encoders regarding fine-grained details.
Adaptation Strategies
To address these failures without the prohibitive cost of training new foundation models, researchers tested several adaptation strategies on CLIP and FLAVA. These ranged from simple linear probing and prompt-tuning to full fine-tuning.
The breakthrough strategy, MM-Adapter, involves a lightweight multimodal transformer encoder-decoder placed on top of frozen pre-trained encoders. This architecture allows image patches and text tokens to "talk" to each other through cross-attention, effectively "re-binding" attributes to their correct objects before a final decision is made. Surprisingly, training these multimodal layers from scratch on attribute-object data outperformed using the pre-trained multimodal layers in larger models like FLAVA, suggesting that compositionality is not automatically captured by massive-scale web pre-training.
Key Results and Insights
- The Performance Gap: Human accuracy on Cola is approximately 83.33%. In contrast, the base CLIP model scores only 21.42% on multi-object tasks—worse than random guessing (25%). The MM-Adapter significantly improves this to 40.95%, yet a substantial gap remains.
- Efficiency of CLIP: Despite being smaller, CLIP-based adapters often outperformed FLAVA-based versions, highlighting that the quality of the adaptation strategy can be more important than raw model size.
- Generalization: The MM-Adapter successfully generalized to "unseen" attribute-object combinations, indicating it learns a reasoning mechanism rather than simple pair memorization. It also showed consistent improvements on the contemporary CREPE benchmark.
Conclusion
While multimodal adapters provide a significant boost to compositional reasoning in VLMs, the gap between model and human performance remains large. Challenges such as spatial relationships ("left of" vs. "right of"), occlusions, and fine-grained attribute differences continue to baffle current systems. Cola provides a rigorous testbed for future research into making vision-language models truly understand the structured world they perceive.
Summary updated