Manuscript Offprint

arXiv:2610.13614

Some remarks on the connection between generative diffusion and optimal transport

Giulio Biroli, Marc Mézard

Abstract

We discuss three simple connections between generative diffusion and optimal transport. First, the joint law of the data and of their Ornstein–Uhlenbeck noising is, at every time, the solution of an entropic optimal-transport problem, at a temperature set by the noise level. Backward diffusion can consequently be read as an annealing which gradually decreases the entropic regularization. Second, we study the speciation transition—how the modes of the data distribution emerge during generation—and compare how it happens in diffusion and flow matching with respect to optimal transport. Using Gaussian mixtures as high-dimensional example, we show that the dynamical instability through which diffusion and flow matching separate the modes becomes, for optimal transport, an exponentially thin boundary layer at the beginning of generation, which is rounded by entropic regularization. Third, considering a generic forward dynamics with a general confining potential, we show that the backward process driven by the score also satisfies a drift-based variational principle whose minimal cost is the entropy difference between initial and final distributions.

Introduction

Generative diffusion starts from a simple reference measure and reconstructs the data distribution by reversing a noising dynamics [1, 2, 3]. Optimal transport starts from the same pair of measures and asks for the least expensive way of moving one into the other [4, 5, 6]. It has been proven that the transport realized by generative diffusion is not optimal [7, 8], although it can be optimal, or close to it, in some special cases [9]. It is nevertheless interesting to study more closely the relations between the two constructions. In this note we study three different aspects of this connection.

The first result, presented in Section 1, gives an exact entropic-optimal-transport interpretation of the backward dynamics in generative diffusion based on Ornstein–Uhlenbeck noising. It answers a natural and often-asked question: can backward generation be interpreted as a kind of annealing, from high temperature down to the target distribution? Not in the usual sense, because the force field itself changes along the dynamics. We show, however, that the perfect score (the gradient of the log-density of the noised data) solves, at each time, an entropic optimal transport problem between the noised data distribution at that time and the original data distribution, with a temperature that decreases as the backward dynamics proceeds. The backward dynamics can therefore be read as an annealing, but of a very special kind: a progressive lowering of the temperature that controls the weight of the entropy term in optimal transport.

Section 2 then turns to speciation, the formation of structures, or modes, in the data distribution along the generative process [10, 11, 12, 13, 14], and compares how it manifests itself in three approaches: generative diffusion, flow matching, and optimal transport. We show that all three give a common physical picture of the formation of separated modes. An explicit analysis of a high-dimensional Gaussian mixture shows that the choice of noise–data coupling and of time parametrization determines whether the modes separate smoothly or through a shock, and on what time scale. We deliberately focus on this very simple model, to illustrate a phenomenon that we believe holds for more general high-dimensional probability distributions.

The third and final result, presented in Section 3, establishes a variational principle for the score-driven reverse dynamics in a general confining potential, i.e. starting the generation from a generic probability distribution, not necessarily a Gaussian one. This is a generalisation of the results proven for standard diffusion models that interpolates between data distribution and a Gaussian one [15].

References (39)