CLIP-Lite: Information Efficient Visual Representation Learning with Language Supervision

Aman Shrivastava, Ramprasaath R. Selvaraju, Nikhil Naik, Vicente Ordonez

Introduction

Contrastive Language-Image Pre-training (CLIP) has fundamentally changed the landscape of computer vision by demonstrating that robust visual representations can be learned directly from massive, uncurated internet data. However, the original CLIP framework is notoriously resource-intensive, requiring hundreds of millions of image-caption pairs and massive batch sizes (often exceeding 32,000) to achieve state-of-the-art performance. This "data-hungry" nature stems from the underlying objective function, which limits the model's efficiency in data-constrained environments.

The InfoNCE Bottleneck

The primary challenge in standard CLIP is its reliance on the InfoNCE loss. Theoretically, InfoNCE provides a lower bound on the mutual information between image and text modalities. However, this bound is known to be "loose" unless the number of negative samples is extremely large. To provide sufficient contrast for the model to learn meaningful features, researchers are forced to use massive batches, which in turn necessitates significant computational hardware.

CLIP-Lite was developed to address this inefficiency by identifying a more robust objective function that remains effective even when training on smaller datasets with limited negative samples.

Methodology: From InfoNCE to JSD

The core innovation of CLIP-Lite is the replacement of InfoNCE with a Jensen-Shannon Divergence (JSD) based lower bound for mutual information maximization. Unlike InfoNCE, the JSD-based objective is stable and differentiable even with a single negative sample per positive pair. This shift allows the model to learn effectively without the need for the $O(n^2)$ negative pairs typically required by CLIP's batch-based contrastive approach.

Contrastive sampling comparison: CLIP vs. CLIP-Lite.

As shown in the architecture diagram below, CLIP-Lite utilizes a standard ResNet-50 for image encoding and a BERT-base model for text encoding. For every positive image-caption pair, a negative caption is randomly sampled from the same batch. A discriminator network then processes these pairs to output alignment scores. The model is trained to maximize the scores of positive pairs while minimizing those of negatives, effectively estimating mutual information through a binary classification task.

The CLIP-Lite architecture diagram.

Experimental Results

The authors pre-trained CLIP-Lite on the COCO-Captions dataset, which contains approximately 118,000 images—a tiny fraction of the 400 million used for the original CLIP. Despite this scale difference, CLIP-Lite demonstrated remarkable efficiency:

  • Superiority on Small Data: CLIP-Lite trained on just 25% of the COCO dataset (approx. 30k images) outperformed a standard CLIP model trained on the full 100% of COCO.
  • Linear Probing: On ImageNet-1k, CLIP-Lite achieved 55.3% top-1 accuracy, representing a +22.1% absolute gain over a CLIP model trained on the same COCO data.
  • Zero-Shot Transfer: On CIFAR-10, CLIP-Lite reached 33.0% accuracy, more than doubling the 16.3% achieved by the CLIP-COCO baseline.
  • Visual Grounding: Despite lacking explicit localization supervision, the model demonstrated an emergent ability to localize specific phrases within images using Grad-CAM heatmaps, highlighting the semantic richness of its learned latent space.

Discussion and Future Work

CLIP-Lite proves that the choice of objective function is as critical as the scale of data. By utilizing a more information-efficient bound, researchers can train high-quality vision-language models without industrial-scale compute resources.

However, limitations remain. The model's knowledge is inherently bounded by the descriptive quality of its training captions, and it may struggle with low-level visual tasks (like counting) that are rarely detailed in text. Furthermore, while the authors demonstrated "concept editing" to mitigate gender bias in retrieval, fully automated bias mitigation in large-scale models remains an ongoing challenge for the field.

Summary updated

BibTeX
@inproceedings{shrivastava2023clip,
  author = {Aman Shrivastava and Ramprasaath R. Selvaraju and Nikhil Naik and Vicente Ordonez},
  title = {{CLIP-Lite: Information Efficient Visual Representation Learning with Language Supervision}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
}
Figure