Fine-Grained Analysis of Stability and Generalization for Stochastic Gradient Descent
Yunwen Lei, Yiming Ying
Introduction
Stochastic gradient descent (SGD) has become the workhorse behind many machine learning problems. As an iterative algorithm, SGD updates the model sequentially upon receiving a new datum with a cheap per-iteration cost, making it amenable for big data analysis. There is a plethora of theoretical work on its convergence analysis as an optimization algorithm [e.g. 11, 55, 40, 34, 21, 46].
Concurrently, there are a considerable amount of work with focus on its generalization analysis . For instance, using the tool of integral operator the work studied the excess generalization error of SGD with the least squares loss, i.e. the difference between the true risk of SGD iterates and the best possible risk. An advantage of this approach is its ability to capture the regularity of regression functions and the capacity of hypothesis spaces. The results were further extended in Lin et al. , Lei & Tang based on tools of empirical processes which are able to deal with general convex functions even without a smoothness assumption. The idea is to bound the complexity of SGD iterates in a controllable manner, and apply concentration inequalities in empirical processes to control the uniform deviation between population risks and empirical risks over a ball to which the SGD iterates belong.
Recently, in the seminal work the authors studied the generalization bounds of SGD via algorithmic stability for convex, strongly convex and non-convex problems. This motivates several appealing work on some weaker stability measures of SGD that still suffice for guaranteeing generalization . An advantage of this stability approach is that it considers only the particular model produced by the algorithm, and can imply generalization bounds independent of the dimensionality.
However, the existing stability analysis of SGD is established under the strong assumptions on the loss function such as the boundedness of the gradient and strong smoothness. Such assumptions are very restrictive which are not satisfied in many standard contexts. For example, the bounded gradient assumption does not hold for the simple least-squares regression, where the model parameter belongs to an unbounded domain. The strong smoothness assumption does not hold for the popular support vector machine. Furthermore, the analysis in the strongly convex case requires strong convexity of each loss function which is not true for many problems such as the important problem of least squares regression.
In this paper, we provide a fine-grained analysis of stability and generalization for SGD. Our new results remove the bounded gradient assumption for differentiable loss functions and remove the strong smoothness assumptions for Lipschitz continuous loss functions, and therefore broaden the impact of the algorithmic stability approach for generalization analysis of SGD. In summary, our main contributions are listed as follows.
Firstly, we study stability and generalization for SGD by removing the existing bounded gradient assumptions. The key is an introduction of a novel stability measure called on-average model stability, whose connection to generalization is established by using the smoothness of loss functions able to capture the low risks of output models for better generalization. An advantage of on-average model stability is that the corresponding bounds involve a weighted sum of empirical risks instead of the uniform Lipschitz constant. The weighted sum of empirical risks can be bounded via tools in analyzing optimization errors, which implies a key message that optimization is beneficial to generalization. Furthermore, our stability analysis allows us to develop generalization bounds depending on the risk of the best model. In particular, we have established fast generalization bounds for the setting of low noises, where is the sample size. To our best knowledge, this is the first fast generalization bound of SGD based on stability approach in a low-noise setting.
Secondly, we consider loss functions with their (sub)gradients satisfying the Hölder continuity which is a much weaker condition than the strong smoothness in the literature. Although stability decreases by weakening the smoothness assumption, optimal generalization bounds can be surprisingly achieved by balancing computation and stability. In particular, we show that optimal generalization bounds can be achieved for the hinge loss by running SGD with iterations. Fast learning rates are further derived in the low-noise case.
Thirdly, we study learning problems with (strongly) convex objectives but non-convex individual loss functions. The nonconvexity of loss functions makes the corresponding gradient update no longer non-expansive, and therefore the arguments in Hardt et al. do not apply. We bypass this obstacle by developing a novel quadratic inequality of the stability using only the convexity of the objective, which shows that this relaxation affects neither generalization nor computation.
The paper is structured as follows. We discuss the related work in Section 2 and formulate the problem in Section 3. The stability and generalization for learning with convex loss functions is presented in Section 4. In Sections 5 and 6, we consider problems with relaxed convexity and relaxed strong convexity, respectively. We conclude the paper in Section 7.
Related Work
In this section, we discuss related work on algorithmic stability, stability of stochastic optimization algorithms and generalization error of SGD.
Algorithmic Stability. The study of stability can be dated back to Rogers & Wagner . A modern framework of quantifying generalization via stability was established in the paper , where a concept of uniform stability was introduced and studied for empirical risk minimization (ERM) in the strongly convex setting. This framework was then extended to study randomized learning algorithms , transfer learning and privacy-preserving learning , etc. The interplay between various notions of stability, learnability and consistency was further studied . The power of stability analysis is especially reflected by its ability in deriving optimal generalization bounds in expectation . Very recently, almost optimal high-probability generalization bounds were established via the stability approach . In addition to the notion of uniform stability mentioned above, various other notions of stability were recently introduced, including uniform argument stability and hypothesis set stability .
Stability of Stochastic Optimization Algorithms. In the seminal paper , the co-coercivity of gradients was used to study the uniform stability of SGD in convex, strongly convex and non-convex problems. The uniform stability was relaxed to a weaker notion of on-average stability , for which the corresponding bounds of SGD can capture the impact of the risk at the initial point and the variance of stochastic gradients . For non-convex learning problems satisfying either a gradient dominance or a quadratic growth condition, pointwise-hypothesis stabilities were studied for a class of learning algorithms that converge to global optima , which relaxes and extends the uniform stability of ERM under strongly convex objectives . A fundamental stability and convergence trade-off of iterative optimization algorithms was recently established, where it was shown that a faster converging algorithm can not be too stable, and vice versa . This together with some uniform stability bounds for several first-order algorithms established there, immediately implies new convergence lower bounds for the corresponding algorithms. Algorithmic stability was also established for stochastic gradient Langevin dynamics with non-convex objectives and SGD implemented in a stagewise manner .
Generalization Analysis of SGD. A framework to study the generalization performance of large-scale stochastic optimization algorithms was established in Bousquet & Bottou , where three factors influencing generalization behavior were identified as optimization errors, estimation errors and approximation errors. Uniform stability was used to establish generalization bounds in expectation for SGD for convex and strongly smooth cases . For convex and nonsmooth learning problems, generalization bounds were established based on the uniform convergence principle . An interesting observation is that an implicit regularization can be achieved without an explicit regularizer by tuning either the number of passes or the step sizes . For the specific least squares loss, optimal excess generalization error bounds (up to a logarithmic factor) were established for SGD based on the integral operator approach . The above mentioned generalization results are in the form of expectation. High-probability bounds were established based on either an uniform-convergence approach or an algorithmic stability approach . A novel combination of PAC-Bayes and algorithmic stability was used to study the generalization behavior of SGD, a promising property of which is its applications to all posterior distributions of algorithms’ random hyperparameters .
Problem Formulation
We are interested in studying the excess generalization error , where is the one with the best prediction performance over . It can be decomposed as
The first term is called the estimation error due to the approximation of the unknown probability measure based on sampling. The second term is called the optimization error induced by running an optimization algorithm to minimize the empirical objective, which can be addressed by tools in optimization theory. A popular approach to control estimation errors is to consider the stability of the algorithm, for which a widely used stability measure is the uniform stability .
A stochastic algorithm is -uniformly stable if for all training datasets that differ by at most one example, we have
The celebrated relationship between generalization and uniform stability is established in the following lemma .
Let be -uniformly stable. Then
where denotes a subgradient of w.r.t. the first argument and is independently drawn from the uniform distribution over .
Stability with Convexity
An essential assumption to establish the uniform stability of SGD is the uniform Lipschitz continuity (boundedness of gradients) of loss functions as follows .
We assume for all and .
In this section, we will remove the boundedness assumption on the gradients for differentiable loss functions, and establish stability and generalization only under the assumption where loss functions have Hölder continuous (sub)gradients–a condition much weaker than the strong smoothness . Note that the loss functions can be non-differentiable if .
If (4.2) holds with , then is smooth as defined by (4.1). If (4.2) holds with , then this amounts to saying that is Lipschitz continuous as considered in Assumption 1. Examples of loss functions satisfying Definition 3 include the -norm hinge loss f(\mathbf{w};z)=\big{(}\max(0,1\!-\!y\langle\mathbf{w},x\rangle)\big{)}^{q} for classification and the -th power absolute distance loss for regression , whose (sub)gradients are -Hölder continuous for some if . If , we get the hinge loss and absolute distance loss with wide applications in machine learning and statistics.
The key to remove the bounded gradient assumption and the strong smoothness assumption is the introduction of a novel stability measure which we refer to as the on-average model stability. We use the term “on-average model stability” to differentiate it from on-average stability in Kearns & Ron , Shalev-Shwartz et al. as we measure stability on model parameters instead of function values. Intuitively, on-average model stability measures the on-average sensitivity of models by traversing the perturbation of each single coordinate.
Let and be constructed as Definition 4. Let .
If for any , the function is nonnegative and -smooth, then
If for any , the function is nonnegative, convex and is -Hölder continuous with , then
2 Strongly smooth case
To justify the effectiveness of the on-average model stability, we first consider its application to learning with smooth loss functions. We first study stability and then generalization.
Assume for all , the map is nonnegative, convex and -smooth. Let and be constructed as Definition 4. Let and be produced by (3.3) with based on and , respectively. Then for any we have
The stability bounds in Theorem 3 can be extended to the non-convex case. Specifically, let assumptions of Theorem 3, except the convexity of , hold. Then for any one gets (see Proposition C.3)
This result improves the recurrence relationship in Hardt et al. for uniform stability by replacing the uniform Lipschitz constant with empirical risks.
Assume for all , the function is nonnegative, convex and -smooth. Let be produced by (3.3) with nonincreasing step sizes satisfying . If , then
where \mathbf{w}_{T}^{(1)}=\big{(}\sum_{t=1}^{T}\eta_{t}\mathbf{w}_{t}\big{)}/\sum_{t=1}^{T}\eta_{t}.
Assume for all , the function is nonnegative, convex and -smooth.
Let be produced by (3.3) with for a constant . If , then
Let be produced by (3.3) with . If and , then
We compare here our results with some fast bounds for SGD. Some fast convergence rates of SGD were recently derived for SGD under low noise conditions or growth conditions relating stochastic gradients to full gradients . The discussions there mainly focused on optimization errors, which are measured w.r.t. the iteration number . As a comparison, our fast rates measured by are developed for generalization errors of SGD (Part (b) of Corollary 5), for which we need to trade-off optimization errors and estimation errors by stopping at an appropriate iteration number. Fast generalization bounds are also established for the specific least squares based on an integral operator approach . However, these discussions heavily depend on the structure of the square loss and require capacity assumptions in terms of the decay rate of eigenvalues for the associated integral operator. As a comparison, we consider general loss functions and do not impose a capacity assumption.
3 Non-smooth case
As a further application, we apply our on-average model stability to learning with non-smooth loss functions, which have not been studied in the literature.
Stability bounds. The following theorem to be proved in Appendix D.1 establishes stability bounds. As compared to (4.4), the stability bound below involves an additional term , which is the cost we pay by relaxing the smoothness condition to a Hölder continuity of (sub)gradients. It is worth mentioning that our stability bounds apply to non-differentiable loss functions including the popular hinge loss.
Assume for all , the map is nonnegative, convex and is -Hölder continuous with . Let and be constructed in Definition 4. Let and be produced by (3.3) based on and , respectively. Then
Generalization bounds. We now present generalization bounds for learning by loss functions with Hölder continuous (sub)gradients, which are specific instantiations of a general result (Proposition D.4) stated and proved in Appendix D.2.
Assume for all , the function is nonnegative, convex, and is -Hölder continuous with . Let be given by (3.3) with .
Although relaxing smoothness affects stability by introducing in the stability bound, we achieve a generalization bound similar to the smooth case with a similar computation cost if . For , a minimax optimal generalization bound can be also achieved with more computation cost as . In particular, if we develop the optimal generalization bounds for SGD with iterations. To our best knowledge, this gives the first generalization bounds for SGD with non-smooth loss functions (e.g., hinge loss) based on stability analysis. Analogous to the smooth case, we can derive generalization bounds better than in the case with low noises. To our best knowledge, this is the first optimistic generalization bound for SGD with non-smooth loss functions.
We can extend our discussion to ERM. If is -strongly convex and is -Hölder continuous, we can apply the on-average model stability to show (see Proposition D.6)
Stability with Relaxed Convexity
We now turn to stability and generalization of SGD for learning problems where the empirical objective is convex but each loss function may be non-convex. For simplicity, we impose Assumption 1 here and use the arguments based on the uniform stability. The proofs of Theorem 8 and Theorem 9 are given in Appendix E.1.
The derivation of uniform stability bounds in Hardt et al. is based on the non-expansiveness of the operator , which requires the convexity of for all . Theorem 8 relaxes this convexity condition to a milder convexity condition on . If , the stability bounds in Theorem 8 become since .
As shown below, minimax optimal generalization bounds can be achieved for step sizes for all as well as the step sizes with .
Let Assumption 1 hold. Assume for all , the function is -smooth. Let be produced by (3.3). Suppose for all , is convex.
If , then
Example: AUC Maximization. We now consider a specific example of AUC (Area under ROC curve) maximization where the objective function is convex but each loss function may be non-convex. As a widely used method in imbalanced classification (), AUC maximization was often formulated as a pairwise learning problem where the corresponding loss function involves a pair of training examples . Recently, AUC maximization algorithms updating models with a single example per iteration were developed . Specifically, AUC maximization with the square loss can be formulated as the minimization of the following objective function
An interesting property is that (5.2) involves only a single example . This observation allows Natole et al. to develop a stochastic algorithm as (3.3) to solve (5.1). However, for each , the function is non-convex since the associated Hessian matrix may not be positively definite. It is clear that its expectation is convex.
Stability with Relaxed Strong Convexity
Finally, we consider learning problems with strongly convex empirical objectives but possibly non-convex loss functions. Theorem 10 provides stability bounds, while the minimax optimal generalization bounds are presented in Theorem 11. The proofs are given in Appendix F.
Let Assumptions in Theorem 8 hold. Suppose for all , is -strongly convex. Then, there exists a constant such that for SGD with we have
Let Assumption 1 hold. Assume for all , the function is -smooth. Suppose for all , is -strongly convex. Then, there exists some such that for SGD with and we have
where \mathbf{w}_{T}^{(2)}=\big{(}\sum_{t=1}^{T}(t+t_{0}-1)\mathbf{w}_{t}\big{)}/\sum_{t=1}^{T}(t+t_{0}-1).
2 Application: least squares regression
As we will see in the proof, Theorem 10 holds if only the following local strong convexity holds, i.e.,
Therefore, we can apply Theorem 10 with and to derive (note )
Conclusions
In this paper, we study stability and generalization of SGD by removing the bounded gradient assumptions, and relaxing the smoothness assumption and the convexity requirement of each loss function in the existing analysis. We introduce a novel on-average model stability able to capture the risks of SGD iterates, which implies fast generalization bounds in the low-noise case and stability bounds for learning with even non-smooth loss functions. For all considered problems, we show that our stability bounds can imply minimax optimal generalization bounds by balancing optimization and estimation errors. We apply our results to practical learning problems to justify the superiority of our approach over the existing stability analysis. Our results can be extended to stochastic proximal gradient descent, high-probability bounds and SGD without replacement (details are given in Appendix G). In the future, it would be interesting to study stability bounds for other stochastic optimization algorithms, e.g., Nesterov’s accelerated variants of SGD .
Acknowledgement
The work of Y. Lei is supported by the National Natural Science Foundation of China (Grant Nos. 61806091, 11771012) and the Alexander von Humboldt Foundation. The work of Y. Ying is supported by the National Science Foundation (NSF) under Grant No. #1816227.
Appendix A Optimization Error Bounds
For a full picture of generalization errors, we need to address the optimization errors. This is achieved by the following lemma. Parts (a) and (b) consider the convex and strongly convex empirical objectives, respectively (we make no assumptions on the convexity of each ). Note in Parts (c) and (d), we do not make a bounded gradient assumption. As an alternative, we require convexity of for all . An appealing property of Parts (c) and (d) is that it involves instead of , which is a requirement for developing fast rates in the case with low noises.
Our discussion on optimization errors requires to use a self-bounding property for functions with Hölder continuous (sub)gradients, which means that gradients can be controlled by function values. The case was established in Srebro et al. . The case was established in Ying & Zhou . The case follows directly from Definition 3. Define
Assume for all , the map is nonnegative, and is -Hölder continuous with . Then for defined as (A.1) we have
where \mathbf{w}_{t}^{(1)}=\big{(}\sum_{j=1}^{t}\eta_{j}\mathbf{w}_{j}\big{)}/\sum_{j=1}^{t}\eta_{j}.
where \mathbf{w}_{t}^{(2)}=\big{(}\sum_{j=1}^{t}(j+t_{0}-1)\mathbf{w}_{j}\big{)}/\sum_{j=1}^{t}(j+t_{0}-1).
Parts (a) and (b) can be found in the literature . We only prove Parts (c) and (d). We first prove Part (c). The projection operator is non-expansive, i.e.,
By the SGD update (3.3), (A.3), convexity and Lemma A.1, we know
where the last inequality is due to . It then follows that
Multiplying both sides by and using the assumption , we know
Taking a summation of the above inequality gives ()
Taking an expectation w.r.t. gives (note is independent of )
On the other hand, taking an expectation w.r.t. over both sides of (A.4) shows
Taking an expectation on both sides followed with a summation, we get
where the last step is due to (A.5). The proof is complete since is independent of .
We now prove Part (d). Analogous to (A.4), one can show for loss functions with Hölder continuous (sub)gradients (Lemma A.1)
we know (notice the following inequality holds trivially if )
Combining the above two inequalities together, we get
Multiplying both sides by and using , we derive
Taking a summation of the above inequality gives
According to the Jensen’s inequality and the concavity of , we know
where in the last step we have used (A.8). Taking an expectation on both sides of (A.6), we know
Taking a summation of the above inequality gives
where we have used (A.9) and the concavity of in the last step. The proof is complete by noting the independence between and . ∎
Appendix B Proofs on Generalization by On-average Model Stability
To prove Theorem 2, we introduce an useful inequality for -smooth functions
where the last identity holds since is independent of . Under Assumption 1, it is then clear that
We now prove Part (b). According to (B.1) due to the -smoothness of and (B.2), we know
According to the Schwartz’s inequality we know
where the last inequality is due to the self-bounding property of smooth functions (Lemma A.1). Combining the above two inequalities together, we derive
The stated inequality in Part (b) then follows directly by noting .
Finally, we consider Part (c). By (B.2) and the convexity of , we know
By the Schwartz’s inequality and Lemma A.1 we know
Combining the above two inequalities together, we get
Since is concave and is independent of , we know
A combination of the above two inequalities then gives the stated bound in Part (c). The proof is complete. ∎
Appendix C Proof on Learning without Bounded Gradients: Strongly Smooth Case
A key property on establishing the stability of SGD is the non-expansiveness of the gradient-update operator established in the following lemma.
Assume for all , the function is convex and -smooth. Then for we know
Based on Lemma C.1, we establish stability bounds of models for SGD applied to two sets differing by a single example.
Assume for all , the function is nonnegative, convex and -smooth. Let and be constructed as Definition 4. Let and be produced by (3.3) with based on and , respectively. Then for any we have
If , we know the updates of and are based on stochastic gradients calculated with the same example . By Lemma C.1 we then get
where the second inequality follows from the sub-additivity of and the last inequality is due to Lemma A.1 on the self-bounding property of smooth functions.
We first prove Eq. (C.1). Since is drawn from the uniform distribution over , we can combine Eqs. (C.3) and (C.5) to derive
Taking a summation of the above inequality and using then give (C.1).
We now turn to (C.2). For the case , it follows from (C.4) and the standard inequality that
where the last inequality is due to Lemma A.1. Combining (C.3), the above inequality together and noticing the distribution of , we derive
Multiplying both sides by yields that
Taking a summation of the above inequality and using , we get
We first prove (4.3). According to Lemma C.2 (Eq. (C.1)), we know
It then follows from the concavity of the square-root function and the Jensen’s inequality that
We now turn to (4.4). It follows from Lemma C.2 (Eq. (C.2)) that
Let Assumptions of Theorem 3 hold except that we do not require the convexity of . Then for any we have
If , then by the -smoothness of we know
If , then analogous to (C.7), one can get
By the uniform distribution of we can combine the above inequality and (C.9) to derive
C.2 Generalization bounds
We now prove generalization bounds for SGD.
According to Part (c) of Lemma A.2 with , we know the following inequality
Let be the -th iterate of SGD applied to the dataset . We plug (4.4) into Part (b) of Theorem 2, and derive
We can plug (A.5) with into the above inequality, and derive
Multiplying both sides by followed with a summation gives
Putting (C.10) into the above inequality then gives
The stated inequality then follows from Jensen’s inequality. The proof is complete. ∎
We first prove Part (a). For the chosen step size, we know
The stated bound (4.5) then follows from Theorem 4, and (C.11).
We now prove Part (b). The stated bound (4.6) then follows from Theorem 4, and . The proof is complete. ∎
Appendix D Proof on Learning without Bounded Gradients: Non-smooth Case
Theorem 6 is a direct application of the following general stability bounds with . Therefore, it suffices to prove Theorem D.1.
Assume for all , the function is nonnegative, convex and is -Hölder continuous with . Let and be constructed as Definition 4 and . Let and be the -th iterate produced by (3.3) based on and , respectively. Then for any we have
We require several lemmas to prove Theorem D.1. The following lemma establishes the co-coercivity of gradients for convex functions with Hölder continuous (sub)gradients. The case can be found in Nesterov . The case can be found in Ying & Zhou . The case follows directly from the convexity of .
The following lemma controls the expansive behavior of the operator for convex with Hölder continuous (sub)gradients.
We first consider the case . In this case, it follows from Definition 3 and Lemma D.2 with that
We now consider the case . According to Lemma D.2, we know
where we have used Young’s inequality (A.7). Plugging the above inequality back into (D.3), we derive
Combining the above two cases together, we get the stated bound with the definition of given in Theorem D.1. The proof is complete. ∎
For the case , it follows from Lemma D.3 that
If , by (C.4) and the standard inequality , we get
Combining the above two inequalities together, using the self-bounding property (Lemma A.1) and noticing the distribution of , we derive
Multiplying both sides by gives
Taking a summation of the above inequality and using , we derive
It then follows from the concavity of the function and the Jensen’s inequality that
The stated inequality then follows from the definition of . The proof is complete. ∎
D.2 Generalization errors
Theorem 7 can be considered as an instantiation of the following proposition on generalization error bounds with specific choices of and . In this subsection, we first give the proof of Theorem 7 based on Proposition D.4, and then turn to the proof of Proposition D.4.
Assume for all , the function is nonnegative, convex, and is -Hölder continuous with . Let be produced by (3.3) with step sizes satisfying . Then for all satisfying and any we have
It can be checked that considered in Parts (a)-(c) satisfy . Therefore Proposition D.4 holds. If , then by Proposition D.4 we know
We first prove Part (a). Since , and , it follows from (D.4) that
where we have used due to . This shows Part (a).
We now prove Part (b). Since , and in (D.4), the following inequalities hold
where we have used due to . Furthermore, since and we know and . Therefore . Plugging the above inequalities into (D.4) gives the stated bound in Part (b).
We now turn to Part (c). Since , Proposition D.4 reduces to
With , we further get
For the choice and , we know and therefore
Plugging the above inequalities into (D.5) gives the stated bound in Part (c). The proof is complete. ∎
To prove Proposition D.4, we first introduce an useful lemma to address some involved series.
Assume for all , the function is nonnegative, convex, and is -Hölder continuous with . Let be produced by (3.3) with step sizes satisfying . Then
We first prove (D.6). For the step size sequence , we have
where we have used the subadditivity of , the identity
in the second step and in the third step (the third term is dominated by the first term). This shows (D.6).
We now consider (D.7). Taking an expectation over both sides of (A.8) with , we get
According to the Jensen’s inequality and the concavity of , we know
where we have used (D.6) in the last step. This shows (D.7).
Finally, we show (D.8). Since we consider step sizes , it follows from (D.7) that
This proves (D.8) and finishes the proof. ∎
Our idea is to address separately the above estimation error and optimization error.
We first address estimation errors. Plugging (D.1) back into Theorem 2 (Part (c)) with , we derive
By the concavity and sub-additivity of , we know
Solving the above inequality of gives the following inequality for all
It then follows from the definition of that (note )
By , (D.7) and (D.8), we further get
We now consider optimization errors. By Lemma A.2 (Part (d) with ) and the concavity of , we know
where we have used (D.6) in the last step.
Plugging the above optimization error bound and the estimation error bound (D.10) back into the error decomposition (D.9), we finally derive the following generalization error bounds
The stated inequality then follows from the convexity of . The proof is complete. ∎
D.3 Empirical Risk Minimization with Strongly Convex Objectives
Let and , be constructed as Definition 4. Due to the -strong convexity of and (necessity condition for the optimality of ), we know
Taking a summation of the above inequality yields
According to the definition of , we know
Taking an expectation and dividing both sides by give ( is independent of )
Plugging the above identity and (D.12) back into (D.11) gives
We can now apply Part (c) of Theorem 2 to show the following inequality for all (notice is a deterministic algorithm)
from which we can derive the stated inequality. The proof is complete. ∎
Appendix E Proofs on Stability with Relaxed Convexity
The event happens with probability , and in this case
Plugging (E.3) and the above inequality back into (E.2), we derive
To prove Theorem 9, we require a basic result on series.
We have the following elementary inequalities.
If , then ;
If , then .
For the step sizes considered in both Part (a) and Part (b), one can check that can be upper bounded by a constant independent of . Therefore, for all and a universal constant . We can apply Lemma A.2 (Part (a)) on optimization errors to get
For the step sizes with , we can apply Lemma E.1 to show
Part (b) follows by plugging (C.11) into (E.7). The proof is complete. ∎
Appendix F Proofs on Stability with Relaxed Strong Convexity
Due to the -strong convexity of , we can analyze analogously to (E.4) to derive
Therefore, analogous to the derivation of (E.5) we can derive
We find . Then and it follows that
Multiplying both sides by yields
The stated bound then follows from the elementary inequality for . The proof is complete. ∎
It then follows from (3.1) and Part (a) of Theorem 2 that
The stated bound holds since . The proof is complete. ∎
Let and . Then the range of is the linear span of .
It suffices to show that the kernel of is the orthogonal complement of (we denote the linear span of ). Indeed, for any in the kernel of , we know and therefore , from which we know that must be orthogonal to . Furthermore, for any orthogonal to , it is clear that , i.e., belongs to the kernel of . The proof is complete. ∎
Appendix G Extensions
In this section, we present some extensions of our analyses. We consider three extensions: extension to stochastic proximal gradient descent, extension to high probability analysis and extension to SGD without replacement.
G.2 Stability bounds with high probabilities
We can also extend our stability bounds stated in expectation to high-probability bounds, which would be helpful to understand the fluctuation of SGD w.r.t. different realization of random indices.
High-probability generalization bounds can be derived by combining the above stability bounds and the recent result on relating generalization and stability in a high-probability analysis .
To prove Proposition G.1, we need to introduce a special concentration inequality called Chernoff’s fs bound for a summation of independent Bernoulli random variables .
Combining the above two cases together, we derive
Taking a summation of the above inequality then yields
Therefore, for the step size , we know
G.3 SGD without replacement
where is the step size sequence. We set , i.e., each epoch starts with the last iterate of the previous epoch. The following proposition establishes stability bounds for SGD without replacement when applied to loss functions with Hölder continuous (sub)gradients.
Taking a summation of the above inequality from to gives
Let be the unique such that . Since , we derive
Since we draw from the uniform distribution of all permutations, takes an equal probability to each . Therefore, we can take expectations over to derive
We can take a summation of the above inequality from to to derive the stated bound. The proof is complete. ∎