Papers › Variational Control for Guidance in Diffusion Models

Variational Control for Guidance in Diffusion Models

6 Feb 2025arXiv:2502.03686archive 2025-07-28

Kushagra Pandey, Farrin Marouf Sofian, Felix Draxler, Theofanis Karaletsos, Stephan Mandt

Diffusion models exhibit excellent sample quality, but existing guidance methods often require additional model training or are limited to specific tasks. We revisit guidance in diffusion models from the perspective of variational inference and control, introducing Diffusion Trajectory Matching (DTM) that enables guiding pretrained diffusion trajectories to satisfy a terminal cost. DTM unifies a broad class of guidance methods and enables novel instantiations. We introduce a new method within this framework that achieves state-of-the-art results on several linear, non-linear, and blind inverse problems without requiring additional model training or specificity to pixel or latent space diffusion models. Our code will be available at https://github.com/czi-ai/oc-guidance

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

Code

Syntology Ran 25 of 37 code samples harvested from 1 repository linked to this paper; 12 have no recorded run. Of those that ran: 2 ran · honoured contract; 2 ran · violated contract; 3 ran · our draft was wrong; 3 ran · fixture could not drive it; 15 ran with no contract checked.

By repository: official repository: 37 samples from 1 repository, 25 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

czi-ai/oc-guidance officialmentioned in papermentioned 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

37 samples harvested; 25 ran; 2 honoured the contract we drafted; 12 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.

2ran · honoured contract
2ran · violated contract
3ran · our draft was wrong
3ran · fixture could not drive it
15ran
12unverified

Licence: 0 of the 37 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 czi-ai/oc-guidance. “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.

ClassifierGuidanceModel czi-ai/oc-guidance/algos/ndtm.py official repository ran MIT (permissive) · d462c80071bba6ae · report
Colorization czi-ai/oc-guidance/algos/ndtm.py official repository ran MIT (permissive) · 6a6a65fc42a70109 · report
Compose czi-ai/oc-guidance/algos/ndtm.py official repository ran MIT (permissive) · 4e17b94f063c1a90 · report
Deblurring czi-ai/oc-guidance/algos/ndtm.py official repository ran MIT (permissive) · 71af7ce3212d9e1c · report
Denoising czi-ai/oc-guidance/algos/ndtm.py official repository ran MIT (permissive) · e305d10182891cee · report
HDR czi-ai/oc-guidance/algos/ndtm.py official repository ran MIT (permissive) · b306e3c609ef54b2 · report
H_functions czi-ai/oc-guidance/algos/ndtm.py official repository ran MIT (permissive) · 6db82769d2740ade · report
Inpainting czi-ai/oc-guidance/algos/ndtm.py official repository ran MIT (permissive) · 0ae82c5ede22b668 · report
Inpainting2 czi-ai/oc-guidance/algos/ndtm.py official repository ran MIT (permissive) · 7be00d2291252268 · report
Kernel czi-ai/oc-guidance/algos/ndtm.py official repository ran MIT (permissive) · c2af90d254ccfd46 · report
NonlinearBlurOperator czi-ai/oc-guidance/algos/ndtm.py official repository ran MIT (permissive) · 145e71681d09f888 · report
PhaseRetrievalOperator czi-ai/oc-guidance/algos/ndtm.py official repository ran MIT (permissive) · e2bcec0e8e006dd5 · report
Quantization czi-ai/oc-guidance/algos/ndtm.py official repository ran MIT (permissive) · f41a66ced241dca1 · report
SRConv czi-ai/oc-guidance/algos/ndtm.py official repository ran MIT (permissive) · 7409f145ba888a09 · report
SuperResolution czi-ai/oc-guidance/algos/ndtm.py official repository ran MIT (permissive) · 227f0fb97d62f667 · report
_generate_masks czi-ai/oc-guidance/algos/ndtm.py official repository ran · honoured contract MIT (permissive) · eb873be6f32b06c7 · report
fft2_m czi-ai/oc-guidance/algos/ndtm.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · e7311e88db6ad154 · report
fft2c_new czi-ai/oc-guidance/algos/ndtm.py official repository ran · fixture could not drive it MIT (permissive) · 816447d200680f31 · report
get_degreadation_image czi-ai/oc-guidance/algos/ndtm.py official repository ran · our draft was wrong MIT (permissive) · a933de7de76557d7 · report
ifft2_m czi-ai/oc-guidance/algos/ndtm.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 5fc916e4b9359935 · report
ifft2c_new czi-ai/oc-guidance/algos/ndtm.py official repository ran · fixture could not drive it MIT (permissive) · 1e028b85024231e6 · report
load_mask czi-ai/oc-guidance/algos/ndtm.py official repository ran · violated contract MIT (permissive) · 789b9f261d70e038 · report
norm czi-ai/oc-guidance/algos/ndtm.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 594fad709f5a8599 · report
polar2z czi-ai/oc-guidance/algos/ndtm.py official repository ran · violated contract fingerprinted MIT (permissive) · 7c37ca7a5cce1a9c · report
postprocess czi-ai/oc-guidance/algos/ndtm.py official repository ran · honoured contract fingerprinted MIT (permissive) · 3464de9ecaec7ab8 · report
BDeblur czi-ai/oc-guidance/algos/ndtm.py official repository unverified MIT (permissive) · 59c972439cda37dc · report
BlindImageDeblurring czi-ai/oc-guidance/algos/ndtm.py official repository unverified MIT (permissive) · 7030d9cea95cdb1b · report
Blurkernel czi-ai/oc-guidance/algos/ndtm.py official repository unverified MIT (permissive) · 7dd8e8db87c7fd43 · report
DDIM czi-ai/oc-guidance/algos/ndtm.py official repository unverified MIT (permissive) · d3f739f828f9ced4 · report
JPEG czi-ai/oc-guidance/algos/ndtm.py official repository unverified MIT (permissive) · 209d87580d017e23 · report
NDTM czi-ai/oc-guidance/algos/ndtm.py official repository unverified MIT (permissive) · 61acb2ecfa5f1aeb · report
NonLinearOperator czi-ai/oc-guidance/algos/ndtm.py official repository unverified MIT (permissive) · 665f19e750d67297 · report
build_degredation_model czi-ai/oc-guidance/algos/ndtm.py official repository unverified MIT (permissive) · f60cfe5f4ecd94c4 · report
build_one_degredation_model czi-ai/oc-guidance/algos/ndtm.py official repository unverified MIT (permissive) · df951fd1e4c0af59 · report
jpeg_decode czi-ai/oc-guidance/algos/ndtm.py official repository unverified MIT (permissive) · 4f7a44cd35a6ec25 · report
jpeg_encode czi-ai/oc-guidance/algos/ndtm.py official repository unverified MIT (permissive) · bbdb00b7e6e8b170 · report
pdf czi-ai/oc-guidance/algos/ndtm.py official repository unverified MIT (permissive) · d71b71588b63f3d0 · report

Tasks

SpecificityVariational Inference

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

DiffusionVariational Inference

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