Stable generative modeling using diffusion maps

Georg A. Gottwald, Fengyi Li, Youssef M. Marzouk, Sebastian Reich · DOI

Abstract

This paper introduces a non-parametric generative modeling framework that integrates Schrödinger bridges with Langevin dynamics to synthesize new data. By directly estimating conditional transition probabilities instead of score functions, the method circumvents the stability issues and restrictive step-size requirements typically associated with modeling data on low-dimensional manifolds. The approach utilizes a data-aware diffusion matrix and a split-step sampling scheme to ensure generated samples remain within the convex hull of the training data. Empirical evaluations on synthetic manifolds and chaotic dynamical systems, such as the Lorenz-63 system, demonstrate the model's robustness and its ability to capture complex geometries without the numerical instabilities typical of traditional score-based diffusion models.

Introduction

Generative modeling often relies on Langevin dynamics, where particles are moved according to the gradient of the data's log-density, known as the score function. However, real-world data frequently adheres to the manifold hypothesis, existing on or near low-dimensional structures within a high-dimensional space. In these scenarios, the score function becomes "stiff," exhibiting extremely large values just outside the manifold to force particles back toward the data distribution.

For standard numerical solvers like the Euler-Maruyama method, this stiffness necessitates vanishingly small time steps to prevent simulation divergence. This leads to significant computational bottlenecks and slow convergence. This research seeks a more stable and efficient alternative for data generation that remains robust even when data is highly concentrated on complex, non-linear shapes.

Methodology

The proposed framework avoids explicit score estimation by using Schrödinger bridges to approximate the conditional expectation of a stochastic process. The methodology consists of four primary components:

1. Schrödinger Bridge Coupling

The authors utilize the Sinkhorn algorithm to solve a Schrödinger bridge problem. This process optimally couples the empirical measure of the training data with itself over a reference random walk. The result is a transition matrix $P$ that describes the probabilistic movement between training points, effectively capturing the underlying structure of the data.

2. Continuous Extension and Conditional Means

To move beyond the discrete training set, the discrete matrix is extended to the entire space $\mathbb{R}^d$ using a kernel-based probability vector $p(x)$. This allows for the calculation of a conditional mean $m(x; \epsilon)$ for any point in the space, providing a continuous guide for the generative process.

3. Data-Aware Langevin Sampler

The recursive sampler is guided by the conditional mean. A critical innovation is the introduction of a data-aware diffusion matrix based on the local conditional covariance of the data. Unlike constant noise, which can cause samples to "bleed" off the manifold, this data-aware approach aligns the noise with the local geometry, preserving the manifold's structural integrity.

4. Split-Step Stability Scheme

To ensure unconditional stability, the authors propose a split-step update:

  1. Noise Addition: Add noise to the current sample.
  2. De-noising: Apply a mapping step back toward the conditional mean of the training data. This sequence ensures that generated samples stay within the convex hull of the original training set, preventing the "explosions" common in score-based methods.

Experimental Results

The method was evaluated across various synthetic and physical systems to test its versatility and stability:

  • Manifold Adherence: On 1D manifolds embedded in 2D space and multi-dimensional hyper-semispheres ($d=3, 4, 9$), the model demonstrated high fidelity. The use of variable bandwidth kernels significantly improved accuracy in data-sparse regions, achieving lower Optimal Transport (OT) distances compared to fixed-bandwidth alternatives.
  • Denoising: In tests involving a singular Gaussian distribution, the model successfully recovered the underlying distribution while effectively filtering noise from the thin dimensions.
  • Dynamical Systems: The framework was applied to the Lorenz-63 system, where it successfully learned the "butterfly attractor." It also provided accurate closures for multi-scale stochastic subgrid-scale parametrizations, outperforming several deterministic machine learning baselines in climate science-inspired tasks.

Discussion and Conclusion

The primary advantage of this approach is its stability; the sampler is proven to be geometrically ergodic and remains stable for any choice of step size $\epsilon > 0$. By bypassing the score function in favor of conditional expectations, the model provides a robust path for generating data on manifolds.

However, the method faces the "curse of dimensionality" common to kernel-based approaches. As the dimension $d$ increases, the number of samples $M$ required to maintain accuracy grows exponentially. Future work may involve developing localized Schrödinger bridge samplers to improve high-dimensional scaling. Additionally, the authors noted a potential conceptual link between their conditional mean approach and the multi-head self-attention mechanisms found in Transformer architectures, suggesting a promising bridge between stochastic modeling and modern deep learning structures.

Summary updated

BibTeX
@misc{gottwald2024stable,
  author = {Georg A. Gottwald and Fengyi Li and Youssef M. Marzouk and Sebastian Reich},
  title = {{Stable generative modeling using diffusion maps}},
  year = {2024},
  eprint = {2401.04372},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.04372},
}
Figure