Interactive Β· Euler vs Heun ODE Solver

Same velocity field as above: data at Β±ΞΌ, noise 𝒩(0,1), marginal velocity in closed form. Both solvers integrate dx/dt = v(x,t) backward from t=1 (noise) to t=0 (data). Euler uses one velocity evaluation per step (= DDIM). Heun uses two evaluations with predict–correct (= DPM-Solver-2). Use Step β–Ά to watch each method work, one step at a time.

Legend
reference (exact)
Euler (1 NFE/step)
Heun (2 NFE/step)
Heun predict (draft)
velocity field
Steps: 4
Start x₁ = 0.80
Data separation ΞΌ = 2.5
Euler endpoint error: β€”
Heun endpoint error: β€”
Euler NFEs: β€” Β· Heun NFEs: β€”