Skip to content
Is the Normal Distribution Curved?Chapter 6 Two Gradient Flows

Chapter 6 Two Gradient Flows

This chapter and the next form the climax of the book. For one and the same function F⁢(m,Σ)=KL⁡(𝒩⁢(m,Σ)∥γ) on the Gaussian family, we find its gradient flows with respect to two metrics and compare them. The contents are as follows.

  • •

    We show that the gradient flow of F with respect to the Wasserstein metric gW is exactly the time evolution of the law of the OU process (Section 6.1).

  • •

    We find the gradient flow of F with respect to the Fisher metric gF; it is a geometric interpolation along an e-geodesic (Section 6.2).

  • •

    We compare the orbits of the two flows and determine the initial values for which they coincide (Section 6.3).

  • •

    We show that neither flow is a gradient flow for the other metric (Section 6.4).

We use the following.

  • •

    From Chapter 1, the formula for F (Proposition 1.6) and the OU flow on Gaussians (Definition 1.9, Proposition 1.10).

  • •

    From Chapter 2, gradients and gradient flows (Definition 2.7, Definition 2.9, Proposition 2.10) and geodesics (Definition 2.13, Definition 2.14).

  • •

    From Chapter 3, the Fisher metric of the Gaussian family (Proposition 3.10) and its geodesics (Theorem 3.12).

  • •

    From Chapter 4, exponential families, Bregman divergences and e-geodesics (Example 4.2, Proposition 4.3, Proposition 4.13, Definition 4.15).

  • •

    From Chapter 5, the Wasserstein metric (Lemma 5.9, Definition 5.11, Proposition 5.10).

We do not treat the theory of gradient flows on the space P2⁢(ℝd) of all probability distributions. In this chapter we only introduce it without proof in Remark 6.4. For this, see the paper of Jordan–Kinderlehrer–Otto [JKO98], Otto’s paper [OTT01] and Chapter 9.

In this chapter we regard ℝd×Symd+ as an open subset of ℝd×Symd. A tangent vector at a point (m,Σ) is thus a pair (m˙,Σ˙)∈ℝd×Symd. We write the differential of a function f as d⁢f⁢(m˙,Σ˙)=dd⁢ε⁢f⁢(m+ε⁢m˙,Σ+ε⁢Σ˙)|ε=0. The gradient grad⁡f is the vector satisfying g⁢(grad⁡f,v)=d⁢f⁢(v) for every tangent vector v (Definition 2.7). A gradient flow is a solution of x˙=−grad⁡f⁢(x), and we consider only times t≥0. For d=1 we use (m,σ)∈ℍ as coordinates, where σ=Σ1/2.

6.1 The OU Process as a Wasserstein Gradient Flow

We first compute the differential of F.

Lemma 6.1.

For (m,Σ)∈ℝd×Symd+ and (m˙,Σ˙)∈ℝd×Symd,

d⁢F⁢(m˙,Σ˙)=m⋅m˙+12⁢tr⁡((I−Σ−1)⁢Σ˙). (6.1)
Proof.

By Proposition 1.6, F⁢(m,Σ)=12⁢(tr⁡Σ+|m|2−d−log⁢detΣ). The terms tr⁡Σ and |m|2 contribute 12⁢tr⁡Σ˙ and m⋅m˙. We compute the remaining term. Since Σ−1/2⁢Σ˙⁢Σ−1/2 is symmetric, let μ1,…,μd be its eigenvalues. Then

det(Σ+ε⁢Σ˙)=detΣ⋅det(I+ε⁢Σ−1/2⁢Σ˙⁢Σ−1/2)=detΣ⁢∏i=1d(1+ε⁢μi),

and therefore

dd⁢ε⁢log⁢det(Σ+ε⁢Σ˙)|ε=0=∑i=1dμi=tr⁡(Σ−1/2⁢Σ˙⁢Σ−1/2)=tr⁡(Σ−1⁢Σ˙).

Putting these together gives (6.1). ∎

We first find the gradient flow for d=1. In the coordinates (m,σ) the Wasserstein metric is gW=d⁢m2+d⁢σ2 (Example 5.12). Since this is the Euclidean metric, the gradient is just the vector of partial derivatives. From F⁢(m,σ)=12⁢(m2+σ2−1)−log⁡σ we get

∂mF=m,∂σF=σ−1σ.

Hence gradW⁡F=(m,σ−1/σ), and the gradient flow equations are

m˙=−m,σ˙=1σ−σ.

Rewritten in terms of Σ=σ2, they give Σ˙=2⁢σ⁢σ˙=2−2⁢Σ. These are the equations satisfied by the OU flow m⁢(t)=e−t⁢m0, Σ⁢(t)=e−2⁢t⁢Σ0+1−e−2⁢t (Definition 1.9). The same holds for general d.

Theorem 6.2 (The OU process is a Wasserstein gradient flow).

On (ℝd×Symd+,gW),

gradW⁡F⁢(m,Σ)=(m,2⁢(Σ−I)).

The symmetric matrix corresponding to this tangent vector under Lemma 5.9 is Sgrad=I−Σ−1. Therefore the gradient flow of F with respect to gW is

m˙=−m,Σ˙=2⁢I−2⁢Σ, (6.2)

and the solution starting from (m0,Σ0)∈ℝd×Symd+ is the OU flow

m⁢(t)=e−t⁢m0,Σ⁢(t)=e−2⁢t⁢Σ0+(1−e−2⁢t)⁢I(t≥0)

(Definition 1.9). For d=1, in the coordinates (m,σ), we have gradW⁡F=(m,σ−1/σ), and the flow is m˙=−m, σ˙=1/σ−σ.

Proof.

For tangent vectors (m˙i,Σ˙i) (i=1,2), let Si be the symmetric matrix corresponding to them under Lemma 5.9. Since Σ˙2=S2⁢Σ+Σ⁢S2, we have tr⁡(S1⁢Σ˙2)=tr⁡(S1⁢S2⁢Σ)+tr⁡(S1⁢Σ⁢S2). Taking transposes and using the symmetry of S1, S2 and Σ, and then the cyclicity of the trace, we get tr⁡(S1⁢S2⁢Σ)=tr⁡(Σ⁢S2⁢S1)=tr⁡(S1⁢Σ⁢S2). Hence tr⁡(S1⁢Σ˙2)=2⁢tr⁡(S1⁢Σ⁢S2). Writing the metric of Definition 5.11 as an inner product, we therefore obtain

gW⁢((m˙1,Σ˙1),(m˙2,Σ˙2))=m˙1⋅m˙2+tr⁡(S1⁢Σ⁢S2)=m˙1⋅m˙2+12⁢tr⁡(S1⁢Σ˙2).

Put Sgrad=I−Σ−1. Then Sgrad⁢Σ+Σ⁢Sgrad=2⁢(Σ−I), so Sgrad is the symmetric matrix corresponding to the tangent vector (m,2⁢(Σ−I)). For any tangent vector v=(m˙,Σ˙), the formula above and Lemma 6.1 give

gW⁢((m,2⁢(Σ−I)),v)=m⋅m˙+12⁢tr⁡((I−Σ−1)⁢Σ˙)=d⁢F⁢(v).

This means gradW⁡F=(m,2⁢(Σ−I)).

The gradient flow equations are therefore (6.2). They form a linear differential equation with constant coefficients, so the solution is uniquely determined by its initial value. The OU flow satisfies m˙=−e−t⁢m0=−m and Σ˙=−2⁢e−2⁢t⁢(Σ0−I)=2⁢I−2⁢Σ. Moreover, for t≥0, Σ⁢(t) is a convex combination of two positive definite matrices and so stays in Symd+. Hence the solution is the OU flow. The claim for d=1 is the computation preceding the theorem. ∎

The gradient flow of Theorem 6.2 also agrees with the OU process when viewed as a velocity field on ℝd. The density of the law of the OU process satisfies the Fokker–Planck equation ∂tp=Δ⁢p+div⁡(x⁢p) (Proposition 1.10). When p>0 we have Δ⁢p=div⁡(p⁢∇log⁡p), so this equation can be written as

∂tp+div⁡(p⁢v)=0,v=−∇log⁡p−x.

In other words, p satisfies the continuity equation for the velocity field v.

Proposition 6.3.

Let p be the density of 𝒩⁢(m,Σ). The velocity field of the Fokker–Planck equation is

v⁢(x)=−∇log⁡p⁢(x)−x=(Σ−1−I)⁢(x−m)−m.

It equals the affine velocity field m˙+S⁢(x−m) corresponding, under Proposition 5.10, to the tangent vector (m˙,Σ˙)=(−m,2⁢I−2⁢Σ) of the OU process.

Proof.

From log⁡p⁢(x)=−12⁢(x−m)⊤⁢Σ−1⁢(x−m)+(const) we get ∇log⁡p⁢(x)=−Σ−1⁢(x−m). Hence v⁢(x)=Σ−1⁢(x−m)−x=(Σ−1−I)⁢(x−m)−m. On the other hand, S=Σ−1−I is symmetric and satisfies S⁢Σ+Σ⁢S=2⁢I−2⁢Σ. By the uniqueness in Lemma 5.9, this is the S corresponding to the tangent vector (−m,2⁢I−2⁢Σ). Therefore m˙+S⁢(x−m)=−m+(Σ−1−I)⁢(x−m)=v⁢(x). ∎

The matrix Sgrad=I−Σ−1 of Theorem 6.2 is the matrix S=Σ−1−I of Proposition 6.3 with the sign changed. This reflects the fact that the flow moves against the gradient.

Remark 6.4 (Jordan–Kinderlehrer–Otto).

Theorem 6.2 is a statement about the finite-dimensional Gaussian family. It has an infinite-dimensional version: the Fokker–Planck equation ∂tp=Δ⁢p+div⁡(x⁢p) can be regarded as the gradient flow of KL(⋅∥γ) with respect to 𝒲2 on P2⁢(ℝd) (not proved in this book). For this, see Jordan–Kinderlehrer–Otto [JKO98] and Otto [OTT01]. From this point of view, Proposition 6.3 says the following. Starting from a Gaussian, the infinite-dimensional gradient flow stays in the Gaussian family, and its velocity field is exactly the velocity field of the gradient flow of Theorem 6.2.

6.2 The Gradient Flow for the Fisher Metric

We now find the gradient flow of the same F, this time with respect to the Fisher metric gF. We first compute for d=1. In the coordinates (m,σ) the Fisher metric is gF=(d⁢m2+2⁢d⁢σ2)/σ2, with matrix diag⁢(1/σ2,2/σ2) (Proposition 3.10). Hence

gradF⁡F=(σ2⁢∂mF,σ22⁢∂σF)=(σ2⁢m,σ⁢(σ2−1)2),

and the gradient flow equations are

m˙=−σ2⁢m,σ˙=σ⁢(1−σ2)2. (6.3)

To solve them, it is convenient to use w=1/σ2 and η=m/σ2. By (6.3),

w˙=−2⁢σ˙σ3=−(w−1),η˙=m˙σ2−2⁢m⁢σ˙σ3=−m−m⁢(w−1)=−η.

Hence w⁢(t)−1=e−t⁢(w0−1) and η⁢(t)=e−t⁢η0. The natural parameter is θ=(η,−w/2) (Example 4.2). So in the coordinate θ the flow moves along a straight line towards the natural parameter (0,−12) of γ. This holds for exponential families in general.

Theorem 6.5 (The Fisher–Rao gradient flow).

Let pθ⁢(x)=exp⁡(θ⋅T⁢(x)−ψ⁢(θ))⁢h⁢(x) (θ∈Θ) be an exponential family (Definition 4.1). Assume that the natural parameter space Θ is open and convex and that the Fisher matrix ∇2ψ⁢(θ) is positive definite for each θ. Fix θ∗∈Θ and put f⁢(θ)=KL⁡(pθ∥pθ∗). If Θ is given the Fisher metric gF=∇2ψ, then gradF⁡f⁢(θ)=θ−θ∗. Therefore the gradient flow of f starting from θ0∈Θ is

θ⁢(t)=θ∗+e−t⁢(θ0−θ∗)(t≥0).

For the Gaussian family with pθ∗=γ, we have gradF⁡F⁢(m,Σ)=(Σ⁢m,Σ2−Σ), and the gradient flow of F with respect to gF is

m˙=−Σ⁢m,Σ˙=Σ−Σ2. (6.4)

The solution starting from (m0,Σ0)∈ℝd×Symd+ is

Σ⁢(t)−1=e−t⁢Σ0−1+(1−e−t)⁢I,Σ⁢(t)−1⁢m⁢(t)=e−t⁢Σ0−1⁢m0(t≥0). (6.5)

For d=1 the flow is (6.3).

From now on we call this flow the Fisher–Rao gradient flow, or the FR flow for short. The flow of Theorem 6.2 is the OU flow of Chapter 1 (Definition 1.9).

Proof.

Setting θ′=θ∗ in Proposition 4.13 gives

f⁢(θ)=ψ⁢(θ∗)−ψ⁢(θ)−∇ψ⁢(θ)⋅(θ∗−θ).

Differentiating in θ, we get

∇f⁢(θ)=−∇ψ⁢(θ)−∇2ψ⁢(θ)⁢(θ∗−θ)+∇ψ⁢(θ)=∇2ψ⁢(θ)⁢(θ−θ∗).

By Proposition 4.3, the matrix of gF in the coordinate θ is ∇2ψ⁢(θ). Hence gradF⁡f=∇2ψ⁢(θ)−1⁢∇f⁢(θ)=θ−θ∗. The gradient flow equation θ˙=−(θ−θ∗) is linear, so its solution is uniquely determined by the initial value and is θ⁢(t)=θ∗+e−t⁢(θ0−θ∗). Since Θ is convex, θ⁢(t) stays in Θ for t≥0.

Next we treat the Gaussian family in the coordinates (m,Σ). Writing the quadratic form of Proposition 3.10 as an inner product, we have

gF⁢((a,A),(m˙,Σ˙))=a⊤⁢Σ−1⁢m˙+12⁢tr⁡(Σ−1⁢A⁢Σ−1⁢Σ˙).

Substituting (a,A)=(Σ⁢m,Σ2−Σ) and using Lemma 6.1, we get

gF⁢((Σ⁢m,Σ2−Σ),(m˙,Σ˙))=m⋅m˙+12⁢tr⁡((I−Σ−1)⁢Σ˙)=d⁢F⁢(m˙,Σ˙).

Hence gradF⁡F=(Σ⁢m,Σ2−Σ), and the gradient flow equations are (6.4). The right-hand side is polynomial in (m,Σ), so the solution is uniquely determined by the initial value.

Finally, we check that (6.5) is a solution. The matrix e−t⁢Σ0−1+(1−e−t)⁢I is a convex combination of positive definite matrices and hence positive definite, so it determines Σ⁢(t)∈Symd+. From (6.5), dd⁢t⁢Σ−1=−(Σ−1−I). On the other hand dd⁢t⁢Σ−1=−Σ−1⁢Σ˙⁢Σ−1, so Σ˙=Σ⁢(Σ−1−I)⁢Σ=Σ−Σ2. Next, the left-hand side of dd⁢t⁢(Σ−1⁢m)=−Σ−1⁢m equals −Σ−1⁢Σ˙⁢Σ−1⁢m+Σ−1⁢m˙. Hence m˙=Σ˙⁢Σ−1⁢m−m=(I−Σ)⁢m−m=−Σ⁢m. The claim for d=1 is the computation preceding the theorem. ∎

The natural parameter of the Gaussian family is θ=(Σ−1⁢m,−12⁢Σ−1) (Example 4.2), and that of γ is θ∗=(0,−12⁢I). Formula (6.5) is nothing but θ⁢(t)=θ∗+e−t⁢(θ0−θ∗), in agreement with the general part of the theorem.

Corollary 6.6.

In the situation of Theorem 6.5, the orbit of the FR flow lies on the e-geodesic (Definition 4.15) joining pθ0 and pθ∗. Namely, with s=1−e−t we have θ⁢(t)=(1−s)⁢θ0+s⁢θ∗. Since the parameter s is not proportional to t, the FR flow does not traverse this e-geodesic with a parameter affine in t. Equivalently,

pθ⁢(t)∝pθ0e−t⁢pθ∗ 1−e−t.

In particular, for the Gaussian family pt∝p0e−t⁢γ1−e−t. In this sense the FR flow is the geometric interpolation between p0 and γ.

Proof.

The first part is a rewriting of θ⁢(t)=θ∗+e−t⁢(θ0−θ∗). We prove the second part. With a=e−t,

pθ0a⁢pθ∗ 1−a=exp⁡((a⁢θ0+(1−a)⁢θ∗)⋅T⁢(x)−a⁢ψ⁢(θ0)−(1−a)⁢ψ⁢(θ∗))⁢h⁢(x).

The right-hand side is a constant multiple of exp⁡(θ⁢(t)⋅T⁢(x))⁢h⁢(x), and hence of pθ⁢(t). ∎

Remark 6.7 (The FR flow on positive densities).

The geometric interpolation solves an equation of the same form on the set of all positive densities. Let p0, q be positive probability densities on ℝd, and assume that Zt=∫p0e−t⁢q1−e−t⁢𝑑x is finite and that the differentiations under the integral sign below are allowed. Put pt=p0e−t⁢q1−e−t/Zt. Since log⁡(pt/q)=e−t⁢log⁡(p0/q)−log⁡Zt, we have

∂tlog⁡pt=−e−t⁢log⁡(p0/q)−dd⁢t⁢log⁡Zt=−log⁡(pt/q)+c⁢(t),

where c⁢(t) does not depend on x. From ∫∂tpt⁢d⁢x=0 we get 𝔼pt⁢[∂tlog⁡pt]=0, so c⁢(t)=𝔼pt⁢log⁡(pt/q). Hence pt satisfies

∂tp=−p⁢(log⁡(p/q)−𝔼p⁢log⁡(p/q)).

This equation is the gradient flow of KL(⋅∥q) when the space of all positive densities is formally given the Fisher–Rao metric (not proved in this book). We do not develop this infinite-dimensional geometry and give only the direct computation above. The behaviour of the KL divergence along this gradient flow is studied in the paper of Domingo-Enrich and Pooladian [DP23].

Remark 6.8 (Natural gradient).

When minimising a function f of a parameter θ, the update θk+1=θk−ε⁢G⁢(θk)−1⁢∇f⁢(θk) is called the natural gradient method, where G is the Fisher information matrix. The FR flow θ˙=−G⁢(θ)−1⁢∇f⁢(θ) is precisely its continuous-time version. Theorem 6.5 says that, for an exponential family and f a KL divergence, the natural gradient flow is a straight line in the coordinate θ. For the natural gradient method, see Amari’s book [AMA16]. Its application to Gaussian variational inference is treated in Chapter 8, and other applications to learning in Chapter 9.

6.3 Comparing the Orbits

In this section we compare the two flows on ℍ for d=1, and then move on to general d. From now on, the orbit of a flow means its forward orbit {x⁢(t):t≥0}. By Theorem 6.2 and Theorem 6.5, the closed-form expressions for d=1 are as follows. For the OU flow,

m⁢(t)=e−t⁢m0,σ⁢(t)2−1=e−2⁢t⁢(σ02−1), (6.6)

and for the FR flow,

m⁢(t)σ⁢(t)2=e−t⁢m0σ02,1σ⁢(t)2−1=e−t⁢(1σ02−1). (6.7)

In both flows σ⁢(t) moves strictly monotonically from σ0 towards 1, and σ≡1 if σ0=1. Figure 6.1 shows the orbits of the two flows from several initial points.

Figure 6.1: Forward orbits of the OU flow (solid) and the FR flow (dashed) in the (m,σ) half-plane ℍ. The initial points (black dots) are the 8 points with m0∈{−2,−1,1,2}, σ0∈{0.3,2.3}, and the 4 points (0,0.3), (0,2.3), (±2,1). For the last 4 points the two orbits coincide (Theorem 6.11). The white dot is the point (0,1) corresponding to the standard normal distribution γ. The curves are drawn from (6.6) and (6.7).

Eliminating t from (6.6) and (6.7) reveals the shape of the orbits. When m0≠0, the orbit of the OU flow lies on the curve

σ2=1+(σ02−1)⁢(mm0)2. (6.8)

For the FR flow, the ratio of m/σ2 to 1/σ2−1 is constant, so the orbit lies on the curve

m⁢(1−σ02)=m0⁢(1−σ2). (6.9)

We compare these with the geodesics of each metric.

Proposition 6.9.

Let d=1 and take an initial point (m0,σ0)≠(0,1).

  1. 1.

    The orbit of the OU flow is contained in a single straight line if and only if m0=0 or σ0=1. In that case the orbit is contained in the image of a geodesic of gW, but the flow does not move along it at constant speed.

  2. 2.

    The orbit of the FR flow is contained in the image of a geodesic of gF if and only if m0=0. In that case the flow does not move along it at constant speed. In particular, when σ0=1 and m0≠0, the orbit of the FR flow lies on the horizontal line σ=1, but this line is not contained in the image of any geodesic of gF.

Proof.

(1) In the coordinates (m,σ), (ℍ,gW) has the Euclidean metric d⁢m2+d⁢σ2 (Example 5.12). Its Christoffel symbols vanish, so the geodesic equation is c¨=0 (Definition 2.13, Definition 2.14). Hence the geodesics are the curves moving along straight lines at constant speed. If m0=0 the orbit lies on the line m=0, and if σ0=1 it lies on the line σ=1. Conversely, suppose m0≠0 and σ0≠1. Since m⁢(t)=e−t⁢m0 is strictly monotone, (6.8) shows that the orbit is the graph of the function σ=(1+k⁢m2)1/2 with k=(σ02−1)/m02≠0, where m ranges over the interval between 0 and m0. The second derivative of this function is k⁢(1+k⁢m2)−3/2≠0, so the graph is not contained in any straight line.

We examine the speed. When σ0=1 the speed is |m˙|=|m0|⁢e−t, which is not constant. When m0=0 and σ0≠1 the speed is |σ˙|=|1−σ2|/σ. The function σ↦(1−σ2)/σ has derivative −(1+σ2)/σ2<0 and vanishes at σ=1. Since σ⁢(t) approaches 1 strictly monotonically, the speed is strictly decreasing and hence not constant.

(2) By Theorem 3.12 (2), every non-constant geodesic of gF can be written as y⁢(α⁢t+β), where y is one of the curves xv, xe of that theorem and α≠0, β are constants. In particular its image is contained in a vertical line m=c or a half-ellipse (m−c)2/2+σ2=R2.

If m0=0, the orbit of the FR flow lies on the vertical line m=0 and is contained in the image of a geodesic. Conversely, suppose m0≠0. By the first equation of (6.7), m⁢(t) never vanishes. If σ0=1, then σ≡1 and m⁢(t)=e−t⁢m0. If σ0≠1, then σ⁢(t) is strictly monotone, so by (6.9) m⁢(t)=m0⁢(1−σ⁢(t)2)/(1−σ02) is also strictly monotone. In either case, along the orbit m ranges over an interval J and σ2 is given by a polynomial of degree at most one in m: namely σ2=1 if σ0=1, and σ2=1−(1−σ02)⁢m/m0 if σ0≠1. Since m varies, the orbit is not contained in a vertical line. Suppose the orbit were contained in a half-ellipse (m−c)2/2+σ2=R2. Then also σ2=R2−(m−c)2/2 on J. Two polynomials that agree on the interval J are equal as polynomials. But their coefficients of m2 are 0 and −12, a contradiction.

We examine the speed. When m0=0 and σ0≠1, the speed with respect to gF is 2⁢|σ˙|/σ=|1−σ2|/2. Since σ⁢(t) approaches 1 strictly monotonically, the speed is strictly decreasing and hence not constant. ∎

Next we investigate when the orbits of the two flows coincide. For this we first check that coinciding orbits force the velocity fields to be parallel.

Lemma 6.10.

Let U⊆ℝn be open, f:U→ℝ a C1 function, and V1,V2 continuous vector fields on U. Let ci:[0,∞)→U be solutions of c˙i=Vi⁢(ci) with c1⁢(0)=c2⁢(0). Assume that dd⁢t⁢f⁢(ci⁢(t))<0 (i=1,2) for all t≥0. If c1⁢([0,∞))=c2⁢([0,∞)), then for each t≥0 there is λ>0 with V2⁢(c1⁢(t))=λ⁢V1⁢(c1⁢(t)).

Proof.

Put hi=f∘ci. Since h1 is C1 with h1′<0, it is a bijection onto the interval h1⁢([0,∞)), and its inverse h1−1 is also C1. In particular c1 is injective. For s≥0, c2⁢(s) lies in the image of c1, so there is τ⁢(s)≥0 with c2⁢(s)=c1⁢(τ⁢(s)). Since c1 is injective, τ⁢(s) is unique. Composing both sides with f gives h2⁢(s)=h1⁢(τ⁢(s)), so τ=h1−1∘h2. Hence τ is C1 and τ′⁢(s)=h2′⁢(s)/h1′⁢(τ⁢(s))>0. Differentiating c2⁢(s)=c1⁢(τ⁢(s)), we obtain

V2⁢(c1⁢(τ⁢(s)))=c˙2⁢(s)=τ′⁢(s)⁢V1⁢(c1⁢(τ⁢(s))).

Finally, we show that τ is surjective. For t≥0, c1⁢(t) lies in the image of c2, so there is s with c1⁢(t)=c2⁢(s)=c1⁢(τ⁢(s)). Since c1 is injective, τ⁢(s)=t. Thus for each t we may take λ=τ′⁢(s)>0. ∎

The OU flow and the FR flow are gradient flows of F, so dd⁢t⁢F=−|grad⁡F|2 by Proposition 2.10. Both gradW⁡F=(m,2⁢(Σ−I)) and gradF⁡F=(Σ⁢m,Σ⁢(Σ−I)) vanish only at (m,Σ)=(0,I). Since (0,I) is a stationary point of both flows, uniqueness of solutions implies that a solution starting elsewhere never reaches (0,I). Hence, if (m0,Σ0)≠(0,I), the solutions of the two flows satisfy the hypotheses of Lemma 6.10 with f=F.

Theorem 6.11 (When the orbits coincide).

We compare the forward orbits of the OU flow and the FR flow starting from (m0,Σ0)∈ℝd×Symd+.

  1. 1.

    For d=1, the two orbits coincide as sets if and only if m0=0 or σ0=1. When σ0=1 they coincide even as parametrised curves: σ≡1 and m⁢(t)=e−t⁢m0. When m0=0 and σ0≠1, both move along the line m=0 from σ0 towards 1, but at different speeds. Indeed, σ2−1=e−2⁢t⁢(σ02−1) for the OU flow and σ−2−1=e−t⁢(σ0−2−1) for the FR flow.

  2. 2.

    For general d, the two orbits coincide as sets if and only if one of the following holds.

    1. (a)

      Σ0=I. In this case they coincide even as parametrised curves: m⁢(t)=e−t⁢m0 and Σ⁢(t)=I.

    2. (b)

      m0=0, and Σ0 has at most one distinct eigenvalue different from 1. That is, Σ0=I+(c−1)⁢P for some c>0 and some orthogonal projection P. In this case the two orbits coincide as sets, but if c≠1 and P≠0 the parametrisations differ.

For example, for d=2, m0=0 and Σ0=diag⁢(12,2), there are two distinct eigenvalues different from 1, so the orbits do not coincide (Problem 3 at the end of this chapter).

Proof.

We prove (1). The velocity fields of the two flows are

VOU=(−m,1−σ2σ),VFR=(−σ2⁢m,σ⁢(1−σ2)2)

(Theorem 6.2, Theorem 6.5). The determinant of the matrix with these as columns is

(−m)⋅σ⁢(1−σ2)2−1−σ2σ⋅(−σ2⁢m)=m⁢σ⁢(1−σ2)2.

If m0≠0 and σ0≠1, this is nonzero at the initial point, so the two velocity fields are not parallel there. By Lemma 6.10, the two orbits do not coincide.

We prove the converse. When σ0=1, (6.6) and (6.7) show that both flows have σ≡1 and m⁢(t)=e−t⁢m0. When m0=0, both flows have m≡0. If moreover σ0≠1, then σ moves continuously and strictly monotonically, by σ2−1=e−2⁢t⁢(σ02−1) for the OU flow and by σ−2−1=e−t⁢(σ0−2−1) for the FR flow, and converges to 1 as t→∞. Hence both orbits are {0}×I0, where I0 is the interval between σ0 and 1 that contains σ0 but not 1. ∎

⋆ Proof.

We prove (2). We first prove sufficiency. (a) When Σ0=I, the OU flow is m=e−t⁢m0, Σ=I. By (6.5), the FR flow is Σ⁢(t)−1=I, m⁢(t)=e−t⁢m0.

(b) Suppose m0=0 and Σ0=I+(c−1)⁢P. If c=1 or P=0 this reduces to (a), so assume c≠1 and P≠0. Both flows have m≡0. Since P2=P, we have (I+b⁢P)−1=I+(11+b−1)⁢P for b≠−1. Hence Σ⁢(t) has the form I+(a⁢(t)−1)⁢P for both flows, with

OU flow: ⁢a⁢(t)−1=e−2⁢t⁢(c−1),FR flow: ⁢1a⁢(t)−1=e−t⁢(1c−1).

In both, a⁢(t) moves continuously and strictly monotonically from c towards 1 and converges to 1. So both orbits are {(0,I+(a−1)⁢P):a∈Ic}, where Ic is the interval between c and 1 that contains c but not 1. As t→∞, et⁢(a⁢(t)−1) converges to 0 for the OU flow and to (c−1)/c≠0 for the FR flow. Hence the parametrisations differ.

Next we prove necessity. Suppose the two orbits coincide. Since (m0,Σ0)=(0,I) is covered by (a), we may assume (m0,Σ0)≠(0,I). The velocity fields are VOU=(−m,2⁢I−2⁢Σ) and VFR=(−Σ⁢m,Σ−Σ2). By Lemma 6.10, at each point (m,Σ)=(m⁢(t),Σ⁢(t)) of the OU flow there is λ>0 with

Σ⁢m=λ⁢m,Σ−Σ2=λ⁢(2⁢I−2⁢Σ). (6.10)

The second equation can be written as (Σ−2⁢λ⁢I)⁢(I−Σ)=0. We use it at t=0. Each eigenvalue μ of Σ0 satisfies (μ−2⁢λ)⁢(1−μ)=0, so μ∈{1,2⁢λ}. Hence, letting P be the orthogonal projection onto the eigenspace of Σ0 for the eigenvalue 2⁢λ, we have Σ0=I+(2⁢λ−1)⁢P. If m0=0, this is (b) with c=2⁢λ.

Suppose m0≠0. By the first equation of (6.10), λ is an eigenvalue of Σ0 with eigenvector m0. Since λ≠2⁢λ, we get λ=1, so Σ0=I+P and P⁢m0=0. If P=0, this is (a). Assume P≠0; we derive a contradiction. Take t>0. The point of the OU flow is then m=e−t⁢m0≠0, Σ=I+e−2⁢t⁢P. Since Σ⁢m=m, the first equation of (6.10) at this point gives λ=1. Then the difference of the two sides of the second equation is

Σ−Σ2−(2⁢I−2⁢Σ)=−(Σ−I)⁢(Σ−2⁢I)=e−2⁢t⁢(1−e−2⁢t)⁢P≠0,

a contradiction. ∎

6.4 Neither Is a Gradient Flow for the Other

The OU flow is the gradient flow of F with respect to gW, and the FR flow is the gradient flow of F with respect to gF. Could the velocity field of the OU flow nevertheless be the velocity field of the gradient flow of some other function h with respect to gF? For d=1 we show that this fails on every open set.

Theorem 6.12.

Let d=1 and let U⊆ℍ be a nonempty open set.

  1. 1.

    There is no C2 function h on U such that the velocity field VOU=(−m,(1−σ2)/σ) of the OU flow equals −gradF⁡h on U.

  2. 2.

    There is no C2 function h on U such that the velocity field VFR=(−σ2⁢m,σ⁢(1−σ2)/2) of the FR flow equals −gradW⁡h on U.

Proof.

(1) Let G=diag⁢(1/σ2,2/σ2) be the matrix of gF. If VOU=−gradF⁡h=−G−1⁢∇h, then ∇h=−G⁢VOU, that is,

∂mh=mσ2=:a,∂σh=−2⁢(1−σ2)σ3=:b.

Since h is C2, ∂σ∂mh=∂m∂σh, that is, ∂σa=∂mb holds on U. But ∂σa=−2⁢m/σ3 and ∂mb=0. A nonempty open set U contains a point with m≠0, so this is a contradiction.

(2) In the coordinates (m,σ), gW is the Euclidean metric, so VFR=−gradW⁡h means

∂mh=σ2m=:a,∂σh=−σ⁢(1−σ2)2=:b.

Since ∂σa=2⁢σ⁢m and ∂mb=0, we get a contradiction as in (1). ∎

The difference ∂mb−∂σa in the proof is 2⁢m/σ3 in (1) and −2⁢σ⁢m in (2). Both vanish exactly on the line m=0.

Remark 6.13.

Theorem 6.12 is a statement about velocity fields, not about orbits. For example, (1/σ2)⁢VFR, obtained by multiplying VFR by the positive function 1/σ2, is the velocity field of a gradient flow with respect to gW on all of ℍ (Problem 5 at the end of this chapter). The solutions of (1/σ2)⁢VFR are time changes of the solutions of VFR, so they have the same orbits as the FR flow. Therefore one cannot conclude “not a gradient flow” from the shape of the orbits alone.

Problems

  1. 1.

    For d=1, verify directly that (m⁢(t),σ⁢(t)) of (6.7) satisfies (6.3).

    Hint: Show w˙=−(w−1) and η˙=−η for w=1/σ2 and η=m/σ2, and differentiate σ=w−1/2 and m=η/w.

  2. 2.

    Let d=1 and q=𝒩⁢(μ,τ2). Find the gradient flow of KL(⋅∥q) with respect to gF starting from (m0,σ0).

    Hint: Take θ∗=(μ/τ2,−1/(2⁢τ2)) in Theorem 6.5.

  3. 3.

    Let d=2, m0=0 and Σ0=diag⁢(12,2). Show, without using Theorem 6.11, that the orbits of the OU flow and the FR flow do not coincide.

    Hint: If λ1,λ2 are the diagonal entries of Σ⁢(t), then (λ1−1)/(λ2−1) is constant for the OU flow and (λ1−1−1)/(λ2−1−1) is constant for the FR flow. Check whether the latter is constant along the OU flow.

  4. 4.

    For the FR flow on the Gaussian family, verify directly, by comparing the exponents of the densities, that (6.5) agrees with pt∝p0e−t⁢γ1−e−t.

    Hint: Compare the quadratic and linear terms in x of log⁡(p0e−t⁢γ1−e−t) with −12⁢x⊤⁢Σ⁢(t)−1⁢x+x⊤⁢Σ⁢(t)−1⁢m⁢(t).

  5. 5.

    For d=1, find a function h on ℍ with (1/σ2)⁢VFR=−gradW⁡h. Why does this not contradict Theorem 6.12?

    Hint: Try h=12⁢m2+14⁢σ2−12⁢log⁡σ. The theorem is a statement about the velocity field itself.