Stable Autonomous Flow Matching

Christopher Iliffe Sprague, Arne Elofsson, Hossein AzizpourarXiv 2024 · DOI

Introduction

Modern generative modeling techniques, such as Flow Matching (FM) and Diffusion Models, define a continuous-time transformation from a simple prior distribution (e.g., Gaussian noise) to a complex target data distribution. While highly effective, these models are typically designed to reach the target at a specific terminal time $t=1$. A significant limitation arises when simulations continue past this point ($t > 1$): the generated samples often drift away or the underlying vector field diverges. This lack of stability is particularly problematic for modeling physical systems, such as molecular conformations, where data points represent stable equilibria or local minima in an energy landscape.

The Stability Challenge

In many real-world applications, we require the model not just to reach the data distribution, but to stay there. Standard Optimal Transport Flow Matching (OT-FM) is optimized for the shortest path to the target at a fixed time, but it does not inherently possess stability properties. To address this, the authors introduce Stable-FM, a framework that integrates principles from control theory—specifically La Salle’s invariance principle—into generative modeling to ensure that data points act as stable equilibria.

Comparison of Stable-FM and OT-FM on the Moons dataset. While both reach the target at t=1.0, OT-FM samples begin to drift and disperse by t=1.1, whereas Stable-FM remains fixed.

Methodology: Bridging Control Theory and Generative Flows

The Stable-FM approach is built upon three core pillars:

  1. Autonomous Dynamics: Stability theorems generally apply to time-independent (autonomous) systems. The authors make FM autonomous by augmenting the state space with a scalar "pseudo-time" $\tau$. The vector field then depends on this internal state $\tau$, which evolves deterministically, rather than an external clock $t$.
  2. Gradient Fields as Lyapunov Functions: The neural network vector field is modeled as the negative gradient of a scalar potential function $H_\theta$ (i.e., $v_\theta = -\nabla H_\theta$). In control theory, $H$ serves as a Lyapunov function; the system naturally "rolls down" the potential until it reaches a stable minimum.
  3. Stable Conditional Flows: The authors derive "Stable-CCNFs" (Conditional Continuous Normalizing Flows) based on quadratic potentials. These serve as training targets, ensuring the learned marginal vector field inherits the stability of individual data samples.

To facilitate training, they introduce the Auto CFM Loss, which eliminates the explicit time variable while remaining mathematically equivalent to the standard Flow Matching objective.

Key Insights and Results

A critical finding is the importance of the Convergence Ratio: the ratio between the spatial convergence rate ($\lambda_z$) and the temporal convergence rate ($\lambda_\tau$). When spatial dimensions converge faster than the pseudo-time reaches its target, the model becomes significantly more robust to training noise.

Stream plots of the learned vector fields. Stable-FM (top) creates a stable equilibrium at the data distribution, while OT-FM (bottom) maintains high-velocity flows that lead to divergence past t=1.0.

Qualitative evaluations on synthetic benchmarks like the Moons and Circles datasets demonstrate the effectiveness of this approach. As shown in the stream plots, Stable-FM learns a vector field that vanishes at the target distribution, effectively "trapping" the samples. In contrast, OT-FM maintains high-velocity flows at the target, leading to immediate dispersion after $t=1$.

Conclusion and Future Directions

Stable-FM successfully demonstrates that stability can be "baked" into generative dynamics by treating time as a state and utilizing Lyapunov-based potentials. While currently demonstrated on toy datasets with diagonal eigenvalue assumptions, future work aims to generalize the framework to high-dimensional, non-diagonal matrices suitable for complex real-world data like protein folding or molecular dynamics. By ensuring that generative models "stay put," Stable-FM opens new doors for modeling physically grounded systems.

Summary updated

BibTeX
@misc{sprague2024stable,
  author = {Christopher Iliffe Sprague and Arne Elofsson and Hossein Azizpour},
  title = {{Stable Autonomous Flow Matching}},
  year = {2024},
  eprint = {2402.05774},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.05774},
}
Figure