Abstract
We propose CLIP-Lite, an information efficient method for visual representation learning by feature alignment with textual annotations. Compared to the previously proposed CLIP model, CLIP-Lite requires only one negative image-text sample pair for every positive image-text sample during the optimization of its contrastive learning objective. We accomplish this by taking advantage of an information efficient lower-bound to maximize the mutual information between the two input modalities. This allows CLIP-Lite to be trained with significantly reduced amounts of data and batch sizes while obtaining better performance than CLIP at the same scale. We evaluate CLIP-Lite by pretraining on the COCO-Captions dataset and testing transfer learning to other datasets. CLIP-Lite obtains a +14.0% mAP absolute gain in performance on Pascal VOC classification, and a +22.1% top-1 accuracy gain on ImageNet, while being comparable or superior to other, more complex, text-supervised models. CLIP-Lite is also superior to CLIP on image and text retrieval, zero-shot classification, and visual grounding. Finally, we show that CLIP-Lite can leverage language semantics to encourage bias-free visual representations that can be used in downstream tasks.
Introduction
The original Contrastive Language-Image Pre-training (CLIP) model revolutionized computer vision by learning from 400 million image-caption pairs. However, CLIP is notoriously "data-hungry" and "batch-hungry." It relies on the InfoNCE loss, which requires a massive number of negative samples to provide a good estimate of the mutual information between modalities. This creates hurdles in compute intensity and data scale, making it difficult to train effectively on smaller, curated datasets. CLIP-Lite seeks to bridge this gap, enabling efficient representation learning in low-resource regimes.
Methodology
The core innovation in CLIP-Lite is the shift in how the model maximizes Mutual Information (MI) between images and text.
The JSD Objective
Instead of the standard InfoNCE loss, CLIP-Lite adopts a lower bound based on Jensen-Shannon Divergence (JSD). While InfoNCE is theoretically loose unless a huge number of negatives are available, the JSD-based bound is stable and effective even with just one negative sample per positive pair. This reduces the complexity of negative pairs per batch from $O(n^2)$ in CLIP to $O(n)$ in CLIP-Lite.
Architecture and MI Estimation
The model uses a standard ResNet-50 for images and a BERT-base transformer for text. Representations from both encoders are projected into a shared latent space where a discriminator scores the pairs. The model is trained to give high scores to "positive" pairs (the actual image and its caption) and low scores to "negative" pairs (the image paired with a random caption).
Experimental Results
CLIP-Lite was pretrained on the COCO-Captions dataset (approx. 118K images) and evaluated across various downstream tasks.
Performance Gains
When both models are trained on the COCO-Captions scale, CLIP-Lite shows significant improvements over the CLIP baseline:
- ImageNet Classification: CLIP-Lite achieves 55.3% top-1 accuracy, a +22.1% absolute gain over CLIP (33.2%).
- Pascal VOC: CLIP-Lite reaches 88.2% mAP, outperforming CLIP (74.2%) by 14%.
- Zero-Shot Retrieval: On Flickr30k (R@1), CLIP-Lite hits 28.8% for text retrieval, compared to CLIP’s 19.9%.
Efficiency and Robustness
CLIP-Lite demonstrates extreme data efficiency; trained on only 25% of the COCO dataset, it outperforms a standard CLIP model trained on the full 100% of the data. Furthermore, while CLIP’s performance collapses with small batch sizes, CLIP-Lite remains effective even with a batch size as small as 64.
Qualitative Analysis and Bias Mitigation
Despite no explicit spatial supervision, CLIP-Lite learns to "ground" language, localizing image regions corresponding to specific words (e.g., "blue" or "blurry player") using Grad-CAM visualizations. Additionally, the authors demonstrate that the model can mitigate societal biases. By identifying a "gender direction" in the embedding space, they can perform "concept editing" to subtract bias from image representations for downstream tasks.
Conclusion
CLIP-Lite presents a highly efficient framework for vision-language pretraining. By utilizing a JSD-based mutual information estimator, it achieves superior performance with significantly less data and compute than standard contrastive methods. This makes powerful multimodal representation learning accessible for a wider range of datasets and hardware configurations.
Implementation: https://github.com/4m4n5/CLIP-Lite
Summary updated