What Happens after SGD Reaches Zero Loss? --A Mathematical Framework
Zhiyuan Li, Tianhao Wang, Sanjeev Arora
Introduction
The implicit bias underlies the generalization ability of machine learning models trained by stochastic gradient descent (SGD). But it still remains a mystery to mathematically characterize such bias. We study SGD in the following formulation
It is widely believed that large LR (or equivalently, small batch size) helps SGD find better minima. For instance, some previous works argued that large noise enables SGD to select a flatter attraction basin of the loss landscape which potentially benefits generalization (Li et al., 2019c; Jastrzebski et al., 2017). However, there is also experimental evidence (Li et al., 2020b) that small LR also has equally good implicit bias (albeit with higher training time), and that is the case studied here. Presumably low LR precludes SGD jumping between different basins since under general conditions this should require steps (Shi et al., 2020). In other words, there should be a mechanism to reach better generalization while staying within a single basin. For deterministic GD similar mechanisms have been demonstrated in simple cases (Soudry et al., 2018; Lyu & Li, 2019) and referred to as implicit bias of gradient descent. The current paper can be seen as study of implicit bias of Stochastic GD, which turns out to be quite different, mathematically.
The contribution of the current paper is a more general and global analysis of this type. We introduce a more powerful framework inspired by the classic paper (Katzenberger, 1991).
We start with an intuitive description of the implicit regularization effect described in Blanc et al. (2020). For simplification, we show it for the canonical SDE approximation (See Section B.1 for more details) of SGD (1) (Li et al., 2017; Cheng et al., 2020). Here is the standard -dimensional Brownian motion. The only property about label noise SGD we will use is that the noise covariance for every in the manifold (See derivation in Section 5).
However, the above approach only gives a local analysis for time, where the total movement due to implicit regularization is and thus is negligible when . In order to get a non-trivial limiting dynamics when , a global analysis for steps is necessary and it cannot be done by Taylor expansion with a single reference point. Recent work by Damian et al. (2021) glues analyses of multiple local phases into a global guarantee that SGD finds a -stationary point for the regularized loss, but still doesn’t show convergence for trajectory when and cannot deal with general noise types, e.g., noise lying in the tangent space of the manifold. The main technical difficulty here is that it’s not clear how to separate the slow and fast dynamics in different spaces and how to only take limit for the slow dynamics, especially when shifting to a new reference point in the Taylor series calculation.
2 Our Approach: Separating the Slow from the Fast
In this work, we tackle this problem via a different angle. First, since the anticipated limiting dynamics is of speed , we change the time scaling to accelerate (2) by times, which yields
Note the first term is going to diverge to when , so a natural choice for is to kill the first term. Further note is indeed the directional derivative of at towards , killing the first term becomes equivalent to making invariant under Gradient Flow (GF) of ! Thus it suffices to take to be the limit of GF starting at . (Formally defined in Section 3; see Lemma C.2 for a proof of .)
Also intuitively will be infinitely close to , i.e., for any as , so we have . Thus we can rewrite the above equation as
and the solution of (4) shall converge to that of the following (in an intuitive sense):
The main contributions of this paper are summarized as follows.
In Section 4, we propose a mathematical framework to study the implicit bias of SGD with infinitesimal LR. Our main theorem (Theorem 4.6) gives the limiting diffusion of SGD with LR for steps as and allows any covariance structure.
In Section 5, we give limiting dynamics of SGD with isotropic noise and label noise.
Related Works
A phenomenon known as mode connectivity has been observed that local minimizers of the loss function of a neural network are connected by simple paths (Freeman & Bruna, 2016; Garipov et al., 2018; Draxler et al., 2018), especially for overparametrized models (Venturi et al., 2018; Liang et al., 2018; Nguyen et al., 2018; Nguyen, 2019). Later this phenomanon is explained under generic assumptions by Kuditipudi et al. (2019). Moreover, it has been proved that the local minimizers of an overparametrized network form a low-dimensional manifold (Cooper, 2018, 2020) which possibly has many components. Fehrman et al. (2020) proved the convergence rate of SGD to the manifold of local minimizers starting in a small neighborhood.
Implicit Bias in Overparametrized Models
Modelling Stochastic First-Order Methods with Itô SDE
Apart from the discrete-time analysis, another popular approach to study SGD is through the continuous-time lens using SDE (Li et al., 2017, 2019b; Cheng et al., 2020). Such an approach is often more elegant and can provide fruitful insights like the linear scaling rule (Krizhevsky, 2014; Goyal et al., 2017) and the intrinsic learning rate (Li et al., 2020b). A recent work by Li et al. (2021) justifies such SDE approximation. Xie et al. (2020) gave a heuristic derivation explaining why SGD favors flat minima with SDE approximation. Wojtowytsch (2021) showed that the invariant distribution of the canonical SDE approximation of SGD will collapse to some manifold of minimizers and in particular, favors flat minima. By approximating SGD using a SDE with slightly modified covariance for the overparametrized linear model, Pesme et al. (2021) relates the strength of implicit regularization to training speed.
Notation and Preliminaries
Assume that is an open neighborhood of satisfying that gradient flow starting in converges to some point in , i.e., , . (Then is on by Falconer (1983).)
Limiting Diffusion of SGD
In Section 4.1 we first recap the main result of Katzenberger (1991). In Section 4.2 we derive the closed-form expressions of and . We present our main result in Section 4.3. We remark that sometimes we omit the dependency on to make things clearer.
In particular, when the integrator sequence increases infinitely fast, meaning that as , we call (6) a Katzenberger process.
One difficulty for directly studying the limiting dynamics of is that the point-wise limit as become discontinuous at if . The reason is that clearly , but for any , since increases infinitely fast, one can prove ! To circumvent this issue, we consider . Then for each , we have and . Thus has the same limit on as , but the limit of the former is further continuous at .
Suppose the loss , manifold and neighborhood satisfies Assumptions 3.1 and 3.2. Let be a sequence of Katzenberger process with . Let . Under technical assumptions, it holds that if converges to some in distribution, where is the standard Brownian motion, then stays on and admits
Indeed, SGD (1) can be rewritten into a Katzenberger process as in the following lemma.
Let be any positive sequence with , , and , where . Then with the same initialization , defined by is a Katzenberger process and is equal to defined in (1) with LR equal to for all . Moreover, the counterpart of (7) is
where and is a -dimensional standard Brownian motion.
However, there are two obstacles preventing us from directly applying Theorem 4.1 to SGD. First, the stochastic integral in (8) depends on the derivatives of , and , but Katzenberger (1991) did not give their dependency on loss . To resolve this, we explicitly calculate the derivatives of on in terms of the derivatives of in Section 4.2.
The second difficulty comes from the convergence of which we assume as granted for brevity in Theorem 4.1. In fact, the full version of Theorem 4.1 (see Theorem B.7) concerns the stopped version of with respect to some compact , i.e., where is the stopping time of leaving . As noted in Katzenberger (1991), we need the convergence of for to converge, which is a strong condition and difficult to prove in our cases. We circumvent this issue by proving Theorem B.9, a user-friendly interface for the original theorem in Katzenberger (1991), and it only requires the information about the limiting diffusion. Building upon these, we present our final result as Theorem 4.6.
2 Closed-Form expression of the limiting diffusion
We can calculate the derivatives of by relating to those of . Here the key observation is the invariance of along the trajectory of GF. The proofs of this section are deferred into Appendix C.
For any , is the orthogonal projection matrix onto tangent space .
To express the second-order derivatives compactly, we introduce the notion of Lyapunov operator.
3 Main Result
Now we are ready to present our main result. It’s a direct combination of Theorem B.9 and Lemma 4.5.
where and are defined in Lemma 4.5.
In Section B.4 we indeed prove a stronger version of Theorem 4.6 that the sample paths of SGD converge in distribution, i.e., let , then weakly converges to on . Moreover, we only assume the existence of a global solution for ease of presentation. As long as there exists a compact such that stays in on with high probability, Theorem B.9 still provides the convergence of SGD iterates (stopped at the boundary of ) before time with high probability.
Implications and Examples
In this section, we derive the limiting dynamics for two notable noise types, where we fix the expected loss and the noise distribution, and only drive to 0. The proofs are deferred into Section C.3.
Isotropic noise means for any (Shi et al., 2020). The following theorem shows that the limiting diffusion with isotropic noise can be viewed as a Brownian Motion plus Riemannian Gradient Flow with respect to the pseudo-determinant of .
If on , SDE (10) is then
Type II: Label Noise.
In sharp contrast to the delicate discrete-time analysis in Blanc et al. (2020) and Damian et al. (2021), the following corollary recovers the same result but with much simpler analysis – taking derivatives is all you need. Under our framework, we no longer need to do Taylor expansion manually nor carefully control the infinitesimal variables of different orders together. It is also worth mentioning that our framework immediately gives a global analysis of steps for SGD, far beyond the local coupling analysis in previous works. In Section 6, we will see how such global analysis allows us to prove a concrete generalization upper bound in a non-convex problem, the overparametrized linear model (Woodworth et al., 2020; HaoChen et al., 2020).
If on for some constant , SDE (10) can be simplified into (13) where the regularization is from the noise in the normal space.
Provable Generalization Benefit with Label Noise
In the setting of OLM, suppose the groundtruth is -sparse and training data are sampled from either i.i.d. Gaussian or Boolean distribution. Then for any initialization (except a zero-measure set) and any , there exist such that for any , OLM trained with label noise SGD (12) with LR equal to for steps returns an -optimal solution, with probability of over the randomness of the training dataset.
The proof roadmap of Theorem 6.1 is the following:
Show Assumption 3.1 is satisfied, i.e., the set of local minimizers, , is indeed a manifold and the hessian is non-degenerate on (by Lemma 6.2);
Show Assumption 3.2 is satisfied, i.e., (by Lemma 6.3);
Show the limiting flow (13) converges to the minimizer of the regularizer (by Lemma 6.5);
Show the minimizer of the regularizer recovers the groundtruth (by Lemma 6.6).
Our setting is more general than HaoChen et al. (2020), which assumes and their reparametrization can only express positive linear functions, i.e., . Their rate is achieved with a delicate three phase LR schedule, while our rate only uses a constant LR.
We verify that the above loss function and manifold satisfy Assumption 3.1 by Lemma 6.2, and that the neighborhood and satisfy Assumption 3.2 by Lemma 6.3.
In previous works (Woodworth et al., 2020; Azulay et al., 2021), the convergence of gradient flow is only assumed. Recently Pesme et al. (2021) proved it for a specific initialization, i.e., for some . Lemma 6.3 completely removes the technical assumption.
The limiting behavior of label noise SGD is described by a Riemannian gradient flow on as follows:
The goal is to show that the above limiting flow will converge to the underlying groundtruth where .
1 Limiting Flow Converges to Minimizers of Regularizer
Thus the non-compactness of brings challenges for both (a) and (b). For (a), the convergence for standard gradient flow is often for free, as long as the trajectory is bounded and the objective is analytic or smooth and semialgebraic. The latter ensures the so-called Kurdyka-Łojasiewicz (KL) inequality (Lojasiewicz, 1963), which implies finite trajectory length and thus the convergence. However, since our flow does not satisfy those nice properties, we have to show that the limiting flow satisfies Polyak-Łojasiewicz condition (a special case of KL condition) (Polyak, 1964) via careful calculation (by Lemma D.16).
For (b), the standard analysis based on center stable manifold theorem shows that gradient descent/flow converges to strict saddle (stationary point with at least one negative eigenvalue in hessian) only for a zero-measure set of initialization (Lee et al., 2016, 2017). However, such analyses cannot deal with the case where the flow is not differentiable at the sub-optimal stationary point. To circumvent this issue, we prove the non-convergence to sub-optimal stationary points with a novel approach: we show that for any stationary point , whenever there exists a descent direction of the regularizer at , we can construct a potential function which increases monotonically along the flow around , while the potential function is equal to at , leading to a contradiction. (See proof of Lemma 6.5.)
2 Minimizer of the Regularizer Recovers the Sparse Groundtruth
3 Lower Bound for Gradient Descent in the Kernel Regime
In this subsection we show GD needs at least samples to learn OLM, when initialized in the kernel regime. This lower bound holds for all learning rate schedules and numbers of steps. This is in sharp contrast to the sample complexity upper bound of SGD with label noise. Following the setting of kernel regime in (Woodworth et al., 2020), we consider the limit of , with . It holds that and for each . Standard convergence analysis for NTK (Neural Tangent Kernel, Jacot et al. (2018)) shows that upon convergence, the distance traveled by parameter converges to , and thus the learned model shall converge in function space, so is the generalization performance. For ease of illustration, we directly consider the lower bound for test loss when the NTK is fixed throughout the training.
Conclusion and Future Work
We propose a mathematical framework to study the implicit bias of SGD with infinitesimal LR. We show that with arbitrary noise covariance, steps of SGD converge to a limiting diffusion on certain manifold of local minimizer, as the LR . For specific noise types, this allows us to recover and strengthen results regarding implicit bias in previous works with much simpler analysis. In particular, we show a sample complexity gap between label noise SGD and GD in the kernel regime for a overparametrized linear model, justifying the generalization benefit of SGD. For the future work, we believe our framework can be applied to analyze the implicit bias of SGD in more complex models towards better understanding of the algorithmic regularization induced by stochasticity. It will be valuable to extend our method to other stochastic optimization algorithms, e.g., ADAM, SGD with momentum.
Acknowledgement
We thank Yangyang Li for pointing us to Katzenberger (1991). We also thank Wei Zhan, Jason Lee and Lin Chen for helpful discussions.
The authors acknowledge support from NSF, ONR, Simons Foundation, Schmidt Foundation, Mozilla Research, Amazon Research, DARPA and SRC. ZL is also supported by Microsoft Research PhD Fellowship.
References
Appendix A Preliminaries on Stochastic Processes
Next, we review a few basics of stochastic processes that will be useful for proving our results, so that our paper will be self-contained. We refer the reader to classics like Karatzas & Shreve (2014); Billingsley (2013); Pollard (2012) for more systematic derivations.
Let . A function is càdlàg if for all it is right-continuous at and its left limit exists. Let be the set of all càdlàg function mapping into . We also use to denote the set of all continuous function mapping into . By definition, .
For any function and any interval , we define
Moreover, the continuity modulus of càdlàg is defined as
For any , we define the jump of at to be
For any , we define by
For each finite and each pair of functions , define as the infimum of all those values of for which there exist grids and , with , such that for , and
for . The Skorokhod metric on is defined to be
A.2 Stochastic Processes and Stochastic Integral
in probability as the mesh size of goes to 0, if it exists. Moreover, for itself, we write
Let be a -adapted stochastic process. If for all , it holds that
Let be a -adapted stochastic process. If there exists a sequence of -stopping time, , such that
and is a -adapted martingale,
Let be a -adapted stochastic process. If there exists a local martingale and a càdlàg -adapted process with bounded total variation that , then is called a semimartingale.
Since all deterministic process are adapted, the above definition of integral also makes sense for deterministic functions and is a generalization of standard Riemman-Stieltjes Integral. The difference is that in the above Itô’s Stochastic Integral we use the left-end value of the integrand but the existence of Riemman-Stieltjes Integral requires the limit exists for any point within the interval. When and don’t jump together, Riemman-Stieltjes Integral exists and coincides with the Itô’s Integral.
Let be defined through the following Itô drift-diffusion process:
where is the standard Brownian motion. Then for any twice differentiable function , it holds that
A.3 Weak Convergence for Stochastic Processes
Let be a metric space equipped with a -algebra and the Skorokhod metric defined in the previous subsection.
Though we define weak convergence for a countable sequence of stochastic processes, but it is still valid if we index the stochastic processes by real numbers, e.g., , and consider the weak convergence of as . This is because the convergence in (20) is for a sequence of real numbers, which is also well-defined if we replace by .
Let . For any two probability measures and on a metric space with metric , let be a coupling such that is the marginalized law of and that of . We define
Note this distance is not a metric because it does not satisfy triangle inequality.
For any two probability measures and on a metric space with metric , let be a coupling such that is the marginalized law of and that of . Denote the marginal laws of and by and respectively. We define the Prohorov metric as
It can be shown that is equivalent to .
For each finite and each pair of functions , the uniform metric is defined to be
The uniform metric on is defined to be
Appendix B Limiting Diffusion of SGD
First, as mentioned in Assumption 3.2, we verify that the mapping is in Lemma B.1. In Section B.1 we discuss how different time scalings could affect the coefficients in SDE (2) and (3). Then we check the necessary conditions for applying the results in Katzenberger (1991) in Section B.2 and recap the corresponding theorem for the asymptotically continuous case in Section B.3. Finally, we provide a user-friendly interface for Katzenberger’s theorem in Section B.4.
Under Assumption 3.2, is on .
Applying Theorem 5.1 of Falconer (1983) with suffices. ∎
where the time correspondence is , i.e., .
Now rescale the above SDE by considering , which then yields
where the time correspondence is , i.e., . The above SDE is exactly the same as (2).
Then, to accelerate the above SDE by times, let’s define . Then it follows that
Again note that in sample paths and thus is also a -Brownian motion. Here the time correspondence is , i.e., evolving for constant time with the above SDE approximates steps of SGD. In this way, we derive SDE (3) in the main context.
B.2 Necessary Conditions
Below we collect the necessary conditions imposed on and in Katzenberger (1991). Recall that we consider the following stochastic process
For any stopping time , the stopped process is defined as . For any compact , we define the stopping time of leaving as .
The integrator sequence is asymptotically continuous: where is the left limit of at .
The integrator sequence increases infinitely fast: , .
For every , as , it holds that
for every and , where denotes total variation on the interval .
For SGD iterates defined using the notation in Lemma 4.2, the sequences and satisfy Condition B.2, B.3, B.4 and B.5.
Condition B.2 is obvious from the definition of .
Next, for any and , we have
which implies that for small enough . Then taking yields the Condition B.3.
Therefore, we have for all . This implies that uniformly over as , which verifies Condition B.4.
We proceed to verify Condition B.5. By the definition of , we know that is a jump process with independent increments and thus is a martingale. Therefore, by decomposing with being a local martingale and a finite variation process, we must have and is itself. It then suffices to show that is uniformly integrable for every and . Since is a pure jump process, we have
This implies that is universally bounded by , and thus is uniformly integrable. This completes the proof. ∎
For any , it suffices to show that given , we further have . By the definition of and note that are constants on , we have that for all , and therefore
where the second equality is because and are constant on interval . This confirms the alignment between and .
B.3 Katzenberger’s Theorem for Asymptotically Continuous Case
The full Katzenberger’s theorem deals with a more general case, which only requires the sequence of intergrators to be asymptotically continuous, thus including SDE (3) and SGD (1) with goes to .
for all where is the stopping time of leaving .
We note that by Lemma A.16, convergence in distribution under skorohod metric is equivalent to convergence in distribution under uniform metric Definition A.15, therefore in the rest of the paper we will only use the uniform metric in the rest of the paper, e.g., whenever we mention Prohorov metric and -Prohorov distance, the underlying metric is the uniform metric.
B.4 A User-friendly Interface for Katzenberger’s Theorem
Based on the Lemma B.6, we can immediately apply Theorem B.7 to obtain the following limiting diffusion of SGD.
Let the manifold and its open neighborhood satisfy Assumptions 3.1 and 3.2. Let be any compact set and fix some . Consider the SGD formulated in Lemma 4.2 where . Define
where is the standard Brownian motion and is as defined in Lemma 4.2.
However, the above theorem is hard to parse and cannot be directly applied if we want to further study the implicit bias of SGD through this limiting diffusion. Therefore, we develop a user-friendly interface to it in below. In particular, Theorem 4.6 is the a special case of Theorem B.9. In Theorem 4.6, we replace with to simplify the equation, since and thus this change doesn’t affect the distribution of the sample paths of the solution.
which means there is a coupling between the distribution of the stopped processes and , such that the uniform metric between them is smaller than with probability at least . In other words, .
Moreover, when is a global solution to the following limiting diffusion
For clarity, we break the proof of Theorem B.9 into two parts, devoted to the two claims respectively.
First, Theorem B.8 guarantees there exists a stopping time and a stochastic process such that
satisfies Equation 23;
.
Let be the event such that on . Then restricted on , we have as holds a.s. We first prove the claim for any convergent subsequence of .
Now, let be a sequence of LRs such that and as . By applying the Skorohod representation theorem, we can put and under the same probability space such that a.s. in the Skorohod metric, or equivalently the uniform metric (since is continuous) i.e.,
which further implies that for any , there exists some such that for all ,
Restricted on , we have , and it follows that for all ,
where we denote the complement of by .
By the definition of the Prohorov metric in Definition A.13, we then get for all . Therefore, we have
Now we claim that it indeed holds that . We prove this by contradiction. Suppose otherwise, then there exists some such that for all , there exists some with . Consequently, there is a sequence satisfying and for all . Since is relatively compact, there exists a subsequence (WLOG, assume it is the original sequence itself) converging to in distribution. However, repeating the exactly same argument as above, we would have for all sufficiently large , which is a contradiction. This completes the proof. ∎
Note that , so we have for all ,
On the other hand, if , then . Thus we can conclude that implies . Therefore, we further have
Finally, since , we have for all ,
Now, we provide the proof of Theorem 4.6 as a direct application of Theorem B.9.
which means always stays on .
Then recall the decomposition of as defined in Lemma 4.5. Since never leaves , by Lemma 4.5, we can rewrite Equation 10 as
where the second equality follows from the definition that . This coincides with the formulation of the limiting diffusion in Theorem B.9. Therefore, further combining Lemma 4.2 and the second part of Theorem B.9, we obtain the desired result. ∎
Our result suggests that for tiny LR , SGD dynamics have two phases. In Phase I of steps, the SGD iterates move towards the manifold of local minimizers along GF. Then in Phase II which is of steps, the SGD iterates stay close to and diffuse approximately according to (10). See Figure 2 for an illustration of this two-phase dynamics. However, since the length of Phase I gets negligible compared to that of Phase II when , Theorem 4.6 only reflects the time scaling of Phase II.
Appendix C Explicit Formula of the Limiting Diffusion
In this section, we demonstrate how to compute the derivatives of by relating to those of the loss function , and then present the explicit formula of the limiting diffusion.
For any and any , it holds that .
Evaluating the above equation at yields . Moreover, take the second order derivative and we have
Evaluating at completes the proof. ∎
Now we can prove Lemma 4.3, restated in below. See 4.3
This implies that for all .
Next, for any and , consider expanding at :
where the second equality follows from the assumption that is full-rank when restricted on . Then since is continuous, it follows that
By Lemma C.2, we have for all , which then implies that for all .
Therefore, under the basis , is given by
that is, the projection matrix onto . ∎
For any , it holds that .
It directly follows from Lemma C.1 and Lemma 4.3. ∎
Next, we proceed to compute the second-order derivatives.
Denote the derivative of and with respect to as and . Then differentiating with respect to , we have
Then combining (25) and (26) and evaluating at , we have
We can decompose and as follows
This implies that we must have and . Similarly, by taking transpose in (27), we also have .
It then remains to determine the value of . Note that since , we have , evaluating which at yields
Therefore, we must have . Combining the above results, we obtain
Finally, recall that , and thus
Similarly, we have , and it follows that
For any and , it holds that
For any , we define for . By Taylor approximation, we have
Combine (28) and (29) and apply Lemma C.2, and it follows that
where the last equality follows from Lemma C.3. Dividing both sides by and letting , we get
Rearranging the above equation completes the proof. ∎
With the notion of Lyapunov Operator in Definition 4.4, Lemma C.5 can be further simplified into Lemma C.6.
Let and . The key observation is that . Therefore, by Lemma C.5, it holds that
Then Lemma 4.5 directly follows from Lemma C.4 and C.6.
C.2 Tangent Noise Compensation only Dependends on the Manifold Itself
Here we show that the second term of (10), i.e., the tangent noise compensation for the limiting dynamics to stay on , only depends on itself.
For any , suppose there exist a neighborhood of and two loss functions and that define the same manifold locally in , i.e., . Then for any , it holds that .
C.3 Proof of results in Section 5
Now we are ready to give the missing proofs in Section 5 which yield explicit formula of the limiting diffusion for label noise and isotropic noise.
Set , and in the decomposition of by Lemma 4.5, and we need to show .
C.4 Example: k𝑘k-Phase Motor
We also give an example with rigorous proof where the implicit bias induced by noise in the normal space cannot be characterized by a fixed regularizer, which was first discovered by Damian et al. (2021) but was only verified via experiments.
Note the normal regularization in both cases of label noise and isotropic noise induces Riemmanian gradient flow against some regularizer, it’s natural to wonder if the limiting flow induced by the normal noise can always be characterized by certain regularizer. Interestingly, Damian et al. (2021) answers this question negatively via experiments in their Section E.2. We adapt their example into the following one, and rigorously prove the limiting flow moves around a cycle at a constant speed and never stops using our framework.
The basic idea is that we can add noise in the ‘auxiliary dimensions’ for to get the regularization force on the circle , and the goal is to make the vector field induced by the normal regularization always point to the same direction, say anti-clockwise. However, this cannot be done with a single auxiliary dimension because from the analysis for label noise, we know when is identity, the normal regularization term in Equation 10 has path integral along the unit circle and thus it must have both directions. The key observation here is that we can align the magnitude of noise with the strength of the regularization to make the path integral positive. By using auxiliary dimensions, we can further ensure the normal regularization force is anti-clockwise and of constant magnitude, which is reminiscent of how a three-phase induction motor works.
Note that for any , it holds that
Then clearly only brings about noise in the normal space, and specifically, it holds that . Further note that, by the special structure of the hessian in (33) and Lemma C.3, for any , we have . Combining these facts, the dynamics of the first two coordinates in SDE (10) can be simplified into
The proof is completed by noting that the solution of is
.
By definition, for matrix , . Note that , and . Using this pattern, we can easily check that
Appendix D Proof of results in Section 6
In this section, we present the missing proofs in Section 6 regarding the overparametrized linear model.
In this subsection, we provide the proof of Theorem 6.1.
First, by Lemma 6.6, it holds with probability at least that the solution to (18), , is unique up to and satisfies . Then on this event, for any , by Lemma 6.5, there exists some such that given by the Riemannian gradient flow (17) satisfies that is an -optimal solution of the OLM. For this , by Theorem 4.6, we know that the -th SGD iterate, , satisfies with probability at least for all sufficiently small , and thus is an -optimal solution of the OLM. Finally, the validity of applying Theorem 4.6 is guaranteed by Lemma 6.2 and 6.3. This completes the proof. ∎
In the following subsections, we provide the proofs of all the components used in the above proof.
D.2 Proof of Lemma 6.2
Recall that for each , and where each . Then
which implies that . This is a contradiction since by assumption is linearly independent. ∎
(1) By preimage theorem (Banyaga & Hurtubise, 2013), it suffices to check the jacobian is full rank. Similarly, for the second claim, due to (34). it is also equivalent to show that is of rank .
Since , each coordinate is non-zero, thus we only need to show that is of rank . This happens with probability 1 in the Gaussian case, and probability at least for some constant by Kahn et al. (1995). This completes the proof. ∎
D.3 Proof of Lemma 6.3
We first establish some auxiliary results. The following lemma shows the PL condition along the trajectory of gradient flow.
Along the gradient flow generated by , it holds that .
To prove Lemma D.2, we need the following invariance along the gradient flow.
Therefore, any sign change of would enforce or for some since are continuous in time . This immediately leads to a contradiction to the invariance of . ∎
where is a p.s.d. matrix with . Below we lower bound , the smallest eigenvalue of . Note that , and we have
where is by Lemma D.3. Thus for all , which completes the proof. ∎
We also need the following characterization of the manifold .
All the stationary points in are global minimizers, i.e., .
Now, we are ready to prove Lemma 6.3 which is restated below. See 6.3
Below we prove exists. Denote , then it follows from Lemma D.2 that
D.4 Proof of results in Section 6.2
Without loss of generality, we will assume for all , because otherwise we can just delete the unused coordinate, since there won’t be any update in the parameter corresponding to that coordinate. Moreover, in both gaussian and boolean setting, it can be shown that with probability 1, for all .
Here we slightly abuse the notation of and the parameter dimension will be clear from the context. We can relate the optimal solution to (18) to that of (35) via a canonical parametrization defined as follows.
Indeed, we can show that if (35) has a unique optimal solution, it immediately follows that the optimal solution to (18) is also unique up to sign flips of each coordinate, as summarized in the lemma below.
Suppose the optimal solution to (35) is unique and equal to . Then the optimal solution to (18) is also unique up to sign flips of each coordinate. In particular, one of them is given by , that is, the canonical parametrization of .
Let be any optimal solution of (18) and we define , which is also feasible to (35). By the optimality of , we have
On the other hand, is feasible to (18). Thus, it follows from the optimality of that
which implies that is also an optimal solution of (35). Since is the unique optimal solution to (35), we have . Moreover, by (38), we must have and , otherwise the equality would not hold. This completes the proof. ∎
Therefore, the unique optimality of (18) can be reduced to that of (35). In the sequel, we show that the latter holds for both Boolean and Gaussian random vectors. We divide Lemma 6.6 into to Lemma D.8 and D.7 for clarity.
then with probability at least , the optimal solution of (18), , is unique up to sign flips of each coordinate and recovers the groundtruth, i.e., .
This model exactly fits the Example 6.2 in Tropp (2015) with and . Then applying Equation (4.2) and Theorem 6.3 in Tropp (2015), (39) has a unique optimal solution equal to with probability at least for some constant , given that the sample size satisfies
for some absolute constant . Choosing and then adjusting the choices of appropriately yield the desired result. Finally, applying Lemma D.6 finishes the proof. ∎
The Gaussian case requires more careful treatment.
Let . There exist some constants such that if the sample size satisfies
then with probability at least , the optimal solution of (18), , is unique up to sign flips of each coordinate of and and recovers the groundtruth, i.e., .
Since , we have
for some constant , and we denote this event by . Therefore, on , we have
Define , and (35) is equivalent to the following convex optimization problem
The point is feasible for (40), and we claim that this is the unique optimal solution when is large enough. In detail, assume that there exists a non-zero feasible point for (40) in the descent cone (Tropp, 2015) of , then
where the equality follows from that is feasible. Therefore, we only need to show that is bounded from below for sufficiently large .
On , it holds that belongs to the following function class
We identify with , then , which further implies that
Recall the definition of minimum conic singular value (Tropp, 2015):
Take the intersection of this event with , and we obtain from a union bound that
with probability at least . It remains to determine , which is defined as
Without loss of generality, we assume that with , otherwise one only needs to specify the signs and the nonzero set of in the sequel. For any and any , there exists some such that , i.e.,
where the second inequality follows from the triangle inequality. Then since each , it follows that
where the last inequality follows from the fact that . Therefore, combine the above inequality with (42), and we obtain that
Therefore, combining (44) and (41), we obtain
Therefore, choosing , as long as satisfies that for some constant , we have with probability at least . Finally, the uniqueness of the optimal solution to (18) in this case follows from Lemma D.6. ∎
Denote . For any , by Jensen’s inequality, we have
Choosing yields the desired result. ∎
D.5 Proof of Lemma 6.5
For any such that , we must have by the definition of , which by the above implies
for all . This finishes the proof. ∎
Hence, with any initialization , the limiting flow (17) is equivalent to the following dynamics
Thus Lemma 6.5 can be proved by showing that the above converges to as . We first present a series of auxiliary results in below.
Since , it holds for all that,
If there exists some such that and , then it follows from the above two identities that
which happens with probability 0 in both the Boolean and Gaussian case. Therefore, we must have or for all . ∎
Thus such is unique and given by
Since is continuous around , there exists a sufficiently small such that for any , is full-rank, which further implies that is also continuous in . Therefore, by the above characterization of , we see that is continuous for , and so is .
where the first and third inequalities follow from the definition of . Let , by the continuity of and , we have
Denote . By applying the same argument as in Case I, since is full-rank, it also holds that , and thus
Moreover, since , we also have
It then remains to show that , which directly follows from .
Now, for any , due to the convergence of and that , we can pick a sufficiently small such that for some constant and all , it holds that and
where the second equality follows from (52) and the second equality is due to (51). Therefore, we can pick a sufficiently small such that
for all . Setting , it follows from (54) and (55) that
Recall that we already have , and thus
for all . Therefore, we see that .
Finally, it follows from the triangle inequality that
where, as , the first term vanishes by the convergence of and the continuity of each , the second term converges to 0 by the continuity of and the third term vanishes by (53). Therefore, we conclude that
For any initialization , the Riemmanian Gradient Flow (17) (or equivalently, (45)) is defined on .
Let be the right maximal interval of existence of the solution of Riemannian gradient glow and suppose . Since is monotone decreasing, thus is upper bounded by and therefore is also upper bounded. Since for any , the left limit must exist. By Corollary 1, Perko (2001), belongs to boundary of , i.e., or for some by Lemma D.11. By the definition of the Riemannian gradient flow in (17), we have
By the expression of , we then have
Denote . It follows that for all . Taking the limit we have . Contradiction with ! ∎
For any point in and any , we take a random direction in , denoted by . If or , we denote by the first intersection between and the boundary of . Clearly . Since , by the induction hypothesis, there exists a such that . Thus and .
(Polyak-Łojasiewicz condition for .) For any such that , i.e., , there exist a neighbourhood of and a constant , such that for all . Note this requirement is only non-trivial when since is continuous.
It suffices to show the PL condition for . We need to show for any satisfying , there exist some and , such that for all with , it holds that .
We temporarily reorder the coordinates as . Recall that is a -by- matrix, and we have
Now suppose for some sufficiently small (which can be controlled by ). We will proceed in the following two cases separately.
Case I.1: . Since has full row rank, is lower-bounded. On the other hand, we can choose small enough such that . Thus the first term of Equation 57 is lower bounded by .
On the other hand, we have for all and , by and the definition of . This implies there exists at least one such that , which further implies . Therefore, we conclude that .
General Case.
Next, for any general , we define and , where is taken coordinate-wise. Then we can rewrite as
Then applying the result for the previous case yields the following for some constant :
where the first equality follows from the fact that and the last inequality is due to the fact that both and are non-negative. This completes the proof. ∎
Now, based on the PL condition, we can show that (17) indeed converges.
Note that along the Riemannian gradient flow, is non-increasing, thus is bounded over time and has at least one limit point, which we will call . Therefore, is a limit point of , and again since is non-increasing, it follows that and . Below we will show .
Thus it holds that for ,
Thus if we pick such that is sufficiently small, will remain in , which implies that cannot be finite and has to be . Therefore, Equation 59 shows that the trajectory of is of finite length, so exists and is equal to . As a by-product, must be . ∎
Finally, collecting all the above lemmas, we are able to prove Lemma 6.5. In Lemma D.17 we already show the convergence of as , the main part of the proof of Lemma 6.5 is to show the cannot be sub-optimal stationary points of on , the closure of . The key idea here is that we can construct a different potential for each such sub-optimal stationary point , such that (1) is locally increasing in a sufficiently neighborhood of and (2) . See 6.5
We will prove by contradiction. Suppose is not the optimal solution to (18). Denote , then is not the optimal solution to (35). Thus we have . Without loss of generality, suppose there is some such that for all and for all . Again, as argued in the proof of Lemma D.12, we can assume that, for some ,
Since both and satisfy the constraint that , we further have
Clearly if . Below we will show contradiction if is suboptimal. Consider the dynamics of along the Riemannian gradient flow:
where is defined previously in Lemma D.10. Recall the definition of , and we have
To show , we analyze and separately. By the definition of , we have
where the last equality follows from (61).
Therefore, we can compute the derivative with respect to at as
where the second equality follows from the fact that . Since converges to , we must have , which implies that for each ,
Combining the above two equalities yields
Apply the above identity together with (D.5), and we obtain
On the other hand, by directly evaluating and each , we can compute as
We already know that is continuous at by the proof of Lemma D.12, so the third term converges to 0 as tends to . Now, applying (D.5), we immediately see that there exists some such that for . As we have shown in the above that , it then follows from (62) and (D.5) that
Since , there exists some such that for all . By the proof ofLemma D.13, we know that , then it follows from (67) that
which is a contradiction. This finishes the proof. ∎
D.6 Proof of Theorem 6.7
Here we present the lower bound on the sample complexity of GD in the kernel regime.
We first simplify the loss function by substituting , so correspondingly and we consider . We can think as if GD is performed on . For simplicity, we still use the and notation in below.
Note , which is at most an -dimensional space spanned by the gradients of model output at , so is . We denote the corresponding space for by , so and it holds that , where is projection matrix onto space .
The expected test loss is lower bounded by