Is CLIP ideal? No. Can we fix it? Yes!

Raphi Kang, Yue Song, Georgia Gkioxari, Pietro Perona
3/10/2025
cs.LGcs.CV

Official code: Raphoo/DCSM_Ideal_CLIP (56 stars, MIT, last commit 2025-12-12).

Abstract

Contrastive Language-Image Pre-Training (CLIP) is a popular method for learning multimodal latent spaces with well-organized semantics. Despite its wide range of applications, CLIP's latent space is known to fail at handling complex visual-textual interactions. Recent works attempt to address its shortcomings with data-centric or algorithmic approaches. But what if the problem is more fundamental, and lies in the geometry of CLIP? Toward this end, we rigorously analyze CLIP's latent space properties, and prove that no CLIP-like joint embedding space exists which can correctly do any two of the following at the same time: 1. represent basic descriptions and image content, 2. represent attribute binding, 3. represent spatial location and relationships, 4. represent negation. Informed by this analysis, we propose Dense Cosine Similarity Maps (DCSMs) as a principled and interpretable scoring method for CLIP-like models, which solves the fundamental limitations of CLIP by retaining the semantic topology of the image patches and text tokens. This method improves upon the performance of classical CLIP-like joint encoder models on a wide array of benchmarks. We share our code and data here for reproducibility: https://github.com/Raphoo/DCSM_Ideal_CLIP

View on arXivView PDF

Code Implementations(1)

MIT

Code for "Is CLIP ideal? No. Can we fix it? Yes!"

562Python, Jupyter NotebookMar 10, 202510 months agoMIT

Similar Papers

Cite this paper

@article{kang2025clip,
  title  = {Is CLIP ideal? No. Can we fix it? Yes!},
  author = {Raphi Kang and Yue Song and Georgia Gkioxari and Pietro Perona},
  year   = {2025},
  eprint = {2503.08723},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.08723v1}
}

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/2503.08723.svg)](https://codeofpaper.com/paper/2503.08723)

Discussion