CLIP Under the Microscope: A Fine-Grained Analysis of Multi-Object Representation
Reza Abbasi, Ali Nazari, Aminreza Sefid, Mohammadali Banayeeanzade, Mohammad Hossein Rohban, Mahdieh Soleymani Baghshah
TL;DR
This work reveals fine-grained biases in CLIP's encoders when handling multi-object scenes: the text encoder tends to overemphasize the first-mentioned object while the image encoder favors larger objects. By introducing the ComCO (and SIMCO) datasets, the authors provide controlled multi-object benchmarks and show that these biases degrade image-text matching in real-world datasets like COCO and even propagate to text-to-image generation via prompt order in Stable Diffusion. They dissect potential origins in the ViT-based image encoder and the cross-modal contrastive training that aligns image-text representations, linking observed biases to training data characteristics in LAION and to the progression of training. The paper also explores preliminary mitigation through per-object caption splitting and embedding aggregation, demonstrating improvements in matching robustness, while acknowledging limitations and outlining directions for bias-mitigation research in vision-language systems. Overall, the study emphasizes the need to address compositional biases to enhance robustness of vision-language models in complex, real-world scenarios and informs future work on training data curation and model architecture adjustments.
Abstract
Contrastive Language-Image Pre-training (CLIP) models excel in zero-shot classification, yet face challenges in complex multi-object scenarios. This study offers a comprehensive analysis of CLIP's limitations in these contexts using a specialized dataset, ComCO, designed to evaluate CLIP's encoders in diverse multi-object scenarios. Our findings reveal significant biases: the text encoder prioritizes first-mentioned objects, and the image encoder favors larger objects. Through retrieval and classification tasks, we quantify these biases across multiple CLIP variants and trace their origins to CLIP's training process, supported by analyses of the LAION dataset and training progression. Our image-text matching experiments show substantial performance drops when object size or token order changes, underscoring CLIP's instability with rephrased but semantically similar captions. Extending this to longer captions and text-to-image models like Stable Diffusion, we demonstrate how prompt order influences object prominence in generated images. For more details and access to our dataset and analysis code, visit our project repository: https://clip-oscope.github.io.
