SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · Go_Towards_Practical_Plug-and-Play_Diffusion_Models_CVPR_2023_paper · CVPR · 2023

Towards Practical Plug-and-Play Diffusion Models

Yunsung Lee, Hyojun Go, Jinyoung Kim, Seunghyun Lee, Seungtaek Choi, Hyun Lee, Myeongho Jeong, Riiid Research

Open in the Atlas

Code that ran

12 of 12 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; 4 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/Go_Towards_Practical_Plug-and-Play_Diffusion_Models_CVPR_2023_paper.json · badge: /api/ran/Go_Towards_Practical_Plug-and-Play_Diffusion_Models_CVPR_2023_paper.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
riiid/PPAP canonical (classifier label)
classifier basis: census
12 ran · 0 no recorded run
FunctionStatusWhere it lives
approx_standard_normal_cdf Ran
ran; our contract draft was wrong, not the code
riiid/PPAP/guided_diffusion/losses.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from quandao10/slct, is pointer only (licence: NONE) · get_code("cfd76fd0d89574a4")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from quandao10/slct, and GitHub detected no licence in that repository 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.

approx_standard_normal_cdf Ran
ran, honoured the contract we drafted
riiid/PPAP/deepfloyd_if/model/losses.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from tsinghua-fib-lab/Spatio-temporal-Diffusion-Point-Processes, is pointer only (licence: NONE) · get_code("9deab2a47adbf3b7")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from tsinghua-fib-lab/Spatio-temporal-Diffusion-Point-Processes, and GitHub detected no licence in that repository 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.

betas_for_alpha_bar Ran
ran, honoured the contract we drafted
riiid/PPAP/deepfloyd_if/model/gaussian_diffusion.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from blt2114/twisted_diffusion_sampler, is pointer only (licence: NONE) · get_code("6cdc8772f5db6f48")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from blt2114/twisted_diffusion_sampler, and GitHub detected no licence in that repository 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.

discretized_gaussian_log_likelihood Ran
ran; our contract draft was wrong, not the code
riiid/PPAP/guided_diffusion/losses.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from quandao10/slct, is pointer only (licence: NONE) · get_code("cd33283d615fb3d7")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from quandao10/slct, and GitHub detected no licence in that repository 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.

discretized_gaussian_log_likelihood Ran
ran; our contract draft was wrong, not the code
riiid/PPAP/deepfloyd_if/model/losses.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from vibe007/Denoising_MC_Renders_Diffusion, is pointer only (licence: NONE) · get_code("f702cecaa7981c73")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from vibe007/Denoising_MC_Renders_Diffusion, and GitHub detected no licence in that repository 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.

gelu Ran
ran; our contract draft was wrong, not the code
riiid/PPAP/deepfloyd_if/model/nn.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from haiantyz/JGA-LBD, is pointer only (licence: NONE) · get_code("f51cf2cbd3e598d8")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from haiantyz/JGA-LBD, and GitHub detected no licence in that repository 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.

gelu_jit Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
riiid/PPAP/deepfloyd_if/model/nn.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from haiantyz/JGA-LBD, is pointer only (licence: NONE) · get_code("cd23a508b079e2d4")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from haiantyz/JGA-LBD, and GitHub detected no licence in that repository 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.

get_named_beta_schedule Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
riiid/PPAP/deepfloyd_if/model/gaussian_diffusion.py
code served (permissive licence) · get_code("141937afc98f8d1e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned ndarray, ndim 1, dtype family float, shape (100,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math
import numpy as np

# Test with both schedule types
ARGS = {
    'schedule_name': 'cosine',
    'num_diffusion_timesteps': 100
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (100,) — shape (100,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mean_flat Ran
ran; our contract draft was wrong, not the code
riiid/PPAP/deepfloyd_if/model/nn.py
code served (permissive licence) · get_code("f6d7c009a8efb8b7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function takes a tensor and computes mean over all non-batch dimensions
# It expects a tensor with shape (batch_size, *other_dims)
# and returns a tensor of shape (batch_size,)

# Create a small tensor with batch dimension and other dimensions
# Using distinct sizes: batch=2, dim1=4, dim2=3
tensor = torch.randn(2, 4, 3)

ARGS = {
    "tensor": tensor
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normal_kl Ran
ran, honoured the contract we drafted
riiid/PPAP/deepfloyd_if/model/losses.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from tsinghua-fib-lab/Spatio-temporal-Diffusion-Point-Processes, is pointer only (licence: NONE) · get_code("c3bf3f13d5f63d5b")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from tsinghua-fib-lab/Spatio-temporal-Diffusion-Point-Processes, and GitHub detected no licence in that repository 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.

normal_kl Ran
ran, honoured the contract we drafted
riiid/PPAP/guided_diffusion/losses.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from facebookresearch/agrol, is pointer only (licence: NOASSERTION) · get_code("cf2798b666b231ca")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from facebookresearch/agrol, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

space_timesteps Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
riiid/PPAP/deepfloyd_if/model/respace.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from vibe007/Denoising_MC_Renders_Diffusion, is pointer only (licence: NONE) · get_code("4e881da877b25beb")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from vibe007/Denoising_MC_Renders_Diffusion, and GitHub detected no licence in that repository 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.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 12 are also present in other papers whose code we hold (12 with at least one paper dated earlier, 0 the same month, 12 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
normal_kl 160 other papers
25 dated earlier, 85 later, 50 same year, order not determinable · 19 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 157 more not named here
approx_standard_normal_cdf 154 other papers
25 dated earlier, 81 later, 48 same year, order not determinable · 17 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 151 more not named here
discretized_gaussian_log_likelihood 128 other papers
25 dated earlier, 56 later, 47 same year, order not determinable · 16 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 125 more not named here
betas_for_alpha_bar 92 other papers
27 dated earlier, 33 later, 32 same year, order not determinable · 3 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2102.09672 (2021-02)
Improved Denoising Diffusion Probabilistic Models
and 89 more not named here
get_named_beta_schedule 63 other papers
19 dated earlier, 25 later, 19 same year, order not determinable
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2108.02938 (2021-08)
ILVR: Conditioning Method for Denoising Diffusion Probabilistic Models
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 60 more not named here
mean_flat 60 other papers
9 dated earlier, 37 later, 14 same year, order not determinable · 25 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2201.06503 (2022-01)
Analytic-DPM: an Analytic Estimate of the Optimal Reverse Variance in Diffusion Probabilistic Models
and 57 more not named here
normal_kl 34 other papers
3 dated earlier, 19 later, 12 same year, order not determinable
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2209.15421 (2022-09)
TabDDPM: Modelling Tabular Data with Diffusion Models
2211.13221 (2022-11)
Latent Video Diffusion Models for High-Fidelity Long Video Generation
and 31 more not named here
approx_standard_normal_cdf 10 other papers
2 dated earlier, 4 later, 4 same year, order not determinable
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2209.15421 (2022-09)
TabDDPM: Modelling Tabular Data with Diffusion Models
2303.18242 (2023-03)
∞-Diff: Infinite Resolution Diffusion with Subsampled Mollified States
and 7 more not named here
discretized_gaussian_log_likelihood 8 other papers
2 dated earlier, 4 later, 2 same year, order not determinable
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2209.15421 (2022-09)
TabDDPM: Modelling Tabular Data with Diffusion Models
2310.03502 (2023-10)
Kandinsky: an Improved Text-to-Image Synthesis with Image Prior and Latent Diffusion
and 5 more not named here
space_timesteps 5 other papers
2 dated earlier, 1 later, 2 same year, order not determinable
2210.07574 (2022-10)
Is synthetic data from generative models ready for image recognition?
2211.15388 (2022-11)
Shifted Diffusion for Text-to-image Generation
2306.02562 (2023-06)
Video Diffusion Models with Local-Global Context Guidance
and 2 more not named here
gelu 4 other papers
1 dated earlier, 2 later, 1 same year, order not determinable · 1 only as an assembly brick
2205.11487 (2022-05)
Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
2310.03502 (2023-10)
Kandinsky: an Improved Text-to-Image Synthesis with Image Prior and Latent Diffusion
2404.00491 (2024-04)
Denoising Monte Carlo Renders with Diffusion Models
and 1 more not named here
gelu_jit 4 other papers
1 dated earlier, 2 later, 1 same year, order not determinable · 1 only as an assembly brick
2205.11487 (2022-05)
Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
2310.03502 (2023-10)
Kandinsky: an Improved Text-to-Image Synthesis with Image Prior and Latent Diffusion
2404.00491 (2024-04)
Denoising Monte Carlo Renders with Diffusion Models
and 1 more not named here

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-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Diffusion-based generative models have achieved remarkable success in image generation. Their guidance formulation allows an external model to plug-and-play control the generation process for various tasks without finetuning the diffusion model. However, the direct use of publicly available off-the-shelf models for guidance fails due to their poor performance on noisy inputs. For that, the existing practice is to fine-tune the guidance models with labeled data corrupted with noises. In this paper, we argue that this practice has limitations in two aspects: (1) performing on inputs with extremely various noises is too hard for a single guidance model; (2) collecting labeled datasets hinders scaling up for various tasks. To tackle the limitations, we propose a novel strategy that leverages multiple experts where each expert is specialized in a particular noise range and guides the reverse process of the diffusion at its corresponding timesteps. However, as it is infeasible to manage multiple networks and utilize labeled data, we present a practical guidance framework termed Practical Plug-And-Play (PPAP), which leverages parameter-efficient fine-tuning and data-free knowledge transfer. We exhaustively conduct ImageNet class conditional generation experiments to show that our method can successfully guide diffusion with small trainable parameters and no labeled data. Finally, we show that image classifiers, depth estimators, and semantic segmentation models can guide publicly available GLIDE through our framework in a plug-and-play manner. Our code is available at https://github.com/riiid/PPAP.

For agents

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

get_harvested_code_for_paper("Go_Towards_Practical_Plug-and-Play_Diffusion_Models_CVPR_2023_paper")
get_code_for_paper("Go_Towards_Practical_Plug-and-Play_Diffusion_Models_CVPR_2023_paper")
have("Go_Towards_Practical_Plug-and-Play_Diffusion_Models_CVPR_2023_paper")

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

curl https://syntology.ai/api/ran/Go_Towards_Practical_Plug-and-Play_Diffusion_Models_CVPR_2023_paper.json

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

[![Syntology run record](https://syntology.ai/api/ran/Go_Towards_Practical_Plug-and-Play_Diffusion_Models_CVPR_2023_paper.svg)](https://syntology.ai/paper/Go_Towards_Practical_Plug-and-Play_Diffusion_Models_CVPR_2023_paper)

Connect an agent — have() is free.