Simulating diffusion bridges with score matching

Jeremy Heng, Valentin De Bortoli, Randal Douc, James Thornton

TL;DR

This paper introduces a novel method for simulating "diffusion bridges" – stochastic processes that start at one point and end at another. By leveraging a time-reversed perspective and a score-matching technique, they offer a more tractable way to approximate these complex paths, with applications in fields ranging from finance to biology.

What Problem Does This Paper Address?

Diffusion processes are powerful tools for modeling continuous-time systems in various scientific domains. However, a common and challenging task is to simulate these processes when they are conditioned to start at a specific initial state ($x_0$) and end at a specific terminal state ($x_T$). This "diffusion bridge" problem is crucial for statistical inference, especially when dealing with discretely observed diffusion processes. Existing methods often struggle with intractability, particularly when the transition densities (the probability of moving from one state to another) are unknown or complex. This paper aims to provide a more robust and efficient approach to simulating these conditioned paths.

Methods

The core of the paper's contribution lies in its novel approach to simulating diffusion bridges by:

  • Time-Reversal: Instead of directly simulating the forward diffusion bridge, the authors exploit its time-reversed counterpart. This backward process can be simulated if the original, unconditioned diffusion process can be time-reversed.
  • Variational Formulation and Score Matching: They introduce a variational framework to learn the time-reversal of the diffusion process. This involves approximating the "score" function (the gradient of the log-density) of the diffusion process. Crucially, they use a score-matching technique to learn this approximation without needing to know the true, often intractable, score function. This is achieved by minimizing a loss function that measures the discrepancy between the learned score and a score derived from tractable approximations of transition densities over short time intervals.
  • Doob's h-transform Approximation: The method also provides a way to approximate the forward time representation of the diffusion bridge, which is related to Doob's h-transform. This is done by applying their score-matching technique iteratively.

The authors use neural networks as function approximators for the score functions and employ stochastic gradient descent for optimization.

Datasets

The paper does not introduce new datasets. Instead, it evaluates its methodology on established models:

  • Ornstein-Uhlenbeck process: A standard model used to test diffusion process algorithms.
  • Interest rates model: A model from financial econometrics.
  • Cell model: A model from genetics describing cell differentiation and development.

These models are used to demonstrate the effectiveness of their diffusion bridge simulation approach under various conditions, including different time horizons, dimensions, and conditioning states (e.g., rare terminal states).

Key Insights and Ideas

  • Time-reversal as a bridge to simulation: The paper highlights that viewing diffusion bridges through the lens of time-reversal can unlock new simulation strategies, especially when the forward process is difficult to handle directly.
  • Score matching bypasses intractability: The core innovation is using score matching to learn the necessary components for time-reversal without needing to know the exact, often intractable, transition densities or score functions of the original diffusion.
  • Variational approach for learning: The formulation as a variational problem allows for the application of powerful function approximation techniques (like neural networks) and optimization algorithms.
  • Practical implications for inference: By providing a more reliable way to simulate diffusion bridges, this work directly benefits statistical inference tasks that rely on these simulations, such as parameter estimation in complex diffusion models.

Key Results

The paper demonstrates the effectiveness of their proposed method across several numerical examples:

  • Ornstein-Uhlenbeck process: The method shows substantial improvements over existing approaches, particularly when conditioning on rare states.
  • Interest rates model: The approach performs well across different time horizons and conditioning states, outperforming other methods in certain scenarios.
  • Cell model: The method shows improvement over guided proposal bridges, especially for longer time horizons and smaller diffusion coefficients.

The authors present results in terms of effective sample sizes, acceptance rates, and mean squared errors, indicating competitive or superior performance compared to benchmark methods like Clark-Delyon-Hu, Forward Diffusion, and Guided Proposal bridges.

Limitations and Future Work

  • Computational Cost: While the method is presented as more tractable, learning the score function can still be computationally intensive, especially for high-dimensional problems or long time horizons. The authors mention that optimization times can range from seconds to minutes on a desktop machine, which can be reduced with hardware accelerators.
  • Approximation Errors: The method relies on approximations, particularly for the score function and transition densities over short time intervals. This can lead to accumulated errors, especially when simulating forward bridges (which involve an additional score approximation step).
  • Parameter Dependence: For applications where diffusion model hyperparameters are estimated, a new diffusion bridge approximation might be needed for each set of parameters. The authors suggest incorporating parameter dependence into the score approximation as a future direction.
  • Infinite-Dimensional Processes: The paper mentions that recent work has extended their approach to infinite-dimensional diffusion processes, suggesting this as a promising avenue for future research.
  • Directly learning ∇ log h(t, xt): The paper also points to recent work that directly approximates ∇ log h(t, xt) without needing to approximate time-reversal, which could be an alternative or complementary approach.

Summary updated

BibTeX
@inproceedings{heng2025simulating,
  author = {Jeremy Heng and Valentin De Bortoli and Randal Douc and James Thornton},
  title = {{Simulating diffusion bridges with score matching}},
  booktitle = {Biometrika},
  year = {2025},
  doi = {10.1093/biomet/asaf048},
}
Figure