Michael S. Albergo, Nicholas M. Boffi, Eric Vanden-Eijnden
中
Michael S. Albergo、Nicholas M. Boffi、Eric Vanden-Eijnden。
Stochastic Interpolants: A Unifying Framework for Flows and Diffusions 随机插值:统一流与扩散的框架
Abstract 摘要
SOURCE PDF p.1 · abstract1.1
EN
A class of generative models that unifies flow-based and diffusion-based methods is introduced. These models extend the framework proposed in Albergo and Vanden-Eijnden (2023) , enabling the use of a broad class of continuous-time stochastic processes called ‘stochastic interpolants’ to bridge any two probability density functions exactly in finite time.
These interpolants are built by combining data from the two prescribed densities with an additional latent variable that shapes the bridge in a flexible way. The time-dependent probability density function of the stochastic interpolant is shown to satisfy a first-order transport equation as well as a family of forward and backward Fokker-Planck equations with tunable diffusion coefficient.
Upon consideration of the time evolution of an individual sample, this viewpoint immediately leads to both deterministic and stochastic generative models based on probability flow equations or stochastic differential equations with an adjustable level of noise.
The drift coefficients entering these models are time-dependent velocity fields characterized as the unique minimizers of simple quadratic objective functions, one of which is a new objective for the score of the interpolant density.
We show that minimization of these quadratic objectives leads to control of the likelihood for generative models built upon stochastic dynamics, while likelihood control for deterministic dynamics is more stringent.
We also construct estimators for the likelihood and the cross-entropy of interpolant-based generative models, and we discuss connections with other methods such as score-based diffusion models, stochastic localization processes, probabilistic denoising techniques, and rectifying flows.
In addition, we demonstrate that stochastic interpolants recover the Schrödinger bridge between the two target densities when explicitly optimizing over the interpolant.
Finally, algorithmic aspects are discussed and the approach is illustrated on numerical examples.
Dynamical approaches for deterministic and stochastic transport have become a central theme in contemporary generative modeling research. At the heart of progress is the idea to use ordinary or stochastic differential equations (ODEs/SDEs) to continuously transform samples from a base probability density function (PDF) ρ0 into samples from a target PDF ρ1 (or vice-versa), and the realization that inference over the velocity field in these equations can be formulated as an empirical risk minimization problem over a parametric class of functions ( Grathwohl et al., 2019 ; Song and Ermon, 2019 ; Ho et al., 2020 ; Song et al., 2021b ; Ben-Hamu et al., 2022 ; Albergo and Vanden-Eijnden, 2023 ; Liu et al., 2023b ; Lipman et al., 2023 ) .
A major milestone was the introduction of score-based diffusion methods (SBDM) ( Song et al., 2021b ) , which map an arbitrary density into a standard Gaussian by passing samples through an Ornstein-Uhlenbeck (OU) process. The key insight of SBDM is that this process can be reversed by introducing a backwards SDE whose drift coefficient depends on the score of the time-dependent density of the process. By learning this score – which can be done by minimization of a quadratic objective function known as the denoising loss ( Vincent, 2011 ) – the backwards SDE can be used as a generative model that maps Gaussian noise into data from the target. Though theoretically exact, the mapping takes infinite time in both directions, and hence must be truncated in practice.
While diffusion-based methods have become state-of-the-art for tasks such as image generation, there remains considerable interest in developing methods that bridge two arbitrary densities (rather than requiring one to be Gaussian), that accomplish the transport exactly , and that do so on a finite time interval.
Moreover, while the highest quality results from score-based diffusion were originally obtained using SDEs ( Song et al., 2021b ) , this has been challenged by recent works that find equivalent or better performance with ODE-based methods if the score is learned sufficiently well ( Karras et al., 2022 ) .
If made to match the performance of their stochastic counterparts, ODE-based methods exhibit a number of desirable characteristics, such as an exact, computationally tractable formula for the likelihood and the easy application of well-developed adaptive integration schemes for sampling.
It is an open question of significant practical importance to understand if there exists a separation in sample quality between generative models based on deterministic dynamics and those based on stochastic dynamics.
In order to satisfy the desirable characteristics outlined in the previous paragraph, we develop a framework for generative modeling based on the method proposed in Albergo and Vanden-Eijnden (2023) , which is built on the notion of a stochastic interpolant xt used to bridge two arbitrary densities ρ0 and ρ1 .
We will consider more general designs below, but as one example the reader can keep in mind:
where x0 , x1 , and z are random variables drawn independently from ρ0 , ρ1 , and the standard Gaussian density N(0,Id) , respectively. The stochastic interpolant xt defined in ( 1.1 ) is a continuous-time stochastic process that, by construction, satisfies xt=0=x0∼ρ0 and xt=1=x1∼ρ1 . Its paths therefore exactly bridge between samples from ρ0 at t=0 and from ρ1 at t=1 . A key observation is that:
The law of the interpolant xt at any time t∈[0,1] can be realized by many different processes, including an ODE and forward and backward SDEs whose drifts can be learned from data.
To see why this is the case, one must consider the probability distribution of the interpolant xt . As shown below, for a large class of densities ρ0 and ρ1 supported on Rd , this distribution is absolutely continuous with respect to the Lebesgue measure. Moreover, its time-dependent density ρ(t) satisfies a first-order transport equation and a family of forward and backward Fokker-Planck equations in which the diffusion coefficient can be varied at will. Out of these equations, we can readily derive generative models that satisfy ODEs and SDEs, respectively, and whose densities at time t are given by ρ(t) .
Original caption: Figure 1 : The stochastic interpolant paradigm. Example generative models based on the proposed framework, which connects two densities ρ0 and ρ1 using samples from both.
The design of the time-dependent probability density ρ(t) that bridges between ρ0 and ρ1 is separated from the choice of how to sample it, which can be accomplished with deterministic or stochastic generative models. Left panel: Sampling with a deterministic (ODE) generative model known as the probability flow equation. Right panel: Sampling with a stochastic generative model given by an SDE with a tunable diffusion coefficient.
The probability flow equation and the SDE have different paths, but their time-dependent density ρ(t) is the same.
Moreover, the two equations rely on the same estimates for the velocity and the score.
Interestingly, the drift coefficients entering these ODEs/SDEs are the unique minimizers of quadratic objective functions that can be estimated empirically using data from ρ0 , ρ1 , and N(0,Id) . The resulting least-squares regression problem allows us to estimate the drift coefficients of the ODE/SDEs, which can then be used to push samples from ρ0 onto new samples from ρ1 and vice-versa.
1.2 Main contributions and organization 1.2 主要贡献与组织
SOURCE PDF p.4 · S1.SS2.p1.1
EN
The approach introduced here is a versatile way to build generative models that unifies and extends many existing algorithms. In Sec. 2 , we develop the framework in full generality, where we emphasize the following key contributions:
中
本文提供一种灵活的生成模型构造方式,统一并扩展许多已有算法。第 2 节给出一般框架,关键贡献如下。
SOURCE PDF p.4 · S1.I1.i1.p1.1
EN
We prove that the stochastic interpolant defined in Section 2.1 has a distribution that is absolutely continuous with respect to the Lebesgue measure on Rd , and that its density ρ(t) satisfies a first-order transport equation (TE) as well as a family of forward and backward Fokker-Planck equations (FPEs) with tunable diffusion coefficients.
We show how the stochastic interpolant can be used to learn the drift coefficients that enter the TE and the FPEs.
We characterize these coefficients as the minimizers of simple quadratic objective functions given in Section 2.2 .
We introduce a new objective for the score ∇logρ(t) of the interpolant density, as well as an objective function for learning a denoiser ηz , which we relate to the score.
In Section 2.3 , we derive ordinary and stochastic differential equations associated with the TE and FPEs that lead to deterministic and stochastic generative models.
In Section 2.4 , we show that regressing the drift for SDE-based models controls the likelihood, but that regressing the drift alone is not sufficient for ODE-based models, which must also minimize a Fisher divergence. We show how to optimally tune the diffusion coefficient to maximize the likelihood for SDEs.
In Section 2.5 , we develop a general formula to evaluate the likelihood of SDE-based generative models that serves as a natural counterpart to the continuous change-of-variables formula commonly used to compute the likelihood of ODE-based models. In addition, we give formulas to estimate the cross-entropy.
In Section 3 , we discuss instantiations of the stochastic interpolant method.
In Section 3.4 we first show that interpolants are equivalent to a class of stochastic bridges, but that they avoid the need for Doob’s h -transform, which is generically unknown; we show that this simplifies the construction of a broad class of generative models.
In Section 3.2 , we define the one-sided interpolant , which corresponds to the conventional setting in which the base ρ0 is taken to be a Gaussian.
With a Gaussian base, several aspects of the interpolant simplify, and we detail the corresponding objective functions.
In Section 3.3 , we introduce a mirror interpolant in which the base ρ0 and the target ρ1 are identical.
Finally, in Section 3.4 , we show how the interpolant framework leads to a natural formulation of the Schrödinger bridge problem between two densities.
In Section 4 , we discuss a special case in which the interpolant is spatially linear in x0 and x1 .
In this case, the velocity field can be factorized, which we show in Section 4.1 leads to a simpler learning problem.
We detail specific choices of linear interpolants in Section 4.2 , and in Section 4.3 we illustrate how these choices influence the performance of the resulting generative model, with a particular focus on the role of the latent variable and the diffusion coefficient.
For exposition, we focus on Gaussian mixture densities, for which the drift coefficients can be computed analytically.
We provide the resulting formula in Appendix A .
Finally, in Section 4.4 , we discuss the case of spatially linear one-sided interpolants.
In Section 5 , we formalize the connection between stochastic interpolants and related classes of generative models.
In Section 5.1 , we show that score-based diffusion models can be re-written as one-sided interpolants after a reparameterization of time; we highlight how this approach eliminates singularities that appear when naively compressing score-based diffusion onto a finite-time interval.
In Section 5.2 , we show how interpolants can be used to derive the Bayes-optimal estimator for a denoiser, and we show how this approach can be iterated to create a generative model.
In Section 5.3 , we consider the possibility of rectifying the flow map of a learned generative model.
We show that the rectification procedure does not change the underlying generative model, though it may change the time-dependent density of the interpolant.
In Section 6 , we provide the details of practical algorithms associated with the mathematical results presented above.
In Section 6.1 , we describe how to numerically estimate the objectives given empirical datasets from the base and the target.
In Section 6.2 , we complement this discussion on learning with algorithms for sampling with the ODE or an SDE.
We provide numerical demonstrations in line with these recommendations in Section 7 , and we conclude with some remarks in Section 8 .
中
第 7 节给出遵循这些建议的数值演示,第 8 节作结。
1.3 Related work 1.3 相关工作
Deterministic Transport and Normalizing Flows. 确定性输运与归一化流
SOURCE PDF p.6 · S1.SS3.SSS0.Px1.p1.1
EN
Transport-based sampling and density estimation has its contemporary roots in Gaussianizing data via maximum entropy methods ( Friedman, 1987 ; Chen and Gopinath, 2000 ; Tabak and Vanden-Eijnden, 2010 ; Tabak and Turner, 2013 ) . The change of measure under such transformation is the backbone of normalizing flow models. The first neural network realizations of these methods arose through imposing clever structure on the transformation to make the change of measure tractable in discrete, sequential steps ( Rezende and Mohamed, 2015 ; Dinh et al., 2017 ; Papamakarios et al., 2017 ; Huang et al., 2018 ; Durkan et al., 2019 ) . A continuous time version of this procedure was made possible by viewing the map T=Xt(x) as the solution of an ODE ( Chen et al., 2018 ; Grathwohl et al., 2019 ) , whose parametric drift defining the transport is learned via maximum likelihood estimation. Training this way is intractable at scale, as computing the gradient of the objective via the adjoint method requires simulating an ODE. Various methods have introduced regularization on the path taken between the two densities to make the ODE solves more efficient ( Finlay et al., 2020 ; Onken et al., 2021 ; Tong et al., 2020 ) , but the fundamental difficulty remains. We also work in continuous time; however, our approach allows us to learn the drift without simulation of the dynamics, and can be formulated at sample generation time through either deterministic or stochastic transport.
Stochastic Transport and Score-Based Diffusion Models (SBDMs). 随机输运与基于得分的扩散模型
SOURCE PDF p.7 · S1.SS3.SSS0.Px2.p1.1
EN
Complementary to approaches based on deterministic maps, recent works have realized that connecting a data distribution to a Gaussian density can be viewed as the evolution of an Ornstein-Ulhenbeck (OU) process which gradually degrades samples from the distribution of interest to Gaussian noise ( Sohl-Dickstein et al., 2015 ; Ho et al., 2020 ; Song and Ermon, 2019 ; Song et al., 2021b ) .
The OU process specifies a path in the space of probability densities; this path is simple to traverse in the forward direction by addition of noise, and can be reversed if access to the score of the time-dependent density ∇logρ(t) is available.
This score can be approximated through solution of a least-squares regression problem ( Hyvärinen, 2005 ; Vincent, 2011 ) , and the target can be sampled by reversing the path once the score has been learned.
Interestingly, the resulting forward and backward stochastic processes have an equivalent formulation (at the distribution level) in terms of a deterministic probability flow equation, first noted by Bakry and Émery (1985) ; Otto (2000) ; Kim and Milman (2010) and then applied in Maoutsa et al. (2020) ; Song et al. (2021a) ; Kingma et al. (2021) ; Boffi and Vanden-Eijnden (2023) .
The probability flow formulation is useful for density estimation and cross-entropy calculations, but it is worth noting that the probability flow and the reverse-time SDE will have densities that differ when using an approximate score.
The SBDM framework, as it has been originally presented, has a number of features which are not a priori well motivated, including the dependence on mapping to a normal density, the complicated tuning of the time parameterization and noise scheduling ( Xiao et al., 2022 ; Hoogeboom et al., 2023 ) , and the choice of the underlying stochastic dynamics ( Dockhorn et al., 2022 ; Karras et al., 2022 ) .
Starting with ( Peluchetti, 2022 ) there has been some recent effort ( Liu et al., 2022 ; Liu et al., 2023a ; Somnath et al., 2023 ) to remove the dependence of SBDMs on the OU process via stochastic bridges, which can be used to connect two arbitrary densities in finite time.
As another step in this direction, we observe here that the key idea behind SBDMs – the bridging of two densities via a time-dependent density whose evolution equation is available – can be generalized to a much wider class of processes in a straightforward and computationally accessible manner.
This viewpoint highlights the key property that the construction of the bridge between the two densities is decoupled from the process used to sample it.
中
自 Peluchetti(2022)起,一些研究(Liu 等,2022、2023a;Somnath 等,2023)用有限时间连接任意密度的随机桥,解除 SBDM 对 OU 的依赖。本文进一步指出,SBDM 的核心——借助演化方程已知的时变密度来连接两个密度——可直接且计算可行地推广至更广过程族。此观点突出了“构造桥接”与“采样该桥接所用过程”相互解耦的性质。
Stochastic Interpolants, Rectified Flows, and Flow matching. 随机插值、矫正流与流匹配
SOURCE PDF p.7 · S1.SS3.SSS0.Px4.p1.1
EN
Variants of the stochastic interpolant method presented in Albergo and Vanden-Eijnden (2023) were also presented in Liu et al. (2023b) ; Lipman et al. (2023) . In Liu et al. (2023b) , a linear interpolant was proposed with a focus on straight paths. This was employed as a step toward rectifying the transport paths ( Liu, 2022 ) through a procedure that improves sampling efficiency but introduces a bias. In Lipman et al. (2023) , the interpolant picture was assembled from the perspective of conditional probability paths connecting to a Gaussian, where a noise convolution was used to improve the learning at the cost of biasing the method. Extensions of Lipman et al. (2023) were presented in Tong et al. (2023) that generalize the method beyond the Gaussian base density. In the method proposed here, we introduce an unbiased means to incorporate noise into the process, both via the introduction of a latent variable into the stochastic interpolant and the inclusion of a tunable diffusion coefficient in the associated stochastic generative models. We provide theoretical and practical motivation for the presence of these noise terms.
中
Albergo 与 Vanden-Eijnden(2023)的随机插值方法也有 Liu 等(2023b)、Lipman 等(2023)的变体。前者提出强调直路径的线性插值,进一步通过矫正输运路径(Liu,2022)提高采样效率,但会引入偏差。后者从连接高斯的条件概率路径出发,通过噪声卷积改善学习,代价也是偏差。Tong 等(2023)把其推广至非高斯基分布。本文给出无偏的加噪方式:既在随机插值中加入潜变量,也在相应随机生成模型中加入可调扩散系数,并提供理论和实践动机。
Optimal Transport and Schrödinger Bridges. 最优输运与 Schrödinger 桥
SOURCE PDF p.8 · S1.SS3.SSS0.Px5.p1.1
EN
There is both theoretical and practical interest in minimizing the transport cost of connecting ρ0 and ρ1 . In the case of deterministic maps, this is characterized by the optimal transport problem, and in the case of diffusive maps, by the Schrödinger Bridge problem ( Villani, 2009 ; Chen et al., 2021 ) . Formally, these two problems can be related by viewing the Schrödinger Bridge as an entropy-regularized optimal transport.
Optimal transport has primarily been employed as a means to regularize flow-based methods by imposing either a path length penalty ( Zhang et al., 2018 ; Onken et al., 2021 ; Finlay et al., 2020 ; Tong et al., 2020 ) or structure on the parameterization itself ( Huang et al., 2021 ; Yang and Karniadakis, 2022 ) .
A variety of recent works have formulated the Schrödinger problem in the context of a learnable diffusion ( Bortoli et al., 2021 ; Su et al., 2023 ; Chen et al., 2022b ) .
For the case of Gaussians, recent work has also identified an analytical solution ( Bunne et al., 2022 ) .
In the interpolant framework, ( Albergo and Vanden-Eijnden, 2023 ; Liu et al., 2023b ; Lipman et al., 2023 ; Tong et al., 2023 ) all propose optimal transport extensions to the learning procedure. The method proposed in Liu et al. (2023b) ; Liu (2022) allows one to sequentially lower the transport cost through rectification, at the cost of introducing a bias unless the velocity field is perfectly learned. The method proposed in Albergo and Vanden-Eijnden (2023) is an unbiased framework at the cost of solving an additional optimization problem over the interpolant function. The statement of optimal transport in Lipman et al. (2023) only applies to Gaussians, but is shown to be practically useful in experimental demonstrations.
In the method proposed below, we provide two approaches for optimizing the transport under a stochastic dynamics. Our primary approach, based on the scheme introduced in Albergo and Vanden-Eijnden (2023) , is presented in Section 3.4 . It offers an alternative route to solve the Schrödinger bridge problem under the Benamou-Brenier hydrodynamic formulation of transport by maximizing over the interpolant ( Benamou and Brenier, 2000 ) . However, we stress that this additional optimization step is not necessary in practice, as our approach leads to bias-free generative models for any fixed interpolant. In addition, Section 5.3 discusses an unbiased variant of the rectification scheme proposed in Liu et al. (2023b) .
Inspired by the successes of score-based diffusion, significant recent research effort has been expended to understand the control that can be obtained on suitable distances between the distribution of the generative model and the target data distribution, such as KL , W2 , or TV .
Perhaps the first line of work in this direction is Song et al. (2021a) , which showed that standard score-based diffusion training techniques bound the likelihood of the resulting SDE model.
Importantly, as we show here, the likelihood of the corresponding probability flow is not bounded in general by this technique, as first highlighted in the context of SBDM by Lu et al. (2022) .
Control for SBDM-based techniques was later quantified more rigorously under the assumption of functional inequalities in a discretized setting by Lee et al. (2022) , which were removed by Lee et al. (2023) and Chen et al. (2023) via Girsanov-based techniques.
Most relevant to the PDE-based methods considered here is Chen et al. (2022a) , which applies similar techniques to our own in the SBDM context to obtain sharp guarantees with minimal assumptions.
Throughout, we denote probability density functions as ρ0(x) , ρ1(x) , and ρ(t,x) , with t∈[0,1] and x∈Rd , omitting the function arguments when clear from the context. We proceed similarly for other functions of time and space, such as b(t,x) or I(t,x0,x1) . We use the subscript t to denote the time-dependency of stochastic processes, such as the stochastic interpolant xt or the Wiener process Wt . To specify that the random variable x0 is drawn from the probability distribution with density ρ0 , say, with a slight abuse of notations we use x0∼ρ0 . Similarly, we use N(0,Id) to denote both the density and the distribution of the Gaussian random variable with mean zero and covariance identity. We denote expectation by E , and usually specify the random variables this expectation is taken over. With a slight abuse of terminology, we say that the law of the process xt is ρ(t) if ρ(t) is the density of the probability distribution of xt at time t .
We use standard notation for function spaces: for example, C1([0,1]) is the space of continuously differentiable functions from [0,1] to R , (C2(Rd))d is the space of twice continuously differentiable functions from Rd to Rd , and C0p(Rd) is the space of compactly supported functions from Rd to R that are continuously differentiable p times. Given a function b:[0,1]×Rd→Rd with value b(t,x) at (t,x) , we use b∈C1([0,1];(C2(Rd))d) to indicate that b is continuously differentiable in t for all (t,x)∈[0,1]×Rd and that b(t,⋅) is an element of (C2(Rd))d for all t∈[0,1] .
中
函数空间使用标准记号。例如 C¹([0,1]) 是从 [0,1] 到 R 的连续可微函数空间;(C²(Rᵈ))ᵈ 是从 Rᵈ 到 Rᵈ 的二阶连续可微函数空间;C₀ᵖ(Rᵈ) 是具有紧支撑、p 阶连续可微的实值函数空间。对 b:[0,1]×Rᵈ→Rᵈ,记 b∈C¹([0,1];(C²(Rᵈ))ᵈ),表示 b 关于 t 连续可微,且对每个 t,b(t,·) 关于 x 二阶连续可微。
2 Stochastic interpolant framework 2 随机插值框架
2.1 Definitions and assumptions 2.1 定义与假设
SOURCE PDF p.9 · S2.SS1.p1.1
EN
We begin by defining the stochastic processes that are central to our approach:
The pair (x0,x1) is drawn from a probability measure ν that marginalizes on ρ0 and ρ1 , i.e.
中
端点对 (x₀,x₁) 从概率测度 ν 采样,其两个边缘分别为 ρ₀ 与 ρ₁,即下式。
ν(dx0,Rd)=ρ0(x0)dx0,ν(Rd,dx1)=ρ1(x1)dx1.
SOURCE PDF p.9 · S2.I1.i4.p1.1
EN
z is a Gaussian random variable independent of (x0,x1) , i.e. z∼N(0,Id) and z⊥(x0,x1) .
中
z 是独立于 (x₀,x₁) 的高斯变量,即 z∼N(0,Id)、z⊥(x₀,x₁)。
SOURCE PDF p.10 · S2.SS1.p2.1
EN
Eq. ( 2.2 ) states that I(t,x0,x1) does not move too fast along the way from x0 at t=0 to x1 at t=1 , and as a result does not wander too far from either endpoint – this assumption is made for convenience but is not necessary for most arguments below.
Later, we will find it useful to consider choices for I that are spatially nonlinear, which we show can recover the solution to the Schrödinger bridge problem. Nevertheless, a simple example that serves as a valid I in the sense of Definition 1 is given in ( 1.1 ).
The measure ν allows for a coupling between the two densities ρ0 and ρ1 , which affects the properties of the stochastic interpolant, but a simple choice is to take the product measure ν(dx0,dx1)=ρ0(x0)ρ1(x1)dx0dx1 , in which case x0 and x1 are independent.
In Section 6 we discuss how to design the stochastic interpolant in ( 2.1 ) and state some properties of the corresponding process xt . Examples of stochastic interpolants are also shown in Figure 2 for various choices of I and γ .
Remark 2 (Comparison with Albergo and Vanden-Eijnden (2023) ) . 说明 2(与先前框架比较)
SOURCE PDF p.10 · Thmtheorem2.p1.1
EN
The main difference between the stochastic interpolant defined in ( 2.1 ) and the one originally introduced in Albergo and Vanden-Eijnden (2023) is the inclusion of the latent variable γ(t)z . Many of the results below also hold when we set γ(t)z=0 , but the objective of the present paper is to elucidate the advantages that this additional term provides when neither of the endpoints are Gaussian. We note that we could generalize the construction by making γ(t) a tensor; here we focus on the scalar case for simplicity. Another difference is the possibility to couple ρ0 and ρ1 via ν .
While the latent variable can be drawn from any noise distribution, as we will see, it will be convenient to choose it to be a Gaussian.
Original caption: Figure 2 : Design flexibility. An illustration of how stochastic interpolants can be tailored to specific aims. All examples show one realization of xt with one x0∼ρ0 , one x1∼ρ1 (the flowers at the left and right of the figures), and one z∼N(0,Id) . Top, Upper middle, and lower middle : various interpolants, ranging from direct interpolation with no latent variable (as in Albergo and Vanden-Eijnden (2023) ) to Gaussian encoding-decoding in which the data transitions to pure noise at the mid-point. Bottom : one-sided interpolant, which connects with score-based diffusion methods.
The stochastic interpolant xt in ( 2.1 ) is a continuous-time stochastic process whose realizations are samples from ρ0 at time t=0 and from ρ1 at time t=1 by construction. As a result, it offers a way to bridge ρ0 and ρ1 – we are interested in characterizing the law of xt over the full interval [0,1] , as it will allow us to design generative models. Mathematically, we want to characterize the properties of the time-dependent probability distribution μ(t,dx) such that
∀t∈[0,1]:∫Rdϕ(x)μ(t,dx)=E[ϕ(xt)]for any test functionϕ∈C0∞(Rd),
SOURCE PDF p.10 · S2.SS1.p3.2
EN
where xt is defined in ( 2.1 ) and the expectation is taken independently over (x0,x1)∼ν , and z∼N(0,Id) .
To this end, we will need to use conditional expectations over xt 1 1 1 Formally, in terms of the Dirac delta distribution, we can write E[f(t,x0,x1,z)∣xt=x]=E[δ(x−xt)]E[f(t,x0,x1,z)δ(x−xt)] and in this notation we also have μ(t,x)=E[δ(x−xt) ]. , as described in the following definition.
Given any f:[0,1]×Rd×Rd×Rd→R , its conditional expectation E[f(t,x0,x1,z)∣xt=x] is the function of x such that, for any test function ϕ∈C0∞(Rd) , we have
中
给定任意 f:[0,1]×Rᵈ×Rᵈ×Rᵈ→R,其条件期望 E[f(t,x₀,x₁,z)|xₜ=x] 是关于 x 的函数,对任意测试函数 φ∈C₀∞(Rᵈ) 都满足下式。
where μ(t,dx) is the time-dependent distribution of xt defined by ( 3 ), and the expectation on the right-hand side is taken independently over (x0,x1)∼ν and z∼N(0,Id) with xt given by ( 2.1 ).
Vector-valued functions have conditional expectations that are defined analogously. Note that, with our definition, E[f(t,x0,x1,z)∣xt=x] is a deterministic function of (t,x)∈[0,1]×Rd , not to be confused with the random variable E[f(t,x0,x1,z)∣xt] that can be defined analogously.
Another seemingly more general way to define the stochastic interpolant is via
中
另一种看似更一般的随机插值定义方式如下。
xtd=I(t,x0,x1)+Nt
SOURCE PDF p.11 · Thmtheorem4.p1.2
EN
where N:[0,1]→Rd is a zero-mean Gaussian stochastic process constrained to satisfy Nt=0=Nt=1=0 . As we will show below, our construction only depends on the single-time properties of Nt , which are completely specified by E[NtNtT] . That is, if we take γ(t) in ( 2.1 ) such that E[NtNtT]=γ2(t)Id , then the probability distribution of xt will coincide with that of xt′ defined in ( 2.6 ), xt=dxtd . For example, taking γ(t)=t(1−t) in ( 2.1 ) – a choice we will consider below in Sec. 3.4 – is equivalent to choosing Nt to be a Brownian bridge in ( 2.6 ), i.e. the stochastic process realizable in terms of the Wiener process Wt as Nt=Wt−tW1 . This observation will also help us draw an analogy between our approach and the construction used in score-based diffusion models as well as methods based on stochastic bridges. As we will show in Sec. 3.4 , it is simpler for both analysis and practical implementation to work with the definition ( 2.1 ) for xt .
Original caption: Figure 3 : Algorithmic implementation. A simple overview of suggested implementation strategies.
For deterministic sampling, a single velocity field b can be learned by minimizing the empirical loss in the top row.
For stochastic sampling, the velocity field b , along with the denoiser ηz , can be learned by minimizing the two empirical losses specified in the bottom row.
To sample deterministically, off-the-shelf ODE integrators can be used to integrate the probability flow equation.
To sample stochastically, the listed SDE can be integrated using standard techniques such as the Euler-Maruyama method or the Heun sampler introduced in Karras et al. (2022) .
The time-dependent diffusion coefficient ϵ(t) can be specified after learning to maximize sample quality.
The probability distribution of the stochastic interpolant xt defined in ( 2.1 ) is absolutely continuous with respect to the Lebesgue measure at all times t∈[0,1] and its time-dependent density ρ(t) satisfies ρ(0)=ρ0 , ρ(1)=ρ1 , ρ∈C1([0,1];Cp(Rd)) for any p∈N , and ρ(t,x)>0 for all (t,x)∈[0,1]×Rd . In addition, ρ solves the transport equation
This velocity is in C0([0,1];(Cp(Rd))d) for any p∈N , and such that
中
对任意自然数 p,此速度属于 C⁰([0,1];(Cᵖ(Rᵈ))ᵈ),并满足下列二阶可积条件。
∀t∈[0,1]:∫Rd∣b(t,x)∣2ρ(t,x)dx<∞.
SOURCE PDF p.13 · S2.SS2.p2.1
EN
Note that this theorem means that we can write ( 2.4 ) as
中
此定理意味着,可以将式(2.4)写成下式。
∀t∈[0,1]:∫Rdϕ(x)ρ(t,x)dx=Eϕ(xt)for any test functionϕ∈C0∞(Rd).
SOURCE PDF p.13 · S2.SS2.p2.2
EN
The transport equation ( 2.9 ) can be solved either forward in time from the initial condition ρ(0)=ρ0 , in which case ρ(1)=ρ1 , or backward in time from the final condition ρ(1)=ρ1 , in which case ρ(0)=ρ0 .
The proof of Theorem 6 is given in Appendix B.1 ; it mostly relies on manipulations involving the characteristic function of the stochastic interpolant xt . The transport equation ( 2.9 ) for ρ lead to methods for generative modeling and density estimation, as explained in Secs. 2.3 and 2.5 , provided that we can estimate the velocity b . This velocity is explicitly available only in special cases, for example when ρ0 and ρ1 are both Gaussian mixture densities: this case is treated in Appendix A . In general b must be calculated numerically, which can be performed via empirical risk minimization of a quadratic objective function, as characterized by our next result:
where xt is defined in ( 2.1 ) and the expectation is taken independently over (x0,x1)∼ν and z∼N(0,Id).
中
其中 xₜ 由式(2.1)定义,期望分别对 (x₀,x₁)∼ν 与独立 z∼N(0,Id) 计算。
SOURCE PDF p.13 · S2.SS2.p4.1
EN
The proof of Theorem 7 is given in Appendix B.1 : it relies on the definitions of b in ( 2.10 ), as well as the definition of ρ in ( 2.12 ) and some elementary properties of the conditional expectation. We discuss how to estimate the objective function ( 2.13 ) in practice in Section 6 . Interestingly, we also have access to the score of the probability density, as shown by our next result:
中
定理 7 的证明见附录 B.1,使用式(2.10)对 b 的定义、式(2.12)对 ρ 的定义及条件期望的基本性质。第 6 节讨论实际估计目标(2.13)的方式。我们还可获得概率密度的得分,如下所示。
Theorem 8 (Score) . 定理 8(得分)
SOURCE PDF p.14 · Thmtheorem8.p1.1
EN
The score of the probability density ρ specified in Theorem 6 is in C1([0,1];(Cp(Rd))d) for any p∈N and given by
where xt is defined in ( 2.1 ) and the expectation is taken independently over (x0,x1)∼ν and z∼N(0,Id)
中
其中 xₜ 由式(2.1)定义,期望分别对 (x₀,x₁)∼ν 与独立 z∼N(0,Id) 计算。
SOURCE PDF p.14 · S2.SS2.p5.1
EN
The proof of Theorem 8 is given in Appendix B.1 . We stress that the objective function is well defined despite the fact that γ(0)=γ(1)=0 : see Section 6 for more details about how to evaluate this objective in practice.
will be referred as the denoiser, for reasons that will be made clear in Section 5.2 . By ( 2.14 ), this quantity gives access to the score on t∈(0,1) (where γ(t)>0 ) since, from ( 2.14 ),
The denoiser ηz is useful for numerical realizations.
In particular, the objective in ( 2.19 ) is easier to use than the one in ( 2.16 ) because it does not contain the factor γ−1(t) , which needs careful handling as t approaches 0 and 1.
For any ϵ∈C0([0,1]) with ϵ(t)≥0 for all t∈[0,1] , the probability density ρ specified in Theorem 6 satisfies:
中
对任意 ε∈C⁰([0,1]) 且 ε(t)≥0,定理 6 给定的密度 ρ 满足下列方程。
SOURCE PDF p.14 · S2.I2.i1.p1.1
EN
The forward Fokker-Planck equation
中
前向 Fokker–Planck 方程如下。
∂tρ+∇⋅(bFρ)=ϵ(t)Δρ,ρ(0)=ρ0,
SOURCE PDF p.14 · S2.I2.i1.p1.2
EN
where we defined the forward drift
中
其中前向漂移定义如下。
bF(t,x)=b(t,x)+ϵ(t)s(t,x).
SOURCE PDF p.14 · S2.I2.i1.p1.3
EN
Equation ( 2.20 ) is well-posed when solved forward in time from t=0 to t=1 , and its solution for the initial condition ρ(t=0)=ρ0 satisfies ρ(t=1)=ρ1 .
In Section 2.3 we will use the results of this theorem to design generative models based on forward and backward stochastic differential equations.
Note that we can replace the diffusion coefficient ϵ(t) by a positive semi-definite tensor; also note that if we define ρB(tB,x)=ρ(1−tB,x) , the reversed FPE ( 2.22 ) can be written as
which is now well-posed forward in (reversed) time tB .
So as to have only one definition of time t , it is more convenient to work with ( 2.22 ).
中
这样,方程在反转时间 tB 下向前求解便是适定的。为统一时间 t 的定义,下文仍用式(2.22)更方便。
SOURCE PDF p.15 · S2.SS2.p8.1
EN
Let us make a few remarks about the statements made so far:
中
对以上结论补充若干说明。
Remark 11 . 说明 11
SOURCE PDF p.15 · Thmtheorem11.p1.1
EN
If we set γ(t)=0 in xt (i.e, if we remove the latent variable), the stochastic interpolant ( 2.1 ) reduces to the one originally considered in Albergo and Vanden-Eijnden (2023) . In this setup, the results above formally stand except that we cannot guarantee the spatial regularity of b(t,x) and s(t,x) , since it relies on the presence of the latent variable (as shown in the proof of Theorem 6 ). Hence, we expect the introduction of the latent variable γ(t)z to help for generative modeling, where the solution to the corresponding ODEs/SDEs will be better behaved, and for statistical approximation, since the targets b and s will be more regular. We will see in Section 6 that it also gives us much greater flexibility in the way we can bridge ρ0 and ρ1 , which will enable us to design generative models with appealing properties.
We will see in Section 2.4 that the forward and backward FPE in ( 2.20 ) and ( 2.22 ) are more robust than the TE in ( 2.9 ) against approximation errors in the velocity b and the score s , which has practical implications for generative models based on these equations.
中
第 2.4 节将说明,相比输运方程(2.9),前后向 FPE(2.20)、(2.22)对速度 b、得分 s 的近似误差更稳健,这影响相应生成模型的实践表现。
Remark 13 . 说明 13
SOURCE PDF p.15 · Thmtheorem13.p1.1
EN
We could also obtain b(t,⋅) at any t∈[0,1] by minimizing
Using the time-integrated versions of these objectives given in ( 2.13 ) and ( 2.16 ) is more convenient numerically as it allows one to parameterize b^ and s^ globally for (t,x)∈[0,1]×Rd .
Learning this velocity and the score separately may be useful in practice.
中
分别学习这个速度与得分,在实践中可能有益。
Remark 15 . 说明 15
SOURCE PDF p.16 · Thmtheorem15.p1.1
EN
The objectives in ( 2.13 ) and ( 2.16 ) (as well as the ones in( 2.19 ) and ( 2.29 )) are amenable to empirical estimation if we have samples (x0,x1)∼ν , since in that case we can generate samples of xt=I(t,x0,x1)+γ(t)z at any time t∈[0,1] . We will use this feature in the numerical experiments presented below.
Since s is the score of ρ , an alternative objective to estimate it is ( Hyvärinen, 2005 )
中
由于 s 是 ρ 的得分,还可用 Hyvärinen(2005)的下列目标估计。
∫01E(∣s^(t,xt)∣2+2∇⋅s^(t,xt))dt.
SOURCE PDF p.16 · Thmtheorem16.p1.2
EN
The derivation of ( 2.30 ) is standard:
for the reader’s convenience we recall it at the end of Appendix B.1 . The advantage of using ( 2.16 ) over ( 2.30 ) is that it does not require us to take the divergence of s^ .
By definition, the score s(t,x)=∇logρ(t,x) is a gradient field. As a result, if we model s^(t,x)=−∇E^(t,x) , we can turn ( 2.16 ) into an objective function for E^(t,x)
中
按定义,s(t,x)=∇logρ(t,x) 是梯度场。因此若设 ŝ(t,x)=−∇Ê(t,x),便可将式(2.16)转为下列关于 Ê 的目标。
This objective is invariant to constant shifts in E^ and should therefore be minimized under some constraint, such as minxE^(t,x)=0 for all t∈[0,1] .
The minimizer of ( 2.31 ) provides us with an energy-based model (EBM) ( LeCun et al., 2007 ; Song and Kingma, 2021 ) that can in principle be used to sample the PDF of the stochastic interpolant, ρ(t,x) , at any fixed t∈[0,1] using e.g. Langevin dynamics.
We will not exploit this possibility here, and instead rely on generative models to sample ρ(t,x) , as discussed next in Sec. 2.3 .
中
目标对 Ê 加常数不变,因此应在某种约束下极小化,例如对任意 t∈[0,1] 令 minₓÊ(t,x)=0。式(2.31)的极小化解给出能量模型 EBM(LeCun 等,2007;Song 与 Kingma,2021),原则上可在固定 t 用 Langevin 动力学等方法采样插值密度 ρ(t,x)。本文不继续利用此途径,而采用第 2.3 节的生成模型采样。
2.3 Generative models 2.3 生成模型
SOURCE PDF p.16 · S2.SS3.p1.1
EN
Our next result is a direct consequence of Theorem 6 , and it shows how to design generative models using the stochastic processes associated with the TE ( 2.9 ), the forward FPE ( 2.20 ), and the backward FPE ( 2.22 ):
At any time t∈[0,1] , the law of the stochastic interpolant xt coincides with the law of the three processes Xt , XtF , and XtB , respectively defined as:
solved forward in time from the initial data Zt=0F∼ρ1 independent of W .
中
该方程从独立于 W 的初值 Z₀F∼ρ₁ 向前求解。
SOURCE PDF p.17 · S2.SS3.p2.1
EN
To avoid repeated applications of the transformation t↦1−t , it is convenient to work with ( 2.34 ) directly using the reversed Itô calculus rules stated in the following lemma, which follows from the results in Anderson (1982) and is proven in Appendix B.2 :
where EBx denotes expectation conditioned on the event Xt=1B=x .
中
其中 EBˣ 表示在 X₁B=x 的条件下计算的期望。
SOURCE PDF p.17 · S2.SS3.p3.1
EN
The relevance of Corollary 18 for generative modeling is clear. Assuming, for example, that ρ0 is a simple density that can be sampled easily (e.g. a Gaussian or a Gaussian mixture density), we can use the ODE ( 2.32 ) or the SDE ( 2.33 ) to push these samples forward in time and generate samples from a complex target density ρ1 . In Section 2.5 , we will show how to use the ODE ( 2.32 ) or the reverse SDE ( 2.34 ) to estimate ρ1 at any x∈Rd assuming that we can evaluate ρ0 at any x∈Rd . We will also show how similar ideas can be used to estimate the cross entropy between ρ0 and ρ1 .
We stress that the stochastic interpolant xt , the solution Xt to the ODE ( 2.32 ), and the solutions XtF and XtB of the forward and backward SDEs ( 2.33 ) and ( 2.34 ) are different stochastic processes, but their laws all coincide with ρ(t) at any time t∈[0,1] . This is all that matters when applying these processes as generative models.
However, the fact that these processes are different has implications for the accuracy of the numerical integration used to sample from them at any t as well as for the propagation of statistical errors (see also the next remark).
Generative models based on solutions Xt to the ODE ( 2.32 ), solutions XtF to the forward SDE ( 2.33 ), and solutions XtB to the backward SDE ( 2.34 ) will typically involve drifts b , bF , and bB that are, in practice, imperfectly estimated via minimization of ( 2.13 ) and ( 2.16 ) over finite datasets. It is important to estimate how this statistical estimation error propagates to errors in sample quality, and how the propagation of error depends on the generative model used, which is the object of our next section.
In this section, we demonstrate that jointly minimizing the objective functions ( 2.29 ) and ( 2.16 ) (or the losses ( 2.13 ) and ( 2.16 )) controls the KL -divergence from the target density ρ1 to the model density ρ^1 . We focus on bounds involving the score, but we note that analogous results hold for learning the denoiser ηz(t,x) defined in ( 2.17 ) by the relation ηz(t,x)=−s(t,x)/γ(t) . The derivation is based on a simple and exact characterization of the KL -divergence between two transport equations or two Fokker-Planck equations with different drifts. Remarkably, we find that the presence of a diffusive term determines whether or not it is sufficient to learn the drift to control KL . This can be seen as a generalization of the result for score-based diffusion models described in Song et al. (2021a) to arbitrary generative models described by ODEs or SDEs. The proofs of the statements in this section are provided in Appendix B.3 . These proofs rely on manipulation of the time derivative of the KL divergence, which is a practice that has proven useful elsewhere in the literature ( Vempala and Wibisono, 2019 ) .
We first characterize the KL divergence between two densities transported by two different continuity equations but initialized from the same initial condition:
中
先刻画从相同初值出发、由两个不同连续性方程输运的密度之间的 KL 散度。
Lemma 21 . 引理 21
SOURCE PDF p.18 · Thmtheorem21.p1.2
EN
Let ρ0:Rd→R≥0 denote a fixed base probability density function. Given two velocity fields b,b^∈C0([0,1],(C1(Rd))d) , let the time-dependent densities ρ:[0,1]×Rd→R≥0 and ρ^:[0,1]×Rd→R≥0 denote the solutions to the transport equations
Lemma 21 shows that it is insufficient in general to match b^ with b to obtain control on the KL divergence. The essence of the problem is that a small error in b^−b does not ensure control on the Fisher divergence FI(ρ(t)∥ρ^(t))=∫Rd∣∇logρ(t,x)−∇logρ^(t,x)∣2ρ(t,x)dx , which is necessary due to the presence of (∇logρ^−∇logρ) in ( 2.39 ).
In the next lemma, we study the case for two Fokker-Planck equations, and highlight that the situation becomes quite different.
中
下一个引理研究两个 FPE,情形将明显不同。
Lemma 22 . 引理 22
SOURCE PDF p.19 · Thmtheorem22.p1.2
EN
Let ρ0:Rd→R≥0 denote a fixed base probability density function. Given two velocity fields bF,b^F∈C0([0,1],(C1(Rd))d) , let the time-dependent densities ρ:[0,1]×Rd→R≥0 and ρ^:[0,1]×Rd→R≥0 denote the solutions to the Fokker-Planck equations
Lemma 22 shows that, unlike for transport equations, the KL -divergence between the solutions of two Fokker-Planck equations is controlled by the error in their drifts. The diffusive term in each Fokker-Planck equation provides an additional negative term in the KL -divergence, which eliminates the need for explicit control on the Fisher divergence.
Putting the above results together, we can state the following result, which demonstrates that the losses ( 2.13 ) and ( 2.16 ) control the likelihood for learned approximations to the FPE ( 2.20 ).
中
综合可得下列结果:损失(2.13)、(2.16)控制 FPE(2.20)学习近似的似然。
Theorem 23 . 定理 23
SOURCE PDF p.19 · Thmtheorem23.p1.1
EN
Let ρ denote the solution of the Fokker-Planck equation ( 2.20 ) with ϵ(t)=ϵ>0 . Given two velocity fields b^,s^∈C0([0,1],(C1(Rd))d) , define
where Lv[v^] is the objective function defined in ( 2.29 ).
中
其中 Lv[v̂] 为式(2.29)的目标。
Remark 24 (Generative modeling) . 说明 24(生成建模)
SOURCE PDF p.20 · Thmtheorem24.p1.1
EN
The above results have practical ramifications for generative modeling. In particular, they show that minimizing either the losses ( 2.13 ) and ( 2.16 ) or ( 2.29 ) and ( 2.16 ) maximize the likelihood of the stochastic generative model
so that ϵ∗>1 if the score is learned to higher accuracy than b^ and ϵ∗<1 in the opposite situation. Note that ( 2.49 ) suggests to take ϵ=0 if b^ is learned perfectly but s^ is not, and send ϵ→∞ in the opposite situation. While taking ϵ=0 is achievable in practice and leads to the ODE ( 2.32 ), taking ϵ→∞ is not, as increasing ϵ increases the expense of the numerical integration in ( 2.33 ) and ( 2.34 ).
2.5 Density estimation and cross-entropy calculation 2.5 密度估计与交叉熵计算
SOURCE PDF p.20 · S2.SS5.p1.1
EN
It is well-known that the solution of the TE ( 2.9 ) can be expressed in terms of the solution to the probability flow ODE ( 2.32 ); for completeness, we now recall this fact:
中
众所周知,TE(2.9)的解可用概率流 ODE(2.32)的解表示。为完整起见,回顾如下。
Lemma 25 . 引理 25
SOURCE PDF p.20 · Thmtheorem25.p1.1
EN
Given the velocity field b^∈C0([0,1],(C1(Rd))d) , let ρ^ satisfy the transport equation
中
给定 b̂∈C⁰([0,1],(C¹(Rᵈ))ᵈ),令 ρ̂ 满足下列输运方程。
∂tρ^+∇⋅(b^ρ^)=0,
SOURCE PDF p.20 · Thmtheorem25.p1.2
EN
and let Xs,t(x) solve the ODE
中
令 Xs,t(x) 满足下列 ODE。
dtdXs,t(x)=b(t,Xs,t(x)),Xs,s(x)=x,t,s∈[0,1]
SOURCE PDF p.20 · Thmtheorem25.p1.3
EN
Then, given the PDFs ρ0 and ρ1 :
中
则对给定概率密度 ρ₀、ρ₁,有下列结果。
SOURCE PDF p.20 · S2.I5.i1.p1.1
EN
The solution to ( 2.50 ) for the initial condition ρ^(0)=ρ0 is given at any time t∈[0,1] by
中
对初值 ρ̂(0)=ρ₀,式(2.50)在任意 t∈[0,1] 的解如下。
ρ^(t,x)=exp(−∫0t∇⋅b(τ,Xt,τ(x))dτ)ρ0(Xt,0(x))
SOURCE PDF p.20 · S2.I5.i2.p1.1
EN
The solution to ( 2.50 ) for the final condition ρ^(1)=ρ1 is given at any time t∈[0,1] by
中
对终值 ρ̂(1)=ρ₁,式(2.50)在任意 t∈[0,1] 的解如下。
ρ^(t,x)=exp(∫t1∇⋅b(τ,Xt,τ(x))dτ)ρ1(Xt,1(x))
SOURCE PDF p.21 · S2.SS5.p2.1
EN
The proof of Lemma 25 can be found in Appendix B.4 . Interestingly, we can obtain a similar result for the solution of the forward and backward FPEs in ( 2.20 ) and ( 2.22 ). These results make use of auxiliary forward and backward SDEs in which the roles of the forward and backward drifts are switched:
where EFx denotes expectation on the path of YtF conditional on Yt=0F=x .
中
其中 EFˣ 表示给定 Y₀F=x 后,对 YF 路径的期望。
SOURCE PDF p.21 · S2.SS5.p3.1
EN
The proof of Theorem 26 can be found in Appendix B.4 . Note that to generate data from either ρ^F(1) or ρ^B(0) assuming that we can sample exactly the PDF at the other end, i.e. ρ0 and ρ1 respectively, we would still rely on the equivalent of the forward and backward SDE in ( 2.33 ) and ( 2.34 ), now used with the approximate drifts in ( 2.54 ), i.e.
If we solve ( 2.61 ) forward in time from initial data X^t=0F∼ρ0 , we then have X^t=1F∼ρ^F(1) where ρ^F is the solution to the forward FPE ( 2.57 ). Similarly If we solve ( 2.62 ) backward in time from final data X^t=1B∼ρ1 , we then have X^t=0B∼ρ^B(0) where ρ^B is the solution to the backward FPE ( 2.59 ).
The results of Lemma 25 and Theorem 26 can be used to test the quality of samples generated by either the ODE ( 2.32 ) or the forward and backward SDEs ( 2.33 ) and ( 2.34 ). In particular, the following two results are direct consequences of Lemma 25 and Theorem 26 , respectively:
where EBx1 denotes an expectation over YtB conditioned on the event Yt=1B=x1 , and E1 denotes an expectation over x1∼ρ1 .
Similarly, the cross-entropy of ρ^B(0) relative to ρ0 is given by
If in ( 2.63 ), ( 2.64 ), ( 2.65 ), and ( 2.66 ) we approximate the expectations E0 and E1 over ρ0 and ρ1 by empirical expectations over the available data, these equations allow us to cross-validate different approximations of b^ and s^ , as well as to compare the cross-entropies of densities evolved by the TE ( 2.50 ) with those of the forward and backward FPEs ( 2.57 ) and ( 2.59 ).
When using ( 2.65 ) and ( 2.66 ) in practice, taking the log of the expectations EBx1 and EFx0 may create difficulties, such as when using Hutchinson’s trace estimator to compute the divergence of bF or bB , which will introduce a bias. One way to remove this bias is to use Jensen’s inequality, which leads to the upper bounds
However, these bounds are not sharp in general – in fact, using calculations similar to the one presented in the proof of Theorem 28 , we can derive exact expressions that capture precisely what is lost when applying Jensen’s inequality:
Unfortunately, since ∇logρ^F=s^ and ∇logρ^B=s^ in general due to approximation errors, we do not know how to estimate the extra terms on the right-hand side of ( 2.69 ) and ( 2.70 ). One possibility is to use s^ as a proxy for ∇logρ^F and ∇logρ^B , which may be useful in practice, but this approximation is uncontrolled in general.
In this section, we instantiate the stochastic interpolant framework discussed in Section 2 .
中
本节给出第 2 节随机插值框架的具体实例。
3.1 Diffusive interpolants 3.1 扩散插值
SOURCE PDF p.23 · S3.SS1.p1.1
EN
Recently, there has been a surge of interest in the construction of generative models through diffusive bridge processes ( Peluchetti, 2022 ; Liu et al., 2022 ; Somnath et al., 2023 ) . In this section, we connect these approaches with our own, highlighting that stochastic interpolants allow us to manipulate certain bridge processes in a simpler and more direct manner. We also show that this perspective leads to a generative process that samples any target density ρ1 by pushing a point mass at any x0∈Rd through an SDE. We begin by introducing a new kind of interpolant:
(x0,x1)∼ν with ν satisfying ( 2.3 ) in Definition 1 ;
中
(x0,x1)∼ν,其中 ν 满足定义 1 中的条件(2.3);
SOURCE PDF p.24 · S3.I1.i3.p1.1
EN
a(t)∈C2([0,1]) with a(0)>0 and a(t)≥0 for all t∈(0,1] , and;
中
a(t)∈C2([0,1]),且 a(0)>0,对一切 t∈(0,1] 均有 a(t)≥0;
SOURCE PDF p.24 · S3.I1.i4.p1.1
EN
Bt is a standard Brownian bridge process, independent of x0 and x1 .
中
Bt 为标准布朗桥过程,独立于 x0 和 x1。
SOURCE PDF p.24 · S3.SS1.p2.1
EN
Pathwise, ( 3.1 ) is different from the stochastic interpolant introduced in Definition 1 : in particular, xtd is continuous but not differentiable in time. At the same time, since Bt is a Gaussian process with mean zero and variance EBt2=t(1−t) , ( 3.1 ) has the same single-time statistics and time-dependent density ρ(t,x) as the stochastic interpolant ( 2.1 ) if we set γ(t)=2a(t)t(1−t) , i.e.
As a result, ( 3.1 ) and ( 3.2 ) lead to the same generative models. Technically, it is easier to work with ( 3.2 ) than with ( 3.1 ), because it avoids the use of Itô calculus, and enables direct sampling of xt using samples from ρ0 , ρ1 , and N(0,Id) .
However, ( 3.1 ) sheds light on some interesting properties of the generative models based on ( 3.2 ), i.e. stochastic interpolants with γ(t)=2a(t)t(1−t) .
To see why, we now re-derive the transport equation for the density ρ(t,x) shared by ( 3.1 ) and ( 3.2 ) using the relation ( 3.1 ) using Fourier analysis.
For simplicity, we focus on the case where a(t) is constant in time, i.e. we set a(t)=a>0 in ( 3.1 ).
To begin, recall that the Brownian Bridge Bt can be expressed in terms of the Wiener process Wt as Bt=Wt−tWt=1 .
Moreover, it satisfies the SDE obtained by conditioning on Bt=1=0 via Doob’s h -transform ( Doob, 1984 ) :
Moreover, since by definition of their probability density we have Eeik⋅xtd=Eeik⋅xt=∫Rdeik⋅xρ(t,x)dx , we can deduce from ( 3.6 ) that ρ(t) satisfies
As a result, u−s=b and ( 3.7 ) can also be written as the TE ( 2.9 ) using Δρ=∇⋅(sρ) .
中
因此,原文写作 u−s=b;利用 Δρ=∇⋅(sρ),式(3.7)也可改写为输运方程(2.9)。【译注:式(3.7)的扩散项为 aΔρ;一般 a 下移项所得输运速度应为 u−as,原文简式对应 a=1。】
Conditional sampling. 条件采样
SOURCE PDF p.25 · S3.SS1.SSS0.Px1.p1.1
EN
Remarkably, the drift u defined in ( 3.8 ) remains non-singular for all t∈[0,1] (including t=0 ) even if ρ0 is replaced by a point mass at x0 ; by contrast, both b and s are singular at t=0 in this case.
Hence, the SDE associated with the FPE ( 3.7 ) provides us with a generative model that samples ρ1 from a base measure concentrated at a single x0 (i.e. such that the density ρ0 is replaced by a point mass measure at x=x0 ).
We formalize this result in the following theorem:
中
值得注意的是,即便将 ρ0 换成 x0 处的点质量,式(3.8)定义的漂移 u 在整个 t∈[0,1](包括 t=0)上仍无奇性;相比之下,此时 b 和 s 在 t=0 都是奇异的。因此,与 Fokker–Planck 方程(3.7)对应的随机微分方程构成了一个生成模型:它能从集中于单点 x0 的基测度(即用 x=x0 处的点质量测度代替密度 ρ0)出发,对 ρ1 采样。下述定理给出正式表述:
Theorem 31 . 定理 31
SOURCE PDF p.25 · Thmtheorem31.p1.1
EN
Assume that I(t,x0,x1)=x0 for t∈[0,δ] with some δ∈(0,1] .
Given any a>0 , let
where xt is given by ( 3.2 ) and where Ex1,z(⋅∣xt=x) denotes an expectation over x1∼ρ1⊥z∼N(0,Id) conditioned on xt=x with x0∈Rd fixed.
Then ud(⋅,⋅,x0)∈C0([0,1];(Cp(Rd))d) for any p∈N and x0∈Rd .
Moreover, the solutions to the forward SDE
Note that the additional assumption we make on I(t,x0,x1) is consistent with the requirements in Definition 1 and Assumption 5 : this additional assumption is made for simplicity and can probably be relaxed to ∂tI(t=0,x0,x1)=0 .
The proof of Theorem 31 is given in Appendix B.5 .
It relies on the calculations that led to ( 3.8 ), along with the observation that at t=0 and x=x0 ,
which are both well-defined.
To put the result in Theorem ( 31 ) in perspective, observe that no probability flow ODE with b∈C0([0,1];(Cp(Rd))d) can achieve the same feat as the diffusion in ( 3.11 ).
This is because the solutions of such an ODE are unique, and therefore can only map x0 onto a single point at time t=1 .
Moreover, ud(t,x,x0) is the unique minimizer of the objective function
3.2 One-sided interpolants for Gaussian ρ 0 3.2 高斯基分布的单侧插值
SOURCE PDF p.26 · S3.SS2.p1.1
EN
A common choice of base density for generative modeling in the absence of prior information is to choose ρ0=N(0,Id) .
In this setting, we can group the effect of the latent variable z with x0 .
This leads to a simpler type of stochastic interpolant that, in particular, will enables us to instantiate score-based diffusion within our general framework (see Section 3.4 ).
中
没有先验信息时,生成建模常取 ρ0=N(0,Id) 作为基密度。此时可以将潜变量 z 的作用与 x0 合并,得到一种形式更简单的随机插值;特别地,可以由此在统一框架内导出基于得分的扩散模型(见第 3.4 节)。
By construction, xt=0os=z∼N(0,Id) and xt=1os=x1∼ρ1 , so that the distribution of the stochastic process xtos bridges N(0,Id) and ρ1 . It is easy to see that the one-sided stochastic interpolant defined in ( 3.14 ) will have the same density as the stochastic interpolant defined in ( 2.1 ) if we set I(t,x0,x1)=Jt(x1)+δ(t)x0 and take δ2(t)+γ2(t)=α2(t) . Restricting to this case, our earlier theoretical results apply where the velocity field b defined in ( 2.10 ) becomes
中
按构造,xt=0os=z∼N(0,Id),而 xt=1os=x1∼ρ1,因此过程的分布连接了标准正态分布与 ρ1。容易看出,若令 I(t,x0,x1)=Jt(x1)+δ(t)x0,并取 δ2(t)+γ2(t)=α2(t),则式(3.14)的单侧随机插值与式(2.1)的随机插值密度相同。限定到这种情况,前述理论结果仍然适用,式(2.10)所定义的速度场 b 变为
In the expression above, xtos is given by ( 3.14 ) and the expectation E is taken independently over x1∼ρ1 and z∼N(0,Id) . Similarly, the score is given by
The construction above can easily be generalized to the case where ρ0=N(0,C0) with C0 a positive-definite matrix. Without loss of generality, we can then assume that C0 can be represented as C0=σ0σ0T where σ0 is a lower-triangular matrix and replace ( 3.14 )
with J and α satisfying the conditions listed in Definition 32 and where z∼N(0,Id) .
中
其中 J 与 α 满足定义 32 的条件,z∼N(0,Id)。
3.3 Mirror interpolants 3.3 镜像插值
SOURCE PDF p.27 · S3.SS3.p1.1
EN
Another practically relevant setting is when the base and the target are the same density ρ1 . In this setting we can define a stochastic interpolant as:
By construction, xt=0mir=xt=1mir=x1∼ρ1 , so that the distribution of the stochastic process xtmir bridges ρ1 to itself.
Note that a valid choice is K(t,x1)=α(t)x1 with α(0)=α(1)=1 (e.g. α(t)=1 ): in this case, mirror interpolants are related to denoisers, as will be discussed in Section 5.2 .
In the expression above, xtmir is given by ( 3.24 ) and the expectation E is taken independently over x1∼ρ1 and z∼N(0,Id) . Similarly, the score is given by
Since the score s also depends on ηz , this denoiser is the only quantity that needs to be learned.
中
由于得分 s 也取决于 ηz,只需要学习这一个去噪器。
Remark 38 . 说明 38
SOURCE PDF p.28 · Thmtheorem38.p1.1
EN
If ρ1 is only accessible via empirical samples, mirror interpolants do not enable calculation of the functional form of ρ1 .
A notable exception is if we set K(t,x1)=0 for t∈[t1,t2] with 0<t1≤t2<1 : in that case, xtmir=γ(t)z∼γ(t)N(0,Id) for t∈[t1,t2] , which gives us a reference density for comparison.
In this setup, mirror interpolants essentially reduce to two one-sided interpolants glued together (with the second one time-reversed), or in fact a regular stochastic interpolant when ρ0=ρ1 and we set I(t,x0,x1)=0 for t∈[t1,t2] .
3.4 Stochastic interpolants and Schrödinger bridges 3.4 随机插值与 Schrödinger 桥
SOURCE PDF p.28 · S3.SS4.p1.3
EN
The stochastic interpolant framework can also be used to solve the Schrödinger bridge problem. For background material on this problem, we refer the reader to Léonard (2014) and the references therein. Consistent with the overall viewpoint of this paper, we consider the hydrodynamic formulation of the Schrödinger bridge problem, in which the goal is to obtain a pair (ρ,u) , that solves the following optimization problem for a fixed ϵ>0
Under our assumptions on ρ0 and ρ1 listed in Assumption 5 , it is known (see e.g. Proposition 4.1 in Léonard (2014) ) that ( 3.34 ) has a unique minimizer (ρ,u=∇λ) , with (ρ,λ) classical solutions of the Euler-Lagrange equations:
We stress that the actual form of the map T is not important for the arguments below.
Assumption 39 can be used to show the existence of a stochastic interpolant whose density solves ( 3.35 ):
中
强调一下,以下论证不需要知道映射 T 的具体形式。利用假设 39 可以证明,存在一个随机插值,其密度恰好求解式(3.35):
Lemma 40 . 引理 40
SOURCE PDF p.29 · Thmtheorem40.p1.1
EN
If Assumption ( 39 ) holds, then the solution ρ(t) to ( 3.35 ) is the density of the stochastic interpolant
中
若假设 39 成立,则式(3.35)的解 ρ(t) 是下列随机插值的密度:
xt=T(t,α(t)T−1(0,x0)+β(t)T−1(1,x1))+γ(t)z,
SOURCE PDF p.29 · Thmtheorem40.p1.2
EN
as long as α2(t)+β2(t)+γ2(t)=1 .
中
只要 α2(t)+β2(t)+γ2(t)=1 即可。
SOURCE PDF p.29 · S3.SS4.p3.1
EN
The proof is given in Appendix B.6 : ( 3.37 ) corresponds to choosing I(t,x0,x1)=T(t,α(t)T−1(t,x0)+β(t)T−1(t,x1)) in ( 2.1 ). With the help of Lemma 40 , we can establish the following result, which shows how to optimize over the function I to solve the problem ( 3.34 )
中
证明见附录 B.6:式(3.37)相当于在式(2.1)中选取 I(t,x0,x1)=T(t,α(t)T−1(t,x0)+β(t)T−1(t,x1))。借助引理 40 可以得到下面的结果,它说明如何通过优化函数 I 来求解问题(3.34)。
Theorem 41 . 定理 41
SOURCE PDF p.29 · Thmtheorem41.p1.1
EN
Pick some γ:[0,1]→[0,1) such that γ(0)=γ(1)=0 , γ(t)>0 for t∈(0,1) , γ∈C2((0,1)) and γ2∈C1([0,1]) , and let x^t=I^(t,x0,x1)+γ(t)z , with x0∼ρ0 , x1∼ρ1 , and z∼N(0,Id) all independent. Consider the max-min problem over I^∈C1([0,1],(C1(Rd×Rd))d) and u^∈C0([0,1],(C1(Rd))d) :
If Assumption 39 holds, then all the optimizers (I,u) of ( 3.38 ) are such that the density of the associated xt=I(t,x0,x1)+γ(t)z is the solution ρ to ( 3.35 ). Moreover, u=∇λ , with λ the solution to ( 3.35 ).
The proof is also given in Appendix B.6 . Note that if we fix I^ , the velocity u minimizing this objective is the forward drift bF defined in ( 2.21 ). Note also that if we set ϵ→0 , the minimizing velocity field is b as defined in ( 2.10 ), and the max-min problem formally reduces to solving the optimal transport problem. In this case, Assumption 39 becomes more stringent, as we need to assume that that system ( 3.35 ) with ϵ=0 (i.e. in the absence of the diffusive terms) has a classical solution. Theorem ( 41 ) gives a practical route towards solving the Schrödinger bridge problem with stochastic interpolants, and we leave the numerical investigation of this formulation to future work.
In this section, we study the stochastic interpolants that are obtained when we specialize the function I used in ( 2.1 ) to be linear in both x0 and x1 , i.e. we consider
中
本节考察式(2.1)中的函数 I 对 x0 和 x1 都取线性形式时得到的随机插值,即考虑
xtlin=α(t)x0+β(t)x1+γ(t)z,
SOURCE PDF p.30 · S4.p1.3
EN
where (x0,x1)∼ν and z∼N(0,Id) with (x0,x1)⊥z , and α,β,γ2∈C2([0,1]) satisfy the conditions
中
其中 (x0,x1)∼ν,z∼N(0,Id),且 (x0,x1) 与 z 独立;函数 α,β,γ2∈C2([0,1]) 满足下列条件:
Despite its simplicity, this setup offers significant design flexibility. The discussion highlights how the presence of the latent variable γ(t)z can simplify the structure of the intermediate density ρ(t) .
Since our ultimate aim is to investigate the properties of practical generative models built upon ODEs or SDEs, we will also study the effect of time-dependent diffusion coefficient ϵ(t) , which controls the amplitude of the noise in a generative SDE.
Throughout, to build intuition, we choose ρ0 and ρ1 to be Gaussian mixture densities, for which the drift coefficients can be computed analytically (see Appendix A ). This enables us to visualize the effect of each choice on the resulting generative models.
When the stochastic interpolant is of the form ( 4.1 ), the velocity b and the score s defined in ( 2.10 ) and ( 2.14 ) can both be expressed in terms of the following three conditional expectations (the third is the denoiser already defined in ( 2.17 )):
中
若随机插值具有式(4.1)的形式,则式(2.10)和(2.14)中的速度 b 与得分 s 都可用以下三个条件期望表示,其中第三个就是式(2.17)已经定义的去噪器:
The second relation above holds for t∈(0,1) (i.e. when γ(t)=0 ).
Moreover, because E(xt∣xt=x)=x by definition, the functions η0 , η1 , and ηz satisfy
This enables us to reduce computational expense: given two of the η ’s, the third can always be calculated via ( 4.5 ).
Finally, it is easy to see that the functions η0 , η1 , and ηz are the unique minimizers of the objectives
中
这样可以降低计算开销:给定三个 η 中的任意两个,即可由式(4.5)求出第三个。最后不难看出,函数 η0、η1 与 ηz 是下列各目标的唯一极小化解:
Original caption: Table 1 : Spatially linear interpolants. A table suggesting various linear interpolants.
In general, this paper describes methods for arbitrary ρ0 and ρ1 .
In Section 4.4 , we detail linear interpolants for one-sided generation, where ρ0 is a Gaussian and the latent variable z can be absorbed into x0 .
Later, in Section 5.1 , we discuss how to recast score-based diffusion models (SBDM) as linear one-sided interpolants, which leads to the expressions given in the table when using a variance-preserving parameterization.
Linear mirror interpolants, where ρ0=ρ1 are equal, are defined by ( 3.24 ) with the choice K(t,x1)=α(t)x1 .
It is useful to assume that both ρ0 and ρ1 have been scaled to have zero mean and identity covariance (which can be achieved in practice, for example, by an affine transformation of the data). In this case, the time-dependent mean and covariance of ( 4.1 ) are given by
Preserving the identity covariance at all times therefore leads to the constraint
中
因此,若要求所有时刻都保持单位协方差,便得到约束
∀t∈[0,1]:α2(t)+β2(t)+γ2(t)=1.
SOURCE PDF p.32 · S4.SS2.p1.3
EN
This choice is also sensible if ρ0 and ρ1 have covariances that are not the identity but are on a similar scale. In this case we no longer need to enforce ( 4.8 ) exactly, and could, for example, take three functions whose sum of squares is of order one. For definiteness, in the sequel we discuss possible choices that satisfy ( 4.8 ) exactly, with the understanding that the corresponding functions α , β , and γ could all be slightly modified without significantly affecting the conclusions.
This choice was advocated in Liu et al. (2023b) , without the inclusion of the latent variable ( γ=0 ). Another possibility that gives more leeway is to pick any γ:[0,1]→[0,1] and set
中
Liu 等(2023b)提倡采用这一选择,但不加入潜变量(γ=0)。另一种自由度更大的方式是任取 γ:[0,1]→[0,1],并令
α(t)=1−γ2(t)cos(21πt),β(t)=1−γ2(t)sin(21πt).
SOURCE PDF p.32 · S4.SS2.SSS0.Px1.p1.3
EN
With γ=0 , this was the choice preferred in Albergo and Vanden-Eijnden (2023) . The PDF ρ(t) obtained with the choices ( 4.9 ) and ( 4.10 ) when ρ0 and ρ1 are both Gaussian mixture densities are shown in Figure 4 . As this example shows, when ρ0 and ρ1 have distinct complex features, these would be duplicated in ρ(t) at intermediate times if not for the smoothing effect of the latent variable; this behavior is seen in Figure 4 , where it is most prominent in the first row with γ(t)=0 . From a statistical learning perspective, eliminating the formation of spurious features will simplify the estimation of the velocity field b , which becomes smoother as the formation of such features is suppressed.
Original caption: Figure 4 : The effect of γ(t)z on ρ(t) . A visualization of how the choice of γ(t) changes the density ρ(t) of xtlin=α(t)x0+β(t)x1+γ(t)z when ρ0 and ρ1 are Gaussian mixture densities with two modes and three modes, respectively.
The first row depicts γ(t)=0 , which reduces to the stochastic interpolant developed in Albergo and Vanden-Eijnden (2023) . This case forms a valid transport between ρ0 and ρ1 , but produces spurious intermediate modes in ρ(t) .
The second row depicts the choice of γ(t)=2t(1−t) . In this case, the spurious modes are partially damped by the addition of the latent variable, leading to a simpler ρ(t) .
The final row shows the Gaussian encoding-decoding, which smoothly encodes ρ0 into a standard normal distribution on the time interval [0,1/2) , which is then decoded into ρ1 on the interval (1/2,1] . In this case, no intermediate modes form in ρ(t) : the two modes in ρ0 collide to form N(0,1) at t=21 , which then spreads into the three modes of ρ1 .
A visualization of individual sample trajectories from deterministic and stochastic generative models based on ODEs and SDEs whose solutions have density ρ(t) can be seen in Figure 5 .
Original caption: Figure 5 : The effect of ϵ on sample trajectories. A visualization of how the choice of ϵ affects the sample trajectories obtained by solving the ODE ( 2.32 ) or the forward SDE ( 2.33 ). The set-up is the same as in Figure 4 : ρ0 and ρ1 are taken to be the same Gaussian mixture densities, and the analytical expressions for b and s are used.
In the three panels in each column the value of γ is the same, and each panel shows trajectories with different ϵ .
Three specific trajectories from the same three initial conditions drawn from ρ0 are also highlighted in white in every panel.
As ϵ increases but γ stays the same, the density ρ(t) is unchanged, but the individual trajectories become increasingly stochastic.
While all choices are equivalent with exact b and s , Theorem 23 shows that nonzero values of ϵ provide control on the likelihood in terms of the error in b and s when they are approximate.
A useful limiting case is to devolve the data from ρ0 completely into noise by the halfway point t=21 and to reconstruct ρ1 completely from noise starting from t=21 . One choice that allows us to do so while satisfying ( 4.8 ) is
where 1A(t) is the indicator function of A , i.e. 1A(t)=1 if t∈A and 1A(t)=0 otherwise.
With this choice, it is easy to see that xt=21=γ(21)z∼N(0,γ2(21)) , which seamlessly glues together two interpolants: one between ρ0 and a standard Gaussian, and one between a standard Gaussian and ρ1 .
Even though the choice ( 4.11 ) encodes ρ0 into pure noise on the interval [0,21] , which is then decoded into ρ1 on the interval [21,1] (and vice-versa when proceeding backwards in time), the resulting velocity b still defines a single continuity equation that maps ρ0 to ρ1 on [0,1] .
This is most clearly seen at the level of the probability flow ( 2.32 ), since its solution Xt is a bijection between the initial and final conditions Xt=0 and Xt=1 , but a similar pairing can also be observed in the solutions to the forward and backward SDEs ( 2.33 ) and ( 2.34 ), whose solutions at time t=1 or t=0 remain correlated with the initial or final condition used.
This allows for a more direct means of image-to-image translation with diffusions when compared to the recent approach described in Su et al. (2023) .
The choice ( 4.11 ) is depicted in the final row of Figure 4 , where no spurious modes form at all; individual sample trajectories of the deterministic and stochastic generative models based on ODEs and SDEs whose solutions have this ρ(t) as density can be seen in the panels forming the third column in Figure 5 .
We note that the elimination of spurious intermediate modes can also be implemented by use of a data-adapted coupling ν(dx0,dx1) , as considered in Albergo et al. (2023) .
Unsurprisingly, it is necessary to have γ(t)>0 for the choice ( 4.11 ): for γ(t)=0 , the density ρ(t) collapses to a Dirac measure at t=21 . This consideration highlights that the inclusion of the latent variable γ(t)z matters even for the deterministic dynamics ( 2.32 ), and its presence is distinct from the stochasticity inherent to the SDEs ( 2.33 ) and ( 2.34 ).
4.3 Impact of the latent variable γ ( t ) z and the diffusion coefficient ϵ ( t ) 4.3 潜变量 γz 与扩散 ε 的影响
SOURCE PDF p.34 · S4.SS3.p1.1
EN
The stochastic interpolant framework enables us to discern the independent roles of the latent variable γ(t)z and the diffusion coefficient ϵ(t) we use in a generative model.
As shown in Theorem 6 , the presence of the latent variable γ(t)z for γ=0 smooths both the density ρ(t) and the velocity b defined in ( 2.10 ) spatially.
This provides a computational advantage at sample generation time because it simplifies the required numerical integration of ( 2.32 ), ( 2.33 ), and ( 2.34 ).
Intuitively, this is because the density ρ(t) of xt can be represented exactly as the density that would be obtained with γ(t)=0 convolved with N(0,γ2(t)Id) at each t∈(0,1) . A comparison between the density ρ(t) obtained with trigonometric interpolants with γ(t)=0 and γ(t)=2t(1−t) can be seen in the first and second row of Figure 4 .
By contrast, the diffusion coefficient ϵ(t) leaves the density ρ(t) unchanged, and only affects the way we sample it.
In particular, the probability flow ODE ( 2.32 ) results in a map that pushes every Xt=0=x0 onto a single Xt=1=x1 and vice-versa.
The forward SDE ( 2.33 ) maps each Xt=0F=x0 onto an ensemble Xt=1F whose spread is controlled by the amplitude of ϵ(t) (and similarly for the reversed SDE ( 2.34 ) that maps each Xt=1B=x1 onto an ensemble Xt=0B ).
This ensemble is not distributed according to ρ1 for finite ϵ(t) – like with the ODE, we need to sample initial conditions from ρ0 to get solutions at time t=1 that sample ρ1 – but its density converges towards ρ1 as ϵ(t)→∞ .
These features are illustrated in Figure 5 .
Another potential advantage of including the latent variable γ(t)z is its impact on the velocity b at the end points. Since xt=0=x0 and xt=1=x1 , it is easy to see that the velocity b of the linear interpolant xt defined in ( 4.1 ) satisfies
中
加入潜变量 γ(t)z 的另一潜在优势,是它对端点处速度 b 的影响。由于 xt=0=x0 且 xt=1=x1,容易看出,(4.1)定义的线性插值 xt 的速度 b 满足
where s0=∇logρ0 and s1=∇logρ1 . If γ∈C2([0,1]) , because γ(0)=γ(1)=0 , the terms involving the scores s0 and s1 in these expressions vanish. Choosing γ2∈C1([0,1]) but γ not differentiable at t=0 or t=1 leaves open the possibility that the limits remain nonzero. For example, if we take one of the choices discussed in Section 3.1 , i.e.
As a result, the choice ( 4.13 ) ensures that the velocity b encodes information about the score of the densities ρ0 and ρ1 at the end points.
We stress however that, while the choice of γ(t) given in ( 4.13 ) is appealing because of its nontrivial influence on the velocity b at the endpoints, the user is free to explore a variety of alternatives.
We present some examples in Table 2 , specifying the differentiability of γ at t=0 and t=1 . The function γ(t) specified in ( 4.13 ) is the only featured case for which the contribution from the score is non-vanishing in the velocity b at the endpoints. In Section 7 , we illustrate on numerical examples that there are tradeoffs between different choices of γ , which might be directly related to this fact.
When using the ODE as a generative model, the score is only felt through b , whereas it is explicit when using the SDE as a generative model.
中
因此,选择(4.13)确保速度 b 在端点编码了密度 ρ0、ρ1 的得分信息。不过我们强调,尽管(4.13)的 γ(t) 因对端点速度有非平凡影响而很有吸引力,使用者仍可探索多种其他选择。表 2 给出一些例子,并注明 γ 在 t=0 和 t=1 的可微性。在所列情形中,只有(4.13)的 γ(t) 使端点速度 b 中的得分贡献不消失。第 7 节通过数值例子说明,不同 γ 选择之间存在折中,这可能与上述事实直接相关。采用 ODE 生成模型时,得分仅通过 b 起作用;采用 SDE 生成模型时,得分则显式出现。
Original caption: Table 2 : Differentiability of γ(t)z . A characterization of the possible choices of γ(t) with respect to their differentiability. The column specified by σ^(t) is sum of sigmoid functions, made compact by the notation σ^(t)=σ(f(t−21)+1)−σ(f(t−21)−1)−σ(−2f+1)+σ(−2f−1) , where σ(t)=et/(1+et) and f is a scaling factor.
where α2,β∈C2([0,1]) and α(0)=β(1)=1 , α(1)=β(0)=0 , and α(t)>0 for all t∈[0,1) .
The velocity b and the score s defined in ( 2.10 ) and ( 2.14 ) can now be expressed as
中
其中 α2,β∈C2([0,1]),α(0)=β(1)=1、α(1)=β(0)=0,且对所有 t∈[0,1) 有 α(t)>0。此时,(2.10)和(2.14)定义的速度 b 与得分 s 可表示为
Note that, by definition of the conditional expectation, ηzos and η1os satisfy
中
由条件期望定义,ηzos 与 η1os 满足
∀(t,x)∈[0,1]×Rd:α(t)ηzos(t,x)+β(t)η1os(t,x)=x.
SOURCE PDF p.36 · S4.SS4.p1.5
EN
As a result, only one of them needs to be estimated.
For example, we can express η1os as a function of ηzos for all t such that β(t)=0 , and use the result to express the velocity ( 4.16 ) as
Assuming that β(t)=0 for all t∈(0,1] , this formula only needs to be supplemented at t=0 with
中
若对所有 t∈(0,1] 都有 β(t)=0,则只需在 t=0 为该公式补充
b(0,x)=α˙(0)x+β˙(0)E[x1]
SOURCE PDF p.36 · S4.SS4.p1.7
EN
which follows from ( 4.16 ) since xt=0os,lin=z .
Later in Section 5.2 we will show that using the velocity b in ( 4.19 ) to solve the probability flow ODE ( 2.32 ) can be seen as using a denoiser to construct a generative model.
中
这由(4.16)和 xt=0os,lin=z 得出。稍后的 5.2 节将说明,用(4.19)中的速度 b 求解概率流 ODE(2.32),可视为使用去噪器构造生成模型。
SOURCE PDF p.36 · S4.SS4.p2.2
EN
Finally note that ηz and/or η1 can be estimated using the following two objective functions, respectively:
In this section, we discuss connections between the stochastic interpolant framework and the score-based diffusion method ( Song et al., 2021b ) , the stochastic localization framework ( Eldan, 2013 ; El Alaoui and Montanari, 2022 ; Montanari, 2023 ) ), denoising methods ( Simoncelli and Adelson, 1996 ; Hyvärinen, 1999 ; Kadkhodaie and Simoncelli, 2021 ; Ho et al., 2020 ) , and the rectified flow method ( Liu et al., 2023b ) .
5.1 Score-based diffusion models and stochastic localization 5.1 得分扩散与随机局部化
SOURCE PDF p.37 · S5.SS1.p1.1
EN
Score-based diffusion models (SBDM) are based on variants of the Ornstein-Uhlenbeck process
中
基于得分的扩散模型(SBDM)以 Ornstein–Uhlenbeck 过程的变体为基础:
dZτ=−Zτdt+2dWτ,Zτ=0∼ρ1,
SOURCE PDF p.37 · S5.SS1.p1.2
EN
which has the property that the marginal density of its solution at time τ converges to a standard normal as τ tends towards infinity. By learning the score of the density of Zτ , we can write the associated backward SDE for ( 5.1 ), which can then be used as a generative model – this backwards SDE is also the one that is used in the stochastic localization process, see Montanari (2023) .
To see the connection with stochastic interpolants, notice that the solution of ( 5.1 ) from the initial condition Zτ=0=x1∼ρ1 can be written exactly as
中
为看清与随机插值的联系,注意(5.1)从初态 Zτ=0=x1∼ρ1 出发的解可精确写成
Zτ=x1e−τ+2∫0τe−τ+sdWs.
SOURCE PDF p.37 · S5.SS1.p2.2
EN
As a result, the law of Zτ conditioned on Zτ=0=x1 is given by
中
因此,在条件 Zτ=0=x1 下,Zτ 的分布为
Zτ∼N(x1e−τ,(1−e−2τ)Id),
SOURCE PDF p.37 · S5.SS1.p2.3
EN
for any time τ∈[0,∞) . This is also the law of the process
中
对任意时刻 τ∈[0,∞) 都成立。这也是下列过程的分布:
yτ=x1e−τ+1−e−2τz,z∼N(0,Id),τ∈[0,∞).
SOURCE PDF p.37 · S5.SS1.p2.4
EN
If we let x1∼ρ1 with x1⊥z , the process yτ is similar to a one-sided stochastic interpolant, except
the density of yτ only converges to N(0,Id) as τ→∞ ; by contrast, the one-sided interpolants we introduced in Section 3.2 converge on the finite interval [0,1] .
In SBDM, this is handled by capping the evolution of Zτ to a finite time interval [0,T] with T<∞ , and then by using the backward SDE associated with ( 5.1 ) restricted to [0,T] .
However, this introduces a bias that is not present with one-sided stochastic interpolants, because the final condition used for the backwards SDE in SBDM is drawn from N(0,Id) even though the density of the process ( 5.1 ) is not Gaussian at time T .
We can, however, turn ( 5.4 ) into a one-sided linear stochastic interpolant by defining t=e−τ and by choosing α(t) and β(t) in ( 4.15 ) to have a specific form. More precisely, evaluating ( 5.4 ) at τ=−logt ,
where ηzos and η1os are defined in ( 4.17 ).
This expression shows that the velocity b used in the probability flow ODE ( 2.32 ) is well-behaved at all times, including at t=1 where α˙(t) is singular.
The same is true for the drift bF(t,x)=b(t,x)+ϵ(t)s(t,x) used in the forward SDE ( 2.33 ), regardless of the choice of ϵ∈C0([0,1]) with ϵ(t)≥0 .
This shows that casting SBDM into a one-sided linear stochastic interpolant ( 4.15 ) allows the construction of unbiased generative models that operate on t∈[0,1] .
This comes at no extra computational cost, since only one of the two functions defined in ( 4.17 ) needs to be estimated, which is akin to estimating the score in SBDM.
It is worth comparing the above procedure to an equivalent change of time at the level of the diffusion process ( 5.1 ), which we now show leads to singular terms that pose numerical and analytical difficulties.
Indeed, if we define ZtB=Zτ=−logt , from ( 5.1 ) we obtain
to be solved backwards in time.
Because of the factor t−1 , this SDE cannot easily be solved until t=0 , which corresponds to τ=∞ in the original ( 5.1 ).
For the same reason, the forward SDE associated with ( 5.7 )
cannot be solved from t=0 , where formally Zt=0F=dZt=0B=Zτ=∞∼N(0,Id) .
This means it cannot be used as a generative model unless we start from some t>0 , which introduces a bias.
Importantly, this problem does not arise with the stochastic interpolant framework, because the construction of the density ρ(t) connecting ρ0 and ρ1 is handled separately from the construction of the process that generates samples from ρ(t) .
By contrast, SBDM combines these two operations into one, leading to the singularity at t=0 in the coefficients in ( 5.7 ) and ( 5.8 ).
To emphasize the last point made above, we stress that there is no contradiction between having a singular drift and diffusion coefficient in ( 5.8 ), and being able to write a nonsingular SDE with stochastic interpolants. To see why, notice that the stochastic interpolant tells us that we can change the diffusion coefficient in ( 5.8 ) to any nonsingular ϵ∈C0([0,1]) with ϵ(t)≥0 and replace this SDE with
This SDE has the property that Xt=1F∼ρ1 if Xt=0F∼ρ0 , and its drift is also nonsingular at t=0 and given precisely by ( 5.6 ). Indeed, using the constraint ( 4.18 ), which here reads x=1−t2ηzos(t,x)+tη1os(t,x)≡−(1−t2)s(t,x)+tη1os(t,x) , it is easy to see that
while trivially E(x1∣xt=0os,lin)=E[x1] since xt=0os,lin=z . This expression is commonly used in denoising methods ( Simoncelli and Adelson, 1996 ; Kadkhodaie and Simoncelli, 2021 ) , and it is Stein’s unbiased risk estimator (SURE) for x1 given the noisy information in xtos,lin Stein (1981) .
Rather than considering the conditional expectation of x1 , we can consider an analogous quantity for xsos,lin for any s∈[0,1] ; this leads to the following result.
( 5.13 ) follows from inserting ( 5.11 ) in the expression for xsos,lin and taking the conditional expectation using the definition of η1os and ηzos in ( 4.17 ). E(xsos,lin∣xt=0os,lin)=α(s)xt=0os,lin+β(s)E[x1] follows from xt=0os,lin=z together with ( 5.11 ).
∎
At this stage, equations ( 5.11 ) and ( 5.13 ) cannot be used as generative models: the random variable E(x1∣xtos,lin) is not a sample of ρ1 , and the random variable E(xsos,lin∣xtos,lin) is not a sample from ρ(s) , the density of xsos,lin .
However, the following result shows that if we iterate upon formula ( 5.13 ) by taking infinitesimal steps, we obtain a generative model consistent with the probability flow equation ( 2.32 ) associated with xtos,lin .
Then, ( 5.14 ) is a consistent integration scheme for the probability flow equation ( 2.32 ) associated with the velocity field ( 4.16 ) expressed as in ( 4.19 ).
That is, if N,j→∞ with j/N→t∈[0,1] , then Xjden→Xt where
In particular, if z∼N(0,Id) , then XNden→x1∼ρ1 in this limit.
中
特别地,若 z∼N(0,Id),则在这一极限下,XNden→x1∼ρ1。
SOURCE PDF p.39 · S5.SS2.p4.1
EN
The proof of this theorem is given in Appendix B.7 , and proceeds by Taylor expansion of the right-hand side of ( 5.14 ).
中
该定理的证明见附录 B.7,方法是对(5.14)右端作 Taylor 展开。
5.3 Rectified flows 5.3 矫正流
SOURCE PDF p.39 · S5.SS3.p1.1
EN
We now discuss how stochastic interpolants can be rectified according to the procedure proposed in Liu et al. (2023b) .
Suppose that we have perfectly learned the velocity field b in the probability flow equation ( 2.32 ) for a given stochastic interpolant.
Denote by Xt(x) the solution to this ODE with the initial condition Xt=0(x)=x , i.e.
中
下面讨论如何按 Liu 等(2023b)提出的过程,对随机插值进行整流。假设对某个给定随机插值,我们已完美学得概率流方程(2.32)中的速度场 b。以 Xt(x) 表示该 ODE 在初始条件 Xt=0(x)=x 下的解,即
dtdXt(x)=b(t,Xt(x)),Xt=0(x)=x.
SOURCE PDF p.40 · S5.SS3.p1.2
EN
We can use the map Xt=1:Rd→Rd to define a new stochastic interpolant
中
可以利用映射 Xt=1:Rd→Rd 定义一个新的随机插值:
xtrec=α(t)x0+β(t)Xt=1(x0),
SOURCE PDF p.40 · S5.SS3.p1.3
EN
where α2,β∈C2([0,1]) satisfy α(0)=β(1)=1 , α(1)=β(0)w=0 , and α(t)>0 for all t∈[0,1) .
Clearly, we then have xt=0rec=x0∼ρ0 since Xt=0(x0)=x0 and xt=1rec=Xt=1(x0)∼ρ1 by definition of the probability flow equation.
We can define a new probability flow equation associated with the velocity field
where xtrec is given in ( 5.17 ) and the expectation is now only on x0∼ρ0 . Our next result show that the probability flow equation associated with the velocity field ( 5.18 ) has straight line solutions, but ultimately it leads to a generative model that is identical to the one based on ( 5.16 ).
To phrase this result, we first make an assumption on the invertibility of xtrec .
This is equivalent to requiring that the determinant of the Jacobian of M(t,x) is nonzero for all (t,x)∈[0,1]×Rd ; put differently, Assumption 46 requires that the Jacobian of Xt=1(x) never has eigenvalues precisely equal to −α(t)/β(t) , which is generic.
Under this assumption, we state the following theorem.
Consider the probability flow equation associated with ( 5.18 ),
中
考虑与式(5.18)关联的概率流方程:
dtdXtrec(x)=brec(t,Xtrec(x)),Xt=0rec(x)=x.
SOURCE PDF p.40 · Thmtheorem47.p1.2
EN
Then, all solutions are such that Xt=1rec(x0)∼ρ1 if x0∼ρ0 . In addition,
if Assumption ( 46 ) holds, the velocity field defined in ( 5.18 ) reduces to
and the solution to the probability flow ODE ( 5.21 ) is simply
中
而概率流 ODE(5.21)的解就是:
Xtrec(x)=α(t)x+β(t)Xt=1(x).
SOURCE PDF p.40 · S5.SS3.p3.1
EN
The proof is given in Appendix B.8 .
中
证明见附录 B.8。
SOURCE PDF p.40 · S5.SS3.p4.1
EN
Theorem 47 implies that Xtrec(x) is a simpler flow than Xt(x) , but we stress that they give the same map, Xt=1rec=Xt=1 . In particular, Xtrec(x) reduces to a straight line between x and Xt=1(x) for α(t)=1−t and β(t)=t .
We also note that the approach can be used to learn a single-step map, since ( 5.22 ) and N(t=0,x)=x give
The discussion above highlights the fact that a probability flow equation can have straight line solutions and lead to a map that exactly pushes ρ0 onto ρ1 but is not the optimal transport map.
That is, straight line solutions is a necessary condition for optimal transport, but it is not sufficient.
The map is unaffected by the rectification procedure because we do not impose that the velocity brec(t,x) be a gradient field.
If we do impose this structure by setting brec(t,x)=∇ϕ(t,x) for some ϕ:Rd→R , then Xt=1rec=Xt=1 .
As shown in Liu (2022) , iterating over this procedure eventually gives the optimal transport map.
That is, implemented over gradient fields and iterated infinitely, rectification computes Brenier’s polar decomposition of the map ( Brenier, 1991 ) .
Recent work has introduced the notion of consistency models ( Song et al., 2023 ) , which distill a velocity field learned via score-based diffusion into a single-step map.
Section 5.1 and the previous discussion provide an alternative perspective on consistency models, and show how they may be computed in the framework of stochastic interpolants via rectification.
The methods described in the previous sections have efficient numerical realizations.
Here, we detail algorithms and practical recommendations for an implementation.
These suggestions can be split into two complementary tasks: learning the drift coefficients, and sampling with an ODE or an SDE.
As described in Section 2.2 , there are a variety of algorithmic choices that can be made when learning the drift coefficients in ( 2.9 ), ( 2.20 ), and ( 2.22 ). While all choices lead to exact generative models in the absence of numerical and statistical errors, in practice, the presence of these errors ensures that different choices lead to different generative models, some of which may perform better for specific applications. Here, we describe the various realizations explicitly.
Deterministic generative modeling: Learning b versus learning v and s . 确定性建模:学习 b 或学习 v、s
SOURCE PDF p.41 · S6.SS1.SSS0.Px1.p1.1
EN
Recall from Section 2.2 that the drift b of the transport equation ( 2.9 ) can be written as b(t,x)=v(t,x)−γ(t)γ˙(t)s(t,x) . This raises the practical question of whether it would be better to learn an estimate b^ of b by minimizing the empirical risk
中
回顾第 2.2 节,输运方程(2.9)的漂移 b 可以写成 b(t,x)=v(t,x)−γ(t)γ˙(t)s(t,x)。这引出一个实践问题:是通过最小化下列经验风险,直接学习 b 的估计 b^ 更好,
Original algorithm: Algorithm 1 Learning b with arbitrary ρ0 and ρ1 . Input: Batch size N , interpolant function I(t,x0,x1) , coupling ν(dx0,dx1) to sample x0,x1 , noise function γ(t) , initial parameters θb , gradient-based optimization algorithm to minimize Lb defined in ( 2.13 ), number of gradient steps Ng . Returns : An estimate b^ of b . for j=1,…,Ng do Draw N samples (ti,x0i,x1i,zi)∼Unif([0,1])×ν×N(0,1) , for i=1,…,N . Construct samples xti=I(ti,x0i,x1i)+γ(ti)zi , for i=1,…,N . Take gradient step with respect to Lb(θb,{xti}i=1N) . Return: b^ .
中
输入:批量 N、插值函数 I、端点耦合 ν、噪声 γ、初始参数 θb、最小化式(2.13)的梯度优化器、梯度步数 Ng。输出 b 的估计 b̂。对 j=1,…,Ng:抽取 N 组独立样本 (tᵢ,x₀ⁱ,x₁ⁱ,zⁱ)∼Unif([0,1])×ν×N(0,1);构造 xₜⁱ=I(tᵢ,x₀ⁱ,x₁ⁱ)+γ(tᵢ)zⁱ;对批数据的 Lb 做一步梯度更新。最后返回 b̂。
Original caption: Algorithm 1 Learning b with arbitrary ρ0 and ρ1 .
中
算法 1:任意端点密度下学习 b。
SOURCE PDF p.41 · S6.SS1.SSS0.Px1.p2.1
EN
and construct the estimate b^(t,x)=v^(t,x)−γ(t)γ˙(t)s^(t,x) . Above, xtii=I(ti,x0i,x1i)+γ(ti)zi , and N denotes the number of samples ti , x0i , and x1i . If the practitioner is interested in a deterministic generative model (for example, to exploit adaptive integration or exact likelihood computation), learning the estimate b^ directly only requires learning a single model, and hence will typically lead to greater efficiency. This recommendation is captured in Algorithm 1 . If both stochastic and deterministic generative models are of interest, it is necessary to learn two models for most choices of the interpolant; we discuss more suggestions for stochastic case below.
In practice, the losses for b ( 2.13 ) and s ( 2.16 ) can become high-variance near the endpoints t=0 and t=1 due to the presence of the singular term 1/γ(t) and the (potentially) singular term γ˙(t) . This issue can be eliminated by using antithetic sampling, which we found necessary for stable training of objectives involving γ−1(t) .
To show why, we consider the loss ( 2.16 ) for s , but an analogous calculation can be performed for the loss ( 2.13 ) for b or ( 2.19 ) for ηz (even though it is not necessary for this last quantity).
We first observe that, by definition of xt and by Taylor expansion, as t→0 or t→1
中
在实践中,由于存在奇异项 1/γ(t) 以及可能奇异的项 γ˙(t),b 的损失(2.13)和 s 的损失(2.16)在端点 t=0、t=1 附近可能具有很高的方差。采用对偶采样可以消除这一问题;我们发现,对于含 γ−1(t) 的目标,对偶采样是实现稳定训练所必需的。为说明原因,我们考虑 s 的损失(2.16);对 b 的损失(2.13)或 ηz 的损失(2.19)也可以进行类似计算,尽管最后一个量并不需要这种处理。首先,由 xt 的定义及 Taylor 展开可见,当 t→0 或 t→1 时,
Even though the conditional mean of the first term at the right-hand side is finite in the limit as t→0 or t→1 , its variance diverges. By contrast, let xt+=I(t,x0,x1)+γ(t)z and xt−=I(t,x0,x1)−γ(t)z with x0,x1 , and z fixed. Then,
so that both the conditional mean and variance are finite in the limit as t→0 or t→1 despite the singularity of 1/γ(t) .
In practice, this can be implemented by using xt+ and xt− for every draw of x0,x1 , and z in the empirical discretization of the population loss.
Original algorithm: Algorithm 2 Learning ηz with arbitrary ρ0 and ρ1 . Input: Batch size N , interpolant function I(t,x0,x1) , a coupling ν(dx0,dx1) to sample x0,x1 , noise function γ(t) , initial parameters θηz , gradient-based optimization algorithm to minimize Lηz defined in ( 2.19 ), number of gradient steps Ng . Returns : An estimate η^z of ηz . for j=1,…,Ng do Draw N samples (ti,x0i,x1i,zi)∼Unif([0,1])×ν×N(0,1) , for i=1,…,N . Construct samples xti=I(ti,x0i,x1i)+γ(ti)zi , for i=1,…,N . Take gradient step with respect to Lηz(θηz,{xti}i=1N) . Return: η^z .
Original caption: Algorithm 2 Learning ηz with arbitrary ρ0 and ρ1 .
中
算法 2:任意端点密度下学习 ηz。
Learning the score s versus learning a denoiser η z . 学习得分 s 或去噪器 ηz
SOURCE PDF p.43 · S6.SS1.SSS0.Px3.p1.1
EN
When learning s , an alternative to antithetic sampling is to consider learning the denoiser ηz defined in ( 2.17 ), which is related to the score by a factor of γ . Note that the objective function for the denoiser in ( 2.19 ) is well behaved for all t∈[0,1] , and can be thought of as a generalization of the DDPM loss introduced in Ho et al. (2020) . The empirical risk associated with this loss reads
中
学习 s 时,对偶采样的一种替代方法,是学习式(2.17)定义的去噪器 ηz;它与得分之间相差一个 γ 因子。注意,式(2.19)中去噪器的目标函数对所有 t∈[0,1] 都具有良好的性质,可视为 Ho 等(2020)提出的 DDPM 损失的推广。与这一损失对应的经验风险为:
A detailed procedure for learning the denoiser ηz , e.g. for its use in an SDE-based generative model is given in Algorithm 2 .
For the case of one-sided spatially-linear interpolants, the procedure becomes particularly simple, which is highlighted in Algorithm 3 .
Original algorithm: Algorithm 3 Learning ηzos with Gaussian ρ0 . Input: Batch size N , interpolant function xtos,lin , a coupling ν(dx0,dx1) to sample z,x1 , initial parameters θηzos , gradient-based optimization algorithm to minimize Lηzos defined in ( 2.19 ), number of gradient steps Ng . Returns : An estimate η^zos of ηzos . for j=1,…,Ng do Draw N samples (ti,zi,x1i)∼Unif([0,1])×ν , for i=1,…,N . Construct samples xti=α(ti)z+β(ti)x1i , for i=1,…,N . Take gradient step w.r.t Lηzos(θηzos,{xti}i=1N) . Return: η^zos .
中
输入:批量 N、空间线性单侧插值、用于采样 z 与 x₁ 的耦合 ν、单侧去噪器初始参数、相应梯度优化器与 Ng。输出单侧去噪器估计。每步采样 N 组 (tᵢ,zⁱ,x₁ⁱ)∼Unif([0,1])×ν,构造 xₜⁱ=α(tᵢ)zⁱ+β(tᵢ)x₁ⁱ,对单侧去噪损失做梯度更新,返回估计。译注:原算法构造式中的 z 未写批下标,按该步采样的 zⁱ 理解。
Original caption: Algorithm 3 Learning ηzos with Gaussian ρ0 .
中
算法 3:高斯基分布下学习单侧去噪器。
6.2 Sampling 6.2 采样
SOURCE PDF p.43 · S6.SS2.p1.1
EN
We now discuss several practical aspects of sampling generative models based on stochastic interpolants.
These are intimately related to the choice of objects that are learned, as well as to the specific interpolant used to build a path between ρ0 and ρ1 .
A general algorithm for sampling models built on either ordinary or stochastic differential equations is presented in Algorithm 4 .
Original algorithm: Algorithm 4 Sampling general stochastic interpolants. Input: Number of samples n , timestep Δt , drift estimates b^ and η^z , initial time t0 , final time tf , noise function γ(t) , diffusion coefficient ϵ(t) , SDE or ODE timestepper TakeStep . Returns : {x^1(i)}i=1n , a batch of model samples. Initialize Set time t=t0 . Draw initial conditions x^t0(i)∼ρ0 for i=1,…,n . Construct s^(t,x)=−η^z(t,x)/γ(t) . Construct b^F(t,x)=b^(t,x)+ϵ(t)s^(t,x) . // Reduces to b^ for ϵ(t)=0 (ODE). while t<tf do Propagate x^t+Δt(i)=TakeStep(t,x^t(i),bF,ϵ,Δt) for i=1,…,n . // ODE or SDE integrator. Update t=t+Δt . Return : {x^(i)}i=1n .
Original caption: Algorithm 4 Sampling general stochastic interpolants.
中
算法 4:一般随机插值的采样。
Using the denoiser η z instead of the score s . 以 ηz 替代得分 s
SOURCE PDF p.44 · S6.SS2.SSS0.Px1.p1.1
EN
We remarked in Section 6.1 that learning the denoiser ηz is more numerically stable than learning the score s directly.
We note that while the objective for ηz is well-behaved for all t∈[0,1] , the resulting drifts can become singular at t=0 and t=1 when using s(t,x)=−ηz(t,x)/γ(t) .
There are several ways to avoid this singularity in practice.
One method is to choose a time-varying ϵ(t) that vanishes in a small interval around the endpoints t=0 and t=1 , which avoids this numerical instability.
An alternative option is to integrate the SDE up to a final time tf with tf<1 , and then to perform a step of denoising using ( 5.13 ).
We use this approach in Section 7 below when sampling the SDE.
A denoiser is all you need for spatially-linear one-sided interpolants. 空间线性单侧插值只需去噪器
Original algorithm: Algorithm 5 Sampling spatially-linear one-sided interpolants with Gaussian ρ0 . Input: Number of samples n , timestep Δt , denoiser estimate η^z , initial time t0 , final time tf , noise function γ(t) , diffusion coefficient ϵ(t) , interpolant functions α(t) and β(t) , SDE or ODE timestepper TakeStep . Returns : {x^1(i)}i=1n , a batch of model samples. Initialize Set time t=t0 . Draw initial conditions x^t0(i)∼ρ0 for i=1,…,n . Construct s^(t,x)=−η^z(t,x)/α(t) . Construct b^(t,x)=α˙(t)η^zos(t,x)+β(t)β˙(t)(x−α(t)η^zos(t,x)) . Construct b^F(t,x)=b^(t,x)+ϵ(t)s^(t,x) . // Reduces to b^ for ϵ(t)=0 (ODE). while t<tf do Propagate x^t+Δt(i)=TakeStep(t,x^t(i),bF,ϵ,Δt) for i=1,…,n . // ODE or SDE integrator. Update t=t+Δt . Return : {x^(i)}i=1n .
Original caption: Algorithm 5 Sampling spatially-linear one-sided interpolants with Gaussian ρ0 .
中
算法 5:高斯基分布、空间线性单侧插值的采样。
SOURCE PDF p.44 · S6.SS2.SSS0.Px2.p1.1
EN
As shown in ( 4.19 ), and as considered in Section 5.2 , the denoiser ηzos is sufficient to represent the velocity field b appearing in the probability flow equation ( 2.32 ).
Using this definition for b and the relationship s(t,x)=−ηz(t,x)/γ(t) , we state the following ordinary and stochastic differential equations for sampling
中
利用这一 b 的定义以及关系 s(t,x)=−ηz(t,x)/γ(t),可得到下列用于采样的常微分方程与随机微分方程:
Because β(0)=0 , the drift is numerically singular in both equations.
However, b(t=0,x) has a finite limit
中
由于 β(0)=0,两个方程中的漂移在数值上都存在奇点。然而,b(t=0,x) 具有有限极限:
b(t=0,x)=α˙(0)x+β˙(0)E[x1],
SOURCE PDF p.45 · S6.SS2.SSS0.Px2.p2.3
EN
as originally given in ( 4.20 ).
Equation ( 6.8 ) can be estimated using available data, which means that when learning a one-sided interpolant, ODE and SDE-based generative models can be defined exactly on the interval t∈[0,1] using only a score or a denoiser without singularity.
The factor of α(t)−1 in the final term of the SDE could pose numerical problems at t=1 , as α(1)=0 . As discussed in the paragraph above, a choice of ϵ(t) which is such that ϵ(t)/α(t)→C for some constant C as t→1 avoids any issue.
Original caption: Figure 7 : The effects of γ(t) and ϵ on sample quality: qualitative comparison. Kernel density estimates of ρ^(1) for models with different choices of γ and ϵ . Sampling with ϵ=0 corresponds to using the probability flow with the learned drift b^=v^−γγ˙s^ , whereas sampling with ϵ>0 corresponds to using the SDE with the learned drift b^ and score s^ . We find empirically that SDE sampling is generically better than ODE sampling for this target density, though the gap is smallest for the probability flow specified with γ(t)=t(1−t) , in agreement with the Remark 42 regarding the influence of γ on b at the endpoints.
The SDE performs well at any noise level, though numerically integrating it for higher ϵ requires a smaller step size.
So far, we have been focused on the impact of α , β , and γ in ( 4.1 ) on the density ρ(t) , which we illustrated analytically.
In this section, we study examples where the drift coefficients must be learned over parametric function classes.
In particular, we explore numerically the tradeoffs between generative models based on ODEs and SDEs, as well as the various design choices introduced in Sections 3 , 4 , and 6 .
In Section 7.1 , we consider simple two-dimensional distributions that can be visualized easily.
In Section 7.2 , we consider high-dimensional Gaussian mixtures, where we can compare our learned models to analytical solutions.
Finally in Section 7.3 we perform some experiments in image generation.
Original caption: Figure 8 : The effects of γ(t) and ϵ on sample quality: quantitative comparison. For each γ and each ϵ specified in Figure 7 , we compute the mean and variance of the absolute value of the difference of logρ1 (exact) and logρ^(1) (model).
The model specified with γ(t)=t(1−t) is the best performing probability flow ( ϵ=0 ).
At large ϵ , SDE sampling with the same learned drift b^ and score s^ performs better, complementing the observations in the previous figure.
As shown in Section 2.2 , the evolution of ρ(t) can be captured exactly by either the transport equation ( 2.9 ) or by the forward and backward Fokker-Planck equations ( 2.20 ) and ( 2.22 ).
These perspectives lead to generative models that are either based on the deterministic dynamics ( 2.32 ) or the forward and backward stochastic dynamics ( 2.33 ) and ( 2.34 ), where the level of stochasticity can be tuned by varying the diffusion coefficient ϵ(t) .
We showed in Section 2.4 that setting a constant ϵ(t)=ϵ>0 can offer better control on the likelihood when using an imperfect velocity b and an imperfect score s .
Moreover, the optimal choice of ϵ is determined by the relative accuracy of the estimates b^ and s^ .
Having laid out the evolution of ρ(t) for different choices of γ in the previous section, we now show how different values of ϵ can build these densities up from individual trajectories.
The stochasticity intrinsic to the sampling process increases with ϵ , but by construction, the marginal density ρ(t) for fixed α , β and γ is independent of ϵ .
The roles of γ ( t ) and ϵ for 2D density estimation. 二维密度估计中 γ、ε 的作用
SOURCE PDF p.47 · S7.SS1.SSS0.Px1.p1.1
EN
To explore the roles of γ and ϵ , we consider a target density ρ1 whose mass concentrates on a two-dimensional checkerboard and a base density ρ0=N(0,Id) ; here, the target was chosen to highlight the ability of the method to learn a challenging density with sharp boundaries.
The same model architecture and training procedure was used to learn both v and s for several choices of γ given in Table 2 .
The feed-forward network was defined with 4 layers, each of size 512 , and with the ReLU Nair and Hinton (2010) as an activation function.
After training, we draw 300,000 samples using either an ODE ( ϵ=0 ) or an SDE with ϵ=0.5 , ϵ=1.0 , or ϵ=2.5 .
We compute kernel density estimates for each resulting density, which we compare to the exact density and to the original stochastic interpolant from Albergo and Vanden-Eijnden (2023) (obtained by setting γ=0 ).
Results are given in Figure 7 for each γ and each ϵ .
Sampling with ϵ>0 empirically performs better, though the gap is smallest when using the γ specified in ( 4.13 ).
Moreover, even when ϵ=0 , using the probability flow with γ given by ( 4.13 ) performs better than the original interpolant from Albergo and Vanden-Eijnden (2023) .
Numerical comparisons of the mean and variance of the absolute value of the difference of logρ1 (exact) from logρ^(1) (model) for the various configurations are given in Figure 8 , which corroborate the above observations.
7.2 Deterministic versus stochastic models: 128D Gaussian mixtures 7.2 128维高斯混合模型
SOURCE PDF p.48 · S7.SS2.p1.1
EN
We now study the performance of the stochastic interpolant method in the case where the target is a high-dimensional Gaussian mixture. Gaussian mixtures (GMs) are a convenient class of target distributions to study, because they can be made arbitrarily complex by increasing the number of modes, their separation, and the overall dimensionality.
Moreover, by considering low-dimensional projections, we can compute quantitative error metrics such as the KL -divergence between the target and the model as a function of the (constant) diffusion coefficient ϵ .
This enables us to quantify the tradeoffs of ODE and SDE-based samplers.
We consider the problem of mapping ρ0=N(0,Id) to a Gaussian mixture with five modes in dimension d=128 .
The mean mi∈Rd of each mode is drawn i.i.d. mi∼N(0,σ2Id) with σ=7.5 .
To maximize performance at high ϵ , the timestep should be adapted to ϵ ; here, we chose to use a fixed computational budget that performs well for moderate levels of ϵ to avoid computational effort that may become unreasonable in practice.
Original caption: Figure 9 : Gaussian mixtures: target projection. Low-dimensional marginal of the target density ρ1 for the Gaussian mixture experiment, visualized via KDE.
中
图 9:高斯混合实验目标密度的低维边缘,用 KDE 可视化。
SOURCE PDF p.48 · S7.SS2.SSS0.Px1.p2.1
EN
Each covariance Ci∈Rd×d is also drawn randomly with Ci=d1WiTWi+Id and (Wi)kl∼N(0,1) for k,l=1,…,d ; this choice ensures that each covariance is a positive definite perturbation of the identity with diagonal entries that are O(1) with respect to dimension d .
For a fixed random draw of the means {mi}i=15 and covariances {Ci}i=15 , we study the four combinations of learning b or v and s or ηz to form a stochastic interpolant from ρ0 to ρ1 .
In each case, we consider a linear interpolant with α(t)=1−t , β(t)=t , and γ(t)=t(1−t) .
For visual reference, a projection of the target density ρ1 onto the first two coordinates is depicted in Figure 9 – it contains significant multimodality, several modes that are difficult to distinguish, and one mode that is well-separated from the others, which requires nontrivial transport to resolve.
In the following experiments, all samples were generated with the fourth-order Dormand-Prince adaptive ODE solver ( dopri5 ) for ϵ=0 and by using one thousand timesteps of the Heun SDE integrator introduced in Karras et al. (2022) for ϵ=0 .
When learning ηz , to avoid singularity at t=0 and t=1 when dividing by γ(t) in the formula s(t,x)=−η(t,x)/γ(t) , we set t0=10−4 and tf=1−t0 in Algorithm 4 . For all other cases, we set t0=0 and tf=1 .
Original caption: Figure 10 : Gaussian mixtures: density errors. Errors ρ^1(x,y)−ρ1(x,y) in the marginals over the first two coordinates for all four variations of learning b or v and s or η , computed via kernel density estimation. For small ϵ , the model densities tend to be overly-concentrated, and overestimate the density within the modes and underestimate the densities in the tails. As ϵ increases, the model becomes less concentrated and more accurately represents the target density. For ϵ too large, the model becomes overly spread out and under-estimates the density within the modes. Note: visualizations show two-dimensional slices of a 128 -dimensional density.
To quantify performance, we make use of an error metric given by a KL -divergence between kernel density estimates (KDE) of low-dimensional marginals of ρ1 and the model density ρ^1 ; this error metric was chosen for computational tractability and interpretability.
To compute it, we draw 50,000 samples from ρ1 and each ρ^1 . We obtain samples from the marginal density over the first two coordinates by projection, and then compute a Gaussian KDE with bandwidth parameter chosen by Scott’s rule. We then draw a fresh set of Ne=50,000 samples {xi}i=1Ne with each xi∼ρ1 for evaluation.
To compute the KL -divergence, we form a Monte-Carlo estimate with control variate
中
为量化性能,我们使用一个误差指标:目标密度 ρ1 与模型密度 ρ^1 的低维边缘分布的核密度估计(KDE)之间的 KL 散度。选择这一误差指标,是出于计算可行性与可解释性的考虑。计算时,我们分别从 ρ1 与各个 ρ^1 中抽取 50,000 个样本;通过投影获得前两个坐标边缘密度的样本,再以 Scott 法则选择带宽,计算高斯 KDE。随后,我们另外抽取一组新的 Ne=50,000 个样本 {xi}i=1Ne 用于评估,其中每个 xi∼ρ1。为计算 KL 散度,我们构造含控制变量的 Monte Carlo 估计:
We found use of the control variate ρ^1/ρ1−1 helpful to reduce variance in the Monte-Carlo estimate; moreover, by concavity of the logarithm, use of the control variate ensures that the Monte-Carlo estimate cannot become negative.
中
我们发现,采用控制变量 ρ^1/ρ1−1 有助于减小 Monte Carlo 估计的方差;此外,由于对数函数的凹性,使用这一控制变量可保证 Monte Carlo 估计不会变为负值。
Original caption: Figure 11 : Gaussian mixtures: densities. A visualization of the marginal densities in the first two variables of the model density ρ^1 computed for all four variations of learning b or v and s or η , computed via kernel density estimation. Note: visualizations show two-dimensional slices of a 128 -dimensional density.
Original caption: Figure 12 : Gaussian mixtures: quantitative comparison. KL(ρ1∥ρ^1ϵ) as a function of ϵ when learning each of the four possible sets of drift coefficients (b,s) , (b,η) , (v,s) , (v,η) . The best performance is achieved when learning b and η , along with a proper choice of ϵ>0 .
Figures 10 and 11 display two-dimensional projections (computed via KDE) of the model density error ρ^1−ρ1 and the model density ρ^1 itself, respectively, for different instantiations of Algorithms 1 and 2 and different choices of ϵ in Algorithm 4 .
Taken together with Figure 9 , these results demonstrate qualitatively that small values of ϵ tend to over-estimate the density within the modes and under-estimate the density in the tails.
Conversely, when ϵ is taken too large, the model tends to under-estimate the modes and over-estimate the tails. Somewhere in between (and for differing levels of ϵ ), every model obtains its optimal performance.
Figure 12 makes these observations quantitative, and displays the KL -divergence from the target marginal to the model marginal KL(ρ1∥ρ^1ϵ) as a function of ϵ , with each data point on the curve matching the models depicted in Figures 10 and 11 .
We find that for each case, there is an optimal value of ϵ=0 , in line with the qualitative picture put forth by Figures 10 and 11 .
Moreover, we find that learning b generically performs better than learning v , and that learning η generically performs better than learning s (except when ϵ is taken large enough that performance starts to degrade).
With proper treatment of the singularity in the sampling algorithm when using the denoiser in the construction of s(t,x)=−η(t,x)/γ(t) – either by capping t0=0 and tf=1 or by properly tuning ϵ(t) as discussed in Section 6.2 – our results suggest that learning the denoiser is best practice.
In the following, we demonstrate that the proposed method scales straightforwardly to high-dimensional problems like image generation.
To this end, we illustrate the use of our approach on the 128×128 Oxford flowers dataset Nilsback and Zisserman (2006) by testing two different variations of the interpolant for image generation: the one-sided interpolant, using ρ0=N(0,Id) , as well as the mirror interpolant, where ρ0=ρ1 both represent the data distribution.
The purpose of this section is to demonstrate that our theory is well-motivated, and that it provides a framework that is both scalable and flexible.
In this regard, image generation is a convenient exercise, but is not the main focus of this work, and we will leave a more thorough study on other datasets such as ImageNet with standard benchmarks such as the Frechet Inception Distance (FID) for a future study.
We train spatially-linear one-sided interpolants xt=(1−t)z+tx1 and xt=cos(2πt)z+sin(2πt)x1 on the 128×128 Oxford flowers dataset, where we take z∼N(0,Id) and x1 from the data distribution.
Based on our results for Gaussian mixtures, we learn the drift b(t,x) , the score s(t,x) , and the denoiser ηz(t,x) to benchmark our generative models based on ODEs or SDEs.
In all cases, we parameterize the networks representing η^ , s^ and b^ using the U-Net architecture used in Ho et al. (2020) .
Minimization of the objective functions given in Section 3.2 is performed using the Adam optimizer.
Details of the architecture in both cases and all training hyperparameters are provided in Appendix C.1 .
Original caption: Figure 13 : Image generation: Oxford flowers. Example generated flowers from the same initial condition x0 using either the ODE with ϵ=0 and learned b or the SDE for various increasing values of ϵ with learned b and s .
For ϵ=0 , sampling is done using the dopri5 solver and therefore the number of steps is adaptive.
Otherwise, 2000 , 2500 , and 4000 steps were taken using the Heun solver for ϵ=1.0 , 2.0 , and 4.0 respectively.
中
图 13:Oxford flowers 图像生成。固定同一初值 x₀,比较 ε=0、学习 b 的 ODE,与不同增大 ε、学习 b 和 s 的 SDE。ODE 用 dopri5,自适应选择步数;SDE 的 ε=1、2、4 分别用 Heun 积分 2000、2500、4000 步。
SOURCE PDF p.51 · S7.SS3.SSS0.Px1.p2.1
EN
Like in the case of learning Gaussian mixtures, we use the fourth-order dopri5 solver when sampling with the ODE and the Heun method for the SDE, as detailed in Algorithm 4 .
When learning a denoiser ηz , we found it beneficial to complete the image generation with a final denoising step, in which we set ϵ=0 and switch the integrator to the one given in ( 5.14 ).
Exemplary images generated from the model using the ODE and the SDE with various value of the diffusion coefficient ϵ are shown in Figure 13 , starting from the same sample from ρ0 .
The result illustrates that different images can be generated from the same sample when using the SDE, and their diversity increases as we increase the diffusion coefficient ϵ .
To highlight that the model does not memorize the training set, in Figure 14 we compare an example generated image to its five nearest neighbors in the training set (measured in ℓ1 norm), which appear visually quite different.
Original caption: Figure 14 : No memorization. Top: An example generated image from a trained linear one-sided interpolant. Bottom: Five nearest neighbors (in ℓ1 norm) to the generated image in the dataset. The nearest neighbors are visually distinct, highlighting that the interpolant does not overfit on the dataset.
We consider the mirror interpolant xt=x1+γ(t)z , for which ( 3.33 ) shows that the drift b is given in terms the denoiser ηz by b(t,x)=γ˙(t)ηz(t) ; this means that it is sufficient to only learn an estimate η^z to construct a generative model.
Similar to the previous section, we demonstrate this on the Oxford flowers dataset, again making use of a U-Net parameterization for η^z(t,x) .
Further experimental details can be found in Appendix C.1 .
In this setup the output image at time t=1 is the same as the input image if we use the ODE ( 2.32 ); with the SDE, however, we can generate new images from the same input. This is illustrated in Figure 15 , where we show how a sample image from the dataset ρ1 is pushed forward through the SDE ( 2.33 ) with ϵ(t)=ϵ=10 .
As can be seen the original image is resampled to a proximal flower not seen in the dataset.
Original caption: Figure 15 : Mirror interpolant. Example trajectory from a learned denoiser model b^=γ˙(t)η^z for the mirror interpolant xt=x1+γ(t)z on the 128×128 Oxford flowers dataset with γ(t)=t(1−t) .
The parametric form for η^z is the U-Net from Ho et al. (2020) , with hyperparameter details given in Appendix C .
The choice of ϵ in the generative SDE given in ( 2.33 ) influences the extent to which the generated image differs from the original. Here, ϵ(t)=10.0 .
The above exposition provides a full treatment of the stochastic interpolant method, as well as a careful consideration of its relation to existing literature.
Our goal is to provide a general framework that can be used to devise generative models built upon dynamical transport of measure.
To this end, we have detailed mathematical theory and efficient algorithms for constructing both deterministic and stochastic generative models that map between two densities exactly in finite time.
Along the way, we have illustrated the various design parameters that can be used to shape this process, with connections, for example, to optimal transport and Schrödinger bridges.
While we detail specific instantiations, such as the mirror and one-sided interpolants, we highlight that there is a much broader space of possible designs that may be relevant for future applications.
Several candidate application domains include the solution of inverse problems such as image inpainting and super-resolution, spatiotemporal forecasting of dynamical systems, and scientific problems such as sampling of molecular configurations and machine learning-assisted Markov chain Monte-Carlo.
中
以上内容完整介绍了随机插值方法,并仔细讨论了它与现有文献的关系。我们的目标是提供一个通用框架,用于设计基于测度动态输运的生成模型。为此,我们详细给出了数学理论和高效算法,用以构造能够在有限时间内精确映射两个密度的确定性与随机生成模型。在这一过程中,我们说明了可用于塑造该过程的多种设计参数,并展示了它与最优传输、Schrödinger 桥等问题的联系。虽然我们详细介绍了镜像插值和单侧插值等具体形式,但我们强调,潜在的设计空间远比这些例子广阔,可能对未来应用具有价值。候选应用领域包括:图像修补、超分辨率等逆问题的求解,动力系统的时空预测,以及分子构型采样、机器学习辅助的 Markov 链 Monte Carlo 等科学问题。
Acknowledgements 致谢
SOURCE PDF p.53 · Sx1.p1.1
EN
We thank Joan Bruna, Jonathan Niles-Weed, Loucas Pillaud-Vivien, and Cédric Gerbelot for helpful discussions regarding stability estimates of dynamical transport. We are also grateful to Qiang Liu, Ricky Chen, and Yaron Lipman for feedback on previous and related work, and to Kyle Cranmer and Michael Lindsey for discussions on transport costs. We thank Mark Goldstein for insightful comments regarding practical considerations when training denoising-diffusion models. MSA is supported by the National Science
Foundation under the award PHY-2141336. EVE is supported by the National Science Foundation under awards DMR-1420073, DMS-2012510, and DMS-2134216, by the Simons Collaboration on Wave Turbulence,
Grant No. 617006, and by a Vannevar Bush Faculty Fellowship.
中
感谢 Joan Bruna、Jonathan Niles-Weed、Loucas Pillaud-Vivien 和 Cédric Gerbelot 就动态输运的稳定性估计所作的有益讨论。也感谢 Qiang Liu、Ricky Chen 和 Yaron Lipman 对先前工作及相关工作提出反馈,并感谢 Kyle Cranmer 和 Michael Lindsey 围绕输运成本展开讨论。感谢 Mark Goldstein 就去噪扩散模型训练的实践问题提出富有洞见的意见。MSA 获美国国家科学基金会项目 PHY-2141336 资助。EVE 获美国国家科学基金会项目 DMR-1420073、DMS-2012510 与 DMS-2134216,Simons 波湍流合作项目(项目号 617006),以及 Vannevar Bush Faculty Fellowship 的资助。
Appendix A Bridging two Gaussian mixture densities 附录 A 连接高斯混合密度
SOURCE PDF p.54 · A1.p1.2
EN
In this appendix, we consider the case where ρ0 and ρ1 are both Gaussian mixture densities. We denote by
This proposition implies that b and s grow at most linearly in x , and are approximately linear in regions where the modes of ρ(t,x) remain well-separated. In particular, if ρ0 and ρ1 are both Gaussian densities, ρ0=N(m0,C0) and ρ1=N(m1,C1) , we have
中
这一命题意味着,b 与 s 随 x 至多线性增长,并且在 ρ(t,x) 的模态保持良好分离的区域中近似为线性。特别地,若 ρ0 与 ρ1 都是高斯密度,即 ρ0=N(m0,C0)、ρ1=N(m1,C1),则有
Note that the probability flow ODE ( 2.32 ) associated with the velocity ( A.7 ) is the linear ODE
中
注意,与速度(A.7)关联的概率流 ODE(2.32)是如下线性 ODE:
dtdXt=m˙(t)+21C˙(t)C−1(t)(Xt−m(t)).
SOURCE PDF p.55 · A1.p2.5
EN
This equation can only be solved analytically if C˙(t) and C(t) commute (which is the case e.g. if C0=Id ), but it is easy to see that it always guarantees that
where Xt(x0) denotes the solution to ( A.10 ) for the initial condition Xt=0(x0)=x0 and E0 denotes expectation over x0∼ρ0 . A similar statement is true if we solve ( A.10 ) with final conditions at t=1 drawn from ρ1 . Similarly, the forward SDE ( 2.33 ) associated with the velocity ( A.7 ) and the score ( A.8 ) is the linear SDE
where EFx0 denotes expectation over the solution of ( A.12 ) conditional on the event Xt=0F=x0 and E0 denotes expectation over x0∼ρ0 . A similar statement also holds for the backward SDE ( 2.34 ).
whose inverse Fourier transform is ( A.4 ). This automatically implies ( A.6 ) since we know from 2.14 that s=∇logρ . To derive ( A.7 ) use the function m defined below in ( B.12 ):
In this appendix, we provide the details for proofs omitted from the main text. For ease of reading, a copy of the original theorem statement is provided with the proof.
中
本附录给出正文中略去的证明细节。为便于阅读,我们在证明之前附上原定理陈述的副本。
B.1 Proof of Theorems 6 , 7 , and 8 , and Corollary 10 . B.1 定理 6、7、8 与推论 10 的证明
SOURCE PDF p.56 · A2.SS1.p1.1
EN
See 6
中
见定理 6。
Proof. 证明
SOURCE PDF p.56 · A2.SS1.p2.3
EN
Let g(t,k)=Eeik⋅xt , k∈Rd , be the characteristic function of ρ(t,x) . From the definition of xt in ( 2.1 ),
indicating that ∂tρ(t,⋅) and ∂t2ρ(t,⋅) are in Cp(Rd) for any p∈N , i.e. ρ∈C1((0,1);Cp(Rd)) as claimed. To show that ρ is also positive, denote by μ0(t,dx) the unique (by the Fourier inversion theorem) probability measure associated with g0(t,k) , i.e. the measure such that
This shows that ρ>0 for all (t,x)∈(0,1)×Rd . Since xt=0=x0 and xt=1=x1 by definition of the interpolant, we also have ρ(0)=ρ0 and ρ(1)=ρ1 , which shows that ρ is also positive and in Cp(Rd) at t=0,1 by Assumption 5 . Note that since ρ∈C1((0,1);Cp(Rd)) and is positive, we also immediately deduce that s=∇logρ=∇ρ/ρ∈C1((0,1);(Cp(Rd))d) .
where the last equality follows from the definition of b in ( 2.10 ). Inserting ( B.13 ) in ( B.11 ), we deduce that this equation can be written in real space as the TE ( 2.9 ).
中
最后一个等号来自式(2.10)中 b 的定义。将式(B.13)代入式(B.11),可知该方程在实空间中可写为输运方程 TE(2.9)。
SOURCE PDF p.58 · A2.SS1.p4.3
EN
Let us now investigate the regularity of b . To that end, we go back to m and use the independence between x0 , x1 , and z , as well as Gaussian integration by parts to deduce that
中
现在考察 b 的正则性。为此,我们回到 m,利用 x0、x1 与 z 之间的独立性,以及高斯分部积分,得到
which implies that the inverse Fourier transform of m is a function j:[0,1]×Rd→Rd that satisfies j(t,⋅)∈(Cp(Rd))d for any p∈N and any t∈(0,1) and can be expressed as
where the last equality follows from the definition of b in ( 2.10 ). We deduce that b∈C0([0,1];(Cp(Rd))d) for any p∈N since j∈C0([0,1];(Cp(Rd))d) and ρ∈C1([0,1];Cp(Rd)) , and ρ>0 .
中
最后一个等号来自式(2.10)中 b 的定义。由于 j∈C0([0,1];(Cp(Rd))d)、ρ∈C1([0,1];Cp(Rd)),且 ρ>0,所以可推出:对任意 p∈N,b∈C0([0,1];(Cp(Rd))d)。
SOURCE PDF p.58 · A2.SS1.p5.3
EN
Finally, let us establish ( 2.11 ). By ( 2.8 ) we have
where s0=∇logρ0 , s1=∇logρ1 , E0 and E1 denote expectations over x0∼ρ0 and x1∼ρ1 , respectively, and we used the property that xt=0=x0 and xt=1=x1 . Since limt→0,1γ˙(t)γ(t) exists by our assumption that γ2∈C1([0,1]) , b0 and b1 are well defined, and
Since ρ∈C1((0,1);Cp(Rd)) and is positive by Theorem 6 , we already know that s=∇logρ=∇ρ/ρ∈C1((0,1);(Cp(Rd))d) .
To establish ( 2.14 ), note that, for t∈(0,1) where γ(t)>0 , we have
As a result, using the independence between x0 , x1 , and z , we have
中
因此,利用 x0、x1 与 z 的独立性,可得
E(zeik⋅xt)=iγ(t)kg(t,k)
SOURCE PDF p.60 · A2.SS1.p10.3
EN
where g is the characteristic function of xt defined in ( B.1 ). Using the properties of the conditional expectation, the left-hand side of this equation can be written as
This means that this integral is bounded for all t∈(0,1) . Since the integral is also continuous at t=0 and t=1 , with values given by ( 2.7 ), it must be integrable on [0,1] and ( 2.15 ) holds.
The SDE ( 2.33 ) and the ODE ( 2.32 ) are the evolution equations for the processes whose densities solve ( 2.20 ) and ( 2.9 ), respectively. The equation that requires some explanation is the backwards SDE ( 2.34 ), which can be solved backwards in time from t=1 to t=0 . As discussed in the main text, by definition, its solution is XtB=Z1−tF where ZtF solves the forward SDE
where we used the identity s^⋅∇logρρ=s^⋅∇ρ and integration by parts to obtain the second equality. The last term involving ∣∇logρ∣2 is a constant in s^ that can be neglected for optimization. Expressing the remaining terms as an expectation over xt and integrating the result in time gives ( 2.30 ).
where we omitted the argument (t,x) of all functions for simplicity of notation. Integrating both sides from 0 to 1 completes the proof.
∎
中
其中为简化记号,省略了所有函数的自变量 (t,x)。对等式两侧从 0 到 1 积分,即完成证明。∎
SOURCE PDF p.64 · A2.SS3.p3.1
EN
See 22
中
见 22。
Proof. 证明
SOURCE PDF p.64 · A2.SS3.p4.2
EN
Similar to the proof of Lemma 21 , we can use the FPE in ( 2.40 ) to compute dtdKL(ρ(t)∥ρ^(t)) , which leads to the main result. Instead, we take a simpler approach, leveraging the result in Lemma 21 . We re-write the Fokker-Planck equations in ( 2.40 ) as the (score-dependent) transport equations
Observe that by Proposition 18 , the target density ρ1=ρ(1,⋅) is the density of the process Xt that evolves according to SDE ( 2.33 ). By Lemma 22 and an additional application of Young’s inequality, we then have that
where we used ρ^(0)=ρ0 .
Taking an expectation conditioned on the event Yt=1B=x and using that the term on the right-hand side has mean zero, we find that
Let us first consider what happens on the interval t∈[0,δ] where I(t,x0,x1)=x0 by assumption and the stochastic interpolant ( 3.2 ) with x0 fixed and a(t)=a>0 reduces to
which means that its density satisfies for all t>0 the FPE
中
这意味着其概率密度对所有 t>0 都满足下列 Fokker–Planck 方程:
∂tρ+2at∇⋅(s(t,x)ρ)=aΔρ,
SOURCE PDF p.70 · A2.SS5.p2.4
EN
where s(t,x)=∇logρ(t,x) is the score, which is explicitly given by
中
其中,s(t,x)=∇logρ(t,x) 是得分函数,其显式表达为
s(t,x)=−2at(1−t)x−x0fort∈(0,δ].
SOURCE PDF p.70 · A2.SS5.p2.5
EN
This means that the drift term in the FPE ( B.63 ) can be written as
中
这意味着 Fokker–Planck 方程 (B.63) 中的漂移项可以写成
2ats(t,x)=−1−tx−x0fort∈(0,δ].
SOURCE PDF p.70 · A2.SS5.p2.6
EN
and this equality also holds in the limit as t→0 . It is also easy to check that
中
并且当 t→0 时,这个等式在极限下依然成立。此外,也容易验证
−2at(1−t)x−x0=−(1−t)2atE(z∣xt=x)fort∈[0,δ]
SOURCE PDF p.70 · A2.SS5.p2.7
EN
which is consistent with the drift in ( 3.10 ) on t∈[0,δ] since ∂tI(t,x0,x1)=0 on this interval. Since the right-hand side of ( B.65 ) is nonsingular at t=0 it also means that the SDE ( 3.11 ) is well-defined for t∈[0,δ] and the law of its solutions coincide with that of the process xt defined ( B.61 ), Xtd∼N(x0,2at(1−t)Id) for t∈[0,δ] .
Considering next what happens on t∈(δ,1] , since γ(t)=2at(1−t) is only zero at the endpoint t=1 where we assume that the density ρ1 satisfies Assumption 5 we can mimick all the arguments in the proof of of Theorem 6 and Corollaries 10 and 18 to terminate the proof.
∎
Note that this proof shows that is enough to have ∂tI(t=0,x0,x1)=0 , since this implies that I(t,x0,x1)=x0+O(t2) . It also shows that, while it is key to use an SDE on t∈[0,δ] so that the generative process can spread the mass away from x0 , the diffusive noise is no longer necessary and we could switch back to a probability flow ODE on t∈(δ,1] (using a time-dependent a(t) to that effect with a(t)=0 for t∈(δ,1] ).
B.6 Proof of Lemma 40 and Theorem 41 . B.6 引理 40 与定理 41 的证明
SOURCE PDF p.70 · A2.SS6.p1.1
EN
See 40
中
见 40。
Proof. 证明
SOURCE PDF p.70 · A2.SS6.p2.1
EN
By definition of the map T in ( 3.36 ), if x0∼ρ0 and x1∼ρ1 , then T−1(0,x0)∼N(0,Id) and T−1(1,x1)∼N(0,Id) . As a result, since x0 , x1 , and z are independent, and z∼N(0,Id) , we have
中
根据式 (3.36) 中映射 T 的定义,若 x0∼ρ0 且 x1∼ρ1,则 T−1(0,x0)∼N(0,Id),T−1(1,x1)∼N(0,Id)。因此,利用 x0、x1 与 z 相互独立,且 z∼N(0,Id),可得
where λ(t,x) , η0(x) , and η1(x) are Lagrange multipliers used to enforce the constraints. The unique minimizer (ρ,j,λ) of this optimization problem solves the Euler-Lagrange equations:
We can use the last two equations to write the first two as ( 3.35 ), with u=∇λ . Since under Assumption 39 there is an interpolant that realizes the density ρ(t) that solves ( 3.35 ), we conclude that an optimizer (I,u) of the the max-min problem ( 3.38 ) exists. For any optimizer, I will be such that ρ(t) is the density of xt=I(t,x0,x1)+γ(t)z , and u will satisfy u=∇λ .
∎
中
利用最后两个方程,可将前两个方程写为式 (3.35),其中 u=∇λ。在假设 39 下,存在一个插值函数能够实现满足式 (3.35) 的密度 ρ(t),因此我们断定最大—最小问题 (3.38) 存在一个最优解 (I,u)。对于任意最优解,其中的 I 都使得 ρ(t) 是 xt=I(t,x0,x1)+γ(t)z 的密度,而 u 满足 u=∇λ。∎
The first part of the statement can be established by following the same steps as in the proof of Theorem 6 and Corollary 10 . For the proof of the second part, use first ( 5.17 ) written as xtrec=M(t,z) in ( 5.22 ) to deduce that
Original caption: Table 3 : Hyperparameters and architecture for image datasets.
中
表 3:图像数据集的超参数与网络架构。
Appendix C Experimental Specifications 附录 C 实验配置
SOURCE PDF p.73 · A3.p1.1
EN
Details for the experiments in Section 7.1 are provided here. Feed forward neural networks of depth 4 and width 512 are used for each model of the velocities b , v , and s . Training was done for 7000 iterations on batches comprised of 25 draws from the base, 400 draws from the target, and 100 time slices. At each iteration, we used a variance reduction technique based on antithetic sampling, in which two samples ±z are used for each evaluation of the loss. The objectives given in ( 2.13 ) and ( 2.16 ) were optimized using the Adam optimizer. The learning rate was set to .002 and was dropped by a factor of 2 every 1500 iterations of training. To integrate the ODE/SDE when drawing samples, we used the Heun-based integrator as suggested in Karras et al. (2022) .
For all image generation experiments, the U-Net architecture originally proposed in Ho et al. (2020) is used. The specification of architecture hyperparameters as well as training hyperparameters are given in Table 3 . The same architecture is used regardless of whether learning b,v,s, or η .
中
所有图像生成实验都采用 Ho 等人(2020)最初提出的 U-Net 架构。架构超参数与训练超参数的具体设置见表 3。不论学习的是 b、v、s 还是 η,均使用相同架构。
SOURCE PDF p.73 · A3.SS1.SSS0.Px1.p2.1
EN
When using the SDE and learning ηz , we found that integrating to a time slightly before tf=1.0 and using the denoising formula ( 5.14 ) beyond this point provided the best results, as described in the main text.
Albergo and Vanden-Eijnden (2023) Michael S. Albergo and Eric Vanden-Eijnden. Building normalizing flows with stochastic interpolants. In International Conference on Learning Representations , 2023.
Albergo et al. (2023) Michael S. Albergo, Mark Goldstein, Nicholas M. Boffi, Rajesh Ranganath, and
Eric Vanden-Eijnden. Stochastic interpolants with data-dependent couplings. arXiv , October 2023.
Anderson (1982) Brian D.O. Anderson. Reverse-time diffusion equation models. Stochastic Processes and their Applications , 12(3):313–326, 1982.
Bakry and Émery (1985) Dominique Bakry and Michel Émery. Diffusions hypercontractives. In Jacques Azéma and Marc Yor, editors, Séminaire de
Probabilités XIX 1983/84 , pages 177–206, Berlin, Heidelberg, 1985.
Springer Berlin Heidelberg. ISBN 978-3-540-39397-9.
Ben-Hamu et al. (2022) Heli Ben-Hamu, Samuel Cohen, Joey Bose, Brandon Amos, Maximilian Nickel,
Aditya Grover, Ricky T. Q. Chen, and Yaron Lipman. Matching normalizing flows and probability paths on manifolds. In International Conference on Machine Learning, ICML 2022,
17-23 July 2022, Baltimore, Maryland, USA , volume 162 of Proceedings
of Machine Learning Research , pages 1749–1763. PMLR, 2022.
Benamou and Brenier (2000) Jean-David Benamou and Yann Brenier. A computational fluid mechanics solution to the monge-kantorovich
mass transfer problem. Numerische Mathematik , 84(3):375–393,
Boffi and Vanden-Eijnden (2023) Nicholas M Boffi and Eric Vanden-Eijnden. Probability flow solution of the fokker–planck equation. Machine Learning: Science and Technology , 4(3):035012, jul 2023.
Bortoli et al. (2021) Valentin De Bortoli, James Thornton, Jeremy Heng, and Arnaud Doucet. Diffusion schrödinger bridge with applications to score-based
generative modeling. In A. Beygelzimer, Y. Dauphin, P. Liang, and J. Wortman Vaughan,
editors, Advances in Neural Information Processing Systems , 2021.
Brenier (1991) Yann Brenier. Polar factorization and monotone rearrangement of vector-valued
functions. Communications on Pure and Applied Mathematics , 44(4):375–417, 1991.
Bunne et al. (2022) Charlotte Bunne, Ya-Ping Hsieh, Marco Cuturi, and Andreas Krause. The Schr\”odinger Bridge between Gaussian
Measures has a Closed Form. arXiv:2202.05722 , February 2022.
Chen et al. (2022a) Hongrui Chen, Holden Lee, and Jianfeng Lu. Improved analysis of score-based generative modeling: User-friendly
bounds under minimal smoothness assumptions. ICML , 2022a.
Chen et al. (2018) Ricky T. Q. Chen, Yulia Rubanova, Jesse Bettencourt, and David K Duvenaud. Neural ordinary differential equations. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi,
and R. Garnett, editors, Advances in Neural Information Processing
Systems , volume 31. Curran Associates, Inc., 2018.
Chen and Gopinath (2000) Scott Chen and Ramesh Gopinath. Gaussianization. In T. Leen, T. Dietterich, and V. Tresp, editors, Advances in
Neural Information Processing Systems , volume 13. MIT Press, 2000.
Chen et al. (2023) Sitan Chen, Sinho Chewi, Jerry Li, Yuanzhi Li, Adil Salim, and Anru Zhang. Sampling is as easy as learning the score: theory for diffusion
models with minimal data assumptions. In The Eleventh International Conference on Learning
Representations , 2023.
Chen et al. (2022b) Tianrong Chen, Guan-Horng Liu, and Evangelos Theodorou. Likelihood training of schrödinger bridge using forward-backward
SDEs theory. In International Conference on Learning Representations ,
2022b.
Chen et al. (2021) Yongxin Chen, Tryphon T. Georgiou, and Michele Pavon. Stochastic control liaisons: Richard sinkhorn meets gaspard monge on
a schrödinger bridge. SIAM Review , 63(2):249–313, 2021.
Dinh et al. (2017) Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density estimation using real NVP. In International Conference on Learning Representations , 2017.
Dockhorn et al. (2022) Tim Dockhorn, Arash Vahdat, and Karsten Kreis. Score-based generative modeling with critically-damped langevin
diffusion. In International Conference on Learning Representations
(ICLR) , 2022.
Doob (1984) Joseph L. Doob. Classical potential theory and its probabilistic counterpart ,
volume 262 of Grundlehren der Mathematischen Wissenschaften
[Fundamental Principles of Mathematical Sciences] . Springer-Verlag, New York, 1984. ISBN 0-387-90881-1.
Durkan et al. (2019) Conor Durkan, Artur Bekasov, Iain Murray, and George Papamakarios. Neural spline flows. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural
Information Processing Systems , volume 32. Curran Associates, Inc., 2019.
El Alaoui and Montanari (2022) Ahmed El Alaoui and Andrea Montanari. An information-theoretic view of stochastic localization. IEEE Trans. Inf. Theory , 68(11):7423–7426, 2022.
Eldan (2013) Ronen Eldan. Thin shell implies spectral gap up to polylog via a stochastic
localization scheme. Geometric and Functional Analysis , 23(2):532–569, 2013.
Finlay et al. (2020) Chris Finlay, Joern-Henrik Jacobsen, Levon Nurbekyan, and Adam Oberman. How to train your neural ODE: the world of Jacobian and kinetic
regularization. In Hal Daumé III and Aarti Singh, editors, Proceedings of the
37th International Conference on Machine Learning , volume 119 of Proceedings of Machine Learning Research , pages 3154–3164. PMLR,
13–18 Jul 2020.
Friedman (1987) Jerome H. Friedman. Exploratory projection pursuit. Journal of the American Statistical Association , 82(397):249–266, 1987.
Grathwohl et al. (2019) Will Grathwohl, Ricky T. Q. Chen, Jesse Bettencourt, and David Duvenaud. Scalable reversible generative models with free-form continuous
dynamics. In International Conference on Learning Representations , 2019.
Ho et al. (2020) Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin,
editors, Advances in Neural Information Processing Systems , volume 33,
pages 6840–6851. Curran Associates, Inc., 2020.
Hoogeboom et al. (2023) Emiel Hoogeboom, Jonathan Heek, and Tim Salimans. simple diffusion: End-to-end diffusion for high resolution images. In International Conference on Machine Learning, ICML 2023,
23-29 July 2023, Honolulu, Hawaii, USA , 2023.
Huang et al. (2018) Chin-Wei Huang, David Krueger, Alexandre Lacoste, and Aaron Courville. Neural autoregressive flows. In Jennifer Dy and Andreas Krause, editors, Proceedings of the
35th International Conference on Machine Learning , volume 80 of Proceedings of Machine Learning Research , pages 2078–2087. PMLR,
10–15 Jul 2018.
Huang et al. (2021) Chin-Wei Huang, Ricky T. Q. Chen, Christos Tsirigotis, and Aaron Courville. Convex potential flows: Universal probability distributions with
optimal transport and convex optimization. In International Conference on Learning Representations , 2021.
Hyvärinen (2005) Aapo Hyvärinen. Estimation of non-normalized statistical models by score matching. Journal of Machine Learning Research , 6(24):695–709, 2005.
Hyvärinen (1999) Aapo Hyvärinen. Sparse code shrinkage: Denoising of nongaussian data by maximum
likelihood estimation. Neural Computation , 11(7):1739–1768,
Kadkhodaie and Simoncelli (2021) Zahra Kadkhodaie and Eero P. Simoncelli. Solving linear inverse problems using the prior implicit in a
denoiser. arXiv:2007.13640 , 2021.
Karras et al. (2022) Tero Karras, Miika Aittala, Timo Aila, and Samuli Laine. Elucidating the design space of diffusion-based generative models. In Proc. NeurIPS , 2022.
Kim and Milman (2010) Young-Heon Kim and Emanuel Milman. A generalization of caffarelli’s contraction theorem via (reverse)
heat flow. Mathematische Annalen , 354:827–862, 2010.
Kingma et al. (2021) Diederik P Kingma, Tim Salimans, Ben Poole, and Jonathan Ho. On density estimation with diffusion models. In A. Beygelzimer, Y. Dauphin, P. Liang, and J. Wortman Vaughan,
editors, Advances in Neural Information Processing Systems , 2021.
LeCun et al. (2007) Yann LeCun, Sumit Chopra, and Raia Hadsell. A tutorial on energy-based learning. In Gökhan BakIr, Thomas Hofmann, Alexander J Smola, Bernhard
Schölkopf, and Ben Taskar, editors, Predicting structured data ,
chapter 10. MIT press, 2007.
Lee et al. (2022) Holden Lee, Jianfeng Lu, and Yixin Tan. Convergence for score-based generative modeling with polynomial
complexity. arXiv:2206.06227 , 2022.
Lee et al. (2023) Holden Lee, Jianfeng Lu, and Yixin Tan. Convergence of score-based generative modeling for general data
distributions. In Shipra Agrawal and Francesco Orabona, editors, Proceedings
of The 34th International Conference on Algorithmic Learning Theory , volume
201 of Proceedings of Machine Learning Research , pages 946–985, 2023.
Léonard (2014) Christian Léonard. A survey of the schrödinger problem and some of its connections
with optimal transport. Discrete and Continuous Dynamical Systems , 34(4):1533–1574, 2014.
Lipman et al. (2023) Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matthew
Le. Flow matching for generative modeling. In The Eleventh International Conference on Learning
Representations , 2023.
Liu et al. (2023a) Guan-Horng Liu, Arash Vahdat, De-An Huang, Evangelos A Theodorou, Weili Nie,
and Anima Anandkumar. I 2 sb: Image-to-image schrödinger bridge. arXiv preprint arXiv:2302.05872 , 2023a.
Liu (2022) Qiang Liu. Rectified flow: A marginal preserving approach to optimal transport. arXiv:2209.14577 , 2022.
Liu et al. (2022) Xingchao Liu, Lemeng Wu, Mao Ye, and Qiang Liu. Let us build bridges: Understanding and extending diffusion
generative models. arXiv:2208.14699 , 2022.
Liu et al. (2023b) Xingchao Liu, Chengyue Gong, and Qiang Liu. Flow straight and fast: Learning to generate and transfer data with
rectified flow. In The Eleventh International Conference on Learning
Representations , 2023b.
Lu et al. (2022) Cheng Lu, Kaiwen Zheng, Fan Bao, Jianfei Chen, Chongxuan Li, and Jun Zhu. Maximum likelihood training for score-based diffusion ODEs by high
order denoising score matching. In Proceedings of the 39th International Conference on Machine
Learning , 2022.
Maoutsa et al. (2020) Dimitra Maoutsa, Sebastian Reich, and Manfred Opper. Interacting particle solutions of fokker–planck equations through
gradient–log–density estimation. Entropy , 22(8), 2020.
Montanari (2023) Andrea Montanari. Sampling, diffusions, and stochastic localization. arXiv:2305.10690 , 2023.
Nair and Hinton (2010) Vinod Nair and Geoffrey E. Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th International Conference on
International Conference on Machine Learning , ICML’10, page 807–814,
Madison, WI, USA, 2010. Omnipress. ISBN 9781605589077.
Nilsback and Zisserman (2006) Maria-Elena Nilsback and Andrew Zisserman. A visual vocabulary for flower classification. In IEEE Conference on Computer Vision and Pattern Recognition ,
volume 2, pages 1447–1454, 2006.
Onken et al. (2021) Derek Onken, Samy Wu Fung, Xingjian Li, and Lars Ruthotto. Ot-flow: Fast and accurate continuous normalizing flows via optimal
transport. Proceedings of the AAAI Conference on Artificial Intelligence ,
35(10):9223–9232, May 2021.
Otto (2000) Felix Otto. Generalization of an inequality by talagrand and links with the
logarithmic sobolev inequality. Journal of Functional Analysis , 173(2):361–400, 2000.
Papamakarios et al. (2017) George Papamakarios, Theo Pavlakou, and Iain Murray. Masked autoregressive flow for density estimation. In Proceedings of the 31st International Conference on Neural
Information Processing Systems , NIPS’17, page 2335–2344, Red Hook, NY,
USA, 2017. Curran Associates Inc. ISBN 9781510860964.
Rezende and Mohamed (2015) Danilo Rezende and Shakir Mohamed. Variational inference with normalizing flows. In Francis Bach and David Blei, editors, Proceedings of the
32nd International Conference on Machine Learning , volume 37 of Proceedings of Machine Learning Research , pages 1530–1538, Lille,
France, 07–09 Jul 2015. PMLR.
Simoncelli and Adelson (1996) Eero P. Simoncelli and Edward H. Adelson. Noise removal via bayesian wavelet coring. In Proceedings of 3rd IEEE International Conference on Image
Processing , volume 1, pages 379–382 vol.1, 1996.
Sohl-Dickstein et al. (2015) Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In Francis Bach and David Blei, editors, Proceedings of the
32nd International Conference on Machine Learning , volume 37 of Proceedings of Machine Learning Research , pages 2256–2265, Lille,
France, 07–09 Jul 2015. PMLR.
Somnath et al. (2023) Vignesh Ram Somnath, Matteo Pariset, Ya-Ping Hsieh, Maria Rodriguez Martinez,
Andreas Krause, and Charlotte Bunne. Aligned diffusion schrödinger bridges. In The 39th Conference on Uncertainty in Artificial
Intelligence , 2023.
Song and Ermon (2019) Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural
Information Processing Systems , volume 32. Curran Associates, Inc., 2019.
Song and Kingma (2021) Yang Song and Diederik P. Kingma. How to train your energy-based models. arXiv:2101.03288 , 2021.
Song et al. (2021a) Yang Song, Conor Durkan, Iain Murray, and Stefano Ermon. Maximum likelihood training of score-based diffusion models. In M. Ranzato, A. Beygelzimer, Y. Dauphin, P.S. Liang, and J. Wortman
Vaughan, editors, Advances in Neural Information Processing Systems ,
volume 34, pages 1415–1428. Curran Associates, Inc., 2021a.
Song et al. (2021b) Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano
Ermon, and Ben Poole. Score-based generative modeling through stochastic differential
equations. In International Conference on Learning Representations ,
2021b.
Song et al. (2023) Yang Song, Prafulla Dhariwal, Mark Chen, and Ilya Sutskever. Consistency Models. ICML , 2023.
Stein (1981) Charles M. Stein. Estimation of the Mean of a Multivariate Normal Distribution. The Annals of Statistics , 9(6):1135 –
1151, 1981.
Su et al. (2023) Xuan Su, Jiaming Song, Chenlin Meng, and Stefano Ermon. Dual diffusion implicit bridges for image-to-image translation. In The Eleventh International Conference on Learning
Representations , 2023.
Tabak and Turner (2013) Esteban G. Tabak and Cristina V. Turner. A family of nonparametric density estimation algorithms. Communications on Pure and Applied Mathematics , 66(2):145–164, 2013.
Tabak and Vanden-Eijnden (2010) Esteban G. Tabak and Eric Vanden-Eijnden. Density estimation by dual ascent of the log-likelihood. Communications in Mathematical Sciences , 8(1):217 – 233, 2010.
Tong et al. (2020) Alexander Tong, Jessie Huang, Guy Wolf, David Van Dijk, and Smita Krishnaswamy. TrajectoryNet: A dynamic optimal transport network for modeling
cellular dynamics. In Hal Daumé III and Aarti Singh, editors, Proceedings of the
37th International Conference on Machine Learning , volume 119 of Proceedings of Machine Learning Research , pages 9526–9536. PMLR,
13–18 Jul 2020.
Tong et al. (2023) Alexander Tong, Nikolay Malkin, Guillaume Huguet, Yanlei Zhang, Jarrid
Rector-Brooks, Kilian Fatras, Guy Wolf, and Yoshua Bengio. Conditional flow matching: Simulation-free dynamic optimal transport. arXiv:2302.00482 , 2023.
Vempala and Wibisono (2019) Santosh S. Vempala and Andre Wibisono. Rapid convergence of the unadjusted langevin algorithm: Log-sobolev
suffices. arXiv:1903.08568 , 2019.
Villani (2009) Cédric Villani. Optimal transport: old and new , volume 338. Springer, 2009.
Vincent (2011) Pascal Vincent. A Connection Between Score Matching and Denoising
Autoencoders. Neural Computation , 23(7):1661–1674,
Xiao et al. (2022) Zhisheng Xiao, Karsten Kreis, and Arash Vahdat. Tackling the generative learning trilemma with denoising diffusion
GANs. In International Conference on Learning Representations , 2022.
Yang and Karniadakis (2022) Liu Yang and George Em Karniadakis. Potential flow generator with l2 optimal transport regularity for
generative models. IEEE Transactions on Neural Networks and Learning Systems ,
33(2):528–538, 2022.
Zhang et al. (2018) Linfeng Zhang, Weinan E, and Lei Wang. Monge-Ampère flow for generative modeling. arXiv.org:1809.10188 , 2018.