arXiv:2611.07334math.OCNov 2026

Manuscript Offprint

arXiv:2611.07334

Last-Iterate Convergence of Stochastic Gradient Methods for Unbounded Problems

Kevin Kurian Thomas Vaidyan, Ahmet Alacaoglu, Michael P. Friedlander

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 O~(1/T)\tilde{\mathcal{O}}(1/\sqrt{T}) for the last iterate. Moreover, when the horizon TT is known, we remove the logarithmic factor and obtain the optimal order O(1/T)\mathcal{O}(1/\sqrt{T}), 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

min⁡x∈Rd{h(x):=f(x)+g(x)},(1.1)\min_{\mathbf{x}\in\mathbb{R}^d}\{h(\mathbf{x}):=f(\mathbf{x})+g(\mathbf{x})\}, \tag{1.1}

and projected stochastic gradient descent (projected SGD) for convex constrained optimization problems of the form

min⁡x∈Cf(x).(1.2)\min_{\mathbf{x}\in\mathcal{C}}f(\mathbf{x}). \tag{1.2}

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 f(xˉT)−f(x∗)f(\bar{\mathbf{x}}_T) - f(\mathbf{x}^*) where xˉT=1T∑t=1Txt\bar{\mathbf{x}}_T = \frac{1}{T} \sum_{t=1}^T \mathbf{x}_t. 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 ℓ1\ell_1-regularized least-squares problem

min⁡x∈Rd1n∑i=1n(ai⊤x−bi)2+λ∥x∥1,(1.3)\min_{\mathbf{x}\in\mathbb{R}^d}\frac{1}{n}\sum_{i=1}^n (\mathbf{a}_i^\top \mathbf{x}-b_i)^2+\lambda\|\mathbf{x}\|_1, \tag{1.3}

the ℓ1\ell_1 regularizer promotes sparsity in the solution. However, averaging can destroy this sparsity; hence, guarantees for the last iterate xT\mathbf{x}_T 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 ∇~f(x)\widetilde{\nabla}f(\mathbf{x}) (Robbins and Monro, 1951; Nemirovski et al., 2009; Lan, 2020). That is, these works assume

E∥∇~f(x)∥2≤σ2orE∥∇~f(x)−∇f(x)∥2≤σ2.(1.4)\mathbb{E}\|\widetilde{\nabla}f(\mathbf{x})\|^2\leq \sigma^2 \quad \text{or} \quad \mathbb{E}\|\widetilde{\nabla}f(\mathbf{x})-\nabla f(\mathbf{x})\|^2\leq \sigma^2. \tag{1.4}

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 ∇~f(x)=2ai(⟨ai,x⟩−bi)\widetilde{\nabla}f(\mathbf{x})=2\mathbf{a}_i(\langle \mathbf{a}_i,\mathbf{x}\rangle-b_i), which grows with ∥x∥\|\mathbf{x}\| 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 O(ln⁡T/T)\mathcal{O}(\ln T/\sqrt{T}) and a log-free rate of O(1/T)\mathcal{O}(1/\sqrt{T}) 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

f(x)=Ei∼P[fi(x)],f(\mathbf{x})=\mathbb{E}_{i\sim P}[f_i(\mathbf{x})],

(1.5) for some unknown distribution PP, from which we get i.i.d. samples. In particular, we assume that

each component function fif_i is convex and LL-smooth.

(CW)

The most standard setting where this assumption holds is the least squares problem with a regularizer; see (1.3), where each component fi(x)=(ai⊤x−bi)2f_i(\mathbf{x}) = (\mathbf{a}_i^\top \mathbf{x} - b_i)^2 is convex and (max⁡i2∥ai∥2)(\max_i 2 \|\mathbf{a}_i\|^2)-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 g≡0g \equiv 0. A classical consequence of the component-wise convexity and smoothness assumption is the bound

E∥∇fi(x)∥2≤2E∥∇fi(x∗)∥2+4L(f(x)−f(x∗)),(1.6)\mathbb{E}\|\nabla f_i(\mathbf{x})\|^2 \leq 2\mathbb{E}\|\nabla f_i(\mathbf{x}^*)\|^2 + 4L(f(\mathbf{x}) - f(\mathbf{x}^*)), \tag{1.6}

where x∗\mathbf{x}^* is a minimizer of ff. 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 O(ln⁡T/T)\mathcal{O}(\ln T/\sqrt{T}). 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

E∥∇~f(x)∥2≤B2∥x−x0∥2+G2,\mathbb{E}\|\widetilde{\nabla}f(\mathbf{x})\|^2 \leq B^2\|\mathbf{x} - \mathbf{x}_0\|^2 + G^2,

(B-G)

where x0\mathbf{x}_0 is the initial iterate of the algorithm. Note that this assumption is also sometimes presented with a solution x∗\mathbf{x}^* instead of x0\mathbf{x}_0 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 fif_i 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 ff is LL-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 ff 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 τt=τ/t+1\tau_t = \tau/\sqrt{t+1} 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 τt=τ/t+1\tau_t = \tau/\sqrt{t+1}, while (CW) is stronger but yields the optimal order in a wider variety of settings. See also Table 1.