The Double-Ellipsoid Geometry of CLIP

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Levi, Meir Yossef, Gilboa, Guy
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916756006633472
author Levi, Meir Yossef
Gilboa, Guy
author_facet Levi, Meir Yossef
Gilboa, Guy
contents Contrastive Language-Image Pre-Training (CLIP) is highly instrumental in machine learning applications within a large variety of domains. We investigate the geometry of this embedding, which is still not well understood. We examine the raw unnormalized embedding and show that text and image reside on linearly separable ellipsoid shells, not centered at the origin. We explain the benefits of having this structure, allowing to better embed instances according to their uncertainty during contrastive training. Frequent concepts in the dataset yield more false negatives, inducing greater uncertainty. A new notion of conformity is introduced, which measures the average cosine similarity of an instance to any other instance within a representative data set. We show this measure can be accurately estimated by simply computing the cosine similarity to the modality mean vector. Furthermore, we find that CLIP's modality gap optimizes the matching of the conformity distributions of image and text.
format Preprint
id arxiv_https___arxiv_org_abs_2411_14517
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle The Double-Ellipsoid Geometry of CLIP
Levi, Meir Yossef
Gilboa, Guy
Computer Vision and Pattern Recognition
Contrastive Language-Image Pre-Training (CLIP) is highly instrumental in machine learning applications within a large variety of domains. We investigate the geometry of this embedding, which is still not well understood. We examine the raw unnormalized embedding and show that text and image reside on linearly separable ellipsoid shells, not centered at the origin. We explain the benefits of having this structure, allowing to better embed instances according to their uncertainty during contrastive training. Frequent concepts in the dataset yield more false negatives, inducing greater uncertainty. A new notion of conformity is introduced, which measures the average cosine similarity of an instance to any other instance within a representative data set. We show this measure can be accurately estimated by simply computing the cosine similarity to the modality mean vector. Furthermore, we find that CLIP's modality gap optimizes the matching of the conformity distributions of image and text.
title The Double-Ellipsoid Geometry of CLIP
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2411.14517