Breaking Reversibility Accelerates Langevin Dynamics for Global Non-Convex Optimization
Xuefeng Gao, Mert Gurbuzbalaban, Lingjiong Zhu
Introduction
Consider the stochastic optimization problem:
Such problems with finite-sum structure arise in many applications, e.g. data analysis and machine learning ([GBCB16]). In this work, our primary focus will be non-convex objectives.
First-order methods such as gradient descent and stochastic gradient descent and their variants with momentum have been popular for solving such optimization problems (see e.g. [Ber15, Bub14]). These first-order methods admit some theoretical guarantees to locate a local minimizer, however their convergence depends strongly on the initialization and they do not have guarantees to visit a global minimum. The Langevin Dynamics (LD) is a variant of gradient descent where a properly scaled Gaussian noise is added to the gradients:
where is the stepsize, is a -dimensional isotropic Gaussian noise with distribution where for every , the noise is independent of the (filtration) past up to time and is called the inverse temperature parameter. With proper choice of parameters and under mild assumptions, LD algorithm converges to a stationary distribution that concentrates around a global minimum (see e.g. [BM99, GM91]) from an arbitrary initial point. Therefore, LD algorithm has a milder dependency on the initialization, visiting a global minimum eventually. The analysis of the convergence behavior of LD is often based on viewing LD as a discretization of the associated stochastic differential equation (SDE), known as the overdamped Langevin diffusion or the first-order Langevin diffusion,
where is a -dimensional standard Brownian motion (see e.g. [GM91]). Under some mild assumptions on , this SDE admits the following unique stationary distribution:
where is a normalizing constant. Note that overdamped Langevin diffusion is reversible in the sense that if is distributed according to the stationary measure , then and have the same law. It is known that the reversible Langevin algorithm converges to a local minimum in time polynomial with respect to parameters and , the intuition being that the expectation of the iterates follows the gradient descent dynamics which converges to a local minimum (see e.g. [ZLC17, FGQ97]). It is also known that once Langevin algorithms arrive to a neighborhood of a local optimum, they can spend exponentially many iterations in dimension to escape from the basin of attraction of this local minimum. This behavior is known as “metastability” and has been studied well (see e.g. [BGK05, BGK04, Ber13]).
Recently, [TLR18] provided a finer characterization of this metastability phenomenon. They showed that for a given local optimum , with high probability and arbitrary initialization, either LD iterates arrive at a point outside an -neighborhood of this local minimum within a recurrence time , where is smallest eigenvalue of the Hessian at the local minimum or they enter this -neighborhood by the recurrence time and stay there until a potentially exponentially long escape time . The escape time measures how quickly the LD algorithm can get away from a given neighborhood around a local minimum, therefore it can be viewed as a measure of the effectiveness of LD for the search of a global minimizer, whereas the recurrence time can be viewed as the order of the time-scale for which search for local minima in the basin of attraction of that minimum happens.
One popular non-reversible variant of overdamped Langevin that can improve its performance in practice for a variety of applications (Section 4 in [LNP13]) is based on the underdamped Langevin diffusion, also known as the second-order Langevin diffusion ([Kra40]),
where is a -dimensional centered Gaussian vector so that are i.i.d. and independent of the initial condition, and for any fixed , the random vectors , , , are i.i.d. with the covariance matrix:
where and for every . Recent work [GGZ18] showed that ULD admits better non-asymptotic performance guarantees compared to known guarantees for LD in the context of non-convex optimization when the objective satisfies a dissipativity condition. Recent work also showed that ULD or alternative discretizations of the underdamped diffusion can sample from the Gibbs distribution more efficiently than LD when is globally strongly convex (see e.g. [CCBJ18, DRD20, MS17]) or strongly convex outside a compact set (see e.g. [CCA+18]).
The second non-reversible variant of overdamped Langevin involves adding a drift term:
where is a anti-symmetric matrix, i.e. and is the identity matrix, and is a standard -dimensional Brownian motion. It can be shown that such a drift preserves the stationary distribution (1.3) (Gibbs distribution) of the overdamped Langevin dynamics, and it can lead to a faster convergence to the stationary distribution than the reversible Langevin diffusion (the case ), see e.g. [HHMS93, HHMS05, LNP13, Pav14, GM16] for details. Algorithms based on (1.9) have been applied to sampling, see e.g. [FSS20, RBS16, RBS15, DLP16, DPZ17], and non-convex optimization, see e.g. [HWG+20]. The Euler discretization of (1.9) leads to
which we refer to as the non-reversible Langevin dynamics (NLD).
Contributions. In this paper, we investigate the metastability behavior of non-reversible Langevin algorithms for non-convex objectives. We extend the results of [TLR18] to non-reversible Langevin dynamics and show that for a given local minimum that is within an arbitrary distance from the initialization, with high probability, either ULD trajectory ends up somewhere outside an -neighborhood of this local minimum within a recurrence time or they enter this neighborhood by the recurrence time and stay there for a potentially exponentially long escape time. The analogous result shown in [TLR18] for reversible LD requires a recurrence time of . This shows that underdamped dynamics requires a smaller recurrence time by a square root factor in (ignoring a factor). The difference is significant as the smallest eigenvalue of the Hessian matrix at a local optimum can be very small in a number of applications, including deep learning (see e.g. [CCS+17, SBL16]). Since the recurrence time can be viewed as a measure of the efficiency of the search of a local minimum [TLR18], our results suggest that ULD operates on a faster time-scale to locate a local minimum. Similar results are obtained for NLD. In order to obtain the results, we first give a refined characterization of the dynamics around a local minimum by linearizing the gradients. The analysis here is more complicated compared to the LD case in [TLR18] due to non-reversibility, and requires us to develop new estimates, e.g. Lemma 2, where the eigenvalue and the norm estimates require a significant amount of work because the forward iterations correspond to non-symmetric matrices (defined in (2.5)) and achieving the acceleration behavior requires careful estimates. The analysis here also requires us to establish novel uniform bounds for NLD in both continuous and discrete times.
In addition, we consider the mean exit time from the basin of attraction of a local minimum for non-reversible algorithms. We focus on the double-well example which has been the recent focus of the literature [BR16, LMS19] as it is the simplest non-convex function that gives intuition about the more general case and for which mean exit time has been studied in continuous time. Our analysis shows that non-reversible dynamics can exit the basin of attraction of a local minimum faster under some conditions and characterizes the improvement for both ULD and NLD compared to LD when the parameters of these algorithms are chosen appropriately. These results support the numerical evidence that non-reversible algorithms can explore the state space more efficiently [CDC15, CFG14, GM16] and bridges a gap between the theory and practice of Langevin algorithms.
Other related work. Langevin dynamics has been studied under simulated annealing algorithms in the optimization, physics and statistics literature and its asymptotic convergence guarantees are well known (see e.g. [Gid85, Haj85, GM91, KGV83, BT93, BLNR15, BM99]). However, finite-time performance guarantees for LD have not been studied until more recently (see e.g. [Dal17, DM17]). Non-asymptotic performance guarantees for stochastic gradient versions have also been studied. See also e.g. [RRT17, ZLC17, CDT20] for related results. [XCZG18] shows that it suffices to have gradient evaluations or stochastic gradient evaluations to compute an almost minimizer where is a spectral gap parameter that is exponentially small in the dimension and is the target accuracy. These results improve upon the existing results from the seminal work of [RRT17]. [EMS18] also considered Euler discretization of general dissipative diffusions in the non-convex setting, proved a convergence rate, showing that different diffusions are suitable for minimizing different convex/non-convex objective functions . Their expected suboptimality bound also generalizes the results in [RRT17]. See also [NŞR19] for non-asymptotic guarantees for non-convex optimization using Lévy-driven Langevin dynamics proposed in [Şim17].
Main results
In this section, we will study the recurrence time of underdamped Langevin dynamics (ULD), and the corresponding time-scale for non-reversible Langevin dynamics (NLD). We will show that recurrence time of underdamped and non-reversible Langevin algorithms will improve upon that of reversible Langevin algorithms in terms of its dependency to the smallest eigenvalue of the Hessian at a local minimum. For non-convex optimizations, our results suggest that for ULD and NLD, searching for a local minimum happens on a faster time scale compared to the reversible LD. For the rest of the paper, we impose the following assumptions.
The functions are twice continuously differentiable, non-negative valued, and , , and , uniformly in for some .
The empirical risk is -dissipative: .
The initialization satisfies .
For the Hessian at a fixed local minimum of defined in (1.1), it is a symmetric positive definite matrix with eigenvalues in increasing order, i.e.
Recall the underdamped Langevin (1.7)-(1.8). Define
where we recall that is the Hessian matrix evaluated at the local minimum . In the first lemma, we provide an estimate on . This is the key result that allows the underdamped dynamics to achieve faster rate compared with overdamped dynamics.
(i) If ), then , where , and , where are defined in (2.2). (ii) If , then we have , where .
We investigate the behavior around local minima for the underdamped Langevin dynamics (1.7)-(1.8) by studying recurrence and escape times with the choice of the friction coefficient which is optimal for . We first recall the Lambert W function which is defined via the solution of the algebraic equation . When , has two branches, the upper branch and the lower branch , see e.g. [CGH+96].
Fix , and . For a given satisfying we define the recurrence time
and the escape time , for any arbitrary . Consider an arbitrary initial point for the underdamped Langevin dynamics and a local minimum at a distance at most . Assume that the stepsize satisfies
for any realization of training data , with probability at least with respect to the Gaussian noise, at least one of the following events will occur: (1) for some ; (2) for every .
The expressions of technical constants in the statement of Theorem 3, including and , can be found in the proof of Theorem 3 in the Supplementary File.
In many applications, the eigenvalues of the Hessian at local extrema often concentrate around zero and the magnitude of the smallest eigenvalue of the Hessian can be very small (see e.g. [CCS+17, SBL16]). In [TLR18], the overdamped Langevin algorithm is analyzed and the recurrence time , while our recurrence time for the underdamped Langevin algorithm, which has a square root factor improvement. Since the recurrence time can be viewed as a measure of the efficiency of the search of a local minimum, our result suggests that ULD require smaller recurrence time, so they operate on a faster time scale to locate a local minimum.
2 Non-reversible Langevin dynamics
We investigate the behavior around local minima for the non-reversible Langevin dynamics (1.10) by studying recurrence and escape times. One can expect that the convergence behavior of the non-reversible Langevin diffusion is controlled by the decay of in time , which is related to the real part of the eigenvalues indexed with increasing order and their multiplicity. It has been shown that for any anti-symmetric matrix , we have and if a very special condition holds. See Theorem 3.3. in [HHMS93] for details. This suggests generically non-reversible Langevin leads to a faster exponential decay compared to reversible Langevin, i.e . In addition, we have the following estimates: there exists a positive constant that depends on such that
Now we state the main result on the metastability of non-reversible Langevin dynamics (1.10).
and the escape time for any arbitrary . For any initial point and a local minimum at a distance at most . Assume the stepsize
The expressions of technical constants in the statement of Theorem 4, including and , can be found in the proof of Theorem 4 in the Supplementary File.
One could also ask what is the choice of the matrix in NLD. A natural idea is to maximize the exponent that appears in Equation (2.6), i.e., let A formula for and an algorithm to compute it is known (see Fig. 1 in [LNP13]), however this is not practical to compute for optimization purposes as it requires the knowledge of the eigenvectors and eigenvalues of the matrix which is generally unknown in practice. Nevertheless, gives information about the extent of acceleration that can be obtained. It is known that , as well as a characterization of the constants and arising in Equation (2.6) when (see Equation (46) in [LNP13]). We see that as the smallest and the largest eigenvalue of is and . Therefore, we have
The acceleration is not possible (the ratio above is ) if and only if all the eigenvalues of are the same and are equal to ; i.e. when and . Otherwise, can accelerate by a factor of which is on the order of the condition number up to a constant which is close to one for large. In practice, one can also use some easily constructed choices of as suggested in the literature (see e.g. [HHMS93]), and run the NLD algorithm using (which is still anti-symmetric), where is a constant that can be tuned and it represents the magnitude of non-reversible purturbations. For example, one can choose to be a circulant matrix, e.g.,
and this product is easy to implement by shifting the gradient vector in the memory by one unit to the left and one unit to the right and then taking the difference.
Exit time for non-reversible Langevin dynamics
For convergence to a small neighborhood of the global minimum, Langevin trajectory needs to not only escape from the neighborhood of a local optimum but also exit the basin of attraction of the current minimum and transit to the basin of attraction of other local minima including the global minima. In particular, the convergence rate to a global minimum is controlled by the mean exit time from the basin of attraction of a local minima in a potential landscape in (1.2). In this section we will show that non-reversible Langevin dynamics can lead to faster (smaller) exit times.
Here, as stands for the determinant of the Hessian of at , and is the unique negative eigenvalue of the Hessian of at the saddle point . This formula is known as the Eyring-Kramers formula for reversible diffusions. Its rigorous proof was first obtained by [BGK04] by a potential analysis approach, and then by [HKN04] through Witten Laplacian analysis. We refer to [Ber13] for a survey on mathematical approaches to the Eyring-Kramers formula. We note that in many practical applications, for instance in the training of neural networks, the eigenvalues of the Hessian at local extrema concentrate around zero and the magnitude of the eigenvalues and can often be very small (see e.g. [SBL16, CCS+17]).
Denote as the first time of that the underdamped diffusion (1.4)–(1.5) starting from and hitting a small neighborhood of . [BR16] (Remark 5.2) suggests that the expected exit time is:
That is, the mean exit time for the underdamped diffusion is smaller compared with that of the overdamped diffusion. Roughly speaking, the condition says that if the curvature of the saddle point in the negative descent direction is not too steep (i.e. if ), we can choose small enough to accelerate the exit time of the reversible Langevin dynamics. Intuitively speaking, it can be argued that the underdamped process can climb hills and explore the state space faster as it is less likely to go back to the recent states visited due to the momentum term (see e.g. [BR16]). For the discrete time dynamics, it is intuitive to expect that the exit time of the underdamped discrete dynamics is close to that of the continuous time diffusion when the step size is small [BGG17], and hence a similar result as (3.2) will hold for the discrete dynamics when .
2 Non-reversible Langevin dynamics
[LMS19] (Theorem 5.2) showed that the expected time of the non-reversible diffusion in (1.9) starting from and hitting a small neighborhood of is given by
We have . As a consequence,
The equality is attained if and only if is a singular vector of satisfying .
Proposition 5 shows that if is not singular, the non-reversible dynamics is generically faster than the reversible dynamics in the sense of smaller mean exit times. This holds for the discrete dynamics as well, since the exit time for the discrete dynamics is close to that of the continuous dynamics for sufficiently small stepsizes, see e.g. [GM05].
Fix the antisymmetric matrix , the temperature parameter , and . One can choose a sufficiently large and a constant so that for stepsize , we have
It then follows from Proposition 5 that for large we have
provided that for some which occurs if and only if is a singular vector of satisfying .
Numerical Illustrations
In practice, for the NLD algorithm, the matrix can be chosen as a random anti-symmetric matrix. For quadratic objectives, there is a formula for optimal matrix; see e.g. [LNP13]. For the ULD algorithm, we can take the parameter as predicted by our theory (Lemma 2) for quadratics. On the top panel of Figure 1, we compare ULD and NLD to LD for the double well example with random initialization over 100 runs where is chosen randomly and . In this simple example, we observe NLD and ULD have smaller mean exit times (from a barrier) compared to LD.
In general, it is not easy to compare the theoretical performance of ULD and NLD algorithms. However, in some regimes, our theory predicts one is better than the other. For example, when the smallest eigenvalue is close to the largest eigenvalue , NLD will not improve much upon LD, but ULD will improve upon LD if is small and ULD will be faster than NLD. In this case, ULD has better performance than NLD. On the bottom panel of Figure 1, we provide an example for training fully-connected neural networks on MNIST where ULD was faster when both methods were tuned.
Conclusion
Langevin Monte Carlo are powerful tools for sampling from a target distribution as well as for optimizing a non-convex objective. The classic Langevin dynamics (LD) is based on the first-order Langevin diffusion which is reversible in time. We studied the two variants that are based on non-reversible Langevin diffusions: the underdamped Langevin dynamics (ULD) and the Langevin dynamics with a non-symmetric drift (NLD). We showed that both ULD and NLD can improve upon the recurrence time for LD in [TLR18] and discussed the amount of improvement. We also showed that non-reversible variants can exit the basin of attraction of a local minimimum faster when the objective has two local minima separated by a saddle point and discussed the amount of improvement. By breaking the reversibility in the Langevin dynamics, our results quantify the improvement in performance and fill a gap between the theory and practice of non-reversible Langevin algorithms.
Acknowledgements and Disclosure of Funding
The authors thank four anonymous referees for helpful suggestions. The authors are very grateful to Emmanuel Gobet, Claudio Landim, Insuk Seo and Gabriel Stoltz for helpful comments and discussions. The authors also thank Yuanhan Hu for the help with numerical experiments. Xuefeng Gao acknowledges support from Hong Kong RGC Grants 24207015 and 14201117. Mert Gürbüzbalaban’s research is supported in part by the grants NSF DMS-1723085 and NSF CCF-1814888. Lingjiong Zhu is grateful to the support from the grant NSF DMS-1613164.
References
Appendix A Figures
Appendix B Proof of results in Section 2
Let be a symmetric positive definite matrix with eigenvalue decomposition , where is diagonal with eigenvalues in increasing order of the matrix . Recall from (2.5). Note that
Therefore and have the same eigenvalues. Due to the structure of , it can be seen that there exists a permutation matrix such that
with , and are block matrices with the eigenvalues:
We observe that and (and therefore ) have the same eigenvalues and the eigenvalues of are determined by the eigenvalues of the block matrices .
Since is unitarily equivalent to the matrix , i.e. there exists a unitary matrix such that , we have . Since is a block diagonal matrix with blocks we have . Assume that so that the eigenvalues of (see Eqn. (B.2)) are real when and complex when . Note that
We consider . Depending on the value of and , there are two cases:
and . We can compute that
where denotes the imaginary part of a complex number. As a consequence, by taking componentwise absolute values
To finish the proof of Case 2, let . We compute
where we used (B.4) and (B.5) in the last inequality. We conclude from (B.3) for Case 2. ∎
B.2 Proof of Theorem 3
The main result we use to prove Theorem 3 is the following proposition. The proof of the following result will be presented later in Section B.2.2.
Assume . Fix any and
For any initial point with , and
We are now ready to complete the proof of Theorem 3.
Assume that . Let us compare the discrete dynamics (1.7)-(1.8) and the continuous dynamics (1.4)-(1.5). Define:
Notice that for any ,
provided that , with defined in Lemma 10, where we applied Lemma 28. Hence, we have
Using Pinsker’s inequality, we obtain an upper bound on the total variation :
Using a result about an optimal coupling (Theorem 5.2., [Lin92]), that is, given any two random elements of a common standard Borel space, there exists a coupling of and such that
Hence, given any and , we can choose
so that there is a coupling of and such that
Let us now complete the proof of Theorem 3. We need to show that
where and , where
We can choose sufficiently large so that with probability at least , we have either for some or for all . Moreover, for any and satisfying the conditions of the theorem, there exists a coupling of and so that with probability , for all . Then, by (B.13) and (B.14), we get
On the event ,
provided that (by applying Proposition 7 and Lemma 26) (with ):
where the second inequality above used -Lipschitz property of and the last inequality above used Lemma 28. By adding the above two inequalities (B.19) and (B.20) together, we get
By applying Gronwall’s inequality, we get
We have from Lemma 10 that for any ,
where , are defined in Lemma 10. By Lemma 27, we have
Therefore, we can infer from (B.21) that with ,
where the last inequality follows from (B.22), (B.23) and Lemma 27. We can choose so that
so that the term in (B.24) is less than , where , are defined in Lemma 10, and then we choose so that
so that the term in (B.25) is also less than , and we can choose so that and
To complete the proof, let us work on the leading orders of the constants. For the sake of convenience, we hide the dependence on and and assume that . We also assume that . Recall that , where it is easy to check that It is easy to check that
where we used and
where we used the fact that . Hence, we can take
Moreover, . Hence, we can take
and since for , and we assume , we get
Next, we recall that stepsize satisfies and it is easy to check that
Moreover, we have (note that in the definition of )
together with implies that
where we used and , and
where we used , , , , , , and the minimum between and is . Hence, we can take
Finally, satisfies , and We have
where we used .
B.2.2 Proof of Proposition 7
In this section, we focus on the proof of Proposition 7. We adopt some ideas from [BG03, TLR18]. We recall is a local minimum of and is the Hessian matrix: , and we write
where since the Hessian of is -Lipschitz (Lemma 1.2.4. [Nes13]). Then, we have
We can write it in terms of matrix form as:
where is a -dimensional standard Brownian motion. Therefore, we have
Given , we define the matrix flow
is a martingale. Before we proceed to the proof of Proposition 7, we state the following lemma, which will be used in the proof of Proposition 7.
For any , and and any ,
Finally, let us complete the proof of Proposition 7.
Since , we know that . Fix some , such that . Then, for every ,
It follows that (with )
where and . We will first bound the second term in (B.40) which will turn out to be zero, and then use Lemma 8 to bound the first term in (B.40).
First, notice that in the quadratic case and the second term in (B.40) is automatically zero. In the more general case, we will show that the second term in (B.40) is also zero. On the event , for any , we have
Therefore, for any , by Lemma 2, we get
where we used , and and the definition of :
Consequently, if we take , then,
Moreover, since it is assumed that .
Second, we will apply Lemma 8 to bound the first term in (B.40). By using and and the definition of and in (B.38) and (B.39), we get
by choosing and , and , and using the definition , and we also used .
Then with the choice of and in Lemma 8, and using the fact that , we get
Thus for any and ,
Fix any and recall the definition of the escape time . Partition the interval using the points with , then we have
Finally, plugging into the above formulas and applying the bound on from Lemma 26, the conclusion follows. ∎
In this section, we state the uniform bounds for the continuous time underdamped Langevin dynamics ((1.4) and (1.5)) and the discrete time iterates ((1.7) and (1.8)) in Lemma 10, which is a modification of Lemma 8 in [GGZ18]. The uniform bound for the discrete dynamics (1.7)-(1.8) is used to derive the relative entropy to compare the laws of the continuous time dynamics and the discrete time dynamics, and the uniform bound for the continuous dynamics (1.4)-(1.5) is used to control the tail of the continuous dynamics in Section B.2.1.
Before we proceed, let us first introduce the following Lyapunov function (from the paper [EGZ19]) which will be used in the proof the uniform boundedness results for both the continuous and discrete underdamped Langevin dynamics. We define the Lyapunov function as:
and is a positive constant less than according to [EGZ19]. We will first show in the following lemma that we can find explicit constants and so that the drift condition (B.44) is satisfied. The drift condition is needed in [EGZ19], which is applied to obtain the uniform bounds in [GGZ18] that implies the uniform bounds in our current setting (the following Lemma 10).
then the following drift condition holds:
The following lemma provides uniform bounds for the continuous-time underdamped Langevin diffusion process defined in (1.4)-(1.5) and discrete-time underdamped Langevin dynamics defined in (1.7)-(1.8).
Suppose parts , , , of Assumption 1 and the drift condition (B.44) hold. is arbitrary and , are defined in (B.42) and (B.43).
B.2.4 Proofs of auxiliary results
Note that is a -dimensional martingale and by Doob’s martingale inequality, for any ,
where the last line above uses the fact that is a Gaussian random vector with mean
We next estimate fron (B.58). Let us recall from Lemma 2 that if , then we recall from Lemma 2 that,
Therefore we infer that the eigenvalues of are bounded below by . The conclusion then follows from (B.58). ∎
By Assumption 1 (iii), . Thus in order to show the drift condition (B.44), it suffices to show that
Given the definition of in (B.42), by Lemma 28, we get
by the definition of in (B.43). Hence, (B.59) holds and the proof is complete. ∎
B.3 Proof of Theorem 4
The proof of Theorem 4 is similar to the proof of Theorem 3. For brevity, we omit some of the details, and only outline the key steps and the propositions and lemmas used for the proof of Theorem 4.
Fix any and , where
For any initial point with , and
We first compare the discrete dynamics (1.10) and the continuous dynamics (1.9). Define:
By following Lemma 7 in [RRT17] and apply the uniform bounds for in Corollary 17 provided that the stepsize is sufficiently small (we apply the bound to Corollary 17)
where (we use the bound )
Let us now complete the proof of Theorem 4. We need to show that
where and :
Similar to the proof in Section B.2.1 and by (B.63), we get
Similar to the proof in Section B.2.1, we get
provided that (by applying Proposition 11):
By Gronwall’s inequality, we get the key estimate:
To complete the proof, we need work on the leading orders of the constants. We treat , , as constant. The argument is similar to the argument in the proof of Theorem 3 and is thus omitted here. The proof is now complete.
B.3.2 Proof of Proposition 11
Before we proceed to the proof of Proposition 11, let us first state the following two lemmas that will be used in the proof of Proposition 11.
where is defined in (B.73), is defined in (B.74), and
Given , where is the stopping time defined in Proposition 11, we have
where is defined in (B.73), and is defined in (B.75).
We recall is a local minimum of and is the Hessian matrix: , and we write
where since the Hessian of is -Lipschitz (Lemma 1.2.4. [Nes13]). This implies that
Given , we define the matrix flow
and so that
We define the decomposition , where
It follows that for any ,
The rest of the proof is similar to the proof of Proposition 7. We apply Lemma 13 to bound the term and apply Lemma 12 to bound the term . By letting in Proposition 7 and replacing by due to Lemma 12, and by and using the bounds and , we obtain the desired result in Proposition 11. ∎
In this section we establish uniform bounds for both the continuous time dynamics (1.9) and discrete time dynamics (1.10). The main idea of the proof is to use Lyapunov functions. Our local analysis result relies on the approximation of the continuous time dynamics (1.9) by the discrete time dynamics (1.10). The uniform bound for the discrete dynamics (1.10) is used to derive the relative entropy to compare the laws of the continuous time dynamics and the discrete time dynamics, and the uniform bound for the continuous dynamics (1.9) is used to control the tail of the continuous dynamics in Section B.3.1. We first recall the continuous-time dynamics from (1.9):
where is a anti-symmetric matrix, i.e. . The generator of this continuous time process is given by
Since has at most the quadratic growth (due to Lemma 28), we immediately have the following corollary.
We next show uniform bounds for the discrete iterates , where we recall from (1.10) that the non-reversible Langevin dynamics is given by:
Given that , we have
Since has at most the quadratic growth (due to Lemma 28), we immediately have the following corollary.
Given that and , we have
B.3.4 Proofs of auxiliary results
By following the proof of Lemma 8. We get
Hence, by the definition of from (B.72), we get
The rest of the proof follows similarly as in the proof of Lemma 8. ∎
and by applying and (2.6), and and the definition of the stopping time in Proposition 11, we get the desired result. ∎
Note that if we can show that is a Lyapunov function for :
Let us first prove this. Applying Ito formula to , we obtain from Dynkin formula and the drift condition (B.79) that for with be the exit time of from a ball centered at with radius with ,
Let , then we can infer from Fatou’s lemma that for any :
Next, let us prove (B.79). By the definition of in (B.76), we can compute that
since is anti-symmetric so that . Moreover,
provided that , and thus
for any . On the other hand, for any , we have
Next, recall that is -smooth, and thus
Recall that and by Lemma 28 we get , and thus
uniformly for small , where are positive constants that are independent of , then we will first show below that
Then by letting , which requires , we obtain
Define the stopping time , where is a positive integer, so that is essentially bounded for . Applying the discrete Dynkin’s formula (see, e.g. Section 4.2 in [MT92]), we have
As almost surely as , we infer from Fatou’s Lemma that
as . Hence we have
It remains to prove (B.85). Note that as is Lipschitz continuous with constant so that:
provided that . Similar to the arguments in (B.80)-(B.84), we get
where we assumed that . Hence, the proof is complete. ∎
The proof is similar to the proof of Corollary 15 and is thus omitted. ∎
Appendix C Proof of Proposition 5 and Proposition 6
We note finally that Equation (3.5) then readily follows from (3.4) and (C.5). ∎
Write for the first time that the continuous-time dynamics starting from to exit the region . Then by monotone convergence theorem, we have
Hence, for fixed , one can choose a sufficiently large such that
We next control the expected difference between the exit times of the discrete dynamics, and of the continuous dynamics, from the bounded domain . For fixed and large , we can infer from Theorem 4.2 in [GM05] thatThe Assumption (H2’) in Theorem 4.2 of [GM05] can be readily verified in our setting: for both reversible and non-reversible SDE, the drift and diffusion coefficients are clearly Lipschitz; the diffusion matrix is uniformly elliptic; and the domain is bounded and it satisfies the exterior cone condition., for sufficiently small stepsize ,
Together with (C.6), we obtain for sufficiently small,
Appendix D Recurrence and escape times for underdamped Langevin dynamics with small friction
In this section, we investigate the local analysis results for the underdamped Langevin dynamics (1.7)-(1.8) when the friction coefficient is small, and in particular, we assume that .
Fix , and . Assume
where and are defined in Lemma 2, and we assumed that and thus is of order . Define the recurrence time
Consider an arbitrary initial point for the underdamped Langevin dynamics and a local minimum at a distance at most . Assume that the stepsize satisfies
for any realization of , with probability at least w.r.t. the Gaussian noise, at least one of the following events will occur: (1) for some ; (2) for every .
Notice that in Theorem 18, the definition of and are coupled since depends on and depends on . A closer look reveals that when is sufficiently small, the first term in the definition of dominates the second term and is independent of . So to satisfy the constraints in Theorem 18, it suffices to first choose to be larger than the first term in and then choose to be sufficiently small.
In [TLR18], the overdamped Langevin algorithm is used and the recurrence time , and thus our recurrence time for the underdamped Langevin algorithm with the choice of , which has a square root factor improvement ignoring the logarithmic factor. This recurrence time is worse than for the underdamped Langevin algorithm with the choice of by a logarithmic factor assuming .
Let us compare the case with the case (to be discussed in Section D). When , since for , assuming , we have
When , we have , where , and . For example, if , where and , then , as , and if , where , then , as . To summarize, with all the parameters fixed, as , the choice is more optimal than the choice . On the other hand, when the second smallest eigenvalue is close to the smallest eigenvalue , such that is large, it is more desirable to use the underdamped Langevin algorithm with instead.
The proof of Theorem 18 is similar to the proof of Theorem 3 and the following proposition, and the similar arguments in Section B.2.1.
Assume . Fix any and
For any initial point with , and
The term in Proposiiton 22 can be bounded using Lemma 26. Based on Proposition 22, the proof of Theorem 18 is similar to the proof of Theorem 3. So in the rest of the section, we will only focus on the proof of Proposition 22.
In this section, we focus on the proof of Proposition 22. We recall some definitions from Section B.2.2. We recall the matrices and from (B.30), the matrix flow from (B.31) and the processes and from (B.34)-(B.37), and also and from (B.38)-(B.39).
Assume . For any , and and any ,
The proof is similar to the proof of Lemma 8. Let us recall from Lemma 2 that if , then
where and are defined in Lemma 2. Therefore, we have
Therefore we infer that the eigenvalues of are bounded below by . The conclusion then follows from (B.58). ∎
Since , we know that . Fix some , such that . Then, for every ,
Recall that . Similar to the derivations in (B.40), we get
where and .
First, we show that the second term in (D.2) is zero. On the event , for any , we have
Therefore, for any , since , by Lemma 2, we get
since . Consequently, if we take , then,
Moreover, since it is assumed .
Second, we apply Lemma 23 to bound the first term in (D.2). By using and and the definition of and in (B.38) and (B.39), we get
by choosing , Finally, since
so that , and thus
Then with the choice of and in Lemma 8, and notice that we get
Thus for any and ,
Fix any and recall the definition of the escape time . Partition the interval using the points with , then we have
Appendix E Generalization to population risk
In this section, we apply Theorem 3, Theorem 18 and Theorem 4 to study the population risk. We recall that the population risk is denoted by , and the empirical risk is denoted by . First, we need the assumption that the population risk is -strongly Morse (see e.g. [MBM18]), that is, implies .
Suppose the assumptions in Theorem 3 holds for case and the assumptions in Theorem 18 holds for case. Assume that and for the case and for the case . With probability at least , w.r.t. both the training data and the Gaussian noise, for any local minimum of With the notation emphasizing the dependence on the training data , either for some or
Let us first assume that . Let be a local minimum of the empirical risk . By Lemma 30, all eigenvalues of of the Hessian are at least and therefore the norm is well defined and .
We can decompose (letting and )
From Lemma 29, we know with probability at least ,
In addition, we can infer from (2.1) that for any ,
By Theorem 3, with probability , either for some or
for all , where we used the definition of for the case in (3), and the assumption and the property . If the latter occurs, then by (E.3), we have
for . The proof for the case is therefore complete.
The proof for the case is similar. The only difference is that we replace (E.3) by the following estimate
for all , where we used the definition of for the case in (D.1). ∎
E.2 Non-reversible Langevin dynamics
where and are defined in (E.1) and (E.2).
The proof is similar to Theorem 24 and Theorem 3 in [TLR18]. The only difference is that we replace (E.3) by the following estimate
for all , where we used the definition of . ∎
Appendix F Supporting technical lemmas
Consider the square matrix defined by (2.5). We have
where denotes the largest real part of the eigenvalues. This leads to
Since for every , we obtain
Let be a standard -dimensional Brownian motion. For any and any with , we have
Also, by the time reversibility, stationarity of time increments of Brownian motion and Doob’s martingale inequality, for any so that , we have
Note that for any , . Let us define via
Then, we get and , and
Under and of Assumption 1, there exists an absolute constant such that for:
we have, if , then with probability at least :
If the population risk is -strongly Morse, then provided that and , the empirical risk is -strongly Morse with probability at least .