Modeling Caption Diversity in Contrastive Vision-Language Pretraining
Samuel Lavoie, Polina Kirichenko, Mark Ibrahim, Mahmoud Assran, Andrew Gordon Wilson, Aaron Courville, Nicolas Ballas
TL;DR
This work tackles the limitation of CLIP-style vision-language models that map images and captions to a single representation by introducing Latent Language Image Pretraining (Llip), which models caption diversity through caption-conditioned visual mixture tokens. By weighting multiple visual components via cross-attention driven by the target caption, Llip yields richer contextualized image representations and consistent zero-shot gains across classification and retrieval tasks. Comprehensive ablations demonstrate the value of caption-conditioned mixing over baseline SigLIP and CLIP approaches, with notable improvements on ImageNet zero-shot accuracy and MS-COCO retrieval. The approach scales with model size and maintains robustness across datasets and tasks, offering a simple yet effective enhancement to vision-language pretraining pipelines.
Abstract
There are a thousand ways to caption an image. Contrastive Language Pretraining (CLIP) on the other hand, works by mapping an image and its caption to a single vector -- limiting how well CLIP-like models can represent the diverse ways to describe an image. In this work, we introduce Llip, Latent Language Image Pretraining, which models the diversity of captions that could match an image. Llip's vision encoder outputs a set of visual features that are mixed into a final representation by conditioning on information derived from the text. We show that Llip outperforms non-contextualized baselines like CLIP and SigLIP on a variety of tasks even with large-scale encoders. Llip improves zero-shot classification by an average of 2.9% zero-shot classification benchmarks with a ViT-G/14 encoder. Specifically, Llip attains a zero-shot top-1 accuracy of 83.5% on ImageNet outperforming a similarly sized CLIP by 1.4%. We also demonstrate improvement on zero-shot retrieval on MS-COCO by 6.0%. We provide a comprehensive analysis of the components introduced by the method and demonstrate that Llip leads to richer visual representations.
