Theoretical guarantees for sampling and inference in generative models with latent diffusions

Belinda Tzen, Maxim Raginsky

Introduction and informal summary of results

Recently there has been much interest in using continuous-time processes to analyze discrete-time algorithms and probabilistic models (Wibisono et al., 2016; Li et al., 2017; Mandt et al., 2017; Chen et al., 2018; Yang et al., 2018). In particular, diffusion processes have been examined as a way towards a better understanding of first- and second-order optimization methods, as they afford an analysis of behavior over non-convex landscapes using a rich array of techniques from the mathematical physics literature (Li et al., 2017; Raginsky et al., 2017; Zhang et al., 2017). Gradient flows and diffusions have also found a role in the analysis of deep neural nets, where they are interpreted as describing the limiting case of infinitely many layers, with each layer being ‘infinitesimally thin’ (e.g., Chen et al. (2018); Li et al. (2018)). As in the case of optimization, continuous-time frameworks enable the use of a different set of tools for studying standard questions of relevance, such as sampling and inference, i.e., forward and backward passes through the network.

In this work, we consider a class of generative models where the latent object X={Xt}t∈X=\{X_{t}\}_{t\in} is a dd-dimensional diffusion and the observable object YY is a random element of some space Y\mathsf{Y}:

where (1.1a) is a dd-dimensional Itô diffusion process whose drift b(⋅,⋅;θ)b(\cdot,\cdot;\theta) is a member of some parametric function class, such as multilayer feedforward neural nets, and (1.1b) prescribes an observation model for generating YY conditionally on X1X_{1}. To the best of our knowledge, generative models of this form were first considered by Movellan et al. (2002) as a noisy continuous-time counterpart of recurrent neural nets. More recently, Hashimoto et al. (2016) and Ryder et al. (2018) investigated the use of discrete-time recurrent neural nets to approximate the population dynamics of biological systems that are classically modeled by diffusions. It is natural to view (1.1) as a continuum limit of deep generative models introduced by Rezende et al. (2014) — in fact, as we explain in Section 4, one can simulate a model of the above form using a deep generative model with a random number of layers. Alternatively, one can think of (1.1) as a neural stochastic differential equation, in analogy to the neural ODE framework of Chen et al. (2018).

There are three main questions that are natural to ask concerning the usefulness of such models: How expressive can they be? How might one sample from such a diffusion process? How might one perform inference on it? As our first contribution, we provide a unified view of sampling and inference through the lens of stochastic control. In particular, by adding a control utu_{t} to the drift of some reference diffusion, one can obtain a desired distribution at t=1t=1, and the minimal-cost control that yields exact sampling is given by the so-called Föllmer drift (Föllmer, 1985; Dai Pra, 1991; Lehec, 2013; Eldan and Lee, 2018). Complementarily, we show that any control utu_{t} added to the drift b(⋅,t;θ)b(\cdot,t;\theta) in (1.1a) leads to a variational upper bound on the log-likelihood of a given tuple of observations (y1,…,yn)(y_{1},\ldots,y_{n}). Variational inference then reduces to minimizing the expected control cost over a tractable class of controls. While we provide a unifying viewpoint that captures both sampling and inference, we emphasize that this is a synthesis of a number of existing results, and serves as a conceptual underpinning and motivation for our subsequent analysis. Specifically, after establishing that diffusion-based generative models can be effectively worked with, we explore their expressive power vis-à-vis neural nets: We show that, if the target density of X1X_{1} can be efficiently approximated using a neural net, then the corresponding Föllmer drift can also be efficiently approximated by a neural net, such that the terminal law of the diffusion with this approximate drift is ε\varepsilon-close to the target density in Kullback–Leibler divergence. Finally, we investigate unbiased simulation methods for generative models with underlying diffusion processes and provide bounds on the variance of the resulting estimators.

To arrive at the unified perspective of sampling and inference, we begin by formulating a stochastic control problem that captures all of our desiderata: sampling from a target probability law μ\mu at terminal time t=1t=1; a set of tractable controls that might be used to take it there; and an appropriate notion of cost with that captures both the ‘control effort’ and the terminal cost that quantifies the discrepancy between the final probability law and the target measure μ\mu.

Our first result, stated in Theorem 2.1, is an explicit characterization of the value function of this control problem, which has a free-energy interpretation and can be understood from an information-theoretic viewpoint: the Kullback–Leibler divergence between the law of the path of the uncontrolled diffusion and that of the path of the controlled diffusion is the expected total work done by the control. The negative free energy with respect to the uncontrolled process is a lower bound on that of the controlled process after accounting for the work done, and equality is achieved by the optimal control. As pointed out above, this result is a synthesis of a number of existing results, and its main purpose is to motivate the use of controlled diffusions in probabilistic generative modeling.

Finally, we discuss the issue of unbiased simulation with the goal of estimating expected values of functions of X1X_{1}. The standard Euler–Maruyama scheme (Graham and Talay, 2013, Chap. 7) is straightforward, but produces a biased estimator. Typically, one uses Monte Carlo sampling to reduce the variance; if the estimator is biased, then the variance will be reduced by a factor of N1−δN^{1-\delta} for some δ∈(0,1)\delta\in(0,1), instead of the optimal reduction by the factor of NN, for NN Monte Carlo runs. One way to obtain an unbiased estimator is to employ a random discretization of the time interval $$, where the sampling times are generated by a point process on the real line. Unbiased simulation schemes of this type have been proposed and analyzed by Bally and Kohatsu-Higa (2015), Andersson and Kohatsu-Higa (2017), and Henry-Labordère et al. (2017). Our final result, Theorem 4.1, builds on the latter work and presents an unbiased, finite-variance simulation scheme. Conceptually, the simulation scheme can be thought of as a deep latent Gaussian model in the sense of Rezende et al. (2014), but with a random number of layers. Unfortunately, the variance of the resulting estimator can exhibit exponential dependence on dimension. We show why this is the case via an analysis of the moment-generating function of the point process used to generate the random mesh and propose alternatives to reduce the variance.

2 Notation

Exact sampling and variational inference: a unified stochastic control viewpoint

Before addressing the specific questions posed in the Introduction, we aim to demonstrate that both sampling and variational inference in generative models of the form (1.1) can be viewed through the lens of stochastic control. We give a brief description of the relevant ideas in Appendix A; the book by Fleming and Rishel (1975) is an excellent and readable reference.

Let (Ω,F,{Ft},P)(\Omega,\mathcal{F},\{\mathcal{F}_{t}\},\mathbf{P}) be a probability space with a complete and right-continuous filtration {Ft}\{\mathcal{F}_{t}\}, and let W={Wt}W=\{W_{t}\} be a standard dd-dimensional Brownian motion adapted to {Ft}\{\mathcal{F}_{t}\}. Consider the Itô diffusion process

and we say that a control u∗∈Uu^{*}\in\mathcal{U} is optimal if Ju∗(x,t)=v(x,t)J^{u^{*}}(x,t)=v(x,t) for all xx and tt. The following theorem is, essentially, a synthesis of the results of Pavon (1989) and Dai Pra (1991):

Consider the control problem (2.4). The value function vv is given by

where ps,t(⋅)p_{s,t}(\cdot) is the transition density (2.2) of the uncontrolled process.

This result, proved in Appendix A, also admits an information-theoretic interpretation. Let P0\mathbf{P}^{0} denote the probability law of the path XX_{} of the uncontrolled diffusion process (2.1) and let Pu\mathbf{P}^{u} denote the corresponding object for the controlled diffusion (2.3). Since XX and XuX^{u} differ from each other by a change of drift, the probability measures Pu\mathbf{P}^{u} and P0\mathbf{P}^{0} are mutually absolutely continuous, and the Radon–Nikodym derivative d ⁣⁡Pu/d ⁣⁡P0\operatorname{d\!}\mathbf{P}^{u}/\operatorname{d\!}\mathbf{P}^{0} is given by the Girsanov formula (Protter, 2005)

where utTd ⁣⁡Wt\mathchar58=∑i=1dui,td ⁣⁡Wi,tu_{t}^{\hbox{\it\tiny T}}\operatorname{d\!}W_{t}\mathrel{\mathop{\mathchar 58\relax}}=\sum^{d}_{i=1}u_{i,t}\operatorname{d\!}W_{i,t}, with ui,⋅u_{i,\cdot} and d ⁣⁡Wi,⋅\operatorname{d\!}W_{i,\cdot} denoting the iith coordinates of uu and WW respectively. From (2.8), we can calculate the Kullback–Leibler divergence between Pu\mathbf{P}^{u} and P0\mathbf{P}^{0}:

Therefore, by Theorem 2.1, for any control u∈Uu\in\mathcal{U}, we can write

with equality if and only if u=u∗u=u^{*}. An inequality of this form holds more generally for real-valued measurable functions of the entire path XX_{} (Boué and Dupuis, 1998).

We will now demonstrate how both the problem of sampling and the problem of variational inference can be addressed via the above theorem.

2 Exact sampling: the Föllmer drift

Recall that, in the context of exact sampling, the objective is to construct a diffusion process {Xt}t∈\{X_{t}\}_{t\in}, such that X1X_{1} has a given target distribution μ\mu. We will consider the case when μ\mu is absolutely continuous with respect to the standard Gaussian measure γd\gamma_{d} and let ff denote the Radon–Nikodym derivative d ⁣⁡μ/d ⁣⁡γd\operatorname{d\!}\mu/\operatorname{d\!}\gamma_{d}. This problem goes back to a paper of Schrödinger (1931); for rigorous treatments, see, e.g., Jamison (1975), Föllmer (1985), Dai Pra (1991), Lehec (2013), Eldan and Lee (2018). The derivation we give below is not new (see, e.g., Dai Pra (1991, Thm. 3.1)), but the route we take is somewhat different in that we make the stochastic control aspect more explicit.

We take b(x,t)≡0b(x,t)\equiv 0 and X0=0X_{0}=0 in (2.1). Then the diffusion process {Xt}\{X_{t}\} is simply the standard dd-dimensional Brownian motion {Wt}\{W_{t}\}, which has the Gaussian transition density

Now consider the control problem (2.4) with g=fg=f. By Theorem 2.1, the value function vv is given by v(x,t)=−log⁡E[f(W1)∣Wt=x]v(x,t)=-\log\mathbf{E}[f(W_{1})|W_{t}=x], and can be computed explicitly. For 0≤t<10\leq t<1, we have

where QQ denotes the Euclidean heat semigroup (1.2). Hence, v(x,t)=−log⁡Q1−tf(x)v(x,t)=-\log Q_{1-t}f(x), and the optimal diffusion process {Xt∗}\{X^{*}_{t}\} has the drift u∗(x,t)=−∇v(x,t)=∇log⁡Q1−tf(x)u^{*}(x,t)=-\nabla v(x,t)=\nabla\log Q_{1-t}f(x). Following Lehec (2013) and Eldan and Lee (2018), we will refer to u∗u^{*} as the Föllmer drift in the sequel.

Moreover, using the entropy inequality (2.10), we can show that the Föllmer drift is optimal in the following strong sense: Consider any control u∈Uu\in\mathcal{U} with X0u=0X^{u}_{0}=0 and with the property that Law(X1u)=μ{\rm Law}(X^{u}_{1})=\mu. For any such control,

while clearly log⁡E[f(W1)]=0\log\mathbf{E}[f(W_{1})]=0. Therefore, it follows from (2.10) that, for any such control uu,

with equality if and only if u=u∗u=u^{*}. Thus, the Föllmer drift has the minimal ‘energy’ among all admissible controls that induce the distribution μ\mu at t=1t=1, and this energy is precisely the Kullback–Leibler divergence between μ\mu and the standard Gaussian measure γd\gamma_{d} (Dai Pra, 1991; Lehec, 2013; Eldan and Lee, 2018).

3 Variational inference

We now turn to the problem of variational inference. We are given an nn-tuple of observations y=(y1,…,yn)∈Yn\boldsymbol{y}=(y_{1},\ldots,y_{n})\in\mathsf{Y}^{n}, and wish to upper-bound the negative log-likelihood

where L(y;θ)\mathchar58=−log⁡E[q(y∣X1)]L(y;\theta)\mathrel{\mathop{\mathchar 58\relax}}=-\log\mathbf{E}[q(y|X_{1})] and {Xt}\{X_{t}\} is the diffusion process (1.1).

We take b=b(⋅,⋅;θ)b=b(\cdot,\cdot;\theta) in (2.1) and consider the control problem (2.4) with g(x)=q(y∣x)g(x)=q(y|x) for some fixed y∈Yy\in\mathsf{Y}. Then, by Theorem 2.1, any control u∈Uu\in\mathcal{U} gives rise to an upper bound on L(y;θ)L(y;\theta):

Expressiveness

Now that we have shown that generative models of the form (1.1) allow for both sampling and variational inference, we turn to the analysis of their expressiveness. Specifically, our objective is to show that, by working with a suitable structured class of drifts b(⋅,⋅;θ)b(\cdot,\cdot;\theta), we can achieve approximate sampling from a rich class of distributions at the terminal time t=1t=1.

Let μ\mu be the target probability measure for X1X_{1}. We assume that μ\mu is absolutely continuous with respect to γd\gamma_{d} and let ff denote the Radon–Nikodym derivative d ⁣⁡μ/d ⁣⁡γd\operatorname{d\!}\mu/\operatorname{d\!}\gamma_{d}. From Section 2.2 we know that the diffusion process governed by the Itô SDE

with the Föllmer drift b(x,t)=∇log⁡Q1−tf(x)b(x,t)=\nabla\log Q_{1-t}f(x) has the property that μ=Law(X1)\mu={\rm Law}(X_{1}), and, moreover, it is optimal in the sense that it minimizes the ‘energy’ 12∫01E∥ut∥2d ⁣⁡t\frac{1}{2}\int^{1}_{0}\mathbf{E}\|u_{t}\|^{2}\operatorname{d\!}t among all adapted drifts {ut}\{u_{t}\} that result in distribution μ\mu at time t=1t=1. The main result of this section is as follows: If the Radon–Nikodym derivative ff can be approximated efficiently by multilayer feedforward neural nets, then, for any ε>0\varepsilon>0, there exists a drift b^(x,t)=b^(x,t;θ)\widehat{b}(x,t)=\widehat{b}(x,t;\theta) that can be implemented exactly by a neural net whose parameters θ\theta do not depend on time or space, and the terminal law μ^\mathchar58=Law(X^1)\widehat{\mu}\mathrel{\mathop{\mathchar 58\relax}}={\rm Law}(\widehat{X}_{1}) of the diffusion process

is an ε\varepsilon-approximation to μ\mu in the KL-divergence: D(μ∥μ^)≤εD(\mu\|\widehat{\mu})\leq\varepsilon. Moreover, the size of the neural net that implements the approximate Föllmer drift b^\widehat{b} can be estimated explicitly in terms of the size of a suitable approximating neural net for ff.

We begin by imposing some assumptions on ff. The first assumption is needed to guarantee enough regularity for the Föllmer drift:

The function ff is differentiable, both ff and ∇f\nabla f are LL-Lipschitz, and there exists a constant c∈(0,1]c\in(0,1], such that f≥cf\geq c everywhere.

We assume that the activation function σ\sigma is differentiable and universal, in the sense that any univariate Lipschitz function which is nonconstant on a bounded interval can be approximated arbitrarily well by an element of N2σ\mathcal{N}^{\sigma}_{2}:

We also make the following assumption regarding approximability of ff by neural nets:

Typical results on neural net approximation are concerned with approximating a given function uniformly on a given compact set. By contrast, Assumption 3.3 requires uniform approximability of both ff and its gradient ∇f\nabla f on a compact set by some neural net f^\widehat{f} and its gradient ∇f^\nabla\widehat{f}. Such simultaneous approximation guarantees can also be found in the literature, see, e.g., Hornik et al. (1990); Yukich et al. (1995); Li (1996). See Safran and Shamir (2017) for a discussion of various trade-offs between depth and width (maximum number of neurons per layer) in neural net approximation.

We are now in a position to state the main result of this section:

with the drift b^(x,t)=v^(x,1−t)\widehat{b}(x,t)=\widehat{v}(x,\sqrt{1-t}), then μ^\mathchar58=Law(X^1)\widehat{\mu}\mathrel{\mathop{\mathchar 58\relax}}={\rm Law}(\widehat{X}_{1}) satisfies D(μ∥μ^)≤εD(\mu\|\widehat{\mu})\leq\varepsilon.

Let μ\mathchar58=Law(X)\boldsymbol{\mu}\mathrel{\mathop{\mathchar 58\relax}}={\rm Law}(X_{}) and μ^\mathchar58=Law(X^)\widehat{\boldsymbol{\mu}}\mathrel{\mathop{\mathchar 58\relax}}={\rm Law}(\widehat{X}_{}). The Girsanov formula gives

where the interchange of the integral and the expectation follows from Fubini’s theorem because both bb and b^\widehat{b} are bounded by Lemma B.1 in Appendix B and (3.7). We now proceed to estimate the integrand. For each t∈t\in,

where T1≤εT_{1}\leq\varepsilon by (3.6). To estimate T2T_{2}, we first observe that, since the Föllmer drift is bounded in norm by L/cL/c by Lemma B.1, we have

(Bubeck et al., 2018, Lemma 3.8). Therefore,

Choosing RR large enough to guarantee T2≤εT_{2}\leq\varepsilon and putting everything together, we obtain D(μ∥μ^)≤εD(\boldsymbol{\mu}\|\widehat{\boldsymbol{\mu}})\leq\varepsilon. Therefore, D(μ∥μ^)≤D(μ∥μ^)≤εD(\mu\|\widehat{\mu})\leq D(\boldsymbol{\mu}\|\widehat{\boldsymbol{\mu}})\leq\varepsilon by the data processing inequality.

Unbiased simulation

In particular, for each 1≤i≤n+11\leq i\leq n+1,

where Cg(x)>0C_{g}(x)>0 is some constant that depends on gg and on the starting point xx (Graham and Talay, 2013). Recently, several authors (Bally and Kohatsu-Higa, 2015; Andersson and Kohatsu-Higa, 2017; Henry-Labordère et al., 2017) have studied unbiased simulation of SDEs using Euler–Maruyama schemes with random partitions, where the partition breakpoints are generated by a Poisson point process on the real line. In this section, we build on this line of work and present a scheme for unbiased simulation in the context of generative models of the form (1.1) that uses random partitions generated by arbitrary renewal processes (Kallenberg, 2002, Chap. 9) with sufficiently well-behaved densities of interrenewal times. Our analysis closely follows that of Henry-Labordère et al. (2017), but we provide a more refined analysis of the variance of the resulting estimators.

We first describe the simulation procedure. In what follows, we will drop the index θ\theta from the drift to keep the notation clean. Let τ1,τ2,…\tau_{1},\tau_{2},\ldots be i.i.d. nonnegative random variables with an absolutely continuous distribution whose support contains the interval [0,1+ε][0,1+\varepsilon] for some ε>0\varepsilon>0. Let FτF_{\tau} and fτf_{\tau} denote the cdf and the pdf of τ1\tau_{1}. Let T0=0T_{0}=0 and

Define a process X^={X^t}t∈\widehat{X}=\{\widehat{X}_{t}\}_{t\in} with X^0=x\widehat{X}_{0}=x as the Euler–Maruyama scheme (4.1) on the random partition 0=T0<T1<…<TN<TN+1≡10=T_{0}<T_{1}<\ldots<T_{N}<T_{N+1}\equiv 1 of $$, and let

This process can be interpreted as a deep generative model in the sense of Rezende et al. (2014), but with a random number of layers. Specifically, let ξ1,ξ2,…∼i.i.d.γd\xi_{1},\xi_{2},\ldots\stackrel{{\scriptstyle{\rm i.i.d.}}}{{\sim}}\gamma_{d} be independent of {τi}\{\tau_{i}\}, and define X^(0),X^(1),…,X^(N+1)\widehat{X}^{(0)},\widehat{X}^{(1)},\ldots,\widehat{X}^{(N+1)} recursively by taking X^(0)=x\widehat{X}^{(0)}=x and

where =d\stackrel{{\scriptstyle{\rm d}}}{{=}} denotes equality of probability distributions. We are now ready to state our main result on unbiased simulation (see Appendix E for the proof):

Suppose that the drift b(x,t)b(x,t) is uniformly bounded, Lipschitz in xx, and 12\frac{1}{2}-Hölder in tt, i.e., for some constants b∞>0b_{\infty}>0 and Lb>0L_{b}>0,

where K=poly(∣g(x)∣,Lb,Lg,b∞,d)K={\rm poly}(|g(x)|,L_{b},L_{g},b_{\infty},d), κ=log⁡poly(C,Lb,Lg,b∞,d)\kappa=\log{\rm poly}(C,L_{b},L_{g},b_{\infty},d), and MN(θ)\mathchar58=E[exp⁡(θN)]M_{N}(\theta)\mathrel{\mathop{\mathchar 58\relax}}=\mathbf{E}[\exp(\theta N)] is the moment-generating function of NN.

For example, the type of drift used in the construction of Section 3 has the property (4.3). The key implication of Theorem 4.1 is that the variance of the estimator ψ^\widehat{\psi} is controlled by the moment-generating function of NN, and is therefore related to the tail behavior of the sums Sk\mathchar58=∑i=1kτiS_{k}\mathrel{\mathop{\mathchar 58\relax}}=\sum^{k}_{i=1}\tau_{i}. In some cases, one can calculate MNM_{N} in closed form. For instance, if we take τ1,τ2,…∼i.i.d.Exp(λ)\tau_{1},\tau_{2},\ldots\stackrel{{\scriptstyle{\rm i.i.d.}}}{{\sim}}{\rm Exp}(\lambda) for some λ>0\lambda>0, then the estimator (4.2) reduces to the one introduced by Henry-Labordère et al. (2017). Since Fτ(s)=1−e−λsF_{\tau}(s)=1-e^{-\lambda s} and fτ(s)=λe−λsf_{\tau}(s)=\lambda e^{-\lambda s} for s≥0s\geq 0, (4.4) holds with C=1/λC=1/\lambda and a=λa=\lambda; moreover, N∼Pois(λ)N\sim{\rm Pois}(\lambda) with

Thus, Var[ψ^]{\rm Var}[\widehat{\psi}] grows like exp⁡(d2)\exp(d^{2}), as already observed by Henry-Labordère et al. (2017). One way to reduce the variance is to choose the τi\tau_{i}’s with lighter tails. To see this, we need estimates of ΛN\Lambda_{N}; the following lemma provides a computable upper bound:

Let MτM_{\tau} denote the moment-generating function of τ\tau. Then

As an example, suppose τ1,τ2,…\tau_{1},\tau_{2},\ldots are i.i.d. samples from the uniform distribution on [0,T][0,T] for some T>1T>1. Then

and it is a matter of straightforward but lengthy algebra to show that Mτ(−β)≤e−2(θ+1)M_{\tau}(-\beta)\leq e^{-2(\theta+1)} for all β\beta satisfying

Using this in (4.6) yields the estimate MN(θ)≲epoly(θ)M_{N}(\theta)\lesssim e^{{\rm poly}(\theta)}. The density of a Uniform(0,T){\rm Uniform}(0,T) random variable clearly satisfies (4.4). Thus, applying Theorem 4.1 to the estimator (4.2) with τi∼i.i.d.Uniform(0,T)\tau_{i}\stackrel{{\scriptstyle{\rm i.i.d.}}}{{\sim}}{\rm Uniform}(0,T), we see that its variance scales quasipolynomially in dd, i.e., Var[ψ^]≲epolylog(d){\rm Var}[\widehat{\psi}]\lesssim e^{{\rm polylog}(d)}. However, choosing τi\tau_{i}’s with lighter tails will generally lead to larger values of NN, i.e., a deeper generative model will be needed.

Appendix A The proof of Theorem 2.1

We first need some background on controlled diffusion processes, see, e.g., Fleming and Rishel (1975). As in Section 2, let U\mathcal{U} be the set of controls, where each u∈Uu\in\mathcal{U} defines a controlled diffusion governed by the Itô SDE

where Lt\mathcal{L}_{t} is the (time-varying) generator of the diffusion (2.1):

The PDE (A.2) is called the Bellman equation associated to the control problem (A.1).

In fact, the control (A.4) is optimal among a much wider class of adapted controls, i.e., all stochastic processes {ut}t∈\{u_{t}\}_{t\in} adapted to the filtration {Ft}\{\mathcal{F}_{t}\}. The class U\mathcal{U} defined above consists of so-called Markov controls, where utu_{t} is a deterministic function of XtuX^{u}_{t} and tt. In that case, the controlled diffusion XuX^{u} is a Markov process.

We now turn to the proof of Theorem 2.1. The first step is to use the logarithmic transformation due to Fleming (1978); see also Fleming and Sheu (1985); Sheu (1991). Consider the function h(x,t)\mathchar58=E[g(X1)∣Xt=x]h(x,t)\mathrel{\mathop{\mathchar 58\relax}}=\mathbf{E}[g(X_{1})|X_{t}=x]. By the Feynman–Kac formula (Kallenberg, 2002, Thm. 24.1), this function is a C2,1C^{2,1} solution of the Cauchy problem

It is a matter of simple calculus to verify that v(x,t)=−log⁡h(x,t)v(x,t)=-\log h(x,t) solves the Cauchy problem

Moreover, using the variational representation

where the optimizer is given by α∗=−∇v\alpha^{*}=-\nabla v, it is readily verified that (A.6) is the Bellman equation (A.2) associated to the control problem (2.4). Hence, by the verification theorem, v(x,t)=−log⁡h(x,t)v(x,t)=-\log h(x,t) is the value function we seek, and the optimal control is given by u∗(x,t)=−∇v(x,t)u^{*}(x,t)=-\nabla v(x,t).

Since hh solves (A.5), the transition density of {Xt∗}\{X^{*}_{t}\} is given by (2.7) by a result of Jamison (1975) and Dai Pra (1991).

Appendix B Regularity properties of f𝑓f and the Föllmer drift

We first show that Assumption 3.1 holds for Gibbs measures

Likewise, the Lipschitz continuity of ∇f\nabla f follows from the Lipschitz continuity of ∇F\nabla F: since ∇e−F=−e−F∇F\nabla e^{-F}=-e^{-F}\nabla F, we have

Finally, suppose that FF is also bounded from above, F≤aF\leq a for some a>0a>0. Then f≥cf\geq c everywhere, where 0<c≤10<c\leq 1 because both μ\mu and γd\gamma_{d} are probability measures.

We will also need the following simple lemma:

Under Assumption 3.1, the Föllmer drift b(x,t)=∇log⁡Q1−tf(x)b(x,t)=\nabla\log Q_{1-t}f(x) is bounded in norm by L/cL/c and is Lipschitz with Lipschitz constant L/c+L2/c2L/c+L^{2}/c^{2}, where LL is the maximum of the Lipschitz constants of ff and ∇f\nabla f.

Appendix C Uniform approximation of the heat semigroup by a finite sum

In this appendix, we prove the following result, which is used in the proof of Theorem 3.2:

We gather some preliminaries first. We recall the definition of the Orlicz exponential norm of order 22 (Giné and Nickl, 2016, Sec. 2.3): for a real-valued random variable UU,

The ψ2\psi_{2} norm dominates the L2L^{2} norm ∥U∥2\mathchar58=(E∣U∣2)1/2\|U\|_{2}\mathrel{\mathop{\mathchar 58\relax}}=(\mathbf{E}|U|^{2})^{1/2}: ∥U∥2≤∥U∥ψ2\|U\|_{2}\leq\|U\|_{\psi_{2}}. A simple application of Markov’s inequality leads to the following tail bound:

Let U=∥Z∥U=\|Z\|, where Z∼γdZ\sim\gamma_{d}. Then ∥U∥ψ2≤d+6\|U\|_{\psi_{2}}\leq\sqrt{d}+\sqrt{6}.

This implies that ∥ξ∥ψ2≤6\|\xi\|_{\psi_{2}}\leq\sqrt{6} (Giné and Nickl, 2016, Eq. (2.25)). Taking F(Z)=UF(Z)=U and using the triangle inequality, we obtain

where EU≤∥U∥2=d\mathbf{E}U\leq\|U\|_{2}=\sqrt{d} by Jensen’s inequality. ∎

Let U1,…,UNU_{1},\ldots,U_{N}, N≥2N\geq 2, be a collection of (possibly dependent) random variables with finite ψ2\psi_{2} norms. Then we have the following maximal inequality:

which is a random variable under standard regularity assumptions on G\mathcal{G}, such as separability. The expected supremum E∥PN−P∥G\mathbf{E}\|P_{N}-P\|_{\mathcal{G}} is controlled by the covering numbers of G\mathcal{G}. The L2(Q)L^{2}(Q) covering numbers of G\mathcal{G} with respect to a probability measure QQ on Z\mathsf{Z} are defined by

The Koltchinskii–Pollard ε\varepsilon-entropy of G\mathcal{G} is given by

where the supremum is over all probability measures QQ supported on finitely many points of Z\mathsf{Z}. Then we have the following bound on the expectation of ∥PN−P∥G\|P_{N}-P\|_{\mathcal{G}} (Theorem 3.54 and Eq. (3.177) in Giné and Nickl (2016)):

Let G\mathcal{G} be a class of functions containing , such that

Let Z1,…,ZNZ_{1},\ldots,Z_{N} be i.i.d. copies of a random element ZZ of Z\mathsf{Z} with probability law PP, such that F∈L2(P)F\in L^{2}(P). Then

We also have the following generalization of Talagrand’s concentration inequality to unbounded classes of functions, due to Adamczak (2008) (see also Sec. 2.3 in Koltchinskii (2011)):

Let G\mathcal{G} be a class of real-valued functions on Z\mathsf{Z} with envelope FF. Then there exists an absolute constant C>0C>0, such that, for any γ>0\gamma>0,

With these preliminaries out of the way, we have the following result:

with probability at least 1−e−γ1-e^{-\gamma}.

Thus we can estimate the L2(Q)L^{2}(Q) covering numbers of G\mathcal{G} by

where (u)+\mathchar58=u∨0(u)_{+}\mathrel{\mathop{\mathchar 58\relax}}=u\vee 0, and therefore

where we have used the triangle inequality for ∥⋅∥ψ2\|\cdot\|_{\psi_{2}}, as well as the maximal inequality (C.3). Using the estimates (C.5), (C.6), and (C.7) in Adamczak’s inequality, we obtain (C.4). ∎

We are now ready to prove Theorem C.1. The proof is via the probabilistic method. Let ε>0\varepsilon>0 and R>0R>0 be given, and choose

We will show that P{E0∪E1∪E2}<1\mathbf{P}\{E_{0}\cup E_{1}\cup E_{2}\}<1, which will imply that there exists at least one realization of Z1,…,ZNZ_{1},\ldots,Z_{N} verifying the statement of the theorem.

By Lemma C.1, U=∥Z∥U=\|Z\| satisfies ∥U∥ψ2≤d+6\|U\|_{\psi_{2}}\leq\sqrt{d}+\sqrt{6}, and therefore UN∗\mathchar58=max⁡n≤NUnU^{*}_{N}\mathrel{\mathop{\mathchar 58\relax}}=\max_{n\leq N}U_{n} satisfies ∥UN∗∥ψ2≤32(d+6)log⁡N\|U^{*}_{N}\|_{\psi_{2}}\leq\sqrt{32(d+6)\log N} by the maximal inequality (C.3). Consequently, it follows from (C.2) that

Moreover, since the function ff and all of its partial derivatives are LL-Lipschitz, Lemma C.4 (with γ=log⁡4(d+1)\gamma=\log 4(d+1)) and the union bound give P{E1∪E2}≤1/4\mathbf{P}\{E_{1}\cup E_{2}\}\leq 1/4. Therefore, P{E0∪E1∪E2}≤1/2\mathbf{P}\{E_{0}\cup E_{1}\cup E_{2}\}\leq 1/2.

Appendix D The proof of Theorem 3.2: uniform approximation of the Föllmer drift by a neural net

These approximations suffice for our purposes. However, if one uses the ReLU activation function x↦x∨0x\mapsto x\vee 0, then both multiplication and reciprocals can be ε\varepsilon-approximated by neural nets with size and depth polylogarithmic in 1/ε1/\varepsilon (Yarotsky, 2017; Telgarsky, 2017).

which is a 22-layer neural net with size m≤8cσM2δ+1m\leq 8c_{\sigma}\frac{M^{2}}{\delta}+1. Indeed, using the polarization identity 4xy=(x+y)2−(x−y)24xy=(x+y)^{2}-(x-y)^{2}, we have

For approximating the reciprocal, consider the univarite function

which is (1/a2)(1/a^{2})-Lipschitz and constant outside of the interval [−b,b][-b,b]. The existence of the function qq with the stated properties follows immediately from Assumption 3.2. ∎

can be computed by a neural net of size N⋅poly(1/δ,d,L,R)N\cdot{\rm poly}(1/\delta,d,L,R), such that

where we have used the fact that δ≤c/4\delta\leq c/4. Without loss of generality, we may assume that L≥1L\geq 1. Then, for any x∈Bd(R)x\in\mathsf{B}^{d}(R) and t∈t\in,

where we have used Lemma B.1 to bound ∥∇QtfQtf∥≤L/c\|\frac{\nabla Q_{t}f}{Q_{t}f}\|\leq L/c. In other words, ∇log⁡φ^(x,t)\nabla\log\widehat{\varphi}(x,\sqrt{t}) approximates ∇log⁡Qtf(x)\nabla\log Q_{t}f(x) to accuracy ε/2\varepsilon/2 uniformly on Bd(R)×\mathsf{B}^{d}(R)\times. It remains to approximate ∇log⁡φ^(x,t)\nabla\log\widehat{\varphi}(x,\sqrt{t}) by a neural net to accuracy ε/2\varepsilon/2.

To that end, we first represent ∇log⁡φ^(x,t)\nabla\log\widehat{\varphi}(x,\sqrt{t}) as a composition of several elementary operations and then approximate each step by a neural net. Specifically, the computation of vi=∂ilog⁡φ^(x,t)v_{i}=\partial_{i}\log\widehat{\varphi}(x,\sqrt{t}) can be represented as a computation graph with the following structure:

Compute a=φ^(x,t)a=\widehat{\varphi}(x,\sqrt{t}).

Compute bi=∂iφ^(x,t)b_{i}=\partial_{i}\widehat{\varphi}(x,\sqrt{t}).

Given xx and t\sqrt{t}, aa is computed by a neural net with activation function σ\sigma, of size poly(1/δ,d,L,R){\rm poly}(1/\delta,d,L,R) and depth poly(1/δ,d,L,R){\rm poly}(1/\delta,d,L,R). Therefore, by the cheap gradient principle (Lemma D.1), bib_{i} can be computed by a neural net of size poly(1/δ,d,L,R){\rm poly}(1/\delta,d,L,R), where the activation function of each neuron is an element of the set {σ,σ′}\{\sigma,\sigma^{\prime}\}. Next, since aa takes values in [c/2,L(R+d)+f(0)+c/2][c/2,L(R+\sqrt{d})+f(0)+c/2], by Lemma D.2 the reciprocal r=1/ar=1/a can be computed to accuracy ε/(4Ld)\varepsilon/(4L\sqrt{d}) by a 22-layer neural net with activation function σ\sigma and of size

Let r^\widehat{r} denote the resulting approximation. Then, since ∣bi∣≤2L|b_{i}|\leq 2L and ∣r^∣≤2/c+ε/(4Ld)≤4/c|\widehat{r}|\leq 2/c+\varepsilon/(4L\sqrt{d})\leq 4/c, by Lemma D.2 the product r^bi\widehat{r}b_{i} can be approximated to accuracy ε/4d\varepsilon/4\sqrt{d} by a 22-layer neural net with activation function σ\sigma and with at most

neurons. The overall accuracy of approximation is

Appendix E Proof of Theorem 4.1

We follow the strategy of Henry-Labordère et al. (2017) and construct a sequence {ψn}n≥0\{\psi_{n}\}_{n\geq 0} of unbiased estimators, such that E[ψn]→n→∞E[ψ]\mathbf{E}[\psi_{n}]\xrightarrow{n\to\infty}\mathbf{E}[\psi], where ψ\mathchar58=lim⁡n→∞ψn\psi\mathrel{\mathop{\mathchar 58\relax}}=\lim_{n\to\infty}\psi_{n}. By a standard approximation argument, we can assume that gg is bounded and Lipschitz.

Let ΔkT\mathchar58=Tk−Tk−1\Delta^{T}_{k}\mathrel{\mathop{\mathchar 58\relax}}=T_{k}-T_{k-1} and ΔkW\mathchar58=WTk−WTk−1\Delta^{W}_{k}\mathrel{\mathop{\mathchar 58\relax}}=W_{T_{k}}-W_{T_{k-1}}, for k≥1k\geq 1. For each n≥0n\geq 0, let

where h(x,t)\mathchar58=E[g(X1)∣Xt=x]h(x,t)\mathrel{\mathop{\mathchar 58\relax}}=\mathbf{E}[g(X_{1})|X_{t}=x]. We will show that E[ψn]=E[g(X1)]\mathbf{E}[\psi_{n}]=\mathbf{E}[g(X_{1})] for all nn and that the sequence {ψn}n≥0\{\psi_{n}\}_{n\geq 0} is uniformly integrable. Then it will follow from the dominated convergence theorem that

is also an unbiased estimator. Observe that the estimator ψ^\widehat{\psi} defined in (C.2) differs from ψ\psi: instead of g(X^1)g(\widehat{X}_{1}), we have g(X^1)−g(X^N)1{N>0}g(\widehat{X}_{1})-g(\widehat{X}_{N}){\mathbf{1}}_{\{N>0\}}. Just as in Henry-Labordère et al. (2017), the term proportional to g(X^N)1{N>0}g(\widehat{X}_{N}){\mathbf{1}}_{\{N>0\}} serves as a control variate to ensure that ψ^\widehat{\psi} has finite variance. Indeed, since E[ΔN+1W∣TN]=0\mathbf{E}[\Delta^{W}_{N+1}|T_{N}]=0, it is easy to see that

and therefore E[ψ^−ψ]=0\mathbf{E}[\widehat{\psi}-\psi]=0.

This process has the infinitesimal generator

Then, by Dynkin’s formula (Kallenberg, 2002, Lemma 19.21), for any t≤s≤1t\leq s\leq 1,

and using this in (E.3), we obtain the formula

In particular, since h(x,t)=E[g(X1)∣Xt=x]h(x,t)=\mathbf{E}[g(X_{1})|X_{t}=x] by the Feynman–Kac formula, we have

where E[Mtt−M1t]=0\mathbf{E}[M^{t}_{t}-M^{t}_{1}]=0 since Mh,tM^{h,t} is a martingale.

Using Eq. (E.5) with t=0t=0 and v=v0\mathchar58=b(x,0)v=v_{0}\mathrel{\mathop{\mathchar 58\relax}}=b(x,0), we have

Recalling that T1=τ1∧1T_{1}=\tau_{1}\wedge 1 is independent of the Brownian motion {Wt}\{W_{t}\} and P[T1≥1]=P[τ1≥1]=1−Fτ(1)\mathbf{P}[T_{1}\geq 1]=\mathbf{P}[\tau_{1}\geq 1]=1-F_{\tau}(1), we have

where the last equality follows from the fact that T1=Δ1T≥1T_{1}=\Delta^{T}_{1}\geq 1 if and only if N=0N=0.

Moreover, if we change the initial condition from t=0,v=v0t=0,v=v_{0} to t=T1,v=v1\mathchar58=b(X^T1,T1)t=T_{1},v=v_{1}\mathrel{\mathop{\mathchar 58\relax}}=b(\widehat{X}_{T_{1}},T_{1}), then it follows from (E.9) that, conditionally on (X^T1,T1)(\widehat{X}_{T_{1}},T_{1}), whenever T1<1T_{1}<1,

Substituting (E.10) into (E.8) and using the fact that the event {T1<1≤T2}\{T_{1}<1\leq T_{2}\} is equivalent to {N=1}\{N=1\}, we have h(x,0)=E[ψ1]h(x,0)=\mathbf{E}[\psi_{1}]. Repeating this procedure, we have

We claim that the sequence {ψn}n≥0\{\psi_{n}\}_{n\geq 0} is uniformly integrable. To see this, first observe that, for each kk, E[∥Δk+1W∥∣∣Tk+1]≤(Δk+1Td)1/2\mathbf{E}[\|\Delta^{W}_{k+1}\|||T_{k+1}]\leq(\Delta^{T}_{k+1}d)^{1/2}. Then the uniform integrability follows from the boundedness of bb, gg, ∇h\nabla h, and from Lemma E.2 in Section E.3. Therefore, taking the limit as n→∞n\to\infty, we obtain

where the second equality follows from the dominated convergence theorem.

E.2 Variance

Let L\mathchar58=Lb∨LgL\mathrel{\mathop{\mathchar 58\relax}}=L_{b}\vee L_{g}. For 1≤k≤N+11\leq k\leq N+1, let ΔkX^\mathchar58=X^Tk+1−X^Tk\Delta^{\widehat{X}}_{k}\mathrel{\mathop{\mathchar 58\relax}}=\widehat{X}_{T_{k+1}}-\widehat{X}_{T_{k}} denote the increments of X^\widehat{X}. Since TN+1=1T_{N+1}=1, we have

Using this and (4.4), we can upper-bound ψ^\widehat{\psi} as follows:

Let Fk\mathchar58=σ(Tj,X^j\mathchar581≤j≤k)\mathcal{F}_{k}\mathrel{\mathop{\mathchar 58\relax}}=\sigma(T_{j},\widehat{X}_{j}\mathrel{\mathop{\mathchar 58\relax}}1\leq j\leq k). Then, since Law(Δk+1W∣Fk)=Law((Δk+1T)1/2Z∣Fk){\rm Law}(\Delta^{W}_{k+1}|\mathcal{F}_{k})={\rm Law}((\Delta^{T}_{k+1})^{1/2}Z|\mathcal{F}_{k}), where Z∼γdZ\sim\gamma_{d} is independent of Fk∨σ(Tk+1)\mathcal{F}_{k}\vee\sigma(T_{k+1}), we have

E.3 Auxiliary lemmas

The next lemma is used to show that the sequence {ψn}\{\psi_{n}\} is uniformly integrable:

For each n≥0n\geq 0, define the nn-simplex

with s0≡0s_{0}\equiv 0 and sn+1≡1s_{n+1}\equiv 1. Consider the partial sums Sk\mathchar58=∑i=1kτiS_{k}\mathrel{\mathop{\mathchar 58\relax}}=\sum^{k}_{i=1}\tau_{i}. Since the τi\tau_{i}’s are i.i.d., the conditional joint density of (S1,S2,…,Sn)(S_{1},S_{2},\ldots,S_{n}) given N=nN=n is equal to

where we have set s0≡0s_{0}\equiv 0. Then a calculation similar to the one in Appendix B of Andersson and Kohatsu-Higa (2017) leads to

where d ⁣⁡s\operatorname{d\!}s is the Lebesgue measure on Sn\mathcal{S}^{n} and

Appendix F Proof of Lemma 4.1

For each t≥0t\geq 0, let Nt\mathchar58=max⁡{k\mathchar58Sk<t≤Sk+1}N_{t}\mathrel{\mathop{\mathchar 58\relax}}=\max\{k\mathrel{\mathop{\mathchar 58\relax}}S_{k}<t\leq S_{k+1}\}. Then N1=NN_{1}=N and Tn=SnT_{n}=S_{n} for n≤Nn\leq N. Moreover, {Nt}t≥0\{N_{t}\}_{t\geq 0} is a renewal process with renewal times {Sk}k≥0\{S_{k}\}_{k\geq 0} and i.i.d. interrenewal times with pdf fτf_{\tau}. The moment-generating function of MtM_{t} can be upper-bounded as follows (Glynn and Whitt, 1994):

Using Markov’s inequality and the fact that the τi\tau_{i}’s are i.i.d., we can further estimate

Substituting these estimates into (F.1) and optimizing over β\beta, we get (4.6).

Acknowledgments

The authors would like to thank Matus Telgarsky for many enlightening discussions. This work was supported in part by the NSF CAREER award CCF-1254041, in part by the Center for Science of Information (CSoI), an NSF Science and Technology Center, under grant agreement CCF-0939370, in part by the Center for Advanced Electronics through Machine Learning (CAEML) I/UCRC award no. CNS-16-24811, and in part by the Office of Naval Research under grant no. N00014-12-1-0998.

References