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. 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 View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 19 code samples harvested from 2 repositories linked to this paper: 14 ran (of which 0 constructed an object rather than computing a result; 8 with no instrument failure: 0 honoured, 3 violated, 5 with no contract checked; 6 where Syntology's instrument failed) · 5 unverified. Where Syntology's instrument failed: 5 where our contract draft was wrong; 1 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 19 samples from 2 repositories, 14 ran (8 with no instrument failure; 6 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-25 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

ypwang61/negcliploss_normsim officialmentioned in papermentioned on GitHubpytorchSyntology: 3 samples, 3 ran (0 instrument-failed) · 0 unverified report
ypwang61/VAS officialmentioned on GitHubpytorchSyntology: 16 samples, 11 ran (6 instrument-failed) · 5 unverified 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: 14 ran (of which 0 constructed an object rather than computing a result; 8 with no instrument failure: 0 honoured, 3 violated, 5 with no contract checked; 6 where Syntology's instrument failed) · 5 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

3ran · violated contract
5ran · our draft was wrong
1ran; the contract check could not run
5ran
5unverified

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 2 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. 3 samples whose link to this paper records no repository are listed under one of this paper's own repositories, because identical code was harvested from it for another paper. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

ypwang61/negcliploss_normsim official repository 3 samples, 3 ran (0 instrument-failed) · 0 unverified
get_ranks in 5 papers baselines/vas2.py identical code Syntology harvested from this repository for another paper; this paper's link records no repository, path or licence of its own ran · violated contract fingerprinted licence of this copy not recorded · f889070e0cb98b2f · report fixture: signature scores:ndarray/1/float · returned ndarray · level recorded 2026-09-22
get_ranks_ratios baselines/vas2.py identical code Syntology harvested from this repository for another paper; this paper's link records no repository, path or licence of its own ran · violated contract fingerprinted licence of this copy not recorded · 2335a1161936c9fa · report fixture: signature scores:ndarray/1/float · returned ndarray · level recorded 2026-09-22
get_small_ranks baselines/vas2.py identical code Syntology harvested from this repository for another paper; this paper's link records no repository, path or licence of its own ran · violated contract fingerprinted licence of this copy not recorded · 8ec35d035919e5bc · report fixture: signature scores:ndarray/1/float · returned ndarray · level recorded 2026-09-22
ypwang61/VAS official repository 16 samples, 11 ran (6 instrument-failed) · 5 unverified
available_scales scale_configs.py ran · our draft was wrong no licence file found · pointer only · 00dd429e9775e127 · report fixture: signature simple_names:bool/0/bool · returned list · level recorded 2026-09-24
filter_by_given_uids baselines/vas.py ran no licence file found · pointer only · b4ca49c3c0d1f7d0 · report fixture: signature given_uids:ndarray/1/[('f0', '<u8'), ('f1', '<u8')], uids:ndarray/1/[('f0', '<u8'), ('f1', '<u8')], given_uids_index_in_ordered_uids_path:NoneType/0/? · returned ndarray · level recorded 2026-09-25
filter_by_score baselines/vas.py ran no licence file found · pointer only · 53deafe2a17c9bd5 · report fixture: signature scores:ndarray/1/float, fraction:float/0/float, threshold:NoneType/0/?, total_num:int/0/int, name:str/0/str · returned ndarray · level recorded 2026-09-24
generate_p_from_clipscores cal_clipscores.py ran; the contract check could not run (RAISES) fingerprinted no licence file found · pointer only · 6b052976ecde8c23 · report fixture: signature clipscores:ndarray/1/float, bins:int/0/int · returned tuple · level recorded 2026-09-24
get_aggregate_scores aggregate_scores.py ran · our draft was wrong no licence file found · pointer only · 83f216dbfcc79287 · report fixture: signature results_file:str/0/str · returned dict · level recorded 2026-09-24
get_fasttext_language baselines/apply_filter.py ran no licence file found · pointer only · 61d5b2eae57f28be · report fixture: signature text:str/0/str, lang_detect_model:MockFastTextModel/0/? · returned str · level recorded 2026-09-24
get_gcld3_language baselines/apply_filter.py ran · our draft was wrong no licence file found · pointer only · 6cc97b780724c9b6 · report fixture: signature text:str/0/str, gcld3_model:MockGCLD3Model/0/? · returned str · level recorded 2026-09-24
get_scale_config scale_configs.py ran · our draft was wrong no licence file found · pointer only · 673bbfe27cf768f1 · report fixture: signature scale:str/0/str · returned dict · level recorded 2026-09-24
get_vas_gpu baselines/vas.py ran no licence file found · pointer only · 63f3d769047ceab6 · report fixture: signature embeddings:Tensor/2/float, target_variance:Tensor/2/float, device:int/0/int · returned Tensor · level recorded 2026-09-24
random_sample in 18 papers cal_clipscores.py ran no licence file found · pointer only · cfd8b1cf3644b321 · report fixture: signature clip_scores:ndarray/2/float, uids:ndarray/1/object, num_sample:int/0/int, save_path:str/0/str, uids_path:str/0/str · returned ndarray · level recorded 2026-09-24
setup_process_logging resharder.py ran · our draft was wrong no licence file found · pointer only · 28962743449aaadd · report fixture: signature log_queue:Queue/0/?, worker_id:int/0/int · returned Logger · level recorded 2026-09-22
download in 53 papers baselines/utils.py unverified no licence file found · pointer only · bb98f2d1cb3c5ff8 · report
submit_to_firebase evaluate.py unverified no licence file found · pointer only · 6da3dc3e075307c6 · report
submit_to_slack evaluate.py unverified no licence file found · pointer only · 85c09d957a5f2bc8 · report
train_kmeans baselines/image_based_clustering.py unverified no licence file found · pointer only · 24e11664919d0016 · report
worker_threadpool baselines/utils.py unverified no licence file found · pointer only · fca45920dddd4939 · 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