Papers
Topics
Authors
Recent
Search
2000 character limit reached

Score SDE Formulation

Updated 25 February 2026
  • Score SDE Formulation is a rigorous framework for diffusion-based generative modeling using time-dependent score functions derived as gradients of evolving log-densities.
  • It employs Malliavin–Bismut calculus to obtain analytical score representations that connect forward SDE dynamics with reverse-time sampling methods.
  • The formulation enables practical integration into training and sampling pipelines through closed-form solutions and Monte Carlo approximations for enhanced generative accuracy.

Score SDE Formulation

The Score SDE (Stochastic Differential Equation) formulation provides a rigorous mathematical framework for diffusion-based generative modeling, centered on the evolution and utilization of the time-dependent score function logpt(x)\nabla \log p_t(x), i.e., the gradient of the log-density of an evolving distribution under an SDE. This article details the mathematical structure, estimation approaches, and algorithmic integration of score-based SDEs, including results on analytic computation via Malliavin calculus, connections with the Fokker–Planck equation, and practical implications for generative modeling.

1. Forward SDEs and the Marginal Score

Consider an mm-dimensional Itô SDE: dXt=b(t,Xt)dt+σ(t,Xt)dBt,X0p0,dX_t = b(t, X_t)\,dt + \sigma(t, X_t)\,dB_t, \qquad X_0 \sim p_0, where BtB_t is standard Brownian motion in Rd\mathbb{R}^d, bb is the drift, and σ\sigma the (possibly matrix-valued, state-dependent) diffusion coefficient. Under regularity and nondegeneracy, the law of XtX_t is absolutely continuous with density pt(x)p_t(x): pt(x)=ddxP(Xtx).p_t(x) = \frac{d}{dx}\,\mathbb{P}(X_t \le x). The time-mm0 score is defined as

mm1

i.e., the spatial gradient of the log-density. This score describes the local direction of log-likelihood increase and is central to reverse-time generative modeling (Mirafzali et al., 21 Mar 2025).

2. Analytical Score Representation via Malliavin–Bismut Calculus

Classical integration-by-parts in Malliavin calculus yields an exact analytical expression for the score. Let mm2. The Malliavin derivative mm3 encodes the infinitesimal sensitivity of the terminal random variable to perturbations in mm4. Define the Malliavin covariance matrix: mm5 The covering process for the mm6th coordinate is

mm7

satisfying mm8. The Bismut–Malliavin formula gives: mm9 where dXt=b(t,Xt)dt+σ(t,Xt)dBt,X0p0,dX_t = b(t, X_t)\,dt + \sigma(t, X_t)\,dB_t, \qquad X_0 \sim p_0,0 denotes the Skorokhod integral of dXt=b(t,Xt)dt+σ(t,Xt)dBt,X0p0,dX_t = b(t, X_t)\,dt + \sigma(t, X_t)\,dB_t, \qquad X_0 \sim p_0,1. This is a fully constructive method for score computation using only forward SDE paths and their Malliavin derivatives (Mirafzali et al., 21 Mar 2025, Mirafzali et al., 8 Jul 2025).

3. Closed-Form Scores: Linear and Nonlinear SDEs

For linear SDEs: dXt=b(t,Xt)dt+σ(t,Xt)dBt,X0p0,dX_t = b(t, X_t)\,dt + \sigma(t, X_t)\,dB_t, \qquad X_0 \sim p_0,2 let dXt=b(t,Xt)dt+σ(t,Xt)dBt,X0p0,dX_t = b(t, X_t)\,dt + \sigma(t, X_t)\,dB_t, \qquad X_0 \sim p_0,3 be the solution to dXt=b(t,Xt)dt+σ(t,Xt)dBt,X0p0,dX_t = b(t, X_t)\,dt + \sigma(t, X_t)\,dB_t, \qquad X_0 \sim p_0,4, dXt=b(t,Xt)dt+σ(t,Xt)dBt,X0p0,dX_t = b(t, X_t)\,dt + \sigma(t, X_t)\,dB_t, \qquad X_0 \sim p_0,5, and

dXt=b(t,Xt)dt+σ(t,Xt)dBt,X0p0,dX_t = b(t, X_t)\,dt + \sigma(t, X_t)\,dB_t, \qquad X_0 \sim p_0,6

The score admits the explicit formula: dXt=b(t,Xt)dt+σ(t,Xt)dBt,X0p0,dX_t = b(t, X_t)\,dt + \sigma(t, X_t)\,dB_t, \qquad X_0 \sim p_0,7 which coincides with the Fokker–Planck Gaussian solution (Mirafzali et al., 21 Mar 2025). For nonlinear drift but state-independent diffusion dXt=b(t,Xt)dt+σ(t,Xt)dBt,X0p0,dX_t = b(t, X_t)\,dt + \sigma(t, X_t)\,dB_t, \qquad X_0 \sim p_0,8, the score is given by the conditional expectation of the Skorokhod integral determined by first and second variation processes (see below for explicit computational schemes): dXt=b(t,Xt)dt+σ(t,Xt)dBt,X0p0,dX_t = b(t, X_t)\,dt + \sigma(t, X_t)\,dB_t, \qquad X_0 \sim p_0,9 with BtB_t0 comprising Itô integrals over random variation processes parameterized by the endpoint BtB_t1 (Mirafzali et al., 21 Mar 2025, Mirafzali et al., 8 Jul 2025).

4. First and Second Variation Processes and Their Role

The analytic score formula for nonlinear drift relies on the explicit SDEs for the first (BtB_t2) and second (BtB_t3) variation processes: BtB_t4 The cover process BtB_t5 and its Skorokhod divergence BtB_t6 are then expressible entirely in terms of BtB_t7, and deterministic time-integrals, with all Malliavin derivatives resolved via explicit variation process expansions (Mirafzali et al., 8 Jul 2025).

5. Integration of Analytical Scores into Training and Sampling

Training (score matching) proceeds by forward simulation of BtB_t8 under the SDE, with direct computation of the analytic score for each BtB_t9. The neural network Rd\mathbb{R}^d0 is trained by minimizing the mean-square error to the analytic or Malliavin–Bismut target: Rd\mathbb{R}^d1 In practice, Rd\mathbb{R}^d2 is implemented via regression or a second auxiliary network in the nonlinear case. For sampling, the reverse-time SDE is numerically integrated: Rd\mathbb{R}^d3 using the trained Rd\mathbb{R}^d4 as the score estimator (Mirafzali et al., 21 Mar 2025).

In cases where analytical/computable closed forms are available (e.g., via Malliavin–Bismut representations), direct plugin of the computed score enables Monte Carlo evaluation of the conditional Skorokhod integral. This approach bypasses neural score parameterization and can be inserted directly into samplers such as Langevin-type or predictor–corrector procedures (Mirafzali et al., 8 Jul 2025).

6. Theoretical Guarantees, Consistency, and Extensions

The Malliavin–Bismut analytic scheme rigorously coincides with the solution derived via the Fokker–Planck PDE in the linear–Gaussian case (Mirafzali et al., 21 Mar 2025). For general nonlinear drift and state-independent diffusion, the closed analytic score expressed through random variation processes remains free from unknown densities, enabling broader generalization to complex SDEs.

Key theoretical conditions include invertibility of the Malliavin covariance and sufficient smoothness (drift/diffusion at least Rd\mathbb{R}^d5), ensuring existence and computability of the requisite variation processes. In high dimensions, computational cost scales with the need to simulate Rd\mathbb{R}^d6 and their integrals along SDE sample paths; Monte Carlo averaging is a practical solution, and the resulting scores can be used without recourse to denoising or sliced score matching methodologies (Mirafzali et al., 8 Jul 2025).

Extensions to more general SDE forms, including state-dependent diffusion (using generalized Skorokhod and Malliavin differential machinery), are developing, paving the way for systematic score computation in increasingly broad generative modeling contexts (Mirafzali et al., 21 Mar 2025).

7. Implications for Diffusion Generative Modeling

Malliavin–Bismut-based score SDEs enable the direct, tractable computation of Rd\mathbb{R}^d7 for a wide class of SDE-driven generative models—including both linear (Gaussian) and nonlinear regimes. These analytical formulas tightly connect the forward SDE, the time-evolving density's score, and the reverse-time sampling process crucial to diffusion modeling. This analytical viewpoint refines and generalizes the backbone of training and sampling pipelines in score-based generative models, providing higher accuracy and deeper theoretical justification for the use of SDEs in generative modeling workflows (Mirafzali et al., 21 Mar 2025, Mirafzali et al., 8 Jul 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Score SDE Formulation.