Hostname: page-component-74656f9884-c52kr Total loading time: 0 Render date: 2026-11-07T23:20:39.534Z Has data issue: false hasContentIssue false

A deterministic gradient-based approach to avoid saddle points

Published online by Cambridge University Press:  09 November 2022

L. M. Kreusser*
Affiliation:
Department of Mathematical Sciences, University of Bath, Bath BA2 7AY, UK
S. J. Osher
Affiliation:
Department of Mathematics, University of California, Los Angeles, CA 90095, USA
B. Wang
Affiliation:
Department of Mathematics, Scientific Computing and Imaging Institute, University of Utah, Salt Lake City, UT 84112, USA
*
*Corresponding author. E-mail: lmk54@bath.ac.uk
Rights & Permissions [Opens in a new window]

Abstract

Loss functions with a large number of saddle points are one of the major obstacles for training modern machine learning (ML) models efficiently. First-order methods such as gradient descent (GD) are usually the methods of choice for training ML models. However, these methods converge to saddle points for certain choices of initial guesses. In this paper, we propose a modification of the recently proposed Laplacian smoothing gradient descent (LSGD) [Osher et al., arXiv:1806.06317], called modified LSGD (mLSGD), and demonstrate its potential to avoid saddle points without sacrificing the convergence rate. Our analysis is based on the attraction region, formed by all starting points for which the considered numerical scheme converges to a saddle point. We investigate the attraction region’s dimension both analytically and numerically. For a canonical class of quadratic functions, we show that the dimension of the attraction region for mLSGD is $\lfloor (n-1)/2\rfloor$, and hence it is significantly smaller than that of GD whose dimension is $n-1$.

Information

Type
Papers
Copyright
© The Author(s), 2022. Published by Cambridge University Press
Figure 0

Figure 1. The attraction region when LSGD is applied to $f(\mathbf x)=\frac{1}{2}(x_1^2-x_2^2)$. The black, blue and red lines are the corresponding attraction regions for $\sigma=0$, $\sigma=10$ and $\sigma=100$, respectively.

Figure 1

Figure 2. Distance field for the saddle point $\mathbf 0$ after 100 iterations for GD and modified LSGD with step size $\eta=0.1$ for the function $f(x_1, x_2) = x_1^2 - x_2^2$ where the coordinates of each pixel denote the starting point and the colour shows the distance to the saddle point after 100 iterations.

Figure 2

Figure 3. Visualisation of the trajectories of GD and the modified LSGD with step size $\eta =0.1$ for the function $f(x_1,x_2)=x_1^2-x_2^2$ and initial point $[1,0]^T$. We see that GD converges to the saddle point $[0,0]^T$, but the modified LSGD does not.

Figure 3

Figure 4. Distance field to the saddle point $\mathbf 0$ after 100 iterations for GD and the modified LSGD with step size $\eta=0.1$ for the function $f(x_1, x_2) = x_1^2+6x_1x_2+2x_2^2$ where the coordinates of each pixel denote the starting point and the colour shows the distance to the saddle point after 100 iterations ($\theta_0=\arctan\left(\frac{6}{\sqrt{37}-1}\right), \theta_1=-132.635976^\circ$).

Figure 4

Figure 5. Visualisation of the trajectories of GD and the modified LSGD with step size $\eta =0.1$ for the function $f(x_1,x_2)=x_1^2+6x_1x_2+2x_2^2$ and initial point $[(\sqrt{37}-1)/6,1]^T$. We see that GD converges to the saddle point $[0,0]^T$, but the modified LSGD does not.

Figure 5

Figure 6. Visualisation of the trajectories of the Gaussian noise-injected GD with step size $\eta=0.1$ for the function $f(x_1,x_2)=x_1^2-x_2^2$ and initial point $[1,0]^T$. We see that the noise-injected GD can escape from the saddle point when the standard deviation (std.) of the Gaussian noise is big enough.