Label Noise SGD Provably Prefers Flat Global Minimizers
Alex Damian, Tengyu Ma, Jason D. Lee
Introduction
One of the central questions in modern machine learning theory is the generalization capability of overparametrized models trained by stochastic gradient descent (SGD). Recent work identifies the implicit regularization effect due to the optimization algorithm as one key factor in explaining the generalization of overparameterized models . This implicit regularization is controlled by many properties of the optimization algorithm including search direction , learning rate , batch size , momentum and dropout .
The parameter-dependent noise distribution in SGD is a crucial source of regularization . Blanc et al. initiated the study of the regularization effect of label noise SGD with square lossLabel noise SGD computes the stochastic gradient by first drawing a sample , perturbing with , and computing the gradient with respect to . by characterizing the local stability of global minimizers of the training loss. By identifying a data-dependent regularizer , Blanc et al. proved that label noise SGD locally diverges from the global minimizer if and only if is not a first-order stationary point of
The analysis is only able to demonstrate that with sufficiently small step size , label noise SGD initialized at locally diverges by a distance of and correspondingly decreases the regularizer by . This is among the first results that establish that the noise distribution alters the local stability of stochastic gradient descent. However, the parameter movement of is required to be inversely polynomially small in dimension and condition number and is thus too small to affect the predictions of the model.
HaoChen et al. , motivated by the local nature of Blanc et al. , analyzed label noise SGD in the quadratically-parametrized linear regression model . Under a well-specified sparse linear regression model and with isotropic features, HaoChen et al. proved that label noise SGD recovers the sparse ground-truth despite overparametrization, which demonstrated a global implicit bias towards sparsity in the quadratically-parametrized linear regression model.
This work seeks to identify the global implicit regularization effect of label noise SGD. Our primary result, which supports Blanc et al. , proves that label noise SGD converges to a stationary point of , where the regularizer penalizes sharp regions of the loss landscape.
The focus of this paper is on label noise SGD due to its strong regularization effects in both real and synthetic experiments . Furthermore, label noise is used in large-batch training as an additional regularizer when the regularization from standard regularizers (e.g. mini-batch, batch-norm, and dropout) is not sufficient. Label noise SGD is also known to be less sensitive to initialization, as shown in HaoChen et al. . In stark contrast, mini-batch SGD remains stuck when initialized at any poor global minimizer. Our analysis demonstrates a global regularization effect of label noise SGD by proving it converges to a stationary point of a regularized loss , even when initialized at a zero error global minimum.
The learning rate and minibatch size in SGD are also known to be important sources of regularization . Our main theorem highlights the importance of learning rate and batch size as the hyperparameters that control the balance between the loss and the regularizer – larger learning rate and smaller batch size leads to stronger regularization.
Section 2 reviews the notation and assumptions used throughout the paper. Section 2.4 formally states the main result and Section 3 sketches the proof. Section 4 presents experimental results which support our theory. Finally, Section 6 discusses the implications of this work.
Problem Setup and Main Result
Section 2.1 describes our notation and the SGD with label noise algorithm. Section 2.2 introduces the explicit formula for the regularizer . Sections 2.3 and 2.4 formally state our main result.
Note that controls the strength of the label noise and will control the strength of the implicit regularization in Theorem 1. Throughout the paper we will use . We make the following standard assumption on :
In addition, we make the following local Kurdyka-Łojasiewicz assumption (KL assumption) which ensures that there are no regions where the loss is very flat. The KL assumption is very general and holds for some for any analytic function defined on a compact domain (see Lemma 17).
Let be any global minimizer of . Then there exist and such that if , then .
We assume for any global minimizer . Note that if satisfies 3 for some then it also satisfies 3 for any . 3 with is equivalent to the much stronger Polyak-Łojasiewicz condition which is equivalent to local strong convexity.
2 The Implicit Regularizer R(θ)𝑅𝜃R(\theta)
Here refers to the matrix logarithm. To better understand the regularizer , let be the eigenvalues of and let . Then,
In the limit as , , which matches the regularizer in Blanc et al. for infinitesimal learning rate near a global minimizer. However, in additional to the linear scaling rule, which is implicit in our definition of , our analysis uncovers an additional regularization effect of large learning rates that penalizes larger eigenvalues more than smaller ones (see Figure 1 and Section 6.1).
3 (ϵ,γ)italic-ϵ𝛾(\epsilon,\gamma)-Stationary Points
We begin with the standard definition of an approximate stationary point:
is an -stationary point of if
is an -stationary point of if there exists some such that and .
Intuitively, Algorithm 1 converges to an -stationary point when it converges to a neighborhood of some -stationary point .
4 Main Result
Having defined an -stationary point we can now state our main result:
Proof Sketch
where is a sufficiently large constant. Assume satisfies 1 and satisfies 2. Let follow Algorithm 1 starting at and assume that for some . Then there exists a random process such that for any satisfying , with probability at least we have simultaneously for all ,
Toward simplifying the update in Algorithm 1, we define to be the true loss without label noise on batch . The label-noise update is an unbiased perturbation of the mini-batch update: . We decompose the update rule into three parts:
Let denote the minibatch noise. Throughout the proof we will show that the minibatch noise is dominated by the label noise. We will also decompose the label noise into two terms. The first, will represent the label noise if the gradient were evaluated at whose distribution does not vary with . The other term, represents the change in the noise due to evaluating the gradient at rather than . More precisely, we have
We define to be the covariance of the model gradients. Note that has covariance . To simplify notation in the Taylor expansions, we will use the following shorthand to refer to various quantities evaluated at :
First we need the following standard decompositions of the Hessian:
The matrix in Proposition 1 is known as the Gauss-Newton term of the Hessian. We can now Taylor expand Algorithm 1 and Equation 2 to first order around :
We define to be the deviation from the regularized trajectory. Then subtracting these two equations gives
where we used Proposition 1 to replace with . Temporarily ignoring the higher order terms, we define the random process by
The process is referred to as an Ornstein Uhlenbeck process and it encodes the movement of to first order around . We defer the proofs of the following properties of to Appendix B:
We can now analyze the effect of on the second order Taylor expansion. Let be the deviation of from the regularized trajectory after removing the Ornstein Uhlenbeck process . Lemma 1 is equivalent to .
We will prove by induction that for all with probability at least for all . The base case follows from so assume the result for some . The remainder of this section will be conditioned on the event for all . notation will only be used to hide absolute constants that do not change with and will additionally not hide dependence on the absolute constant . The following proposition fills in the missing second order terms in the Taylor expansion around of :
With probability at least ,
The intuition for the implicit regularizer is that by Propositions 2 and 1,
Therefore, when averaged over long timescales,
The second equality follows from the more general equality that for any matrix function and any scalar function that acts independently on each eigenvalue, which follows from the chain rule. The above equality is the special case when and , which satisfies .
Like Blanc et al. , Lemma 1 shows that locally follows the trajectory of gradient descent on an implicit regularizer . However, there are a few crucial differences:
Unlike in Blanc et al. , we do not require the learning rate to be small. Instead, we only require that scales with which can be accomplished either by decreasing the learning rate or increasing the batch size . This allows for stronger implicit regularization in the setting when is large (see Section 6.1). In particular, our regularizer changes with and is only equal to the regularizer in Blanc et al. in the limit .
2 Global Convergence
To be able to repeat the local analysis in Lemma 1 with multiple reference points, we need a more general coupling lemma that allows the random process defined in each coupling to continue where the random process in the previous coupling ended. To accomplish this, we define outside the scope of the local coupling lemma:
Given a sequence of reference points and a sequence of coupling times , we define the random process by , and for ,
Then we can prove the following more general coupling lemma:
Let be defined as in Lemma 1. Assume satisfies 1 and satisfies 2. Let and assume that and for some . Then for any satisfying , with probability at least we have simultaneously for all ,
Unlike in Lemma 1, we couple to the regularized trajectory starting at rather than at to avoid accumulating errors (see Figure 2). The proof is otherwise identical to that of Lemma 1.
Let . Let and assume and . Then if is not an -stationary point, there exists some such that if we define
then with probability ,
We defer the proofs of Lemma 2 and Lemma 3 to Appendix B. Theorem 1 now follows directly from repeated applications of Lemma 3:
Experiments
In order to test the ability of SGD with label noise to escape poor global minimizers and converge to better minimizers, we initialize Algorithm 1 at global minimizers of the training loss which achieve training accuracy yet generalize poorly to the test set. Minibatch SGD would remain fixed at these initializations because both the gradient and the noise in minibatch SGD vanish at any global minimizer of the training loss. We show that SGD with label noise escapes these poor initializations and converges to flatter minimizers that generalize well, which supports Theorem 1. We run experiments with two initializations:
Full Batch Initialization: We run full batch gradient descent with random initialization until convergence to a global minimizer. We call this minimizer the full batch initialization. The final test accuracy of the full batch initialization was 76%.
Adversarial Initialization: Following Liu et al. , we generate an adversarial initialization with final test accuracy that achieves zero training loss by first teaching the network to memorize random labels and then training it on the true labels. See Appendix D for full details.
Experiments were run with ResNet18 on CIFAR10 without data augmentation or weight decay. The experiments were conducted with randomized label flipping with probability (see Appendix E for the extension of Theorem 1 to classification with label flipping), cross entropy loss, and batch size 256. Because of the difficulty in computing the regularizer , we approximate it by its lower bound . Figure 3 shows the test accuracy and throughout training.
SGD with label noise escapes both zero training loss initializations and converges to flatter minimizers that generalize much better, reaching the SGD baseline from the fullbatch initialization and getting within of the baseline from the adversarial initialization. The test accuracy in both cases is strongly correlated with . The strength of the regularization is also strongly correlated with , which supports Theorem 1. See Figure 4 for experimental results for SGD with momentum.
Extensions
We make the following mild assumption on the smoothed loss which is explicitly verified for the logistic loss, exponential loss, and square loss in Section E.2:
In addition, we assume that are , Lipschitz respectively restricted to the set .
Then we define the per-sample loss and the sample loss as:
Now note that the noise per sample from label smoothing at a zero loss global minimizer can be written as
which will determine the strength of the regularization in Theorem 2. Finally, in order to study the local behavior around we define by 4. Corresponding values for for logistic loss, exponential loss, and square loss are given in Table 1.
Our main result is a version of Theorem 1:
2 SGD with Momentum
We consider heavy ball momentum with momentum , i.e. we replace the update in Algorithm 1 with
As in Lemma 1, the error is times smaller than the maximum movement of the regularized trajectory. Note that momentum increases the regularization parameter by . For the commonly used momentum parameter , this represents a increase in regularization, which is likely the cause of the improved performance in Figure 4 () over Figure 3 ().
3 Arbitrary Noise Covariances
Let be initialized at a minimizer of . Assume is Lipschitz, let and assume that for some absolute constant . Let , , and for a sufficiently large constant . Then there exists a mean zero random process such that for any satisfying and with probability , we have simultaneously for all :
As in Lemma 1, the error is times smaller than the maximum movement of the regularized trajectory. Although Proposition 5 couples to gradient descent on , is defined in terms of the Hessian and the noise covariance at and therefore depends on the choice of reference point. Because is changing, we cannot repeat Proposition 5 as in Section 3.2 to prove convergence to a stationary point because there is no fixed potential. Although it is sometimes possible to relate to a fixed potential , we show in Section F.2 that this is not generally possible by providing an example where minibatch SGD perpetually cycles. Exploring the properties of these continuously changing potentials and their connections to generalization is an interesting avenue for future work.
Discussion
Various factors can control the strength of the implicit regularization in Theorem 1. Most important is the implicit regularization parameter . This supports the hypothesis that large learning rates and small batch sizes are necessary for implicit regularization , and agrees with the standard linear scaling rule which proposes that for constant regularization strength, the learning rate needs to be inversely proportional to the batch size .
However, our analysis also uncovers an additional regularization effect of large learning rates. Unlike the regularizer in Blanc et al. , the implicit regularizer defined in Equation 1 is dependent on . It is not possible to directly analyze the behavior of as where is the largest eigenvalue of , as in this regime (see Figure 1). If we let , then we can better understand the behavior of by normalizing it by . This givesHere we assume . If instead , this limit will be .
so after normalization, becomes a better and better approximation of the spectral norm as . can therefore be seen as interpolating between , when , and when . This also suggests that SGD with large learning rates may be more resilient to the edge of stability phenomenon observed in Cohen et al. as the implicit regularization works harder to control eigenvalues approaching .
The sharpness-aware algorithm (SAM) of is also closely related to . SAM proposes to minimize . At a global minimizer of the training loss,
The SAM algorithm is therefore explicitly regularizing the spectral norm of , which is closely connected to the large learning rate regularization effect of when .
2 Generalization Bounds
The implicit regularizer is intimately connected to data-dependent generalization bounds, which measure the Lipschitzness of the network via the network Jacobian. Specifically, Wei and Ma propose the all-layer margin, which bounds the , where depends only on the norm of the parameters and is the all-layer margin. The norm of the parameters is generally controlled by weight decay regularization, so we focus our discussion on the all-layer margin. Ignoring higher-order secondary terms, Wei and Ma [30, Heuristic derivation of Lemma 3.1] showed for a feed-forward network , the all-layer margin satisfiesThe output margin is defined as . The following uses Equation (3.3) and the first-order approximation provided Wei and Ma and the chain rule .:
as is an upper bound on the squared norm of the Jacobian at any global minimizer . We emphasize this bound is informal as we discarded the higher-order terms in controlling the all-layer margin, but it accurately reflects that the regularizer lower bounds the all-layer margin up to higher-order terms. Therefore SGD with label noise implicitly regularizes the all-layer margin.
Acknowledgements
AD acknowledges support from a NSF Graduate Research Fellowship. TM acknowledges support of Google Faculty Award and NSF IIS 2045685. JDL acknowledges support of the ARO under MURI Award W911NF-11-1-0303, the Sloan Research Fellowship, NSF CCF 2002272, and an ONR Young Investigator Award.
The experiments in this paper were performed on computational resources managed and supported by Princeton Research Computing, a consortium of groups including the Princeton Institute for Computational Science and Engineering (PICSciE) and the Office of Information Technology’s High Performance Computing Center and Visualization Laboratory at Princeton University.
We would also like to thank Honglin Yuan and Jeff Z. HaoChen for useful discussions throughout various stages of the project.
References
Appendix A Limitations
In Section 2 we make three main assumptions: 1 (smoothness), 2 (learning rate separation), and 3 (KL).
1 imposes the necessary smoothness conditions on to enable second order Taylor expansions of . These smoothness conditions may not hold, e.g. if ReLU activations are used. This can be easily resolved by using a smooth activation like softplus or SiLU .
Appendix B Missing Proofs
In addition if we define ,
We define the quadratic variation and quadratic covariation of a martingale to be
therefore by Corollary 1, with probability at least , . ∎
We prove the following version of Proposition 2 for the setting of Lemma 2:
Let be defined as in Definition 3. Then for any , with probability , .
For define . Then we can write for any ,
Let . To each we will associate a martingale adapted to as follows. First let . Then for all and all ,
First we need to show is in fact a martingale. We will show this by induction on . The base case of is trivial. Next, it is easy to see that . Therefore,
where the second line followed from the induction hypothesis and the third line followed from the definition of . Therefore is a martingale for all .
Next, I claim that . We can prove this by induction on . The base case is trivial as . Then,
Finally, I claim that . We will prove this by induction on . The base case is trivial as . Then,
Therefore by Corollary 1, with probability at least . ∎
We will prove Proposition 3 and Proposition 4 in the more general setting of Lemma 2. For notational simplicity we will apply the Markov property and assume that . We define and and note that due to this time change that is not necessarily . We define and .
First, by Proposition 6, with probability at least . Then note that for ,
so Taylor expanding the update in Algorithm 1 and Equation 2 to second order around and subtracting gives
Note that for each ,
Therefore by Lemma 5, with probability ,
Next, by a second order Taylor expansion around we have
Now we will turn to concentrating . We will use the shorthand . Let
We can expand out using the fact that is square loss to get
so it suffices to bound the contribution of the first two terms individually. Starting with the second term, we have , so by Lemma 12,
so this difference contributes at most so it suffices to bound
and thatThis identity directly follows from multiplying both sides by and the fact that all of these matrices commute .
Let . Then subtracting these two equations gives
Let and let so that
so we are left with the martingale part in the second term. The final term to bound is therefore
We can switch the order of summations to get
Now if we extract the inner sum, note that
is a martingale difference sequence. Recall that
The inner sums are bounded by by Lemma 14. Therefore by Lemma 5, with probability at least , the contribution of the term in Equation 72 is at most . The final remaining term to bound is the term in (72). We can write the inner sum as
which by Lemma 14 is bounded by . Therefore by Lemma 5, with probability at least , the full contribution of to Equation 72 is . Putting all of these bounds together we get with probability at least ,
The following lemma is necessary for some of the proofs below:
Assume that . Then for any , .
By induction it suffices to prove this for . Let . First consider the case when
Then by 3, so we are done. Otherwise, note that
and for sufficiently large, the second term is larger than the third so . ∎
In the context of Lemma 3, if is not an -stationary point, there exists such that:
Let and let be chosen as in Proposition 7. Then, where and .
Combining Propositions 8 and 10, we have that
The following corollary also follows from the choice of , Proposition 9, and Lemma 2:
and with probability at least , .
The proof of Lemma 3 follows directly from Equation 89, Proposition 11, and Corollary 2. The proofs of the above propositions can be found below:
Then we can upper bound each element in this sum by
for sufficiently large . Therefore there must exist such that
Therefore there must exist some such that
by the choice of in Theorem 1. In addition,
again by the choice of . Therefore is an -stationary point. ∎
Let , so that and let so that . Let be a sufficiently large absolute constant. We will prove by induction that . Note that
because of the values chosen for , . Therefore Taylor expanding around gives:
where by the definition of . Therefore
so if ,
We will need the following lemma before the next proof:
Let where by Proposition 9, , , and . Then,
for sufficiently large . Therefore by Lemma 7 and Proposition 7,
for sufficiently large . Finally, the remainder term is bounded by
for sufficiently large for the same reason as above. Putting it all together,
Assume otherwise for the sake of contradiction. Because is Lipschitz, . Therefore by Equation 89,
Then by the same arguments as in Proposition 10, we can Taylor expand around to get
because . Therefore for sufficiently large . ∎
Appendix C Reaching a global minimizer with NTK
It is well known that overparameterized neural networks in the kernel regime trained by gradient descent reach global minimizers of the training loss . In this section we describe how to extend the proof in to show that SGD with label noise (Algorithm 1) converges to a neighborhood of a global minimizer as required by Theorem 1. We will use the following lemma from :
Let and . We will define iteratively as follows:
Let and let . We will prove by induction that for all we have . The base case follows from . For we have
which completes the induction. Therefore it suffices to show that the loss of is small. We have
where the last line follows from Young’s inequality. Therefore,
Let be the Jacobian of and be the vector of residuals. Then . Now so long as ,
for small by the choice of . It only remains to check that . Note that
Note that a direct application of Theorem 1 requires starting at . However, this does not affect the proof in any way and the from this proof can simply be continued as in Lemma 2.
Appendix D Additional Experimental Details
The model used in our experiments is ResNet18 with GroupNorm instead of BatchNorm to maintain independence of sample gradients when computed in a batch. We used a fixed group size of 32.
For the full batch initialization, we trained ResNet18 on the CIFAR10 training set (50k images, 5k per class) , with cross entropy loss. CIFAR10 images are provided under an MIT license. We trained using SGD with momentum with and for epochs. We used learning rate warmup starting at which linearly increased until at epoch and then it decayed using a cosine learning rate schedule to between epochs and . We also used a label smoothing value of (non-randomized) so that the expected objective function is the same for when we switch to SGD with label flipping (see Appendix E). The final test accuracy was .
For the adversarial initialization, we first created an augmented adversarial dataset as follows. We duplicate every image in CIFAR10 , for a total of 500k images. In each image, we randomly zero out of the pixels in the image and we assign each of the 500k images a random label. We trained ResNet18 to interpolate this dataset without label smoothing with the following hyperparameters: , epochs, batch size . Starting from this initialization we ran SGD on the true dataset with and a label smoothing value of with batch size for epochs. The final test accuracy was .
For the remaining experiments starting at these two initializations we ran both with and without momentum (see Figure 4 for the results with momentum) for epochs per run. We used a fixed batch size of and varied the maximum learning rate . We used learning rate warmup by linearly increasing the learning rate from to the max learning rate over epochs, and we kept the learning rate constant from epochs to . The regularizer was estimated by computing the strength of the noise in each step and then averaging over an epoch. More specifically, we compute the average of over an epoch and then renormalize by the batch size.
The experiments were run on NVIDIA P100 GPUs through Princeton Research Computing. Code was written in Python using PyTorch and PyTorch Lightning , and experiments were logged using Wandb . Code can be found at https://github.com/adamian98/LabelNoiseFlatMinimizers.
Appendix E Extension to Classification
The proof of Theorem 2 is virtually identical to that of Theorem 1. First we make a few simplifications without loss of generality:
Next note that without loss of generality we can replace each with and set all of the true labels to . Therefore from now on we will simply speak of .
Let be a sequence of coupling times and a sequence of reference points. Let . Then for , if denotes true value of the loss on batch , we can decompose the loss as
We decompose where
and . Note that has covariance . We define and for ,
Then we have the following version of Proposition 6:
Let . Then for any , with probability , .
Let . Define the martingale sequence as in Proposition 6. I claim that . We will prove this by induction on . The base case is trivial as . Then,
Define as in Lemma 1. Then we have the following local coupling lemma:
Assume satisfies 1, satisfies 2, and satisfies 4. Let and assume that and for some . Then for any satisfying , with probability at least we have simultaneously for all ,
The proof of Lemma 9 follows directly from the following decompositions:
Let , , , , , . Then,
These are the exact same decompositions used Proposition 3 and Proposition 4, so Lemma 9 immediately follows. In addition, as we never used the exact value of the constant in in the proof of Theorem 1, the analysis there applies directly as well showing that we converge to an -stationary point and proving Theorem 2.
E.2 Verifying 4
We verify 4 for the logistic loss, the exponential loss, and the square loss and derive the corresponding values of found in Table 1.
For logistic loss, we let , and . Then
which is negative when and positive when so it is minimized at . To show the quadratic approximation holds at , it suffices to show that is bounded. We have and
so we are done. Finally, to calculate the strength of the noise at we have
E.2.2 Exponential Loss
We have and . Then,
which is negative when and positive when so it is minimized at . Then we can compute
because . Finally to compute the strength of the noise we have
E.2.3 Square Loss
We have and . Then,
which is a quadratic minimized at . The quadratic approximation trivially holds and the strength of the noise is:
Appendix F Arbitrary Noise
We follow the proof of Lemma 2. First, let with and define and . Let , , and . Let be the smallest nonzero eigenvalue of . Unlike in Lemma 1, we will omit the dependence on .
First we need to show exists. Consider the update
Restricted to the span of , this is a contraction so it must converge to a fixed point. In fact, we can write this fixed point in a basis of explicitly. Let be the eigenvalues of . The following computation will be performed in an eigenbasis of . Then the above update is equivalent to:
Therefore if we can set
so by Corollary 1, with probability . Define and . We will prove by induction that with probability at least . First, with probability , . In addition, for ,
Therefore from the second order Taylor expansion:
Because is Gaussian with covariance bounded by by the assumption that is Lipschitz, we have by the standard Gaussian tail bound that its contribution after summing is bounded by with probability at least so summing over gives
Now denote . Then we need to bound
Let . Then plugging this into the recurrence for gives
where is the projection onto . We switch the order of summation for the next two terms to get
Note that conditioned on , , the part of the inner sum is Gaussian with variance bounded by so by Lemma 16, with probability at least , the contribution of is bounded by .
With probability we can assume that for all so the first term is zero. For the second term the inner sum is bounded by and has variance bounded by by the same arguments as above. Therefore by Bernstein’s inequality, the whole term is bounded by with probability . Finally, to bound the third term note that
Therefore the whole term is bounded by . Finally, pick . Then the final bound is
for sufficiently large . This completes the induction.
F.2 SGD Cycling
Let . We will define a set of functions as follows:
The intuition for the definition of above is as follows. When and , due to the constraints from to , only can grow to become nonzero. Then locally, and so this will cause oscillations in the direction, so will concentrate in the direction which will bias minibatch SGD towards decreasing the corresponding entry in which is proportional to , which means it will increase . Similarly when there is a bias towards decreasing , when there is a bias towards decreasing , and when there is a bias towards increasing . Each of these is handled by a different Ornstein Uhlenbeck process . ensures that remains on throughout this process. This cycling is a result of minimizing a rapidly changing potential and shows that the implicit bias of minibatch SGD cannot be recovered by coupling to a fixed potential.
Appendix G Weak Contraction Bounds and Additional Lemmas
where we used that the function is bounded. ∎
where we used the fact that the function is bounded. ∎
The following concentration inequality is from Jin et al. :
we have that for any there exists an absolute constant such that with probability at least ,
Assume that is analytic and is restricted to some compact set . Then there exist such that 3 is satisfied.
It is known that there exist satisfying the KL-inequality in the neighborhood of any critical point of , i.e. for every critical point , there exists a neighborhood of such that for any ,
Let for any global minimizer . For every global min , let be a neighborhood of such that the KL inequality holds with constants . Because is compact and is closed, is compact and there must exist some such that . Let . Then for all , there must exist some such that satisfies the KL inequality and let . Finally, let which is an open set containing . Then is a compact set and therefore must achieve a minimum on this set. Note that as . Then if , so satisfy the KL inequality at . ∎
Appendix H Extension to SGD with Momentum
We now prove Lemma 4. We will copy all of the notation from Section 3.1. As before we define . Define by and
We now define the following block matrices that will be crucial in our analysis:
Then we are ready to prove the following proposition:
With probability , .
Define . Then the above can be written as:
The partial sums form a martingale and by Proposition 21, the quadratic covariation is bounded by
We will prove Lemma 4 by induction on . Assume that for . First, we have the following version of Proposition 3:
Let . Then,
and subtracting the definition of proves the top block of the proposition. The bottom block is equivalent to the identity . ∎
We have from the previous proposition that
By Corollary 3, we know that is bounded by so the remainder term is bounded by . Similarly, by the exact same concentration inequalities used in the proof of Proposition 4, we have that the contribution of the terms is at most which completes the proof. ∎
As in the proof of Proposition 4, we define
Then note that so it suffices to bound
We will begin by bounding the second term. Note that
so this difference contributes at most . For the first term, let . We will decompose as before to get
The third term can be bound by the triangle inequality by Corollary 3 to get . The second term can be bound by Proposition 22 to get .
The final remaining term is the first term. Define
From the proof of Proposition 21, we can see that satisfies
Let . Then,
where and . Then,
Plugging this into the first term, which we have not yet bounded, we get
For the first term in this expression we can use Proposition 22 to bound it by . Therefore we are just left with the second term. Changing the order of summation gives
Recall that . First, isolating the inner sum for the term, we get
The inner sums are bounded by by Proposition 24. Therefore by Lemma 5, with probability at least , the contribution of the term in Equation 72 is at most . The final remaining term to bound is the term in (72). We can write the inner sum as
which by Proposition 24 is bounded by . Therefore by Lemma 5, with probability at least , the full contribution of is . ∎
Putting all of these bounds together we get with probability at least ,
for sufficiently large which completes the induction.
Let the eigenvalues of be so
Note that these satisfy and .
First, if then so we are done. Otherwise, we can assume WLOG that because remains fixed by the transformation . Then so it suffices to show . Let . Then,
and similarly for in place of so we are done. ∎
Let . Then,
We proceed by induction on . The base case is clear as , , and . Now assume the result for some . Then,
because . ∎
where the second inequality follows from the rearrangement inequality as is an increasing sequence and is a decreasing sequence. ∎
Consider . We will rewrite this expression in the basis . Then the th diagonal block will be equal to
If then this term is . Otherwise, we know that so this infinite sum converges to some matrix . Then plugging this into the fixed point equation gives
and solving this system entry wise for gives
Converting back to the original basis gives the desired result. ∎