Introduction
Stochastic Gradient Descent (SGD) and its variants constitute the workhorse of modern machine learning. From classical statistical learning problems to the training of large-scale neural networks, the basic recursion
w t + 1 = w t − η g t , E [ g t ∣ w t ] = ∇ f ( w t ) , w_{t+1} = w_t - \eta g_t,\qquad\mathbb{E}[g_t \mid w_t] = \nabla f(w_t), w t + 1 = w t − η g t , E [ g t ∣ w t ] = ∇ f ( w t ) ,
lies at the core of essentially every first-order stochastic optimization method. Despite this ubiquity, the current theoretical understanding of SGD is built around a remarkably conservative principle: the stepsize must be chosen sufficiently small so that each update is locally stable. Indeed, when f f f is L L L -smooth and the stochastic gradient has conditional variance bounded by σ 2 > 0 \sigma^2 > 0 σ 2 > 0 , the standard descent lemma gives
E t [ f ( w t + 1 ) ] ≤ f ( w t ) − η ( 1 − L η 2 ) ∥ ∇ f ( w t ) ∥ 2 + L η 2 2 σ 2 . \mathbb{E}_t[f(w_{t+1})] \leq f(w_t) - \eta\left(1 - \frac{L\eta}{2}\right) \lVert\nabla f(w_t) \rVert^2 + \frac{L\eta^2}{2}\sigma^2. E t [ f ( w t + 1 )] ≤ f ( w t ) − η ( 1 − 2 L η ) ∥ ∇ f ( w t ) ∥ 2 + 2 L η 2 σ 2 .
© 2026 K. Emmanouilidis, Z. Xu, S. Tarmoun, L. MacDonald & R. Vidal.
Thus, the canonical restriction η ≲ 1 / L \eta\lesssim1/L η ≲ 1/ L emerges naturally: it guarantees that the dissipative contribution of the gradient dominates the curvature introduced by a single update. This simple principle, in one form or another, underlies much of the classical theory of stochastic approximation Nesterov [20 ] .
However, empirical work has shown that neural networks are routinely trained in the so-called Edge of Stability (EoS) regime Cohen et al. [6 ] , where the effective curvature approaches the stability threshold associated with the learning rate. In this regime, the loss does not decrease monotonically, the iterates exhibit persistent oscillations, and the classical descent picture no longer provides an adequate description of the dynamics. Despite that, training does not diverge. Quite the opposite: learning rates larger than those permissible by classical theory are frequently associated with markedly faster optimization than their conservative counterparts Damian et al. [9 ] ; Cohen et al. [6 ] .
These observations have prompted a sequence of theoretical works seeking to explain how optimization can remain effective beyond the classical stability threshold Wu et al. [22 ] ; Cai et al. [5 ] . In the logistic regression setting, this phenomenon is already visible in its simplest form. For linearly separable data, Wu et al. [24 ] show that large-stepsize GD may traverse a non-monotone regime before eventually stabilizing, and despite this transient instability results in a provable acceleration of the optimization process. In particular, given a fixed step budget T T T , an appropriately chosen large constant stepsize improves the convergence rate from O ( log T T ) O\left(\frac{\log T}{T}\right) O ( T l o g T ) to O ( log T T 2 ) O\left(\frac{\log T}{T^2}\right) O ( T 2 l o g T ) . Importantly, the acceleration is not achieved in spite of the unstable transient phase, but instead it is actually attributed to it.
This raises a natural question for stochastic optimization, since stochasticity changes the underlying dynamics in an essential way. More specifically, in the deterministic setting oscillations can be attributed directly to the interaction between the stepsize and the local curvature. In contrast, in SGD the trajectory is simultaneously affected by curvature-driven instability and gradient noise. Even when the learning rate lies within the classical stability range, individual stochastic updates need not decrease the objective, and even worse when the learning rate becomes large, separating stochastic fluctuations from genuine instability becomes considerably more delicate. As a result, the deterministic large-stepsize analysis does not transfer directly to the stochastic setting.
Recent works have taken a first step toward resolving this issue. Wu et al. [24 ] provide upper bounds on logistic regression, characterizing the EoS regime. Simultaneously, Emmanouilidis et al. [11 ] develop a stability framework for SGD with arbitrarily large stepsizes and characterize the dynamics by two qualitatively distinct regimes. Away from stability, the iterates exhibit an EoS phase characterized by non-monotone, curvature-driven behavior, while when the loss becomes sufficiently small, the dynamics are considered in the stable regime. Moreover, despite the persistent minibatch noise, the dynamics can return to the stable region and remain there with high probability. Hence, stochasticity does not preclude stabilization beyond the classical small-stepsize regime.
Stability, however, is only one aspect of the picture. The deterministic results reveal a considerably stronger phenomenon: the excursion beyond the classical stability threshold can lead to accelerated convergence. Whether this acceleration mechanism survives the introduction of stochastic gradients remains unresolved and has been highlighted as a fundamental open question in the recent large-stepsize literature Wu et al. [24 ] ; Emmanouilidis et al. [11 ] . Standard SGD arguments offer little guidance in this regime because they are based precisely on the one-step descent inequality that large stepsizes invalidate. Conversely, deterministic EoS arguments rely on pathwise relations that are destroyed by the stochastic oracle. Establishing acceleration therefore requires a fundamentally different perspective: one that analyzes the stochastic trajectory globally, rather than attempting to enforce descent at each individual iteration.
The aforementioned discussion leads to the central question of this work:
Can large stepsizes accelerate SGD?
In this paper, we answer this question affirmatively for the cross-entropy loss setting. Our results show that the large-stepsize mechanism responsible for acceleration in deterministic cross-entropy optimization persists in the presence of stochastic gradients. More importantly, we identify the stochastic dynamics that make this possible: an initial large-learning-rate regime drives the process rapidly toward a region in which the same aggressive stepsize becomes stable, after which the trajectory admits substantially sharper convergence guarantees. In this sense, instability is not merely an artifact that SGD must overcome, it constitutes an essential ingredient of the route to acceleration.
Our contributions. Our contributions can be summarized as follows:
A sharp characterization of the large-stepsize dynamics. We provide a fine-grained analysis of SGD for the multi-class cross-entropy loss under arbitrary stepsizes η > 0 \eta> 0 η > 0 . While previous work (Emmanouilidis et al., [11 ] ) allows for repeated transitions between stable and unstable phases, we show that the dynamics admit a substantially sharper description: once the iterates enter a sufficiently low-loss region, they remain in the stable regime with high probability. The key ingredient is a new supermartingale argument built around a suitably discounted loss threshold, which allows us to control the effect of stochastic fluctuations that could otherwise drive the trajectory out of stability. This gives the tight O ( 1 t ) \mathcal{O}\left(\frac{1}{t}\right) O ( t 1 ) convergence rate within the stable regime, matching the classical first-order rate for separable cross-entropy optimization (Nacson et al., [17 ] ).
Acceleration of SGD through large stepsizes. Building on the aforementioned stability analysis, we establish for a fixed step budget T T T an accelerated O ( 1 T 2 ) \mathcal{O}\left(\frac{1}{T^2}\right) O ( T 2 1 ) convergence rate for SGD with the cross-entropy loss on separable data. To the best of our knowledge, this is the first result showing that the large-stepsize acceleration mechanism survives in the presence of stochastic gradient noise. Moreover, in the full-batch limit, our bound removes the logarithmic factor appearing in prior deterministic guarantees and matches the canonical O ( 1 T 2 ) \mathcal{O}\left(\frac{1}{T^2}\right) O ( T 2 1 ) accelerated rate associated with Nesterov’s method (Nesterov, [19 ] ). Thus, acceleration can be obtained solely through an appropriate choice of the stepsize, without introducing momentum or modifying the underlying SGD iteration.
Large-stepsize dynamics beyond linear predictors. We extend the theory to two-layer nearly homogeneous neural networks and provide a detailed description of their stochastic dynamics in the large-learning-rate regime. Despite the substantially more intricate geometry induced by the nonlinear parametrization, we recover the same qualitative phase structure as in the linear setting. In particular, we characterize the transition between the EoS and stable regimes and show that, once the loss becomes sufficiently small, the trajectory remains stable for all subsequent iterations with high probability.
Acceleration for two-layer neural networks. We further show that the acceleration mechanism is not an artifact of linear models. For two-layer nearly homogeneous neural-network predictors, we prove that an appropriate large-stepsize choice yields the accelerated rate
O ( 1 T 2 ) \mathcal{O}\left(\frac{1}{T^2}\right) O ( T 2 1 ) . Hence, over a prescribed time horizon T > 0 T > 0 T > 0 , the same rate as the celebrated accelerated gradient methods Nesterov [19 ] can be attained by appropriately tuning the learning rate alone. No momentum term, extrapolation step, or modification of the SGD recursion is required. This demonstrates that stepsize-induced acceleration persists in a genuinely nonlinear stochastic setting.
5. Empirical validation. Finally, we complement the theoretical analysis with extensive numerical experiments. The experiments corroborate the predicted transition from the EoS to the stable regime and consistently demonstrate the optimization benefits of large stepsizes across the settings covered by our theory.
Problem Setup & Assumptions
We consider the multi-class classification problem (1) with K K K classes, where x i ∈ R d x_i \in\mathbb{R}^d x i ∈ R d is the input, y i ∈ [ K ] y_i \in[K] y i ∈ [ K ] denotes the corresponding label, f f f is the predictor parameterized by weights W = [ w 1 , … , w K ] ∈ R d × K W = [w_1, \ldots, w_K] \in\mathbb{R}^{d \times K} W = [ w 1 , … , w K ] ∈ R d × K , and the loss function is given by
L ( W ) = 1 n ∑ i = 1 n ℓ ( f ( x i ; W ) , y i ) , (1) L(W) = \frac{1}{n} \sum_{i=1}^{n} \ell(f(x_i; W), y_i), \tag*{(1)} L ( W ) = n 1 i = 1 ∑ n ℓ ( f ( x i ; W ) , y i ) , (1)
where ℓ ( f , y ) = log ( ∑ j = 1 K e f j ) − f y \ell(f, y) = \log\left(\sum_{j=1}^{K} e^{f_j}\right) - f_y ℓ ( f , y ) = log ( ∑ j = 1 K e f j ) − f y is the classical cross-entropy loss function for the model f f f .
Our goal is to analyze the behavior of SGD in the large stepsize regime. For a mini-batch B t \mathcal{B}_t B t of size b ≥ 1 b \ge1 b ≥ 1 , consisting of b b b indices sampled independently and uniformly from [ n ] [n] [ n ] (with replacement), the SGD update at time t ≥ 0 t \ge0 t ≥ 0 is given by
W t + 1 = W t − η g t , (2) W_{t+1} = W_t - \eta g_t, \tag*{(2)} W t + 1 = W t − η g t , (2)
where g t = 1 b ∑ i ∈ B t ∇ ℓ ( f ( x i ; W t ) , y i ) g_t = \frac{1}{b} \sum_{i \in\mathcal{B}_t} \nabla\ell(f(x_i; W_t), y_i) g t = b 1 ∑ i ∈ B t ∇ ℓ ( f ( x i ; W t ) , y i ) is the stochastic mini-batch gradient and η > 0 \eta> 0 η > 0 is the stepsize of the algorithm.
Blanket Assumptions. We, next, introduce the assumptions required for our theoretical results. We assume without loss of generality that inputs satisfy ∥ x i ∥ 2 ≤ 1 \lVert x_i \rVert_2 \le1 ∥ x i ∥ 2 ≤ 1 , ∀ i ∈ [ n ] \forall i \in[n] ∀ i ∈ [ n ] . This assumption can always be satisfied by simply normalizing the data. The next assumption concerns the separability of the dataset, which is common in the literature [22 , 5 ] for this setting.
Assumption 2.1 (Separable data). There exists W ∗ ∈ R d × K W_* \in\mathbb{R}^{d \times K} W ∗ ∈ R d × K with ∥ W ∗ ∥ F = 1 \lVert W_* \rVert_F = 1 ∥ W ∗ ∥ F = 1 and a margin γ > 0 \gamma> 0 γ > 0 such that for every i ∈ [ n ] i \in[n] i ∈ [ n ] and every class j ≠ y i j \ne y_i j = y i , it holds that ( W ∗ ⊤ x i ) y i − ( W ∗ ⊤ x i ) j ≥ γ (W_*^\top x_i)_{y_i} - (W_*^\top x_i)_j \ge\gamma ( W ∗ ⊤ x i ) y i − ( W ∗ ⊤ x i ) j ≥ γ .
Assumption 2.1 uses the multiclass margin of Crammer and Singer [8 ] : for the largest admissible γ \gamma γ , it equals the value of the hard-margin multiclass SVM,
max ∥ W ∥ F ≤ 1 min i ∈ [ n ] min j ≠ y i [ ( W ⊤ x i ) y i − ( W ⊤ x i ) j ] . \max_{\lVert W \rVert_F \le1} \min_{i \in[n]} \min_{j \ne y_i} \left[(W^\top x_i)_{y_i} - (W^\top x_i)_j\right]. ∥ W ∥ F ≤ 1 max i ∈ [ n ] min j = y i min [ ( W ⊤ x i ) y i − ( W ⊤ x i ) j ] .
Prior State of the Art
We, first, review the existing results in the literature regarding the multi-class cross-entropy loss setting and then present our theoretical guarantees regarding acceleration. Recent work [11 ] establishes that SGD alternates between an initial unstable regime, where a O ( ln t t ) \mathcal{O}\left(\frac{\ln t}{t}\right) O ( t l n t ) rate for the best iterate for any stepsize η > 0 \eta> 0 η > 0 is shown, and a stable regime, which is attained when the loss is smaller than a certain threshold. More specifically, the stable set is defined as
S : = { W ∈ R d × K : L ( W ) ≤ L ~ } , (3) \mathcal{S} := \left\{W \in\mathbb{R}^{d \times K} : L(W) \le\widetilde{L}\right\}, \tag*{(3)} S := { W ∈ R d × K : L ( W ) ≤ L } , (3)
where the stable threshold is given by
L ~ : = min { 1 16 η ( 1 + 2 n b γ 0 2 ) , 1 2 m n , 1 n } \widetilde{L} := \min\left\{\frac{1}{16\eta\left(1+\frac{2n}{b\gamma_0^2}\right)},\frac{1}{\sqrt{2mn}},\frac{1}{n}\right\} L := min ⎩ ⎨ ⎧ 16 η ( 1 + b γ 0 2 2 n ) 1 , 2 mn 1 , n 1 ⎭ ⎬ ⎫
with γ 0 : = min { γ , 1 } \gamma_0 := \min\{\gamma,1\} γ 0 := min { γ , 1 } .
When the iterates are inside the stable set, the loss is shown to attain a last-iterate rate at a O ( ln t t ) \mathcal{O}\left(\frac{\ln t}{t}\right) O ( t l n t ) . However, the noise of the stochastic oracles may destabilize the dynamics, making the iterates exit momentarily the stable regime. For this reason, prior work [11 ] proves that the iterates will re-enter the stable set in a finite number of steps and will remain inside the stable regime with larger probability at every subsequent step as the loss steadily decreases.
Theorem 3.1 (Stabilization of SGD, [11 ] ). Let Assumption 2.1 hold. The iterates of (SGD) with any stepsize η > 0 \eta> 0 η > 0 and batch size b ≥ 1 b \ge1 b ≥ 1 satisfy the following.
Staying stable with high probability. If W t ∈ S W_t \in\mathcal{S} W t ∈ S , then with probability at least 1 − δ ′ 1-\delta' 1 − δ ′ it holds that W t + 1 ∈ S W_{t+1} \in\mathcal{S} W t + 1 ∈ S , where δ ′ = O ( exp ( − b η L ( W t ) 3 / 2 ) ) \delta' = \mathcal{O}\left(\exp\left(-\frac{b}{\eta L(W_t)^{3/2}}\right)\right) δ ′ = O ( exp ( − η L ( W t ) 3/2 b ) ) .
Return to stability. Assume that the dynamics exit the stable regime at t o u t > 0 t_{\mathrm{out}} > 0 t out > 0 , and fix δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . Then, with probability at least 1 − δ 1-\delta 1 − δ , the iterates of (SGD) return to the stable regime in at most t r e = O ~ ( η b 2 γ 2 δ 2 L ~ ) t_{\mathrm{re}} = \widetilde{\mathcal{O}}\left(\frac{\eta b^2}{\gamma^2\delta^2\widetilde{L}}\right) t re = O ( γ 2 δ 2 L η b 2 ) number of steps.
The aforementioned theorem is informative for the alternation between the stable and unstable regime. However, there is no guarantee that when the loss hits a certain threshold that the dynamics will remain forever in the stable regime. This potential alternation between stable and unstable regimes is the main obstacle preventing prior analyses from proving an accelerated rate for SGD, motivating the fine-grained analysis of the next section.
Convergence Guarantees
Our results begin by providing a refined analysis of the phase transition phenomenon that occurs in the stochastic dynamics. More precisely, Emmanouilidis et al. [11 ] show that the probability of remaining stable in the next iteration when the dynamics are already in the stable regime depends on the loss level and the distance of it from the stable level threshold L ~ \widetilde{L} L . In this work, we prove the stronger statement that when the iterates attain a slightly lower loss threshold the dynamics remain stable for all subsequent iterations. The intuition behind the aforementioned result is that since the noise in the cross-entropy setting is upper bounded by the loss, when the difference of the current loss from the stable threshold is sufficiently large, then with high probability the dynamics will not become unstable even in the presence of noise.
We, next, provide formally the result. For any δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , define the lower-level set
S l o w = { W ∈ R d × K : L ( W ) ≤ δ 3 L ~ } \mathcal{S}_{\mathrm{low}} = \left\{ W \in\mathbb{R}^{d \times K} : L(W) \le\frac{\delta}{3}\widetilde{L} \right\} S low = { W ∈ R d × K : L ( W ) ≤ 3 δ L }
and the lower-level entrance time τ δ : = inf { t ≥ 0 : L ( W t ) ≤ δ 3 L ~ } \tau_{\delta} := \inf\left\{t \ge0 : L(W_t) \le\frac{\delta}{3}\widetilde{L}\right\} τ δ := inf { t ≥ 0 : L ( W t ) ≤ 3 δ L } .
Theorem 4.1. Let Assumption 2.1 hold. Consider SGD with stepsize η > 0 \eta> 0 η > 0 and batch size b ≥ 1 b \ge1 b ≥ 1 and fix δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . Then, the following hold with probability at least 1 − δ 1-\delta 1 − δ ,
The iterates enter the lower-level set in τ δ = O ~ ( 1 + η γ 0 2 η δ 2 L ~ ) \tau_{\delta} = \widetilde{O}\left(\frac{1+\eta}{\gamma_0^2\eta\delta^2\widetilde{L}}\right) τ δ = O ( γ 0 2 η δ 2 L 1 + η ) iterations.
For every iteration t ≥ τ δ t \ge\tau_{\delta} t ≥ τ δ , the iterates remain in the stable set W t ∈ S W_t \in\mathcal{S} W t ∈ S .
For any fixed T > τ δ T > \tau_{\delta} T > τ δ , then
L ( W T ) ≤ 24 γ 0 2 η δ ( T − τ δ ) . (4) L(W_T) \le\frac{24}{\gamma_0^2\eta\delta(T-\tau_{\delta})}. \tag*{(4)} L ( W T ) ≤ γ 0 2 η δ ( T − τ δ ) 24 . (4)
Theorem 4.1 provides a refined characterization of the dynamics at the stable regime. In particular, it establishes that after a certain number of iterations the dynamics will not only become stable, but they will enter with high probability the lower-level set. The aforementioned fact is of particular interest as the second point of the theorem provides a O ( 1 t ) O\left(\frac{1}{t}\right) O ( t 1 ) rate after entering the low-level set. We note that the established rate of convergence is strictly better than the O ( log t t ) O\left(\frac{\log t}{t}\right) O ( t l o g t ) rate of prior results ([11 ] ) and matches, for a fixed stepsize, the O ( 1 t ) O\left(\frac{1}{t}\right) O ( t 1 ) rate of small-stepsize gradient descent on separable data ([21 , 17 ] ).
With the refined analysis at hand, we can now provide the acceleration of SGD with large stepsizes.
Corollary 4.2. Let Assumption 2.1 hold and fix δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . There exist c 0 > 0 c_0 > 0 c 0 > 0 and T 0 ( c ) > 0 T_0(c) > 0 T 0 ( c ) > 0 such that for any c ∈ ( 0 , c 0 ] c \in(0,c_0] c ∈ ( 0 , c 0 ] and T ≥ T 0 ( c ) T \ge T_0(c) T ≥ T 0 ( c ) , SGD with stepsize η = c T \eta= cT η = c T and batch size b ≥ 1 b \ge1 b ≥ 1 satisfies with probability at least 1 − δ 1-\delta 1 − δ that
L ( W T ) ≤ 48 δ γ 0 2 c T 2 = O ( 1 T 2 ) . (5) L(W_T) \le\frac{48}{\delta\gamma_0^2 cT^2} = O\left(\frac{1}{T^2}\right). \tag*{(5)} L ( W T ) ≤ δ γ 0 2 c T 2 48 = O ( T 2 1 ) . (5)
Corollary 4.2 establishes an O ( 1 T 2 ) O\left(\frac{1}{T^2}\right) O ( T 2 1 ) accelerated rate with high probability for SGD. This improves upon the O ( 1 T ) O\left(\frac{1}{T}\right) O ( T 1 ) of classical SGD with small learning rates ([18 ] ) and is a characteristic of the large stepsize regime. In the full-batch setting, as a special case, our result improves the prior deterministic result of O ( ln T T 2 ) O\left(\frac{\ln T}{T^2}\right) O ( T 2 l n T ) rate ([24 ] ), shaving off unnecessary logarithmic factors and making the result match the rate of Nesterov acceleration ([19 ] ).
Large Stepsizes in Two-Layer Neural Networks
A natural question is whether the previously established accelerated rate of convergence persists beyond linear models and extends to the neural-network setting encountered in practice. This extension is far from immediate as the geometry of the loss landscape becomes substantially more intricate, and the curvature now depends nonlinearly on both the network parameters and the data. Nevertheless, many commonly used architectures retain sufficient structure, such as approximate homogeneity and controlled derivatives of the activation function, to allow a precise analysis of their stochastic dynamics. In this section, we show that, under mild regularity conditions on the activation function, the qualitative picture developed above remains the same for two-layer neural networks trained with the cross-entropy loss.
We consider two-layer neural networks in mean-field scaling with the predictor given by
f ( W ; x ) : = 1 m ∑ j = 1 m a j ϕ ( x ⊤ W ( j ) ) , (6) f(W;x) := \frac{1}{m}\sum_{j=1}^{m} a_j\phi(x^\top W^{(j)}), \tag*{(6)} f ( W ; x ) := m 1 j = 1 ∑ m a j ϕ ( x ⊤ W ( j ) ) , (6)
where the coefficients a j ∈ { ± 1 } a_j \in\{\pm1\} a j ∈ { ± 1 } are fixed and W = ( W ( j ) ) j = 1 m ∈ R m d × K W = (W^{(j)})_{j=1}^{m} \in\mathbb{R}^{md \times K} W = ( W ( j ) ) j = 1 m ∈ R m d × K are trainable parameters. We run SGD with the rescaled stepsize η ~ : = m η \widetilde{\eta} := m\eta η := m η , namely W t + 1 = W t − η ~ g ~ t W_{t+1} = W_t - \widetilde{\eta} \widetilde{g}_t W t + 1 = W t − η g t , to train the network. Without loss of generality, we assume sup i ∥ x i ∥ ≤ 1 \sup_i \lVert x_i\rVert\le1 sup i ∥ x i ∥ ≤ 1 throughout the section.
Following the prior literature (Emmanouilidis et al., [11 ] ), we impose the following conditions on the activation function of the neural network.
Assumption 5.1 (Activation function conditions). Let ϕ : R → R \phi:\mathbb{R}\to\mathbb{R} ϕ : R → R be continuously differentiable and satisfy the following
Derivative condition. There exists α ∈ ( 1 1 + γ , 1 ) \alpha\in\left(\frac{1}{1+\gamma},1\right) α ∈ ( 1 + γ 1 , 1 ) such that α ≤ ϕ ′ ( z ) ≤ 1 \alpha\le\phi'(z) \le1 α ≤ ϕ ′ ( z ) ≤ 1 .
Smoothness. There exists β ~ > 0 \widetilde{\beta} > 0 β > 0 such that, for all x , y ∈ R x,y \in\mathbb{R} x , y ∈ R , ∣ ϕ ′ ( x ) − ϕ ′ ( y ) ∣ ≤ β ~ ∣ x − y ∣ \lvert\phi'(x)-\phi'(y)\rvert\le\widetilde{\beta}\lvert x-y\rvert ∣ ϕ ′ ( x ) − ϕ ′ ( y )∣ ≤ β ∣ x − y ∣ .
Near-homogeneity. There exists κ > 0 \kappa> 0 κ > 0 such that, for every z ∈ R z \in\mathbb{R} z ∈ R , ∣ ϕ ( z ) − ϕ ′ ( z ) z ∣ ≤ κ \lvert\phi(z)-\phi'(z)z\rvert\le\kappa ∣ ϕ ( z ) − ϕ ′ ( z ) z ∣ ≤ κ .
Assumption 5.1 is satisfied by several common activations after a mild leaky modification. The smoothness and near-homogeneity conditions are classical in analyses of optimization for two-layer networks, and are also used in prior work on large-stepsize (stochastic) gradient descent ([5 , 11 ] ). The derivative condition ensures that during training every neuron continues to receive a non-trivial gradient, ruling out the degenerate case when some neurons become frozen. The lower bound α > 1 / ( 1 + γ ) \alpha> 1/(1+\gamma) α > 1/ ( 1 + γ ) ensures that the effective margin γ ~ : = α γ − ( 1 − α ) \widetilde{\gamma} := \alpha\gamma- (1-\alpha) γ := α γ − ( 1 − α ) remains positive. We note that γ ~ \widetilde{\gamma} γ plays the role of the margin in the two-layer network analysis and can be interpreted as the original margin γ \gamma γ , discounted by the smallest possible activation derivative, and corrected by the variation of the activation derivatives across classes. In the limit α → 1 \alpha\to1 α → 1 , γ ~ → γ \widetilde{\gamma} \to\gamma γ → γ , recovering the usual margin in binary logistic regression.
The next lemma indicates that Assumption 5.1 is not restrictive, as leaky versions of standard activation functions satisfy the assumption.
Lemma 5.2 (Emmanouilidis et al. [11 ] ). For a margin γ > 0 \gamma> 0 γ > 0 , let c c c satisfy 1 / ( 1 + γ ) < c < 1 1/(1+\gamma) < c < 1 1/ ( 1 + γ ) < c < 1 . The following leaky variants of common activation functions satisfy Assumption 5.1.
GELU, Softplus, SiLU. Let ϕ \phi ϕ be GELU, Softplus, or SiLU, and define ϕ ~ ( x ) : = 1 + 2 c 3 x + 1 − c 6 ϕ ( x ) \widetilde{\phi}(x) := \frac{1+2c}{3}x + \frac{1-c}{6}\phi(x) ϕ ( x ) := 3 1 + 2 c x + 6 1 − c ϕ ( x ) . Then ϕ ~ \widetilde{\phi} ϕ satisfies Assumption 5.1 with α = c \alpha= c α = c , β ~ = 4 ( 1 − c ) \widetilde{\beta} = 4(1-c) β = 4 ( 1 − c ) , and κ = 1 − c \kappa= 1-c κ = 1 − c .
Huberized ReLU. Let ϕ \phi ϕ be the Huberized ReLUh _h h . Then, ϕ ~ ( x ) : = c x + ( 1 − c ) ϕ ( x ) \widetilde{\phi}(x) := cx + (1-c)\phi(x) ϕ ( x ) := c x + ( 1 − c ) ϕ ( x ) satisfies Assumption 5.1 with α = c \alpha= c α = c , β ~ = ( 1 − c ) / h \widetilde{\beta} = (1-c)/h β = ( 1 − c ) / h , and κ = ( 1 − c ) h / 2 \kappa= (1-c)h/2 κ = ( 1 − c ) h /2 .
Tanh, Sigmoid. The leaky tanh ϕ ~ ( x ) : = c x + ( 1 − c ) tanh ( x ) \widetilde{\phi}(x) := cx + (1-c)\tanh(x) ϕ ( x ) := c x + ( 1 − c ) tanh ( x ) and the leaky sigmoid ϕ ~ ( x ) : = c x + 1 − c 1 + e − x \widetilde{\phi}(x) := cx + \frac{1-c}{1+e^{-x}} ϕ ( x ) := c x + 1 + e − x 1 − c both satisfy Assumption 5.1 with α = c \alpha= c α = c , β ~ = 1 − c \widetilde{\beta} = 1-c β = 1 − c , and κ = 1 − c \kappa= 1-c κ = 1 − c .
With those assumptions at hand, we now state the main convergence results for two-layer neural networks. It is known ([11 ] ) that in the EoS regime SGD attains a O ( ln t t ) O\left(\frac{\ln t}{t}\right) O ( t l n t ) rate in terms of the best iterate of the loss. In the stable regime, defined as
S N N : = { W ∈ R m d × K : L ( W ) ≤ L ~ N N } . S^{NN} := \left\{W \in\mathbb{R}^{md \times K} : L(W) \le\widetilde{L}^{NN}\right\}. S N N := { W ∈ R m d × K : L ( W ) ≤ L N N } .
with the stable threshold being
L ~ N N = min { 1 16 η ( 1 + β ~ ) ( 1 + 2 n b min { γ ~ 2 , 1 } ) , 1 2 n η , 1 2 n e κ + 2 } . (7) \widetilde{L}^{NN} = \min\left\{\frac{1}{16\eta(1+\widetilde{\beta})\left(1+\frac{2n}{b\min\{\widetilde{\gamma}^{2},1\}}\right)},\frac{1}{\sqrt{2n\eta}},\frac{1}{2n e^{\kappa+2}}\right\}. \tag*{(7)} L N N = min ⎩ ⎨ ⎧ 16 η ( 1 + β ) ( 1 + b m i n { γ 2 , 1 } 2 n ) 1 , 2 n η 1 , 2 n e κ + 2 1 ⎭ ⎬ ⎫ . (7)
and γ ~ 0 : = min { γ ~ , 1 } \widetilde{\gamma}_0 := \min\{\widetilde{\gamma},1\} γ 0 := min { γ , 1 } .
SGD with any stepsize η > 0 \eta> 0 η > 0 converges in last-iterate sense at a rate O ( ln t t ) O\left(\frac{\ln t}{t}\right) O ( t l n t ) . However, prior work leaves open the possibility that the dynamics are momentarily destabilized, becoming unstable for a certain number of iterations. Our results start by refining the transition between stable and unstable regimes, leading to improved convergence guarantees in the stable regime.
Following the intuition from the cross-entropy setting with a linear model, we define for a fixed δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) the lower-level set for the neural network dynamics
S l o w N N : = { W ∈ R m d × K : L ( W ) ≤ δ 3 L ~ N N } . S_{\mathrm{low}}^{NN} := \left\{W \in\mathbb{R}^{md \times K} : L(W) \le\frac{\delta}{3}\widetilde{L}^{NN}\right\}. S low N N := { W ∈ R m d × K : L ( W ) ≤ 3 δ L N N } .
and the corresponding entrance time τ δ N N : = inf { t ≥ 0 : L ( W t ) ≤ δ 3 L ~ N N } \tau_{\delta}^{NN} := \inf\left\{t \ge0 : L(W_t) \le\frac{\delta}{3}\widetilde{L}^{NN}\right\} τ δ N N := inf { t ≥ 0 : L ( W t ) ≤ 3 δ L N N } .
Theorem 5.3. Let Assumptions 2.1 and 5.1 hold. Consider SGD for the two-layer network in (5) and fix δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . Then, with probability at least 1 − δ 1-\delta 1 − δ , the following hold:
The iterates enter the lower-level set S l o w N N S_{\mathrm{low}}^{NN} S low N N in at most τ δ N N = O ~ ( 1 + η γ ~ 0 2 η δ 2 L ~ N N ) \tau_{\delta}^{NN} = \widetilde{O}\left(\frac{1+\eta}{\widetilde{\gamma}_0^2\eta\delta^2\widetilde{L}^{NN}}\right) τ δ N N = O ( γ 0 2 η δ 2 L N N 1 + η ) iterations.
For every t ≥ τ δ N N t \ge\tau_{\delta}^{NN} t ≥ τ δ N N it holds that W t ∈ S N N W_t \in S^{NN} W t ∈ S N N .
For any fixed T > τ δ N N T > \tau_{\delta}^{NN} T > τ δ N N , then the last iterate satisfies
L ( W T ) ≤ 24 δ γ ~ 0 2 η ( T − τ δ N N ) . (8) L(W_T) \le\frac{24}{\delta\widetilde{\gamma}_0^2\eta(T-\tau_{\delta}^{NN})}. \tag*{(8)} L ( W T ) ≤ δ γ 0 2 η ( T − τ δ N N ) 24 . (8)
Theorem 5.3 establishes that after a certain number of iterations with high probability the dynamics will have entered the lower-level set and thus they will be stable. More importantly, the second point of the theorem provides a last iterate convergence guarantee for the iterates of SGD with any positive stepsize η > 0 \eta> 0 η > 0 . Ensuring that the dynamics will reach not only the stable set but also the lower-level set allows us to obtain a rate O ( 1 t ) O\left(\frac{1}{t}\right) O ( t 1 ) , strictly outperforming the prior analyses [11 ] . As a special case, for full-batch GD the aforementioned guarantee is tighter than prior analysis of two-layer neural networks for binary classification [5 ] .
We highlight that our analysis through the lower-level set is the key in attaining an improved rate among the aforementioned prior works. More specifically, the use of the correct level set in combination with a Lyapunov stability analysis allows us to establish a tighter rate of convergence for the aforementioned setting.
We, next, establish that the use of large stepsizes leads to an accelerated rate of convergence in the case of two-layer neural networks.
Corollary 5.4. Let Assumptions 2.1 and 5.1 hold and fix δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . Consider SGD for the two-layer NN of (6) with batch size b ≥ 1 b \ge1 b ≥ 1 and scaled stepsize η ~ = m η \tilde{\eta}=m\eta η ~ = m η , where η = c T \eta=cT η = c T with c ∈ ( 0 , c 0 N N ] c \in(0,c_0^{NN}] c ∈ ( 0 , c 0 N N ] and T ≥ T 0 N N ( c ) T \ge T_0^{NN}(c) T ≥ T 0 N N ( c ) , for c 0 N N , T 0 N N ( c ) > 0 c_0^{NN}, T_0^{NN}(c)>0 c 0 N N , T 0 N N ( c ) > 0 . Then, with probability at least 1 − δ 1-\delta 1 − δ , the last iterate satisfies
L ( W T ) ≤ 48 δ γ 0 2 c T 2 = O ( 1 T 2 ) . (9) L(W_T) \le\frac{48}{\delta\gamma_0^2cT^2}=O\left(\frac{1}{T^2}\right). \tag*{(9)} L ( W T ) ≤ δ γ 0 2 c T 2 48 = O ( T 2 1 ) . (9)
Corollary 5.4 establishes that SGD with large stepsizes converges at an accelerated rate of O ( 1 T 2 ) O\left(\frac{1}{T^2}\right) O ( T 2 1 ) . This is the nonlinear analogue of the acceleration guarantee obtained for the linear cross-entropy model. We emphasize that in the special of full-batch GD our result is tighter than the prior state-of-the-art O ( ln T T 2 ) O\left(\frac{\ln T}{T^2}\right) O ( T 2 l n T ) rate [5 ] .
Experiments
In this section, we empirically validate the theoretical results established in the preceding sections for linear models and two-layer neural networks trained with SGD using large step sizes. First, the training dynamics initially enter the EOS regime before transitioning to a stable regime. Second, when the step size is chosen proportional to the training horizon T T T , the empirical mean final loss decays at the accelerated rate O ( T − 2 ) O(T^{-2}) O ( T − 2 ) , consistent with the predictions of Corollaries 4.2 and 5.4 .
Setup. We consider a linear model on synthetic two-class dataset and a two-layer neural network on frozen CIFAR-10 features [15 ] . For the linear model, we draw 50 examples per class from N ( μ k , 0.025 2 I 2 ) \mathcal{N}(\mu_k, 0.025^2I_2) N ( μ k , 0.02 5 2 I 2 ) , with μ 1 = ( π / 3 , 1 ) \mu_1=(\pi/3,1) μ 1 = ( π /3 , 1 ) and μ 2 = ( 2 π / 3 , 1 ) \mu_2=(2\pi/3,1) μ 2 = ( 2 π /3 , 1 ) . For CIFAR-10, we select a balanced subset of 2,000 training images, extract and normalize features using an ImageNet-pretrained ConvNeXt-Tiny [16 ] , and train a width-16 fixed-output two-layer neural network with activation ϕ ( z ) = 0.95 z + 0.05 tanh ( z ) \phi(z)=0.95z+0.05\tanh(z) ϕ ( z ) = 0.95 z + 0.05 tanh ( z ) . Both models are initialized at zero and trained using cross-entropy loss and mini-batch SGD with batch size 80. For each T ∈ { 1600 , 1800 , … , 6400 } T \in\{1600,1800,\ldots,6400\} T ∈ { 1600 , 1800 , … , 6400 } , we set the step size η = c T \eta=cT η = c T , using c ∈ { 0.0005 , 0.001 , 0.002 , 0.004 } c \in\{0.0005,0.001,0.002,0.004\} c ∈ { 0.0005 , 0.001 , 0.002 , 0.004 } for the linear model and c ∈ { 0.8 , 1.6 , 2.4 , 3.2 } c \in\{0.8,1.6,2.4,3.2\} c ∈ { 0.8 , 1.6 , 2.4 , 3.2 } for the two-layer model. We estimate expectations over SGD sampling by averaging the full training loss over 50 and 10 independent mini-batch streams, respectively, while keeping the data and all fixed model components unchanged.
At the fixed horizon T = 6400 T=6400 T = 6400 , plots (a) and (c) in Figure 1 show that large-step-size SGD initially exhibits sharp loss increases and non-monotone oscillations, characteristic of the EoS regime. After this transient phase, the loss enters a stable regime and decreases steadily. Plots (b) and (d) examine the acceleration obtained by choosing the step size proportional to the training horizon, η = c T \eta= cT η = c T . For sufficiently large T T T , the expected final-loss curves are approximately linear on the log-log scale and decay at a rate comparable to the T − 2 T^{-2} T − 2 reference, consistent with the rates established in Corollaries 4.2 and 5.4 . Taken together, these results empirically verify the EoS-to-stability transition and the large-step-size acceleration predicted by our theory for both linear and nonlinear models.
Figure 1. Training dynamics and final-loss scaling for the linear model (top) and two-layer model on frozen ConvNeXt features (bottom). Left panels show mean training loss at T = 6400 T = 6400 T = 6400 , with the first 50 iterations enlarged in the insets. Right panels show mean final loss versus T T T under η = c T \eta= cT η = c T . Dashed lines indicate the T − 2 T^{-2} T − 2 reference rate which is derived in Corollary 4.2 and Corollary 5.4 . Averages are over independent minibatch-sampling streams with the data and features held fixed.
Conclusion
In this work, we showed that large stepsizes can play a constructive role in stochastic optimization, establishing accelerated O ( T − 2 ) O(T^{-2}) O ( T − 2 ) convergence for SGD with the cross-entropy loss for both linear models and two-layer neural networks. Our analysis provides a refined characterization of the transition from the Edge-of-Stability to a stable low-loss regime and shows that, once this region is reached, the dynamics remain stable with high probability despite persistent stochastic noise. These results suggest that the classical stability threshold should not be viewed as an absolute barrier: in structured learning problems, crossing it can lead to faster optimization without momentum or any modification of the underlying SGD iteration. An important direction for future work is to understand how broadly this instability-to-acceleration mechanism extends to deeper architectures and more general stochastic learning problems.
Proof Roadmap
Figure 2. Proof dependencies for the linear and two-layer neural-network analyses. Arrows indicate how the preparatory estimates lead to entrance, permanent stability, last-iterate convergence, and large-stepsize acceleration.
Additional Related Work
In this appendix, we provide a more detailed discussion of related work. Our work is connected to several strands of literature: edge-of-stability dynamics, large-stepsize optimization for classification losses, implicit bias on separable data, and stochastic optimization beyond the small-stepsize regime.
Edge of stability. The edge-of-stability (EoS) phenomenon was systematically documented by Cohen et al. [6 ] , who observed that neural networks trained by gradient descent often operate near, or even beyond, the classical stability threshold determined by the largest eigenvalue of the Hessian. This behavior contrasts sharply with smooth optimization theory, where stepsizes below a curvature-dependent threshold ensure monotone loss descent. In modern training, however, substantially larger stepsizes may generate short-term oscillations while preserving a decreasing trend over longer time scales.
Several works have sought to explain this apparent instability. Damian et al. [9 ] identified a self-stabilization mechanism through which deterministic gradient descent can reduce its effective instability and return toward a stable region. Complementarily, Cohen et al. [7 ] introduced the central-flow perspective to describe the effective dynamics induced by large stepsizes. These analyses are primarily deterministic. For SGD, non-monotonicity may arise both from curvature-induced oscillations and from mini-batch fluctuations, making the stochastic setting qualitatively different. Our analysis accounts for this distinction through a stability criterion based on conditional Lyapunov drift rather than pathwise monotonicity.
Large-stepsize methods for logistic and cross-entropy losses. A recent line of work has shown that large stepsizes can be beneficial for classification problems with logistic-type losses. Wu et al. [24 ] proved that deterministic gradient descent for logistic regression may traverse a non-monotone EoS phase before entering a stable regime with faster loss decay. Cai et al. [5 ] extended this perspective to non-homogeneous two-layer networks under the binary logistic loss, establishing improved margin growth and optimization guarantees. Further refinements of large-stepsize training for logistic-type objectives were developed by Wu et al. [25 ] .
Our work extends this theory along three axes. First, we study SGD rather than full-batch gradient descent and therefore separate curvature-driven instability from stochastic fluctuations. Second, we consider multiclass cross-entropy, where every example must be separated simultaneously from all competing classes and the corresponding gradients are coupled through the softmax probabilities. Third, our stable regime is defined through conditional expected descent with respect to the next mini-batch. In this sense, our results provide a stochastic and multiclass counterpart to the deterministic large-stepsize theory for logistic losses.
Large-stepsize methods for (strongly)-convex optimization Recent developments in deterministic optimization have begun to challenge the classical descent lemma viewpoint. A growing line of work ([3 , 12 , 1 , 2 ] ) has demonstrated that the stepsize does not merely regulate stability: if chosen appropriately, it can itself become a mechanism of acceleration. Perhaps the most striking instance of this phenomenon is given by the silver stepsize schedule (Altschuler and Parrilo, [2 ] ), where carefully designed non-monotone stepsizes accelerate Gradient Descent (GD) on smooth convex objectives, without introducing momentum or altering the underlying iteration.
The main feature of these schemes is that some of their stepsizes lie well beyond the range suggested by the standard one-step descent argument (Grimmer, [12 ] ). Consequently, individual updates do not need to be contractive and the objective does not need to decrease monotonically along the trajectory. In particular, acceleration is obtained instead from the cumulative organization of a sequence of aggressive updates. More generally, these results suggest that enforcing descent at every iteration may be unnecessarily restrictive: the very instability that is excluded by the classical analysis can, when properly controlled, become an algorithmic benefit [13 , 26 ] .
Implicit bias in separable classification. Our analysis is also connected to the implicit-bias literature for separable classification. For logistic and cross-entropy losses on separable data, the empirical risk has no finite minimizer: the loss converges to zero while the parameter norm diverges. Nevertheless, the normalized parameter direction may converge to a maximum-margin solution. This phenomenon was established for linear logistic regression by Soudry et al. [21 ] and subsequently refined and extended by Ji and Telgarsky [14 ] ; Nacson et al. [17 ] .
This geometry motivates our choice of Lyapunov function. Stability notions based on recurrence near a finite equilibrium are poorly suited to separable classification, since the parameter iterates do not converge to a finite point. The loss itself, however, converges and directly captures optimization progress. We therefore define stability through the conditional drift of the cross-entropy loss. The resulting stable regime is a loss sublevel set rather than a neighborhood of a finite minimizer, aligning the analysis with the intrinsic geometry of separable classification.
Stochastic optimization. For homogeneous linear classifiers on separable data, Nacson et al. [18 ] established convergence of SGD to zero loss under a fixed, non-vanishing learning rate, covering both with-replacement and without-replacement sampling. For overparameterized two-layer networks, Brutzkus et al. [4 ] showed that SGD with sufficiently small stepsizes can learn linearly separable data. Our results complement these works by treating multiclass linear predictors and two-layer networks in the large-stepsize regime, where neither pathwise loss descent nor classical smoothness-based arguments are available.
An important direction is to extend this theory to random reshuffling and other without-replacement sampling schemes. Such schemes introduce temporal dependence across stochastic gradients and therefore require tools different from the conditional-independence arguments used for with-replacement SGD. Recent progress on random-reshuffling methods (Emmanouilidis et al. [10 ] ) suggests that exploiting this dependence may lead to sharper stability and convergence guarantees for large-stepsize training.
Proof for Cross-entropy Loss
Notation
For each sample ( x i , y i ) (x_i,y_i) ( x i , y i ) , let
z i = W T x i , z_i = W^{\mathsf{T}}x_i, z i = W T x i ,
p i = softmax ( z i ) , p_i = \operatorname{softmax}(z_i), p i = softmax ( z i ) ,
where p i ( j ) = e z i ( j ) ∑ ℓ = 1 K e z i ( ℓ ) p_i(j) = \frac{e^{z_i(j)}}{\sum_{\ell=1}^{K} e^{z_i(\ell)}} p i ( j ) = ∑ ℓ = 1 K e z i ( ℓ ) e z i ( j ) . The gradient and Hessian of the cross-entropy loss evaluated at the sample ( x i , y i ) (x_i,y_i) ( x i , y i ) are given by
∇ ℓ i ( W ) = ( p i − e y i ) x i T , (10) \nabla\ell_i(W) = (p_i-e_{y_i})x_i^{\mathsf{T}}, \tag*{(10)} ∇ ℓ i ( W ) = ( p i − e y i ) x i T , (10)
∇ 2 ℓ i ( W ) = ( diag ( p i ) − p i p i T ) ⊗ ( x i x i T ) . (11) \nabla^2\ell_i(W) = \left(\operatorname{diag}(p_i)-p_i p_i^{\mathsf{T}}\right)\otimes\left(x_i x_i^{\mathsf{T}}\right). \tag*{(11)} ∇ 2 ℓ i ( W ) = ( diag ( p i ) − p i p i T ) ⊗ ( x i x i T ) . (11)
Define the potential functions F , G : R d × K → R ≥ 0 F,G:\mathbb{R}^{d\times K}\to\mathbb{R}_{\geq0} F , G : R d × K → R ≥ 0 with
F ( W ) = 1 n ∑ i = 1 n ∑ j ≠ y i e − ⟨ W ( y i ) − W ( j ) , x i ⟩ , (12) F(W) = \frac{1}{n}\sum_{i=1}^{n}\sum_{j\ne y_i}e^{-\langle W(y_i)-W(j),x_i\rangle}, \tag*{(12)} F ( W ) = n 1 i = 1 ∑ n j = y i ∑ e − ⟨ W ( y i ) − W ( j ) , x i ⟩ , (12)
G ( W ) = 1 n ∑ i = 1 n ( 1 − p i ( y i ) ) . (13) G(W) = \frac{1}{n}\sum_{i=1}^{n}(1-p_i(y_i)). \tag*{(13)} G ( W ) = n 1 i = 1 ∑ n ( 1 − p i ( y i )) . (13)
Since log ( 1 + u ) ≤ u \log(1+u)\leq u log ( 1 + u ) ≤ u , ∀ u ∈ ( 0 , 1 ] \forall u\in(0,1] ∀ u ∈ ( 0 , 1 ] , it follows that
G ( W ) ≤ L ( W ) ≤ F ( W ) . (14) G(W)\leq L(W)\leq F(W). \tag*{(14)} G ( W ) ≤ L ( W ) ≤ F ( W ) . (14)
Preparatory Lemmas
We first provide some preparatory lemmas that will be necessary in proving the main theorem. We start by providing a sequence of inequalities reflecting the self-bounded properties of the cross-entropy loss.
Lemma C.1 (Emmanouilidis et al. [11 ] ). For every W ∈ R d × K W\in\mathbb{R}^{d\times K} W ∈ R d × K , it holds for every i ∈ [ n ] i\in[n] i ∈ [ n ] and all indices i 1 , … , i b ∈ [ n ] i_1,\ldots,i_b\in[n] i 1 , … , i b ∈ [ n ] that
∥ 1 b ∑ r = 1 b ∇ ℓ ( W T x i r ) ∥ F ≤ 2 b ∑ r = 1 b ℓ ( W T x i r ) , (15) \left\|\frac{1}{b}\sum_{r=1}^{b}\nabla\ell(W^{\mathsf{T}}x_{i_r})\right\|_{F}\leq\frac{\sqrt{2}}{b}\sum_{r=1}^{b}\ell(W^{\mathsf{T}}x_{i_r}), \tag*{(15)} b 1 r = 1 ∑ b ∇ ℓ ( W T x i r ) F ≤ b 2 r = 1 ∑ b ℓ ( W T x i r ) , (15) ∥ ∇ L ( W ) ∥ F ≤ 2 G ( W ) ≤ 2 L ( W ) . (16) \|\nabla L(W)\|_{F}\leq\sqrt{2}G(W)\leq\sqrt{2}L(W). \tag*{(16)} ∥∇ L ( W ) ∥ F ≤ 2 G ( W ) ≤ 2 L ( W ) . (16) ∥ ∇ 2 ℓ ( W T x i ) ∥ o p ≤ 2 ℓ ( W T x i ) (17) \|\nabla^{2}\ell(W^{\mathsf{T}}x_i)\|_{\mathrm{op}}\leq2\ell(W^{\mathsf{T}}x_i) \tag*{(17)} ∥ ∇ 2 ℓ ( W T x i ) ∥ op ≤ 2 ℓ ( W T x i ) (17) where G ( W ) = 1 n ∑ i = 1 n ( 1 − p i ( y i ) ) G(W)=\frac{1}{n}\sum_{i=1}^{n}(1-p_i(y_i)) G ( W ) = n 1 ∑ i = 1 n ( 1 − p i ( y i )) . Moreover, under Assumption 2.1 it holds that
∥ ∇ L ( W ) ∥ F ≥ γ G ( W ) (18) \|\nabla L(W)\|_{F}\geq\gamma G(W) \tag*{(18)} ∥∇ L ( W ) ∥ F ≥ γ G ( W ) (18)
We, next, provide a bound on the potential function G ( ⋅ ) G(\cdot) G ( ⋅ ) that is of critical importance for bounding quantities arising in the analysis.
Lemma C.2 (Emmanouilidis et al. [11 ] ). The iterates of SGD with any step size η > 0 \eta> 0 η > 0 satisfy for i ∈ [ n ] i \in[n] i ∈ [ n ] that
1 t ∑ k = 0 t − 1 E [ G ( W k ) ] ≤ K − 1 + 2 ln ( γ 2 η t ) + 2 η ( 1 + 1 b ) η γ 2 t (19) \frac{1}{t}\sum_{k=0}^{t-1}\mathbb{E}\left[G(W_k)\right] \le\frac{\sqrt{K-1+2\ln(\gamma^2\eta t)}+2\eta\left(1+\frac{1}{b}\right)}{\eta\gamma^2t} \tag*{(19)} t 1 k = 0 ∑ t − 1 E [ G ( W k ) ] ≤ η γ 2 t K − 1 + 2 ln ( γ 2 η t ) + 2 η ( 1 + b 1 ) (19) where G ( W ) = 1 n ∑ i = 1 n ( 1 − p i ( y i ) ) G(W) = \frac{1}{n}\sum_{i=1}^{n}(1-p_i(y_i)) G ( W ) = n 1 ∑ i = 1 n ( 1 − p i ( y i )) .
We, next, provide a bound from prior literature relating the norm of the stochastic gradient oracle with the norm of the full-batch gradient as well as a bound on the variance of SGD algorithm.
Lemma C.3 (Emmanouilidis et al. [11 ] ). The stochastic gradient oracle of the cross-entropy loss, g t = 1 b ∑ i ∈ B t ∇ ℓ ( f ( x i ; W t ) , y i ) g_t = \frac{1}{b}\sum_{i\in B_t}\nabla\ell(f(x_i;W_t),y_i) g t = b 1 ∑ i ∈ B t ∇ ℓ ( f ( x i ; W t ) , y i ) , satisfies
E [ ∥ g t ∥ 2 ∣ F t ] ≤ ( 1 + 2 n b γ 2 ) ∥ ∇ L ( W t ) ∥ 2 (20) \mathbb{E}\left[\lVert g_t\rVert^2 \mid\mathcal{F}_t\right] \le\left(1+\frac{2n}{b\gamma^2}\right)\lVert\nabla L(W_t)\rVert^2 \tag*{(20)} E [ ∥ g t ∥ 2 ∣ F t ] ≤ ( 1 + b γ 2 2 n ) ∥ ∇ L ( W t ) ∥ 2 (20) E [ ∥ g t − ∇ L ( W t ) ∥ 2 ] ≤ 2 b G ( W t ) , (21) \mathbb{E}\left[\lVert g_t-\nabla L(W_t)\rVert^2\right] \le\frac{2}{b}G(W_t), \tag*{(21)} E [ ∥ g t − ∇ L ( W t ) ∥ 2 ] ≤ b 2 G ( W t ) , (21) where G ( W ) : = 1 n ∑ i = 1 n [ 1 − softmax ( W ⊤ x i ) y i ] G(W):=\frac{1}{n}\sum_{i=1}^{n}\left[1-\operatorname{softmax}(W^\top x_i)_{y_i}\right] G ( W ) := n 1 ∑ i = 1 n [ 1 − softmax ( W ⊤ x i ) y i ] .
We, next, establish a descent lemma for the loss inside the stable regime S \mathcal{S} S .
Lemma C.4 (Conditional loss descent for linear predictors). Let Assumption 2.1 hold and define γ 0 : = min { γ , 1 } \gamma_0:=\min\{\gamma,1\} γ 0 := min { γ , 1 } . Consider the iterates of (SGD ) with stepsize η > 0 \eta>0 η > 0 and batch size b ≥ 1 b\ge1 b ≥ 1 . Suppose that L ( W t ) ≤ L ~ : = min { 1 16 η ( 1 + 2 n b γ 0 2 ) , 1 2 η , 1 n } L(W_t)\le\widetilde{L}:=\min\left\{\frac{1}{16\eta\left(1+\frac{2n}{b\gamma_0^2}\right)},\frac{1}{\sqrt{2\eta}},\frac{1}{n}\right\} L ( W t ) ≤ L := min ⎩ ⎨ ⎧ 16 η ( 1 + b γ 0 2 2 n ) 1 , 2 η 1 , n 1 ⎭ ⎬ ⎫ . Then, it holds that
E [ L ( W t + 1 ) − L ( W t ) ∣ F t ] ≤ − η γ 0 2 8 L ( W t ) 2 . (22) \mathbb{E}\left[L(W_{t+1})-L(W_t)\mid\mathcal{F}_t\right]\le-\frac{\eta\gamma_0^2}{8}L(W_t)^2. \tag*{(22)} E [ L ( W t + 1 ) − L ( W t ) ∣ F t ] ≤ − 8 η γ 0 2 L ( W t ) 2 . (22)
Proof. Conditionally on F t \mathcal{F}_t F t , let I t , 1 , … , I t , b I_{t,1},\ldots,I_{t,b} I t , 1 , … , I t , b be independent random variables sampled uniformly from [ n ] [n] [ n ] . The minibatch gradient is
g t : = 1 b ∑ r = 1 b ∇ ℓ ( W t ⊤ x I t , r ) ∈ R d × K . g_t:=\frac{1}{b}\sum_{r=1}^{b}\nabla\ell(W_t^\top x_{I_{t,r}})\in\mathbb{R}^{d\times K}. g t := b 1 r = 1 ∑ b ∇ ℓ ( W t ⊤ x I t , r ) ∈ R d × K .
We first control the change of the logits along the SGD update. Fix i ∈ [ n ] i\in[n] i ∈ [ n ] and define
Δ z i : = z i ( W t + 1 ) − z i ( W t ) = ( W t + 1 − W t ) ⊤ x i = ( S G D ) − η g t ⊤ x i . (23) \begin{aligned}
\Delta z_i &:= z_i(W_{t+1})-z_i(W_t)\\
&=(W_{t+1}-W_t)^\top x_i\\
&\overset{\mathrm{(SGD)}}{=}-\eta g_t^\top x_i. \tag*{(23)}
\end{aligned} Δ z i := z i ( W t + 1 ) − z i ( W t ) = ( W t + 1 − W t ) ⊤ x i = ( SGD ) − η g t ⊤ x i . (23)
For every k ∈ [ K ] k \in[K] k ∈ [ K ] , we have
∣ ( Δ z i ) k ∣ = η ∣ ⟨ ( g t ) k , x i ⟩ ∣ ≤ η ∥ ( g t ) k ∥ 2 ∥ x i ∥ 2 ≤ η ∥ g t ∥ F , \begin{aligned}
|(\Delta z_i)_k| & = \eta|\langle(g_t)_k, x_i\rangle| \\
& \le\eta\|(g_t)_k\|_2 \|x_i\|_2 \\
& \le\eta\|g_t\|_F,
\end{aligned} ∣ ( Δ z i ) k ∣ = η ∣ ⟨( g t ) k , x i ⟩ ∣ ≤ η ∥ ( g t ) k ∥ 2 ∥ x i ∥ 2 ≤ η ∥ g t ∥ F ,
where we used ∥ x i ∥ 2 ≤ 1 \|x_i\|_2 \le1 ∥ x i ∥ 2 ≤ 1 . Consequently, we get
∥ Δ z i ∥ ∞ ≤ η ∥ g t ∥ F ≤ η b ∑ r = 1 b ∥ ∇ ℓ ( W t T x I t , r ) ∥ F ≤ 2 η b ∑ r = 1 b ℓ ( W t T x I t , r ) ≤ 2 η max i ∈ [ n ] ℓ ( W t T x i ) ≤ 2 n η L ( W t ) , (24) \begin{aligned}
\|\Delta z_i\|_\infty& \le\eta\|g_t\|_F \\
& \le\frac{\eta}{b} \sum_{r=1}^{b} \|\nabla\ell(W_t^{\mathsf{T}}x_{I_{t,r}})\|_F \\
& \le\frac{\sqrt{2}\eta}{b} \sum_{r=1}^{b} \ell(W_t^{\mathsf{T}}x_{I_{t,r}}) \\
& \le\sqrt{2}\eta\max_{i\in[n]} \ell(W_t^{\mathsf{T}}x_i) \\
& \le\sqrt{2}n\eta L(W_t), \tag*{(24)}
\end{aligned} ∥Δ z i ∥ ∞ ≤ η ∥ g t ∥ F ≤ b η r = 1 ∑ b ∥∇ ℓ ( W t T x I t , r ) ∥ F ≤ b 2 η r = 1 ∑ b ℓ ( W t T x I t , r ) ≤ 2 η i ∈ [ n ] max ℓ ( W t T x i ) ≤ 2 n η L ( W t ) , (24)
where the third inequality follows from Lemma C.1 , inequality (15) , and the last inequality follows from max i ∈ [ n ] ℓ ( W t T x i ) ≤ ∑ i = 1 n ℓ ( W t T x i ) = n L ( W t ) \max_{i\in[n]} \ell(W_t^{\mathsf{T}}x_i) \le\sum_{i=1}^{n} \ell(W_t^{\mathsf{T}}x_i) = nL(W_t) max i ∈ [ n ] ℓ ( W t T x i ) ≤ ∑ i = 1 n ℓ ( W t T x i ) = n L ( W t ) . Since L ( W t ) ≤ L ~ L(W_t) \le\widetilde{L} L ( W t ) ≤ L , we obtain
∥ Δ z i ∥ ∞ ≤ 2 n η L ~ ≤ 1. (25) \begin{aligned}
\|\Delta z_i\|_\infty& \le\sqrt{2}n\eta\widetilde{L} \\
& \le1. \tag*{(25)}
\end{aligned} ∥Δ z i ∥ ∞ ≤ 2 n η L ≤ 1. (25)
For every θ ∈ [ 0 , 1 ] \theta\in[0,1] θ ∈ [ 0 , 1 ] , define W t θ : = W t − θ η g t W_t^\theta:= W_t - \theta\eta g_t W t θ := W t − θ η g t . Since the logits are linear in W W W , we have
z i ( W t θ ) − z i ( W t ) = − θ η g t T x i = θ Δ z i . z_i(W_t^\theta) - z_i(W_t) = -\theta\eta g_t^{\mathsf{T}}x_i = \theta\Delta z_i. z i ( W t θ ) − z i ( W t ) = − θ η g t T x i = θ Δ z i .
It follows from (25) that
∥ z i ( W t θ ) − z i ( W t ) ∥ ∞ ≤ 1. \|z_i(W_t^\theta) - z_i(W_t)\|_\infty\le1. ∥ z i ( W t θ ) − z i ( W t ) ∥ ∞ ≤ 1.
Thus, for every j ≠ y i j \ne y_i j = y i , we obtain
z i ( W t θ ) j − z i ( W t θ ) y i ≤ z i ( W t ) j − z i ( W t ) y i + 2. z_i(W_t^\theta)_j - z_i(W_t^\theta)_{y_i} \le z_i(W_t)_j - z_i(W_t)_{y_i} + 2. z i ( W t θ ) j − z i ( W t θ ) y i ≤ z i ( W t ) j − z i ( W t ) y i + 2.
Using the definition of the cross-entropy loss, we get
ℓ i ( W t θ ) = ln ( 1 + ∑ j ≠ y i exp ( z i ( W t θ ) j − z i ( W t θ ) y i ) ) ≤ ln ( 1 + e 2 ∑ j ≠ y i exp ( z i ( W t ) j − z i ( W t ) y i ) ) ≤ e 2 ℓ i ( W t ) ≤ 8 ℓ i ( W t ) . (26) \begin{aligned}
\ell_i(W_t^\theta)
&= \ln\left(1+\sum_{j\ne y_i}\exp\left(z_i(W_t^\theta)_j-z_i(W_t^\theta)_{y_i}\right)\right) \\
&\le\ln\left(1+e^2\sum_{j\ne y_i}\exp\left(z_i(W_t)_j-z_i(W_t)_{y_i}\right)\right) \\
&\le e^2\ell_i(W_t) \\
&\le8\ell_i(W_t). \tag*{(26)}
\end{aligned} ℓ i ( W t θ ) = ln 1 + j = y i ∑ exp ( z i ( W t θ ) j − z i ( W t θ ) y i ) ≤ ln 1 + e 2 j = y i ∑ exp ( z i ( W t ) j − z i ( W t ) y i ) ≤ e 2 ℓ i ( W t ) ≤ 8 ℓ i ( W t ) . (26)
where we used ln ( 1 + c u ) ≤ c ln ( 1 + u ) \ln(1+cu) \le c\ln(1+u) ln ( 1 + c u ) ≤ c ln ( 1 + u ) , c ≥ 1 c \ge1 c ≥ 1 , u ≥ 0 u \ge0 u ≥ 0 . We next apply Taylor’s theorem along the SGD update. Let ψ i ( θ ) : = ℓ i ( W t − θ η g t ) \psi_i(\theta) := \ell_i(W_t-\theta\eta g_t) ψ i ( θ ) := ℓ i ( W t − θ η g t ) , θ ∈ [ 0 , 1 ] \theta\in[0,1] θ ∈ [ 0 , 1 ] . There exists θ i ∈ ( 0 , 1 ) \theta_i \in(0,1) θ i ∈ ( 0 , 1 ) such that
ℓ i ( W t + 1 ) = ℓ i ( W t ) − η ⟨ ∇ ℓ i ( W t ) , g t ⟩ + η 2 2 ⟨ g t , ∇ 2 ℓ i ( W t θ i ) g t ⟩ . (27) \ell_i(W_{t+1}) = \ell_i(W_t) - \eta\langle\nabla\ell_i(W_t),g_t\rangle+ \frac{\eta^2}{2}\langle g_t,\nabla^2\ell_i(W_t^{\theta_i})g_t\rangle. \tag*{(27)} ℓ i ( W t + 1 ) = ℓ i ( W t ) − η ⟨ ∇ ℓ i ( W t ) , g t ⟩ + 2 η 2 ⟨ g t , ∇ 2 ℓ i ( W t θ i ) g t ⟩ . (27)
For the linear cross-entropy loss, we have from Lemma C.1 inequality (17)
∥ ∇ 2 ℓ i ( W ) ∥ o p ≤ 2 ℓ i ( W ) . \|\nabla^2\ell_i(W)\|_{\mathrm{op}} \le2\ell_i(W). ∥ ∇ 2 ℓ i ( W ) ∥ op ≤ 2 ℓ i ( W ) .
Therefore, using (26) , we obtain
∥ ∇ 2 ℓ i ( W t θ i ) ∥ o p ≤ 2 ℓ i ( W t θ i ) ≤ 16 ℓ i ( W t ) . (28) \begin{aligned}
\|\nabla^2\ell_i(W_t^{\theta_i})\|_{\mathrm{op}} &\le2\ell_i(W_t^{\theta_i})\\
&\le16\ell_i(W_t). \tag*{(28)}
\end{aligned} ∥ ∇ 2 ℓ i ( W t θ i ) ∥ op ≤ 2 ℓ i ( W t θ i ) ≤ 16 ℓ i ( W t ) . (28)
Substituting (28) into (27) , we get
ℓ i ( W t + 1 ) ≤ ℓ i ( W t ) − η ⟨ ∇ ℓ i ( W t ) , g t ⟩ + 8 η 2 ℓ i ( W t ) ∥ g t ∥ F 2 . (29) \ell_i(W_{t+1}) \le\ell_i(W_t) - \eta\langle\nabla\ell_i(W_t),g_t\rangle+ 8\eta^2\ell_i(W_t)\|g_t\|_F^2. \tag*{(29)} ℓ i ( W t + 1 ) ≤ ℓ i ( W t ) − η ⟨ ∇ ℓ i ( W t ) , g t ⟩ + 8 η 2 ℓ i ( W t ) ∥ g t ∥ F 2 . (29)
Summing (29) over i ∈ [ n ] i \in[n] i ∈ [ n ] and dividing by n n n , we have
L ( W t + 1 ) − L ( W t ) ≤ − η ⟨ ∇ L ( W t ) , g t ⟩ + 8 η 2 L ( W t ) ∥ g t ∥ F 2 . (30) L(W_{t+1}) - L(W_t) \le-\eta\langle\nabla L(W_t),g_t\rangle+ 8\eta^2L(W_t)\|g_t\|_F^2. \tag*{(30)} L ( W t + 1 ) − L ( W t ) ≤ − η ⟨ ∇ L ( W t ) , g t ⟩ + 8 η 2 L ( W t ) ∥ g t ∥ F 2 . (30)
We now take the conditional expectation. Since I t , 1 , … , I t , b I_{t,1},\ldots,I_{t,b} I t , 1 , … , I t , b are conditionally independent and uniformly distributed over [ n ] [n] [ n ] , we have E [ g t ∣ F t ] = ∇ L ( W t ) \mathbb{E}[g_t\mid\mathcal{F}_t]=\nabla L(W_t) E [ g t ∣ F t ] = ∇ L ( W t ) . It follows from (30) that
E [ L ( W t + 1 ) − L ( W t ) ∣ F t ] ≤ − η ∥ ∇ L ( W t ) ∥ F 2 + 8 η 2 L ( W t ) E [ ∥ g t ∥ F 2 ∣ F t ] . (31) \mathbb{E}[L(W_{t+1})-L(W_t)\mid\mathcal{F}_t] \le-\eta\|\nabla L(W_t)\|_F^2+8\eta^2L(W_t)\mathbb{E}[\|g_t\|_F^2\mid\mathcal{F}_t]. \tag*{(31)} E [ L ( W t + 1 ) − L ( W t ) ∣ F t ] ≤ − η ∥∇ L ( W t ) ∥ F 2 + 8 η 2 L ( W t ) E [ ∥ g t ∥ F 2 ∣ F t ] . (31)
From Lemma C.3, we have that
E [ ∥ g t ∥ F 2 ∣ F t ] ≤ ( 1 + 2 n b γ 2 ) ∥ ∇ L ( W t ) ∥ F 2 . (32) \mathbb{E}[\|g_t\|_F^2\mid\mathcal{F}_t] \le\left(1+\frac{2n}{b\gamma^2}\right)\|\nabla L(W_t)\|_F^2. \tag*{(32)} E [ ∥ g t ∥ F 2 ∣ F t ] ≤ ( 1 + b γ 2 2 n ) ∥∇ L ( W t ) ∥ F 2 . (32)
Substituting (32) into (31) , we obtain
E [ L ( W t + 1 ) − L ( W t ) ∣ F t ] ≤ − η [ 1 − 8 η ( 1 + 2 n b γ 2 ) L ( W t ) ] ∥ ∇ L ( W t ) ∥ F 2 . (33) \mathbb{E}[L(W_{t+1})-L(W_t)\mid\mathcal{F}_t] \le-\eta\left[1-8\eta\left(1+\frac{2n}{b\gamma^2}\right)L(W_t)\right]\|\nabla L(W_t)\|_F^2. \tag*{(33)} E [ L ( W t + 1 ) − L ( W t ) ∣ F t ] ≤ − η [ 1 − 8 η ( 1 + b γ 2 2 n ) L ( W t ) ] ∥∇ L ( W t ) ∥ F 2 . (33)
Since L ( W t ) ≤ L ~ L(W_t)\le\widetilde{L} L ( W t ) ≤ L and γ 0 ≤ γ \gamma_0\le\gamma γ 0 ≤ γ , we have
8 η ( 1 + 2 n b γ 2 ) L ( W t ) ≤ 8 η ( 1 + 2 n b γ 0 2 ) 16 η ( 1 + 2 n b γ 0 2 ) = 1 2 . 8\eta\left(1+\frac{2n}{b\gamma^2}\right)L(W_t)\le\frac{8\eta\left(1+\frac{2n}{b\gamma_0^2}\right)}{16\eta\left(1+\frac{2n}{b\gamma_0^2}\right)}=\frac{1}{2}. 8 η ( 1 + b γ 2 2 n ) L ( W t ) ≤ 16 η ( 1 + b γ 0 2 2 n ) 8 η ( 1 + b γ 0 2 2 n ) = 2 1 .
Consequently, (33) gives
E [ L ( W t + 1 ) − L ( W t ) ∣ F t ] ≤ − η 2 ∥ ∇ L ( W t ) ∥ F 2 . (34) \mathbb{E}[L(W_{t+1})-L(W_t)\mid\mathcal{F}_t]\le-\frac{\eta}{2}\|\nabla L(W_t)\|_F^2. \tag*{(34)} E [ L ( W t + 1 ) − L ( W t ) ∣ F t ] ≤ − 2 η ∥∇ L ( W t ) ∥ F 2 . (34)
It remains to lower-bound the full-gradient norm. From Lemma C.1 we have that
∥ ∇ L ( W t ) ∥ F ≥ γ G ( W t ) . \|\nabla L(W_t)\|_F\ge\gamma G(W_t). ∥∇ L ( W t ) ∥ F ≥ γ G ( W t ) .
Since L ( W t ) ≤ L ~ ≤ 1 / n L(W_t) \le\widetilde{L} \le1/n L ( W t ) ≤ L ≤ 1/ n , we have that for every i ∈ [ n ] i \in[n] i ∈ [ n ] it holds that
ℓ i ( W t ) ≤ ∑ j = 1 n ℓ j ( W t ) = n L ( W t ) ≤ 1. \ell_i(W_t) \le\sum_{j=1}^{n} \ell_j(W_t) = nL(W_t) \le1. ℓ i ( W t ) ≤ j = 1 ∑ n ℓ j ( W t ) = n L ( W t ) ≤ 1.
Using 1 − e − u ≥ u / 2 1-e^{-u} \ge u/2 1 − e − u ≥ u /2 for u ∈ [ 0 , 1 ] u \in[0,1] u ∈ [ 0 , 1 ] , we obtain
G ( W t ) = 1 n ∑ i = 1 n ( 1 − e − ℓ i ( W t ) ) ≥ 1 2 n ∑ i = 1 n ℓ i ( W t ) = 1 2 L ( W t ) . (35) \begin{aligned}
G(W_t) &= \frac{1}{n}\sum_{i=1}^{n}\left(1-e^{-\ell_i(W_t)}\right)\\
&\ge\frac{1}{2n}\sum_{i=1}^{n}\ell_i(W_t)\\
&= \frac{1}{2}L(W_t). \tag*{(35)}
\end{aligned} G ( W t ) = n 1 i = 1 ∑ n ( 1 − e − ℓ i ( W t ) ) ≥ 2 n 1 i = 1 ∑ n ℓ i ( W t ) = 2 1 L ( W t ) . (35)
Therefore, it holds that
∥ ∇ L ( W t ) ∥ F 2 ≥ γ 0 2 G ( W t ) 2 ≥ γ 0 2 4 L ( W t ) 2 ≥ γ 0 2 4 L ( W t ) 2 . (36) \begin{aligned}
\left\|\nabla L(W_t)\right\|_F^2 &\ge\gamma_0^2G(W_t)^2\\
&\ge\frac{\gamma_0^2}{4}L(W_t)^2\\
&\ge\frac{\gamma^2_0}{4}L(W_t)^2. \tag*{(36)}
\end{aligned} ∥ ∇ L ( W t ) ∥ F 2 ≥ γ 0 2 G ( W t ) 2 ≥ 4 γ 0 2 L ( W t ) 2 ≥ 4 γ 0 2 L ( W t ) 2 . (36)
Combining (34) and (36) , we get
E [ L ( W t + 1 ) − L ( W t ) ∣ F t ] ≤ − η γ 0 2 8 L ( W t ) 2 . \mathbb{E}\left[L(W_{t+1})-L(W_t)\mid\mathcal{F}_t\right]\le-\frac{\eta\gamma_0^2}{8}L(W_t)^2. E [ L ( W t + 1 ) − L ( W t ) ∣ F t ] ≤ − 8 η γ 0 2 L ( W t ) 2 .
We, next, establish the last-iterate convergence of the killed process Z t = L ( V t ) 1 { σ > t } Z_t=L(V_t)1_{\{\sigma>t\}} Z t = L ( V t ) 1 { σ > t } , which is useful in proving the O ( 1 t ) O\left(\frac{1}{t}\right) O ( t 1 ) of SGD inside the lower-level set in the proof of the main theorem (Theorem 4.1 ).
Lemma C.5 (Last-iterate bound for the killed process). Let Assumption 2.1 hold. On the event { τ δ < ∞ } \{\tau_\delta<\infty\} { τ δ < ∞ } , define V t : = W τ δ + t V_t:=W_{\tau_\delta+t} V t := W τ δ + t and G t : = F τ δ + t \mathcal{G}_t:=\mathcal{F}_{\tau_\delta+t} G t := F τ δ + t . Let σ : = inf { t ≥ 0 : L ( V t ) > L ~ } \sigma:=\inf\{t\ge0:L(V_t)>\widetilde{L}\} σ := inf { t ≥ 0 : L ( V t ) > L } , Z t : = L ( V t ) 1 { σ > t } Z_t:=L(V_t)1_{\{\sigma>t\}} Z t := L ( V t ) 1 { σ > t } . Then, for every integer T ≥ 1 T\ge1 T ≥ 1 , it holds that
E [ Z T ∣ G 0 ] ≤ 8 η γ 0 2 T . \mathbb{E}[Z_T\mid\mathcal{G}_0]\le\frac{8}{\eta\gamma_0^2T}. E [ Z T ∣ G 0 ] ≤ η γ 0 2 T 8 .
Proof. Let A t : = { σ > t } A_t:=\{\sigma>t\} A t := { σ > t } . Since A t + 1 ⊆ A t A_{t+1}\subseteq A_t A t + 1 ⊆ A t , the nonnegativity of the loss and the drift inequality (22) from Lemma C.4 give
E [ Z t + 1 ∣ G t ] = 1 A t E [ L ( V t + 1 ) 1 { L ( V t + 1 ) ≤ L ~ } ∣ G t ] ≤ 1 A t E [ L ( V t + 1 ) ∣ G t ] ≤ 1 A t [ L ( V t ) − η γ 0 2 8 L ( V t ) 2 ] = Z t − η γ 0 2 8 Z t 2 . \begin{aligned}
\mathbb{E}[Z_{t+1}\mid\mathcal{G}_t]
&=1_{A_t}\mathbb{E}\left[L(V_{t+1})1_{\{L(V_{t+1})\le\widetilde{L}\}}\mid\mathcal{G}_t\right]\\
&\le1_{A_t}\mathbb{E}[L(V_{t+1})\mid\mathcal{G}_t]\\
&\le1_{A_t}\left[L(V_t)-\frac{\eta\gamma_0^2}{8}L(V_t)^2\right]\\
&=Z_t-\frac{\eta\gamma_0^2}{8}Z_t^2.
\end{aligned} E [ Z t + 1 ∣ G t ] = 1 A t E [ L ( V t + 1 ) 1 { L ( V t + 1 ) ≤ L } ∣ G t ] ≤ 1 A t E [ L ( V t + 1 ) ∣ G t ] ≤ 1 A t [ L ( V t ) − 8 η γ 0 2 L ( V t ) 2 ] = Z t − 8 η γ 0 2 Z t 2 .
Define a t : = E [ Z t ∣ G 0 ] a_t := \mathbb{E}[Z_t \mid\mathcal{G}_0] a t := E [ Z t ∣ G 0 ] and let C : = η γ 0 2 / 8 C := \eta\gamma_0^2/8 C := η γ 0 2 /8 for brevity. Taking conditional expectations and applying Jensen’s inequality we have
a t + 1 ≤ a t − C a t 2 . a_{t+1} \le a_t - Ca_t^2. a t + 1 ≤ a t − C a t 2 .
It holds that 0 ≤ a t ≤ a 0 = L ( V 0 ) ≤ L ~ 0 \le a_t \le a_0 = L(V_0) \le\widetilde{L} 0 ≤ a t ≤ a 0 = L ( V 0 ) ≤ L and
C a t ≤ C L ~ ≤ γ 0 2 128 ( 1 + 2 n b γ 0 2 ) ≤ 1 128 < 1. Ca_t \le C\widetilde{L} \le\frac{\gamma_0^2}{128\left(1+\frac{2n}{b\gamma_0^2}\right)} \le\frac{1}{128} < 1. C a t ≤ C L ≤ 128 ( 1 + b γ 0 2 2 n ) γ 0 2 ≤ 128 1 < 1.
When a t + 1 > 0 a_{t+1} > 0 a t + 1 > 0 , we obtain
1 a t + 1 ≥ 1 a t ( 1 − C a t ) ≥ 1 a t + C . \frac{1}{a_{t+1}} \ge\frac{1}{a_t(1-Ca_t)} \ge\frac{1}{a_t}+C. a t + 1 1 ≥ a t ( 1 − C a t ) 1 ≥ a t 1 + C .
If a t = 0 a_t=0 a t = 0 for some t ≥ 0 t\ge0 t ≥ 0 , the desired bound is immediate for all later iterations by nonnegativity and the above recursion. Otherwise, summing the reciprocal estimate gives for all T ≥ 1 T\ge1 T ≥ 1
a T ≤ 1 a 0 − 1 + C T ≤ 1 C T = 8 η γ 0 2 T . a_T \le\frac{1}{a_0^{-1}+CT} \le\frac{1}{CT}=\frac{8}{\eta\gamma_0^2T}. a T ≤ a 0 − 1 + C T 1 ≤ C T 1 = η γ 0 2 T 8 .
Proof of Theorem 4.1
Proof Roadmap. We first use the average surrogate-loss bound to show that, with high probability, the dynamics enter the lower-level set within the prescribed number of iterations. Starting from this region, we apply the stable-regime drift inequality to a stopped loss process and use Doob’s maximal inequality to show that the dynamics never leave the larger stable set. We then apply the killed-process comparison to obtain the last-iterate convergence rate on the event of permanent stability. Finally, we combine the entrance, stability, and convergence events through a union bound.
Proof. From Lemma C.2 applied at T = t max ( δ ) T=t_{\max}(\delta) T = t m a x ( δ ) , we have that
1 t max ∑ k = 0 t max − 1 E [ G ( W k ) ] ≤ K − 1 + 2 ln ( γ 0 2 η t max ) + 2 η ( 1 + 1 b ) η γ 0 2 t max . (37) \frac{1}{t_{\max}}\sum_{k=0}^{t_{\max}-1}\mathbb{E}[G(W_k)] \le\frac{\sqrt{K-1}+2\ln(\gamma_0^2\eta t_{\max})+2\eta\left(1+\frac{1}{b}\right)}{\eta\gamma_0^2t_{\max}}. \tag*{(37)} t m a x 1 k = 0 ∑ t m a x − 1 E [ G ( W k )] ≤ η γ 0 2 t m a x K − 1 + 2 ln ( γ 0 2 η t m a x ) + 2 η ( 1 + b 1 ) . (37)
Using inequality ln ( γ 0 2 η t max ) = ln ( γ 0 2 t max ) + ln ( η ) ≤ ln ( γ 0 2 t max ) + η \ln(\gamma_0^2\eta t_{\max})=\ln(\gamma_0^2t_{\max})+\ln(\eta)\le\ln(\gamma_0^2t_{\max})+\eta ln ( γ 0 2 η t m a x ) = ln ( γ 0 2 t m a x ) + ln ( η ) ≤ ln ( γ 0 2 t m a x ) + η , we obtain
1 t max ∑ k = 0 t max − 1 E [ G ( W k ) ] ≤ K − 1 + 2 ln ( γ 0 2 t max ) + 2 η ( 2 + 1 b ) η γ 0 2 t max . (38) \frac{1}{t_{\max}}\sum_{k=0}^{t_{\max}-1}\mathbb{E}[G(W_k)] \le\frac{\sqrt{K-1}+2\ln(\gamma_0^2t_{\max})+2\eta\left(2+\frac{1}{b}\right)}{\eta\gamma_0^2t_{\max}}. \tag*{(38)} t m a x 1 k = 0 ∑ t m a x − 1 E [ G ( W k )] ≤ η γ 0 2 t m a x K − 1 + 2 ln ( γ 0 2 t m a x ) + 2 η ( 2 + b 1 ) . (38)
We, next, select t max t_{\max} t m a x such that the right-hand side of (38) is at most δ 2 L ~ / 18 \delta^2\widetilde{L}/18 δ 2 L /18 . We will show that it suffices to select
t max : = 1 γ 0 2 max { 36 ( K − 1 + 2 η ( 2 + 1 b ) ) η δ 2 L ~ , 288 η δ 2 L ~ ln ( 288 η δ 2 L ~ ) } . (39) t_{\max}:=\frac{1}{\gamma_0^2}\max\left\{\frac{36\left(\sqrt{K-1}+2\eta\left(2+\frac{1}{b}\right)\right)}{\eta\delta^2\widetilde{L}},\frac{288}{\eta\delta^2\widetilde{L}}\ln\left(\frac{288}{\eta\delta^2\widetilde{L}}\right)\right\}. \tag*{(39)} t m a x := γ 0 2 1 max { η δ 2 L 36 ( K − 1 + 2 η ( 2 + b 1 ) ) , η δ 2 L 288 ln ( η δ 2 L 288 ) } . (39)
We, next, verify the formula for the aforementioned t max t_{\max} t m a x :
K − 1 + 2 η ( 2 + 1 η ) η γ 2 t ≤ δ 2 L ~ 36 . \frac{\sqrt{K-1}+2\eta\left(2+\frac{1}{\eta}\right)}{\eta\gamma^{2}t}\le\frac{\delta^{2}\widetilde{L}}{36}. η γ 2 t K − 1 + 2 η ( 2 + η 1 ) ≤ 36 δ 2 L .
For t ≥ 288 η δ 2 L ~ γ 2 ln ( 288 η δ 2 L ~ ) t \ge\frac{288}{\eta\delta^{2}\widetilde{L}\gamma^{2}}\ln\left(\frac{288}{\eta\delta^{2}\widetilde{L}}\right) t ≥ η δ 2 L γ 2 288 ln ( η δ 2 L 288 ) , it holds that γ 2 t ≥ 288 η δ 2 L ~ ln ( 288 η δ 2 L ~ ) \gamma^{2}t\ge\frac{288}{\eta\delta^{2}\widetilde{L}}\ln\left(\frac{288}{\eta\delta^{2}\widetilde{L}}\right) γ 2 t ≥ η δ 2 L 288 ln ( η δ 2 L 288 ) , which is a sufficient condition (see Lemma G.5 in Cai et al. [5 ] ) for
2 ln ( γ 2 t ) η γ 2 t ≤ δ 2 L ~ 36 . \frac{2\ln(\gamma^{2}t)}{\eta\gamma^{2}t}\le\frac{\delta^{2}\widetilde{L}}{36}. η γ 2 t 2 ln ( γ 2 t ) ≤ 36 δ 2 L .
Consequently, we have
1 t max ∑ k = 0 t max − 1 E [ G ( W k ) ] ≤ δ 2 L ~ 18 . (40) \frac{1}{t_{\max}}\sum_{k=0}^{t_{\max}-1}\mathbb{E}[G(W_k)]\le\frac{\delta^{2}\widetilde{L}}{18}. \tag*{(40)} t m a x 1 k = 0 ∑ t m a x − 1 E [ G ( W k )] ≤ 18 δ 2 L . (40)
Since every term in the sum in (40) is nonnegative, there exists an iteration t i n ∈ { 0 , … , t max − 1 } t_{\mathrm{in}}\in\{0,\ldots,t_{\max}-1\} t in ∈ { 0 , … , t m a x − 1 } such that
E [ G ( W t i n ) ] ≤ δ 2 L ~ 18 . (41) \mathbb{E}[G(W_{t_{\mathrm{in}}})]\le\frac{\delta^{2}\widetilde{L}}{18}. \tag*{(41)} E [ G ( W t in )] ≤ 18 δ 2 L . (41)
Let E i n : = { G ( W t i n ) ≤ δ L ~ 6 } \mathcal{E}_{\mathrm{in}}:=\left\{G(W_{t_{\mathrm{in}}})\le\frac{\delta\widetilde{L}}{6}\right\} E in := { G ( W t in ) ≤ 6 δ L } . Since G ( W t i n ) ≥ 0 G(W_{t_{\mathrm{in}}})\ge0 G ( W t in ) ≥ 0 , Markov’s inequality and (41) give
P ( E i n c ) ≤ E [ G ( W t i n ) ] δ L ~ / 6 ≤ δ 2 L ~ / 18 δ L ~ / 6 = δ 3 . (42) \mathbb{P}(\mathcal{E}_{\mathrm{in}}^{c})\le\frac{\mathbb{E}[G(W_{t_{\mathrm{in}}})]}{\delta\widetilde{L}/6}\le\frac{\delta^{2}\widetilde{L}/18}{\delta\widetilde{L}/6}=\frac{\delta}{3}. \tag*{(42)} P ( E in c ) ≤ δ L /6 E [ G ( W t in )] ≤ δ L /6 δ 2 L /18 = 3 δ . (42)
Therefore, we obtain
P ( E i n ) ≥ 1 − δ 3 . (43) \mathbb{P}(\mathcal{E}_{\mathrm{in}})\ge1-\frac{\delta}{3}. \tag*{(43)} P ( E in ) ≥ 1 − 3 δ . (43)
We next show that E i n \mathcal{E}_{\mathrm{in}} E in implies entrance into the lower sublevel set. On E i n \mathcal{E}_{\mathrm{in}} E in , we have
G ( W t i n ) ≤ δ L ~ 6 = L ~ l o w 2 , (44) G(W_{t_{\mathrm{in}}})\le\frac{\delta\widetilde{L}}{6}=\frac{\widetilde{L}_{\mathrm{low}}}{2}, \tag*{(44)} G ( W t in ) ≤ 6 δ L = 2 L low , (44)
where L ~ l o w = δ L ~ 3 \widetilde{L}_{\mathrm{low}}=\frac{\delta\widetilde{L}}{3} L low = 3 δ L is the threshold for the lower level set S l o w \mathcal{S}_{\mathrm{low}} S low . Since L ~ l o w ≤ L ~ ≤ 1 n \widetilde{L}_{\mathrm{low}}\le\widetilde{L}\le\frac{1}{n} L low ≤ L ≤ n 1 , for every i ∈ [ n ] i\in[n] i ∈ [ n ] , we get
1 − p i ( W t i n ) y i ≤ n G ( W t i n ) ≤ (43) n L ~ l o w 2 ≤ 1 2 . (45) \begin{aligned}
1-p_i(W_{t_{\mathrm{in}}})_{y_i}
&\le nG(W_{t_{\mathrm{in}}})\\
&\overset{\text{(43)}}{\le}\frac{n\widetilde{L}_{\mathrm{low}}}{2}\\
&\le\frac{1}{2}. \tag*{(45)}
\end{aligned} 1 − p i ( W t in ) y i ≤ n G ( W t in ) ≤ (43) 2 n L low ≤ 2 1 . (45)
Consequently, it holds that p i ( W t i n ) y i ≥ 1 2 p_i(W_{t_{\mathrm{in}}})_{y_i}\ge\frac{1}{2} p i ( W t in ) y i ≥ 2 1 , i ∈ [ n ] i\in[n] i ∈ [ n ] . Using F ( W ) = 1 n ∑ i = 1 n 1 − p i ( W ) y i p i ( W ) y i F(W)=\frac{1}{n}\sum_{i=1}^{n}\frac{1-p_i(W)_{y_i}}{p_i(W)_{y_i}} F ( W ) = n 1 ∑ i = 1 n p i ( W ) y i 1 − p i ( W ) y i , together with p i ( W t i n ) y i ≥ 1 2 p_i(W_{t_{\mathrm{in}}})_{y_i}\ge\frac{1}{2} p i ( W t in ) y i ≥ 2 1 , i ∈ [ n ] i\in[n] i ∈ [ n ] , we obtain
F ( W t i n ) ≤ 2 n ∑ i = 1 n ( 1 − p i ( W t i n ) y i ) = 2 G ( W t i n ) ≤ (43) L ~ l o w . (46) \begin{aligned}
F(W_{t_{\mathrm{in}}})
&\le\frac{2}{n}\sum_{i=1}^{n}\left(1-p_i(W_{t_{\mathrm{in}}})_{y_i}\right)\\
&=2G(W_{t_{\mathrm{in}}})\\
&\overset{\text{(43)}}{\le}\widetilde{L}_{\mathrm{low}}. \tag*{(46)}
\end{aligned} F ( W t in ) ≤ n 2 i = 1 ∑ n ( 1 − p i ( W t in ) y i ) = 2 G ( W t in ) ≤ (43) L low . (46)
Since L ( W ) ≤ F ( W ) L(W) \le F(W) L ( W ) ≤ F ( W ) for every W ∈ R d × K W \in\mathbb{R}^{d \times K} W ∈ R d × K , it follows that L ( W t i n ) ≤ L ~ l o w L(W_{t_{\mathrm{in}}}) \le\widetilde{L}_{\mathrm{low}} L ( W t in ) ≤ L low . By the definition of τ δ \tau_\delta τ δ , we thus have τ δ ≤ t i n < t max \tau_\delta\le t_{\mathrm{in}} < t_{\max} τ δ ≤ t in < t m a x on E i n \mathcal{E}_{\mathrm{in}} E in . Combining this fact with (43) , we obtain
P ( τ δ ≤ t max ) ≥ 1 − δ 3 . (47) \mathbb{P}\left(\tau_\delta\le t_{\max}\right) \ge1 - \frac{\delta}{3}. \tag*{(47)} P ( τ δ ≤ t m a x ) ≥ 1 − 3 δ . (47)
We next prove that the dynamics remain permanently inside the stable regime for t ≥ τ δ t \ge\tau_\delta t ≥ τ δ . On the event { τ δ < ∞ } \{\tau_\delta< \infty\} { τ δ < ∞ } , let V t : = W τ δ + t V_t := W_{\tau_\delta+t} V t := W τ δ + t , G t : = F τ δ + t \mathcal{G}_t := \mathcal{F}_{\tau_\delta+t} G t := F τ δ + t , and define the exit time σ : = inf { t ≥ 0 : L ( V t ) > L ~ } \sigma:= \inf\{t \ge0 : L(V_t) > \widetilde{L}\} σ := inf { t ≥ 0 : L ( V t ) > L } . Since τ δ \tau_\delta τ δ is a stopping time, σ \sigma σ is a stopping time with respect to ( G t ) t ≥ 0 (\mathcal{G}_t)_{t \ge0} ( G t ) t ≥ 0 . In particular, the events { σ ≤ t } \{\sigma\le t\} { σ ≤ t } and { σ > t } \{\sigma> t\} { σ > t } belong to G t \mathcal{G}_t G t .
Consider the stopped loss process Y t : = L ( V t ∧ σ ) Y_t := L(V_{t \wedge\sigma}) Y t := L ( V t ∧ σ ) . On the event { σ ≤ t } \{\sigma\le t\} { σ ≤ t } , the process has already been stopped, and hence
Y t + 1 = L ( V σ ) = Y t . (48) Y_{t+1} = L(V_\sigma) = Y_t. \tag*{(48)} Y t + 1 = L ( V σ ) = Y t . (48)
On the event { σ > t } \{\sigma> t\} { σ > t } , the dynamics have not left the stable regime. Therefore, we have L ( V t ) ≤ L ~ L(V_t) \le\widetilde{L} L ( V t ) ≤ L and
Y t + 1 = L ( V t + 1 ) . (49) Y_{t+1} = L(V_{t+1}). \tag*{(49)} Y t + 1 = L ( V t + 1 ) . (49)
Applying the stable-regime drift inequality (22) on { σ > t } \{\sigma> t\} { σ > t } , we get
1 { σ > t } E [ L ( V t + 1 ) ∣ G t ] ≤ 1 { σ > t } L ( V t ) . (50) \mathbf{1}_{\{\sigma>t\}}\mathbb{E}\left[L(V_{t+1}) \mid\mathcal{G}_t\right] \le\mathbf{1}_{\{\sigma>t\}}L(V_t). \tag*{(50)} 1 { σ > t } E [ L ( V t + 1 ) ∣ G t ] ≤ 1 { σ > t } L ( V t ) . (50)
Combining (48) and (50) , we obtain
E [ Y t + 1 ∣ G t ] = 1 { σ ≤ t } Y t + 1 { σ > t } E [ L ( V t + 1 ) ∣ G t ] ≤ 1 { σ ≤ t } Y t + 1 { σ > t } L ( V t ) = Y t . (51) \begin{aligned}
\mathbb{E}\left[Y_{t+1} \mid\mathcal{G}_t\right]
&= \mathbf{1}_{\{\sigma\le t\}}Y_t + \mathbf{1}_{\{\sigma>t\}}\mathbb{E}\left[L(V_{t+1}) \mid\mathcal{G}_t\right] \\
&\le\mathbf{1}_{\{\sigma\le t\}}Y_t + \mathbf{1}_{\{\sigma>t\}}L(V_t) \\
&= Y_t. \tag*{(51)}
\end{aligned} E [ Y t + 1 ∣ G t ] = 1 { σ ≤ t } Y t + 1 { σ > t } E [ L ( V t + 1 ) ∣ G t ] ≤ 1 { σ ≤ t } Y t + 1 { σ > t } L ( V t ) = Y t . (51)
where the final equality follows because Y t = L ( V t ) Y_t = L(V_t) Y t = L ( V t ) on { σ > t } \{\sigma> t\} { σ > t } . Since Y t ≥ 0 Y_t \ge0 Y t ≥ 0 , we conclude that ( Y t , G t ) t ≥ 0 (Y_t,\mathcal{G}_t)_{t\ge0} ( Y t , G t ) t ≥ 0 is a nonnegative supermartingale.
By the definition of τ δ \tau_\delta τ δ , we have
Y 0 = L ( W τ δ ) ≤ L ~ l o w = δ 3 L ~ . (52) Y_0 = L(W_{\tau_\delta}) \le\widetilde{L}_{\mathrm{low}} = \frac{\delta}{3}\widetilde{L}. \tag*{(52)} Y 0 = L ( W τ δ ) ≤ L low = 3 δ L . (52)
Moreover, if σ < ∞ \sigma< \infty σ < ∞ , then
Y σ = L ( V σ ) > L ~ . (53) Y_\sigma= L(V_\sigma) > \widetilde{L}. \tag*{(53)} Y σ = L ( V σ ) > L . (53)
Thus, { σ < ∞ } ⊂ { sup t ≥ 0 Y t ≥ L ~ } \{\sigma< \infty\} \subset\{\sup_{t\ge0} Y_t \ge\widetilde{L}\} { σ < ∞ } ⊂ { sup t ≥ 0 Y t ≥ L } . Applying Doob’s maximal inequality conditionally on F τ δ \mathcal{F}_{\tau_\delta} F τ δ , and then using (52) , we get
P ( σ < ∞ ∣ F τ δ ) ≤ P ( sup t ≥ 0 Y t ≥ L ~ ∣ F τ δ ) ≤ Y 0 L ~ ≤ δ 3 . (54) \begin{aligned}
\mathbb{P}\left(\sigma< \infty\mid\mathcal{F}_{\tau_\delta}\right)
&\le\mathbb{P}\left(\left.\sup_{t\ge0}Y_t \ge\widetilde{L}\,\right|\,\mathcal{F}_{\tau_\delta}\right) \\
&\le\frac{Y_0}{\widetilde{L}} \\
&\le\frac{\delta}{3}. \tag*{(54)}
\end{aligned} P ( σ < ∞ ∣ F τ δ ) ≤ P ( t ≥ 0 sup Y t ≥ L F τ δ ) ≤ L Y 0 ≤ 3 δ . (54)
Therefore, conditionally on reaching the lower sublevel set, the probability that the SGD dynamics ever leave the stable regime is at most δ / 3 \delta/3 δ /3 .
It remains to prove the last-iterate convergence estimate. Define the killed process Z t : = L ( W τ δ + t ) 1 { σ > t } Z_t := L(W_{\tau_\delta+t})\mathbf{1}_{\{\sigma>t\}} Z t := L ( W τ δ + t ) 1 { σ > t } . By Lemma C.5, for every admissible integer T ≥ 1 T \ge1 T ≥ 1 , we have
E [ Z T ∣ F τ δ ] ≤ 8 η γ 0 2 T . (55) \mathbb{E}\left[Z_T \mid\mathcal{F}_{\tau_\delta}\right] \le\frac{8}{\eta\gamma_0^2T}. \tag*{(55)} E [ Z T ∣ F τ δ ] ≤ η γ 0 2 T 8 . (55)
Since Z T ≥ 0 Z_T \ge0 Z T ≥ 0 , conditional Markov’s inequality and (55) give
P ( Z T > 24 η δ γ 0 2 T ∣ F τ δ ) ≤ E [ Z T ∣ F τ δ ] 24 η δ γ 0 2 T ≤ δ 3 . (56) \mathbb{P}\left(\left. Z_T > \frac{24}{\eta\delta\gamma_0^2T} \right| \mathcal{F}_{\tau_\delta}\right) \le\frac{\mathbb{E}\left[Z_T \mid\mathcal{F}_{\tau_\delta}\right]}{\frac{24}{\eta\delta\gamma_0^2T}} \le\frac{\delta}{3}. \tag*{(56)} P ( Z T > η δ γ 0 2 T 24 F τ δ ) ≤ η δ γ 0 2 T 24 E [ Z T ∣ F τ δ ] ≤ 3 δ . (56)
On the event { σ = ∞ } \{\sigma= \infty\} { σ = ∞ } , the killed process agrees with the original SGD dynamics. Consequently, we have
Z T = L ( W τ δ + T ) . (57) Z_T = L(W_{\tau_\delta+T}). \tag*{(57)} Z T = L ( W τ δ + T ) . (57)
Let t ≥ 1 t \ge1 t ≥ 1 be the deterministic iteration fixed in the statement and define T : = t − τ δ T := t-\tau_\delta T := t − τ δ . On the event E 0 : = { τ δ < t } \mathcal{E}_0 := \{\tau_\delta< t\} E 0 := { τ δ < t } , we have T ≥ 1 T \ge1 T ≥ 1 . Moreover, since τ δ \tau_\delta τ δ is an ( F t ) t ≥ 0 (\mathcal{F}_t)_{t\ge0} ( F t ) t ≥ 0 -stopping time, T T T is an F τ δ \mathcal{F}_{\tau_\delta} F τ δ -measurable integer. Therefore, Lemma C.5 can be applied conditionally with the random horizon T T T , and we obtain
E [ Z t − τ δ ∣ F τ δ ] ≤ 8 η γ 0 2 ( t − τ δ ) . (58) \mathbb{E}\left[Z_{t-\tau_\delta} \mid\mathcal{F}_{\tau_\delta}\right] \le\frac{8}{\eta\gamma_0^2(t-\tau_\delta)}. \tag*{(58)} E [ Z t − τ δ ∣ F τ δ ] ≤ η γ 0 2 ( t − τ δ ) 8 . (58)
Applying conditional Markov’s inequality to (58) , as in (56) , and using (57) , we get
1 E 0 P ( σ = ∞ , L ( W t ) > 24 η δ γ 0 2 T ∣ F τ δ ) ≤ δ 3 . (59) \mathbf{1}_{\mathcal{E}_0}\mathbb{P}\left(\left. \sigma=\infty,\ L(W_t)>\frac{24}{\eta\delta\gamma_0^2T} \right| \mathcal{F}_{\tau_\delta}\right) \le\frac{\delta}{3}. \tag*{(59)} 1 E 0 P ( σ = ∞ , L ( W t ) > η δ γ 0 2 T 24 F τ δ ) ≤ 3 δ . (59)
We finally combine the entrance, permanence, and convergence events. Let the events
E e n t : = { τ δ ≤ t max } , \mathcal{E}_{\mathrm{ent}} := \{\tau_\delta\le t_{\max}\}, E ent := { τ δ ≤ t m a x } ,
E e x i t : = { σ < ∞ } , \mathcal{E}_{\mathrm{exit}} := \{\sigma< \infty\}, E exit := { σ < ∞ } ,
E r a t e : = { τ δ < t , σ = ∞ , L ( W t ) > 24 η δ γ 0 2 T } . \mathcal{E}_{\mathrm{rate}} := \left\{\tau_\delta< t,\ \sigma=\infty,\ L(W_t)>\frac{24}{\eta\delta\gamma_0^2T}\right\}. E rate := { τ δ < t , σ = ∞ , L ( W t ) > η δ γ 0 2 T 24 } .
From (47) , we have
P ( E e n t c ) ≤ δ 3 . (60) \mathbb{P}\left(\mathcal{E}_{\mathrm{ent}}^c\right) \le\frac{\delta}{3}. \tag*{(60)} P ( E ent c ) ≤ 3 δ . (60)
Using (54) and the tower property, we obtain
P ( E e x i t ∩ E e n t ) = E [ 1 E e n t P ( σ < ∞ ∣ F τ δ ) ] ≤ δ 3 . (61) \mathbb{P}\left(\mathcal{E}_{\mathrm{exit}}\cap\mathcal{E}_{\mathrm{ent}}\right)
= \mathbb{E}\left[\mathbf{1}_{\mathcal{E}_{\mathrm{ent}}}\mathbb{P}\left(\left.\sigma<\infty\right|\mathcal{F}_{\tau_\delta}\right)\right]
\le\frac{\delta}{3}. \tag*{(61)} P ( E exit ∩ E ent ) = E [ 1 E ent P ( σ < ∞ ∣ F τ δ ) ] ≤ 3 δ . (61)
From (59) and the tower property, we get
P ( E r a t e ∩ E e n t ) = E [ 1 E e n t P ( E r a t e ∣ F τ δ ) ] ≤ δ 3 . (62) \mathbb{P}\left(\mathcal{E}_{\mathrm{rate}}\cap\mathcal{E}_{\mathrm{ent}}\right)
= \mathbb{E}\left[\mathbf{1}_{\mathcal{E}_{\mathrm{ent}}}\mathbb{P}\left(\left.\mathcal{E}_{\mathrm{rate}}\right|\mathcal{F}_{\tau_\delta}\right)\right]
\le\frac{\delta}{3}. \tag*{(62)} P ( E rate ∩ E ent ) = E [ 1 E ent P ( E rate ∣ F τ δ ) ] ≤ 3 δ . (62)
Applying the union bound and using (60) , (61) , and (62) , we conclude that the entrance-time bound, permanent stability, and last-iterate convergence estimate hold simultaneously with probability at least
1 − δ 3 − δ 3 − δ 3 = 1 − δ . (63) 1-\frac{\delta}{3}-\frac{\delta}{3}-\frac{\delta}{3}=1-\delta. \tag*{(63)} 1 − 3 δ − 3 δ − 3 δ = 1 − δ . (63)
Proof of Corollary 4.2
The constants in Corollary 4.2 are
c 0 : = γ 0 2 δ 2 288 ( 2 + 1 b ) M , T 0 ( c ) : = max { 4 + 144 M γ 0 2 δ 2 ( K − 1 + 8 ln 288 M δ 2 ) , n M c } . c_0:=\frac{\gamma_0^2\delta^2}{288\left(2+\frac{1}{b}\right)M},\qquad T_0(c):=\max\left\{4+\frac{144M}{\gamma_0^2\delta^2}\left(\sqrt{K-1}+8\ln\frac{288M}{\delta^2}\right),\frac{n}{Mc}\right\}. c 0 := 288 ( 2 + b 1 ) M γ 0 2 δ 2 , T 0 ( c ) := max { 4 + γ 0 2 δ 2 144 M ( K − 1 + 8 ln δ 2 288 M ) , M c n } .
where M : = max { 16 ( 1 + 2 n b γ 0 2 ) , 2 n } M:=\max\left\{16\left(1+\frac{2n}{b\gamma_0^2}\right),\sqrt{2n}\right\} M := max { 16 ( 1 + b γ 0 2 2 n ) , 2 n } .
Proof. We first show that T ≥ 2 t max T\ge2t_{\max} T ≥ 2 t m a x . By the definition of M M M , the first two terms in the definition of L ~ \widetilde{L} L satisfy
min { 1 16 n ( 1 + 2 n b γ 0 2 ) , 1 2 n } = 1 η M , \min\left\{\frac{1}{16n\left(1+\frac{2n}{b\gamma_0^2}\right)},\frac{1}{\sqrt{2n}}\right\}=\frac{1}{\eta M}, min ⎩ ⎨ ⎧ 16 n ( 1 + b γ 0 2 2 n ) 1 , 2 n 1 ⎭ ⎬ ⎫ = η M 1 ,
and thus L ~ = min { 1 η M , 1 n } \widetilde{L}=\min\left\{\frac{1}{\eta M},\frac{1}{n}\right\} L = min { η M 1 , n 1 } . Since T ≥ T 0 ( c ) ≥ n M c T\ge T_0(c)\ge\frac{n}{Mc} T ≥ T 0 ( c ) ≥ M c n , we have η = c T ≥ n M \eta=cT\ge\frac{n}{M} η = c T ≥ M n , and thus 1 η M ≤ 1 n \frac{1}{\eta M}\le\frac{1}{n} η M 1 ≤ n 1 . Hence, L ~ = 1 η M \widetilde{L}=\frac{1}{\eta M} L = η M 1 . Using max { x , y } ≤ x + y \max\{x,y\}\le x+y max { x , y } ≤ x + y and γ 0 ≤ γ \gamma_0\le\gamma γ 0 ≤ γ in (39) , we get
2 t max ≤ 2 + 2 γ 0 2 δ 2 [ 36 M K − 1 + 288 M ln 288 M δ 2 ] + 144 ( 2 + 1 b ) M γ 0 2 δ 2 c T . 2t_{\max}\le2+\frac{2}{\gamma_0^2\delta^2}\left[36M\sqrt{K-1}+288M\ln\frac{288M}{\delta^2}\right]+\frac{144\left(2+\frac{1}{b}\right)M}{\gamma_0^2\delta^2}cT. 2 t m a x ≤ 2 + γ 0 2 δ 2 2 [ 36 M K − 1 + 288 M ln δ 2 288 M ] + γ 0 2 δ 2 144 ( 2 + b 1 ) M c T .
Since c ≤ c 0 = γ 0 2 δ 2 288 ( 2 + 1 b ) M c\le c_0=\frac{\gamma_0^2\delta^2}{288\left(2+\frac{1}{b}\right)M} c ≤ c 0 = 288 ( 2 + b 1 ) M γ 0 2 δ 2 , the last term satisfies 144 ( 2 + 1 b ) M γ 0 2 δ 2 c T ≤ T 2 \frac{144\left(2+\frac{1}{b}\right)M}{\gamma_0^2\delta^2}cT\le\frac{T}{2} γ 0 2 δ 2 144 ( 2 + b 1 ) M c T ≤ 2 T . Moreover, since T ≥ T 0 ( c ) ≥ 4 + 144 M γ 0 2 δ 2 ( K − 1 + 8 ln 288 M δ 2 ) T\ge T_0(c)\ge4+\frac{144M}{\gamma_0^2\delta^2}\left(\sqrt{K-1}+8\ln\frac{288M}{\delta^2}\right) T ≥ T 0 ( c ) ≥ 4 + γ 0 2 δ 2 144 M ( K − 1 + 8 ln δ 2 288 M ) , we have
2 + 2 γ 0 2 δ 2 [ 36 M K − 1 + 288 M ln 288 M δ 2 ] = 1 2 ( 4 + 144 M γ 0 2 δ 2 ( K − 1 + 8 ln 288 M δ 2 ) ) ≤ T 2 . 2+\frac{2}{\gamma_0^2\delta^2}\left[36M\sqrt{K-1}+288M\ln\frac{288M}{\delta^2}\right]=\frac{1}{2}\left(4+\frac{144M}{\gamma_0^2\delta^2}\left(\sqrt{K-1}+8\ln\frac{288M}{\delta^2}\right)\right)\le\frac{T}{2}. 2 + γ 0 2 δ 2 2 [ 36 M K − 1 + 288 M ln δ 2 288 M ] = 2 1 ( 4 + γ 0 2 δ 2 144 M ( K − 1 + 8 ln δ 2 288 M ) ) ≤ 2 T .
Thus, T ≥ 2 t max T\ge2t_{\max} T ≥ 2 t m a x .
From Theorem 4.1, we have with probability at least 1 − δ 1-\delta 1 − δ that τ δ ≤ t max \tau_\delta\le t_{\max} τ δ ≤ t m a x . For T ≥ 2 t max T\ge2t_{\max} T ≥ 2 t m a x , we obtain τ δ ≤ T 2 \tau_\delta\le\frac{T}{2} τ δ ≤ 2 T . Therefore, it holds
T − τ δ ≥ T 2 . (64) T-\tau_\delta\ge\frac{T}{2}. \tag*{(64)} T − τ δ ≥ 2 T . (64)
Applying Theorem 4.1 at iteration T T T , we get with probability at least 1 − δ 1-\delta 1 − δ that
L ( W T ) ≤ 24 δ γ 0 2 η ( T − τ δ ) ≤ 24 δ γ 0 2 η ( T / 2 ) = 48 δ γ 0 2 η T . (65) \begin{aligned}
L(W_T)&\le\frac{24}{\delta\gamma_0^2\eta(T-\tau_\delta)}\\
&\le\frac{24}{\delta\gamma_0^2\eta(T/2)}\\
&=\frac{48}{\delta\gamma_0^2\eta T}. \tag*{(65)}
\end{aligned} L ( W T ) ≤ δ γ 0 2 η ( T − τ δ ) 24 ≤ δ γ 0 2 η ( T /2 ) 24 = δ γ 0 2 η T 48 . (65)
Substituting η = c T \eta=cT η = c T , we have with probability at least 1 − δ 1-\delta 1 − δ that
L ( W T ) ≤ 48 δ γ 0 2 c T 2 = O ( 1 T 2 ) L(W_T)\le\frac{48}{\delta\gamma_0^2 cT^2}=O\left(\frac{1}{T^2}\right) L ( W T ) ≤ δ γ 0 2 c T 2 48 = O ( T 2 1 )
□ \square □
Proofs for Two-Layer Neural Networks
We provide the analysis of SGD for the two-layer neural network (6) under the multi-class cross-entropy loss with any step size η ~ = m η > 0 \widetilde{\eta}=m\eta>0 η = m η > 0 .
Notation
For each sample ( x i , y i ) (x_i,y_i) ( x i , y i ) , let
z i ( W ) = 1 m ∑ r = 1 m a r ϕ ( x i T W ( r ) ) ∈ R K , p i ( W ) = softmax ( z i ( W ) ) . z_i(W)=\frac{1}{m}\sum_{r=1}^{m}a_r\phi(x_i^\mathsf{T}W^{(r)})\in\mathbb{R}^{K},\qquad p_i(W)=\operatorname{softmax}(z_i(W)). z i ( W ) = m 1 r = 1 ∑ m a r ϕ ( x i T W ( r ) ) ∈ R K , p i ( W ) = softmax ( z i ( W )) .
The gradient and Hessian of the cross-entropy loss evaluated at the sample ( x i , y i ) (x_i,y_i) ( x i , y i ) are given by
∇ ℓ i ( W ) = J i ( W ) T ( p i ( W ) − e y i ) (66) \nabla\ell_i(W)=J_i(W)^\mathsf{T}\left(p_i(W)-e_{y_i}\right) \tag*{(66)} ∇ ℓ i ( W ) = J i ( W ) T ( p i ( W ) − e y i ) (66)
∇ 2 ℓ i ( W ) = J i ( W ) T ( diag ( p i ( W ) ) − p i ( W ) p i ( W ) T ) J i ( W ) + ∑ k = 1 K ( p i ( W ) k − 1 { k = y i } ) ∇ 2 z i ( W ) k , (67) \begin{aligned}
\nabla^2\ell_i(W)
={}&J_i(W)^\mathsf{T}\left(\operatorname{diag}(p_i(W))-p_i(W)p_i(W)^\mathsf{T}\right)J_i(W)\\
&+\sum_{k=1}^{K}\left(p_i(W)_k-\mathbb{1}_{\{k=y_i\}}\right)\nabla^2z_i(W)_k, \tag*{(67)}
\end{aligned} ∇ 2 ℓ i ( W ) = J i ( W ) T ( diag ( p i ( W )) − p i ( W ) p i ( W ) T ) J i ( W ) + k = 1 ∑ K ( p i ( W ) k − 1 { k = y i } ) ∇ 2 z i ( W ) k , (67)
where J i ( W ) J_i(W) J i ( W ) is the Jacobian of W ↦ z i ( W ) W\mapsto z_i(W) W ↦ z i ( W ) . We define the lifted comparator
W ‾ ∗ = ( a 1 W ∗ , … , a m W ∗ ) ∈ R m d × K \overline{W}_*=(a_1W_*,\ldots,a_mW_*)\in\mathbb{R}^{md\times K} W ∗ = ( a 1 W ∗ , … , a m W ∗ ) ∈ R m d × K
with ∥ W ‾ ∗ ∥ F = m \lVert\overline{W}_*\rVert_F=\sqrt{m} ∥ W ∗ ∥ F = m and let c ϕ : = 1 m ∑ r = 1 m a r 2 = 1 m c_\phi:=\frac{1}{m}\sum_{r=1}^{m}a_r^2=\frac{1}{m} c ϕ := m 1 ∑ r = 1 m a r 2 = m 1 , since a r ∈ { ± 1 } a_r\in\{\pm1\} a r ∈ { ± 1 } . We define the potential functions F , G : R m d × K → R ≥ 0 F,G:\mathbb{R}^{md\times K}\to\mathbb{R}_{\ge0} F , G : R m d × K → R ≥ 0 as follows
F ( W ) = 1 n ∑ i = 1 n ∑ j ≠ y i exp ( − ( z i ( W ) y i − z i ( W ) j ) ) (68) F(W)=\frac{1}{n}\sum_{i=1}^{n}\sum_{j\ne y_i}\exp\left(-(z_i(W)_{y_i}-z_i(W)_j)\right) \tag*{(68)} F ( W ) = n 1 i = 1 ∑ n j = y i ∑ exp ( − ( z i ( W ) y i − z i ( W ) j ) ) (68)
G ( W ) = 1 n ∑ i = 1 n ( 1 − p i ( W ) y i ) . (69) G(W)=\frac{1}{n}\sum_{i=1}^{n}\left(1-p_i(W)_{y_i}\right). \tag*{(69)} G ( W ) = n 1 i = 1 ∑ n ( 1 − p i ( W ) y i ) . (69)
Since log ( 1 + u ) ≤ u \log(1+u)\le u log ( 1 + u ) ≤ u for u ∈ ( 0 , 1 ] u\in(0,1] u ∈ ( 0 , 1 ] , it follows that
G ( W ) ≤ L ( W ) ≤ F ( W ) . (70) G(W)\le L(W)\le F(W). \tag*{(70)} G ( W ) ≤ L ( W ) ≤ F ( W ) . (70)
Preparatory Lemmas
We first provide some preparatory lemmas that will be useful in the proof of the main theorem. We start by providing a lemma bounding the norm of the gradient of the loss by the loss and the potential G ( ⋅ ) G(\cdot) G ( ⋅ ) .
Lemma D.1. (Emmanouilidis et al., [11 ] ) For every W ∈ R m d × K W \in\mathbb{R}^{md \times K} W ∈ R m d × K , it holds for every i ∈ [ n ] i \in[n] i ∈ [ n ] that
∥ ∇ ℓ i ( W ) ∥ F ≤ 2 m ( 1 − p i ( W ) y i ) ≤ 2 m ℓ i ( W ) ≤ 2 m n L ( W ) , (71) \lVert\nabla\ell_i(W) \rVert_F \le\sqrt{\frac{2}{m}}(1-p_i(W)_{y_i}) \le\sqrt{\frac{2}{m}}\ell_i(W) \le\sqrt{\frac{2}{m}}nL(W), \tag*{(71)} ∥ ∇ ℓ i ( W ) ∥ F ≤ m 2 ( 1 − p i ( W ) y i ) ≤ m 2 ℓ i ( W ) ≤ m 2 n L ( W ) , (71) ∥ ∇ L ( W ) ∥ F ≤ 2 m G ( W ) ≤ 2 m L ( W ) . (72) \lVert\nabla L(W) \rVert_F \le\sqrt{\frac{2}{m}}G(W) \le\sqrt{\frac{2}{m}}L(W). \tag*{(72)} ∥ ∇ L ( W ) ∥ F ≤ m 2 G ( W ) ≤ m 2 L ( W ) . (72) Moreover, under Assumption 2.1 it holds that
m ∥ ∇ L ( W ) ∥ F ≥ γ ~ G ( W ) . (73) \sqrt{m}\lVert\nabla L(W) \rVert_F \ge\widetilde{\gamma}G(W). \tag*{(73)} m ∥ ∇ L ( W ) ∥ F ≥ γ G ( W ) . (73)
We, next, provide a Lemma establishing the self-bounded property of the cross-entropy loss with two-layer NNs.
Lemma D.2. (Emmanouilidis et al., [11 ] ) Under Assumption 5.1, for any W ∈ R m d × K W \in\mathbb{R}^{md \times K} W ∈ R m d × K and i ∈ [ n ] i \in[n] i ∈ [ n ] it holds that
∥ ∇ 2 ℓ i ( W ) ∥ o p ≤ 2 ( 1 + β ~ ) m ℓ i ( W ) , ∥ ∇ 2 L ( W ) ∥ o p ≤ 2 ( 1 + β ~ ) m L ( W ) . (74) \lVert\nabla^2 \ell_i(W) \rVert_{\mathrm{op}} \le\frac{2(1+\widetilde{\beta})}{m}\ell_i(W), \qquad\lVert\nabla^2 L(W) \rVert_{\mathrm{op}} \le\frac{2(1+\widetilde{\beta})}{m}L(W). \tag*{(74)} ∥ ∇ 2 ℓ i ( W ) ∥ op ≤ m 2 ( 1 + β ) ℓ i ( W ) , ∥ ∇ 2 L ( W ) ∥ op ≤ m 2 ( 1 + β ) L ( W ) . (74)
We next bound the potential function G ( W ) G(W) G ( W ) , which serves as an upper bound on critical quantities appearing in the main theorem.
Lemma D.3. (Emmanouilidis et al., [11 ] ) The iterates of SGD for the two-layer network (6) with any step size η ~ = m η > 0 \widetilde{\eta}=m\eta>0 η = m η > 0 and batch size b ≥ 1 b\ge1 b ≥ 1 satisfy
1 t ∑ k = 0 t − 1 E [ G ( W k ) ] ≤ 2 ( K − 1 + 2 ln ( γ ~ 2 η t ) + 4 κ + 2 η ( 1 + 1 b ) ) η γ ~ 2 t \frac{1}{t}\sum_{k=0}^{t-1}\mathbb{E}[G(W_k)] \le\frac{2(K-1+2\ln(\widetilde{\gamma}^{2}\eta t)+4\kappa+2\eta(1+\frac{1}{b}))}{\eta\widetilde{\gamma}^{2}t} t 1 k = 0 ∑ t − 1 E [ G ( W k )] ≤ η γ 2 t 2 ( K − 1 + 2 ln ( γ 2 η t ) + 4 κ + 2 η ( 1 + b 1 )) where G ( W ) = 1 n ∑ i = 1 n ( 1 − p i ( W ) y i ) G(W)=\frac{1}{n}\sum_{i=1}^{n}(1-p_i(W)_{y_i}) G ( W ) = n 1 ∑ i = 1 n ( 1 − p i ( W ) y i ) .
We next provide a descent Lemma for the iterates inside the stable regime.
Lemma D.4. If for some t ≥ 0 t\ge0 t ≥ 0 the iterates of SGD for the two-layer network (6) satisfy L ( W t ) ≤ L ~ N N L(W_t)\le\widetilde{L}_{NN} L ( W t ) ≤ L N N , then it holds that
E [ L ( W k + 1 ) ∣ F k ] ≤ L ( W k ) − η γ ~ 0 2 8 L ( W k ) 2 . (75) \mathbb{E}[L(W_{k+1})\mid\mathcal{F}_k]\le L(W_k)-\frac{\eta\widetilde{\gamma}_0^2}{8}L(W_k)^2. \tag*{(75)} E [ L ( W k + 1 ) ∣ F k ] ≤ L ( W k ) − 8 η γ 0 2 L ( W k ) 2 . (75)
Proof. From inequality (201) in Lemma D.12 of Emmanouilidis et al. [11 ] we have
E [ L ( W k + 1 ) − L ( W k ) ∣ F k ] ≤ − η ~ [ 1 − 8 η ( 1 + β ~ ) ( 1 + 2 n b γ ~ 0 2 ) L ( W k ) ] ∥ ∇ L ( W k ) ∥ F 2 . (76) \mathbb{E}[L(W_{k+1})-L(W_k)\mid\mathcal{F}_k]\le-\widetilde{\eta}\left[1-8\eta(1+\widetilde{\beta})\left(1+\frac{2n}{b\widetilde{\gamma}_0^2}\right)L(W_k)\right]\lVert\nabla L(W_k)\rVert_F^2. \tag*{(76)} E [ L ( W k + 1 ) − L ( W k ) ∣ F k ] ≤ − η [ 1 − 8 η ( 1 + β ) ( 1 + b γ 0 2 2 n ) L ( W k ) ] ∥ ∇ L ( W k ) ∥ F 2 . (76)
If W k ∈ S N N W_k\in S_{NN} W k ∈ S N N , then
L ( W k ) ≤ 1 16 η ( 1 + β ~ ) ( 1 + 2 n b γ ~ 0 2 ) . L(W_k)\le\frac{1}{16\eta(1+\widetilde{\beta})\left(1+\frac{2n}{b\widetilde{\gamma}_0^2}\right)}. L ( W k ) ≤ 16 η ( 1 + β ) ( 1 + b γ 0 2 2 n ) 1 .
Since γ ~ 0 ≤ γ ~ \widetilde{\gamma}_0 \le\widetilde{\gamma} γ 0 ≤ γ , we have
8 η ( 1 + β ~ ) ( 1 + 2 n b γ ~ 2 ) L ( W k ) ≤ 8 η ( 1 + β ~ ) ( 1 + 2 n b γ ~ 0 2 ) L ( W k ) ≤ 1 2 . (77) 8\eta(1+\widetilde{\beta})\left(1+\frac{2n}{b\widetilde{\gamma}^{2}}\right)L(W_k) \le8\eta(1+\widetilde{\beta})\left(1+\frac{2n}{b\widetilde{\gamma}_0^{2}}\right)L(W_k) \le\frac{1}{2}. \tag*{(77)} 8 η ( 1 + β ) ( 1 + b γ 2 2 n ) L ( W k ) ≤ 8 η ( 1 + β ) ( 1 + b γ 0 2 2 n ) L ( W k ) ≤ 2 1 . (77)
Substituting this inequality into (76) , we obtain
E [ L ( W k + 1 ) − L ( W k ) ∣ F k ] ≤ − η ~ 2 ∥ ∇ L ( W k ) ∥ F 2 . (78) \mathbb{E}\left[L(W_{k+1})-L(W_k)\mid\mathcal{F}_k\right]\le-\frac{\widetilde{\eta}}{2}\|\nabla L(W_k)\|_F^2. \tag*{(78)} E [ L ( W k + 1 ) − L ( W k ) ∣ F k ] ≤ − 2 η ∥∇ L ( W k ) ∥ F 2 . (78)
From Lemma D.1, inequality (73) gives
m ∥ ∇ L ( W k ) ∥ F ≥ γ ~ G ( W k ) ≥ γ ~ 0 G ( W k ) . (79) \sqrt{m}\|\nabla L(W_k)\|_F \ge\widetilde{\gamma}G(W_k)\ge\widetilde{\gamma}_0G(W_k). \tag*{(79)} m ∥∇ L ( W k ) ∥ F ≥ γ G ( W k ) ≥ γ 0 G ( W k ) . (79)
Moreover, since L ( W k ) ≤ L ~ N N ≤ 1 2 n e κ + 2 ≤ 1 n L(W_k)\le\widetilde{L}_{NN}\le\frac{1}{2ne^{\kappa+2}}\le\frac{1}{n} L ( W k ) ≤ L N N ≤ 2 n e κ + 2 1 ≤ n 1 , every individual loss satisfies
0 ≤ ℓ i ( W k ) ≤ n L ( W k ) ≤ 1. 0\le\ell_i(W_k)\le nL(W_k)\le1. 0 ≤ ℓ i ( W k ) ≤ n L ( W k ) ≤ 1.
Since p i ( W k ) y i = e − ℓ i ( W k ) p_i(W_k)y_i=e^{-\ell_i(W_k)} p i ( W k ) y i = e − ℓ i ( W k ) and 1 − e − x ≥ x 2 1-e^{-x}\ge\frac{x}{2} 1 − e − x ≥ 2 x , x ∈ [ 0 , 1 ] x\in[0,1] x ∈ [ 0 , 1 ] , we obtain
G ( W k ) = 1 n ∑ i = 1 n ( 1 − e − ℓ i ( W k ) ) ≥ 1 2 n ∑ i = 1 n ℓ i ( W k ) = 1 2 L ( W k ) . (80) \begin{aligned}
G(W_k)=\frac{1}{n}\sum_{i=1}^{n}\left(1-e^{-\ell_i(W_k)}\right) \\
&\ge\frac{1}{2n}\sum_{i=1}^{n}\ell_i(W_k)=\frac{1}{2}L(W_k). \tag*{(80)}
\end{aligned} G ( W k ) = n 1 i = 1 ∑ n ( 1 − e − ℓ i ( W k ) ) ≥ 2 n 1 i = 1 ∑ n ℓ i ( W k ) = 2 1 L ( W k ) . (80)
Combining (79) and (80) , we obtain
m ∥ ∇ L ( W k ) ∥ F ≥ γ ~ 0 2 L ( W k ) , \sqrt{m}\|\nabla L(W_k)\|_F\ge\frac{\widetilde{\gamma}_0}{2}L(W_k), m ∥∇ L ( W k ) ∥ F ≥ 2 γ 0 L ( W k ) ,
and therefore
∥ ∇ L ( W k ) ∥ F 2 ≥ γ ~ 0 2 4 m L ( W k ) 2 . (81) \|\nabla L(W_k)\|_F^2\ge\frac{\widetilde{\gamma}_0^2}{4m}L(W_k)^2. \tag*{(81)} ∥∇ L ( W k ) ∥ F 2 ≥ 4 m γ 0 2 L ( W k ) 2 . (81)
Substituting (81) into (78) , and using η ~ = m η \widetilde{\eta}=m\eta η = m η , we get
E [ L ( W k + 1 ) ∣ F k ] ≤ L ( W k ) − m η γ ~ 0 2 8 L ( W k ) 2 . (82) \mathbb{E}\left[L(W_{k+1})\mid\mathcal{F}_k\right]\le L(W_k)-\frac{m\eta\widetilde{\gamma}_0^2}{8}L(W_k)^2. \tag*{(82)} E [ L ( W k + 1 ) ∣ F k ] ≤ L ( W k ) − 8 m η γ 0 2 L ( W k ) 2 . (82)
Lemma D.5 (Last-iterate bound for the killed process). Condition on the event { τ δ N N < ∞ } \{\tau_{\delta}^{NN}<\infty\} { τ δ N N < ∞ } , and define V t : = W τ δ N N + t V_t:=W_{\tau_{\delta}^{NN}+t} V t := W τ δ N N + t , G t : = F τ δ N N + t G_t:=\mathcal{F}_{\tau_{\delta}^{NN}+t} G t := F τ δ N N + t . Let σ : = inf { t ≥ 0 : L ( V t ) > L ~ N N } \sigma:=\inf\{t\ge0:L(V_t)>\widetilde{L}_{NN}\} σ := inf { t ≥ 0 : L ( V t ) > L N N } be the first exit time from the stable set after τ δ N N \tau_{\delta}^{NN} τ δ N N , and define the killed loss process Z t : = L ( V t ) 1 { σ > t } Z_t:=L(V_t)\mathbf{1}_{\{\sigma>t\}} Z t := L ( V t ) 1 { σ > t } . Then, for every integer t ≥ 1 t\ge1 t ≥ 1 , on the event { τ δ N N < t } \{\tau_{\delta}^{NN}<t\} { τ δ N N < t } , we have
E [ Z t − τ δ N N ∣ F τ δ N N ] ≤ 8 η γ ~ 0 2 ( t − τ δ N N ) . (83) \mathbb{E}\left[Z_{t-\tau_{\delta}^{NN}}\mid\mathcal{F}_{\tau_{\delta}^{NN}}\right]\le\frac{8}{\eta\widetilde{\gamma}_0^2(t-\tau_{\delta}^{NN})}. \tag*{(83)} E [ Z t − τ δ N N ∣ F τ δ N N ] ≤ η γ 0 2 ( t − τ δ N N ) 8 . (83)
Proof. Let A t : = { σ > t } A_t := \{\sigma> t\} A t := { σ > t } , Z t : = L ( V t ) 1 A t Z_t := L(V_t)1_{A_t} Z t := L ( V t ) 1 A t . Since A t + 1 = A t ∩ { L ( V t + 1 ) ≤ L ~ N N } A_{t+1} = A_t \cap\{L(V_{t+1}) \le\widetilde{L}_{NN}\} A t + 1 = A t ∩ { L ( V t + 1 ) ≤ L N N } , the nonnegativity of the loss and (75) imply
E [ Z t + 1 ∣ G t ] ≤ 1 A t E [ L ( V t + 1 ) ∣ G t ] ≤ 1 A t [ L ( V t ) − η γ ~ 0 2 8 L ( V t ) 2 ] = Z t − η γ ~ 0 2 8 Z t 2 . (84) \begin{aligned}
\mathbb{E}[Z_{t+1} \mid\mathcal{G}_t] &\le1_{A_t}\mathbb{E}[L(V_{t+1}) \mid\mathcal{G}_t] \\
&\le1_{A_t}\left[L(V_t)-\frac{\eta\widetilde{\gamma}_0^2}{8}L(V_t)^2\right] \\
&= Z_t-\frac{\eta\widetilde{\gamma}_0^2}{8}Z_t^2. \tag*{(84)}
\end{aligned} E [ Z t + 1 ∣ G t ] ≤ 1 A t E [ L ( V t + 1 ) ∣ G t ] ≤ 1 A t [ L ( V t ) − 8 η γ 0 2 L ( V t ) 2 ] = Z t − 8 η γ 0 2 Z t 2 . (84)
Define a t : = E [ Z t ∣ G 0 ] a_t := \mathbb{E}[Z_t \mid\mathcal{G}_0] a t := E [ Z t ∣ G 0 ] , C N N : = η γ ~ 0 2 8 C_{NN} := \frac{\eta\widetilde{\gamma}_0^2}{8} C N N := 8 η γ 0 2 . Taking conditional expectation in (84) and using conditional Jensen’s inequality, we obtain
a t + 1 ≤ a t − C N N a t 2 . (85) a_{t+1} \le a_t-C_{NN}a_t^2. \tag*{(85)} a t + 1 ≤ a t − C N N a t 2 . (85)
We have that a t ≤ a 0 ≤ L ~ N N a_t \le a_0 \le\widetilde{L}_{NN} a t ≤ a 0 ≤ L N N . Moreover, it holds
C N N a t ≤ C N N L ~ N N ≤ η γ ~ 0 2 8 1 16 η ( 1 + β ~ ) ( 1 + 2 n β ~ γ ~ 0 2 ) ≤ 1 128 < 1. (86) \begin{aligned}
C_{NN}a_t &\le C_{NN}\widetilde{L}_{NN} \\
&\le\frac{\eta\widetilde{\gamma}_0^2}{8}\frac{1}{16\eta(1+\widetilde{\beta})\left(1+\frac{2n}{\widetilde{\beta}\widetilde{\gamma}_0^2}\right)} \\
&\le\frac{1}{128}<1. \tag*{(86)}
\end{aligned} C N N a t ≤ C N N L N N ≤ 8 η γ 0 2 16 η ( 1 + β ) ( 1 + β γ 0 2 2 n ) 1 ≤ 128 1 < 1. (86)
If a t + 1 > 0 a_{t+1}>0 a t + 1 > 0 , then (85) gives
1 a t + 1 ≥ 1 a t ( 1 − C N N a t ) ≥ 1 + C N N a t a t = 1 a t + C N N , (87) \begin{aligned}
\frac{1}{a_{t+1}} &\ge\frac{1}{a_t(1-C_{NN}a_t)} \\
&\ge\frac{1+C_{NN}a_t}{a_t}=\frac{1}{a_t}+C_{NN}, \tag*{(87)}
\end{aligned} a t + 1 1 ≥ a t ( 1 − C N N a t ) 1 ≥ a t 1 + C N N a t = a t 1 + C N N , (87)
where we used ( 1 − x ) − 1 ≥ 1 + x (1-x)^{-1}\ge1+x ( 1 − x ) − 1 ≥ 1 + x for x ∈ [ 0 , 1 ) x\in[0,1) x ∈ [ 0 , 1 ) . If a t + 1 = 0 a_{t+1}=0 a t + 1 = 0 , the desired upper bound is immediate. Unrolling the aforementioned inequality gives, for every integer T ≥ 1 T\ge1 T ≥ 1 , that
a T ≤ 1 a 0 − 1 + C N N T ≤ 1 C N N T = 8 η γ ~ 0 2 T . (88) a_T\le\frac{1}{a_0^{-1}+C_{NN}T}\le\frac{1}{C_{NN}T}=\frac{8}{\eta\widetilde{\gamma}_0^2T}. \tag*{(88)} a T ≤ a 0 − 1 + C N N T 1 ≤ C N N T 1 = η γ 0 2 T 8 . (88)
Fix an integer t ≥ 1 t\ge1 t ≥ 1 . On the event { τ δ N N < t } \{\tau_{\delta}^{NN}<t\} { τ δ N N < t } , we have t − τ δ N N ≥ 1 t-\tau_{\delta}^{NN}\ge1 t − τ δ N N ≥ 1 . Applying (88) conditionally for each possible value of τ δ N N \tau_{\delta}^{NN} τ δ N N , we obtain
E [ Z t − τ δ N N ∣ F τ δ N N N N ] ≤ 8 η γ ~ 0 2 ( t − τ δ N N ) . (89) \mathbb{E}\left[Z_{t-\tau_{\delta}^{NN}}\mid\mathcal{F}_{\tau_{\delta}^{NN}}^{NN}\right]\le\frac{8}{\eta\widetilde{\gamma}_0^2(t-\tau_{\delta}^{NN})}. \tag*{(89)} E [ Z t − τ δ N N ∣ F τ δ N N N N ] ≤ η γ 0 2 ( t − τ δ N N ) 8 . (89)
Proof for Theorem 5.3
Proof Roadmap. We first use the average surrogate-loss estimate for the neural network to prove high-probability entrance into the lower-level set. After shifting the process to the entrance time, we combine the stable-regime loss drift with a stopped-process argument to show that the dynamics remain permanently inside S N N S_{NN} S N N . We then apply the killed-process comparison to obtain the last-iterate rate on the event of no exit. Finally, a union bound combines the entrance, permanent-stability, and convergence guarantees.
Proof. Entrance into the lower sublevel set S l o w S_{\mathrm{low}} S low . From Lemma D.3 and the inequality ln ( γ ~ 2 η T ) ≤ ln ( γ ~ 2 T ) + η \ln(\widetilde{\gamma}^{2} \eta T) \le\ln(\widetilde{\gamma}^{2}T)+\eta ln ( γ 2 η T ) ≤ ln ( γ 2 T ) + η , for every integer T ≥ 1 T \ge1 T ≥ 1 , we have
1 T ∑ k = 0 T − 1 E [ G ( W k ) ] ≤ 2 ( K − 1 + 2 ln ( γ ~ 2 T ) + 4 κ + 2 η ( 2 + 1 b ) ) η γ ~ 2 T . (90) \frac{1}{T}\sum_{k=0}^{T-1}\mathbb{E}[G(W_k)] \le\frac{2\left(K-1+2\ln(\widetilde{\gamma}^{2}T)+4\kappa+2\eta\left(2+\frac{1}{b}\right)\right)}{\eta\widetilde{\gamma}^{2}T}. \tag*{(90)} T 1 k = 0 ∑ T − 1 E [ G ( W k )] ≤ η γ 2 T 2 ( K − 1 + 2 ln ( γ 2 T ) + 4 κ + 2 η ( 2 + b 1 ) ) . (90)
For δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , define t max N N : = ⌈ max { 72 [ K − 1 + 4 κ + 2 η ( 2 + 1 b ) ] η δ 2 L ~ N N γ ~ 2 , 288 η δ 2 L ~ N N γ ~ 2 ln ( 288 η δ 2 L ~ N N ) } ⌉ t_{\max}^{NN}:=\left\lceil\max\left\{\frac{72\left[K-1+4\kappa+2\eta\left(2+\frac{1}{b}\right)\right]}{\eta\delta^{2}\widetilde{L}_{NN}\widetilde{\gamma}^{2}},\frac{288}{\eta\delta^{2}\widetilde{L}_{NN}\widetilde{\gamma}^{2}}\ln\left(\frac{288}{\eta\delta^{2}\widetilde{L}_{NN}}\right)\right\}\right\rceil t m a x N N := ⌈ max { η δ 2 L N N γ 2 72 [ K − 1 + 4 κ + 2 η ( 2 + b 1 ) ] , η δ 2 L N N γ 2 288 ln ( η δ 2 L N N 288 ) } ⌉ . We verify that this choice makes the right-hand side of (90) at most δ 2 L ~ N N / 18 \delta^{2}\widetilde{L}_{NN}/18 δ 2 L N N /18 .
For T ≥ 72 [ K − 1 + 4 κ + 2 η ( 2 + 1 b ) ] η δ 2 L ~ N N γ ~ 2 T \ge\frac{72\left[K-1+4\kappa+2\eta\left(2+\frac{1}{b}\right)\right]}{\eta\delta^{2}\widetilde{L}_{NN}\widetilde{\gamma}^{2}} T ≥ η δ 2 L N N γ 2 72 [ K − 1 + 4 κ + 2 η ( 2 + b 1 ) ] , we have 2 [ K − 1 + 4 κ + 2 η ( 2 + 1 b ) ] η γ ~ 2 T ≤ δ 2 L ~ N N 36 \frac{2\left[K-1+4\kappa+2\eta\left(2+\frac{1}{b}\right)\right]}{\eta\widetilde{\gamma}^{2}T}\le\frac{\delta^{2}\widetilde{L}_{NN}}{36} η γ 2 T 2 [ K − 1 + 4 κ + 2 η ( 2 + b 1 ) ] ≤ 36 δ 2 L N N .
For T ≥ 288 η δ 2 L ~ N N γ ~ 2 ln ( 288 η δ 2 L ~ N N ) T\ge\frac{288}{\eta\delta^{2}\widetilde{L}_{NN}\widetilde{\gamma}^{2}}\ln\left(\frac{288}{\eta\delta^{2}\widetilde{L}_{NN}}\right) T ≥ η δ 2 L N N γ 2 288 ln ( η δ 2 L N N 288 ) , define Q δ N N : = 288 η δ 2 L ~ N N Q_{\delta}^{NN}:=\frac{288}{\eta\delta^{2}\widetilde{L}_{NN}} Q δ N N := η δ 2 L N N 288 . Then γ ~ 2 T ≥ Q δ N N ln ( Q δ N N ) \widetilde{\gamma}^{2}T\ge Q_{\delta}^{NN}\ln\left(Q_{\delta}^{NN}\right) γ 2 T ≥ Q δ N N ln ( Q δ N N ) . Moreover, the definition of L ~ N N \widetilde{L}_{NN} L N N gives η L ~ N N ≤ 1 / 16 \eta\widetilde{L}_{NN}\le1/16 η L N N ≤ 1/16 , and hence Q δ N N ≥ 4608 Q_{\delta}^{NN}\ge4608 Q δ N N ≥ 4608 . Thus, Q δ N N ln ( Q δ N N ) > e Q_{\delta}^{NN}\ln\left(Q_{\delta}^{NN}\right)>e Q δ N N ln ( Q δ N N ) > e . Since x ↦ ln ( x ) / x x\mapsto\ln(x)/x x ↦ ln ( x ) / x is decreasing for x ≥ e x\ge e x ≥ e , we obtain
4 ln ( γ ~ 2 T ) η γ ~ 2 T ≤ 4 ln ( Q δ N N ln ( Q δ N N ) ) η Q δ N N ln ( Q δ N N ) ≤ 8 ln ( Q δ N N ) η Q δ N N ln ( Q δ N N ) = 8 η Q δ N N = δ 2 L ~ N N 36 . (91) \frac{4\ln(\widetilde{\gamma}^{2}T)}{\eta\widetilde{\gamma}^{2}T}
\le\frac{4\ln\left(Q_{\delta}^{NN}\ln\left(Q_{\delta}^{NN}\right)\right)}{\eta Q_{\delta}^{NN}\ln\left(Q_{\delta}^{NN}\right)}
\le\frac{8\ln\left(Q_{\delta}^{NN}\right)}{\eta Q_{\delta}^{NN}\ln\left(Q_{\delta}^{NN}\right)}
= \frac{8}{\eta Q_{\delta}^{NN}}
= \frac{\delta^{2}\widetilde{L}_{NN}}{36}. \tag*{(91)} η γ 2 T 4 ln ( γ 2 T ) ≤ η Q δ N N ln ( Q δ N N ) 4 ln ( Q δ N N ln ( Q δ N N ) ) ≤ η Q δ N N ln ( Q δ N N ) 8 ln ( Q δ N N ) = η Q δ N N 8 = 36 δ 2 L N N . (91)
Applying (90) with T = t max N N T=t_{\max}^{NN} T = t m a x N N , and using the aforementioned bounds, we obtain
1 t max N N ∑ k = 0 t max N N − 1 E [ G ( W k ) ] ≤ δ 2 L ~ N N 36 + δ 2 L ~ N N 36 = δ 2 L ~ N N 18 . (92) \frac{1}{t_{\max}^{NN}}\sum_{k=0}^{t_{\max}^{NN}-1}\mathbb{E}[G(W_k)]
\le\frac{\delta^{2}\widetilde{L}_{NN}}{36}+\frac{\delta^{2}\widetilde{L}_{NN}}{36}
= \frac{\delta^{2}\widetilde{L}_{NN}}{18}. \tag*{(92)} t m a x N N 1 k = 0 ∑ t m a x N N − 1 E [ G ( W k )] ≤ 36 δ 2 L N N + 36 δ 2 L N N = 18 δ 2 L N N . (92)
Thus, there exists an iteration t i n N N ∈ { 0 , … , t max N N − 1 } t_{\mathrm{in}}^{NN}\in\{0,\ldots,t_{\max}^{NN}-1\} t in N N ∈ { 0 , … , t m a x N N − 1 } such that
\mathbb{E}\left[G\left(W_{t_{\mathrm{in}}^{NN}\right)\right]\le\frac{\delta^{2}\widetilde{L}_{NN}}{18}.} \tag*{(93)}
Let E i n N N : = { G ( W t i n N N ) ≤ δ L ~ N N 6 } \mathcal{E}_{\mathrm{in}}^{NN}:=\left\{G\left(W_{t_{\mathrm{in}}^{NN}}\right)\le\frac{\delta\widetilde{L}_{NN}}{6}\right\} E in N N := { G ( W t in N N ) ≤ 6 δ L N N } . Since G ( W t i n N N ) ≥ 0 G\left(W_{t_{\mathrm{in}}^{NN}}\right)\ge0 G ( W t in N N ) ≥ 0 , Markov’s inequality gives
P ( ( E i n N N ) c ) ≤ E [ G ( W t i n N N ) ] δ L ~ N N / 6 ≤ δ 2 L ~ N N / 18 δ L ~ N N / 6 = δ 3 . (94) \mathbb{P}\left(\left(\mathcal{E}_{\mathrm{in}}^{NN}\right)^{c}\right)\le\frac{\mathbb{E}\left[G\left(W_{t_{\mathrm{in}}^{NN}}\right)\right]}{\delta\widetilde{L}_{NN}/6}\le\frac{\delta^{2}\widetilde{L}_{NN}/18}{\delta\widetilde{L}_{NN}/6}=\frac{\delta}{3}. \tag*{(94)} P ( ( E in N N ) c ) ≤ δ L N N /6 E [ G ( W t in N N ) ] ≤ δ L N N /6 δ 2 L N N /18 = 3 δ . (94)
On E i n N N \mathcal{E}_{\mathrm{in}}^{NN} E in N N , for every i ∈ [ n ] i\in[n] i ∈ [ n ] , we have
1 − p i ( W t i n N N ) y i ≤ n G ( W t i n N N ) ≤ n δ L ~ N N 6 ≤ δ 12 e κ + 2 < 1 2 , (95) 1-p_i\left(W_{t_{\mathrm{in}}^{NN}}\right)_{y_i}\le nG\left(W_{t_{\mathrm{in}}^{NN}}\right)\le\frac{n\delta\widetilde{L}_{NN}}{6}\le\frac{\delta}{12e^{\kappa+2}}<\frac{1}{2}, \tag*{(95)} 1 − p i ( W t in N N ) y i ≤ n G ( W t in N N ) ≤ 6 n δ L N N ≤ 12 e κ + 2 δ < 2 1 , (95)
where we used the fact that L ~ N N ≤ 2 n e κ + 2 \widetilde{L}_{NN}\le\frac{2}{ne^{\kappa+2}} L N N ≤ n e κ + 2 2 at the last step. Hence, it holds p i ( W t i n N N ) y i ≥ 1 2 p_i\left(W_{t_{\mathrm{in}}^{NN}}\right)_{y_i}\ge\frac{1}{2} p i ( W t in N N ) y i ≥ 2 1 . Using L ( W ) ≤ F ( W ) = 1 n ∑ i = 1 n 1 − p i ( W ) y i p i ( W ) y i L(W)\le F(W)=\frac{1}{n}\sum_{i=1}^{n}\frac{1-p_i(W)_{y_i}}{p_i(W)_{y_i}} L ( W ) ≤ F ( W ) = n 1 ∑ i = 1 n p i ( W ) y i 1 − p i ( W ) y i , we obtain
L ( W t i n N N ) ≤ F ( W t i n N N ) ≤ 2 n ∑ i = 1 n ( 1 − p i ( W t i n N N ) y i ) = 2 G ( W t i n N N ) ≤ δ L ~ N N 3 . (96) L\left(W_{t_{\mathrm{in}}^{NN}}\right)\le F\left(W_{t_{\mathrm{in}}^{NN}}\right)\le\frac{2}{n}\sum_{i=1}^{n}\left(1-p_i\left(W_{t_{\mathrm{in}}^{NN}}\right)_{y_i}\right)=2G\left(W_{t_{\mathrm{in}}^{NN}}\right)\le\frac{\delta\widetilde{L}_{NN}}{3}. \tag*{(96)} L ( W t in N N ) ≤ F ( W t in N N ) ≤ n 2 i = 1 ∑ n ( 1 − p i ( W t in N N ) y i ) = 2 G ( W t in N N ) ≤ 3 δ L N N . (96)
Define τ δ N N : = inf { k ≥ 0 : L ( W k ) ≤ δ L ~ N N 3 } \tau_{\delta}^{NN}:=\inf\left\{k\ge0:L(W_k)\le\frac{\delta\widetilde{L}_{NN}}{3}\right\} τ δ N N := inf { k ≥ 0 : L ( W k ) ≤ 3 δ L N N } . On E i n N N \mathcal{E}_{\mathrm{in}}^{NN} E in N N , we have τ δ N N ≤ t i n N N ≤ t max N N − 1 \tau_{\delta}^{NN}\le t_{\mathrm{in}}^{NN}\le t_{\max}^{NN}-1 τ δ N N ≤ t in N N ≤ t m a x N N − 1 . Combining this inequality with (94) , we conclude that
P ( τ δ N N < t max N N ) ≥ 1 − δ 3 . (97) \mathbb{P}\left(\tau_{\delta}^{NN}<t_{\max}^{NN}\right)\ge1-\frac{\delta}{3}. \tag*{(97)} P ( τ δ N N < t m a x N N ) ≥ 1 − 3 δ . (97)
Loss drift inside the stable set. Let that γ ~ 0 : = min { γ ~ , 1 } \widetilde{\gamma}_0:=\min\{\widetilde{\gamma},1\} γ 0 := min { γ , 1 } . From Lemma D.4, on the event { L ( W k ) ≤ L ~ N N } \{L(W_k)\le\widetilde{L}_{NN}\} { L ( W k ) ≤ L N N } , we get that
E [ L ( W k + 1 ) ∣ F k ] ≤ L ( W k ) − γ ~ 0 2 8 L ( W k ) 2 . (98) \mathbb{E}\left[L(W_{k+1})\mid\mathcal{F}_k\right]\le L(W_k)-\frac{\widetilde{\gamma}_0^2}{8}L(W_k)^2. \tag*{(98)} E [ L ( W k + 1 ) ∣ F k ] ≤ L ( W k ) − 8 γ 0 2 L ( W k ) 2 . (98)
Permanent stability after entrance. Condition on { τ δ N N < ∞ } \{\tau_{\delta}^{NN}<\infty\} { τ δ N N < ∞ } and define V t : = W τ δ N N + t , G t : = F τ δ N N + t V_t:=W_{\tau_{\delta}^{NN}+t},\mathcal{G}_t:=\mathcal{F}_{\tau_{\delta}^{NN}+t} V t := W τ δ N N + t , G t := F τ δ N N + t . Define σ : = inf { t ≥ 0 : L ( V t ) > L ~ N N } \sigma:=\inf\{t\ge0:L(V_t)>\widetilde{L}_{NN}\} σ := inf { t ≥ 0 : L ( V t ) > L N N } and Y t : = L ( V t ∧ σ ) Y_t:=L(V_{t\wedge\sigma}) Y t := L ( V t ∧ σ ) . Since σ \sigma σ is a stopping time with respect to ( G t ) t ≥ 0 (\mathcal{G}_t)_{t\ge0} ( G t ) t ≥ 0 , the events { σ ≤ t } \{\sigma\le t\} { σ ≤ t } and { σ > t } \{\sigma>t\} { σ > t } belong to G t \mathcal{G}_t G t .
On { σ ≤ t } \{\sigma\le t\} { σ ≤ t } , the process has already stopped, and hence we have
Y t + 1 = L ( V σ ) = Y t . Y_{t+1}=L(V_\sigma)=Y_t. Y t + 1 = L ( V σ ) = Y t .
On { σ > t } \{\sigma>t\} { σ > t } , the dynamics have not exited the stable set, so it holds that L ( V t ) ≤ L ~ N N L(V_t)\le\widetilde{L}_{NN} L ( V t ) ≤ L N N and
Y t + 1 = L ( V t + 1 ) . Y_{t+1}=L(V_{t+1}). Y t + 1 = L ( V t + 1 ) .
Therefore, we have
E [ Y t + 1 ∣ G t ] = 1 { σ ≤ t } Y t + 1 { σ > t } E [ L ( V t + 1 ) ∣ G t ] ≤ 1 { σ ≤ t } Y t + 1 { σ > t } L ( V t ) = Y t , (99) \mathbb{E}\left[Y_{t+1}\mid\mathcal{G}_t\right]
= \mathbf{1}_{\{\sigma\le t\}}Y_t+\mathbf{1}_{\{\sigma>t\}}\mathbb{E}\left[L(V_{t+1})\mid\mathcal{G}_t\right]
\le\mathbf{1}_{\{\sigma\le t\}}Y_t+\mathbf{1}_{\{\sigma>t\}}L(V_t)
=Y_t, \tag*{(99)} E [ Y t + 1 ∣ G t ] = 1 { σ ≤ t } Y t + 1 { σ > t } E [ L ( V t + 1 ) ∣ G t ] ≤ 1 { σ ≤ t } Y t + 1 { σ > t } L ( V t ) = Y t , (99)
where the inequality follows from (98) on { σ > t } \{\sigma>t\} { σ > t } . Thus, ( Y t , G t ) t ≥ 0 (Y_t,\mathcal{G}_t)_{t\ge0} ( Y t , G t ) t ≥ 0 is a nonnegative supermartingale.
It holds that Y 0 = L ( W τ δ N N ) ≤ L ~ N N 3 Y_0=L(W_{\tau_\delta^{NN}})\le\frac{\widetilde{L}_{NN}}{3} Y 0 = L ( W τ δ N N ) ≤ 3 L N N . For every integer T ≥ 1 T\ge1 T ≥ 1 , Doob’s maximal inequality gives
P ( σ ≤ T ∣ F τ δ N N ) ≤ P ( max 0 ≤ s ≤ T Y s ≥ L ~ N N ∣ F τ δ N N ) ≤ L ( W τ δ N N ) L ~ N N ≤ δ 3 . (100) \mathbb{P}\left(\sigma\le T\mid\mathcal{F}_{\tau_\delta^{NN}}\right)
\le\mathbb{P}\left(\max_{0\le s\le T}Y_s\ge\widetilde{L}_{NN}\mid\mathcal{F}_{\tau_\delta^{NN}}\right)
\le\frac{L(W_{\tau_\delta^{NN}})}{\widetilde{L}_{NN}}
\le\frac{\delta}{3}. \tag*{(100)} P ( σ ≤ T ∣ F τ δ N N ) ≤ P ( 0 ≤ s ≤ T max Y s ≥ L N N ∣ F τ δ N N ) ≤ L N N L ( W τ δ N N ) ≤ 3 δ . (100)
Letting T → ∞ T\to\infty T → ∞ , we obtain
P ( σ < ∞ ∣ F τ δ N N ) ≤ δ 3 . (101) \mathbb{P}\left(\sigma<\infty\mid\mathcal{F}_{\tau_\delta^{NN}}\right)\le\frac{\delta}{3}. \tag*{(101)} P ( σ < ∞ ∣ F τ δ N N ) ≤ 3 δ . (101)
Last-iterate convergence. Let t ≥ 1 t\ge1 t ≥ 1 be the integer fixed in the statement. On { τ δ N N < t } \{\tau_\delta^{NN}<t\} { τ δ N N < t } , we have t − τ δ N N ≥ 1 t-\tau_\delta^{NN}\ge1 t − τ δ N N ≥ 1 . From Lemma D.5, we have, on { τ δ N N < t } \{\tau_\delta^{NN}<t\} { τ δ N N < t } ,
E [ Z t − τ δ N N ∣ F τ δ N N ] ≤ 8 γ ~ 0 2 ( t − τ δ N N ) . \mathbb{E}\left[Z_{t-\tau_\delta^{NN}}\mid\mathcal{F}_{\tau_\delta^{NN}}\right]\le\frac{8}{\widetilde{\gamma}_0^2(t-\tau_\delta^{NN})}. E [ Z t − τ δ N N ∣ F τ δ N N ] ≤ γ 0 2 ( t − τ δ N N ) 8 .
Conditional Markov’s inequality thus gives
P ( Z t − τ δ N N > 24 δ γ ~ 0 2 ( t − τ δ N N ) ∣ F τ δ N N ) ≤ δ 3 . (102) \mathbb{P}\left(Z_{t-\tau_\delta^{NN}}>\frac{24}{\delta\widetilde{\gamma}_0^2(t-\tau_\delta^{NN})}\mid\mathcal{F}_{\tau_\delta^{NN}}\right)\le\frac{\delta}{3}. \tag*{(102)} P ( Z t − τ δ N N > δ γ 0 2 ( t − τ δ N N ) 24 ∣ F τ δ N N ) ≤ 3 δ . (102)
On { σ = ∞ } \{\sigma=\infty\} { σ = ∞ } , the killed process agrees with the actual SGD dynamics, so that Z t − τ δ N N = L ( W t ) Z_{t-\tau_\delta^{NN}}=L(W_t) Z t − τ δ N N = L ( W t ) . Thus, it holds that
1 { τ δ N N < t } P ( σ = ∞ , L ( W t ) > 24 δ γ ~ 0 2 ( t − τ δ N N ) ∣ F τ δ N N ) ≤ δ 3 . (103) \mathbf{1}_{\{\tau_\delta^{NN}<t\}}\mathbb{P}\left(\sigma=\infty,\ L(W_t)>\frac{24}{\delta\widetilde{\gamma}_0^2(t-\tau_\delta^{NN})}\mid\mathcal{F}_{\tau_\delta^{NN}}\right)\le\frac{\delta}{3}. \tag*{(103)} 1 { τ δ N N < t } P ( σ = ∞ , L ( W t ) > δ γ 0 2 ( t − τ δ N N ) 24 ∣ F τ δ N N ) ≤ 3 δ . (103)
Union bound. Let E 0 N N : = { τ δ N N < t max N N } \mathcal{E}_0^{NN}:=\{\tau_\delta^{NN}<t_{\max}^{NN}\} E 0 N N := { τ δ N N < t m a x N N } . From (97) , it holds that
P ( ( E 0 N N ) c ) ≤ δ 3 . \mathbb{P}\left((\mathcal{E}_0^{NN})^c\right)\le\frac{\delta}{3}. P ( ( E 0 N N ) c ) ≤ 3 δ .
Moreover, by (101) and the tower property, we get
P ( E 0 N N ∩ { σ < ∞ } ) ≤ δ 3 . \mathbb{P}\left(\mathcal{E}_0^{NN}\cap\{\sigma<\infty\}\right)\le\frac{\delta}{3}. P ( E 0 N N ∩ { σ < ∞ } ) ≤ 3 δ .
From (103) and the tower property, we have
P ( E 0 N N , τ δ N N < t , σ = ∞ , L ( W t ) > 24 δ γ ~ 0 2 ( t − τ δ N N ) ) ≤ δ 3 . (104) \mathbb{P}\left(\mathcal{E}_0^{NN},\ \tau_\delta^{NN}<t,\ \sigma=\infty,\ L(W_t)>\frac{24}{\delta\widetilde{\gamma}_0^2(t-\tau_\delta^{NN})}\right)\le\frac{\delta}{3}. \tag*{(104)} P ( E 0 N N , τ δ N N < t , σ = ∞ , L ( W t ) > δ γ 0 2 ( t − τ δ N N ) 24 ) ≤ 3 δ . (104)
A union bound over these three failure events shows that, with probability at least 1 − δ 1-\delta 1 − δ , it holds τ δ N N < t max N N \tau_{\delta}^{NN}<t_{\max}^{NN} τ δ N N < t m a x N N and L ( W k ) ≤ L ~ N N L(W_k)\leq\widetilde{L}_{NN} L ( W k ) ≤ L N N for every k ≥ τ δ N N k\geq\tau_{\delta}^{NN} k ≥ τ δ N N and, if τ δ N N < t \tau_{\delta}^{NN}<t τ δ N N < t , it holds that
L ( W t ) ≤ 24 δ γ ~ 0 2 ( t − τ δ N N ) . L(W_t)\leq\frac{24}{\delta\widetilde{\gamma}_0^2(t-\tau_{\delta}^{NN})}. L ( W t ) ≤ δ γ 0 2 ( t − τ δ N N ) 24 .
Proof of Corollary 5.4
The constants in Corollary 5.4 are c 0 N N : = γ ~ 0 2 δ 2 576 ( 2 + 1 b ) M N N c_0^{NN}:=\frac{\widetilde{\gamma}_0^2\delta^2}{576(2+\frac{1}{b})M_{NN}} c 0 N N := 576 ( 2 + b 1 ) M N N γ 0 2 δ 2 and
T 0 N N ( c ) : = max { 4 + 288 M N N γ ~ 0 2 δ 2 ( K − 1 + 4 κ + 4 ln 288 M N N δ 2 ) , 2 n e κ + 2 M N N c } . T_0^{NN}(c):=\max\left\{4+\frac{288M_{NN}}{\widetilde{\gamma}_0^2\delta^2}\left(K-1+4\kappa+4\ln\frac{288M_{NN}}{\delta^2}\right),\frac{2ne^{\kappa+2}}{M_{NN}c}\right\}. T 0 N N ( c ) := max { 4 + γ 0 2 δ 2 288 M N N ( K − 1 + 4 κ + 4 ln δ 2 288 M N N ) , M N N c 2 n e κ + 2 } .
where M N N : = max { 16 ( 1 + β ~ ) ( 1 + 2 n b γ ~ 0 2 ) , 2 n } M_{NN}:=\max\left\{16(1+\widetilde{\beta})\left(1+\frac{2n}{b\widetilde{\gamma}_0^2}\right),\sqrt{2n}\right\} M N N := max { 16 ( 1 + β ) ( 1 + b γ 0 2 2 n ) , 2 n } .
Proof. We first show that T ≥ 2 t max N N T\geq2t_{\max}^{NN} T ≥ 2 t m a x N N . By the definition of M N N M_{NN} M N N and since γ ~ 0 2 = min { γ ~ 2 , 1 } \widetilde{\gamma}_0^2=\min\{\widetilde{\gamma}^2,1\} γ 0 2 = min { γ 2 , 1 } , the first two terms in (7) satisfy
min { 1 16 n ( 1 + β ) ( 1 + 2 n b γ ~ 0 2 ) , 1 2 n } = 1 η M N N , \min\left\{\frac{1}{16n(1+\beta)\left(1+\frac{2n}{b\widetilde{\gamma}_0^2}\right)},\frac{1}{\sqrt{2n}}\right\}=\frac{1}{\eta M_{NN}}, min ⎩ ⎨ ⎧ 16 n ( 1 + β ) ( 1 + b γ 0 2 2 n ) 1 , 2 n 1 ⎭ ⎬ ⎫ = η M N N 1 ,
and thus L ~ N N = min { 1 η M N N , 1 2 n e κ + 2 } \widetilde{L}_{NN}=\min\left\{\frac{1}{\eta M_{NN}},\frac{1}{2ne^{\kappa+2}}\right\} L N N = min { η M N N 1 , 2 n e κ + 2 1 } . Since T ≥ T 0 N N ( c ) ≥ 2 n e κ + 2 M N N c T\geq T_0^{NN}(c)\geq\frac{2ne^{\kappa+2}}{M_{NN}c} T ≥ T 0 N N ( c ) ≥ M N N c 2 n e κ + 2 , we have η = c T ≥ 2 n e κ + 2 M N N \eta=cT\geq\frac{2ne^{\kappa+2}}{M_{NN}} η = c T ≥ M N N 2 n e κ + 2 , and thus 1 η M N N ≤ 1 2 n e κ + 2 \frac{1}{\eta M_{NN}}\leq\frac{1}{2ne^{\kappa+2}} η M N N 1 ≤ 2 n e κ + 2 1 . Hence, L ~ N N = 1 η M N N \widetilde{L}_{NN}=\frac{1}{\eta M_{NN}} L N N = η M N N 1 . Using max { x , y } ≤ x + y \max\{x,y\}\leq x+y max { x , y } ≤ x + y and γ ~ 0 ≤ γ ~ \widetilde{\gamma}_0\leq\widetilde{\gamma} γ 0 ≤ γ in the definition of t max N N t_{\max}^{NN} t m a x N N , we get
2 t max N N ≤ 2 + 2 γ ~ 0 2 δ 2 [ 72 M N N ( K − 1 + 4 κ ) + 288 M N N ln 288 M N N δ 2 ] + 288 ( 2 + 1 b ) M N N γ ~ 0 2 δ 2 c T . 2t_{\max}^{NN}\leq2+\frac{2}{\widetilde{\gamma}_0^2\delta^2}\left[72M_{NN}(K-1+4\kappa)+288M_{NN}\ln\frac{288M_{NN}}{\delta^2}\right]+\frac{288(2+\frac{1}{b})M_{NN}}{\widetilde{\gamma}_0^2\delta^2}cT. 2 t m a x N N ≤ 2 + γ 0 2 δ 2 2 [ 72 M N N ( K − 1 + 4 κ ) + 288 M N N ln δ 2 288 M N N ] + γ 0 2 δ 2 288 ( 2 + b 1 ) M N N c T .
Since c ≤ c 0 N N = γ ~ 0 2 δ 2 576 ( 2 + 1 b ) M N N c\leq c_0^{NN}=\frac{\widetilde{\gamma}_0^2\delta^2}{576(2+\frac{1}{b})M_{NN}} c ≤ c 0 N N = 576 ( 2 + b 1 ) M N N γ 0 2 δ 2 , the last term satisfies 288 ( 2 + 1 b ) M N N γ ~ 0 2 δ 2 c T ≤ T 2 \frac{288(2+\frac{1}{b})M_{NN}}{\widetilde{\gamma}_0^2\delta^2}cT\leq\frac{T}{2} γ 0 2 δ 2 288 ( 2 + b 1 ) M N N c T ≤ 2 T . Moreover, since
T ≥ T 0 N N ( c ) ≥ 4 + 288 M N N γ ~ 0 2 δ 2 ( K − 1 + 4 κ + 4 ln 288 M N N δ 2 ) , T\geq T_0^{NN}(c)\geq4+\frac{288M_{NN}}{\widetilde{\gamma}_0^2\delta^2}\left(K-1+4\kappa+4\ln\frac{288M_{NN}}{\delta^2}\right), T ≥ T 0 N N ( c ) ≥ 4 + γ 0 2 δ 2 288 M N N ( K − 1 + 4 κ + 4 ln δ 2 288 M N N ) ,
we have
2 + 2 γ ~ 0 2 δ 2 [ 72 M N N ( K − 1 + 4 κ ) + 288 M N N ln 288 M N N δ 2 ] = 1 2 ( 4 + 288 M N N γ ~ 0 2 δ 2 ( K − 1 + 4 κ + 4 ln 288 M N N δ 2 ) ) ≤ T 2 . 2+\frac{2}{\widetilde{\gamma}_0^2\delta^2}\left[72M_{NN}(K-1+4\kappa)+288M_{NN}\ln\frac{288M_{NN}}{\delta^2}\right]
=\frac{1}{2}\left(4+\frac{288M_{NN}}{\widetilde{\gamma}_0^2\delta^2}\left(K-1+4\kappa+4\ln\frac{288M_{NN}}{\delta^2}\right)\right)\leq\frac{T}{2}. 2 + γ 0 2 δ 2 2 [ 72 M N N ( K − 1 + 4 κ ) + 288 M N N ln δ 2 288 M N N ] = 2 1 ( 4 + γ 0 2 δ 2 288 M N N ( K − 1 + 4 κ + 4 ln δ 2 288 M N N ) ) ≤ 2 T .
Thus, T ≥ 2 t max N N T\geq2t_{\max}^{NN} T ≥ 2 t m a x N N .
From Theorem 5.3 , we get that with probability at least 1 − δ 1-\delta 1 − δ , it holds τ δ N N < t max N N \tau_{\delta}^{NN}<t_{\max}^{NN} τ δ N N < t m a x N N and
L ( W T ) ≤ 24 δ γ ~ 0 2 ( T − τ δ N N ) . (105) L(W_T)\leq\frac{24}{\delta\widetilde{\gamma}_0^2(T-\tau_{\delta}^{NN})}. \tag*{(105)} L ( W T ) ≤ δ γ 0 2 ( T − τ δ N N ) 24 . (105)
Since T ≥ 2 t max N N T\geq2t_{\max}^{NN} T ≥ 2 t m a x N N and τ δ N N < t max N N \tau_{\delta}^{NN}<t_{\max}^{NN} τ δ N N < t m a x N N we obtain
T − τ δ N N > T − t max N N ( δ , η ) ≥ T − T 2 = T 2 . (106) \begin{aligned}
T-\tau_{\delta}^{NN}>T-t_{\max}^{NN}(\delta,\eta) \\
&\geq T-\frac{T}{2}=\frac{T}{2}. \tag*{(106)}
\end{aligned} T − τ δ N N > T − t m a x N N ( δ , η ) ≥ T − 2 T = 2 T . (106)
Substituting this estimate into (105) , we get
L ( W T ) ≤ 48 δ η ~ 0 2 T . (107) L(W_T) \le\frac{48}{\delta\tilde{\eta}_0^{2}T}. \tag*{(107)} L ( W T ) ≤ δ η ~ 0 2 T 48 . (107)
Finally, substituting η = c T \eta=cT η = c T , we conclude with probability at least 1 − δ 1-\delta 1 − δ , it holds
L ( W T ) ≤ 48 δ η ~ 0 2 c T 2 = O ( 1 T 2 ) . L(W_T) \le\frac{48}{\delta\tilde{\eta}_0^{2}cT^{2}} = \mathcal{O}\left(\frac{1}{T^{2}}\right). L ( W T ) ≤ δ η ~ 0 2 c T 2 48 = O ( T 2 1 ) .