Algorithmresearch
Diffusion posterior sampling
Also called DPS.
Sample from the posterior of an inverse problem by guiding each reverse step of a trained diffusion model with an approximate likelihood gradient.
- Time
- O(N (a + g)) worst
- Space
- O(n + m) extra
- Where
- N = the number of reverse steps; a = the cost of one call to A plus one call to its adjoint; g = the cost of one call to the score network plus one vector-Jacobian product through it (outside this page); m = the number of data values; n = the signal length
- Model
- Real RAM
- Properties
- randomizednot exactiterativelearnedmatrix free
- Evidence
- Proof sketchCode in 1 languages
- Origin
- Hyungjin Chung, Jeongsol Kim, Michael T. McCann, Marc L. Klasky, Jong Chul Ye, 2023
Diffusion posterior sampling (DPS) draws approximate samples from the posterior of an inverse problem , using a diffusion model trained only on clean signals. A diffusion model generates a signal by starting from noise and running reverse steps, each guided by a learned score . DPS adds to each reverse step a gradient step on , where is the denoised estimate of the current state by Tweedie's formula. Chung, Kim, McCann, Klasky and Ye (2023) introduced it. It needs no retraining for a new forward model and works for nonlinear , but it is an approximation: even with the exact score it does not sample the true posterior, as the example below shows in closed form.
In plain words
A diffusion model learns to remove a little noise from an image, many times in a row. If you start from pure noise and keep removing noise, a clean, realistic image slowly appears.
To reconstruct a measured image, DPS does the same, with one change. After each noise removal step, it makes a quick guess of what the final clean image will be. It takes the measurements of that guess and compares them with the real measurements. Then it pushes the current noisy image a little in the direction that makes the guess fit the measurements better. At the end you get a realistic image that also agrees with the data. Running it again with new random noise gives a different image, which shows how uncertain the answer is.
The problem
The model is with , where may be linear or a differentiable nonlinear map. The prior is the distribution of training signals, known only through a score network. The forward diffusion is with for a schedule , and , .
The input is , functions for and the adjoint of its derivative ( for linear ), a score function with its vector-Jacobian product , the schedule, and step sizes. The output is one random signal . The goal is that is a draw from ; DPS reaches this only approximately.
The algorithm
The posterior score is . The first term is the score network. The second is intractable, because is an integral over all clean signals. DPS replaces it by , with from Tweedie's formula. This is Algorithm 1 of Chung et al., with steps indexed .
DPS(y, A, A^T, s, J_s^T, ᾱ_1..ᾱ_N, ζ)- 1
x ← a draw from N(0, I) - 2
for t = N down to 1 - 3
ŝ ← s(x, t) ▷ a given network - 4
x̂_0 ← (x + (1 - ᾱ_t) ŝ) / sqrt(ᾱ_t) ▷ Tweedie's formula - 5
x' ← c_x x + c_0 x̂_0 + sqrt(β̃_t) z, z from N(0, I) ▷ the DDPM step - 6
g ← ∇_x ||y - A(x̂_0)||^2 ▷ through x̂_0 and the network - 7
ζ_t ← ζ' / ||y - A(x̂_0)|| - 8
x ← x' - ζ_t g - 9
return x
In line L5, , and : this is the reverse step of DDPM (Ho, Jain and Abbeel 2020) with replaced by . The paper calls the noise level and leaves it to the DDPM sampler; the code uses . Line L6 is one backpropagation through the network, since depends on through :
Line L7 is the normalized step of the paper, with a tuned constant; the paper reports values between 0.1 and 1. The step that follows from the reverse SDE with Gaussian noise is , and the implementation accepts either.
Example
One step by hand. Take a one-dimensional prior , so that and the exact score is . Take , , so . Let , , and .
- L3 and L4: and , which is .
- L5: , , so the mean is , and .
- L6: the residual is , and , so .
- L7 and L8: and .
The guidance moved the state by toward the data. With the normalized step, the length of this move does not shrink as the residual goes to zero.
DPS is not the posterior. Keep the prior with its exact score, and take , and . The true posterior is . For a Gaussian prior every step is linear plus Gaussian noise, so the law of the output can be computed exactly. With the DDPM schedule (, from to ):
| guidance step | output mean | output variance |
|---|---|---|
| none (prior sampler) | 0 | 0.99107 |
| DPS, | 0.98197 | 0.12167 |
| exact , | 0.79999 | 0.19657 |
| true posterior | 0.8 | 0.2 |
The exact likelihood has the variance , and DPS drops the second term. So DPS trusts the data too much: its mean is close to and its spread is too small. The small remaining gap in the variance of the third row comes from the DDPM step itself, whose noise is slightly too small, as the first row shows.
Correctness
DPS has no theorem that it samples the posterior, and the example shows that it does not, even with the exact score. The proof file proves what each line computes:
- With the exact score, line L4 is (Tweedie's formula, Proposition 1 of the paper; a theorem).
- Line L5 is a draw from the Gaussian at . With the exact score its mean is the true reverse mean, and its variance is too small by a term in .
- Line L6 is the exact gradient of , by the chain rule.
- For a Gaussian prior and fixed steps, the output is Gaussian with a mean and a variance given by a linear recursion, which gives the table above.
The guidance replaces by , which is the gap in Jensen's inequality. Theorem 1 of the paper bounds this gap by a constant times the posterior mean absolute deviation of given . This is a theorem, but the deviation is large at early steps, so it does not give a sampling guarantee. That the samples look good on images is a measurement.
Proof: Each DPS step is the DDPM step plus the exact gradient of the DPS data term, and for a Gaussian prior the output law is known in closed form and is not the posteriorpartial
Setting. The forward diffusion is with , for , where , and . Let be the density of . The data are with . The score network is a given function; the statements below say what the algorithm does with it, and the exactness results assume .
The status is partial on purpose. DPS does not sample the posterior , even with the exact score and infinitely many steps; Part 4 shows this on a Gaussian example. What can be proved is that each line computes what it claims to compute.
Part 1 (Tweedie's formula, Proposition 1 of Chung et al.). .
Proof. Write for the density of . Then and . Differentiating under the integral sign and dividing by gives
because is the conditional density of given . Solving for gives the formula. So with the exact score, line L4 computes .
Part 2 (the DDPM step). Given both and , the variable is Gaussian with mean and variance (Ho, Jain and Abbeel 2020; it follows from Bayes' rule for two Gaussian factors). Line L5 is a draw from this law with replaced by . With the exact score, its mean equals the mean of the true reverse step , since that mean is linear in and . Its variance is too small by the term , which is why the unguided sampler in the tests ends with variance 0.92 instead of 1 for and 0.99 for . At , gives and a mean of exactly ; the test test_schedule_and_last_step checks this.
The paper writes the noise of this step as without a formula for ; the code uses , the choice of Ho et al.
Part 3 (the guidance gradient). Let and . If is differentiable with Jacobian , then
Proof. The Jacobian of is , and the chain rule for gives twice its transpose applied to . The code computes once and by one call of the given vector-Jacobian product, so line L6 is this formula; the test compares it with central differences for a nonlinear score. Line L8 subtracts , with in the normalized form of Algorithm 1 of Chung et al.
Why this is the DPS approximation. By Bayes' rule , and . DPS replaces this by , so it moves the expectation inside a nonlinear function. For Gaussian noise . In a reverse step of length the score enters with the factor , so the step follows the approximate posterior score; the normalized step of the paper is a tuned replacement. Theorem 1 of Chung et al. bounds the error of the swap, the Jensen gap, by a constant times the posterior mean absolute deviation . This deviation is large at large , so the bound does not make the method exact.
Part 4 (closed form for a Gaussian prior, and the gap). Let in one dimension, a scalar, and the steps not normalized. Then , the exact score is with , and with . Line L6 gives , so a whole step is
By induction from , every is Gaussian, with the mean and the variance . The function linear_dps_moments computes this recursion, and the test draws 1500 samples from the code and checks that the sample mean and variance agree with it within 4 and 5 standard errors.
Now take , , and . The posterior is . With the DDPM schedule (, from to ) and , the recursion gives the output law . The exact likelihood here is , since for . Using its gradient instead, that is , gives , close to the posterior. The difference between the two is exactly the term that the swap drops. So, even with the exact score, DPS with the natural step trusts the data too much: its mean is near and its variance is about 0.6 of the posterior variance. This is a theorem about this example, computed in closed form, not a measurement.
Complexity
The model is real-ram. Each of the steps calls the score network once, its vector-Jacobian product once, once and once. So the time is , where is the cost of plus and is the cost of a forward and a backward pass through the network, which is outside this page; the backward pass costs a small constant times the forward pass. The extra space is for the state, the estimate and the residual, plus the activations of one forward pass that the backward pass stores. The prior sampler without guidance has the same number of steps but no backward pass, so DPS costs about two to three times as much per sample. The paper uses network evaluations on FFHQ.
Properties
- Training free. The score network is trained once on clean signals. A new forward model or noise level needs no retraining.
- General forward models. Only and the adjoint of its derivative are needed, so nonlinear problems such as phase retrieval and nonuniform deblurring fit.
- Stochastic. Different random seeds give different outputs; the spread is a rough, not a calibrated, measure of uncertainty.
- Not exact. Even with the exact score and many steps, the output law differs from the posterior, as computed above.
- Soft data fit. The data are not enforced exactly. With the normalized step the residual of the output is of the size of the last step, not zero.
- Measured results. Chung et al. report experiments on FFHQ and ImageNet images of pixels for inpainting, super-resolution, Gaussian and motion deblurring, phase retrieval and nonuniform deblurring, with Gaussian and Poisson noise, and compare with earlier diffusion and plug-and-play methods. These are measurements on those data sets.
Variants and improvements
- Poisson noise. Replace the squared residual by a weighted residual with weights from the data; the paper treats this case.
- Other samplers. The guidance step can be added to DDIM or to a discretized reverse SDE instead of the DDPM step.
- Projection methods. For linear , earlier methods replace the guidance by a projection onto the data-consistent set after each step, as in score-based inpainting (Song et al. 2021); this enforces noiseless data exactly but handles noise poorly.
- Better likelihood approximations. Use a Gaussian approximation of with a nonzero covariance, as the exact column of the table does, to reduce the overconfidence.
- Optimization instead of sampling. CSGM searches the latent space of a generator for one best fit, and plug-and-play priors use a denoiser inside an optimization method.
When to use it
Use DPS when a good diffusion model for the signal class exists, when the forward model changes between tasks or is nonlinear, and when realistic samples matter more than a calibrated posterior. Do not use it when you need correct uncertainty, for example error bars for a measurement; then use a Markov chain Monte Carlo method such as the Metropolis-adjusted Langevin algorithm on a model with a known density, or the closed form of a linear Gaussian problem. Do not use it when the time budget allows only a few network evaluations per image.
Pitfalls
- Step size. Too small a step ignores the data; too large a step makes the iterates leave the region where the score network was trained, and the output has artifacts. The best depends on the task.
- Overconfidence. The output fits the data more tightly than the posterior would, as the example shows. Do not read the sample spread as a posterior variance.
- Forgetting the network in the gradient. Line L6 differentiates through , which contains the network. Dropping gives a cheaper but different method.
- Noise level. With the normalized step, does not enter the algorithm at all, so the method cannot tell low noise from high noise.
- Prior mismatch. The prior is only as good as the training set. For a signal unlike the training data, DPS still returns a realistic signal of the training class.
Implementations
The score network is a given function: the code takes and its vector-Jacobian product as arguments, with functions for and , and runs lines L1 to L9 around them. The tests build the score by hand, as the exact score of a Gaussian prior or as a small network with weights from a fixed seed; no network is trained. The tests check the schedule and that the last step returns , Tweedie's formula against the exact posterior mean, the guidance gradient against central differences, the exact mean and variance of the sampler against 1500 samples, the two rows of the table, that the unobserved entry of a noiseless inpainting problem follows the prior sampler exactly, and that each step calls the network, and once.
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/diffusion-posterior-sampling/. The authors are listed in prov/K0GFYT.jsonl.
"""Diffusion posterior sampling (DPS) of Chung, Kim, McCann, Klasky and Ye.
The score network is given: a function score(x, t) that approximates the
gradient of log p_t at x, and a function score_vjp(x, t, v) that returns
J^T v for the Jacobian J of score(., t) at x. The forward operator is given
by apply_a and apply_at. Steps are indexed t = N, ..., 1 with alpha_bars[t - 1]
the product of (1 - beta_s) for s <= t, and alpha_bar_0 = 1.
Vectors are lists of floats.
"""
import math
def schedule(alpha_bars, t):
"""Return (alpha_bar_t, alpha_bar_{t-1}, beta_t) for 1 <= t <= N."""
ab = alpha_bars[t - 1]
ab_prev = alpha_bars[t - 2] if t > 1 else 1.0
return ab, ab_prev, 1.0 - ab / ab_prev
def tweedie(x, s, ab):
"""The denoised estimate (x + (1 - ab) s) / sqrt(ab)."""
c = 1.0 / math.sqrt(ab)
return [c * (xi + (1.0 - ab) * si) for xi, si in zip(x, s)]
def guidance_gradient(x, t, ab, x0, y, apply_a, apply_at, score_vjp):
"""The gradient of ||y - A x0(x)||^2 with respect to x, and the residual.
x0(x) = (x + (1 - ab) score(x, t)) / sqrt(ab), so its Jacobian is
(I + (1 - ab) J) / sqrt(ab) and the gradient is 2 times its transpose
applied to A^T (A x0 - y).
"""
r = [p - q for p, q in zip(apply_a(x0), y)]
u = apply_at(r)
ju = score_vjp(x, t, u)
c = 2.0 / math.sqrt(ab)
return [c * (ui + (1.0 - ab) * ji) for ui, ji in zip(u, ju)], r
def dps(y, apply_a, apply_at, score, score_vjp, alpha_bars, zeta, rng,
normalize=True, x_start=None, n=None):
"""Run DPS from x_N ~ N(0, I) and return x_0.
zeta is a number or a list with zeta[t - 1] for step t. With
normalize=True the step is zeta / ||y - A x0||, as in the paper;
with normalize=False it is zeta itself. Each step calls score once,
score_vjp once, A once and A^T once.
"""
big_n = len(alpha_bars)
if x_start is None:
x = [rng.gauss(0.0, 1.0) for _ in range(n)] # @line L1
else:
x = list(x_start) # @line L1
for t in range(big_n, 0, -1): # @line L2
ab, ab_prev, beta = schedule(alpha_bars, t)
s = score(x, t) # @line L3
x0 = tweedie(x, s, ab) # @line L4
c_x = math.sqrt(1.0 - beta) * (1.0 - ab_prev) / (1.0 - ab) # @line L5
c_0 = math.sqrt(ab_prev) * beta / (1.0 - ab) # @line L5
sd = math.sqrt((1.0 - ab_prev) / (1.0 - ab) * beta) # @line L5
xp = [c_x * xi + c_0 * x0i + sd * rng.gauss(0.0, 1.0) # @line L5
for xi, x0i in zip(x, x0)]
g, r = guidance_gradient(x, t, ab, x0, y, apply_a, apply_at, score_vjp) # @line L6
z = zeta[t - 1] if isinstance(zeta, (list, tuple)) else zeta
if normalize: # @line L7
norm = math.sqrt(sum(v * v for v in r)) # @line L7
z = z / norm if norm > 0.0 else 0.0 # @line L7
x = [a - z * b for a, b in zip(xp, g)] # @line L8
return x # @line L9
def linear_alpha_bars(big_n, beta_min, beta_max):
"""alpha_bar_t for a linear beta schedule from beta_min to beta_max."""
out, prod = [], 1.0
for t in range(big_n):
beta = beta_min + (beta_max - beta_min) * t / max(big_n - 1, 1)
prod *= 1.0 - beta
out.append(prod)
return out
def gaussian_score(alpha_bars, prior_var):
"""The exact score of p_t when x_0 ~ N(0, diag(prior_var)).
p_t = N(0, ab * prior_var + 1 - ab) in each coordinate, so the score is
-x / v and its Jacobian is diagonal with entries -1 / v.
"""
def var(t, j):
ab = alpha_bars[t - 1]
return ab * prior_var[j] + 1.0 - ab
def score(x, t):
return [-xi / var(t, j) for j, xi in enumerate(x)]
def score_vjp(x, t, v):
return [-vi / var(t, j) for j, vi in enumerate(v)]
return score, score_vjp
def linear_dps_moments(a_scalar, y, alpha_bars, prior_var, zetas):
"""Exact mean and variance of DPS output for a 1D Gaussian prior.
With A = a_scalar, the exact score of N(0, prior_var) and the unnormalized
step zetas[t - 1], every step is x <- k x + b + sd * noise, so the mean and
the variance follow a linear recursion from N(0, 1).
"""
mean, var = 0.0, 1.0
for t in range(len(alpha_bars), 0, -1):
ab, ab_prev, beta = schedule(alpha_bars, t)
v = ab * prior_var + 1.0 - ab
c = math.sqrt(ab) * prior_var / v # x0 = c x, Tweedie for a Gaussian
c_x = math.sqrt(1.0 - beta) * (1.0 - ab_prev) / (1.0 - ab)
c_0 = math.sqrt(ab_prev) * beta / (1.0 - ab)
sd2 = (1.0 - ab_prev) / (1.0 - ab) * beta
z = zetas[t - 1]
# g = 2 c a (a c x - y)
k = c_x + c_0 * c - z * 2.0 * c * c * a_scalar * a_scalar
b = z * 2.0 * c * a_scalar * y
mean = k * mean + b
var = k * k * var + sd2
return mean, var
test_diffusion_posterior_sampling.py 156 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/diffusion-posterior-sampling/. The authors are listed in prov/K0GFYT.jsonl.
import math
import random
from diffusion_posterior_sampling import (
dps,
gaussian_score,
guidance_gradient,
linear_alpha_bars,
linear_dps_moments,
schedule,
tweedie,
)
N = 100
AB = linear_alpha_bars(N, 1e-3, 0.2)
BETAS = [schedule(AB, t)[2] for t in range(1, N + 1)]
def identity(x):
return list(x)
def likelihood_steps(sig2, extra=None):
"""beta_t / (2 (sig2 + extra_t) sqrt(1 - beta_t)), the step of the reverse SDE."""
out = []
for t, bt in enumerate(BETAS, start=1):
e = 0.0 if extra is None else extra(t)
out.append(bt / (2.0 * (sig2 + e) * math.sqrt(1.0 - bt)))
return out
def test_schedule_and_last_step():
assert abs(AB[0] - 0.999) < 1e-15 and AB[-1] < 1e-4
for t in range(2, N + 1):
assert abs(schedule(AB, t)[0] - (1.0 - schedule(AB, t)[2]) * AB[t - 2]) < 1e-15
# With one step and no guidance the output is the Tweedie estimate.
score, vjp = gaussian_score([0.6], [2.0])
x = dps([0.0], identity, identity, score, vjp, [0.6], 0.0, random.Random(0),
normalize=False, x_start=[1.5])
v = 0.6 * 2.0 + 0.4
assert abs(x[0] - math.sqrt(0.6) * 2.0 / v * 1.5) < 1e-12
def test_tweedie_is_the_posterior_mean_for_a_gaussian_prior():
prior = [0.5, 3.0]
score, _ = gaussian_score(AB, prior)
for t in (1, 10, 50, 100):
ab = AB[t - 1]
x = [0.7, -1.3]
got = tweedie(x, score(x, t), ab)
for j in range(2):
exact = math.sqrt(ab) * prior[j] / (ab * prior[j] + 1.0 - ab) * x[j]
assert abs(got[j] - exact) < 1e-12
def test_guidance_gradient_matches_finite_differences():
rng = random.Random(3)
n, m = 3, 2
u = [[rng.gauss(0.0, 0.5) for _ in range(n)] for _ in range(n)]
w = [[rng.gauss(0.0, 0.5) for _ in range(n)] for _ in range(n)]
a = [[rng.gauss(0.0, 1.0) for _ in range(n)] for _ in range(m)]
y = [0.4, -0.9]
def score(x, t):
h = [math.tanh(sum(wr[j] * x[j] for j in range(n))) for wr in w]
return [-x[i] + sum(u[i][k] * h[k] for k in range(n)) for i in range(n)]
def score_vjp(x, t, v):
h = [math.tanh(sum(wr[j] * x[j] for j in range(n))) for wr in w]
q = [(1.0 - h[k] ** 2) * sum(u[i][k] * v[i] for i in range(n)) for k in range(n)]
return [-v[j] + sum(w[k][j] * q[k] for k in range(n)) for j in range(n)]
def apply_a(x):
return [sum(r[j] * x[j] for j in range(n)) for r in a]
def apply_at(r):
return [sum(a[i][j] * r[i] for i in range(m)) for j in range(n)]
ab, t = 0.4, 7
def objective(x):
x0 = tweedie(x, score(x, t), ab)
return sum((p - q) ** 2 for p, q in zip(apply_a(x0), y))
x = [0.3, -0.5, 1.2]
g, _ = guidance_gradient(x, t, ab, tweedie(x, score(x, t), ab), y,
apply_a, apply_at, score_vjp)
h = 1e-6
for j in range(n):
xp, xm = list(x), list(x)
xp[j] += h
xm[j] -= h
assert abs((objective(xp) - objective(xm)) / (2 * h) - g[j]) < 1e-6
def test_monte_carlo_matches_the_exact_law_of_the_sampler():
score, vjp = gaussian_score(AB, [1.0])
steps = likelihood_steps(0.25)
mean, var = linear_dps_moments(1.0, 1.0, AB, 1.0, steps)
assert abs(mean - 0.98458) < 1e-5 and abs(var - 0.09976) < 1e-5
rng = random.Random(1)
count = 1500
xs = [dps([1.0], identity, identity, score, vjp, AB, steps, rng,
normalize=False, n=1)[0] for _ in range(count)]
m = sum(xs) / count
v = sum((x - m) ** 2 for x in xs) / (count - 1)
assert abs(m - mean) < 4.0 * math.sqrt(var / count)
assert abs(v - var) < 5.0 * var * math.sqrt(2.0 / count)
def test_dps_is_not_the_exact_posterior():
# Prior N(0, 1), A = 1, noise variance 0.25, y = 1: posterior N(0.8, 0.2).
long_ab = linear_alpha_bars(1000, 1e-4, 0.02)
long_b = [schedule(long_ab, t)[2] for t in range(1, 1001)]
dps_steps = [b / (0.5 * math.sqrt(1.0 - b)) for b in long_b]
mean, var = linear_dps_moments(1.0, 1.0, long_ab, 1.0, dps_steps)
assert abs(mean - 0.98197) < 1e-5 and abs(var - 0.12167) < 1e-5
# The same sampler with the exact p(y | x_t), whose variance is
# 0.25 + Var(x_0 | x_t) = 0.25 + 1 - alpha_bar_t, is close to the posterior.
exact_steps = [b / (2.0 * (1.25 - long_ab[t]) * math.sqrt(1.0 - b))
for t, b in enumerate(long_b)]
mean_e, var_e = linear_dps_moments(1.0, 1.0, long_ab, 1.0, exact_steps)
assert abs(mean_e - 0.8) < 1e-4 and abs(var_e - 0.2) < 0.005
def test_normalized_step_on_a_noiseless_inpainting_problem():
# Prior N(0, I_2), observe the first entry exactly: y = 1.
score, vjp = gaussian_score(AB, [1.0, 1.0])
apply_a = lambda x: [x[0]]
apply_at = lambda r: [r[0], 0.0]
rng, free = random.Random(4), random.Random(4)
for _ in range(200):
x = dps([1.0], apply_a, apply_at, score, vjp, AB, 0.1, rng, n=2)
z = dps([1.0], apply_a, apply_at, score, vjp, AB, 0.0, free, n=2)
# The step has length about 2 zeta, so the error does not go below it.
assert abs(x[0] - 1.0) < 0.21
# The unobserved entry gets no guidance and follows the prior sampler.
assert x[1] == z[1]
def test_one_call_of_each_operator_per_step():
calls = {"score": 0, "vjp": 0, "a": 0, "at": 0}
score, vjp = gaussian_score(AB, [1.0])
def counted(name, f):
def g(*args):
calls[name] += 1
return f(*args)
return g
dps([0.5], counted("a", identity), counted("at", identity), counted("score", score),
counted("vjp", vjp), AB, 0.3, random.Random(2), n=1)
assert calls == {"score": N, "vjp": N, "a": N, "at": N}
History
Score-based and diffusion models (Song and Ermon 2019; Ho, Jain and Abbeel 2020; Song et al. 2021) generate samples by reversing a noising process. Early uses for inverse problems either projected onto the data after each step or trained a conditional model for one task. Chung et al. (2022) added a manifold constraint, and in 2023 Chung, Kim, McCann, Klasky and Ye proposed DPS, which uses the Tweedie estimate to approximate the likelihood of a noisy state and handles noise and nonlinear forward models. Later methods improved the likelihood approximation and the speed.
References
- Hyungjin Chung, Jeongsol Kim, Michael T. McCann, Marc L. Klasky and Jong Chul Ye, Diffusion posterior sampling for general noisy inverse problems, International Conference on Learning Representations (ICLR), 2023, Algorithm 1 (the sampler for Gaussian noise), Proposition 1 (Tweedie's formula for the denoised estimate), Theorem 1 (the bound on the Jensen gap), and the experiments on FFHQ and ImageNet
- Jonathan Ho, Ajay Jain and Pieter Abbeel, Denoising diffusion probabilistic models, Advances in Neural Information Processing Systems 33, 2020, the forward process, the posterior q(x_{t-1} | x_t, x_0) of the reverse step, and the sampling algorithm
- Bradley Efron, Tweedie's formula and selection bias, Journal of the American Statistical Association 106(496), 2011, Tweedie's formula for the posterior mean under Gaussian noise
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag K0GFYT Edit this page History Report an error Markdown