Multimarginal Generative Modeling with Stochastic Interpolants

Michael Samuel Albergo, Nicholas Matthew Boffi, Michael Lindsey, Eric Vanden-Eijnden

Most modern generative models, such as Diffusion Models and Normalizing Flows, operate as "two-marginal" systems. They are designed to learn a transformation from a simple reference distribution (typically Gaussian noise) to a complex target distribution (like images of faces). However, real-world applications frequently involve multiple related datasets where we might want to translate images across several domains (e.g., style transfer) or discover semantic correspondences between them.

Standard methods usually require training separate models for every pair of datasets, meaning $K$ datasets require $K^2$ distinct models. This paper addresses this inefficiency by generalizing the stochastic interpolant framework to multimarginal generative modeling. By defining generative flows on a high-dimensional simplex rather than a simple timeline, the authors enable efficient "all-to-all" translation between multiple datasets while simultaneously discovering semantic correspondences and optimizing transport costs.

The Simplex Generalization

The authors build upon the standard Stochastic Interpolant framework. In a typical two-marginal setup, a process $x_t$ interpolates between noise ($x_0$) and data ($x_1$) as time $t$ progresses from 0 to 1.

To accommodate multiple distributions, the authors replace the scalar time $t$ with an interpolation coordinate $\alpha$ that resides on a $K$-simplex (e.g., a triangle for 3 marginals, or a tetrahedron for 4). Each vertex of this simplex represents one of the $K$ probability densities, and any point inside the simplex represents a mixture of these densities.

Simplex representations for different marginal setups.

Key Technical Components

  1. Velocity and Score Fields: The model learns velocity fields $g_k(\alpha, x)$ that dictate how samples should move to reach a specific marginal distribution. Crucially, these are trained using tractable quadratic regression objectives (square loss), making them significantly easier to optimize than adversarial networks.
  2. Path Optimization: The framework decouples the problem of learning the velocity from the path taken through the simplex. The authors introduce a geometric algorithm based on the Benamou-Brenier transport cost to find the most efficient path to move from one distribution to another.
  3. Unified Flow: By combining these learned fields, the model can transport a sample from any point on the simplex to any other point via an Ordinary Differential Equation (ODE).

Key Insights and Efficiency

One of the most striking findings of this work is that the interior matters. Training the model on the entire simplex (the interior) yields vastly superior results compared to training only on the edges (pairwise). When the model observes all distributions simultaneously during training, it learns a shared semantic representation. This allows it to preserve the underlying "content" of an image—such as the pose of an animal—even when transforming it into a completely different domain.

Furthermore, this approach offers massive efficiency gains. To solve transport problems between $K$ marginals, the framework only requires learning $K$ vector fields. This $O(K)$ scaling is significantly more practical than training $K(K-1)/2$ separate pairwise models.

Empirical Results

The researchers evaluated their framework on several standard image benchmarks, including MNIST, AFHQ-2 (animal faces), Oxford Flowers, CelebA, and synthetic 2D datasets.

  • All-to-All Translation: The model successfully performed style transfer across disparate domains. For instance, it could take a specific cat image and push it toward the celebrity or flower marginals while maintaining the semantic structure (composition and lighting) of the original input.
  • Semantic Correspondence: The multimarginal perspective naturally discovered deep correspondences. In MNIST, a "3" generated from a specific "0" via the barycenter (the middle of the simplex) looked more semantically related to that "0" than one generated via a simple pairwise edge.
  • Path Length Reduction: On a synthetic 2D Gaussian-to-checkerboard task, the path optimization algorithm successfully "straightened" the transport paths. This reduced the Wasserstein-2 transport cost and allowed for more accurate sampling with fewer integration steps.
Path optimization on the 2D Gaussian-to-checkerboard task.

Limitations and Future Directions

While the framework effectively reduces transport costs, it does not guarantee mathematically optimal transport (the absolute shortest path in probability space) unless nonlinear interpolants are used, which introduces additional complexity. Additionally, while scaling as $O(K)$ is a massive improvement, training on a very high-dimensional simplex for a large number of datasets still presents memory and sampling time challenges.

Future work suggested by the authors includes applying this framework to data decorruption (removing multiple different types of noise or artifacts simultaneously) and further exploring the use of the score (the gradient of the density) to enable Stochastic Differential Equation (SDE)-based sampling in the multimarginal setting.

Summary updated

BibTeX
@inproceedings{albergo2024multimarginal,
  author = {Michael Samuel Albergo and Nicholas Matthew Boffi and Michael Lindsey and Eric Vanden-Eijnden},
  title = {{Multimarginal Generative Modeling with Stochastic Interpolants}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=FHqAzWl2wE},
}
Figure