Uniform-in-Time Wasserstein Stability Bounds for (Noisy) Stochastic Gradient Descent

Algorithmic stability is an important notion that has proven powerful for deriving generalization bounds for practical algorithms. The last decade has witnessed an increasing number of stability bounds for different algorithms applied on different classes of loss functions. While these bounds have illuminated various properties of optimization algorithms, the analysis of each case typically required a different proof technique with significantly different mathematical tools. In this study, we make a novel connection between learning theory and applied probability and introduce a unified guideline for proving Wasserstein stability bounds for stochastic optimization algorithms. We illustrate our approach on stochastic gradient descent (SGD) and we obtain time-uniform stability bounds (i.e., the bound does not increase with the number of iterations) for strongly convex losses and non-convex losses with additive noise, where we recover similar results to the prior art or extend them to more general cases by using a single proof technique. Our approach is flexible and can be generalizable to other popular optimizers, as it mainly requires developing Lyapunov functions, which are often readily available in the literature. It also illustrates that ergodicity is an important component for obtaining time-uniform bounds -- which might not be achieved for convex or non-convex losses unless additional noise is injected to the iterates. Finally, we slightly stretch our analysis technique and prove time-uniform bounds for SGD under convex and non-convex losses (without additional additive noise), which, to our knowledge, is novel.

Paper

Similar papers

Peer review

Reviewer 9dAF7/10 · confidence 3/52023-07-05

Summary

This paper provides new stability bounds for SGD: they rely on perturbation theory for Markov Chains and on the ergodicity of SGD.

Strengths

- Well written, well presented paper. - New connection between the theory for Markov Chain and generalization of learning algorithms. - First (to my knowledge) uniform in time stability bounds. - Extensions and limits are properly discussed.

Weaknesses

N/A

Questions

- On the fact that most of the theory requires $\ell$ to be Lispchitz-continuous: would it be because this work is only considering the 1-Waserstein distance? With the 2-Wasserstein, maybe this technique would be able to handle $L$-smooth loss, what do you think? In particular, could you leverage Thm. 4.2 in that case?

Rating

7: Accept: Technically solid paper, with high impact on at least one sub-area, or moderate-to-high impact on more than one areas, with good-to-excellent evaluation, resources, reproducibility, and no unaddressed ethical considerations.

Confidence

3: You are fairly confident in your assessment. It is possible that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work. Math/other details were not carefully checked.

Soundness

3 good

Presentation

4 excellent

Contribution

3 good

Limitations

N/A

Reviewer Wt2h6/10 · confidence 2/52023-07-06

Summary

This paper studies the algorithmic stability of SGD in order to bound its expected generalization error when using Lipschitz losses. To do so, they consider Wasserstein stability instead of the standard uniform stability, which is defined using the dual representation of the Wasserstein distance and the representation of the generalization error from [HRS16]. To bound the Wasserstein stability the paper employs Markov chain perturbation theory. The main idea to do so is to follow three steps: (i) showing that the optimizer is geometrically ergodic, which essentially boils down to showing that the Wasserstein distance of the transition kernels can be bounded from above by the distance of the inputs of said kernels; (ii) obtaining a Lyapunov function for the optimizer and the loss, which gives a sense of stability to the system (at least intuitively, as it is a necessary and sufficient condition for stability for certain classes of ODEs); and (iii) bounding the Wasserstein distance between the transition kernels of the optimizer with the same initialization but using two neighbouring datasets. Using this three-step process they start giving a bound for the quadratic case with rate $O(\eta / n)$. Similarly, under strong convexity and some pseudo-Lipschitzness assumption on the gradients they show a bound with rate $O(1/n)$ with an appropriate choice of the learning rate. To deal with non-convex cases, they show that if the loss dissipates with Assumption 3.3 (which seems like a relaxed version of strong convexity), then adding a zero-mean noise with bounded second moment is sufficient to obtain a bound with rate $O(b/n)$, where $b$ is the batch size. This bound of course includes SGLD, but is not restricted to this case. The addition of the noise in the non-convex case was to make sure that the ergodicity condition in step (i) was provable. The paper also studies what happens when noise is not included. To deal with this, still assuming that the loss dissipates with Assumption 3.3 they can bound the squared Wasserstein distance of order 2. This way, they can obtain bounds with rate $O(1/\sqrt{bn} + c)$, where $c$ is some constant. Therefore, the exclusion of noise in the analysis generates an extra bias term. All the bounds up to here are uniform in time, that is, they hold for every step of the optimization process. Fortunately, assuming that the loss $f$ is $\mu$ strongly-ish convex, in the sense that $\langle \nabla f(\theta, x) - \nabla f(\vartheta, x) , \theta - \vartheta \rangle \geq \mu \lVert \theta - \vartheta \rVert^p$ for some $p \in (1,2)$; and that the gradients Lipschitz-ish in the sense that $\lVert \nabla f (\theta, x) - \nabla (\vartheta, y) \rVert \leq K\_1 \lVert \theta - \vartheta \rVert^{p / 2} + K\_2 \lVert x - y \rVert ( \lVert \theta \rVert^{p-1} + \lVert \vartheta \rVert^{p-1} + 1)$; then they can show asymptotic generalization bounds with rate $O(1/n^{1/p})$.

Strengths

The paper is very well written and "easy" to follow despite its technical difficulty, especially the proofs. I have to congratulate the authors for making difficult proofs look simple with their explanations. I believe that studying the stability of algorithms in terms of the stability of the final transition kernels in terms of the Wasserstein distance is novel (although similar bounds on the generalization error are given in [RGBTS21, Theorem 2] in a different context). This is certainly interesting as not only gives some new results but also new strategies to tackle the problem. These new strategies can be useful to build upon for other researchers in the future. The bounds for the strongly-convex functions and those for non-convex losses with additive noise pass the "eye test", as they achieve the expected rates with $n$, although some of the other parameters are a bit unclear (see weaknesses). The bounds for non-convex losses with additive noise with bounded variance are interesting, as they hold for noises other than Gaussian. This can be helpful either (i) to construct SGLD-like algorithms that work better in practice or (ii) to study more general situations in which one could show that the gradient noise in GD actually behaves like an additive noise with bounded variance (see e.g. [WHXHBZ20]). **Additional references** Borja Rodríguez-Gálvez, Germán Bassi, Ragnar Thobaben, and Mikael Skoglund. "Tighter expected generalization error bounds via Wasserstein distance". NeurIPS 2021. Jingfeng Wu, Wenqing Hu, Haoyi Xiong, Jun Huan, Vladimir Braverman, and Zhanxing Zhu. "On the Noisy Gradient Descent that Generalizes as SGD". ICML 2020.

Weaknesses

* A criticism of the paper could be that the results from Section 3 recover the rate of previous results with respect to $n$, while having sometimes worse rate with other parameters. This is actually not very important in my opinion, as I value more the new techniques and the fact that this new analysis can be employed in different settings to achieve the desired rate. * Something more concerning to me are some of the assumptions and parameters in the results. These are sometimes hard for me to interpret and contextualize. For example: * Assumption 3.1. The authors explain that some problems such as GLMs satisfy this condition [Bac14]. Which other problems satisfy the condition? For example, the Lipschitz constant of gradients in neural networks can be very large (or even infinite in some situations), yielding bounds that depend on it essentially vacuous. Is this similar to this pseudo-Lipschitzness condition? How does it behave in familiar scenarios? This can be accompanied by a simplification of Theorem 3.2 in some familiar settings. * Assumption 3.3. This assumption seems to me as essentially a strong-convexity assumption with some slack. While this makes the problem more general than a strongly convex problem, it is unclear to me how much more general it is. I would have liked more intuition and explanation around this assumption other than just saying that is common in stochastic analysis [RRT17, GGZZ22] and that has been considered in neural network settings [AS22]. Could you give some examples of familiar settings where this assumption holds, and give an intuitive explanation of how much more general than strong convexity this is? * Theorem 3.3. Some of the elements such as the parameter $M$ and $\bar{\eta}$ are hard to into context and in general the bound is hard to interpret. Even though the authors make an effort to clarify that in Remark 3.4 and Corollary 3.5, it is still difficult to understand well the result in terms of these parameters. * Theorem 4.1. How big is the bias term in certain familiar scenarios? Could it be that his term is small enough for us not to care in some settings? * Assumptions 4.1 and 4.2. Could you please give some examples of losses and settings where these assumptions are satisfied? This could help contextualize the results. While I already like the paper and its ideas as it is, without a better understanding of these issues, it is hard for me to assess the actual contribution of the presented results. I am happy to increase my score if they are addressed.

Questions

My questions mainly concern the assumptions employed throughout the text and some of the parameters appearing in the results. These questions are mainly outlined in the weaknesses, but to summarize: * Could you give more intuitions on the assumptions that are employed (e.g. how much more general Assumption 3.3. is with respect to strong convexity)? * Could you give examples of losses and situations where these assumptions are satisfied so we can better contextualize the results? * Similarly, could you give some examples of the parameters (or some order of magnitude empirically maybe) that appear in the results?

Rating

6: Weak Accept: Technically solid, moderate-to-high impact paper, with no major concerns with respect to evaluation, resources, reproducibility, ethical considerations.

Confidence

2: You are willing to defend your assessment, but it is quite likely that you did not understand the central parts of the submission or that you are unfamiliar with some pieces of related work. Math/other details were not carefully checked.

Soundness

3 good

Presentation

3 good

Contribution

2 fair

Limitations

Yes, the authors discuss some of the limitations of the paper through the text. Some of the limitations regarding other assumptions could be clarified in the text.

Reviewer RR887/10 · confidence 3/52023-07-10

Summary

In this paper, the authors studied an approach to obtain generalization bounds on SGD algorithm under different class of objective functions such as "quadratic strongly convex", "smooth strongly convex" and one subclass of non-necessarily convex functions described in Assumption 3.3. Interestingly they convey the message that, as in the strongly convex settings, they can provide generalization bounds in the non convex setting as soon as they add some additive noise to the SGD update. Their approach is based on stability analysis, together with convergence properties of Markov chains.

Strengths

- Mixing stability and Markov chain perturbation theory is a very interesting approach that I had never seen before. The technique might be reused in other settings. - The trick of adding noise to create generalization and make it work thanks to Markov chain theory is quite beautiful.

Weaknesses

- Authors claim "non convex" everywhere without more precision. I first thought of conditions like hypoconvexity. Some people study smooth optimization without any other assumption. Here the setting is very specific and authors should be more precise about it in introduction. One cannot claim solving problems in "non-convex" setting just as soon as its class contains one non-convex function. - It is actually quite natural to believe that adding noise reducing generalization error as the dependency in data is reduced (same argument for differential privacy). But we can do it with an algorithm that simply returns a constant independently of the training data. The interesting thing to do is to reduce generalization error while preserving good optimization properties. In this paper, the authors are degrading optimization performance as a constant step-size eta leads to convergence to neighborhood of the solution, and adding noise leads to a larger size of this neighborhood. This brings two questions: - Can we generalize this analysis to decreasing step size as the ergocity would not be geometric anymore? - In case of constant step-size, can authors discuss the values of « optimization error + generalization error » terms depending on the additive noise variance? - l.291: « This indicates that it is necessary to add additional noise » -> No! While this section can serve as a good intuition of why additive noise what essential, this is not a clear proof of this necessity. Authors showed they found some weaker upper bound without additive noise. They did not show one cannot find a tighter one. - Notation suggestions: - The word « algorithm » is never defined before being used in Definition 2.5. Since in definition 2.1, $X$ and $\hat{X}$ are not stochastic (instead we optimize on their values), it is even more important to stress here that an algorithm is indeed stochastic and that the expectation here is taken over this source of randomness conditioned by the values of $X$, $\hat{X}$ and $z$. However, the notation $\mathcal{A}: \bigcup_{n=1}^{\infty}\mathcal{X}^n \rightarrow \mathbb{R}^d$ means that $\mathcal{A}$ is deterministic. So either $\mathcal{A}$ returns a random variable, or it takes an additional random variable as input. - In 2.5, I find weird the fact to associate $\nu$ and $\hat{\nu}$ to $X$ and $\hat{X}$ as if those two datasets were particular, while we optimize over all the possible datasets. So $\nu$ and $\hat{\nu}$ vary also. I would rather defined a systematic mapping $\nu: X \rightarrow \nu_X$ so that this distribution is defined for all $X$. Or the variables over which the supremum is computed should be $\nu$ and $\hat{\nu}$ that are neighbors to each other. In the latter case, this should come with the definition that two distributions are neighbors iif there exist two neighbor datasets they are generated from. Minor / typos: l.133: « $R(\omega)$ » -> $R(\theta)$ l.229: I guess $\xi_k$ is also independent with $\theta_{k-1}$ and $\Omega_k$? Maybe specify it. l252: « our result in » -> our result is l237: « Thereom » -> Theorem

Questions

- Just to be sure I understood the proof correctly, can authors confirm the only place the neighborhood assumption between datasets is used is in the expression of $\gamma$ in equation 2.9. If this is the case, I think this little intuition should be explicit in the paper. - I am surprised to see in lemma 3.3 that the bound on $\gamma$ does not depend on the batch size. Indeed, there is a certain probability that the batch does not contain the data that differs from one dataset to the other, in which case the step $P$ and $\hat{P}$ are identical. Then, the error is 0. The average error should be the error in the case that the different data is in the batch, times this probability, the latter being proportional to the batch size. - The dependency on $\sigma^2$ is unclear. In Th D1, the bound seems increasing in $\sigma^2$, then removing the additive noise seems hurtless. However, looking closer, one notices that $\psi$ depends on $K_0$ that itself depends on $\sigma^2$. Why cannot we still consider $\sigma^2=0$? The only thing we have to verify is that $\psi$ will not explode, i.e. $K_0>0$. But $K_0$'s expression is a complicated mix between many other variables. Hence it is hard to understand what happens when $\sigma^2=0$. Can you elucidate this question?

Rating

7: Accept: Technically solid paper, with high impact on at least one sub-area, or moderate-to-high impact on more than one areas, with good-to-excellent evaluation, resources, reproducibility, and no unaddressed ethical considerations.

Confidence

3: You are fairly confident in your assessment. It is possible that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work. Math/other details were not carefully checked.

Soundness

3 good

Presentation

3 good

Contribution

3 good

Limitations

Not much except maybe it applies to algorithms that contracts, i.e. SGD with constant step-size that cannot converge to the optimum. It would be nice to handle decreasing step-sizes.

Reviewer yPZ36/10 · confidence 4/52023-07-12

Summary

This paper studies the generalization bounds of (noisy) SGD via Wasserstein stability. The paper presents a unified guideline to derive the Wasserstein stability for stochastic optimization with a constant step size, which allows to derive stability bounds with a three-step proof technique: showing the optimizer is geometrically ergodic, obtaining a Lyapunov function for the optimizer and the loss, and bounding the discrepancy between the Markov transition kernels associated with the chains. With this guideline, the paper derives stability bounds for SGD with strongly convex problems, nonconvex problems and a class between convex and strongly convex functions. The paper also develops stability bounds for noisy SGD in a nonconvex case.

Strengths

The paper presents a new perspective to derive stability bounds by techniques in applied probability. This connection between machine learning theory and applied probability is interesting and can have potential applications to various optimization algorithms. The paper develops time-uniform stability bounds, meaning that the stability bounds would not increase to infinity as the number of iterations goes to infinity. The analysis also applies to general additive noise, which extends the existing analysis developed for Gaussian noise. The paper also develops stability bounds for the standard SGD in the nonconvex case, although a dissipativity assumption is required.

Weaknesses

The analysis for SGD in Section 3.3 is a bit complicated. For example, the choice of $\hat{\eta}$ in Eq (3.10) is too complex. The result is not quite intuitive and it is not clear how we can use this bound to explain the behavior of SGD. The bound in Theorem 3.2 is of the order larger than $O(1/(n\mu^5))$. This bound has a crude dependency on $\mu$. Since $\mu$ is often very small in practice, the bound is worse than the existing bound of the order $O(1/(n\mu))$ (HRS16). The bound in Theorem 4.1 is vacuous due to the term $K/m$. From this stability bound, we cannot get meaningful generalization bounds.

Questions

Lemma 2.1 requires to build a Lyapunov function. The paper choose the function $V(\theta)=1+|\theta-\theta_*|^2$. Can you explain why this is a good choice of Lyapunov function? What is the intuition behind it? What is the basic principle to build a Lyapunov function? The paper considers noisy SGD for nonconvex case. Can you explain intuitively why noise is needed in this case? What is the benefit of adding noise in the nonconvex case? **Minor comments**: Eq (2.6): should $\mathbb{P}(\theta_{n-1},A)$ be $P(\theta_{n-1},A)$? Eq (2.8): the meaning of $\hat{P}\hat{V}$ is not given. The meaning is given in the appendix. Below Assumption A2: "that that" Eq (D.21): $\theta - \hat{\theta}_*+...$ should be $ \theta - \hat{\theta}_*-...$. The same change should be also made in Eq (D.22)

Rating

6: Weak Accept: Technically solid, moderate-to-high impact paper, with no major concerns with respect to evaluation, resources, reproducibility, ethical considerations.

Confidence

4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.

Soundness

3 good

Presentation

3 good

Contribution

3 good

Limitations

I do not see negative societal impact.

Reviewer tckZ5/10 · confidence 5/52023-07-24

Summary

The paper derives Wasserstein stability bounds for a variety of cases for a "surrogate loss" under convex/non-convex settings.

Strengths

The problem is interesting. The bounds in the non-convex case can be useful. The paper is well-written.

Weaknesses

I am not sure how novel the convex part is, also noted by authors. This part seems to remove the projection step, however, also done for a surrogate loss, so I am not sure if these are comparable. Also for the non-convex case, it is hard to see the relationship w.r.t. existing results due to the notion of surrogate loss.

Questions

I have the following questions. One thing I did not understand is the notion of the surrogate loss (as noted). The relationship between the original cost function $f$ and $\ell$ is never clarified (I checked the appendix and no definition of this). It seems that the whole paper is written for $\ell$, this is quite confusing. Why would authors not assume $f$ is $L$-Lipschitz and derive everything for $f$ under this restrictive assumption? This should be made clear as there is no way for a reader to understand what is going on in this paper, fundamentally, if the notion of the surrogate and its relationship to $f$ is not made clear at the beginning of this work. Note also that in Definition 2.1, it reads like the paper cited (HRS16) defines the stability for a surrogate loss, whereas there is no mention of surrogate loss in HRS16. Upon checking a few related work which uses surrogate loss notion, it seems that the convergence in function value may not happen here. This of course makes the comparison impossible with relevant results in the literature. Does any surrogate loss work for these results? Do the results hold for a particular selection of losses, e.g., sometimes depends on $p$ as in earlier works? Please clarify.

Rating

5: Borderline accept: Technically solid paper where reasons to accept outweigh reasons to reject, e.g., limited evaluation. Please use sparingly.

Confidence

5: You are absolutely certain about your assessment. You are very familiar with the related work and checked the math/other details carefully.

Soundness

2 fair

Presentation

2 fair

Contribution

2 fair

Limitations

Theory work.

Reviewer Wt2h2023-08-14

Answer to rebuttal

Thank you for your rebuttal. I liked that you went over all my questions and comments, especially regarding interpretation and examples. Please, if possible, make sure to incorporate all of them into the main text of the paper. I think it improves it. Also, if you end up proving that $| a^T \theta - b|^p$ satisfies assumptions 4.1, 4.2 for $p \in (1,2)$, please respond to this answer as I am curious to see that.

Reviewer Wt2h2023-08-18

Score update

Dear authors, We can now update the scores. I increased it.

Reviewer 9dAF2023-08-14

Response to authors

Thank you for your answer ! For the sake of the discussion with the other reviewers, let me further detail my opinion on the paper: - I agree with the other reviewers that the strongly convex case is not novel, and that the worse dependency on $\mu$ is a bit problematic. - However, the proof technique is new, as well as the other results, and I believe it can be extended by future works.

Reviewer RR882023-08-18

Answer to rebuttal

First of all, I thank the authors for their detailed response. My main concern remains the combination of optimization and generalization bounds. SGD with constant step-size does not converge, and the final error depends on the noise. Adding an artificial noise increases this error. And authors decreases the generalization error. But it is quite natural to understand that a more random algorithm generalizes better. We need to compare the sum of those 2 bounds to conclude on the result. Authors say "We can directly combine our results with their results to obtain an optimization error + generalization error bound. We will mention this in the next version of the paper.". I believe the authors that we can do it easily, and I am glad authors consider doing it in the revised version. Can they quickly do it here by answering this message? I think this is an important point! Except this, I mostly like this paper due this novel approach, whereas it indeed is not a good advertisement for the technique to have some worse results than the known ones in "simple" cases, as pointed by several reviewers. A couple of minor remarks: - "In line 291, what we meant to say was that for our proof technique to work well, adding noise was beneficial. We absolutely agree with the referee that this does not mean that additive noise is a must for an algorithm to perform/generalize better.": I understood you point. Mine is just to say that it should be phrased differently. - "The notation A does not mean that it is deterministic, even though it is a function of the dataset, which is deterministic. The extra randomness comes from the randomness in the SGD, not the dataset.". Yes it does! A function is by definition deterministic. It must return the same output each time it receives the same input. The notion of randomness necessitate the definition of measured spaces and a function between them called random variable. When we talk about a "random function", we generally refer to as a random variable which outputs a function, i.e. its arrival space is a measured space of functions. So we can either write "there are lots of functions $A_X: dataset \rightarrow R^d$, and we draw X at random, or equivalently, we can define a single function and place $X$ as second input, i.e. $A(X, dataset) \in R^d$, or say that $A$ takes a dataset in input and returns a random variable that itself returns a point in $R^d$. It only depends which signature you prefer for A, and I guess the most natural one is $A: (dataset, random sampling) \rightarrow R^d$. But this random sampling must be explicit in the signature of A, otherwise A is meant to be deterministic. In conclusion, it would be great if authors could - acknowledge they will rephrase l.291 (it was not clear in their rebuttal) - acknowledge they will modify the notation for the signature of A and the $\nu$ that were discussed in the same point of their rebuttal. - provide here a complete optimization + generalization bound in the non convex case to compare with previously known ones. Best regards.

Authorsrebuttal2023-08-19

Thank you very much going over our rebuttal. We do acknowledge that we will rephrase l.291 and modify the notations and definitions for $A$ and $\nu$. Regarding the last point, we can give the following example. Recently, there have been multiple results on optimizing non-convex function using stochastic gradient Langevin dynamics. We will state the optimization error result from the paper “Global Convergence of Langevin Dynamics Based Algorithms for Nonconvex Optimization, Xu et al.” In theorem 3.3 of the above mentioned work, it was shown that gradient Langevin dynamics has the following optimization error after K iterations, $$ \text{Optimization error}(K) \leq \Theta e^{-\lambda K \eta} + \frac{C_{\psi}\eta}{\beta} + R_M$$ where $\lambda, \Theta, C_{\psi} \beta$ and $R_M$ are problem dependent parameter described in the paper. Similar results are given for stochastic gradient Langevin dynamics in Theorem 3.6. A simplified version of the results for GLD and SGLD are presented in Corollary 3.4 and 3.7 respectively. According to Corollary 3.4, the optimization error for gradient Langevin is of $O(\varepsilon)$ after $K = O(d \varepsilon ^{-1} \lambda^{-1} \log 1/\varepsilon)$ where $\lambda$ is the uniform spectral gap for continuous-time Markov process generated by Langevin dynamics. According to Corollary 3.7, the optimization error is of $O(\varepsilon + d^{3/2}B^{-1/4} \lambda^{-1} \log 1/\varepsilon )$ after $K = O(d \varepsilon ^{-1} \lambda^{-1} \log 1/\varepsilon)$ where B is the mini-batch size of Algorithm. Combining these two results will directly give the optimization+generalization performance of SGLD on a non-convex function with dissipative loss. We will add this example in a more formal way to the appendix in the next version. We hope that this clarifies the concern.

Reviewer RR882023-08-21

Thank you for your answer

Dear authors, I thank you for your answer. I think this analysis would indeed complete your results. Note that in the paper you provided, it is hard however to make asymptotic analysis, like wondering what happens when $\beta\rightarrow\infty$ since $\rho_\beta$ is not explicit. Best regards.

Reviewer tckZ2023-08-18

Thanks for your response. I think however the main difficulty of obtaining such results in the literature is precisely lies on the technical challenge of using the original cost function to measure the performance, whereas, again as all results are stated with a vague notion of surrogate loss here, I do not think there is any comparison to the rest of the literature (I'm surprised, also, that other reviewers commented on the results as if they apply to the standard function value setting). Essentially, while you are running the algorithm using the gradients of $f(\theta, x)$, you are _measuring_ the performance w.r.t. to an arbitrary loss (since it's not specified here) $\ell$. Naturally $\min_{\theta} \ell(\theta)$ could arbitrarily differ from the true minimum. For me, this makes it impossible to assess the results here. Is there a way to assume $f$ and $\ell$ are "close" in some way, which can then be used in the error bounds as an extra term? I think this really needs clarification for the reader -- if the results are interpreted without this observation, then it may not even serve the community positively.

Authorsrebuttal2023-08-18

Thank you for going over our rebuttal. We shall reiterate that there are various generalization bounds that have to rely on surrogate losses for different technical reasons. For recent examples, we kindly request you to check the settings in [FR2021, RZGS23, RBG+23]. Using the original loss in the analysis is usually not the only challenge -- or not the main challenge in general (yet we agree it is indeed a challenge); there might be several other important challenges that need to be solved, and solutions to such challenges can still be valuable to the community. On the other hand, sometimes it is even more desirable to use surrogate losses. For example, consider the classification task where the loss function we are interested in is a 0-1 loss function which is non-smooth and non-convex in nature. Hence, one runs gradient descent on (squared) hinge loss or logistic loss to better optimize the model. But eventually, the final risk bound is obtained in terms of 0-1 loss function risk and we are not interested in getting the risk bound on logistic loss or(squared) hinge loss. For the details, please refer to Bartlett et al. (2006). That being said, we agree with you that the setting might seem arbitrary for a reader who is not accustomed to surrogate losses. As you mentioned, in all the examples we have provided, the two losses are "close" to each other in certain senses. For instance in Example 1 we gave in the first response, as $C \to \infty$ the losses match. For Example 2, the two losses match as $\lambda \to 0$. We can definitely include an additional error term in the bounds coming from the use of surrogate losses, as you suggested. Essentially this will include a term in the following form: $$ | \mathbb{E}_{\theta, x}[f(\theta, x) - \ell(\theta,x) ] | $$ which measures how much the surrogate loss deviates from the original loss **on average**, and this can be a small value depending on the distribution of the algorithm output. We agree that this would increase the clarity of the presentation, we will add this in the next version. Thank you for the suggestion. We hope that this would address the concern and we remain at your disposal if there is any more questions. (1). Bartlett, Peter L., Michael I. Jordan, and Jon D. McAuliffe. ``Convexity, classification, and risk bounds.'' Journal of the American Statistical Association.

Reviewer tckZ2023-08-18

Thanks for your response. In your previous comment above, I think in both cases, different challenges may arise and it is not as simple as considering the limiting situations. For example, if you include the expectation in your last comment and if this difference is $\lambda \|\theta\|^2$ as in your Example 2, then do you need second moment bounds to be proven? (I may be mistaken here too). I am happy to reconsider my rating, if you could include very simple surrogate functions here (that are motivated by practice) and could develop the result in its full generality (that expectation term you wrote being also bounded, not just left in the bound and without introducing any compactness assumptions in parameter space which was one of the strengths of your paper). The paper is currently written in a way that the reader has to be an expert in the latest developments in this field to guess what you mean by surrogate function (which is only mentioned in a few papers) and what kind of problems you solve with these bounds. As seen from your comments, this is not trivial and the results are not straightforward to adapt. This will remain my main concern for this otherwise nicely written paper.

Authorsrebuttal2023-08-19

Let us derive the additional error term in more detail for Example 2. Specifically, let us consider the following setting: $\ell$ is convex and Lipschitz in the first parameter and let us define $f$ as we did previously: $$f(\theta,x) = \ell(\theta,x) + \frac{\mu}{2} ||\theta||^2 $$ Then $f$ is $\mu$-strongly convex. Further consider that we initialize SGD from 0 for simplicity, i.e., $\theta_0 = 0$ and set the batch size to 1 for notational clarity. Denote $\theta = \theta_k$ as the k-th iterate of SGD when applied on $\hat{F}(\theta,X_n)$ (Eqn 1.1). Further define the minimum: $$\theta^\star_{X_n} = \arg\min_{\theta} \hat{F}(\theta,X_n). $$ We can now analyze the error induced by the surrogate loss as follows: (openreview did not render the latex code correctly, hence we provide it as an image): https://ibb.co/99Mqg34 The fourth line follows from standard convergence analysis for SGD, e.g., Theorem 5.7 of https://gowerrobert.github.io/pdf/M2_statistique_optimisation/grad_conv.pdf Here, we define $\sigma_{X_n}$ as the stochastic gradient noise variance: $$\sigma_{X_n} := \mathrm{Var} [ \nabla f(\theta^\star_{X_n}, x_i) ] $$ where for a random vector $V$ we define $ \mathrm{Var} [V] := \mathbb{E} ||V - \mathbb{E}[V]||^2$. Hence, we can see that the error induced by the surrogate loss depends on the following factors: 1. The regularization parameter $\mu$ 2. The expected norm of the minimizers 3. The step-size $\eta$ 4. The expected stochastic gradient noise variance We can see that these terms can be controlled by adjusting $\mu$ and $\eta$. We will add this derivation in the next version. On the other hand, we would like to insist on the fact that, even though there is this additional term due to the use of the surrogate loss, *for this example* it does not have any practical significance: > In this setting we have a loss $\ell$ but we run the algorithm on the regularized loss $f$ to have better convergence properties. But finally we would like to understand if the algorithm generalizes on $\ell$ or not, we are typically not interested if the algorithm generalizes well on the regularized loss $f$. We hope that this would address your concerns.

Reviewer tckZ2023-08-20

Thanks for your response. I agree that this is a good first step and a good example. But, imho, the paper should have this approach from the beginning. I can see now that there are examples that make sense for this sort of result. I bumped my score from 4 to 5. I suggest authors to add a detailed discussion about the relationship between $f$ and $\ell$ with practical examples in the next version of their paper, to avoid confusing the reader.

Authorsrebuttal2023-08-20

Thank you very much for going over the derivation and increasing your score. We will add a dedicated section in the next version as you suggested.

Reviewer yPZ32023-08-19

Thank you for the point-to-point response. While the results for the strongly convex cases are not tight, I appreciate the novelty of the analysis. One thing I am still not quite clear is about the dependency on $K/M$. The authors mention that the bounds involving this term are not vacuous. These terms are involved in Assumption 3.3. It seems that this assumption is not quite related to the sample size, and therefore it is not clear to me how this term is not vacuous.

Authorsrebuttal2023-08-19

Thank you very much for going over our rebuttal. Regarding the $K/m$ term, we thought the concern was about this term does not go to zero as the sample size increases: hence the bound becomes vacuous when $n \to \infty$ (please let us know if we misunderstood your concern). What we tried to convey in our response was, we agree with you that the bound is not tight for large $n$ for the reason we mentioned above -- it indeed becomes vacuous **when $n$ goes to infinity**. However, when $n$ is not large, we believe that the bound can still be informative. More precisely, as the bound is essentially $$C/n + K/m $$ for **not large** $n$, the first term $C/n$ can dominate the $K/m$ term. Hence in such case, we stil obtain a meaningful bound, which **does not** explode as the number of iterations goes to infinity (as opposed to all existing bounds to our knowledge). We will mention this explicitly in the new version. We hope that this clarifies the concern. We would be happy to respond if there is any other questions.

Program Chairsdecision2023-09-21

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC