SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.11142 · ICLR · 2024

BayesDiff: Estimating Pixel-wise Uncertainty in Diffusion via Bayesian Inference

Zhijie Deng, Dequan Wang, Chongxuan Li, Siqi Kou, Lei Gan

arXiv · PDF · Open in the Atlas

Code that ran

12 of 13 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; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 10 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/2310.11142.json · badge: /api/ran/2310.11142.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
karrykkk/BayesDiff canonical (classifier label)
classifier basis: census
11 ran · 1 no recorded run
karrykkk/bayesdiff community
Papers with Code archive
1 ran · 0 no recorded run
FunctionStatusWhere it lives
Normalize Ran
ran; our contract draft was wrong, not the code
karrykkk/BayesDiff/ddpm_and_guided/models/diffusion.py
pointer only (licence: NONE); the stored copy get_code serves, from Xingyu-Zheng/BiDM, is pointer only (licence: NONE) · get_code("c3a6b977022957cb")
How it ran

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

compute_alpha Ran
ran; our contract draft was wrong, not the code
karrykkk/BayesDiff/ddpm_and_guided/ddimUQ_utils.py
pointer only (licence: NONE) · get_code("9215fb189fbfb9f4")
How it ran

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

exp_iteration Ran
ran; our contract draft was wrong, not the code
karrykkk/bayesdiff/ddpm_and_guided/dpmUQ_utils.py
pointer only (licence: NONE) · get_code("3c0b5f643b99df48")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, karrykkk/bayesdiff 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_model_input_time Ran
ran, honoured the contract we drafted
karrykkk/BayesDiff/ddpm_and_guided/dpmUQ_utils.py
pointer only (licence: NONE) · get_code("741f132771445554")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, karrykkk/BayesDiff 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_timestep_embedding Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
karrykkk/BayesDiff/ddpm_and_guided/models/diffusion.py
pointer only (licence: NONE) · get_code("cb49209c125de1b4")
How it ran

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

inverse_data_transform Ran
ran; our contract draft was wrong, not the code
karrykkk/BayesDiff/ddpm_and_guided/ddimUQ_utils.py
pointer only (licence: NONE) · get_code("cd9d1cd248f9be9e")
How it ran

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

logit_transform Ran
ran; our contract draft was wrong, not the code
karrykkk/BayesDiff/ddpm_and_guided/la_train_datasets.py
pointer only (licence: NONE) · get_code("778a78e5d08c23b3")
How it ran

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

noise_estimation_loss Ran
ran; our contract draft was wrong, not the code
karrykkk/BayesDiff/ddpm_and_guided/functions/losses.py
pointer only (licence: NONE) · get_code("36a45cceb1209d2f")
How it ran

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

nonlinearity Ran
ran; our contract draft was wrong, not the code
karrykkk/BayesDiff/ddpm_and_guided/models/diffusion.py
pointer only (licence: NONE) · get_code("3137073275f8c21a")
How it ran

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

sample_from_gaussion Ran
ran; our contract draft was wrong, not the code
karrykkk/BayesDiff/ddpm_and_guided/dpmUQ_utils.py
pointer only (licence: NONE) · get_code("eb05c9da7c2046d2")
How it ran

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

singlestep_ddim_sample Ran
ran on a synthesized input
karrykkk/BayesDiff/ddpm_and_guided/ddimUQ_utils.py
pointer only (licence: NONE) · get_code("6e10634811017cf7")
How it ran

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

singlestep_ddpm_sample Ran
ran; our contract draft was wrong, not the code
karrykkk/BayesDiff/ddpm_and_guided/ddpm_skipUQ.py
pointer only (licence: NONE) · get_code("49fb4ce8e31a610a")
How it ran

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

data_transform Not yet run
unverified (harvested, no recorded run)
karrykkk/BayesDiff/ddpm_and_guided/la_train_datasets.py
pointer only (licence: NONE) · get_code("c4a69cb9142a7670")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, karrykkk/BayesDiff 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 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 4 the same month, 5 later) and 5 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
nonlinearity 156 other papers
48 dated earlier, 3 the same month, 104 later, 1 same year, order not determinable · 25 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 153 more not named here
get_timestep_embedding 91 other papers
35 dated earlier, 1 the same month, 54 later, 1 same year, order not determinable · 7 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 88 more not named here
Normalize 90 other papers
38 dated earlier, 2 the same month, 50 later · 32 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 87 more not named here
compute_alpha 23 other papers
13 dated earlier, 1 the same month, 9 later · 6 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2102.09672 (2021-02)
Improved Denoising Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 20 more not named here
noise_estimation_loss 14 other papers
5 dated earlier, 9 later
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
2206.02262 (2022-06)
Diffusion-GAN: Training GANs with Diffusion
2211.14680 (2022-11)
A Physics-informed Diffusion Model for High-fidelity Flow Field Reconstruction
and 11 more not named here
data_transform 1 other paper
1 dated earlier
2105.14951 (2021-05)
SNIPS: Solving Noisy Inverse Problems Stochastically
inverse_data_transform 1 other paper
1 dated earlier
2105.14951 (2021-05)
SNIPS: Solving Noisy Inverse Problems Stochastically
logit_transform 1 other paper
1 dated earlier
2105.14951 (2021-05)
SNIPS: Solving Noisy Inverse Problems Stochastically

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

Diffusion models have impressive image generation capability, but low-quality generations still exist, and their identification remains challenging due to the lack of a proper sample-wise metric. To address this, we propose BayesDiff, a pixel-wise uncertainty estimator for generations from diffusion models based on Bayesian inference. In particular, we derive a novel uncertainty iteration principle to characterize the uncertainty dynamics in diffusion, and leverage the last-layer Laplace approximation for efficient Bayesian inference. The estimated pixel-wise uncertainty can not only be aggregated into a sample-wise metric to filter out low-fidelity images but also aids in augmenting successful generations and rectifying artifacts in failed generations in text-to-image tasks. Extensive experiments demonstrate the efficacy of BayesDiff and its promise for practical applications. Our code is available at https://github.com/karrykkk/BayesDiff.

For agents

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

get_harvested_code_for_paper("2310.11142")
get_code_for_paper("2310.11142")
have("2310.11142")

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

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

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

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

Connect an agent — have() is free.