Conditioning non-linear and infinite-dimensional diffusion processes

Elizabeth Louise Baker, Gefan Yang, Michael Lind Severinsen, Christy Anna Hipsley, Stefan Sommer

Abstract

Generative modeling and evolutionary biology often involve stochastic processes that evolve in infinite-dimensional spaces, such as continuous curves or shapes. A significant challenge in these fields is conditioning—forcing a process to reach a specific target or "bridge" between two known states. This paper introduces a mathematically rigorous framework for conditioning non-linear, infinite-dimensional diffusion processes without the instabilities caused by premature discretization. By applying an infinite-dimensional version of Doob’s $h$-transform and learning the score function via neural networks, the authors demonstrate a robust method for modeling complex transitions, such as the morphometric evolution between butterfly species.

Introduction

In many scientific domains, data is best represented as a continuous entity rather than a discrete set of points. For instance, the outline of a biological specimen or the trajectory of a particle exists in an infinite-dimensional Hilbert space. To make these models predictive, researchers often need to solve the "bridge problem": finding a path that starts at state $A$ and is guaranteed to arrive at state $B$ at a specific time.

Traditionally, this problem is solved by discretizing the space first—turning a continuous curve into a finite set of landmarks—and then applying conditioning techniques. However, this "discretize then condition" approach often fails to scale; as the resolution increases, the conditioned process may become unstable or fail to converge. This paper proposes a "condition then discretize" philosophy, establishing the mathematical properties of the bridge in the continuous, infinite-dimensional setting before any numerical approximation occurs.

Theoretical Framework

The authors build their framework on three primary mathematical pillars:

  1. Infinite-Dimensional Doob’s $h$-transform: The authors derive a version of this classic technique for Hilbert space-valued Stochastic Differential Equations (SDEs). This transform allows for the definition of a new SDE that describes the "conditioned" version of the original process, effectively guiding the process toward its target.
  2. Girsanov’s Theorem: To handle the change in probability measures required for conditioning, the authors utilize an infinite-dimensional version of Girsanov’s Theorem. This allows them to "weight" the paths of the process such that they hit the desired target with probability one.
  3. Score Matching: The conditioned SDE involves an intractable "score" term ($\nabla \log h$). To overcome this, the authors adapt modern score-matching techniques—standard in finite-dimensional diffusion models—to learn this term using neural networks in a functional setting.

Methodology and Discretization

While the theory is established in infinite dimensions, computation requires a finite representation. The authors explore two primary discretization methods:

  • Fourier Basis Functions: Representing shapes as a series of periodic functions.
  • Landmarks: Representing shapes as a set of discrete points along a contour.

Because the conditioning is defined in the continuous limit, the resulting "bridge" remains well-defined and stable even as the number of basis elements or landmarks increases. This ensures that the model's behavior is consistent across different levels of resolution.

Experimental Results

Synthetic Brownian Motion

To validate the framework, the authors tested a process conditioned to hit a circle of radius 1. This toy example allowed for a direct comparison between Fourier and landmark discretizations against a known ground truth. The results indicated that Fourier basis discretization generally outperformed landmark-based methods in terms of Root Mean Square Error (RMSE) when the dimensionality of the representation was high.

Butterfly Morphometry

The practical utility of the model was demonstrated using a dataset of 40 butterfly specimens from five species in the Papilio genus. Using outlines extracted via automated segmentation tools, the authors trained the model to learn the transitions between different wing shapes.

The learned score function acts as a vector field, providing a "push" that guides the deformation of one wing shape into another. By taking a "mean consensus shape" and conditioning the SDE to hit specific specimens, the authors showed that the model could successfully simulate evolutionary paths between species. This suggests a powerful tool for biologists to estimate the likelihood of different morphological transitions over evolutionary time.

Discussion and Limitations

A key insight of this work is that the "condition then discretize" approach ensures stable scaling. Experiments showed that increasing the number of basis elements (from 8 to 32) led to more detailed shape representations without the process becoming unstable.

However, several challenges remain:

  • Mathematical Constraints: The current proof relies on Itô’s formula, which limits the theory to "strong solutions" of SDEs. Expanding this to "non-strong" solutions is a necessary step for broader applicability.
  • Error Compounding: The authors utilized a one-step bridge construction. In highly complex scenarios, errors in learning the time-reversal (the score) can compound, potentially reducing the accuracy of the forward bridge.
  • Phylogenetic Expansion: While the current model bridges two points, biological evolution occurs across branching trees (phylogenies). Future work will focus on expanding this framework to handle these branching structures to calculate the probability of divergent evolutionary paths.

Conclusion

By bridging the gap between infinite-dimensional stochastic analysis and modern deep learning, this research provides a rigorous foundation for conditioning complex processes. Whether applied to generative AI or the study of biological form, the "condition then discretize" approach offers a stable and mathematically sound path forward for modeling continuous data.

Summary updated

BibTeX
@inproceedings{baker2024conditioning,
  author = {Elizabeth Louise Baker and Gefan Yang and Michael Lind Severinsen and Christy Anna Hipsley and Stefan Sommer},
  title = {{Conditioning non-linear and infinite-dimensional diffusion processes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=FV4an2OuFM},
}
Figure