CLIP Under the Microscope: A Fine-Grained Analysis of Multi-Object Representation

Reza Abbasi, Ali Nazari, Aminreza Sefid, Mohammadali Banayeeanzade, M. H. Rohban +1 more
2/1/2025

No official code found. Best implementation: clip-oscope/clip-oscope (10 stars, last commit 2025-03-18).

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/.

View on arXivView PDF

Code Implementations(1)

100Python, Jupyter NotebookSep 29, 20241 years ago

Cite this paper

@article{abbasi2025clip,
  title  = {CLIP Under the Microscope: A Fine-Grained Analysis of Multi-Object Representation},
  author = {Reza Abbasi and Ali Nazari and Aminreza Sefid and Mohammadali Banayeeanzade and M. H. Rohban and M. Baghshah},
  year   = {2025},
  eprint = {2502.19842},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2502.19842},
  journal = {CVPR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.19842.svg)](https://codeofpaper.com/paper/2502.19842)

Discussion