<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Uniform-in-Time Wasserstein Stability Bounds for (Noisy) Stochastic Gradient Descent</title></titleStmt>
			<publicationStmt>
				<publisher>Proceedings of Machine Learning Research</publisher>
				<date>12/31/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10515310</idno>
					<idno type="doi"></idno>
					<title level='j'>Advances in neural information processing systems</title>
<idno>1049-5258</idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Lingjiong Zhu</author><author>Mert Gurbuzbalaban</author><author>Anant Raj</author><author>Umut Simsekli</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[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 propertiesof 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 stochasticoptimization 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 extendthem 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, isnovel.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>With the development of modern machine learning applications, understanding the generalization properties of stochastic gradient descent (SGD) has become a major challenge in statistical learning theory. In this context, the main goal is to obtain computable upper-bounds on the population risk associated with the output of the SGD algorithm that is given as follows:</p><p>where x 2 X denotes a random data point, D is the (unknown) data distribution defined on the data space X , &#10003; denotes the parameter vector, and f : R d &#8677; X ! R is an instantaneous loss function. In a practical setting, directly minimizing F (&#10003;) is not typically possible as D is unknown; yet one typically has access to a finite data set X n = {x 1 , . . . , x n } 2 X n , where we assume each x i is independent and identically distributed (i.i.d.) with the common distribution D. Hence, given X n , one can then attempt to minimize the empirical risk F (&#10003;, X n ) := 1 n P n i=1 f (&#10003;, x i ) as a proxy for F (&#10003;). In this setting, SGD has been one of the most popular optimization algorithms for minimizing F (&#10003;) and is based on the following recursion:</p><p>where &#8984; is the step-size, b is the batch-size, &#8998; k is the minibatch that is chosen randomly from the set {1, 2, . . . , n}, and its cardinality satisfies</p><p>One fruitful approach for estimating the population risk attained by SGD, i.e., F (&#10003; k ), is based on the following simple decomposition:</p><p>where the last term is called the generalization error. Once a computable upper-bound for the generalization error can be obtained, this decomposition directly leads to a computable upper bound for the population risk F (&#10003; k ), since F (&#10003; k ) can be computed thanks to the availability of X n . Hence, the challenge here is reduced to derive upper-bounds on | F (&#10003; k ) F (&#10003; k )|, typically referred to as generalization bounds.</p><p>Among many approaches for deriving generalization bounds, algorithmic stability <ref type="bibr">[BE02]</ref> has been one of the most fruitful notions that have paved the way to numerous generalization bounds for stochastic optimization algorithms [HRS16, CJY18, MWZZ18, FV19, LY20, ZZB + 22]. In a nutshell, algorithmic stability measures how much the algorithm output differs if we replace one data point in X n with a new sample. More precisely, in the context of SGD, given another data set Xn = {x 1 , . . . , xn } = {x 1 , . . . , x i 1 , xi , x i+1 , . . . x n } 2 X n that differs from X n by at most one element, we (theoretically) consider running SGD on Xn , i.e., &#10003;k = &#10003;k 1 &#8984; r Fk ( &#10003;k 1 , Xn ), r Fk ( &#10003;k 1 ,</p><p>and we are interested in the discrepancy between &#10003; k and &#10003;k in some precise sense (to be formally defined in the next section). The wisdom of algorithmic stability indicates that a smaller discrepancy between &#10003; k and &#10003;k implies a smaller generalization error.</p><p>The last decade has witnessed an increasing number of stability bounds for different algorithms applied on different classes of loss functions. In a pioneering study, <ref type="bibr">[HRS16]</ref> proved a variety of stability bounds for SGD, for strongly convex, convex, and non-convex problems. Their analysis showed that, under strong convexity and bounded gradient assumptions, the generalization error of SGD with constant step-size is of order n 1 ; whereas for general convex and non-convex problems, their bounds diverged with the number of iterations (even with a projection step), unless a decreasing step-size is used. In subsequent studies <ref type="bibr">[LY20,</ref><ref type="bibr">KWS23]</ref> extended the results of <ref type="bibr">[HRS16]</ref>, by either relaxing the assumptions or generalizing the setting to more general algorithms. However, their bounds still diverged for constant step-sizes, unless strong convexity is assumed. In a recent study, <ref type="bibr">[BFGT20]</ref> proved stability lower-bounds for projected SGD when the loss is convex and non-smooth.</p><p>Their results showed for general non-smooth loss functions we cannot expect to prove time-uniform (i.e., non-divergent with the number of iterations) stability bounds for SGD, even when a projection step is appended.</p><p>In a related line of research, several studies investigated the algorithmic stability of the stochastic gradient Langevin dynamics (SGLD) algorithm <ref type="bibr">[WT11]</ref>, which is essentially a 'noisy' version of SGD that uses the following recursion:</p><p>, where (&#8672; k ) k 0 is a sequence of i.i.d. Gaussian vectors, independent of &#10003; k 1 and &#8998; k . The authors of <ref type="bibr">[RRT17,</ref><ref type="bibr">MWZZ18]</ref> proved stability bounds for SGLD for non-convex losses, which were then extended to more general (non-Gaussian) noise settings in <ref type="bibr">[LLQ19]</ref>. While these bounds hinted at the benefits of additional noise in terms of stability, they still increased with the number of iterations, which limited the impact of their results. More recently, <ref type="bibr">[FR21]</ref> proved the first time-uniform stability bounds for SGLD under non-convexity, indicating that, with the presence of additive Gaussian noise, better stability bounds can be achieved. Their time-uniform results were then extended to non-Gaussian, heavy-tailed perturbations in [RBG + 23, RZG &#350;23] for quadratic and a class of non-convex problems.</p><p>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. Hence, it is not straightforward to extend the existing techniques to different algorithms with different classes of loss functions. Moreover, currently, it is not clear how the noisy perturbations affect algorithmic stability so that time-uniform bounds can be achieved, and more generally, it is not clear in which circumstances one might hope for time-uniform stability bounds.</p><p>In this study, we contribute to this line of research and prove novel time-uniform algorithmic stability bounds for SGD and its noisy versions. Our main contributions are as follows:</p><p>&#8226; 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 with a constant step-size. Our approach is based on Markov chain perturbation theory <ref type="bibr">[RS18]</ref>, which offers a three-step proof technique for deriving stability bounds: (i) showing the optimizer is geometrically ergodic, (ii) obtaining a Lyapunov function for the optimizer and the loss, and (iii) bounding the discrepancy between the Markov transition kernels associated with the chains (&#10003; k ) k 0 and ( &#10003;k ) k 0 . We illustrate this approach on SGD and show that time-uniform stability bounds can be obtained under a pseudo-Lipschitz-like condition for smooth strongly-convex losses (we recover similar results to the ones of <ref type="bibr">[HRS16]</ref>) and a class of non-convex losses (that satisfy a dissipativity condition) when a noisy perturbation with finite variance (not necessarily Gaussian, hence more general than <ref type="bibr">[FR21]</ref>) is introduced. Our results shed more light on the role of the additional noise in terms of obtaining time-uniform bounds: in the non-convex case the optimizer might not be geometrically ergodic unless additional noise is introduced, hence the bound cannot be obtained. Moreover, 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 [AFGO20, LRP16, FGO + 22, GRZ22, LGY20, AFGO19].</p><p>&#8226; We then investigate the case where no additional noise is introduced to the SGD recursion and the geometric ergodicity condition does not hold. First, for non-convex losses, we prove a time-uniform stability bound, where the bound converges to a positive number (instead of zero) as n ! 1, and this limit depends on the 'level of non-convexity'. Then, we consider a class of (non-strongly) convex functions and prove stability bounds for the stationary distribution of (&#10003; k ) k 0 , which vanish as n increases. To the best of our knowledge, these results are novel, and indicate that the stability bounds do not need to increase with time even under non-convexity and without additional perturbations; yet, they might have a different nature depending on the problem class.</p><p>One limitation of our analysis is that it requires Lipschitz surrogate loss functions and does not directly handle the original loss function, due to the use of the Wasserstein distance [RRT + 16]. Yet, surrogate losses have been readily utilized in the recent stability literature (e.g., [RBG + 23, RZG &#350;23]) and we believe that our analysis might illuminate uncovered aspects of SGD even with this requirement. All the proofs are provided in the Appendix.</p><p>2 Technical Background 2.1 The Wasserstein distance and Wasserstein algorithmic stability Wasserstein distance. For p 1, the p-Wasserstein distance between two probability measures &#181; and &#9003; on R d is defined as <ref type="bibr">[Vil09]</ref>:</p><p>where the infimum is taken over all couplings of X &#8672; &#181; and Y &#8672; &#9003;. In particular, the dual representation for the 1-Wasserstein distance is given as <ref type="bibr">[Vil09]</ref>:</p><p>where Lip(1) consists of the functions h : R d ! R that are 1-Lipschitz.</p><p>Wasserstein algorithmic stability. Algorithmic stability is a crucial concept in learning theory that has led to numerous significant theoretical breakthroughs <ref type="bibr">[BE02,</ref><ref type="bibr">HRS16]</ref>. To begin, we will present the definition of algorithmic stability as stated in <ref type="bibr">[HRS16]</ref>:</p><p>where the first supremum is taken over data X, X 2 X n that differ by one element, denoted by X &#8672; = X.</p><p>In this context, we purposefully employ a distinct notation for the loss function `(in contrast to f ) since our theoretical framework necessitates measuring algorithmic stability through a surrogate loss function, which may differ from the original loss f . More precisely, our bounds will be based on the 1-Wasserstein distance, hence, we will need the surrogate loss `to be a Lipschitz continuous function, as we will detail in (2.2). On the other hand, for the original loss f we will need some form of convexity (e.g., strongly convex, convex, or dissipative) and we will need the gradient of f to be Lipschitz continuous, in order to derive Wasserstein bounds. Unfortunately, under these assumptions, we cannot further impose f itself to be Lipschitz, hence the need for surrogate losses. Nevertheless, the usage of surrogate losses is common in learning theory, see e.g, [FR21, RZG &#350;23], and we present concrete practical examples in the Appendix. Now, we present a result from <ref type="bibr">[HRS16]</ref> that establishes a connection between algorithmic stability and the generalization performance of a randomized algorithm. Prior to presenting the result, we define the empirical and population risks with respect to the loss function `as follows:</p><p>Theorem 2.1 ([HRS16], Theorem 2.2). Suppose that A is an "-uniformly stable algorithm, then the expected generalization error is bounded by</p><p>For a randomized algorithm, if &#9003; and &#9003; denotes the law of A(X) and A( X) then for a L-Lipschitz surrogate loss function `, we have the following generalization error guarantee,</p><p>(2.5)</p><p>The above result can be directly obtained from the combination of the results given in (2.2), Definition 2.1, and Theorem 2.1 (see also [RRT + 16]).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">Perturbation theory for Markov chains</head><p>Next, we recall the Wasserstein perturbation bound for Markov chains from <ref type="bibr">[RS18]</ref>. Let (&#10003; n ) 1 n=0 be a Markov chain with transition kernel P and initial distribution p 0 , i.e., we have almost surely</p><p>and p 0 (A) = P(&#10003; 0 2 A) for any measurable set A &#10003; R d and n 2 N. We assume that ( &#10003;n ) 1 n=0 is another Markov chain with transition kernel P and initial distribution p0 . We denote by p n the distribution of &#10003; n and by pn the distribution of &#10003;n . By &#10003; , we denote the Dirac delta distribution at &#10003;, i.e. the probability measure concentrated at &#10003;. For a measurable set A &#10003; R d , we also use the notation &#10003; P (A) := P (&#10003;, A). Lemma 2.1 ([RS18], Theorem 3.1). Assume that there exist some &#8674; 2 [0, 1) and C 2 (0, 1) such that sup</p><p>for any n 2 N. Further assume that there exist some 2 (0, 1) and L 2 (0, 1) and a measurable Lyapunov function V : R d ! [1, 1) of P such that for any &#10003; 2 R d :</p><p>where</p><p>(2.9)</p><p>Lemma 2.1 provides a sufficient condition for the distributions p n and pn after n iterations to stay close to each other given the initial distributions p 0 . Lemma 2.1 will provide a key role in helping us derive the main results in Section 3.1 and Section 3.2. Later, in the Appendix, we will state and prove a modification of Lemma 2.1 (see Lemma E.5 in the Appendix) that will be crucial to obtaining the main result in Section 3.3.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Wasserstein Stability of SGD via Markov Chain Perturbations</head><p>In this section, we will derive time-uniform Wasserstein stability bounds for SGD by using the perturbation theory presented in <ref type="bibr">[RS18]</ref>. Before considering general losses that can be non-convex, we first consider the simpler case of quadratic losses to illustrate our key ideas.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Warm up: quadratic case</head><p>To illustrate the proof technique, we start by considering a quadratic loss of the form:</p><p>In this setting, the SGD recursion takes the following form:</p><p>The sequence (H k , q k ) are i.i.d. and for every k,</p><p>Similarly, we can write down the iterates of SGD with a different data set Xn := {x 1 , . . . , xn } with xi = (&#226; i , &#375;i ), where Xn differs from X n with at most one element:</p><p>Our goal is to obtain an algorithmic stability bound, through estimating the 1-Wasserstein distance between the distribution of &#10003; k and &#10003;k and we will now illustrate the three-step proof technique that we described in Section 1. To be able to apply the perturbation theory <ref type="bibr">[RS18]</ref>, we start by establishing the geometric ergodicity of the Markov process (&#10003; k ) k 0 with transition kernel P (&#10003;, &#8226;), given in the following lemma.</p><p>Lemma 3.1. Assume that &#8674; := E I &#8984; b H 1 &lt; 1. Then, for any k 2 N, we have the following inequality:</p><p>We note that since H 1 &#9003; 0, the assumption in Lemma 3.1 can be satisfied under mild assumptions, for example when H 1 0 with a positive probability, which is satisfied for &#8984; small enough.</p><p>In the second step, we construct a Lyapunov function V that satisfies the conditions of Lemma 2.1.</p><p>Lemma 3.2. Let V (&#10003;) := 1 + k&#10003;k. Assume that &#8674; := E I &#8984; b &#292;1 &lt; 1. Then, we have</p><p>In our third and last step, we estimate the perturbation gap based on the Lyapunov function V in the form of (2.7), assuming that the data is bounded. Such bounded data assumptions have been commonly made in the literature <ref type="bibr">[Bac14,</ref><ref type="bibr">BM13]</ref>.</p><p>Note that Lemma 2.1 relies on three conditions: the Wasserstein contraction in (2.7), which is obtained through Lemma 3.1, the drift condition for the Lyapunov function in (2.8), which is obtained in Lemma 3.2 and finally the estimate on in (2.9) which is about the one-step 1-Wasserstein distance between two semi-groups that in our context are associated with two datasets that differ by at most one element, which is obtained in Lemma 3.3. The only place the neighborhood assumption (sup x2X kxk &#63743; D) is used is in the expression of in equation (2.9). Now, having all the ingredients, we can invoke Lemma 2.1 and we obtain the following result which provides a 1-Wasserstein bound between the distribution of iterates when applied to datasets that differ by one point.</p><p>For Y 2 S 1 n=1 X n and k 0, let &#9003;(Y, k) denote the law of the k-th the SGD iterate when Y is used as the dataset, i.e., &#9003;(X, k) and &#9003;( X, k) denote the distributions of &#10003; k and &#10003;k obtained by the recursions (3.1) and (3.2) respectively. As shorthand notation, set &#9003; k := &#9003;(X, k) and &#9003;k := &#9003;( X, k).</p><p>Theorem 3.1. Assume &#10003; 0 = &#10003;0 = &#10003;. We also assume that &#8674; := E I &#8984; b H 1 &lt; 1 and &#8674; := E I &#8984; b &#292;1 &lt; 1 and sup x2X kxk &#63743; D for some D &lt; 1. Then, we have</p><p>Proof. The result directly follows from Lemma 3.1, Lemma 3.2, Lemma 3.3 and Lemma 2.1.</p><p>By a direct application of (2.5), we can obtain a generalization bound for an L-Lipschitz surrogate loss function, as follows:</p><p>and X is a random set of n-data points from the data generating distribution. The generalization bound obtained above does not include the mean square error in the unbounded case but covers a larger class of surrogate loss functions. Because of this incompatibility, a direct comparison is not possible; however, the rate obtained in the equation above has the same dependence on the number of samples that were obtained in the previous works <ref type="bibr">[LY20]</ref>. For least squares, there are other works using integral operators that develop generalization bounds for SGD under a capacity condition <ref type="bibr">[LR17,</ref><ref type="bibr">PVRB18]</ref>. However, these bounds only hold for the least square loss.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Strongly convex case</head><p>Next, we consider strongly convex losses. In the remainder of the paper, we will always assume that for every x 2 X , f (&#8226;, x) is differentiable.</p><p>Before proceeding to the stability bound, we first introduce the following assumptions.</p><p>Assumption 3.1. There exist constants K 1 , K 2 &gt; 0 such that for any &#10003;, &#10003; 2 R d and every x 2 X ,</p><p>This assumption is a pseudo-Lipschitz-like condition on rf and is satisfied for various problems such as GLMs <ref type="bibr">[Bac14]</ref>. Next, we assume that the loss function f is strongly convex.</p><p>Assumption 3.2. There exists a universal constant &#181; &gt; 0 such that for any</p><p>By using the same recipe as we used for quadratic losses, we obtain the following stability result.</p><p>Theorem 3.2. Let &#10003; 0 = &#10003;0 = &#10003;. Assume that Assumption 3.1 and Assumption 3.2 hold. We also assume that &#8984; &lt; min</p><p>, sup x2X kxk &#63743; D for some D &lt; 1, and sup x2X krf (0, x)k &#63743; E for some E &lt; 1. Let &#9003; k and &#9003;k denote the distributions of &#10003; k and &#10003;k respectively. Then, we have</p><p>Similarly to the quadratic case, we can now directly obtain a bound on expected generalization error using (2.5). More precisely, for an L-Lipschitz surrogate loss function `, we have</p><p>The bound above has the same dependence on the number of samples as the ones of the previous stability analysis of (projected) SGD for strongly convex functions [HRS16, LLNT17, LY20]. However, we have a worse dependence on the strong convexity parameter &#181;.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">Non-convex case with additive noise</head><p>Finally, we consider a class of non-convex loss functions. We assume that the loss function satisfies the following dissipativity condition.</p><p>Assumption 3.3. There exist constants m &gt; 0 and K &gt; 0 such that for any</p><p>The class of dissipative functions satisfying this assumption are the ones that admit some gradient growth in radial directions outside a compact set. Inside the compact set though, they can have quite general non-convexity patterns. As concrete examples, they include certain one-hidden-layer neural networks <ref type="bibr">[AS23]</ref>; they arise in non-convex formulations of classification problems (e.g. in logistic regression with a sigmoid/non-convex link function); they can also arise in robust regression problems, see e.g. <ref type="bibr">[GGZ22]</ref>. Also, any function that is strongly convex outside of a ball of radius for some will satisfy this assumption. Consequently, regularized regression problems where the loss is a strongly convex quadratic plus a smooth penalty that grows slower than a quadratic will belong to this class; a concrete example would be smoothed Lasso regression; many other examples are also given in <ref type="bibr">[EHZ22]</ref>. Dissipative functions also arise frequently in the sampling and Bayesian learning and global convergence in non-convex optimization literature <ref type="bibr">[RRT17,</ref><ref type="bibr">GGZ22]</ref>.</p><p>Unlike the strongly-convex case, we can no longer obtain a Wasserstein contraction bound using the synchronous coupling technique as we did in the proof of Theorem 3.2. To circumvent this problem, in this setting, we consider a noisy version of SGD, with the following recursion:</p><p>where &#8672; k are additional i.i.d. random vectors in R d , independent of &#10003; k 1 and &#8998; k , satisfying the following assumption.</p><p>Assumption 3.4. &#8672; 1 is random vector on R d with a continuous density p(x) that is positive everywhere, i.e. p(x) &gt; 0 for any</p><p>Note that the SGLD algorithm <ref type="bibr">[WT11]</ref> is a special case of this recursion, whilst our noise model can accommodate non-Gaussian distributions with finite second-order moment.</p><p>Analogously, let us define the (noisy) SGD recursion with the data set Xn as &#10003;k = &#10003;k 1 &#8984; r Fk ( &#10003;k 1 , Xn ) + &#8984;&#8672; k , and let p(&#10003;, &#10003; 1 ) denote the probability density function of</p><p>Then, by following the same three-step recipe, we obtain the following stability bound. Here, we do not provide all the constants explicitly for the sake of clarity; the complete theorem statement is given in Theorem E.1 (Appendix E.1).</p><p>Theorem 3.3. Let &#10003; 0 = &#10003;0 = &#10003;. Assume that Assumption 3.1, Assumption 3.3 and Assumption 3.4 hold. We also assume that &#8984; &lt; min</p><p>Let &#9003; k and &#9003;k denote the distributions of &#10003; k and &#10003;k respectively. Then, we have</p><p>where for any &#8984; 0 2 (0, &#8984;) and 0 2</p><p>Contrary to our previous results, the proof technique for showing Wasserstein contraction (as in Lemma 3.1) for this theorem relies on verifying the drift condition (Assumption B.1) and the minorization condition (Assumption B.2) as given in <ref type="bibr">[HM11]</ref>. Once these conditions are satisfied, we invoke the explicitly computable bounds on the convergence of Markov chains developed in <ref type="bibr">[HM11]</ref>.</p><p>From equation (2.5), we directly obtain the following generalization error bound for L-Lipschitz surrogate loss function,</p><p>where the constants are defined in Theorem 3.3 1 . The above result can be directly compared with the result in [FR21, Theorem 4.1] that has the same dependence on n and b. However, our result is more general in the sense that we do not assume our noise to be Gaussian noise. Note that [LLQ19] can also accommodate non-Gaussian noise; however, their bounds increase with the number of iterations.</p><p>Remark 3.4. In Theorem 3.3, we can take R = 2K0 m (1 + &#9999;) for some fixed &#9999; 2 (0, 1) so we can take</p><p>Moreover, we can take &#8984; 0 = &#8984; 2 , 0 = 1 m&#8984;&#9999; 2 , and = &#8984; 2&#8984;K0 , so that</p><p>provided that &#8984; &#63743; 1. Note that the parameter &#8984; in (3.10) appears in the upper bound in equation (3.9) that controls the 1-Wasserstein algorithmic stability of the SGD. It is easy to see from equation (3.9) that the smaller &#8984;, the smaller the 1-Wasserstein bound. By the defintion of &#8984;, the larger &#8984;, the smaller the 1-Wasserstein bound. As a result, we would like to choose &#8984; to be as large as possible, and the equation (3.10) provides an explicit value that &#8984; can take, which is already the largest as possible.</p><p>Next, let us provide some explicitly computable lower bounds for &#8984; in (3.10). This is achievable if we specify further the noise assumption. Under the assumption that &#8672; k are i.i.d. Gaussian distributed, we have the following corollary.</p><p>1 By using the decomposition (1.2), we can obtain excess risk bounds for SGLD by combining our results with <ref type="bibr">[XR17]</ref>: it was shown that gradient Langevin dynamics has the following optimization error is O(" Corollary 3.5. Under the assumptions in Theorem 3.3, we further assume the noise</p><p>. We also assume that &#8963; I d . Then, we have</p><p>.</p><p>(3.12)</p><p>The above corollary provides an explicit lower bound for &#8984; (instead of the less transparent inequality constraints in Theorem 3.3), and by combining with Remark 3.4 (see equation (3.11)) leads to an explicit formula for &#8984; which is essential to characterize the Wasserstein upper bound in (3.9) in Theorem 3.3.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Wasserstein Stability of SGD without Geometric Ergodicity</head><p>While the Markov chain perturbation theory enabled us to develop stability bounds for the case where we can ensure geometric ergodicity in the Wasserstein sense (i.e., proving contraction bounds), we have observed that such a strong ergodicity notion might not hold for non-strongly convex losses.</p><p>In this section, we will prove two more stability bounds for SGD, without relying on <ref type="bibr">[RS18]</ref>, hence without requiring geometric ergodicity. To the best of our knowledge, these are the first uniform-time stability bounds for the considered classes of convex and non-convex problems.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Non-convex case without additive noise</head><p>The stability result we obtained in Theorem 3.3 required us to introduce an additional noise (Assumption 3.4) to be able to invoke Lemma 2.1. We will now show that it is possible to use a more direct approach to obtain 2-Wasserstein algorithmic stability in the non-convex case under Assumption 3.3 without relying on <ref type="bibr">[RS18]</ref>. However, we will observe that without geometric ergodicity will have a non-vanishing bias term in the bound. Note that, since W 1 (&#9003; k , &#9003;k ) &#63743; W p (&#9003; k , &#9003;k ) for all p 1, the following bound still yields a generalization bound by (2.5).</p><p>Theorem 4.1. Assume &#10003; 0 = &#10003;0 = &#10003;. We also assume that Assumption 3.1 and Assumption 3.3 hold and &#8984; &lt; min</p><p>and sup x2X kxk &#63743; D for some D &lt; 1 and sup x2X krf (0, x)k &#63743; E for some E &lt; 1. Let &#9003; k and &#9003;k denote the distributions of &#10003; k and &#10003;k respectively. Then, we have</p><p>where the constant B is explicitly defined in the proof.</p><p>While the bound (4.1) does not increase with the number of iterations, it is easy to see that it does not vanish as n ! 1, and it is small only when K from the dissipativity condition (Assumption 3.3) is small. In other words, if we consider K to be the level of non-convexity (e.g., K = 0 corresponds to strong convexity), as the function becomes 'more non-convex' the persistent term in the bound will get larger. While this persistent term might make the bound vacuous when n ! 1, for moderate n the bound can be still informative as the persistent term might be dominated by the first two terms.</p><p>Moreover, discarding the persistent bias term, this bound leads to a generalization bound with rate n 1/2 , rather than n 1 as before. This indicates that it is beneficial to add additional noise &#8672; k in SGD as in Theorem 3.3 in order for the dynamics to be geometrically ergodic that can lead to a sharp bound as n ! 1. Finally, we note that as Theorem 4.1 involves 2-Wasserstein distance, it can pave the way for generalization bounds without requiring a surrogate loss. Yet, this is not immediate and would require deriving uniform L 2 bounds for the iterates, e.g., <ref type="bibr">[RRT17]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Convex case with additional geometric structure</head><p>We now present our final stability bound, where we consider relaxing the strong convexity assumption (Assumption 3.2) to the following milder assumption. Assumption 4.1. There exists universal constants &#181; &gt; 0 and p 2 (1, 2) such that for any</p><p>Note that as p &lt; 2, the function class can be seen as an intermediate class between convex and strongly convex functions, and such a class of functions has been studied in the optimization literature <ref type="bibr">[Dun81,</ref><ref type="bibr">Ber15]</ref>.</p><p>We analogously modify Assumption 3.1 and consider the following assumption.</p><p>Assumption 4.2. There exist constants</p><p>The next theorem establishes a stability bound for the considered class of convex losses in the stationary regime of SGD.</p><p>Theorem 4.2. Let &#10003; 0 = &#10003;0 = &#10003;. Suppose Assumption 4.1 and Assumption 4.2 hold (with p 2 (1, 2)) and</p><p>and sup x2X kxk &#63743; D for some D &lt; 1 and sup x2X krf (0, x)k &#63743; E for some E &lt; 1. Then &#9003; k and &#9003;k converge to the unique stationary distributions &#9003; 1 and &#9003;1 respectively and moreover, we have</p><p>where the constants</p><p>While we have relaxed the geometric ergodicity condition for this case, in the proof of Theorem 4.2, we show that the Markov chain</p><p>Hence, even though we still obtain a time-uniform bound, our bound holds asymptotically in k, due to the lack of an explicit convergence rate for W p (&#9003; k , &#9003; 1 ). On the other hand, the lack of strong convexity here results in a generalization bound with rate n 1/p , whereas for the strongly convex case, i.e., p = 2, we previously obtained a rate of n 1 . This might be an indicator that there might be still room for improvement in terms of the rate, at least for this class of loss functions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Conclusion</head><p>We proved time-uniform Wasserstein-stability bounds for SGD and its noisy versions under different strongly convex, convex, and non-convex classes of functions. By making a connection to Markov chain perturbation results <ref type="bibr">[RS18]</ref>, we introduced a three-step guideline for proving stability bounds for stochastic optimizers. As this approach required geometric ergodicity, we finally relaxed this condition and proved two other stability bounds for a large class of loss functions.</p><p>The main limitation of our approach is that it requires Lipschitz surrogate loss functions, as it is based on the Wasserstein distance. Hence, our natural next step will be to extend our analysis without such a requirement. Finally, due to the theoretical nature of this study, it does not contain any direct potential societal impacts.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Uniform-in-Time Wasserstein Stability Bounds for (Noisy) Stochastic Gradient Descent APPENDIX</head><p>The Appendix is organized as follows:</p><p>&#8226; In Section A, we provide further details and examples about the usage of surrogate losses.</p><p>&#8226; In Section B, we provide technical background for the computable bounds for the convergence of Markov chains which will be used to prove the results in Section 3.3 in the main paper. &#8226; In Section C, we provide technical proofs for 1-Wasserstein perturbation results for the quadratic loss in Section 3.1 in the main paper. &#8226; In Section D, we provide technical proofs for 1-Wasserstein perturbation results for the strongly-convex loss in Section 3.2 in the main paper. &#8226; In Section E, we provide technical proofs for 1-Wasserstein perturbation results for the non-convex loss (with additive noise) in Section 3.3 in the main paper. &#8226; In Section F, we provide technical proofs for 2-Wasserstein stability bounds for the nonconvex loss without additive noise in Section 4.1 in the main paper. &#8226; In Section G, we provide technical proofs for p-Wasserstein stability bounds for the convex loss with additional geometric structure in Section 4.2 in the main paper.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A On the Usage of Surrogate Losses</head><p>While the requirement of surrogate losses is a drawback of our framework, nevertheless our setup can cover several practical settings. In this section, we will provide two such examples.</p><p>Example 1. We can choose the surrogate loss as the truncated loss, such that:</p><p>`(&#10003;, x) = min(f (&#10003;, x), C), where C &gt; 0 is a chosen constant. This can be seen as a "robust" version of the original loss, which has been widely used in robust optimization and is conceptually similar to adding a projection step to the optimizer.</p><p>Example 2. Another natural setup for our framework is the `2-regularized Lipschitz loss that was also used in <ref type="bibr">[FR21]</ref>. As opposed to the previous case, for the sake of this example, let us consider &#224;s the true loss and f as the surrogate loss. Then, we can choose the pair f and `as follows:</p><p>where &#181; &gt; 0. Intuitively, this setting means that, we have a true loss `which can be Lipschitz, but in the optimization framework we consider a regularized version of the loss. In other words, we have a loss `; however, we run the algorithm on the regularized loss f to have better convergence properties, and finally, we would like to understand if the algorithm generalizes on `or not, and we are typically not interested if the algorithm generalizes well on the regularized loss f .</p><p>Next, we illustrate how a generalization bound for the loss f , i.e., E[ F (&#10003;) F (&#10003;)] . For this example, a bound on the quantity can be obtained by building on our analysis. To obtain such a bound, in addition to the bounds that we developed on E[ R(&#10003;) R(&#10003;)] , we would need to estimate the following quantity:</p><p>For illustration purposes, assume that `is convex and Lipschitz in the first parameter. Then, f is &#181;-strongly convex. Further consider that we initialize SGD from 0, i.e., &#10003; 0 = 0 and set the batch size b to 1. Denote &#10003; = &#10003; k as the k-th iterate of SGD when applied on F (&#10003;, X n ), i.e., (1.1). Further define the minimum:</p><p>We can now analyze the error induced by the surrogate loss as follows:</p><p>Here, the second inequality follows from standard convergence analysis for SGD [GG23, Theorem 5.7] and we define Xn as the stochastic gradient noise variance:</p><p>where for a random vector V we define Var[V ] := EkV E[V ]k 2 . Hence, we can see that the error induced by the surrogate loss depends on the following factors:</p><p>&#8226; The regularization parameter &#181;,</p><p>&#8226; The expected norm of the minimizers,</p><p>&#8226; The step-size &#8984;,</p><p>&#8226; The expected stochastic gradient noise variance.</p><p>These terms can be controlled by adjusting &#181; and &#8984;.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B Technical Background</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B.1 Computable bounds for the convergence of Markov chains</head><p>Geometric ergodicity and convergence rate of Markov chains has been well studied in the literature [MT93, <ref type="bibr">MT94,</ref><ref type="bibr">HM11]</ref>. In this section, we state a result from <ref type="bibr">[HM11]</ref> that provides an explicitly computable bound on the Wasserstein contraction for the Markov chains that satisfies a drift condition that relies on the construction of an appropriate Lyapunov function and a minorization condition.</p><p>Let P(&#10003;, &#8226;) be a Markov transition kernel for a Markov chain (&#10003; k ) on R d . For any measurable function</p><p>we define:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Assumption B.1 (Drift Condition</head><p>). There exists a function V : R d ! [0, 1) and some constants K 0 and 2 (0, 1) so that</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">(Minorization Condition</head><p>). There exists some constant &#8984; 2 (0, 1) and a probability measure &#9003; so that inf</p><p>for some R &gt; 2K/(1 ).</p><p>We define the weighted total variation distance:</p><p>where &gt; 0 and V (&#10003;) is the Lyapunov function that satisfies the drift condition (Assumption B.1).</p><p>It is known that d has the following alternative expression <ref type="bibr">[HM11]</ref>:</p><p>where k &#8226; k is the weighted supremum norm such that for any &gt; 0:</p><p>.</p><p>It is also noted in <ref type="bibr">[HM11]</ref> that d has yet another equivalent expression:</p><p>where</p><p>.</p><p>Lemma B.1 (Theorem 1.3. <ref type="bibr">[HM11]</ref>). If the drift condition (Assumption B.1) and minorization condition (Assumption B.2) hold, then there exists &#8984; 2 (0, 1) and &gt; 0 so that</p><p>for any probability measures &#181; 1 , &#181; 2 on R d . In particular, for any &#8984; 0 2 (0, &#8984;) and 0 2 ( +2K/R, 1)</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C Proofs of Wasserstein Perturbation Results</head><p>with &#10003;0 = &#10003;. Note that</p><p>By iterating over j = k, k 1, . . . 1, we conclude that</p><p>This completes the proof.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C.2 Proof of Lemma 3.2</head><p>Proof. First, we recall that</p><p>where &#292;k := P i2&#8998; k &#226;i &#226;&gt; i and qk := P i2&#8998; k &#226;i &#375;i . Therefore, starting with &#10003;0 = &#10003;, we have</p><p>which implies that</p><p>This completes the proof.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C.3 Proof of Lemma 3.3</head><p>Proof. Let us recall that</p><p>Since X n and Xn differ by at most one element and sup x2X kxk &#63743; D for some D &lt; 1, we have (H 1 , q 1 ) = ( &#292;1 , q 1 ) with probability n b n and (H 1 , q 1 ) 6 = ( &#292;1 , q 1 ) with probability b n and moreover</p><p>and</p><p>Hence, we conclude that</p><p>This completes the proof.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D Proofs of Wasserstein Perturbation Results: Strongly Convex Case</head><p>In order to obtain the algorithmic stability bound, that is a 1-Wasserstein distance between the distribution of &#10003; k and &#10003;k , we need to establish a sequence of technical lemmas. First, we show a 1-Wasserstein contraction rate in the following lemma.</p><p>Lemma D.1. Assume that Assumption 3.1 and Assumption 3.2 hold, and further assume that</p><p>. Then, for any n 2 N,</p><p>Proof. Let P k (&#10003;, &#8226;) denote the law of &#10003; k starting with &#10003; 0 = &#10003;:</p><p>Therefore, we have</p><p>By applying Assumption 3.1 and Assumption 3.2, we get</p><p>. By iterating over k = n, n 1, . . . 1, we conclude that</p><p>This completes the proof.</p><p>Next, we construct a Lyapunov function V and obtain a drift condition for the SGD ( &#10003;k ) 1 k=0 .</p><p>Lemma D.2. Assume that Assumption 3.1 and Assumption 3.2 hold. Let V (&#10003;) := 1+k&#10003; &#10003;&#8676; k 2 , where &#10003;&#8676; is the minimizer of F (&#10003;, Xn ) :=</p><p>and sup x2X kxk &#63743; D for some D &lt; 1. Then, we have</p><p>Proof. First, we recall that</p><p>Therefore, starting with &#10003;0 = &#10003;, we have</p><p>This implies that</p><p>We can compute that</p><p>Moreover, we can compute that</p><p>Hence, we conclude that</p><p>. This completes the proof.</p><p>Next, we estimate the perturbation gap based on the Lyapunov function V .</p><p>Lemma D.3. Assume that Assumption 3.1 holds. Assume that sup x2X kxk &#63743; D for some D &lt; 1. Then, we have</p><p>where &#10003;&#8676; is the minimizer of F (&#10003;, Xn ) := 1 n P n i=1 rf (&#10003;, xi ).</p><p>Proof. Let us recall that</p><p>Since X n and Xn differ by at most one element and sup x2X kxk &#63743; D for some D &lt; 1, we have</p><p>x i = xi for any i 2 &#8998; 1 with probability n b n and x i 6 = xi for exactly one i 2 &#8998; 1 with probability b n and therefore</p><p>Hence, we conclude that</p><p>This completes the proof. Proof. Since f (&#10003;, x) is &#181;-strongly convex in &#10003; for every x 2 X , we have </p><p>where &#10003;&#8676; is the minimizer of F (&#10003;, Xn ) := 1 n P n i=1 rf (&#10003;, xi ). Finally, k&#10003; &#10003;&#8676; k 2 &#63743; 2k&#10003;k 2 + 2k &#10003;&#8676; k 2 and by applying Lemma D.4, we complete the proof.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E Proofs of Wasserstein Perturbation Bounds: Non-Convex Case</head><p>Lemma E.1. Assume that Assumption 3.1, Assumption 3.3 and Assumption 3.4 hold. For any &#8984; 2 (0, 1). Define M &gt; 0 so that R k&#10003;1k&#63743;M p(&#10003; &#8676; , &#10003; 1 )d&#10003; 1 p &#8984; and any R &gt; 0 so that R &gt; 2K0 m and inf</p><p>where</p><p>Then, for any n 2 N,</p><p>, where for any &#8984; 0 2 (0, &#8984;) and 0 2</p><p>and d is the weighted total variation distance defined in Section B.1.</p><p>Proof. Our proof relies on a computable bound on the Wasserstein contraction for the Markov chains by <ref type="bibr">[HM11]</ref> that satisfies a drift condition (Assumption B.1) that relies on the construction of an appropriate Lyapunov function and a minorization condition (Assumption B.2).</p><p>By applying Lemma E.3, we can immediately show that the following drift condition holds. Let V (&#10003;) := 1 + k&#10003; &#10003; &#8676; k 2 , where &#10003; &#8676; is the minimizer of</p><p>and sup x2X kxk &#63743; D for some D &lt; 1. Then, we have</p><p>where</p><p>Thus, the drift condition (Assumption B.1) holds.</p><p>Next, let us show that the minorization condition (Assumption B.2) also holds. Let us recall that</p><p>We denote p(&#10003;, &#10003; 1 ) the probability density function of &#10003; 1 with the emphasis on the dependence on the initial point &#10003;. Then, to check that the minorization condition (Assumption B.2) holds, it suffices to show that there exists some constant &#8984; 2 (0, 1) inf</p><p>for some R &gt; 2&#8984;K0 1 (1 m&#8984;) = 2K0 m , where q(&#10003; 1 ) is the density function of a probability distribution function on R d , and (E.7) follows from Lemma E.2. Hence, by Lemma B.1, we have</p><p>for any &#10003;, &#10003; in R d , where for any &#8984; 0 2 (0, &#8984;) and 0 2</p><p>Finally, by the Kantorovich-Rubinstein duality for the Wasserstein metric, we get for any two probability measures &#181; 1 , &#181; 2 on R d :</p><p>Hence, we conclude that</p><p>This completes the proof.</p><p>The proof of Lemma E.1 relies on the following technical lemma, which is a reformulation of Lemma 35 in <ref type="bibr">[CGZ19]</ref> that helps establish the minorization condition (Assumption B.2).</p><p>Lemma E.2. For any &#8984; 2 (0, 1) and M &gt; 0 so that</p><p>Then, we have inf</p><p>Proof. The proof is an adaptation of the proof of Lemma 35 in <ref type="bibr">[CGZ19]</ref>. Let us take:</p><p>Then, it is clear that q(&#10003; 1 ) is a probability density function on R d . It follows that (E.7) automatically holds for k&#10003; 1 &#10003; &#8676; k &gt; M. Thus, we only need to show that (E.7) holds for k&#10003; 1 &#10003; &#8676; k &#63743; M . Since &#8672; 1 has a continuous density, p(&#10003;, &#10003; 1 ) is continuous in both &#10003; and &#10003; 1 . Fix M , by continuity of p(&#10003;, &#10003; 1 ) in both &#10003; and &#10003; 1 , there exists some &#8984; 0 2 (0, 1) such that uniformly in</p><p>where we can take</p><p>In particular, for any fixed &#8984;, we can take M &gt; 0 such that Z</p><p>and with fixed &#8984; and M , we take R &gt; 0 such that uniformly in</p><p>This completes the proof.</p><p>Next, we construct a Lyapunov function V and obtain a drift condition for the SGD ( &#10003;k ) 1 k=0 .</p><p>Lemma E.3. Assume that Assumption 3.1, Assumption 3.3 and Assumption 3.4 hold. Let V (&#10003;) := 1 + k&#10003; &#10003;&#8676; k 2 , where &#10003;&#8676; is the minimizer of F (&#10003;, Xn ) :=</p><p>and sup x2X kxk &#63743; D for some D &lt; 1. Then, we have</p><p>. (E.17)</p><p>Proof. First, we recall that</p><p>Therefore, starting with &#10003;0 = &#10003;, we have</p><p>This implies that</p><p>Moreover, by following the same arguments as in the proof of Lemma D.2, we have</p><p>Hence, we conclude that</p><p>. This completes the proof.</p><p>Next, we estimate the perturbation gap based on the Lyapunov function V .</p><p>Lemma E.4. Assume that Assumption 3.1 and Assumption 3.4 hold. Assume that sup x2X kxk &#63743; D for some D &lt; 1. Then, we have</p><p>where &#10003;&#8676; is the minimizer of</p><p>) and d is the weighted total variation distance defined in Section B.1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Proof. Let us recall that</head><p>where E &#8672;1 denotes expectations w.r.t. &#8672; 1 only, and we can further compute that</p><p>Similarly, we have</p><p>Since X n and Xn differ by at most one element and sup x2X kxk &#63743; D for some D &lt; 1, we have</p><p>x i = xi for any i 2 &#8998; 1 with probability n b n and x i 6 = xi for exactly one i 2 &#8998; 1 with probability b n . Therefore, we have d</p><p>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>(E.33)</head><p>This completes the proof.</p><p>It is worth noting that the Wasserstein contraction bound we obtained in Lemma E.1 in the non-convex case differs from the one we obtained in the strongly-convex case (Lemma D.1) in the sense that the right hand side of (E.3) is no longer k&#10003; &#10003;k so that Lemma 2.1 is not directly applicable. Instead, in the following, we will provide a modification of Lemma 2.1, which will be used in proving Theorem 3.3 in this paper. The definitions of the notations used in the following lemma can be found in Section 2.2.</p><p>Lemma E.5. Assume that there exist some &#8674; 2 [0, 1) and C 2 (0, 1) such that sup</p><p>for any n 2 N. Further assume that there exist some 2 (0, 1) and L 2 (0, 1) and a measurable Lyapunov function V : R d ! [1, 1) of P such that for any &#10003; 2 R d :</p><p>Then, we have</p><p>where := sup</p><p>Proof. The proof is based on the modification of the proof of Lemma 2.1 (Theorem 3.1 in <ref type="bibr">[RS18]</ref>). By induction we have</p><p>We have</p><p>Moreover, for any i = 0, 1, 2, . . ., Z</p><p>, (E.40) so that we obtain d (p i P, pi P ) &#63743; &#63743;. Therefore, we have</p><p>By the triangle inequality of the Wasserstein distance, we have</p><p>This completes the proof.</p><p>Next, let us provide a technical lemma that upper bounds the norm of &#10003; &#8676; and &#10003;&#8676; , which are the minimizers of F (&#10003;, X n ) := 1 n P n i=1 rf (&#10003;, x i ) and F (&#10003;, Xn ) := 1 n P n i=1 rf (&#10003;, xi ) respectively. Lemma E.6. Under Assumption 3.3, we have</p><p>Similarly, one can show that</p><p>This completes the proof.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E.1 Proof of Theorem 3.3</head><p>Before going to the proof, let us restate the full version of Theorem 3.3 that we provide below.</p><p>Theorem E.1 (Complete Theorem 3.3). Let &#10003; 0 = &#10003;0 = &#10003;. Assume that Assumption 3.1, Assumption 3.3 and Assumption 3.4 hold. We also assume that &#8984; &lt; min</p><p>Let &#9003; k and &#9003;k denote the distributions of &#10003; k and &#10003;k respectively. Then, we have</p><p>where for any &#8984; 0 2 (0, &#8984;) and 0 2</p><p>and d is the weighted total variation distance defined in Section B.1.</p><p>Proof. By applying Lemma E.1, Lemma E.3, Lemma E.4 and Lemma E.5, which is a modification of Lemma 2.1, we obtain</p><p>where for any &#8984; 0 2 (0, &#8984;) and 0 2</p><p>and d is the weighted total variation distance defined in Section B.1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Finally, let us notice that k&#10003;</head><p>. (E.52) By applying Lemma E.6, we complete the proof.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E.2 Proof of Corollary 3.5</head><p>Proof. Under our assumptions, the noise &#8672; k are i.i.d. Gaussian N (0, &#8963;) so that E[k&#8672; 1 k 2 ] = tr(&#8963;) = 2 . Moreoever, we have &#8963; I d . Then p(&#10003; &#8676; , &#10003; 1 ) is the probability density function of</p><p>Since &#8672; &#8672; N (0, &#8963;) and &#8963; I d , for any &#63743; 1 2 , we have</p><p>By Chebychev's inequality, letting = 1 2 , for any</p><p>where E &#8998;1 denotes the expectation w.r.t. &#8998; 1 , and p &#8998;1 denotes the probability density function conditional on &#8998; 1 . For any given &#8998; 1 , we can compute that</p><p>where</p><p>We can further compute that</p><p>and</p><p>Hence, we have</p><p>.</p><p>(E.63)</p><p>Since it holds for every &#8998; 1 , we have</p><p>.</p><p>(E.64)</p><p>Hence, we conclude that</p><p>This completes the proof.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>F Proofs of Non-Convex Case without Additive Noise</head><p>F.1 Proof of Theorem 4.1</p><p>Proof. Let us recall that &#10003; 0 = &#10003;0 = &#10003; and for any k 2 N,</p><p>Thus it follows that</p><p>where</p><p>This implies that</p><p>By Assumption 3.1 and Assumption 3.3, we have</p><p>Since X n and Xn differ by at most one element and sup x2X kxk &#63743; D for some D &lt; 1, we have</p><p>x i = xi for any i 2 &#8998; k with probability n b n and x i 6 = xi for exactly one i 2 &#8998; k with probability b n and therefore</p><p>and moreover,</p><p>where we used the inequality that</p><p>for any a, b 2 R. Therefore, we have</p><p>In Lemma E.3, we showed that under the assumption &#8984; &lt; min</p><p>o and sup x2X kxk &#63743; D for some D &lt; 1, we have that for every k 2 N,</p><p>where V (&#10003;) := 1 + k&#10003; &#10003;&#8676; k 2 , where &#10003;&#8676; is the minimizer of F (&#10003;, Xn ) :=</p><p>where we applied Lemma E.6. Similarly, we can show that</p><p>Since &#10003; 0 = &#10003;0 = &#10003;, it follows from (F.10), (F.13) and (F.14) that</p><p>. This completes the proof.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>G Proofs of Convex Case with Additional Geometric Structure</head><p>In the following technical lemma, we show that the p-th moment of &#10003; k and &#10003;k can be bounded in the following sense.</p><p>Lemma G.1. Let &#10003; 0 = &#10003;0 = &#10003;. Suppose Assumption 4.1 and Assumption 4.2 hold and &#8984; &#63743;</p><p>. Then, we have</p><p>where &#10003;&#8676; is the minimizer of</p><p>Proof. First, we recall that</p><p>This implies that</p><p>We can compute that</p><p>Hence, by applying (G.7) and (G.8) to (G.6), we conclude that</p><p>. This implies that</p><p>and hence</p><p>Similarly, we can show that</p><p>This completes the proof.</p><p>Next, let us provide a technical lemma that upper bounds the norm of &#10003; &#8676; and &#10003;&#8676; , which are the minimizers of F (&#10003;, X n ) := 1 n P n i=1 rf (&#10003;, x i ) and F (&#10003;, Xn ) := 1 n P n i=1 rf (&#10003;, xi ) respectively. Lemma G.2. Under Assumption 4.1, we have</p><p>where p 2 (1, 2), which implies that</p><p>Similarly, one can show that</p><p>This completes the proof. Now, we are able to state the main result for the Wasserstein algorithmic stability.</p><p>Theorem G.1. Let &#10003; 0 = &#10003;0 = &#10003;. Suppose Assumption 4.1 and Assumption 4.2 hold and &#8984; &#63743;</p><p>and x2X kxk &#63743; D for some D &lt; 1 and sup x2X krf (0, x)k &#63743; E for some E &lt; 1. Let &#9003; k and &#9003;k denote the distributions of &#10003; k and &#10003;k respectively. Then, we have</p><p>Proof. Let us recall that &#10003; 0 = &#10003;0 = &#10003; and for any k 2 N,</p><p>Thus it follows that</p><p>where</p><p>This implies that</p><p>By Assumption 4.2 and Assumption 4.1, we have</p><p>Since X n and Xn differ by at most one element and sup x2X kxk &#63743; D for some D &lt; 1, we have </p><p>and moreover,</p><p>Notice that for any x, y 0 and p 2 (1, 2), we have xy p 1 &#63743; x p + y p , y &#63743; y p + 1, x &#63743; x p + 1 and y p 1 &#63743; y p + 1, which implies that (x + y + 1)(2y p 1 + 1) = 2xy p 1 + 2y p + 2y p 1 + x + y + 1 &#63743; 3x p + 7y p + 5. (G.24) Therefore, by applying (G.24) to (G.23), we have</p><p>Hence, by applying (G.21), (G.22), (G.25) into (G.20), we conclude that</p><p>. This, together with &#10003; 0 = &#10003;0 = &#10003;, implies that</p><p>In Lemma G.1, we showed that under the assumption</p><p>, we have</p><p>Hence, by plugging (G.28) and (G.29) into (G.27), we conclude that</p><p>Moreover, k&#10003; &#10003;&#8676; k 2 &#63743; 2k&#10003;k 2 + 2k &#10003;&#8676; k 2 , k&#10003; &#10003; &#8676; k 2 &#63743; 2k&#10003;k 2 + 2k&#10003; &#8676; k 2 and by applying Lemma G.2, we obtain First, let us show that the limit &#10003; 1 , if exists, is unique. Consider two sequences &#10003;  1 which is random yet takes only finitely many values given &#10003;</p><p>(1) 0 so that k 0 is bounded. Therefore, it follows from (G.40) that</p><p>2 , (G.41)</p><p>where &#9003; k denotes the distribution of &#10003; k , which implies that</p><p>Thus, (&#9003; k ) is a Cauchy sequence in P 2 (R d ) equipped with metric W 2 and hence there exists some &#9003; 1 such that W 2 (&#9003; k , &#9003; 1 ) ! 0 as k ! 1.</p><p>Hence, we showed that the sequence &#10003; k is ergodic. Similarly, we can show that the sequence &#10003;k is ergodic.</p><p>Finally, by ergodic theorem and Fatou's lemma, we have</p></div></body>
		</text>
</TEI>
