Papers › Efficient Vision-Language Pre-training by Cluster Masking

Efficient Vision-Language Pre-training by Cluster Masking

14 May 2024CVPR 2024 1arXiv:2405.08815archive 2025-07-28

Zihao Wei, Zixuan Pan, Andrew Owens

We propose a simple strategy for masking image patches during visual-language contrastive learning that improves the quality of the learned representations and the training speed. During each iteration of training, we randomly mask clusters of visually similar image patches, as measured by their raw pixel intensities. This provides an extra learning signal, beyond the contrastive training itself, since it forces a model to predict words for masked visual structures solely from context. It also speeds up training by reducing the amount of data used in each image. We evaluate the effectiveness of our model by pre-training on a number of benchmarks, finding that it outperforms other masking strategies, such as FLIP, on the quality of the learned representation.

PaperPDFConference PDFCodeCode 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.08815")

Code

Syntology Ran 3 of 17 code samples harvested from 1 repository linked to this paper; 14 have no recorded run. Of those that ran: 3 ran · violated contract.

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

zi-hao-wei/efficient-vision-language-pre-training-by-cluster-masking officialmentioned in papermentioned on GitHubpytorch 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

17 samples harvested; 3 ran; 0 honoured the contract we drafted; 14 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.

3ran · violated contract
14unverified

Licence: 17 of the 17 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 zi-hao-wei/efficient-vision-language-pre-training-by-cluster-masking. “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.

is_global_master zi-hao-wei/efficient-vision-language-pre-training-by-cluster-masking/training/distributed.py official repository ran · violated contract no licence file found · pointer only · 7c29b374198bddcd · report
is_local_master zi-hao-wei/efficient-vision-language-pre-training-by-cluster-masking/training/distributed.py official repository ran · violated contract no licence file found · pointer only · 0377e309e95cfc3e · report
is_master zi-hao-wei/efficient-vision-language-pre-training-by-cluster-masking/training/distributed.py official repository ran · violated contract no licence file found · pointer only · b092791002b40e8a · report
accuracy zi-hao-wei/efficient-vision-language-pre-training-by-cluster-masking/training/zero_shot.py official repository unverified no licence file found · pointer only · aafcff3ad1ccef6e · report
const_lr zi-hao-wei/efficient-vision-language-pre-training-by-cluster-masking/training/scheduler.py official repository unverified no licence file found · pointer only · 04508bbd793cdfb9 · report
const_lr_cooldown zi-hao-wei/efficient-vision-language-pre-training-by-cluster-masking/training/scheduler.py official repository unverified no licence file found · pointer only · cc0d607a8934307d · report
cosine_lr zi-hao-wei/efficient-vision-language-pre-training-by-cluster-masking/training/scheduler.py official repository unverified no licence file found · pointer only · 932d44bbf8bd0e3f · report
gather_features zi-hao-wei/efficient-vision-language-pre-training-by-cluster-masking/open_clip/loss.py official repository unverified no licence file found · pointer only · ddcbd45e940484ee · report
get_autocast zi-hao-wei/efficient-vision-language-pre-training-by-cluster-masking/training/precision.py official repository unverified no licence file found · pointer only · 94a4076103662faf · report
get_default_params zi-hao-wei/efficient-vision-language-pre-training-by-cluster-masking/training/params.py official repository unverified no licence file found · pointer only · 575ba28efe232215 · report
get_imagenet zi-hao-wei/efficient-vision-language-pre-training-by-cluster-masking/training/data.py official repository unverified no licence file found · pointer only · 4ab095823c6ec0d7 · report
parse_args zi-hao-wei/efficient-vision-language-pre-training-by-cluster-masking/training/params.py official repository unverified no licence file found · pointer only · 0cf1bb95320d3c1f · report
prepare_inputs_for_generation zi-hao-wei/efficient-vision-language-pre-training-by-cluster-masking/open_clip/coca_model.py official repository unverified no licence file found · pointer only · fb651d0a97fd4d3f · report
register_pooler zi-hao-wei/efficient-vision-language-pre-training-by-cluster-masking/open_clip/hf_model.py official repository unverified no licence file found · pointer only · 2a377da4a76a2d44 · report
remote_sync zi-hao-wei/efficient-vision-language-pre-training-by-cluster-masking/training/file_utils.py official repository unverified no licence file found · pointer only · c8826eee91bf0f73 · report
remote_sync_fsspec zi-hao-wei/efficient-vision-language-pre-training-by-cluster-masking/training/file_utils.py official repository unverified no licence file found · pointer only · 5ef1e6fce93e5928 · report
remote_sync_s3 zi-hao-wei/efficient-vision-language-pre-training-by-cluster-masking/training/file_utils.py official repository unverified no licence file found · pointer only · 0cf5fb2e3a3a9114 · report

Tasks

Contrastive Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Contrastive LearningFLIP

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