Skip to content
BIASED

Continuous-time diffusion and flow matching

Block 1 of 8~2 min

From steps to time

The topic Score matching showed that DDPM's noise predictor is a scaled score, sθ(xt,t)=−εθ(xt,t)/1−αˉts_\theta(x_t, t) = -\varepsilon_\theta(x_t, t)/\sqrt{1 - \bar\alpha_t}, and that each reverse step moves along that score and adds fresh noise. It ended with a pointer: Song et al. (2021) join the two views in continuous time. This topic takes that limit, infinitely many infinitely small steps, and sees what it buys.

Why should a limit exist at all? DDPM cuts the noising into T=1000T = 1000 steps, but the network only ever sees how much noise has been added so far, not how it was cut. So describe the schedule as a rate on t∈[0,1]t \in [0, 1] and split it into TT steps:

β(t)=0.1+19.9 t,βi=β(i/T)T,i=1,…,T.\beta(t) = 0.1 + 19.9\, t, \qquad \beta_i = \frac{\beta(i/T)}{T}, \quad i = 1, \dots, T.

With T=1000T = 1000 this is DDPM's linear schedule, from about 10−410^{-4} to 0.020.02.

The product αˉ\bar\alpha then turns into an integral. For small βi\beta_i, log⁡(1−βi)≈−βi\log(1 - \beta_i) \approx -\beta_i, so log⁡αˉ\log \bar\alpha is a sum −∑iβ(i/T)/T-\sum_i \beta(i/T)/T, a Riemann sum. As TT grows,

αˉ(t)=exp⁡(−∫0tβ(s) ds).\bar\alpha(t) = \exp\Big(-\int_0^t \beta(s)\, ds\Big).

Halfway through the process, the discrete product with T=50T = 50, 200200 and 10001000 steps is 0.05850.0585, 0.07380.0738 and 0.07800.0780, and it settles on a limit. At the end, ∫01β=10.05\int_0^1 \beta = 10.05 and αˉ(1)=e−10.05≈4.3⋅10−5\bar\alpha(1) = e^{-10.05} \approx 4.3 \cdot 10^{-5}, close to DDPM's αˉT\bar\alpha_T.

The payoff is practical. A network that depends only on the noise level can drive any discretization of the continuous process: the 1000 training steps, 50 steps, or an adaptive solver. First we need the equation of that process.

Answers are saved on the server and tied to this browser until you sign in.