Papers › Diffusion Models and Semi-Supervised Learners Benefit Mutually with Few Labels

Diffusion Models and Semi-Supervised Learners Benefit Mutually with Few Labels

21 Feb 2023NeurIPS 2023 11arXiv:2302.10586archive 2025-07-28

Zebin You, Yong Zhong, Fan Bao, Jiacheng Sun, Chongxuan Li, Jun Zhu

In an effort to further advance semi-supervised generative and classification tasks, we propose a simple yet effective training strategy called dual pseudo training (DPT), built upon strong semi-supervised learners and diffusion models. DPT operates in three stages: training a classifier on partially labeled data to predict pseudo-labels; training a conditional generative model using these pseudo-labels to generate pseudo images; and retraining the classifier with a mix of real and pseudo images. Empirically, DPT consistently achieves SOTA performance of semi-supervised generation and classification across various settings. In particular, with one or two labels per class, DPT achieves a Fr\'echet Inception Distance (FID) score of 3.08 or 2.52 on ImageNet 256x256. Besides, DPT outperforms competitive semi-supervised baselines substantially on ImageNet classification tasks, achieving top-1 accuracies of 59.0 (+2.8), 69.5 (+3.0), and 74.4 (+2.0) with one, two, or five labels per class, respectively. Notably, our results demonstrate that diffusion can generate realistic images with only a few labels (e.g., <0.1%) and generative augmentation remains viable for semi-supervised classification. Our code is available at https://github.com/ML-GSAI/DPT.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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="2302.10586")

Code

Syntology Ran 17 of 22 code samples harvested from 2 repositories linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · our draft was wrong; 6 ran · fixture could not drive it; 8 ran with no contract checked.

By repository: official repository: 19 samples from 2 repositories, 14 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.

ml-gsai/dpt officialmentioned in papermentioned on GitHubpytorchMIT report
baofff/U-ViT officialmentioned in paperpytorch 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

22 samples harvested; 17 ran; 1 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · our draft was wrong
6ran · fixture could not drive it
8ran
5unverified

Licence: 3 of the 22 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; each sample names its own and says which. 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.

center_crop ML-GSAI/DPT/datasets.py official repository ran MIT (permissive) · f057bf3471d77c43 · report
distributed_sinkhorn ML-GSAI/DPT/src/losses.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 7478f8e64cee8964 · report
drop_path ML-GSAI/DPT/src/deit.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 55120f2026b56aa2 · report
get_sde ML-GSAI/DPT/sde.py official repository ran MIT (permissive) · b723a1cb4778012f · report
interpolate_fn ML-GSAI/DPT/dpm_solver_pp.py official repository ran fingerprinted MIT (permissive) · 86c7877e164664bc · report
make_transforms ML-GSAI/DPT/src/data_manager.py official repository ran MIT (permissive) · cec1c5fdf881ddf4 · report
model_wrapper ML-GSAI/DPT/dpm_solver_pp.py official repository ran MIT (permissive) · ace7da590f4070e0 · report
model_wrapper ML-GSAI/DPT/dpm_solver_pytorch.py official repository ran MIT (permissive) · b102ed94bbf0cfb9 · report
mos ML-GSAI/DPT/sde.py official repository ran MIT (permissive) · 02c82bdf3494ea71 · report
patchify baofff/u-vit/libs/uvit.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 9cf076a2ae913f94 · report
random_crop_arr ML-GSAI/DPT/datasets.py official repository ran MIT (permissive) · 05d1f95a391c0ec3 · report
stable_diffusion_beta_schedule ML-GSAI/DPT/sample_ldm_discrete_all.py official repository ran · honoured contract MIT (permissive) · 2ee6e353f1dd4cf3 · report
timestep_embedding baofff/u-vit/libs/uvit.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · b494dd297ded5960 · report
unpatchify baofff/u-vit/libs/uvit.py official repository ran · fixture could not drive it MIT (permissive) · f9244c08c1011341 · report
center_crop_arr ML-GSAI/DPT/datasets.py official repository unverified MIT (permissive) · f8b4a29a52612a41 · report
copy_imgnt_locally ML-GSAI/DPT/src/data_manager.py official repository unverified MIT (permissive) · b2c367ab087ec039 · report
init_data ML-GSAI/DPT/src/data_manager.py official repository unverified MIT (permissive) · ec08cc8c5589ddfe · report
load_checkpoint ML-GSAI/DPT/src/msn_train.py official repository unverified MIT (permissive) · e22a49db490231b6 · report
stp ML-GSAI/DPT/sde.py official repository unverified MIT (permissive) · 4d33c2f525f1b1c0 · report
patchify identical code first harvested elsewhere ran · fixture could not drive it fingerprinted licence of this copy not recorded · 7a7de2a8e080f047 · report
timestep_embedding identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · 262b18d8278dcf70 · report
unpatchify identical code first harvested elsewhere ran · fixture could not drive it licence of this copy not recorded · 82e1ad8a9b00554e · report

Tasks

Classification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionConvolutionDPTDense ConnectionsDiffusionLayer NormalizationLinear LayerMulti-Head AttentionResidual ConnectionSoftmax

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