Manuscript Offprint
arXiv:2611.07334Last-Iterate Convergence of Stochastic Gradient Methods for Unbounded Problems
Abstract
Last-iterate convergence guarantees for stochastic gradient methods have attracted significant attention as practical implementations typically return the last iterate instead of an average of the iterates. In this paper, we study two approaches for analyzing the last-iterate convergence of proximal and projected stochastic gradient methods without bounded domain or bounded variance assumptions, where black-box variational inference serves as a running example. Under two related assumptions relaxing the bounded variance, we show near-optimal anytime rate for the last iterate. Moreover, when the horizon is known, we remove the logarithmic factor and obtain the optimal order , matching the order known under bounded variance or bounded domain assumptions.
Keywords: Stochastic optimization, proximal methods, last-iterate convergence, unbounded problems
1 Introduction
Stochastic gradient descent (SGD) and its variants are widely used in training large-scale machine learning models. In this paper, we study two standard stochastic first-order methods: proximal stochastic gradient descent (proximal SGD) for regularized problems of the form
and projected stochastic gradient descent (projected SGD) for convex constrained optimization problems of the form
Most classical analyses of SGD provide guarantees on the suboptimality of averaged iterates or their weighted combinations (Nemirovski et al., 2009; Lan, 2020). That is, it is common to obtain rates for where . However, practitioners typically use the last iterate as the output, rather than the averaged iterate (Shamir and Zhang,
- Joint last authors.
2013; Jain et al., 2019). For example, in the -regularized least-squares problem
the regularizer promotes sparsity in the solution. However, averaging can destroy this sparsity; hence, guarantees for the last iterate are of interest (Chen et al., 2012, Sec. 1).
A second challenge concerns the assumptions made on the stochastic oracle. Many analyses require strong assumptions such as bounded second moments or bounded variance of the stochastic gradients (Robbins and Monro, 1951; Nemirovski et al., 2009; Lan, 2020). That is, these works assume
Both of these assumptions are widely accepted to be rather restrictive and may not hold over unbounded domains even for simple problems such as (1.3). In the context of (1.3), the stochastic gradient is given by , which grows with and is unbounded.
These observations motivate the central question of this paper: Can SGD (and its proximal and projected variants) attain last-iterate convergence guarantees without assuming uniformly bounded variance of the stochastic gradient oracle?
We answer this question under two complementary conditions: component-wise convexity and smoothness (CW) (Section 5) and the Blum-Gladyshev (B-G) growth condition (Section 3). Under both conditions, we establish an anytime last-iterate convergence rate of and a log-free rate of when the horizon is known. Our analysis under (B-G) accommodates convex objectives that need not be smooth or Lipschitz continuous and yields applications to black-box variational inference. Under (CW), we extend the existing proximal SGD guarantees of Vaidyan et al. (2026) to variable step sizes and improve the convergence rate for horizon-dependent step sizes.
A Brief Discussion on Prior Work. Classical analyses established convergence rates for averaged iterates under bounded domain and bounded second-moment assumptions (Nemirovski et al., 2009). Subsequent works relaxed these assumptions, allowing unbounded domains and growing stochastic gradients (Grimmer, 2019; Khaled et al., 2023). A parallel line of research studied last-iterate convergence, under bounded second-moment or bounded variance assumptions (Shamir and Zhang, 2013; Harvey et al., 2019; Jain et al., 2019; Orabona, 2020; Liu and Zhou, 2024). More recently, several works have obtained last-iterate convergence guarantees under weaker assumptions on the variance (Garrigos et al., 2025; Kim et al., 2025; Attia et al., 2025; Alacaoglu et al., 2025; Vaidyan et al., 2026). More detailed comparisons appear in the respective sections in the sequel.
Component-Wise Convexity and Smoothness. The first approach to weaken (1.4) is to assume component-wise convexity and smoothness of the objective (Garrigos et al., 2025; Attia et al., 2025). In this setting, the objective decomposes as
(1.5) for some unknown distribution , from which we get i.i.d. samples. In particular, we assume that
each component function is convex and -smooth.
(CW)
The most standard setting where this assumption holds is the least squares problem with a regularizer; see (1.3), where each component is convex and -smooth. Garrigos et al. (2025) and Attia et al. (2025) used this assumption along with the powerful technique introduced by Zamani and Glineur (2025) to obtain last-iterate guarantees for (1.1) with . A classical consequence of the component-wise convexity and smoothness assumption is the bound
where is a minimizer of . This bound is a special case of the so-called ABC assumption (Polyak and Tsypkin, 1973; Khaled and Richtárik, 2023; Khaled et al., 2023).
Using this property, Garrigos et al. (2025) and Attia et al. (2025) show that the last iterate of SGD converges at a rate of . The analysis developed in these works is restricted to horizon-dependent step sizes and does not handle regularized problems such as (1.1) where the proximal method is needed. The work by Vaidyan et al. (2026) handles the proximal setting but is still restricted to horizon-dependent step sizes and suffers from a logarithmic factor in the rate, as do earlier works in this line.
Blum-Gladyshev Variance. The second approach to weaken (1.4) is the Blum-Gladyshev (BG) condition (Blum, 1954; Gladyshev, 1965) given as
(B-G)
where is the initial iterate of the algorithm. Note that this assumption is also sometimes presented with a solution instead of on the right-hand side; the two forms are interchangeable (see Fact 1).
Unlike (CW), the Blum-Gladyshev condition (B-G) does not require the individual stochastic functions to be smooth, Lipschitz continuous, or convex. We provide more concrete examples to illustrate this point in Section 4.
Moreover, the BG condition is strictly weaker than the ABC assumption. It was shown, for example, by Alacaoglu et al. (2025), that (1.6) (which itself is implied by CW) implies (B-G), when is -smooth, by straightforward estimations.
However, the converse need not be true. Alacaoglu et al. (2025, Example 1.1) show that, for a simple quadratic example over an unbounded domain with a standard stochastic oracle, (B-G) is satisfied, but (1.6) (and, consequently, CW) fails to hold. This establishes that (B-G) is a weaker condition than (CW) even for smooth problems.
Additionally, without the expectation, the (B-G) assumption also describes a class of functions that are neither smooth nor Lipschitz. For this class, we obtain last-iterate rates for the classical subgradient method (see Remark 3.7), which are new to the best of our knowledge. Existing results for this class either give rates on the ergodic average (Lu, 2019; Grimmer, 2019; Li et al., 2025) or rely on transformations of the original problem to design specialized algorithms that depart from the simple subgradient method (Renegar, 2016; Grimmer, 2018).
Application: Black-Box Variational Inference. Interestingly, the (B-G) assumption has recently been shown to be relevant for black-box variational inference (BBVI) (Kim et al., 2025; Labarrière et al., 2026; Domke et al., 2023). Variational inference is a classical technique in statistics and machine learning, widely used in applications including healthcare (Ranganath et al., 2016; Lopez et al., 2018). Its goal is to approximate a potentially intractable posterior distribution by a distribution from a simpler family, such as Gaussians, by minimizing the Kullback–Leibler divergence between the two.
When the target distribution is complex, closed-form updates for variational inference are often unavailable. However, accessing stochastic gradients is still feasible, making stochastic optimization-based approaches, such as BBVI (Ranganath et al., 2014), popular for this task. In BBVI, the second moment of the standard gradient estimator is not uniformly bounded, so (1.4) does not hold. However, under smoothness assumptions on the log-posterior, it satisfies the (B-G) condition (Domke et al., 2023). See Section 4.2 for technical details relevant to our exposition.
Comparison of the Two Approaches. The assumptions (B-G) and (CW) are complementary. As discussed earlier, the (B-G) assumption is weaker and covers a broader class of problems not handled by (CW). However, under (CW), the standard step size attains the optimal rate up to a logarithmic factor, which our analysis under (B-G) does not support; see Remark 5.6. Hence, there is a trade-off between the two assumptions: (B-G) is weaker but yields suboptimal order in the rate with the standard step size of , while (CW) is stronger but yields the optimal order in a wider variety of settings. See also Table 1.
-
Black-box variational inference. Using the gradient bounds of Domke et al. (2023), our results give anytime last-iterate guarantees for proximal and projected SGD for BBVI (Section 4.2). Existing guarantees hold for weighted averages of the iterates with horizon-dependent step sizes. Our results answer an open question by Kim et al. (2025, Section 2.4) regarding anytime guarantees of SGD for BBVI without strong convexity.
-
Variable step sizes under (CW). We extend the proximal SGD analysis of Vaidyan et al. (2026), which is restricted to constant horizon-dependent step sizes, to handle non-increasing variable step sizes. We establish an anytime convergence rate of and a log-free rate of when the horizon is known (see Theorem 5.4 for more details). Projected SGD follows as a special case. These results
answer an open question posed by (Garrigos et al., 2025, Remark 3.6, Section 5), in the unconstrained case.
| Property | (CW) Assumption | (B-G) Assumption |
|---|---|---|
| Allows nonconvex | ✗ | ✓ |
| Allows nonsmooth | ✗ | ✓ |
| Control mechanism | ABC-type inequality (1.6) | Iterates bounded in expectation |
| Step size regimes |
Table 1: Comparison of the assumptions considered in this paper.
Analysis Roadmap. We analyze SGD-based methods under both (B-G) and (CW). In both cases, the analysis unfolds in two steps:
-
We first establish a control on the second moment of the stochastic gradients along the trajectory of the algorithm, that is, on the quantity . Under (CW), this control is obtained through the ABC condition in (1.6). Under (B-G), we show that as long as the sum of the squared step sizes does not grow too quickly, the iterates of SGD remain bounded in expectation, which implies that the second moment of the stochastic gradients is bounded along the trajectory of the algorithm.
-
With this control in place, we adapt the reference point argument of Zamani and Glineur (2025) and its generalization in Liu and Zhou (2024): we prove a one-step progress bound against an arbitrary reference point, then choose these points as convex combinations of the minimizer and past iterates so that summing the bounds gets us the last-iterate guarantee.
Relation to Vaidyan et al. (2026). This paper extends our conference paper (Vaidyan et al., 2026), which analyzed proximal SGD under (CW) with a constant, horizon-dependent step size and obtained an last-iterate rate. The present paper differs from it in three ways (see also Table 2).
-
The analysis under (B-G) in Section 3 is new. It controls the second moment of the stochastic gradients through boundedness of the iterates in expectation, rather than through the ABC-type inequality (1.6) used in Vaidyan et al. (2026). As a result, it applies to proximal SGD on convex objectives that need not be smooth or Lipschitz.
-
The applications in Section 4 are new. We show that (B-G) covers problems outside the scope of (CW), such as minimizing the maximum of convex quadratics (Section 4.1), and we use it to obtain last-iterate guarantees for SGD in black-box variational inference (Section 4.2). This application was not covered in Vaidyan et al. (2026), because the (CW) assumption does not hold for BBVI.
| Reference | Constrained / Regularized | Assumptions | Anytime rate | Horizon-dependent rate |
|---|---|---|---|---|
| Shamir and Zhang (2013) | ✓ | Bdd gradients/domain | - | |
| Jain et al. (2019) | ✓ | Bdd gradients/domain | - | |
| Liu and Zhou (2024) | ✓ | Bdd variance | ||
| Garrigos et al. (2025); Attia et al. (2025) | ✕ | (CW) | - | |
| Vaidyan et al. (2026) | ✓ | (CW) | - | |
| This work | ✓ | (B-G) | ||
| This work | ✓ | (CW) |
Table 2: Comparison with existing last-iterate convergence results for SGD variants.
- In Section 5 we return to the (CW) setting of Vaidyan et al. (2026) and extend its analysis from constant to non-increasing variable step sizes. The key technical step, Lemma 3.4, generalizes the reference-point construction of Vaidyan et al. (2026, Lemma A.6); this gives an anytime rate with , and a log-free rate when the horizon is known (Theorem 5.4). This improves on the guarantee in Vaidyan et al. (2026, Theorem 3.1), which required constant step sizes and included a log term.
2 Problem Setup and Assumptions
In this section, we introduce the two stochastic first-order methods studied in the paper and fix the notation used throughout. Given iterates , let denote the -algebra generated by , and write for the conditional expectation with respect to . We use for the Euclidean inner product and for the Euclidean norm. We use to denote the subdifferential of a convex function at .
Proximal Stochastic Gradient Descent. For the additively composite problem given in (1.1), we assume that is convex, but not necessarily smooth, and is proper, convex and closed. We denote as an optimal solution and . The proximal operator of is defined by
Given , the proximal SGD update is given for as
(proxSGD) where denotes an unbiased stochastic subgradient of satisfying
Projected Stochastic Gradient Descent. The constrained problem (1.2) is the special case of (1.1) with , where is the indicator function of a nonempty, closed and convex set , defined as if and otherwise. In this case, is the Euclidean projection onto , so (proxSGD) reduces to projected SGD, and all of our results for proximal SGD apply to it.
Assumptions. We now state the standard assumptions under which we analyze proximal SGD.
Assumption 1 The problem (1.1) satisfies the following:
-
The solution set of (1.1) is nonempty.
-
The function is proper, closed and convex.
-
The function is convex.
-
The oracle is unbiased: for all .
Note that Assumption 1 does not require to be differentiable. For projected SGD, that is, with , the second item amounts to being nonempty, closed and convex. Assumption 1 is standard in the literature on projected SGD (Nemirovski et al., 2009; Shamir and Zhang, 2013; Grimmer, 2019) and proximal SGD (Khaled et al., 2023; Rosasco et al., 2020; Vaidyan et al., 2026). For the stochastic oracle, we consider the two models discussed in Section 1.
Assumption 2 The stochastic oracle satisfies one of the following:
(a) There exist such that (B-G) holds for all . That is, along the iterates, it holds that
(b) The following hold:
(i) The function decomposes as (1.5), where every satisfies (CW).
(ii) The oracle is , where is sampled independently of .
(iii) for some solution .
In the subsequent sections, we will be combining Assumption 1 with an assumption on the oracle (Assumption 2(a) or Assumption 2(b)) to analyze the convergence of proximal SGD. Under Assumption 2(b), is -smooth since every is -smooth, and .
3 Convergence Analysis under B-G
We now proceed to analyze the last-iterate convergence of proximal SGD under the BG condition (B-G). Because of its applicability to BBVI, SGD under this assumption has been studied in several recent works (Domke et al., 2023; Labarrière et al., 2026; Kim et al., 2025). The analyses in these works set up the recursion
where is fixed. In this recursion, the terms involving do not telescope due to the additional factor. These works then handle this issue by weighting the inequalities with which then leads to a telescoping sum on the right-hand side and yields a guarantee for the weighted average of the iterates. However, this approach does not accommodate variable step sizes, and it gives neither anytime nor last-iterate guarantees, both of which our analysis provides.
Li et al. (2025) studied the subgradient method without assuming Lipschitz continuity, using a strategy similar to our analysis roadmap. This work used normalized step sizes with and , which allows bounding the iterates and, consequently, the subgradient norms along the trajectory. With this bound in place, the standard analysis for bounded subgradients applies. Unlike our analysis, this approach requires the step size to depend on the norm of the sampled subgradient, which does not extend directly to stochastic oracles. As a result, this work analyzed the stochastic subgradient method only under the interpolation condition. In addition, this work derived rates for the average of the iterates, whereas our focus is on last-iterate rates.
Throughout this section, we require Assumptions 1 and 2(a). We follow the two-step strategy outlined in the analysis roadmap in Section 1. For the analysis, it is convenient to recenter the BG condition (B-G) at a solution . We apply Fact 1 with and to obtain
In order to establish boundedness of the iterates and the second moment of the stochastic subgradients, we first need the following lemma which analyzes one step of the algorithm.
Lemma 3.1 Let Assumption 1 hold. For all , any -measurable , and any , we have
The proof of Lemma 3.1 is given in Appendix C.1. We now use the above lemma to establish the expected boundedness of the iterates and the second moment of the stochastic gradients along the trajectory of the algorithm.
Proposition 3.2 (Expected boundedness) Let Assumptions 1 and 2(a) hold, and set . If for all , the iterates satisfy
(3.3) where , then, we have
See Appendix A.1 for the proof of Proposition 3.2. We emphasize that, with an appropriate choice of step size, the factor is bounded by an absolute constant that grows with neither nor . To see this, consider the step sizes in Theorem 3.5(i)-(ii), where the quantity stays bounded by a constant multiple of (Lemmas C.2 and C.3(i)). Since is chosen proportional to , the in the exponent cancels, so is bounded by an absolute constant.
For the third step size choice, that is, , the quantity grows logarithmically (Lemma C.1(i)), so this exponential factor grows polynomially in , which leads to the suboptimal order in Theorem 3.5(iii).
Applying Lemma 3.1 with and , which lies in by Assumption 1, and dropping the nonnegative left-hand side shows that (proxSGD) satisfies (3.3). As a result, if , Proposition 3.2 applies, giving us the estimate for all .
Thus, we have established control over the second moment, which is the first ingredient in the analysis roadmap. We now proceed to the second step in our roadmap. We obtain a one-step progress bound for proximal SGD under the BG noise model.
Lemma 3.3 (One-step of proximal SGD under (B-G)) Under Assumptions 1 and 2(a), set . Then for all and every -measurable , (proxSGD) satisfies
where is defined in Proposition 3.2.
The proof of Lemma 3.3 is given in Appendix A.2.
To convert this one-step bound into a last-iterate convergence rate, we use the reference-point technique of Zamani and Glineur (2025). Specifically, we take each to be a convex combination of and the past iterates, with weights chosen so that, after summing the one-step bounds, every objective gap except the last one cancels. We can apply this due to our two-step analysis: in the first step (see Proposition 3.2), we established the bound on the second moment of the stochastic subgradients observed by the algorithm. Hence, we have reduced our setting to one similar to the bounded subgradient settings of earlier work, by restricting to the trajectory of the algorithm. Lemma 3.4 extends this technique to the proximal setting, building on the analysis of Liu and Zhou (2024), which assumes bounded variance.
We state Lemma 3.4 in a more general form than we need in this section. By Lemma 3.3, its hypothesis holds with under (B-G). Under (CW) in Section 5, however, the one-step inequality contains the extra term , which we handle by choosing the weights of the convex combinations more carefully. This generalizes Vaidyan et al. (2026, Lemma A.6) from constant step sizes and constant to non-increasing step sizes and time-varying .
Lemma 3.4 (Proximal last-iterate reduction) Let Assumption 1 hold with positive non-increasing , and define . Suppose there exist and such that for all and every -measurable , we have
Then, it holds that
The proof of Lemma 3.4 is given in Appendix C.3.
As just discussed, the hypothesis of Lemma 3.4 holds with due to Lemma 3.3, so the result of Lemma 3.4 applies. We next instantiate this result with three standard step size choices.
Theorem 3.5 (Proximal SGD under (B-G)) Let Assumptions 1 and 2(a) hold. Then the following guarantees hold for the last iterate of (proxSGD):
(i) (Step size for log-free rate) If with , then for any , we have
(ii) (Anytime step size I) If with , then for any , we have
(iii) (Anytime step size II) If with , then for any , we have
The proof of Theorem 3.5 is given in Appendix A.3. The bounds with explicit constants for (i) and (ii) are given in (A.10) and (A.11), respectively.
Remark 3.6 The result of Theorem 3.5 extends trivially to projected SGD for solving a constrained problem, under (B-G), by setting .
Remark 3.7 Specializing Remark 3.6 to the deterministic oracle gives the (projected) subgradient method. In this case, (B-G) reduces to
and Theorem 3.5 gives the same rates without expectations. This yields last-iterate guarantees for convex functions that are not necessarily smooth or Lipschitz; an example is given in Section 4.1.
Rates. We now discuss the rates in Theorem 3.5. The horizon-dependent step size in (i) gives the rate with no logarithmic factors, which is the optimal order in , but it requires knowing in advance. The step size in (ii) does not depend on , but this comes at the cost of an additional factor. The standard step size in (iii) is also independent of , but it is not square summable. As discussed after Proposition 3.2, the exponential factor therein grows as with this step size, which gives the slower rate. The condition ensures , so this upper bound still goes to zero. Taking smaller brings the exponent closer to , but increases the first term in the bound.
Comparison with prior work. Our results extend the works of Garrigos et al. (2025) and Vaidyan et al. (2026), who required (CW), which is stronger than our assumption in this section, and were limited to horizon-dependent step sizes. The other relevant work by Liu and Zhou (2024) handles variable step sizes but requires bounded variance and smoothness. Finally, Theorem 3.5 (i), which uses the step size scheme of Liu and Zhou (2024), removes the extra log factors that appear in the rates of Garrigos et al. (2025) and Vaidyan et al. (2026). This answers an open question posed by (Garrigos et al., 2025, Remark 3.6, Section 5).
4 Applications of the B-G Assumption
In this section, we present examples to argue that the BG condition (B-G) applies to a broader class of problems than the component-wise convexity and smoothness (CW).
4.1 Minimizing the Maximum of Quadratics
Consider the following nonsmooth problem given as
where each is convex, differentiable and satisfies the BG condition (B-G). That is, for all , we assume
A concrete instance of this problem is the maximum of finitely many convex quadratics (Lu, 2019, Section 5.3):
where is positive semi-definite. In this case, , so each satisfies the BG condition since
Notice that this problem is generally nonsmooth and not globally Lipschitz. Hence, most existing results for subgradient-based algorithms in the literature, such as the works of Harvey et al. (2019); Jain et al. (2019); Zamani and Glineur (2025), do not apply. Lu
(2019) solves this problem in the deterministic setting using mirror descent with a problem-specific generating function so that the resulting Bregman divergence controls the growth of the subgradients. This approach yields an convergence rate for the averaged iterate. In contrast, our analysis under (B-G) applies to the classical subgradient method, with no modification across different problems. Additionally, our analysis yields last-iterate guarantees, which Lu (2019) does not provide.
The subdifferential of is the convex hull of active gradients where is in the set of active indices . An unbiased stochastic subgradient in this case can be obtained by sampling uniformly from the set of active indices and taking as the stochastic subgradient since
Additionally, notice that satisfies the BG condition since
where we used (4.1). This example shows that the BG condition can handle nonsmooth and non-Lipschitz objectives arising from pointwise maxima. In particular, it provides a setting in which last-iterate guarantees for the classical stochastic subgradient method can be obtained through our BG framework, while (CW) does not apply. In fact, we are not aware of a last-iterate rate even for the deterministic subgradient method for this problem.
4.2 Black-Box Variational Inference
In this section, we highlight another application of our results for black-box variational inference. Variational inference is a powerful technique for approximating an intractable posterior distribution, , by using a tractable distribution from a given family. Throughout this section, we follow the setting of Domke et al. (2023) and refer to this work for a more detailed discussion of the variational formulation and Gaussian parameterizations.
Let denote the observed data and the latent variables, and let be their joint density. The goal is to approximate the posterior by a member of the Gaussian variational family
where is the mean and is the covariance. This is done by minimizing the negative evidence lower bound (ELBO)
where we introduce the functions and next.
By using the reparameterization of as with , the energy term is given by
(4.3) and is the negative entropy term given by
Our goal is to minimize over the parameters of the variational family. We assume that
is convex and -smooth and that the variational problem admits a solution . Under these assumptions, is convex and -smooth (see Domke et al. (2023, Lemmas 18 and 19)).
As in Domke et al. (2023, Section 3.1), we will apply proximal SGD to minimize (4.2) over a domain we introduce next. In particular, we restrict defining the family to be lower triangular with a positive diagonal, which gives us the optimization domain
where is the set of lower-triangular matrices. Then, the optimization problem becomes
In this case, the unbiased estimator of the energy term is given by
and hence . By Domke et al. (2023, Theorem 2), we have that
for uniform constants , , and any in the solution set.
For , Domke (2020, Theorem 13) (see also Domke et al., 2023, Lemma 35) shows that the proximal operator for (needed to fit the problem to our composite template) is computed as
Remark 4.1 Applying Fact 1 to (4.4) with and shows that satisfies (B-G). Hence, Theorem 3.5 applies, giving an anytime last-iterate rate of for proximal SGD. Unlike Domke et al. (2023); Kim et al. (2025), we do not require strong convexity to get an anytime rate. When the horizon is known, the rate follows from Theorem 3.5.
Remark 4.2 Our results also cover the constrained formulation of the BBVI problem, which was described in Domke et al. (2023, Section 3.2). In this setting, the stochastic gradient satisfies (B-G) (Domke et al., 2023, Theorem 3), so Remark 3.6 gives the same last-iterate rates for projected SGD.
The key difference between the guarantees provided by Remark 4.1 and Remark 4.2, and those of Domke et al. (2023) is that our results provide last-iterate convergence guarantees in the convex setting, whereas Domke et al. (2023) establish convergence guarantees for weighted averages of the iterates. In addition, our results provide anytime last-iterate guarantees using the step size scheme , whereas the parameters in Domke et al. (2023) depend on a fixed horizon . As stated in Kim et al. (2025, Section 2.4), it was an open question to derive anytime bounds for this setting, which our results in Theorem 3.5 and Remark 3.6 address.
5 Convergence Analysis under CW
In this section, we analyze the last-iterate convergence of projected and proximal SGD under the assumptions of component-wise convexity and smoothness in (CW). Last-iterate guarantees in this setting were first obtained for SGD by Garrigos et al. (2025) and Attia et al. (2025). This analysis was then extended to proximal SGD by Vaidyan et al. (2026). All of these analyses use the variance transfer bound (1.6) with a reference point in the style of Zamani and Glineur (2025). This gives the one-step inequality
In these works, is fixed. Compared with the bounded second moment case (Liu and Zhou, 2024, Eq. 6), there is an extra term with on the right-hand side, and the weighted sum used by Zamani and Glineur (2025) no longer cancels exactly. Vaidyan et al. (2026) handle the extra term with a constant step size . In this case, does not depend on , and the weights of the convex combinations defining can be adjusted to absorb (see Vaidyan et al., 2026, Lemma A.6). However, the argument relies on both the step size and being constant. It therefore does not cover horizon-free decreasing step sizes such as , which give anytime guarantees. It also does not cover the time-varying schedule of Liu and Zhou (2024), which removes the logarithmic factor in the bounded variance setting.
Throughout this section, we require Assumptions 1 and 2(b). As in Section 3, we follow the same roadmap, beginning with an inequality that controls the second moment of the stochastic gradients; see Khaled et al. (2023, Lemma A.3).
Lemma 5.1 (Variance transfer) Let Assumptions 1 and 2(b) hold. Then for every and , we have
Since every is -smooth under Assumption 2(b), it follows that is -smooth. This allows us to use the following classical one-step inequality for proximal SGD.
Lemma 5.2 Let Assumptions 1 and 2(b) hold, and set . For all and any -measurable , we have
The proof of Lemma 5.2 is given in Appendix C.2. We now analyze one step of proximal SGD under (CW).
Lemma 5.3 (One-step of proximal SGD under (CW)) Let Assumptions 1 and 2(b) hold, and set for all . Then for all and every -measurable , (proxSGD) satisfies
where and .
The proof of Lemma 5.3 is given in Appendix B.1. Using the above lemma with the proximal reduction in Lemma 3.4, we can obtain last-iterate guarantees for proximal SGD with decreasing step sizes.
Theorem 5.4 (Proximal SGD under (CW)) Let Assumptions 1 and 2(b) hold, and set . Then the following guarantees hold for the last iterate of (proxSGD):
(i) (Step size for log-free rate) If , then for any , we have
(ii) (Anytime step size) If , then for any , we have
The proof of Theorem 5.4 is given in Appendix B.2. The bounds with explicit constants for (i) and (ii) are given in (B.2) and (B.3), respectively.
Remark 5.5 The result of Theorem 5.4 extends trivially to projected SGD for solving a constrained problem, under (CW), by setting .
Rates. The horizon-dependent step size in Theorem 5.4(i) gives the rate with no logarithmic factors, which is the optimal order in , but it requires knowing in advance. The standard step size in (ii) does not depend on , but this incurs an additional cost of a factor, which multiplies the noise term .
Comparison with prior work. We extended the work of Vaidyan et al. (2026) by generalizing its analysis to a decreasing step size scheme that is not horizon-dependent. Additionally, the step size in Theorem 5.4(i), which follows Liu and Zhou (2024), removes the logarithmic factor, answering a question posed by Garrigos et al. (2025). This is a strict improvement over the results in Vaidyan et al. (2026), which require a horizon-dependent step size scheme and obtain a rate of .
Remark 5.6 While the BG condition (B-G) is the weaker assumption, this generality comes at the cost of step size flexibility. Under the BG condition, the standard anytime step size only yields a suboptimal rate (see Theorem 3.5(iii)), while under component-wise convexity and smoothness (CW) the same step size attains the optimal order up to a logarithmic factor (see Theorem 5.4(ii)).
6 Conclusion and Perspectives
In this paper, we studied last-iterate convergence rates of projected and proximal SGD under assumptions weaker than the classical uniformly bounded second moment condition (1.4). We considered two different mechanisms for controlling the stochastic oracle. The first is based on the Blum-Gladyshev condition (B-G), which controls the stochastic gradients through the distance to the initial iterate. The second is based on component-wise convexity and smoothness (CW), which leads to ABC-type bounds (1.6) on the second moment of the stochastic gradients. Our work opens up several directions for future research. For example, under the BG condition, our guarantee for the standard anytime step size is suboptimal. It would be interesting to investigate whether this can be improved. Another direction is expanding our analysis to handle Bregman distances and establishing high probability guarantees on the last iterate.
AI Disclosure Statement
After completing the proofs and the writing of the paper, GPT 6.0 (OpenAI) and Claude Opus 5.5 (Anthropic) were used for various copyediting tasks and for checking the proofs in this manuscript. For proof-checking, these tools were used to review derivations for errors such as incorrect indices, missing steps, or inconsistent constants. All suggested changes were reviewed and verified by the authors.
Our analysis of proximal SGD under (B-G) initially required to be smooth, and we had a separate section for projected SGD under (B-G) where was not necessarily smooth. When investigating whether smoothness could be removed for proximal SGD, we used these tools to explore whether such an extension was feasible, and their output suggested that it was. We then derived and wrote the proof of the nonsmooth result for proximal SGD, which allowed us to merge the separate sections for proximal and projected SGD. These tools were also used to assist in deriving the step size bounds in Lemma C.3. The resulting bounds and their proofs were verified by us.
Acknowledgments
We acknowledge the support of the Natural Sciences and Engineering Research Council of Canada (NSERC), funding reference numbers RGPIN-2023-05250 (Friedlander) and RGPIN-2025-06634 (Alacaoglu).
Appendix A. Proofs for Section 3
In this section, we provide the proofs of the various results in Section 3. We start by establishing the boundedness of the iterates under (B-G), which is a key step in our analysis.
A.1 Proof of Proposition 3.2
Proof We start from the hypothesis (3.3) which states that
Using Young's inequality on the last term, we have
We bound the second term on the right-hand side of (A.2) using the BG condition after recentering (3.2), which gives . For the first term on the right-hand side of (A.2), we use Jensen's inequality and (3.2) at to obtain
Plugging the above bounds into (A.2), then back into (A.1) and taking total expectation, we get
Rearranging and simplifying yields
where the second line used and where because . Unrolling the recursion above, we get the bound
Now we bound the product on the right-hand side of this bound as
where we used and . Substituting this back into (A.3), we get
This is the first assertion. The second assertion follows immediately by plugging the bound on the iterates from (A.4) into the BG condition (3.2).
We next prove a one-step progress bound for proximal SGD under (B-G).
- Strictly speaking, we used here that is finite, which can be shown by induction.
A.2 Proof of Lemma 3.3
Proof We apply Lemma 3.1 with to obtain
As in the proof of Proposition 3.2, we use Young's inequality and Jensen's inequality to bound the last term as
By Proposition 3.2, we have that , since is non-decreasing, and also that . Hence, the right-hand side is bounded by . Substituting this bound to (A.5) and dividing by gives us the desired result.
We proceed to obtain the last-iterate convergence rate of proximal SGD under (B-G) with various step size schemes.
A.3 Proof of Theorem 3.5
Proof In all three step size schemes, is positive and non-increasing, and . In particular, for (i), we have ; for (ii), we have since ; and for (iii), we have . Hence, we can apply Lemma 3.3 to get
where and are defined in Proposition 3.2. Since is non-decreasing, we have that , and hence, . With this, we can upper bound the last term in (A.6) by . We can now apply Lemma 3.4 with and to obtain
For the first two step size schemes, the corresponding bounds from Lemmas C.2 and C.3, respectively, give
| Step size | |||
|---|---|---|---|
| (i) | |||
| (ii) | . |
(A.8)
Since in (i) and in (ii), the bounds on in (A.8) give for both cases. Using this bound in the definition of (in Prop. 3.2) and then expanding the definition of from (3.2), we get
Substituting the bounds from (A.8) and (A.9) into (A.7), we obtain
In both cases, . Substituting this and the definition of in (A.9) into (A.10) and (A.11), and suppressing constants, yields the first two claims of the theorem.
For the final step size scheme, Lemma C.1 gives us the bounds
Substituting the above bounds into (A.7), we get
Using the bound on , we estimate (see Prop. 3.2 for its definition) as follows:
Substituting the bound on into (A.12) and suppressing constants give
In particular, for , we have , and hence as . This concludes the proof of the theorem.
Appendix B. Proofs for Section 5
In this section, we provide the proofs of the various results in Section 5. We start by establishing a one-step progress bound for proximal SGD under (CW).
B.1 Proof of Lemma 5.3
Proof We start from the result of Lemma 5.2 using to obtain,
Dividing throughout by and using (5.1) with , we get
Rearranging terms, we obtain the desired result.
We now proceed to show the last-iterate convergence rate of proximal SGD under (CW) with various step size schemes.
B.2 Proof of Theorem 5.4
Proof From Lemma 5.3, we have for all and ,
where and . Since for both step size schemes and , we have . Hence, Lemma 3.4 gives
We first bound the exponential term, by the definition , as
From Lemmas C.1 and C.2, we obtain the following bounds for the two step size schemes:
| Step size | |||
|---|---|---|---|
| (i) | |||
| (ii) |
where we bounded the last column using and the corresponding estimates for from the third column. Substituting these bounds into (B.1), and additionally using
for (ii), we obtain
Substituting into (B.2) and (B.3), and suppressing constants, yield the claims of the theorem.
Appendix C. Technical Lemmas for Proximal SGD
We provide the proofs of the technical lemmas used in our analysis. We first restate a classical consequence of the definition of the proximal operator that we use often. Its proof follows from the definition of and the convexity of (see, e.g., Beck, 2017, Theorem 6.39). For , it holds that
To bound the iterates and the second moment of the stochastic subgradients, we start from the following one-step inequality for (proxSGD).
C.1 Proof of Lemma 3.1
Proof Using the identity , we have
Consider the last term in the above identity. We use the prox-inequality (C.1) with and to obtain
Substituting this into (C.2) gives
We can rewrite the last term as
Plugging this back to (C.3) and taking conditional expectation with respect to , we have
where by Assumption 1, and we used that and are -measurable. We estimate using the convexity of . Adding and subtracting and rearranging terms give us
(C.5)
We now estimate the last two terms in the above inequality. Let . By convexity, we have . Using this to bound the second line in (C.5) gives
We estimate the right-hand side using Young's inequality as
We combine (C.6) and (C.7) (after taking conditional expectation) in (C.5) and group the terms involving to obtain
Taking total expectation gives us the assertion.
We next prove the analogue of Lemma 3.1 under smoothness.
C.2 Proof of Lemma 5.2
Proof Using the identity , we have
Consider the last term in the above identity. We use the prox-inequality (C.1) with and to obtain
Substituting this into (C.8) gives
We can rewrite the last term as
(C.10)
We estimate the second term in (C.10) using Young's inequality as
For the last term in (C.10), we can use the smoothness of f to derive
We plug the last two estimates into (C.10), which we then insert into (C.9) and rearrange to obtain
Since , we have . Plugging in this estimate, and taking conditional expectation with respect to , we obtain,
Using , the convexity of , and , we obtain
Taking total expectation and rearranging gives the desired result.
We next prove the last-iterate reduction for proximal SGD, which converts the one-step bound into a bound on the last iterate.
C.3 Proof of Lemma 3.4
Proof Let us define and for . Since and , we have . As a result, we have that the sequence is non-decreasing. Let and
Unrolling the definition of shows that it is a convex combination of , since the coefficients below are nonnegative and sum to 1:
Hence is -measurable, so the hypothesis of this lemma applies with this . Multiplying both sides of the hypothesis by gives
The definition of also gives
Using this and , we estimate the first term on the right-hand side of (C.12) as
Substituting this estimate into (C.12) and dividing by 2, we get
Summing from to gives
where we dropped the negative term on the right-hand side and used the fact and . We now lower bound . By the convexity of applied to (C.11), we have
and consequently
Now consider the second term inside the expectation. We rewrite it as follows:
where we used the fact . Substituting this back into (C.14) and simplifying gives
We next proceed to show that this lower bound gives us an expression for the last iterate. We define
Then (C.15) becomes
Consider the first term on the right-hand side of (C.16). We can rewrite it as
The second term on the right-hand side of (C.16) can be rewritten as
where we used the fact that . And finally, for the last term on the right hand side of (C.16), we swap the order of summation and use the definition of to get
where we used the fact that so the first term () in the sum is zero.
Combining the last three display equations in (C.16) and grouping terms involving gives
From the definition of and , we have
Using this in (C.17), and plugging the result to (C.13), we obtain the following inequality after moving to the right-hand side and dividing by :
To estimate the factor, , let
By the definition of in the statement of the lemma, we have that . Using this and the definition of (along with ) give
We next estimate the second term inside the parenthesis in (C.18) similarly:
Plugging these estimates into (C.18), we get
Now using the fact that for all , we can estimate as follows:
Substituting this back into (C.20) yields the assertion.
C.4 Technical Lemmas for Bounding the Step Size Terms
In this section, we prove various bounds related to the step sizes. Throughout this section, we define .
Lemma C.1 Let us set for some . Then, for any , we have
Proof Assertion (i) follows trivially by summing the harmonic series. Next, by the definition of in the statement of Lemma 3.4, we have
which gives (ii) after setting .
We now estimate (iii) by using the lower bound for , just derived, and the definition of as
since
Now, on (C.21), we use
to obtain
Finally, assertion (iv) follows from a similar estimation. Since
we repeat the same argument as in the proof of the third assertion by replacing with to get
The claim then follows by .
Lemma C.2 Let us set for some . Then, for any , we have
\begin{align*}(i)\sum_{t=0}^{T}\tau_{t}^{2}&\leq\tau^{2},\quad&(ii)S_{0}&\geq\frac{\tau\sqrt{T+1}}{2},\ $ iii)\sum_{t=0}^{T}\frac{\tau_{t}^{2}}{S_{t}}&\leq\frac{2\tau}{\sqrt{T+1}},\quad&(iv)\sum_{t=0}^{T-1}\frac{\tau_{t}^{2}}{S_{t+1}}&\leq\frac{4\tau}{\sqrt{T+1}}.\end{align*}Proof By the definition of , we have
We estimate the sum as
Plugging this into (C.22) and using gives assertion (i).
For assertion (ii), we estimate (defined in the statement of Lemma 3.4) as
where we used . The lower bound for follows by plugging in in the above bound and using a basic estimate.
For assertion (iii), the definition of and (C.23) give
where the last step is because the summands are upper bounded by 1. This is the third estimate.
For assertion (iv), the definition of and (C.23) give
since for .
Lemma C.3 Let for some . Then, for any , we have
\begin{align*}(i)\sum_{t=0}^{T}\tau_{t}^{2}&\leq3\tau^{2},\quad&(ii)S_{0}\geq\frac{\tau\sqrt{T+1}}{\sqrt{2}\ln(T+2)},\ $ iii)\sum_{t=0}^{T}\frac{\tau_{t}^{2}}{S_{t}}&\leq\frac{6\sqrt{2}\tau\ln(T+2)+33\tau}{\sqrt{T+1}},\quad&(iv)\sum_{t=0}^{T-1}\frac{\tau_{t}^{2}}{S_{t+1}}\leq\frac{6\sqrt{2}\tau\ln(T+2)+32\tau}{\sqrt{T+1}}.\end{align*}Proof Assertion (i) follows from a standard estimation. Now, we estimate (defined in the statement of Lemma 3.4) as
Assertion (ii) follows by plugging in and using the fact that .
We next prove assertion (iv). In order to control , we will split the sum into two parts: and . Let . For the first half, the denominator can be bounded from below by . In the second half, the numerator can be bounded by . We will use these facts to bound the two parts separately.
For the first part, we have
where we used the fact that is decreasing in . Now, we estimate by lower bounding as
where we used and . Plugging this into (C.24) yields
where we use and assertion (i).
For the second half of the sum, we have . First, note that since is non-increasing, we have that
With this, and being non-increasing, we have
Using now the definitions of , and , we obtain
First, it is trivial to obtain from the estimate
Second, it also follows, for , that
Plugging (C.27) and (C.28) back into (C.26) gives us
where in the second inequality, we used for . Combining (C.25) and (C.29) gives us
Finally, we prove assertion (iii). Since for and , splitting the sum and using assertion (iv), we have
Using for and for gives the inequality.
We have the following fact for recentering the (B-G) assumption. Its proof is trivial by using .
Fact 1 If for all and some fixed , then for any other point , we have
References
A. Alacaoglu, Y. Malitsky, and S. J. Wright. Towards weaker variance assumptions for stochastic optimization. arXiv:2504.09951, 2025.
A. Attia, M. Schliserman, U. Sherman, and T. Koren. Fast last-iterate convergence of SGD in the smooth interpolation regime. In Advances in Neural Information Processing Systems, 2025.
A. Beck. First-order methods in optimization. SIAM, 2017.
J. R. Blum. Approximation methods which converge with probability one. The Annals of Mathematical Statistics, 25(2):382–386, 1954.
X. Chen, Q. Lin, and J. Peña. Optimal regularized dual averaging methods for stochastic optimization. In Advances in Neural Information Processing Systems, 2012.
J. Domke. Provable smoothness guarantees for black-box variational inference. In International Conference on Machine Learning, 2020.
J. Domke, R. M. Gower, and G. Garrigos. Provable convergence guarantees for black-box variational inference. In Advances in Neural Information Processing Systems, 2023.
G. Garrigos, D. Cortild, L. Ketels, and J. Peypouquet. Last-iterate complexity of SGD for convex and smooth stochastic problems. arXiv:2507.14122, 2025.
E. G. Gladyshev. On stochastic approximation. Theory of Probability & Its Applications, 10(2):275–278, 1965.
B. Grimmer. Radial subgradient method. SIAM Journal on Optimization, 28(1):459–469, 2018.
B. Grimmer. Convergence rates for deterministic and stochastic subgradient methods without Lipschitz continuity. SIAM Journal on Optimization, 29(2):1350–1365, 2019.
N. J. A. Harvey, C. Liaw, Y. Plan, and S. Randhawa. Tight analyses for non-smooth stochastic gradient descent. In Conference on Learning Theory, 2019.
P. Jain, D. Nagaraj, and P. Netrapalli. Making the last iterate of SGD information theoretically optimal. In Conference on Learning Theory, 2019.
A. Khaled and P. Richtárik. Better theory for SGD in the nonconvex world. Transactions on Machine Learning Research, 2023.
A. Khaled, O. Sebbouh, N. Loizou, R. M. Gower, and P. Richtárik. Unified analysis of stochastic gradient methods for composite convex and smooth optimization. Journal of Optimization Theory and Applications, 199(2):499–540, 2023.
K. Kim, Y. Ma, T. Campbell, and J. Gardner. Nearly dimension-independent convergence of mean-field black-box variational inference. In Advances in Neural Information Processing Systems, 2025.
H. Labarrière, C. Molinari, S. Villa, and L. Rosasco. SGD for variational inference: Tackling unbounded variance via preconditioning and dynamic batching. arXiv:2605.07531, 2026.
G. Lan. First-order and stochastic optimization methods for machine learning. Springer, 2020.
X. Li, L. Zhao, D. Zhu, and A. M.-C. So. Revisiting subgradient method: Complexity and convergence beyond Lipschitz continuity. Vietnam Journal of Mathematics, 53(4): 735–755, 2025.
Z. Liu and Z. Zhou. Revisiting the last-iterate convergence of stochastic gradient methods. In International Conference on Learning Representations, 2024.
R. Lopez, J. Regier, M. B. Cole, M. I. Jordan, and N. Yosef. Deep generative modeling for single-cell transcriptomics. Nature Methods, 15(12):1053–1058, 2018.
H. Lu. “Relative continuity” for non-Lipschitz nonsmooth convex optimization using stochastic (or deterministic) mirror descent. INFORMS Journal on Optimization, 1(4): 288–303, 2019.
A. Nemirovski, A. Juditsky, G. Lan, and A. Shapiro. Robust stochastic approximation approach to stochastic programming. SIAM Journal on Optimization, 19(4):1574–1609, 2009.
F. Orabona. Last iterate of SGD converges (even in unbounded domains), 2020. URL https://parameterfree.com/2020/08/07/last-iterate-of-sgd-converges-even-in-unbounded-domains/.
B. T. Polyak and Y. Z. Tsypkin. Pseudogradient adaptation and training algorithms. Automation and Remote Control, 34(3):45–67, 1973.
R. Ranganath, S. Gerrish, and D. Blei. Black box variational inference. In Artificial Intelligence and Statistics, 2014.
R. Ranganath, A. Perotte, N. Elhadad, and D. Blei. Deep survival analysis. In Machine Learning for Healthcare Conference, 2016.
J. Renegar. “Efficient” subgradient methods for general convex optimization. SIAM Journal on Optimization, 26(4):2649–2676, 2016.
H. Robbins and S. Monro. A stochastic approximation method. The Annals of Mathematical Statistics, 22(3):400–407, 1951.
L. Rosasco, S. Villa, and B. C. Vũ. Convergence of stochastic proximal gradient algorithm. Applied Mathematics & Optimization, 82(3):891–917, 2020.
O. Shamir and T. Zhang. Stochastic gradient descent for non-smooth optimization: Convergence results and optimal averaging schemes. In International Conference on Machine Learning, 2013.
K. K. T. Vaidyan, M. P. Friedlander, and A. Alacaoglu. Convergence rate of the last iterate of stochastic proximal algorithms. In International Conference on Machine Learning, 2026.
M. Zamani and F. Glineur. Exact convergence rate of the last iterate in subgradient methods. SIAM Journal on Optimization, 35(3):2182–2201, 2025.