Reverse Denoising Step
Use this skill when a DDPM recovery needs to apply the paper's epsilon-parameterized reverse Gaussian transition. It converts epsilon_theta(x_t,t) into mu_theta(x_t,t) and optionally adds reverse Gaussian noise. Do not use it to train the epsilon model or to compute image metrics.
Inputs
- Schedule dictionary with
betas,alphas,alpha_bars, and optionallyposterior_variances. - Current noisy scalar/list
x_t. - Predicted epsilon scalar/list matching
x_t. - One-based timestep
t. - Optional reverse noise
zand variance mode.
Outputs
- Reverse mean value(s) from the DDPM equation.
- Reverse sample value(s), equal to the mean when
zis zero or omitted. - Coefficients used for auditability.
Workflow
- Build or load a schedule from the diffusion schedule skill.
- Call
reverse_mean(schedule, x_t, predicted_epsilon, t). - Call
reverse_sample(...)with explicit zero noise for deterministic recovery checks. - Record the output in mechanism checks when validating proxy recovery.
Validation
Run python tests/test_reverse_step.py or the Distiller skill-tree validator with --run-tests.
Limitations
The helper validates the reverse mean equation and single-step sampling. It does not claim to reproduce long-chain image generation quality in a bounded recovery run.