SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.12448 · ICLR · 2024

Do Generated Data Always Help Contrastive Learning?

Yisen Wang, Yifei Wang, Jizhe Zhang

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 1 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/2403.12448.json · badge: /api/ran/2403.12448.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
PKU-ML/adainf canonical (classifier label)
classifier basis not recorded on the link
6 ran · 1 no recorded run
FunctionStatusWhere it lives
barlow_loss_func Ran
ran; our contract draft was wrong, not the code
PKU-ML/adainf/solo-learn/solo/losses/barlow.py
pointer only (licence: NONE) · get_code("132a949a804eb81e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/adainf 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.

byol_loss_func Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
PKU-ML/adainf/solo-learn/solo/losses/byol.py
pointer only (licence: NONE); the stored copy get_code serves, from PKU-ML/nlb, is pointer only (licence: NONE) · get_code("273532e06cb3967e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/adainf 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.

extract_features Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
PKU-ML/adainf/solo-learn/main_knn.py
pointer only (licence: NONE) · get_code("8916e0f98b777300")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/adainf 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.

mae_loss_func Ran
ran; our contract draft was wrong, not the code
PKU-ML/adainf/solo-learn/solo/losses/mae.py
pointer only (licence: NONE) · get_code("a07d9a7525702b80")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/adainf 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.

mocov2plus_loss_func Ran
ran; our contract draft was wrong, not the code
PKU-ML/adainf/solo-learn/solo/losses/mocov2plus.py
pointer only (licence: NONE) · get_code("4dd7c3cff0150cb9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/adainf 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.

patchify Ran
ran; our contract draft was wrong, not the code
PKU-ML/adainf/solo-learn/solo/losses/mae.py
pointer only (licence: NONE) · get_code("3e6a557bf1ad83d9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/adainf 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.

deepclusterv2_loss_func Not yet run
unverified (harvested, no recorded run)
PKU-ML/adainf/solo-learn/solo/losses/deepclusterv2.py
pointer only (licence: NONE); the stored copy get_code serves, from PKU-ML/nlb, is pointer only (licence: NONE) · get_code("ce432f2e9653c7a3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/adainf 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.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 7 the same month, 4 later) and 0 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
barlow_loss_func 12 other papers
7 dated earlier, 2 the same month, 3 later
2007.06346 (2020-07)
Whitening for Self-Supervised Representation Learning
2108.01775 (2021-08)
Solo-learn: A Library of Self-supervised Methods for Visual Representation Learning
2112.15022 (2021-12)
Continually Learning Self-Supervised Representations with Projected Functional Regularization
and 9 more not named here
deepclusterv2_loss_func 10 other papers
7 dated earlier, 2 the same month, 1 later
2007.06346 (2020-07)
Whitening for Self-Supervised Representation Learning
2108.01775 (2021-08)
Solo-learn: A Library of Self-supervised Methods for Visual Representation Learning
2112.15022 (2021-12)
Continually Learning Self-Supervised Representations with Projected Functional Regularization
and 7 more not named here
byol_loss_func 6 other papers
3 dated earlier, 1 the same month, 2 later
2007.06346 (2020-07)
Whitening for Self-Supervised Representation Learning
2204.00616 (2022-04)
Simplicial Embeddings in Self-Supervised Learning and Downstream Classification
2310.02903 (2023-10)
FroSSL: Frobenius Norm Minimization for Efficient Multiview Self-Supervised Learning
and 3 more not named here
mocov2plus_loss_func 5 other papers
2 dated earlier, 2 the same month, 1 later
2003.04297 (2020-03)
Improved Baselines with Momentum Contrastive Learning
2007.06346 (2020-07)
Whitening for Self-Supervised Representation Learning
2403.12459 (2024-03)
Non-negative Contrastive Learning
and 2 more not named here
mae_loss_func 4 other papers
2 dated earlier, 2 the same month
2007.06346 (2020-07)
Whitening for Self-Supervised Representation Learning
2310.02903 (2023-10)
FroSSL: Frobenius Norm Minimization for Efficient Multiview Self-Supervised Learning
2403.12459 (2024-03)
Non-negative Contrastive Learning
and 1 more not named here
patchify 4 other papers
2 dated earlier, 2 the same month
2007.06346 (2020-07)
Whitening for Self-Supervised Representation Learning
2310.02903 (2023-10)
FroSSL: Frobenius Norm Minimization for Efficient Multiview Self-Supervised Learning
2403.12459 (2024-03)
Non-negative Contrastive Learning
and 1 more not named here
extract_features 2 other papers
1 dated earlier, 1 the same month
2204.00616 (2022-04)
Simplicial Embeddings in Self-Supervised Learning and Downstream Classification
2403.13808 (2024-03)
On Pretraining Data Diversity for Self-Supervised Learning

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

Contrastive Learning (CL) has emerged as one of the most successful paradigms for unsupervised visual representation learning, yet it often depends on intensive manual data augmentations. With the rise of generative models, especially diffusion models, the ability to generate realistic images close to the real data distribution has been well recognized. These generated high-equality images have been successfully applied to enhance contrastive representation learning, a technique termed "data inflation". However, we find that the generated data (even from a good diffusion model like DDPM) may sometimes even harm contrastive learning. We investigate the causes behind this failure from the perspective of both data inflation and data augmentation. For the first time, we reveal the complementary roles that stronger data inflation should be accompanied by weaker augmentations, and vice versa. We also provide rigorous theoretical explanations for these phenomena via deriving its generalization bounds under data inflation. Drawing from these insights, we propose Adaptive Inflation (AdaInf), a purely data-centric strategy without introducing any extra computation cost. On benchmark datasets, AdaInf can bring significant improvements for various contrastive learning methods. Notably, without using external data, AdaInf obtains 94.70% linear accuracy on CIFAR-10 with SimCLR, setting a new record that surpasses many sophisticated methods. Code is available at https://github.com/PKU-ML/adainf.

For agents

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

get_harvested_code_for_paper("2403.12448")
get_code_for_paper("2403.12448")
have("2403.12448")

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

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

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

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

Connect an agent — have() is free.