Papers › CLIPLoss and Norm-Based Data Selection Methods for Multimodal Contrastive Learning

CLIPLoss and Norm-Based Data Selection Methods for Multimodal Contrastive Learning

29 May 2024arXiv:2405.19547archive 2025-07-28

Yiping Wang, Yifang Chen, Wendan Yan, Alex Fang, Wenjing Zhou, Kevin Jamieson, Simon Shaolei Du

Data selection has emerged as a core issue for large-scale visual-language model pretaining (e.g., CLIP), particularly with noisy web-curated datasets. Three main data selection approaches are: (1) leveraging external non-CLIP models to aid data selection, (2) training new CLIP-style embedding models that are more effective at selecting high-quality data than the original OpenAI CLIP model, and (3) designing better metrics or strategies universally applicable to any CLIP embedding without requiring specific model properties (e.g., CLIPScore is one popular metric). While the first two approaches have been extensively studied, the third remains under-explored. In this paper, we advance the third approach by proposing two new methods. Firstly, instead of classical CLIP scores that only consider the alignment between two modalities from a single sample, we introduce surrogate-CLIPLoss (s-CLIPLoss), a CLIP loss-inspired method that adds the alignment between one sample and its contrastive pairs as an extra normalization term for better quality measurement. Secondly, when downstream tasks are known, we propose a new norm-based metric, NormSim, to measure the similarity between pretraining data and target data. We test our methods on the data selection benchmark, DataComp~\cite{gadre2023datacomp}. Compared to the best baseline using only OpenAI's CLIP-L/14, our methods achieve a 5.3\% improvement on ImageNet-1k and a 2.8\% improvement on 38 downstream evaluation tasks. Moreover, both s-CLIPLoss and NormSim are compatible with existing techniques. By combining our methods with the current best methods DFN and HYPE, we can boost average performance on downstream tasks by 0.9\%, achieving a new state-of-the-art on the DataComp-medium benchmark.

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.19547")

Code

Syntology Ran 13 of 19 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 3 ran · violated contract; 1 ran · our draft was wrong; 9 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 10 ran; 3 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ypwang61/negcliploss_normsim officialmentioned in papermentioned on GitHubpytorch report
ypwang61/VAS officialmentioned 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

19 samples harvested; 13 ran; 0 honoured the contract we drafted; 6 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
1ran · our draft was wrong
9ran
6unverified

Licence: 19 of the 19 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 ypwang61/VAS. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

available_scales ypwang61/VAS/scale_configs.py official repository ran no licence file found · pointer only · 00dd429e9775e127 · report
filter_by_score ypwang61/VAS/baselines/vas.py official repository ran no licence file found · pointer only · 53deafe2a17c9bd5 · report
generate_p_from_clipscores ypwang61/VAS/cal_clipscores.py official repository ran fingerprinted no licence file found · pointer only · 6b052976ecde8c23 · report
get_aggregate_scores ypwang61/VAS/aggregate_scores.py official repository ran no licence file found · pointer only · 83f216dbfcc79287 · report
get_fasttext_language ypwang61/VAS/baselines/apply_filter.py official repository ran no licence file found · pointer only · 61d5b2eae57f28be · report
get_gcld3_language ypwang61/VAS/baselines/apply_filter.py official repository ran no licence file found · pointer only · 6cc97b780724c9b6 · report
get_scale_config ypwang61/VAS/scale_configs.py official repository ran no licence file found · pointer only · 673bbfe27cf768f1 · report
get_vas_gpu ypwang61/VAS/baselines/vas.py official repository ran no licence file found · pointer only · 63f3d769047ceab6 · report
random_sample ypwang61/VAS/cal_clipscores.py official repository ran no licence file found · pointer only · cfd8b1cf3644b321 · report
setup_process_logging ypwang61/VAS/resharder.py official repository ran · our draft was wrong no licence file found · pointer only · 28962743449aaadd · report
download ypwang61/VAS/baselines/utils.py official repository unverified no licence file found · pointer only · bb98f2d1cb3c5ff8 · report
filter_by_given_uids ypwang61/VAS/baselines/vas.py official repository unverified no licence file found · pointer only · b4ca49c3c0d1f7d0 · report
submit_to_firebase ypwang61/VAS/evaluate.py official repository unverified no licence file found · pointer only · 6da3dc3e075307c6 · report
submit_to_slack ypwang61/VAS/evaluate.py official repository unverified no licence file found · pointer only · 85c09d957a5f2bc8 · report
train_kmeans ypwang61/VAS/baselines/image_based_clustering.py official repository unverified no licence file found · pointer only · 24e11664919d0016 · report
worker_threadpool ypwang61/VAS/baselines/utils.py official repository unverified no licence file found · pointer only · fca45920dddd4939 · report
get_ranks identical code first harvested elsewhere ran · violated contract fingerprinted licence of this copy not recorded · f889070e0cb98b2f · report
get_ranks_ratios identical code first harvested elsewhere ran · violated contract fingerprinted licence of this copy not recorded · 2335a1161936c9fa · report
get_small_ranks identical code first harvested elsewhere ran · violated contract fingerprinted licence of this copy not recorded · 8ec35d035919e5bc · report

Tasks

Contrastive LearningLanguage Modelling

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

CLIP

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