Papers › Modeling Caption Diversity in Contrastive Vision-Language Pretraining

Modeling Caption Diversity in Contrastive Vision-Language Pretraining

30 Apr 2024arXiv:2405.00740archive 2025-07-28

Samuel Lavoie, Polina Kirichenko, Mark Ibrahim, Mahmoud Assran, Andrew Gordon Wilson, Aaron Courville, Nicolas Ballas

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2405.00740")

Code

Syntology Ran 14 of 22 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 1 ran · honoured contract; 4 ran · our draft was wrong; 9 ran with no contract checked.

By repository: official repository: 22 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

facebookresearch/llip officialmentioned in papermentioned on GitHubpytorchNOASSERTION report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

22 samples harvested; 14 ran; 1 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
4ran · our draft was wrong
9ran
8unverified

Licence: 22 of the 22 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from facebookresearch/llip. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

basic_clean facebookresearch/llip/llip/open_clip/tokenizer.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 98f385d847636a3e · report
build_text_features facebookresearch/llip/llip/clipeval/eval_zeroshot.py official repository ran licence not identified · pointer only · 42af9a757bc1b69d · report
clevr_t_transform facebookresearch/llip/llip/clipeval/datasets.py official repository ran licence not identified · pointer only · db0d3e0c5b2adeb5 · report
get_pairs facebookresearch/llip/llip/open_clip/tokenizer.py official repository ran · our draft was wrong no licence file found · pointer only · d919ae32e5e4e616 · report
list_pretrained facebookresearch/llip/llip/open_clip/pretrained.py official repository ran licence not identified · pointer only · 8b0612f3e9492f95 · report
list_pretrained_model_tags facebookresearch/llip/llip/open_clip/pretrained.py official repository ran fingerprinted licence not identified · pointer only · 9471c2ed1b6fced5 · report
list_pretrained_tag_models facebookresearch/llip/llip/open_clip/pretrained.py official repository ran fingerprinted licence not identified · pointer only · 4ce83ee6f7ee1d23 · report
load_checkpoint facebookresearch/llip/llip/open_clip/factory.py official repository ran licence not identified · pointer only · ad4accadc0057d93 · report
load_metadata facebookresearch/llip/llip/clipeval/eval_zeroshot.py official repository ran licence not identified · pointer only · 520cc1220abd0e5f · report
load_state_dict facebookresearch/llip/llip/open_clip/factory.py official repository ran no licence file found · pointer only · 4b3a4d17e1df3140 · report
parse_start_end facebookresearch/llip/llip/configs.py official repository ran licence not identified · pointer only · 0695ee477b98b602 · report
pil_loader facebookresearch/llip/llip/clipeval/datasets.py official repository ran · honoured contract no licence file found · pointer only · f321f54723433661 · report
trace_model facebookresearch/llip/llip/open_clip/model.py official repository ran · our draft was wrong no licence file found · pointer only · 8e95157106d1df8c · report
whitespace_clean facebookresearch/llip/llip/open_clip/tokenizer.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 9542161e9640b858 · report
build_model_from_openai_state_dict facebookresearch/llip/llip/open_clip/model.py official repository unverified licence not identified · pointer only · 546ba17b219740cb · report
create_model facebookresearch/llip/llip/open_clip/factory.py official repository unverified licence not identified · pointer only · 0baf8b3de60cf8ff · report
evaluate facebookresearch/llip/llip/clipeval/eval_zeroshot.py official repository unverified licence not identified · pointer only · e2c5a40d6b301ed0 · report
gather_features facebookresearch/llip/llip/open_clip/loss.py official repository unverified no licence file found · pointer only · ddcbd45e940484ee · report
load_openai_model facebookresearch/llip/llip/open_clip/openai.py official repository unverified licence not identified · pointer only · c188f5b72375b4e2 · report
neighbour_exchange facebookresearch/llip/llip/open_clip/loss.py official repository unverified no licence file found · pointer only · e332856e3c2fc814 · report
neighbour_exchange_bidir facebookresearch/llip/llip/open_clip/loss.py official repository unverified no licence file found · pointer only · 5b1fd364afcf3c05 · report
search_config facebookresearch/llip/llip/configs.py official repository unverified licence not identified · pointer only · 88fb1afdb534319f · report

Tasks

DiversityZero-Shot Learning

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

CLIPSET

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections