VerifiedarXiv:2510.0843131 min
Diffusion · Distillation

rCM: Large Scale Diffusion Distillation via Score-Regularized Continuous-Time Consistency

Distill a diffusion model to 1 to 4 sampling steps and keep both the sharpness and the variety of its outputs.

Continuous-time consistency distillation (sCM) keeps a model’s variety but loses fine detail at scale; score distillation (DMD) is sharp but keeps producing the same few compositions. rCM trains with both losses at a weight ratio of 1 to 0.01, on image and video models of up to 14 billion parameters.

Explaining the paperLarge Scale Diffusion Distillation via Score-Regularized Continuous-Time ConsistencyZheng, Wang, Ma, Chen, et al. · Tsinghua · NVIDIA · 2025 · arXiv:2510.08431 ↗

Wan2.1 14B makes a five-second, 832×480 video in 50 sampling steps, each run twice for guidance: 100 passes through a 14-billion-parameter network, or 0.18 frames per second on one H100. The rCM student of the same model takes 2 or 4 passes, runs at 8.3 or 4.5 frames per second, scores slightly higher on VBench, and its videos stay far more varied than DMD2’s.

Why diffusion sampling is slow, and what distillation changes

A diffusion model generates by starting from Gaussian noise and removing it a little at a time. The path from noise to data is the solution of an ordinary differential equation, the probability-flow ODE (footnote 5), and sampling means solving it numerically: each solver step is one forward pass through the network, and the step count stays in the dozens because the solver’s error grows with the step size. Text-conditioned models then run every step twice, once with the prompt and once without, and extrapolate from the unconditioned output past the conditioned one. That is classifier-free guidance (CFG), and it doubles the cost. The teachers in this paper use 35 steps for images (Cosmos-Predict2) and 50 for video (Wan2.1), so 70 and 100 network passes per sample.

Those counts are NFE, the number of function evaluations, meaning network forward passes per sample. Distillation trains a student network to reproduce a teacher’s outputs. Classic knowledge distillation shrinks the network; diffusion distillation keeps the network the same size and shrinks the number of steps. rCM’s students start as copies of their teachers and generate in 1 to 4 steps. Guidance is folded into the student during training, so each step is a single pass and the student’s NFE equals its step count. The paper reports the result as a 15× to 50× speedup; in measured video throughput, the 14B student at 4 steps runs at 4.5 frames per second against the teacher’s 0.18, a factor of 25, and at 2 steps at 8.3, a factor of 46.

Fast students existed before this paper, but each kind gave something up. Four ideas explain what rCM does about it: distillation objectives fall on one of two sides of a divergence, which decides whether a student stays varied or sharp; a consistency model jumps from any noise level straight to clean data, which is what makes 1 to 4 steps possible; sCM, the continuous-time consistency model, needs a Jacobian-vector product and degrades in a specific way at 14B scale; and a DMD loss at weight 0.01, computed on the student’s own samples, repairs it.

Forward and reverse divergence: two ways to distill

Every distillation method tries to make the distribution of the student’s outputs match the teacher’s. A divergence measures the mismatch: it is zero when two distributions agree and grows as they differ. KL divergence, the standard one, is asymmetric, and which distribution you average over decides how the student behaves.

A forward divergence averages over the data. It charges the student wherever real data exists and the student assigns little probability, so the student lowers the charge by spreading over every mode. This behavior is called mode-covering: the student stays varied, and if it cannot represent the modes separately, it puts probability in the empty space between them, which in images shows up as blur. A reverse divergence averages over the student’s own samples. It charges the student for putting probability where the teacher has little, so the cheapest move is to concentrate on one mode it can match well and drop the rest. This is mode-seeking: samples are sharp, and some modes are never produced, which is called mode collapse. Put as grading: the forward student is graded on whether it can produce everything in the teacher’s catalog, the reverse student only on whether everything it produces is in the catalog.

Figure 1 fits a single Gaussian to a two-mode target under each divergence. Drag from the forward end to the reverse end and watch the two mode markers: both stay lit at the forward end, and one goes dark at the reverse end.

Figure 1 · forward vs reverse divergence
forward
Fitting one Gaussian model q to a two-mode target p. Forward (mode-covering): q spans both modes and puts mass in the empty valley between them. Reverse (mode-seeking): q narrows onto one mode and drops the other. The readout counts the modes that q covers.

The blur at the forward end comes from the model’s limited capacity: one Gaussian cannot be narrow and two-humped at once, so covering both modes forces it to sit between them. A 14-billion-parameter network has no such limit. It can put narrow, separate mass on every mode, which is the combination rCM aims for.

Real methods sort onto the two sides by the data they train on. Consistency models, including sCM, are trained on offline data (real samples or teacher outputs, noised) and behave like the forward side. Score distillation methods are trained on the student’s freshly generated samples and behave like the reverse side; the paper writes their objective as a family of f-divergences between student and teacher, averaged over noise levels, whose reverse-KL member gives VSD and DMD and whose Fisher-divergence member gives SiD. GANs also train on their own samples and are mode-seeking in practice. Two of these labels are descriptions of behavior: sCM is forward-type and is not proven to minimize a forward KL, and a GAN’s mode-seeking is observed, not derived from a reverse-KL identity.

How consistency models sample in a few steps

The paper uses the TrigFlow noise schedule from sCM. A data sample x0\mathbf{x}_0 is mixed with Gaussian noise by a rotation:

xt=cos⁡(t) x0+sin⁡(t) ϵϵ∼N(0,I),t∈[0,π2]\mathbf{x}_t = \cos(t)\,\mathbf{x}_0 + \sin(t)\,\boldsymbol{\epsilon} \qquad \boldsymbol{\epsilon}\sim\mathcal{N}(\mathbf{0},\mathbf{I}),\quad t\in[0,\tfrac{\pi}{2}]xt=cos⁡(t) x0+sin⁡(t) ϵϵ∼N(0,I),t∈[0,π2]\begin{gathered}\mathbf{x}_t = \cos(t)\,\mathbf{x}_0 + \sin(t)\,\boldsymbol{\epsilon} \\ \boldsymbol{\epsilon}\sim\mathcal{N}(\mathbf{0},\mathbf{I}),\quad t\in[0,\tfrac{\pi}{2}]\end{gathered}
(1)

At t=0t=0 the mix contains only data (cos⁡0=1\cos 0 = 1); at t=π/2t=\pi/2 it contains only noise. This runs opposite to flow matching and rectified flow, where time 0 is the noise end, so every “small tt” on this page means nearly clean. At t=1.0t=1.0, for example, the weights are 0.5400.540 on the data and 0.8410.841 on the noise.

The teachers were not trained on TrigFlow. The paper converts them by matching signal-to-noise ratio: a teacher time whose noise-to-signal ratio σ/α\sigma/\alpha equals tan⁡t\tan t is relabeled as TrigFlow time tt, and the input is rescaled by α2+σ2\sqrt{\alpha^2+\sigma^2}. For a rectified-flow teacher at its time 0.5, where α=σ=0.5\alpha=\sigma=0.5, the matching TrigFlow time is arctan⁡1=π/4\arctan 1 = \pi/4, and scaling the TrigFlow point 0.707 x0+0.707 ϵ0.707\,\mathbf{x}_0+0.707\,\boldsymbol\epsilon by 0.5\sqrt{0.5} gives back the teacher’s own 0.5 x0+0.5 ϵ0.5\,\mathbf{x}_0+0.5\,\boldsymbol\epsilon. No retraining is needed, and the student is wrapped the same way.

The teacher samples by solving the probability-flow ODE, a smooth path that carries a noisy point down to clean data. A consistency model learns a function that takes any point on that path, at any noise level, and returns the path’s clean endpoint. Under TrigFlow the network Fθ\mathbf{F}_\theta predicts a velocity, and the consistency function is built from it as

fθ(xt,t)=cos⁡(t) xt−sin⁡(t) Fθ(xt,t)fθ(x,0)=x\mathbf{f}_\theta(\mathbf{x}_t,t) = \cos(t)\,\mathbf{x}_t - \sin(t)\,\mathbf{F}_\theta(\mathbf{x}_t,t) \qquad \mathbf{f}_\theta(\mathbf{x},0)=\mathbf{x}fθ(xt,t)=cos⁡(t) xt−sin⁡(t) Fθ(xt,t)fθ(x,0)=x\begin{gathered}\mathbf{f}_\theta(\mathbf{x}_t,t) = \cos(t)\,\mathbf{x}_t - \sin(t)\,\mathbf{F}_\theta(\mathbf{x}_t,t) \\ \mathbf{f}_\theta(\mathbf{x},0)=\mathbf{x}\end{gathered}
(2)

The right-hand condition says a point that is already clean maps to itself. The form on the left satisfies it for any network, because at t=0t=0 the sine factor is zero and the cosine factor is one. This is the EDM-style preconditioning cskip(t) x+cout(t) Fθc_{\text{skip}}(t)\,\mathbf{x}+c_{\text{out}}(t)\,\mathbf{F}_\theta with cskip=cos⁡tc_{\text{skip}}=\cos t and cout=−sin⁡tc_{\text{out}}=-\sin t. The output fθ\mathbf{f}_\theta is a clean-data prediction; the page writes x^0\hat{\mathbf{x}}_0 for it below. “Consistency” means every point on one path maps to the same endpoint, and training enforces that by making predictions at different points of the same path agree.

One jump from pure noise is usually rough, so a consistency model samples in a few steps by alternating two moves: jump (apply fθ\mathbf{f}_\theta to get a clean guess) and renoise (mix fresh Gaussian noise into that guess with (1), at a smaller time than before). The paper samples at the times arctan⁡(σmax⁡)\arctan(\sigma_{\max}), 1.3, 1.0 and 0.6, taking the first kk of them for a kk-step sample. With σmax⁡=80\sigma_{\max}=80 the first time is 1.558, almost pure noise. A 2-step sample jumps from there to x^0\hat{\mathbf{x}}_0, renoises to t=1.3t=1.3, where the mix weights the guess by 0.2670.267 and fresh noise by 0.9640.964, and jumps again. The second jump starts from a point that already contains the first guess’s layout and corrects its detail. Drag the step count in Figure 2 from one to four and watch the landings tighten onto both data clusters.

Figure 2 · few-step sampling
N = 2
Time runs from the top (pure noise, t=π/2t=\pi/2) to the bottom (data, t=0t=0). Each step jumps to a clean guess, then renoises to a smaller time. With one step the landings are rough; with more steps they refine onto both clusters. The readout shows NFE, the speedup over a 70-pass teacher, and how many of the two clusters got a sample.

sCM: consistency in continuous time

Discrete consistency training compares the student’s predictions at two points a fixed gap Δt\Delta t apart on the teacher’s path. The gap brings its own discretization error and a hand-tuned schedule for shrinking it during training. sCM (Lu and Song, 2024) takes Δt→0\Delta t\to 0. The comparison between two nearby points becomes a derivative: how fast the prediction f\mathbf{f} changes as the input slides along the teacher’s path. A perfect consistency function has zero rate of change, since every point on the path predicts the same endpoint.

Sliding along the path changes two inputs of f\mathbf{f} at once: the point moves with the teacher’s velocity Fteacher\mathbf{F}_{\text{teacher}}, and the time advances. The total derivative adds both:

dfθ−dt=∇xtfθ− Fteacher(xt,t)+∂tfθ−\frac{\mathrm{d}\mathbf{f}_{\theta^-}}{\mathrm{d}t} = \nabla_{\mathbf{x}_t}\mathbf{f}_{\theta^-}\,\mathbf{F}_{\text{teacher}}(\mathbf{x}_t,t) + \partial_t \mathbf{f}_{\theta^-}dfθ−dt=∇xtfθ− Fteacher(xt,t)+∂tfθ−\begin{aligned}\frac{\mathrm{d}\mathbf{f}_{\theta^-}}{\mathrm{d}t} &= \nabla_{\mathbf{x}_t}\mathbf{f}_{\theta^-}\,\mathbf{F}_{\text{teacher}}(\mathbf{x}_t,t) \\ &+ \partial_t \mathbf{f}_{\theta^-}\end{aligned}
(3)

The symbol θ−\theta^- denotes the student’s own weights with gradients switched off (a stop-gradient copy): the rate of change is a target, and no gradient flows through it. The first term is the network’s Jacobian times the teacher’s velocity vector. For a video latent with two million entries the full Jacobian would have four trillion entries, but only its product with one vector is needed. That product is a Jacobian-vector product (JVP), and forward-mode automatic differentiation computes it during a forward pass by carrying a second “tangent” tensor next to every activation. The input tangent for (3) is the pair (Fteacher, 1)(\mathbf{F}_{\text{teacher}},\,1), one entry for the point and one for the time, so a single forward pass with tangents returns both terms of (3), at a small multiple of the cost of an ordinary forward pass.

Substituting (2) into (3) and using dxt/dt=Fteacher\mathrm{d}\mathbf{x}_t/\mathrm{d}t = \mathbf{F}_{\text{teacher}} gives

−sin⁡(t) xt+cos⁡(t) Fteacher−cos⁡(t) Fθ−−sin⁡(t) dFθ−dt-\sin(t)\,\mathbf{x}_t + \cos(t)\,\mathbf{F}_{\text{teacher}} - \cos(t)\,\mathbf{F}_{\theta^-} - \sin(t)\,\frac{\mathrm{d}\mathbf{F}_{\theta^-}}{\mathrm{d}t}−sin⁡(t) xt+cos⁡(t) Fteacher−cos⁡(t) Fθ−−sin⁡(t) dFθ−dt\begin{aligned}&-\sin(t)\,\mathbf{x}_t + \cos(t)\,\mathbf{F}_{\text{teacher}} \\ &- \cos(t)\,\mathbf{F}_{\theta^-} - \sin(t)\,\frac{\mathrm{d}\mathbf{F}_{\theta^-}}{\mathrm{d}t}\end{aligned}

which regroups into the paper’s Eq. (5):

dfθ−dt=−cos⁡(t)(Fθ−−Fteacher)−sin⁡(t)(xt+dFθ−dt⏟self-feedback (JVP))\frac{\mathrm{d}\mathbf{f}_{\theta^-}}{\mathrm{d}t} = -\cos(t)\big(\mathbf{F}_{\theta^-} - \mathbf{F}_{\text{teacher}}\big) - \sin(t)\Big(\mathbf{x}_t + \underbrace{\tfrac{\mathrm{d}\mathbf{F}_{\theta^-}}{\mathrm{d}t}}_{\text{self-feedback (JVP)}}\Big)dfθ−dt=−cos⁡(t)(Fθ−−Fteacher)−sin⁡(t)(xt+dFθ−dt⏟self-feedback (JVP))\begin{aligned}\frac{\mathrm{d}\mathbf{f}_{\theta^-}}{\mathrm{d}t} &= -\cos(t)\big(\mathbf{F}_{\theta^-} - \mathbf{F}_{\text{teacher}}\big) \\ &- \sin(t)\Big(\mathbf{x}_t + \underbrace{\tfrac{\mathrm{d}\mathbf{F}_{\theta^-}}{\mathrm{d}t}}_{\text{self-feedback (JVP)}}\Big)\end{aligned}
(4)

The first term, weighted cos⁡t\cos t, compares the student’s velocity to the teacher’s: it is direct supervision. The second, weighted sin⁡t\sin t, contains the student’s own rate of change dFθ−/dt\mathrm{d}\mathbf{F}_{\theta^-}/\mathrm{d}t, the JVP output, so part of the student’s target is built from the student itself. These two weights explain the failure at scale in a later section.

The loss, and normalizing the tangent

Call the weighted rate of change g=cos⁡(t) dfθ−/dt\mathbf{g} = \cos(t)\,\mathrm{d}\mathbf{f}_{\theta^-}/\mathrm{d}t. sCM’s loss is a squared distance between the student’s velocity Fθ\mathbf{F}_\theta and a target equal to Fθ\mathbf{F}_\theta itself (detached) plus a normalized copy of g\mathbf{g}. In value Fθ−Fθ−\mathbf{F}_\theta-\mathbf{F}_{\theta^-} is zero, so the loss value is the squared length of the normalized g\mathbf{g}, computed without gradients; its gradient is −2 g^⋅∂Fθ/∂θ-2\,\hat{\mathbf{g}}\cdot\partial\mathbf{F}_\theta/\partial\theta, so one descent step moves the student’s velocity output a small amount in the direction g^\hat{\mathbf{g}}. If only the teacher term of (4) were nonzero, g=−cos⁡2(t) (Fθ−−Fteacher)\mathbf{g}=-\cos^2(t)\,(\mathbf{F}_{\theta^-}-\mathbf{F}_{\text{teacher}}) and the step would move Fθ\mathbf{F}_\theta toward the teacher’s velocity.

The size of g\mathbf{g} varies a lot between samples and noise levels. The original sCM handled that with a separately learned weight per noise level. rCM follows sCM’s other device, dividing g\mathbf{g} by its own length plus a small constant c=0.1c=0.1, so that every sample contributes a step of nearly the same size. The paper states the resulting identity:

∥Fθ−Fθ−−g∥g∥2+c∥2=∥g∥2∥g∥2+c ≈ 1\Big\lVert \mathbf{F}_\theta - \mathbf{F}_{\theta^-} - \frac{\mathbf{g}}{\sqrt{\lVert\mathbf{g}\rVert^2 + c}} \Big\rVert^2 = \frac{\lVert\mathbf{g}\rVert^2}{\lVert\mathbf{g}\rVert^2 + c}\ \approx\ 1∥Fθ−Fθ−−g∥g∥2+c∥2=∥g∥2∥g∥2+c ≈ 1\begin{aligned}&\Big\lVert \mathbf{F}_\theta - \mathbf{F}_{\theta^-} - \frac{\mathbf{g}}{\sqrt{\lVert\mathbf{g}\rVert^2 + c}} \Big\rVert^2 \\ &= \frac{\lVert\mathbf{g}\rVert^2}{\lVert\mathbf{g}\rVert^2 + c}\ \approx\ 1\end{aligned}
(5)

With the square root shown here the identity holds exactly: the residual is the normalized tangent, and its squared length is ∥g∥2/(∥g∥2+c)\lVert\mathbf{g}\rVert^2/(\lVert\mathbf{g}\rVert^2+c). The paper’s Eq. (4) prints the denominator as ∥g∥2+c\lVert\mathbf{g}\rVert^2 + c with no root, which gives ∥g∥2/(∥g∥2+c)2\lVert\mathbf{g}\rVert^2/(\lVert\mathbf{g}\rVert^2+c)^2, a value that shrinks like 1/∥g∥21/\lVert\mathbf{g}\rVert^2 instead of staying near 1. The authors’ released code uses a third form, sCM’s original g/(∥g∥+0.1)\mathbf{g}/(\lVert\mathbf{g}\rVert+0.1), computed per sample over every entry of the latent. The Provenance panel at the end records the discrepancy.

Whether the value sits near 1 depends on ∥g∥\lVert\mathbf{g}\rVert being large compared with cc. A Wan2.1 video latent for an 81-frame 832×480 clip has shape 16 × 21 × 60 × 104, which is 2,096,640 numbers, and the length of a vector is its root-mean-square entry times the square root of its entry count, here 1448. A tangent whose entries average 0.007 in magnitude already has length 10. At ∥g∥=10\lVert\mathbf{g}\rVert=10 the square-root form gives 0.999, the code’s form gives 0.980, and the printed form gives 0.00998. Figure 3 plots all three across five decades of tangent length; drag across it, and move cc to see where each form leaves the line at 1.

Figure 3 · tangent normalization, three ways
‖g‖ = 10.0
c = 0.10
Per-sample loss value against tangent length, both on log scales. Teal: the square-root form, whose value is the identity (5). Amber: the released code’s g/(∥g∥+c)\mathbf{g}/(\lVert\mathbf{g}\rVert+c). Violet: the denominator as printed in the paper’s Eq. (4). The bright horizontal line is 1. At small ∥g∥\lVert\mathbf{g}\rVert every form drops below 1, because cc dominates the denominator.

Above ∥g∥=10\lVert\mathbf{g}\rVert=10 the teal and amber curves both sit within 2% of 1, while the violet curve falls by a factor of 100 per decade. With millions of entries, ∥g∥\lVert\mathbf{g}\rVert stays far above 0.1 unless the tangent is close to zero everywhere, so the square-root form and the code behave the same and the paper’s conclusion holds for both: every sample contributes a step of about unit size, and no learned per-time weight is needed.

Making the JVP run on a 14B model

The JVP is cheap in arithmetic and was missing from the software that large models train on. PyTorch’s torch.func.jvp works on a plain module, but at this scale three other pieces are required, and none of them carried tangents.

FlashAttention computes attention in tiles without ever storing the full attention matrix. The paper writes a Triton kernel that computes the attention tangent inside the FlashAttention-2 forward pass, for self- and cross-attention. With S=QK⊤\mathbf{S}=\mathbf{Q}\mathbf{K}^\top, P=softmax⁡(S)\mathbf{P}=\operatorname{softmax}(\mathbf{S}) and O=PV\mathbf{O}=\mathbf{P}\mathbf{V}, and t\mathbf{t} marking a tangent, the chain rule gives

tO=P tV+HV−diag⁡ ⁣(rowsum⁡(H)) OH=P⊙(tQ K⊤+Q tK⊤)\mathbf{tO} = \mathbf{P}\,\mathbf{tV} + \mathbf{H}\mathbf{V} - \operatorname{diag}\!\big(\operatorname{rowsum}(\mathbf{H})\big)\,\mathbf{O} \qquad \mathbf{H}=\mathbf{P}\odot\big(\mathbf{tQ}\,\mathbf{K}^\top + \mathbf{Q}\,\mathbf{tK}^\top\big)tO=P tV+HV−diag⁡ ⁣(rowsum⁡(H)) OH=P⊙(tQ K⊤+Q tK⊤)\begin{gathered}\mathbf{tO} = \mathbf{P}\,\mathbf{tV} + \mathbf{H}\mathbf{V} - \operatorname{diag}\!\big(\operatorname{rowsum}(\mathbf{H})\big)\,\mathbf{O} \\ \mathbf{H}=\mathbf{P}\odot\big(\mathbf{tQ}\,\mathbf{K}^\top + \mathbf{Q}\,\mathbf{tK}^\top\big)\end{gathered}
(6)

Every piece of (6) is a sum over key positions weighted by P\mathbf{P}, the same structure as O\mathbf{O} itself, so the kernel accumulates P tV\mathbf{P}\,\mathbf{tV}, HV\mathbf{H}\mathbf{V} and the row sums of H\mathbf{H} tile by tile with the same running softmax rescaling FlashAttention already applies to O\mathbf{O}.

Fully sharded data parallelism (FSDP) stores each GPU’s slice of the weights and gathers a layer’s weights only while that layer runs. torch.func.jvp does not support FSDP modules, so the authors rewrite each layer to take tangent inputs and return tangent outputs alongside its ordinary forward function; as long as FSDP shards at layer boundaries, the JVP happens inside each gathered layer. Context parallelism splits a long sequence across GPUs (different from the per-layer matrix splitting in Megatron-LM). In the Ulysses scheme each of PP GPUs holds a [B,H,L/P,C][B, H, L/P, C] slice of the queries, keys and values (batch, heads, sequence, head dimension); an all-to-all exchange turns that into [B,H/P,L,C][B, H/P, L, C] so each GPU attends over the full sequence for a subset of heads, and a second all-to-all restores the sequence split. The tangents of the queries, keys and values go through the same two exchanges. The 14B video model trains with the sequence split 10 ways.

Before this, sCM had been demonstrated on models of up to 1.5 billion parameters on ImageNet at 512×512. rCM is the first application of continuous-time consistency to image and video models at 14 billion parameters, trained in BF16.

Why sCM breaks at scale

With the infrastructure in place, pure sCM distillation of the large teachers produces sharp images, but it fails on the hard cases. In text-to-image, outputs match the teacher on ordinary prompts and degrade on fine detail such as small rendered text, and a larger model does not fix it. In text-to-video, textures blur and object geometry is unstable across frames, with objects passing through each other. The paper explains this as error accumulation.

A consistency function at time tt has to produce the integral of the teacher’s velocity from tt all the way down to 0. Its training target (4) at time tt is built from the student’s own rate of change, so a mistake the student makes at small tt is copied into the targets at larger tt, and grows there. Equation (4) also says how much teacher signal is left to correct it. The teacher term carries weight cos⁡t\cos t and the self-feedback term sin⁡t\sin t; their ratio cos⁡t/sin⁡t\cos t/\sin t is 1 at t=π/4t=\pi/4, 0.64 at t=1.0t=1.0, 0.28 at t=1.3t=1.3 and 0.07 at t=1.5t=1.5. Near pure noise the target is almost entirely the student’s own JVP. The JVP is also the number least robust to low precision: the paper recomputes the network in BF16 and FP32 at 100 noise levels and finds the JVP term’s relative error considerably larger than the error in the network output itself. Drag the probe in Figure 4 across time and watch the amber teacher weight fall as the teal JVP weight rises.

Figure 4 · error accumulation
t = 1.00
The target in (4) splits into a teacher term weighted cos t and a self-feedback JVP term weighted sin t, from data (t=0t=0) to noise (t=π/2t=\pi/2). They cross at π/4\pi/4. The dim red curve illustrates accumulated error growing once the JVP term dominates; the paper does not measure this curve, and its shape is a sketch.

The divergence picture adds a second reason. sCM is a forward-side method: it only ever sees offline data, and its check is local, linking predictions at infinitesimally close times. Think of a relay in which each runner only checks the handoff with the runner one step ahead: every handoff can look correct while the team drifts off the course over the full distance. (The analogy breaks on timing: a relay’s errors add up during one run, while sCM’s errors spread during training, from the targets at small tt into the targets at larger tt.) No term in the sCM loss is computed on a finished student sample or compared with the teacher’s output for that sample.

A second instability: the time derivative

Long sCM runs at scale can also collapse suddenly. The cause is the ∂t\partial_t part of the JVP: time enters the network through trigonometric embeddings, and their derivative with respect to tt oscillates. For the 2B image model the paper computes the x\mathbf{x}-direction of the JVP exactly and replaces the time derivative with a finite difference,

∂tFθ−(xt,t)≈cos⁡(Δt) Fθ−(xt,t)−Fθ−(xt,t−Δt)sin⁡(Δt)\partial_t\mathbf{F}_{\theta^-}(\mathbf{x}_t,t) \approx \frac{\cos(\Delta t)\,\mathbf{F}_{\theta^-}(\mathbf{x}_t,t) - \mathbf{F}_{\theta^-}(\mathbf{x}_t,t-\Delta t)}{\sin(\Delta t)}∂tFθ−(xt,t)≈cos⁡(Δt) Fθ−(xt,t)−Fθ−(xt,t−Δt)sin⁡(Δt)\begin{aligned}&\partial_t\mathbf{F}_{\theta^-}(\mathbf{x}_t,t) \\ &\approx \frac{\cos(\Delta t)\,\mathbf{F}_{\theta^-}(\mathbf{x}_t,t) - \mathbf{F}_{\theta^-}(\mathbf{x}_t,t-\Delta t)}{\sin(\Delta t)}\end{aligned}
(7)

with Δt=10−4\Delta t = 10^{-4}. For 10B+ models and for video the finite difference is itself unstable, so the paper returns to the exact JVP and runs every time-embedding layer in FP32 while the rest of the network stays in BF16.

How rCM works: sCM plus a small DMD loss

Reverse-side methods supply the missing comparison between the student’s finished samples and the teacher. rCM adds DMD (distribution matching distillation) as a regularizer on top of sCM. The paper tried SiD as well, saw no clear advantage on its text-to-image and text-to-video tasks, and chose DMD because it uses less memory.

DMD minimizes a reverse KL between the student’s output distribution and the teacher’s, at every noise level. The gradient of that KL with respect to a generated sample is a difference of two scores (gradients of log-density): the teacher’s, which the teacher diffusion model provides, and the student’s, which nobody has, because a 1-to-4-step generator has no tractable density. DMD estimates the student’s score with a second network, the fake score: a diffusion model trained online, by the ordinary flow-matching loss, on whatever the student currently generates. Both the student and the fake score start as copies of the teacher. The fake score is retrained continually as the student changes, the way a GAN’s discriminator is.

Each network’s denoiser f\mathbf{f} turns a renoised sample into a clean-data guess, and the score is an affine function of that guess, so differences of scores become differences of denoisers. DMD writes its gradient as a regression to a stop-gradient target (the paper’s Eq. (6)):

LDMD(θ)=E∥x^0−sg⁡[x^0−ffake(xt,t)−fteacher(xt,t)mean⁡∣x^0−fteacher(xt,t)∣]∥2\mathcal{L}_{\text{DMD}}(\theta)=\mathbb{E}\Big\lVert \hat{\mathbf{x}}_0 - \operatorname{sg}\Big[\hat{\mathbf{x}}_0 - \frac{\mathbf{f}_{\text{fake}}(\mathbf{x}_t,t)-\mathbf{f}_{\text{teacher}}(\mathbf{x}_t,t)}{\operatorname{mean}\lvert\hat{\mathbf{x}}_0-\mathbf{f}_{\text{teacher}}(\mathbf{x}_t,t)\rvert}\Big]\Big\rVert^2LDMD(θ)=E∥x^0−sg⁡[x^0−ffake(xt,t)−fteacher(xt,t)mean⁡∣x^0−fteacher(xt,t)∣]∥2\begin{aligned}\mathcal{L}_{\text{DMD}}(\theta)&=\mathbb{E}\Big\lVert \hat{\mathbf{x}}_0 - \operatorname{sg}\Big[\hat{\mathbf{x}}_0 \\ &- \frac{\mathbf{f}_{\text{fake}}(\mathbf{x}_t,t)-\mathbf{f}_{\text{teacher}}(\mathbf{x}_t,t)}{\operatorname{mean}\lvert\hat{\mathbf{x}}_0-\mathbf{f}_{\text{teacher}}(\mathbf{x}_t,t)\rvert}\Big]\Big\rVert^2\end{aligned}
(8)

In (8), x^0\hat{\mathbf{x}}_0 is a sample from the student, xt\mathbf{x}_t is that sample renoised to a random time tt, and sg⁡\operatorname{sg} is stop-gradient. The gradient with respect to x^0\hat{\mathbf{x}}_0 is twice the scaled difference ffake−fteacher\mathbf{f}_{\text{fake}}-\mathbf{f}_{\text{teacher}}, so a descent step moves the sample along fteacher−ffake\mathbf{f}_{\text{teacher}}-\mathbf{f}_{\text{fake}}, which is a positive multiple of the score difference ∇log⁡pteacher−∇log⁡pfake\nabla\log p_{\text{teacher}}-\nabla\log p_{\text{fake}}: toward where the teacher puts more probability than the student currently does. The gradient carries fake minus teacher; the motion is teacher minus fake. The denominator is the mean absolute gap between the sample and the teacher’s denoised version of it, one number per sample, which makes the step size independent of how far off the sample is. For one entry with ffake=0.30\mathbf{f}_{\text{fake}}=0.30, fteacher=0.10\mathbf{f}_{\text{teacher}}=0.10 and a per-sample mean gap of 0.25, the target is x^0−0.8\hat{\mathbf{x}}_0-0.8, that entry’s loss is 0.64, and the gradient 1.6 pushes the entry down toward the teacher’s value.

The full objective adds the two losses with one weight:

LrCM(θ)=LsCM(θ)+λ LDMD(θ)λ=0.01\mathcal{L}_{\text{rCM}}(\theta) = \mathcal{L}_{\text{sCM}}(\theta) + \lambda\,\mathcal{L}_{\text{DMD}}(\theta) \qquad \lambda = 0.01LrCM(θ)=LsCM(θ)+λ LDMD(θ)λ=0.01\begin{gathered}\mathcal{L}_{\text{rCM}}(\theta) = \mathcal{L}_{\text{sCM}}(\theta) + \lambda\,\mathcal{L}_{\text{DMD}}(\theta) \\ \lambda = 0.01\end{gathered}
(9)

The sCM term is computed on offline data with fresh noise, the forward path; the DMD term is computed on the student’s own generations, the reverse path. The paper calls DMD a long-skip regularizer: sCM’s loss constrains infinitesimally short steps along the teacher’s path, and DMD scores the long skip from pure noise to a finished sample. With λ=0.01\lambda=0.01 the DMD term corrects the accumulated drift while sCM keeps the student spread over every mode. rCM uses no GAN loss, no multi-stage schedule, no extensive hyperparameter search, and no LoRA: student and fake score are tuned in full, and the student keeps the teacher’s architecture unchanged.

Where the DMD samples come from

DMD needs samples from the student, and a consistency model makes them with the same jump-and-renoise loop it uses at inference. During training rCM draws the number of steps NN uniformly from 1 to 4. It starts at t1=π/2t_1=\pi/2 and draws each next time from the DMD time distribution pDp_D, keeping it no larger than the previous one: tn=min⁡(t^n,tn−1)t_n=\min(\hat t_n, t_{n-1}). All jumps but the last run without gradients, and the DMD loss backpropagates only through the final jump from tNt_N, so tNt_N is the noise level at which the student gets DMD training.

DMD2, the previous large-scale method, uses a fixed list of times instead. A fixed list only ever trains the student’s final jump at those few noise levels, while a consistency model is supposed to jump correctly from any time. Figure 5 draws rollouts both ways. For pDp_D it uses the image-model setting (log⁡z∼N(0,1.62)\log z\sim\mathcal N(0,1.6^2), t=arctan⁡zt=\arctan z, median π/4\pi/4), and for the fixed list the paper’s own 4-step sampling times. Press Play and compare the two histograms of tNt_N.

Figure 5 · where the student gets DMD training
40 draws
Each draw picks NN from 1 to 4. Top: rCM’s random, non-increasing times; the large dot is tNt_N, the only jump that receives the DMD gradient. Bottom: a fixed list π/2\pi/2, 1.3, 1.0, 0.6. Histograms count tNt_N over all draws so far.

The fixed list puts every final jump at one of four times, a quarter of them at pure noise, and never trains below 0.6. The random scheme spreads tNt_N over the whole range: about 46% of draws end below 0.6 (a simulation of 200,000 draws gives 46.1%), including some very close to t=0t=0.

One training step, with real shapes

Take the Wan2.1 14B text-to-video teacher, a diffusion transformer like DiT. An 81-frame 832×480 clip is encoded by the Wan VAE, which shrinks space by 8 and time by 4, into a latent of shape 16 × 21 × 60 × 104. Training uses batches of 64 such latents, with each sequence split across 10 GPUs. Iterations alternate: for this model the student takes a step every 10th iteration (every 5th for the others), and the other 9 iterations train the fake score on fresh student rollouts.

A student iteration draws a data latent and a time from pGp_G (log⁡z∼N(−0.8,1.62)\log z\sim\mathcal N(-0.8,1.6^2), t=arctan⁡(Tz)t=\arctan(\sqrt{T}z) with T=21T=21 latent frames, median ≈ 1.12; the image models use t=arctan⁡zt=\arctan z), say t=1.0t=1.0, and noises the latent with (1). The teacher runs twice at that point, with and without the prompt, and combines the two at guidance scale 5.0 to get Fteacher\mathbf{F}_{\text{teacher}}; this is how guidance gets distilled into the student. One forward pass with tangents, under no-gradient mode, returns cos⁡tsin⁡t dFθ−/dt\cos t\sin t\,\mathrm{d}\mathbf{F}_{\theta^-}/\mathrm{d}t, the code assembles g\mathbf{g} from (4), normalizes it, and one ordinary forward pass of the student with gradients produces the sCM loss. Separately, the student rolls out 1 to 4 steps from noise, the sample is renoised to a time from pDp_D, the fake score and the guided teacher each denoise it, and (8) gives the DMD loss. The two losses add with weight 0.01 and one backward pass updates the student, with AdamW at learning rate 10−610^{-6} and β1=0\beta_1=0.

# one rCM iteration (Algorithm 1 of the paper). TrigFlow conventions:
#   x_t = cos(t) x0 + sin(t) eps        F = velocity prediction
#   f   = cos(t) x_t - sin(t) F         f = clean-data (x0) prediction
if it % FREQ == 0:                      # FREQ = 5 (10 for Wan 14B): student step
    x0 = sample_data()                  # video latent [B, 16, 21, 60, 104]
    t  = arctan(sqrt(21) * exp(-0.8 + 1.6 * randn()))   # t ~ p_G (Wan: sqrt(T), T = 21 latent frames)
    xt = cos(t) * x0 + sin(t) * randn_like(x0)

    # sCM term: forward side, on offline data
    Ft    = teacher_cfg_F(xt, t)        # 2 teacher passes (cond + uncond)
    c, s  = cos(t), sin(t)
    _, dF = jvp(student_F_nograd, (xt, t), (c * s * Ft, c * s))
    g     = -c**2 * (F_nograd - Ft) - (c * s * xt + dF)   # = cos(t) df/dt
    g     = g / (norm(g) + 0.1)         # released code; see Eq. (5)
    F     = student_F(xt, t)            # the only pass with a gradient
    loss  = sq_norm(F - sg(F) - g)      # value ~1; gradient moves F along g

    # DMD term: reverse side, on the student's own sample
    x0s = rollout(student, N=randint(1, 4))    # gradient through last jump
    td  = sample_p_D()
    xd  = cos(td) * x0s + sin(td) * randn_like(x0s)
    ff, ft = fake_f(xd, td), teacher_cfg_f(xd, td)     # no gradient
    tgt  = sg(x0s - (ff - ft) / mean(abs(x0s - ft)))
    loss = loss + 0.01 * sq_norm(x0s - tgt)
    loss.backward(); opt_student.step()
else:                                   # fake-score step
    x0s = rollout(student_nograd, N=randint(1, 4))
    td  = sample_p_D()
    xd  = cos(td) * x0s + sin(td) * randn_like(x0s)
    # flow-matching loss on F_fake, written in x0 form (same value)
    loss = sq_norm(x0s - fake_f(xd, td)) / sin(td)**2
    loss.backward(); opt_fake.step()

The listing writes the fake-score loss as ∥x^0−ffake∥2/sin⁡2t\lVert\hat{\mathbf{x}}_0-\mathbf{f}_{\text{fake}}\rVert^2/\sin^2 t, the form the released code uses. Substituting (2) shows it equals the paper’s flow-matching loss ∥Ffake−v∥2\lVert\mathbf{F}_{\text{fake}}-\mathbf{v}\rVert^2 with target velocity v=cos⁡(t) ϵ−sin⁡(t) x^0\mathbf{v}=\cos(t)\,\boldsymbol\epsilon-\sin(t)\,\hat{\mathbf{x}}_0. Generation afterward is the plain jump-and-renoise loop:

# few-step sampling with the paper's times (Appendix D)
times = [arctan(80.0), 1.3, 1.0, 0.6][:N]   # N = 1..4; arctan(80) = 1.558
x = randn(16, 21, 60, 104)                  # (almost) pure noise
for k, t in enumerate(times):
    x0 = student_f(x, t)                    # JUMP: one pass, CFG built in
    if k + 1 < N:
        t2 = times[k + 1]
        x = cos(t2) * x0 + sin(t2) * randn_like(x0)   # RENOISE to t2
video = vae_decode(x0)

Choosing λ: the quality–diversity trade-off

The weight λ\lambda sets how much of the mode-seeking term enters the update. The paper sweeps λ\lambda over 1, 0.1, 0.01 and 0.001 on Wan2.1 1.3B (batch 64, 10,000 iterations each). Larger values give better quality and less diversity, smaller values the reverse, and 0.01 is the smallest weight that keeps good quality; the same value then works for every model and task in the paper. Figure 6 draws that trade-off as a curve. Drag λ\lambda and watch the operating point move from the varied-but-soft pure-sCM end toward the sharp-but-collapsed corner where DMD2 sits.

Figure 6 · the quality–diversity trade-off
λ = 0.01
Diversity (across) against quality (up). The teacher sits top-right. DMD2 sits top-left: sharp but collapsed. The rCM curve runs from pure sCM (varied, softer) toward the DMD-heavy corner as λ\lambda grows; the ringed point at λ=0.01\lambda = 0.01 keeps both high. The positions sketch the paper’s qualitative finding, and the axes have no units.

The obvious alternative, pure DMD with a GAN loss as in DMD2, sits at the high-λ\lambda end: it reaches the quality, and the paper’s sample grids show its objects converging to similar positions and orientations across random seeds. A small λ\lambda keeps the forward-side loss in charge of where the student puts its probability, and lets the reverse-side loss correct the detail of each sample.

Results on GenEval and VBench

rCM distills Cosmos-Predict2 text-to-image models (0.6B, 2B and 14B parameters, at 1360×768) and Wan2.1 text-to-video models (1.3B and 14B, five-second clips at 832×480). Image models are scored on GenEval, which checks compositional prompts (object counts, spatial relations, attribute binding); the paper repeats its 553 prompts four times. FID, the older image metric, measures feature statistics and misses failures like garbled small text. Video models are scored on VBench, which rates motion quality and semantic alignment with the prompt.

On GenEval the 14B student scores 0.83 overall at 4 steps, 0.81 at 2 and 0.82 at 1, against the teacher’s 0.84 at 70 NFE. For scale, the 12B FLUX.1-schnell scores 0.69 at 4 steps. Like-for-like against DMD2 on the same teachers, rCM scores 0.79 versus 0.77 at 0.6B and 0.81 versus 0.80 at 2B.

On VBench the 14B video student scores 84.92 at 4 steps (4.5 frames per second) and 85.05 at 2 steps (8.3 frames per second), above the 14B teacher’s 83.58 at 0.18 frames per second. At those rates an 81-frame clip takes about 18 seconds at 4 steps and 10 at 2, against about 7.5 minutes for the teacher. At 1 step the score drops to 83.02, and the paper describes 1-step videos as blurry across prompts; 2 steps are close to the teacher, and 4 steps recover fine detail such as legible street signs. At 1.3B, where both methods were run, DMD2 scores 84.56 and rCM 84.43 at 4 steps, a 0.13-point difference. The paper says the student beating its teacher on VBench does not make it strictly better, particularly in diversity and physical consistency.

rCM separates from DMD2 on diversity, which the paper shows with sample grids: DMD2’s outputs for one prompt converge to similar object positions and orientations, while rCM’s vary across seeds the way the teacher’s do. The paper also reports 720p and image-to-video runs on Cosmos-Predict2 with the same pattern.

Limits

The paper has no limitations section; these follow from the method. rCM needs a strong teacher, since it distills and cannot train a fast model from scratch. It depends on the JVP infrastructure, the custom attention kernel and the per-layer JVP refactor, before it runs at this scale. A 1-step video student is still visibly worse than a 2-step one. And the diversity advantage over DMD2 is shown in samples rather than measured, so how much of the teacher’s range the student keeps is not quantified.

Provenance Verified against primary literatureHow we verify
sCM (Lu & Song, 2024)Continuous-time consistency, the TrigFlow schedule, the JVP rearrangement and tangent normalization g / (‖g‖ + c) with c = 0.1.
Consistency Models (Song et al., 2023)The consistency function, its boundary condition, and jump-and-renoise multistep sampling.
DMD / DMD2 (Yin et al., 2024)Distribution-matching score distillation, the online fake-score network, and the stop-gradient regression form of the loss.
EDM (Karras et al., 2022)The c_skip / c_out preconditioning that makes f(x, 0) = x hold by construction.
Score SDE (Song et al., 2021)The probability-flow ODE the student learns to shortcut (score coefficient ½g²).
NVlabs/rcm codercm/models/t2v_model_distill_rcm.py: tangent normalized by its L2 norm + 0.1 (line 611); fake score trained on ‖x̂0 − f_fake‖² / sin²t (line 788), equal to the paper’s flow-matching loss; rollout step count cycles 1..4 by iteration (line 740) where the paper samples it uniformly. rcm/inference/wan2pt1_t2v_rcm_infer.py defaults to intermediate times 1.5, 1.4, 1.0 (lines 143-148) where Appendix D lists 1.3, 1.0, 0.6.
correctionThe paper’s Eq. (4) and the sentence after it disagree. As printed (and again in Algorithm 1, line 7), the tangent is divided by ‖g‖² + c. Since F_θ − F_θ⁻ is zero in value, the per-sample loss is then ‖g‖² / (‖g‖² + c)², which falls like 1/‖g‖² (0.00998 at ‖g‖ = 10), not the stated ‖g‖² / (‖g‖² + c) ≈ 1. The stated value holds exactly for g / √(‖g‖² + c), which this page displays. The released code divides by ‖g‖₂ + 0.1 instead, sCM’s original normalizer, whose value at ‖g‖ = 10 is 0.980; the training listing on this page follows the code. The paper’s conclusion, that no learned per-time loss weight is needed because each sample’s loss stays near 1, holds for the √ form and for the code, and fails for the printed denominator taken literally.

Questions you might still have

?

Why does a DMD weight of 0.01 fix quality without collapsing diversity?
The sCM loss already gets layout and variety right; what it lacks is any signal computed on a finished sample. At weight 0.01 the DMD term corrects the drift that accumulates at high noise levels without dominating the update. The paper’s sweep over 1, 0.1, 0.01 and 0.001 on Wan2.1 1.3B shows the expected ordering: larger weights give better quality and less diversity, and 0.01 is the smallest weight that kept good quality.

?

If the two losses push toward opposite failure modes, why do they not cancel?
They are computed on different inputs. The sCM loss is evaluated on real or teacher-generated data with fresh noise; the DMD loss is evaluated on the student’s own rollouts. A large student can satisfy both at once: cover every mode of the data, and make each of its own samples sharp. Two losses on the same input with opposite pulls would average; these do not share an input.

?

What stopped continuous-time consistency from scaling before this paper?
The sCM loss needs a Jacobian-vector product of the whole network every step. PyTorch’s torch.func.jvp works on a plain model, but it does not support FSDP-sharded modules, and there was no FlashAttention kernel that carried tangents. The paper writes a Triton FlashAttention-2 JVP kernel, moves the JVP inside each layer so FSDP works, and splits the query, key and value tangents across GPUs the same way Ulysses context parallelism splits the values themselves. Before this, sCM had been shown up to 1.5B parameters on ImageNet 512×512.

?

Is the distilled model better than the teacher?
Not in general. The 14B video student scores 84.92 on VBench at 4 steps against the teacher’s 83.58, but the paper says this does not make it strictly superior, particularly in diversity and physical consistency. On GenEval the 14B image student scores 0.83 against the teacher’s 0.84.

?

Can the student run more than 4 steps?
Yes. A consistency model can alternate jump and renoise any number of times. Training rollouts use 1 to 4 steps, and the paper also shows an 8-step result with the times arctan(σ_max), 1.3, 1.0, 1.0, 0.6, 0.6, 0.3, 0.3.

?

Does rCM need the original training data?
It uses curated data from Cosmos-Predict2 and, for Wan, synthetic videos generated by the Wan2.1 14B teacher. The paper notes that training could in principle use only teacher-generated data, as several score-distillation methods do.

?

How does this relate to MeanFlow and consistency trajectory models?
Appendix F.1 shows that a continuous-time consistency trajectory model (sCTM), which maps any noise level t to any smaller level s instead of always to clean data, trains with the same kind of JVP objective, and that MeanFlow is the same construction under the rectified-flow schedule. In a quick distillation test without much tuning, sCTM did worse than sCM on both quality and diversity on basic text-to-image tasks; the authors read this as learning arbitrary jumps being harder than learning jumps to the data.

Footnotes & further reading

  1. The paper: Zheng, Wang, Ma, Chen, et al., Large Scale Diffusion Distillation via Score-Regularized Continuous-Time Consistency (Tsinghua / NVIDIA, 2025). Project page; code (NVlabs/rcm).
  2. Continuous-time consistency and the TrigFlow schedule: Lu and Song, Simplifying, Stabilizing and Scaling Continuous-Time Consistency Models (sCM). The discrete original: Song et al., Consistency Models, and the pure stop-gradient variant, Song and Dhariwal, Improved Techniques for Training Consistency Models. The paper’s footnote 4 says MeanFlow’s adaptive weight 1/(∥Δ∥2+c)1/(\lVert\Delta\rVert^2+c) is the same as tangent normalization. That weight scales the gradient by 1/(∥g∥2+c)1/(\lVert\mathbf{g}\rVert^2+c), as the printed Eq. (4) denominator does, while its loss value equals the right-hand side of (5).
  3. Score distillation: Yin et al., One-step Diffusion with Distribution Matching Distillation (DMD) and Improved Distribution Matching Distillation (DMD2); the variational view, Wang et al., ProlificDreamer (VSD); and the Fisher-divergence variant, Zhou et al., Score Identity Distillation (SiD). The paper’s DMD2 baseline adds a discriminator branch to the fake-score network with a non-saturating GAN loss.
  4. Mode-covering versus mode-seeking is the standard asymmetry of forward and reverse KL; Minka’s Divergence Measures and Message Passing is the readable reference. A reverse divergence settles on the mode with the most mass, which need not be the tallest peak.
  5. The probability-flow ODE is dxt=[f(t)xt−12g2(t)∇log⁡qt(xt)] dt\mathrm{d}\mathbf{x}_t=[f(t)\mathbf{x}_t-\tfrac12 g^2(t)\nabla\log q_t(\mathbf{x}_t)]\,\mathrm{d}t: it uses exactly half the score coefficient of the reverse-time SDE, 12g2(t)\tfrac12 g^2(t) versus g2(t)g^2(t), because the deterministic flow drops the noise term. Song et al., Score-Based Generative Modeling through SDEs. The gg in this equation is the scalar diffusion coefficient, unrelated to the tangent g\mathbf{g} of (5). The schedule-to-coefficient maps f(t), g2(t)f(t),\,g^2(t) come from the variational-diffusion / DPM-Solver line, not the original score-SDE paper.
  6. The JVP kernel builds on FlashAttention-2 (Dao, 2023). The preconditioning follows Karras et al., Elucidating the Design Space of Diffusion-Based Generative Models (EDM).