SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.00740 · 2024

Modeling Caption Diversity in Contrastive Vision-Language Pretraining

arXiv · PDF · Open in the Atlas

Code that ran

14 of 22 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 10 failures of our instrument; 8 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2405.00740.json · badge: /api/ran/2405.00740.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
facebookresearch/llip canonical (classifier label)
classifier basis: census
14 ran · 8 no recorded run
FunctionStatusWhere it lives
basic_clean Ran
ran; our contract draft was wrong, not the code
facebookresearch/llip/llip/open_clip/tokenizer.py
pointer only (licence: NONE); the stored copy get_code serves, from ltpwy/MSCI, is pointer only (licence: NONE) · get_code("98f385d847636a3e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/llip when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_text_features Ran
ran; our contract draft was wrong, not the code
facebookresearch/llip/llip/clipeval/eval_zeroshot.py
pointer only (licence: NOASSERTION) · get_code("42af9a757bc1b69d")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/llip (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

clevr_t_transform Ran
ran, honoured the contract we drafted
facebookresearch/llip/llip/clipeval/datasets.py
pointer only (licence: NOASSERTION) · get_code("db0d3e0c5b2adeb5")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/llip (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_pairs Ran
ran; our contract draft was wrong, not the code
facebookresearch/llip/llip/open_clip/tokenizer.py
pointer only (licence: NONE) · get_code("d919ae32e5e4e616")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/llip when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

list_pretrained Ran
ran; our contract draft was wrong, not the code
facebookresearch/llip/llip/open_clip/pretrained.py
pointer only (licence: NOASSERTION) · get_code("8b0612f3e9492f95")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/llip (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

list_pretrained_model_tags Ran
ran; our contract draft was wrong, not the code
facebookresearch/llip/llip/open_clip/pretrained.py
pointer only (licence: NOASSERTION) · get_code("9471c2ed1b6fced5")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/llip (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

list_pretrained_tag_models Ran
ran; our contract draft was wrong, not the code
facebookresearch/llip/llip/open_clip/pretrained.py
pointer only (licence: NOASSERTION) · get_code("4ce83ee6f7ee1d23")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/llip (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_checkpoint Ran
ran on a synthesized input
facebookresearch/llip/llip/open_clip/factory.py
pointer only (licence: NOASSERTION) · get_code("ad4accadc0057d93")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/llip (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_metadata Ran
ran; our contract draft was wrong, not the code
facebookresearch/llip/llip/clipeval/eval_zeroshot.py
pointer only (licence: NOASSERTION) · get_code("520cc1220abd0e5f")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/llip (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_state_dict Ran
ran; our contract draft was wrong, not the code
facebookresearch/llip/llip/open_clip/factory.py
pointer only (licence: NONE); the stored copy get_code serves, from zqhang/PointAD, is pointer only (licence: NONE) · get_code("4b3a4d17e1df3140")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/llip when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_start_end Ran
ran, honoured the contract we drafted
facebookresearch/llip/llip/configs.py
pointer only (licence: NOASSERTION) · get_code("0695ee477b98b602")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/llip (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pil_loader Ran
ran, honoured the contract we drafted
facebookresearch/llip/llip/clipeval/datasets.py
pointer only (licence: NONE) · get_code("f321f54723433661")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/llip when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

trace_model Ran
ran; our contract draft was wrong, not the code
facebookresearch/llip/llip/open_clip/model.py
pointer only (licence: NONE); the stored copy get_code serves, from NYU-DICE-Lab/open_clip, is pointer only (licence: NOASSERTION) · get_code("8e95157106d1df8c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/llip when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

whitespace_clean Ran
ran; our contract draft was wrong, not the code
facebookresearch/llip/llip/open_clip/tokenizer.py
pointer only (licence: NONE); the stored copy get_code serves, from ltpwy/MSCI, is pointer only (licence: NONE) · get_code("9542161e9640b858")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/llip when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_model_from_openai_state_dict Not yet run
unverified (harvested, no recorded run)
facebookresearch/llip/llip/open_clip/model.py
pointer only (licence: NOASSERTION) · get_code("546ba17b219740cb")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/llip (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

create_model Not yet run
unverified (harvested, no recorded run)
facebookresearch/llip/llip/open_clip/factory.py
pointer only (licence: NOASSERTION) · get_code("0baf8b3de60cf8ff")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/llip (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

evaluate Not yet run
unverified (harvested, no recorded run)
facebookresearch/llip/llip/clipeval/eval_zeroshot.py
pointer only (licence: NOASSERTION) · get_code("e2c5a40d6b301ed0")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/llip (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

gather_features Not yet run
unverified (harvested, no recorded run)
facebookresearch/llip/llip/open_clip/loss.py
pointer only (licence: NONE); the stored copy get_code serves, from lxa9867/imagefolder, is pointer only (licence: NOASSERTION) · get_code("ddcbd45e940484ee")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/llip when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_openai_model Not yet run
unverified (harvested, no recorded run)
facebookresearch/llip/llip/open_clip/openai.py
pointer only (licence: NOASSERTION) · get_code("c188f5b72375b4e2")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/llip (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

neighbour_exchange Not yet run
unverified (harvested, no recorded run)
facebookresearch/llip/llip/open_clip/loss.py
pointer only (licence: NONE); the stored copy get_code serves, from lxa9867/imagefolder, is pointer only (licence: NOASSERTION) · get_code("e332856e3c2fc814")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/llip when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

neighbour_exchange_bidir Not yet run
unverified (harvested, no recorded run)
facebookresearch/llip/llip/open_clip/loss.py
pointer only (licence: NONE); the stored copy get_code serves, from lxa9867/imagefolder, is pointer only (licence: NOASSERTION) · get_code("5b1fd364afcf3c05")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/llip when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

search_config Not yet run
unverified (harvested, no recorded run)
facebookresearch/llip/llip/configs.py
pointer only (licence: NOASSERTION) · get_code("88fb1afdb534319f")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/llip (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 22 samples lifted from this paper's linked repositories, 22 carry a function identity and 0 do not. Of the 22 distinct functions with an identity, 15 are also present in other papers whose code we hold (15 with at least one paper dated earlier, 5 the same month, 13 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_pairs 258 other papers
143 dated earlier, 8 the same month, 99 later, 7 same year, order not determinable, 1 undated · 4 only as an assembly brick
1802.06474 (2018-02)
A Closed-form Solution to Photorealistic Image Stylization
1803.01128 (2018-03)
Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examples
1809.00125 (2018-09)
Simple Fusion: Return of the Language Model
and 255 more not named here
whitespace_clean 231 other papers
124 dated earlier, 8 the same month, 91 later, 7 same year, order not determinable, 1 undated · 4 only as an assembly brick
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2108.10904 (2021-08)
SimVLM: Simple Visual Language Model Pretraining with Weak Supervision
and 228 more not named here
basic_clean 218 other papers
124 dated earlier, 8 the same month, 78 later, 7 same year, order not determinable, 1 undated · 4 only as an assembly brick
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2108.10904 (2021-08)
SimVLM: Simple Visual Language Model Pretraining with Weak Supervision
and 215 more not named here
pil_loader 66 other papers
49 dated earlier, 2 the same month, 13 later, 2 same year, order not determinable
1502.03044 (2015-02)
Show, Attend and Tell: Neural Image Caption Generation with Visual Attention
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
1711.02512 (2017-11)
Fine-tuning CNN Image Retrieval with No Human Annotation
and 63 more not named here
gather_features 57 other papers
30 dated earlier, 1 the same month, 25 later, 1 same year, order not determinable · 1 only as an assembly brick
2206.01670 (2022-06)
Egocentric Video-Language Pretraining
2212.00638 (2022-12)
Finetune like you pretrain: Improved finetuning of zero-shot vision models
2301.07094 (2023-01)
Learning Customized Visual Models with Retrieval-Augmented Knowledge
and 54 more not named here
neighbour_exchange 19 other papers
4 dated earlier, 15 later
2303.15343 (2023-03)
Sigmoid Loss for Language Image Pre-Training
2403.15378 (2024-03)
Long-CLIP: Unlocking the Long-Text Capability of CLIP
2403.16831 (2024-03)
UrbanVLP: Multi-Granularity Vision-Language Pretraining for Urban Socioeconomic Indicator Prediction
and 16 more not named here
load_state_dict 18 other papers
15 dated earlier, 3 later
2301.07094 (2023-01)
Learning Customized Visual Models with Retrieval-Augmented Knowledge
2303.07240 (2023-03)
PMC-CLIP: Contrastive Language-Image Pre-training using Biomedical Documents
2303.14814 (2023-03)
WinCLIP: Zero-/Few-Shot Anomaly Classification and Segmentation
and 15 more not named here
neighbour_exchange_bidir 17 other papers
3 dated earlier, 14 later
2303.15343 (2023-03)
Sigmoid Loss for Language Image Pre-Training
2403.15378 (2024-03)
Long-CLIP: Unlocking the Long-Text Capability of CLIP
2403.16831 (2024-03)
UrbanVLP: Multi-Granularity Vision-Language Pretraining for Urban Socioeconomic Indicator Prediction
and 14 more not named here
trace_model 8 other papers
6 dated earlier, 2 later
2103.00020 (2021-03)
Learning Transferable Visual Models From Natural Language Supervision
2210.04150 (2022-10)
Open-Vocabulary Semantic Segmentation with Mask-adapted CLIP
2302.10281 (2023-02)
LiT Tuned Models for Efficient Species Detection
and 5 more not named here
list_pretrained 6 other papers
4 dated earlier, 2 later
2301.07094 (2023-01)
Learning Customized Visual Models with Retrieval-Augmented Knowledge
2307.12732 (2023-07)
CLIP-KD: An Empirical Study of CLIP Model Distillation
2311.17048 (2023-11)
Zero-shot Referring Expression Comprehension via Structural Similarity Between Images and Captions
and 3 more not named here
build_model_from_openai_state_dict 3 other papers
2 dated earlier, 1 later
2210.04150 (2022-10)
Open-Vocabulary Semantic Segmentation with Mask-adapted CLIP
2308.12213 (2023-08)
CLIPN for Zero-Shot OOD Detection: Teaching CLIP to Say No
2412.10372 (2024-12)
UniMed-CLIP: Towards a Unified Image-Text Pretraining Paradigm for Diverse Medical Imaging Modalities
list_pretrained_model_tags 2 other papers
1 dated earlier, 1 later
2311.17048 (2023-11)
Zero-shot Referring Expression Comprehension via Structural Similarity Between Images and Captions
2605.30107 (2026-05)
Dial HEALTHDIAL for Advice: A Multilingual and Multi-Parallel Spoken Dialogue Dataset for Knowledge-Grounded Information Seeking
list_pretrained_tag_models 2 other papers
1 dated earlier, 1 later
2311.17048 (2023-11)
Zero-shot Referring Expression Comprehension via Structural Similarity Between Images and Captions
2605.30107 (2026-05)
Dial HEALTHDIAL for Advice: A Multilingual and Multi-Parallel Spoken Dialogue Dataset for Knowledge-Grounded Information Seeking
load_checkpoint 2 other papers
2 dated earlier
2303.07240 (2023-03)
PMC-CLIP: Contrastive Language-Image Pre-training using Biomedical Documents
2311.17048 (2023-11)
Zero-shot Referring Expression Comprehension via Structural Similarity Between Images and Captions
load_openai_model 1 other paper
1 dated earlier
2303.07240 (2023-03)
PMC-CLIP: Contrastive Language-Image Pre-training using Biomedical Documents

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2405.00740")
get_code_for_paper("2405.00740")
have("2405.00740")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2405.00740.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2405.00740.svg)](https://syntology.ai/paper/2405.00740)

Connect an agent — have() is free.