SOTAVerified

Embedding Geometries of Contrastive Language-Image Pre-Training

2024-09-19Code Available0· sign in to hype

Jason Chuan-Chih Chou, Nahid Alam

Code Available — Be the first to reproduce this paper.

Reproduce

Code

Abstract

Since the publication of CLIP, the approach of using InfoNCE loss for contrastive pre-training has become widely popular for bridging two or more modalities. Despite its wide adoption, CLIP's original design choices of L2 normalization and cosine similarity logit have rarely been revisited. We have systematically experimented with alternative geometries and softmax logits for language-image pre-training and identified that variants with intuitive Euclidean geometry, Euclidean CLIP (EuCLIP), match or exceed the performance of CLIP and support hierarchical relationships at least as well as more complicated hyperbolic alternative.

Reproductions