Introduction
Sharpness-Aware Minimization (SAM) was introduced to improve generalization by seeking parameters whose training loss remains low throughout a local neighborhood [12 ] . It pursues this objective through a simple two-step procedure: first perturb the parameters in a direction of increasing loss, then update the original parameters using the gradient evaluated at the perturbed point. The choice of perturbation therefore determines how the resulting update departs from ordinary gradient descent. For a differentiable objective f : R d → R f:\mathbb{R}^{d}\to\mathbb{R} f : R d → R , standard SAM uses a fixed-radius perturbation of length r r r along the normalized gradient, whereas its unnormalized variant (USAM) uses a fixed multiple ρ \rho ρ of the gradient itself [3 ] :
y t = x t + r ∇ f ( x t ) ∥ ∇ f ( x t ) ∥ , x t + 1 = x t − η t ∇ f ( y t ) , (SAM) y_t = x_t + r \frac{\nabla f(x_t)}{\lVert\nabla f(x_t)\rVert}, \qquad x_{t+1} = x_t - \eta_t \nabla f(y_t), \qquad\text{(SAM)} y t = x t + r ∥ ∇ f ( x t )∥ ∇ f ( x t ) , x t + 1 = x t − η t ∇ f ( y t ) , (SAM)
y t = x t + ρ ∇ f ( x t ) , x t + 1 = x t − η t ∇ f ( y t ) , (USAM) y_t = x_t + \rho\nabla f(x_t), \qquad x_{t+1} = x_t - \eta_t \nabla f(y_t), \qquad\text{(USAM)} y t = x t + ρ ∇ f ( x t ) , x t + 1 = x t − η t ∇ f ( y t ) , (USAM)
with radius r > 0 r > 0 r > 0 , multiplier ρ ≥ 0 \rho\ge0 ρ ≥ 0 , and outer step η t > 0 \eta_t > 0 η t > 0 . Both rules cost two gradient evaluations per iteration, one at the iterate x t x_t x t and one at the perturbed point y t y_t y t .
Throughout, we consider the problem
min x ∈ R d f ( x ) , f ⋆ : = inf x ∈ R d f ( x ) > − ∞ , (1) \min_{x \in\mathbb{R}^{d}} f(x), \qquad f_{\star} := \inf_{x \in\mathbb{R}^{d}} f(x) > -\infty, \tag*{(1)} x ∈ R d min f ( x ) , f ⋆ := x ∈ R d inf f ( x ) > − ∞ , (1)
where f : R d → R f : \mathbb{R}^{d} \to\mathbb{R} f : R d → R is twice continuously differentiable. In model training, x x x represents the model parameters and f f f the training loss. We call the Hessian operator norm ∥ ∇ 2 f ( x ) ∥ \lVert\nabla^{2} f(x) \rVert ∥ ∇ 2 f ( x )∥ the local curvature at x x x . Classical smoothness bounds this quantity by a constant L > 0 L > 0 L > 0 :
∥ ∇ 2 f ( x ) ∥ ≤ L ∀ x ∈ R d . (2) \lVert\nabla^{2} f(x) \rVert\le L \qquad\forall x \in\mathbb{R}^{d}. \tag*{(2)} ∥ ∇ 2 f ( x )∥ ≤ L ∀ x ∈ R d . (2)
Classical L L L -smoothness can fail even for simple neural-network training objectives [2 ] . Motivated by empirical observations that local curvature grows with the gradient norm during neural-network training, Zhang et al. [2020b] introduced ( L 0 , L 1 ) (L_0, L_1) ( L 0 , L 1 ) -smoothness, which allows the Hessian norm to grow with the gradient norm. Subsequent theoretical results support this condition for specific neural-network models. In particular, the bounds of Taheri and Thrampoulidis [ [32 ] imply ( L 0 , L 1 ) (L_0, L_1) ( L 0 , L 1 ) -smoothness for two-layer networks with fixed output weights and smoothed leaky-ReLU activations, trained with exponential loss on linearly separable data. Complementary results establish ( H 0 , H 1 ) (H_0, H_1) ( H 0 , H 1 ) -smoothness for two-layer networks trained with ℓ 2 \ell_2 ℓ 2 -regularized cross-entropy loss under suitable activation assumptions [2 ] . These findings motivate the gradient-dependent and loss-dependent curvature bounds considered here:
∥ ∇ 2 f ( x ) ∥ ≤ M L ( x ) : = L 0 + L 1 ∥ ∇ f ( x ) ∥ , ( L 0 , L 1 ) -smoothness , (3) \lVert\nabla^{2} f(x) \rVert\le M_L(x) := L_0 + L_1 \lVert\nabla f(x) \rVert, \qquad(L_0,L_1)\text{-smoothness}, \tag*{(3)} ∥ ∇ 2 f ( x )∥ ≤ M L ( x ) := L 0 + L 1 ∥ ∇ f ( x )∥ , ( L 0 , L 1 ) -smoothness , (3)
∥ ∇ 2 f ( x ) ∥ ≤ M H ( x ) : = H 0 + H 1 ( f ( x ) − f ⋆ ) , ( H 0 , H 1 ) -smoothness , (4) \lVert\nabla^{2} f(x) \rVert\le M_H(x) := H_0 + H_1\left(f(x)-f_{\star}\right), \qquad(H_0,H_1)\text{-smoothness}, \tag*{(4)} ∥ ∇ 2 f ( x )∥ ≤ M H ( x ) := H 0 + H 1 ( f ( x ) − f ⋆ ) , ( H 0 , H 1 ) -smoothness , (4)
for every x ∈ R d x \in\mathbb{R}^{d} x ∈ R d , with L 0 > 0 L_0 > 0 L 0 > 0 , L 1 ≥ 0 L_1 \ge0 L 1 ≥ 0 , and H 0 , H 1 ≥ 0 H_0, H_1 \ge0 H 0 , H 1 ≥ 0 . Note that both models contain classical smoothness as a special case (L 1 = 0 L_1 = 0 L 1 = 0 or H 1 = 0 H_1 = 0 H 1 = 0 ). With slight abuse of notation, in several parts of the paper we write M L : = M L ( x ) M_L := M_L(x) M L := M L ( x ) and M H : = M H ( x ) M_H := M_H(x) M H := M H ( x ) . We refer to a positive function that upper-bounds the local curvature everywhere as a curvature scale ; M L M_L M L and, for nonconstant objectives, M H M_H M H provide the two scales studied in this work (Proposition 2.4).
The difficulty is that the curvature bound must control the gradient change along the perturbation, as well as the subsequent descent step. Even under classical smoothness, a fixed perturbation radius can prevent exact convergence: Bartlett et al. [ [5 ] analyzed cycling of fixed-radius SAM on convex quadratics, and Si and Yun [ [29 ] established stationarity neighborhoods in several settings. The inexact-gradient viewpoint of Khanh et al. [ [18 ] makes the perturbation-induced error explicit, while the clipped rule of Adly and Le [ [1 ] controls it near stationarity by making the perturbation proportional to the gradient. Under (3), however, a gradient-proportional perturbation can also become too large when the gradient grows. Thus, extending SAM to generalized smoothness requires control at both ends of the gradient scale.
For ordinary gradient methods, adapting to curvature growth is already well studied. The ( L 0 , L 1 ) (L_0, L_1) ( L 0 , L 1 ) model was introduced by Zhang et al. [2020b] to explain gradient clipping and has since supported analyses of clipped, normalized, and adaptive methods [6 , 9 , 20 , 22 ] (Zhang et al. 2020a). In particular, Gorbunov et al. [ [13 ] and Vankov et al. [ [34 ] analyzed steps inversely proportional to gradient-dependent curvature bounds. The loss-dependent model has likewise been used to explain learning-rate warm-up [2 ] and to analyze line search and adaptive gradient methods [35 ] (Vaswani et al. 2026). These results motivate scaling the outer descent step by a curvature bound. The remaining question for SAM is how that bound should also determine the perturbation.
Main Contributions
that of USAM can become unbounded as the gradient grows. Proposition 2.1 gives explicit examples within the ( L 0 , L 1 ) (L_0, L_1) ( L 0 , L 1 ) -smooth class: fixed-radius SAM admits a nonzero two-cycle on a quadratic, and USAM diverges from sufficiently large initializations on a quartic. Motivated by these complementary failures, Theorem 2.2 establishes a necessary condition for uniformly bounded distortion over this class among perturbations along the gradient whose nonnegative multipliers depend only on its norm. The perturbation length must be at most proportional to the gradient norm near stationarity and bounded at large gradients. This condition motivates the gradient-dependent perturbation of CS-SAM.
◇ Curvature-Scaled Sharpness-Aware Minimization. In § 2.2 , we construct CS-SAM, which, for a curvature scale M M M , iterates
y t = x t + ρ M ( x t ) ∇ f ( x t ) , x t + 1 = x t − γ M ( y t ) ∇ f ( y t ) , y_t = x_t + \frac{\rho}{M(x_t)} \nabla f(x_t), \qquad x_{t+1} = x_t - \frac{\gamma}{M(y_t)} \nabla f(y_t), y t = x t + M ( x t ) ρ ∇ f ( x t ) , x t + 1 = x t − M ( y t ) γ ∇ f ( y t ) ,
(CS-SAM)
with perturbation multiplier ρ / M ( x t ) \rho/M(x_t) ρ / M ( x t ) and descent step γ / M ( y t ) \gamma/M(y_t) γ / M ( y t ) , where ρ ≥ 0 \rho\ge0 ρ ≥ 0 and γ > 0 \gamma> 0 γ > 0 . We identify conditions on the curvature scale M M M that ensure uniform distortion control and show that both M L M_L M L and M H M_H M H satisfy them. For every scale satisfying these conditions, Theorem 2.5 bounds the distortion by e ρ − 1 e^\rho- 1 e ρ − 1 at every nonstationary iterate.
◇ Convergence under generalized smoothness. We establish convergence guarantees for CS-SAM under ( L 0 , L 1 ) (L_0, L_1) ( L 0 , L 1 ) -smoothness with M = M L M = M_L M = M L and under ( H 0 , H 1 ) (H_0, H_1) ( H 0 , H 1 ) -smoothness with M = M H M = M_H M = M H (Theorems 3.1 and 3.2). In each setting, for suitable perturbation and step parameters, we prove O ( 1 / T ) O(1/T) O ( 1/ T ) rates for the best squared gradient norm on nonconvex objectives and last-iterate O ( 1 / T ) O(1/T) O ( 1/ T ) rates for the function gap on convex objectives with a minimizer. We also prove linear convergence in both settings under the Polyak–Łojasiewicz (PL) condition, ∥ ∇ f ( x ) ∥ 2 / 2 ≥ μ ( f ( x ) − f ⋆ ) \lVert\nabla f(x) \rVert^2/2 \ge\mu(f(x) - f_\star) ∥ ∇ f ( x ) ∥ 2 /2 ≥ μ ( f ( x ) − f ⋆ ) for every x x x and some μ > 0 \mu> 0 μ > 0 .
◇ Recovery of gradient descent guarantees for ρ = 0 \rho= 0 ρ = 0 . Setting ρ = 0 \rho= 0 ρ = 0 recovers gradient descent with step γ / M ( x t ) \gamma/M(x_t) γ / M ( x t ) . Our bounds recover the known nonconvex and convex rates for gradient-dependent steps [13 , 34 ] , and the convex and PL rates for loss-dependent steps [2 ] , while allowing larger step sizes in the latter case. Thus the analysis extends existing gradient descent guarantees to positive sharpness-aware perturbations.
◇ Numerical Evaluation. In § 4.1 , we verify Proposition 2.1 and Theorem 2.5: SAM cycles and USAM diverges, whereas CS-SAM converges with a distortion below e ρ − 1 e^\rho- 1 e ρ − 1 for both scales. In § 4.2 , we evaluate minibatch variants beyond the deterministic setting of our theory on ResNet-20/32 and CIFAR-10/100. Both use two gradient evaluations per iteration. Against tuned constant-step and cosine annealing-scheduled SAM and USAM, the loss-dependent variant achieves the highest mean best-test accuracy in all four settings, while the gradient-dependent variant exceeds all these baselines in three of four settings.
Table 1 summarizes the distortion control and convergence guarantees alongside prior work.
Table 1. Comparison with the closest prior work. D ( x , d ) = ∥ ∇ f ( x + d ) − ∇ f ( x ) ∥ / ∥ ∇ f ( x ) ∥ D(x,d)=\|\nabla f(x+d)-\nabla f(x)\|/\|\nabla f(x)\| D ( x , d ) = ∥∇ f ( x + d ) − ∇ f ( x ) ∥/∥∇ f ( x ) ∥ is the relative gradient distortion of the perturbation d d d (§ 2.1 ). Curvature models: L L L means ∥ ∇ 2 f ( x ) ∥ ≤ L \|\nabla^2 f(x)\|\le L ∥ ∇ 2 f ( x ) ∥ ≤ L ; ( L 0 , L 1 ) (L_0,L_1) ( L 0 , L 1 ) means ∥ ∇ 2 f ( x ) ∥ ≤ L 0 + L 1 ∥ ∇ f ( x ) ∥ \|\nabla^2 f(x)\|\le L_0+L_1\|\nabla f(x)\| ∥ ∇ 2 f ( x ) ∥ ≤ L 0 + L 1 ∥∇ f ( x ) ∥ ; ( H 0 , H 1 ) (H_0,H_1) ( H 0 , H 1 ) means ∥ ∇ 2 f ( x ) ∥ ≤ H 0 + H 1 ( f ( x ) − f ⋆ ) \|\nabla^2 f(x)\|\le H_0+H_1(f(x)-f_\star) ∥ ∇ 2 f ( x ) ∥ ≤ H 0 + H 1 ( f ( x ) − f ⋆ ) , with f ⋆ = inf x f ( x ) f_\star=\inf_x f(x) f ⋆ = inf x f ( x ) . ✓ \checkmark ✓ : D D D is bounded by a constant; × \mathord{\times} × : the bound degenerates. Rates are on the best squared gradient norm over T T T iterations (nonconvex), on the last-iterate gap f ( x T ) − f ⋆ f(x_T)-f_\star f ( x T ) − f ⋆ for convex objectives with a minimizer (convex), and on the function gap under PL.
From gradient distortion to curvature-scaled SAM
In this section, we define relative gradient distortion and explain how it controls the difference between a sharpness-aware direction and the gradient used by gradient descent. We then show that SAM and USAM can lose this control at opposite ends of the gradient scale, and derive a necessary condition for keeping it uniformly bounded. This condition motivates the CS-SAM update, for which we prove a uniform distortion bound under both generalized smoothness models. The proofs are deferred to Appendix § 10 ; the distortion bound follows from the auxiliary lemmas in Appendix § 9 .
Relative gradient distortion and the failures of SAM and USAM
The outer step of SAM and USAM is a gradient step that uses ∇ f ( y t ) \nabla f(y_t) ∇ f ( y t ) in place of ∇ f ( x t ) \nabla f(x_t) ∇ f ( x t ) , so a descent analysis must account for the effect of this substitution as well as the step size. We now measure the relative error of this substitution. For ∇ f ( x ) ≠ 0 \nabla f(x)\ne0 ∇ f ( x ) = 0 and a displacement d d d , we define the relative gradient distortion
D ( x , d ) : = ∥ ∇ f ( x + d ) − ∇ f ( x ) ∥ ∥ ∇ f ( x ) ∥ . (5) D(x,d):=\frac{\|\nabla f(x+d)-\nabla f(x)\|}{\|\nabla f(x)\|}. \tag*{(5)} D ( x , d ) := ∥∇ f ( x ) ∥ ∥∇ f ( x + d ) − ∇ f ( x ) ∥ . (5)
Let us explain why this is the right quantity. If D ( x , d ) ≤ δ < 1 D(x,d)\le\delta<1 D ( x , d ) ≤ δ < 1 , then ∇ f ( x + d ) \nabla f(x+d) ∇ f ( x + d ) makes an acute angle with ∇ f ( x ) \nabla f(x) ∇ f ( x ) , since ⟨ ∇ f ( x ) , ∇ f ( x + d ) ⟩ ≥ ( 1 − δ ) ∥ ∇ f ( x ) ∥ 2 \langle\nabla f(x),\nabla f(x+d)\rangle\ge(1-\delta)\|\nabla f(x)\|^2 ⟨ ∇ f ( x ) , ∇ f ( x + d )⟩ ≥ ( 1 − δ ) ∥∇ f ( x ) ∥ 2 , and has comparable length, since ( 1 − δ ) ∥ ∇ f ( x ) ∥ ≤ ∥ ∇ f ( x + d ) ∥ ≤ ( 1 + δ ) ∥ ∇ f ( x ) ∥ (1-\delta)\|\nabla f(x)\|\le\|\nabla f(x+d)\|\le(1+\delta)\|\nabla f(x)\| ( 1 − δ ) ∥∇ f ( x ) ∥ ≤ ∥∇ f ( x + d ) ∥ ≤ ( 1 + δ ) ∥∇ f ( x ) ∥ . These are exactly the two properties the descent lemma requires, so D ( x , d ) ≤ δ < 1 D(x,d)\le\delta<1 D ( x , d ) ≤ δ < 1 is the property we want a perturbation to have, and we want it at every point. Controlling the perturbation-induced gradient error is also the viewpoint of the inexact-gradient analyses of Khanh et al. [ [18 ] , and relative control of this error near stationarity is what the clipped rule of Adly and Le [ [1 ] enforces; the quantity itself is therefore not new. Our question is which perturbation rules keep it uniformly bounded under generalized smoothness.
We first record what the two base rules can guarantee. Under (2) we have
D S A M ≤ L r ∥ ∇ f ( x ) ∥ , D U S A M ≤ L ρ . (6) D_{\mathrm{SAM}}\le\frac{Lr}{\|\nabla f(x)\|},\qquad D_{\mathrm{USAM}}\le L\rho. \tag*{(6)} D SAM ≤ ∥∇ f ( x ) ∥ L r , D USAM ≤ L ρ . (6)
Note that the bound for SAM degenerates as ∥ ∇ f ( x ) ∥ → 0 \|\nabla f(x)\|\to0 ∥∇ f ( x ) ∥ → 0 , while the bound for USAM is uniform. Under the more general (3) , for L 1 > 0 L_1>0 L 1 > 0 (both bounds are proved in Appendix § 10 ):
D S A M ≤ ( e L 1 r − 1 ) ( 1 + L 0 L 1 ∥ ∇ f ( x ) ∥ ) , D U S A M ≤ L 0 + L 1 ∥ ∇ f ( x ) ∥ L 1 ∥ ∇ f ( x ) ∥ ( e L 1 ρ ∥ ∇ f ( x ) ∥ − 1 ) . (7) D_{\mathrm{SAM}}\le\left(e^{L_1r}-1\right)\left(1+\frac{L_0}{L_1\|\nabla f(x)\|}\right),\qquad D_{\mathrm{USAM}}\le\frac{L_0+L_1\|\nabla f(x)\|}{L_1\|\nabla f(x)\|}\left(e^{L_1\rho\|\nabla f(x)\|}-1\right). \tag*{(7)} D SAM ≤ ( e L 1 r − 1 ) ( 1 + L 1 ∥∇ f ( x ) ∥ L 0 ) , D USAM ≤ L 1 ∥∇ f ( x ) ∥ L 0 + L 1 ∥∇ f ( x ) ∥ ( e L 1 ρ ∥∇ f ( x ) ∥ − 1 ) . (7)
The bound for SAM tends to the constant e L 1 r − 1 e^{L_1r}-1 e L 1 r − 1 at large gradients and degenerates as ∥ ∇ f ( x ) ∥ → 0 \|\nabla f(x)\|\to0 ∥∇ f ( x ) ∥ → 0 . The bound for USAM tends to ρ L 0 \rho L_0 ρ L 0 as ∥ ∇ f ( x ) ∥ → 0 \|\nabla f(x)\|\to0 ∥∇ f ( x ) ∥ → 0 and grows exponentially as ∥ ∇ f ( x ) ∥ → + ∞ \|\nabla f(x)\|\to+\infty ∥∇ f ( x ) ∥ → + ∞ . This suggests that SAM’s distortion can explode when the gradient vanishes, while USAM’s distortion can explode when the gradient grows. The following proposition makes the two failures precise.
Proposition 2.1. Both perturbations can fail on one-dimensional convex objectives: SAM admits a nonzero two-cycle on a quadratic, and USAM diverges for large initializations on a quartic.
(i) Let f ( x ) = x 2 / 2 f(x)=x^2/2 f ( x ) = x 2 /2 , which satisfies (2) with L = 1 L=1 L = 1 . Run SAM with r > 0 r>0 r > 0 and η ∈ ( 0 , 2 ) \eta\in(0,2) η ∈ ( 0 , 2 ) . For every x ≠ 0 x\ne0 x = 0 ,
D S A M ( x ) : = D ( x , r sign ( x ) ) = r ∣ x ∣ , x t + 1 = [ 1 − η ( 1 + D S A M ( x t ) ) ] x t . (8) D_{\mathrm{SAM}}(x):=D(x,r\operatorname{sign}(x))=\frac{r}{\lvert x\rvert},\qquad x_{t+1}=\left[1-\eta\left(1+D_{\mathrm{SAM}}(x_t)\right)\right]x_t. \tag*{(8)} D SAM ( x ) := D ( x , r sign ( x )) = ∣ x ∣ r , x t + 1 = [ 1 − η ( 1 + D SAM ( x t ) ) ] x t . (8) Let a = η r / ( 2 − η ) a=\eta r/(2-\eta) a = η r / ( 2 − η ) . Then ∣ x t + 1 ∣ < ∣ x t ∣ \lvert x_{t+1}\rvert<\lvert x_t\rvert ∣ x t + 1 ∣ < ∣ x t ∣ if ∣ x t ∣ > a \lvert x_t\rvert>a ∣ x t ∣ > a , ∣ x t + 1 ∣ > ∣ x t ∣ \lvert x_{t+1}\rvert>\lvert x_t\rvert ∣ x t + 1 ∣ > ∣ x t ∣ if 0 < ∣ x t ∣ < a 0<\lvert x_t\rvert<a 0 < ∣ x t ∣ < a , and x t + 1 = − x t x_{t+1}=-x_t x t + 1 = − x t if ∣ x t ∣ = a \lvert x_t\rvert=a ∣ x t ∣ = a . Consequently ± a \pm a ± a is a two-cycle, and no trajectory converges to the minimizer (unless it lands on it exactly).
(ii) Let f ( x ) = x 4 / 4 f(x)=x^4/4 f ( x ) = x 4 /4 , which satisfies (3) with ( L 0 , L 1 ) = ( 4 , 1 ) (L_0,L_1)=(4,1) ( L 0 , L 1 ) = ( 4 , 1 ) . Run USAM with ρ > 0 \rho>0 ρ > 0 and η > 0 \eta>0 η > 0 . For every x ≠ 0 x\ne0 x = 0 ,
D U S A M ( x ) : = D ( x , ρ x 3 ) = ( 1 + ρ x 2 ) 3 − 1 , x t + 1 = [ 1 − η ( 1 + D U S A M ( x t ) ) x t 2 ] x t . (9) D_{\mathrm{USAM}}(x):=D(x,\rho x^3)=(1+\rho x^2)^3-1,\qquad x_{t+1}=\left[1-\eta\left(1+D_{\mathrm{USAM}}(x_t)\right)x_t^2\right]x_t. \tag*{(9)} D USAM ( x ) := D ( x , ρ x 3 ) = ( 1 + ρ x 2 ) 3 − 1 , x t + 1 = [ 1 − η ( 1 + D USAM ( x t ) ) x t 2 ] x t . (9) Consequently, if ∣ x 0 ∣ > ( 2 / ( η ρ 3 ) ) 1 / 8 \lvert x_0\rvert>(2/(\eta\rho^3))^{1/8} ∣ x 0 ∣ > ( 2/ ( η ρ 3 ) ) 1/8 , then x t + 1 x_{t+1} x t + 1 has the opposite sign of x t x_t x t and ∣ x t + 1 ∣ > ∣ x t ∣ \lvert x_{t+1}\rvert>\lvert x_t\rvert ∣ x t + 1 ∣ > ∣ x t ∣ for every t t t , and ∣ x t ∣ → ∞ \lvert x_t\rvert\to\infty ∣ x t ∣ → ∞ .
The quadratic construction can be viewed as an exact illustration of established late-stage phenomena: Bartlett et al. [ [5 ] showed that fixed-radius SAM typically approaches a two-cycle on convex quadratics, and Si and Yun [ [29 ] established unavoidable stationarity neighborhoods for practical fixed-radius SAM in several settings. Our point is the complementarity: the distortion can become unbounded at opposite ends of the gradient scale, with nonconvergence for these fixed-parameter updates. The following theorem addresses all perturbations along the gradient whose nonnegative multiplier depends only on the gradient norm: it gives a necessary condition for uniform boundedness of the relative distortion over the whole class of objectives in (3) .
Theorem 2.2. Let L 0 > 0 L_0>0 L 0 > 0 , L 1 > 0 L_1>0 L 1 > 0 , and consider the perturbation given by a nonnegative collinear rule d ( x ) = α ( ∥ ∇ f ( x ) ∥ ) ∇ f ( x ) d(x)=\alpha(\lVert\nabla f(x)\rVert)\nabla f(x) d ( x ) = α (∥ ∇ f ( x )∥) ∇ f ( x ) . Suppose that for every one-dimensional objective satisfying (3) and every point with nonzero gradient, D ( x , d ( x ) ) ≤ δ D(x,d(x))\le\delta D ( x , d ( x )) ≤ δ . Then, for every s > 0 s>0 s > 0 ,
α ( s ) ≤ min { δ L 0 , log ( 1 + δ ) L 1 s } . (10) \alpha(s)\le\min\left\{\frac{\delta}{L_0},\frac{\log(1+\delta)}{L_1s}\right\}. \tag*{(10)} α ( s ) ≤ min { L 0 δ , L 1 s log ( 1 + δ ) } . (10)
Note that the theorem covers SAM with α ( s ) = r / s \alpha(s)=r/s α ( s ) = r / s and USAM with α ( s ) = ρ \alpha(s)=\rho α ( s ) = ρ . The bound says that the perturbation length α ( s ) s \alpha(s)s α ( s ) s must be at most linear in the gradient near s = 0 s=0 s = 0 and at most a constant for large s s s . SAM violates the first requirement since r / s → ∞ r/s\to\infty r / s → ∞ as s → 0 s\to0 s → 0 , and USAM violates the second since ρ s → ∞ \rho s\to\infty ρ s → ∞ as s → ∞ s\to\infty s → ∞ . In words, every perturbation of this form with uniformly bounded distortion must be USAM-like near stationarity and SAM-like at large gradients. Dividing ρ ∇ f ( x ) \rho\nabla f(x) ρ ∇ f ( x ) by L 0 + L 1 ∥ ∇ f ( x ) ∥ L_0+L_1\lVert\nabla f(x)\rVert L 0 + L 1 ∥ ∇ f ( x )∥ gives the multiplier α ( s ) = ρ / ( L 0 + L 1 s ) \alpha(s)=\rho/(L_0+L_1s) α ( s ) = ρ / ( L 0 + L 1 s ) , which has both properties and lies below (10) for every s s s once δ = e ρ − 1 \delta=e^\rho-1 δ = e ρ − 1 . Satisfying the necessary condition alone does not establish bounded distortion. We prove that this construction is sufficient next, and extend it to the loss-dependent scale.
Admissible scales and the CS-SAM update
Theorem 2.2 motivates a perturbation that divides the gradient by a local curvature upper bound. In this subsection we isolate the properties of such a bound that our analysis uses, state the update, and prove that it keeps the distortion bounded for any scale with these properties.
Definition 2.3 (Admissible curvature scale). Let κ ≥ 0 \kappa\ge0 κ ≥ 0 . A function M : R d → ( 0 , ∞ ) M:\mathbb{R}^d\to(0,\infty) M : R d → ( 0 , ∞ ) is κ \kappa κ -admissible for f f f
@%timeout 彩娱乐彩票 if, for all x , y ∈ R d x,y \in\mathbb{R}^{d} x , y ∈ R d ,
∥ ∇ 2 f ( x ) ∥ ≤ M ( x ) , M ( y ) ≤ M ( x ) e κ ∥ y − x ∥ , κ ∥ ∇ f ( x ) ∥ ≤ M ( x ) . (11) \lVert\nabla^{2} f(x) \rVert\le M(x), \qquad M(y) \le M(x)e^{\kappa\lVert y-x\rVert}, \qquad\kappa\lVert\nabla f(x) \rVert\le M(x). \tag*{(11)} ∥ ∇ 2 f ( x )∥ ≤ M ( x ) , M ( y ) ≤ M ( x ) e κ ∥ y − x ∥ , κ ∥ ∇ f ( x )∥ ≤ M ( x ) . (11)
Let us read the three conditions in (11) . The first says that M M M is a curvature scale, that is, it upper-bounds the local curvature everywhere. The second says that the scale varies at most exponentially in the distance travelled, so that a short move changes it by a bounded factor. The third ties the scale to the gradient norm; it is what makes a step proportional to ∇ f ( x ) / M ( x ) \nabla f(x)/M(x) ∇ f ( x ) / M ( x ) short, so that it stays under control along the perturbation. Under (3) , the scale M L ( x ) = L 0 + L 1 ∥ ∇ f ( x ) ∥ M_L(x)=L_0+L_1\lVert\nabla f(x)\rVert M L ( x ) = L 0 + L 1 ∥ ∇ f ( x )∥ is L 1 L_1 L 1 -admissible, so the concrete scale suggested by Theorem 2.2 is an instance of this definition. The following proposition records this together with the corresponding facts for the scales of (2) and (4) .
Proposition 2.4 (Properties of the curvature scales).
(i) Under (2) , the constant scale M ≡ L M\equiv L M ≡ L is admissible with κ = 0 \kappa=0 κ = 0 .
(ii) Under (3) , the scale M L M_L M L is admissible with κ = L 1 \kappa=L_1 κ = L 1 .
(iii) Under (4) , either M H ≡ 0 M_H\equiv0 M H ≡ 0 and f f f is constant, or M H > 0 M_H>0 M H > 0 everywhere and the scale M H M_H M H is admissible with κ = H 1 \kappa=\sqrt{H_1} κ = H 1 .
(iv) Under (3) , for every x ∈ R d x\in\mathbb{R}^{d} x ∈ R d ,
L 0 + L 1 ∥ ∇ f ( x ) ∥ ≤ 3 2 L 0 + 3 L 1 2 2 ( 2 log 2 − 1 ) ( f ( x ) − f ⋆ ) . (12) L_0+L_1\lVert\nabla f(x)\rVert\le\frac{3}{2}L_0+\frac{3L_1^2}{2(2\log2-1)}(f(x)-f_\star). \tag*{(12)} L 0 + L 1 ∥ ∇ f ( x )∥ ≤ 2 3 L 0 + 2 ( 2 log 2 − 1 ) 3 L 1 2 ( f ( x ) − f ⋆ ) . (12) In particular, (3) implies (4) with the constants H 0 = 3 L 0 / 2 H_0=3L_0/2 H 0 = 3 L 0 /2 and H 1 = 3 L 1 2 / ( 2 ( 2 log 2 − 1 ) ) H_1=3L_1^2/(2(2\log2-1)) H 1 = 3 L 1 2 / ( 2 ( 2 log 2 − 1 )) .
Items (i)–(iii) say that the three curvature bounds in (2) , (3) and (4) are admissible, with κ = 0 \kappa=0 κ = 0 , κ = L 1 \kappa=L_1 κ = L 1 , and κ = H 1 \kappa=\sqrt{H_1} κ = H 1 respectively; the only exception is the trivial case of a constant f f f , for which M H M_H M H vanishes and every point is a global minimizer. Item (iv) is an inclusion between the two general models: every objective satisfying (3) also satisfies (4) , with H 0 = 3 L 0 / 2 H_0=3L_0/2 H 0 = 3 L 0 /2 and H 1 = 3 L 1 2 / ( 2 ( 2 log 2 − 1 ) ) H_1=3L_1^2/(2(2\log2-1)) H 1 = 3 L 1 2 / ( 2 ( 2 log 2 − 1 )) . This inclusion also appears as Proposition B.1 of Alimisis et al. [ [2 ] and as Proposition 3 of Vaswani and Babanezhad Harikandeh [ [35 ] , with different constants.
The update. Given an admissible curvature scale M M M , parameters ρ ≥ 0 \rho\ge0 ρ ≥ 0 and γ > 0 \gamma>0 γ > 0 , and a starting point x 0 x_0 x 0 , we propose Curvature-Scaled SAM, which iterates
y t = x t + ρ M ( x t ) ∇ f ( x t ) , x t + 1 = x t − γ M ( y t ) ∇ f ( y t ) . y_t=x_t+\frac{\rho}{M(x_t)}\nabla f(x_t), \qquad x_{t+1}=x_t-\frac{\gamma}{M(y_t)}\nabla f(y_t). y t = x t + M ( x t ) ρ ∇ f ( x t ) , x t + 1 = x t − M ( y t ) γ ∇ f ( y t ) .
Here, ρ ≥ 0 \rho\ge0 ρ ≥ 0 sets the perturbation and γ > 0 \gamma>0 γ > 0 the descent step. The perturbation step ρ / M ( x t ) \rho/M(x_t) ρ / M ( x t ) and the descent step γ / M ( y t ) \gamma/M(y_t) γ / M ( y t ) use the same curvature scale, each evaluated at the point where the corresponding gradient is taken. If ∇ f ( x t ) = 0 \nabla f(x_t)=0 ∇ f ( x t ) = 0 the method stops at x t x_t x t . Two instances are of particular interest and are compared in Table 2 . With the gradient scale M = M L M=M_L M = M L , the perturbation step is ρ / ( L 0 + L 1 ∥ ∇ f ( x t ) ∥ ) \rho/(L_0+L_1\lVert\nabla f(x_t)\rVert) ρ / ( L 0 + L 1 ∥ ∇ f ( x t )∥) and the descent step is γ / ( L 0 + L 1 ∥ ∇ f ( y t ) ∥ ) \gamma/(L_0+L_1\lVert\nabla f(y_t)\rVert) γ / ( L 0 + L 1 ∥ ∇ f ( y t )∥) ; in particular, the perturbation multiplier is exactly the α ( s ) = ρ / ( L 0 + L 1 s ) \alpha(s)=\rho/(L_0+L_1s) α ( s ) = ρ / ( L 0 + L 1 s ) permitted by Theorem 2.2. With the loss scale M = M H M=M_H M = M H , the perturbation step is ρ / ( H 0 + H 1 ( f ( x t ) − f ⋆ ) ) \rho/(H_0+H_1(f(x_t)-f_\star)) ρ / ( H 0 + H 1 ( f ( x t ) − f ⋆ )) and the descent step is γ / ( H 0 + H 1 ( f ( y t ) − f ⋆ ) ) \gamma/(H_0+H_1(f(y_t)-f_\star)) γ / ( H 0 + H 1 ( f ( y t ) − f ⋆ )) . Note that in this case, the perturbation multiplier is not covered by Theorem 2.2. Like SAM and USAM, CS-SAM costs two gradient evaluations per iteration; the scale M L M_L M L is computed from the gradient already in hand, and M H M_H M H from the function value and f ⋆ f_\star f ⋆ .
Table 2: The curvature scales associated with (2) , (3) and (4) as instances of CS-SAM. For each scale we list the assumption under which it is a curvature scale, the admissibility constant κ \kappa κ of Proposition 2.4, the perturbation and descent steps of CS-SAM, and the curvature-scaled gradient method obtained at ρ = 0 \rho= 0 ρ = 0 (CS-GD, § 2.2 ).
Table 2.
Let us highlight the degenerate case. For ρ = 0 \rho=0 ρ = 0 we have y t = x t y_t=x_t y t = x t , and CS-SAM reduces to curvature-scaled gradient descent, that is, gradient descent with the curvature-scaled step γ / M ( x t ) \gamma/M(x_t) γ / M ( x t ) :
x t + 1 = x t − γ M ( x t ) ∇ f ( x t ) . x_{t+1}=x_t-\frac{\gamma}{M(x_t)}\nabla f(x_t). x t + 1 = x t − M ( x t ) γ ∇ f ( x t ) .
CS-SAM is thus a generalization of CS-GD, whose instances at the three scales are listed in the last column of Table 2 , and in § 3 we compare its guarantees with known gradient descent results.
In contrast to SAM and USAM, the relative distortion of CS-SAM is uniformly bounded for any admissible curvature scale, as we now show.
Theorem 2.5. Let M M M be κ \kappa κ -admissible, let ρ ≥ 0 \rho\ge0 ρ ≥ 0 , γ > 0 \gamma> 0 γ > 0 , and run CS-SAM. Then every iteration with ∇ f ( x t ) ≠ 0 \nabla f(x_t) \ne0 ∇ f ( x t ) = 0 satisfies
e − ρ M ( x t ) ≤ M ( y t ) ≤ e ρ M ( x t ) , ∥ ∇ f ( y t ) − ∇ f ( x t ) ∥ ∥ ∇ f ( x t ) ∥ ≤ e ρ − 1. (13) e^{-\rho}M(x_t) \le M(y_t) \le e^{\rho}M(x_t), \qquad\frac{\lVert\nabla f(y_t) - \nabla f(x_t) \rVert}{\lVert\nabla f(x_t) \rVert} \le e^{\rho} - 1. \tag*{(13)} e − ρ M ( x t ) ≤ M ( y t ) ≤ e ρ M ( x t ) , ∥ ∇ f ( x t )∥ ∥ ∇ f ( y t ) − ∇ f ( x t )∥ ≤ e ρ − 1. (13) In particular, D C S − S A M ≤ e ρ − 1 D_{\mathrm{CS-SAM}} \le e^{\rho} - 1 D CS − SAM ≤ e ρ − 1 .
Let us highlight what Theorem 2.5 says. The curvature scale at the perturbed point stays within a factor e ± ρ e^{\pm\rho} e ± ρ of the scale at the iterate, and the relative gradient distortion never exceeds e ρ − 1 e^{\rho} - 1 e ρ − 1 . This is exactly the uniform control that (6) , (7) , and Proposition 2.1 show SAM and USAM lack: the bound does not degenerate as ∥ ∇ f ( x t ) ∥ → 0 \lVert\nabla f(x_t) \rVert\to0 ∥ ∇ f ( x t )∥ → 0 , nor as ∥ ∇ f ( x t ) ∥ → ∞ \lVert\nabla f(x_t) \rVert\to\infty ∥ ∇ f ( x t )∥ → ∞ . Moreover, the bound depends neither on the admissibility constant κ \kappa κ nor on which admissible scale is used, so the constant scale, the ( L 0 , L 1 ) (L_0, L_1) ( L 0 , L 1 ) scale, and the ( H 0 , H 1 ) (H_0, H_1) ( H 0 , H 1 ) scale all inherit it. In particular, taking δ = e ρ − 1 \delta= e^{\rho} - 1 δ = e ρ − 1 in § 2.1 , D C S − S A M < 1 D_{\mathrm{CS-SAM}} < 1 D CS − SAM < 1 whenever ρ < log 2 \rho< \log2 ρ < log 2 , which is a necessary condition for the rates of § 3 : the condition χ ( ρ , γ ) > 0 \chi(\rho, \gamma) > 0 χ ( ρ , γ ) > 0 of (14) under which they hold forces ρ < log 2 \rho< \log2 ρ < log 2 .
Convergence rates
In this section, we present convergence rates for CS-SAM run with the curvature scales M L M_L M L of (3) and M H M_H M H of (4) . We first fix the constants and the function classes that appear in the bounds. Then, § 3.1 states the rates for the gradient scale M L M_L M L and § 3.2 those for the loss scale M H M_H M H , each as one theorem with a nonconvex, a convex, and a PL item. The proofs can be found in Appendices D.1 and D.2; the auxiliary lemmas they rely on are collected in Appendix § 9 .
Constants. For u ≥ 0 u \ge0 u ≥ 0 let ω ( u ) : = ( e u − 1 − u ) / u 2 \omega(u) := (e^u - 1 - u)/u^2 ω ( u ) := ( e u − 1 − u ) / u 2 for u > 0 u > 0 u > 0 and ω ( 0 ) : = 1 / 2 \omega(0) := 1/2 ω ( 0 ) := 1/2 . Define
χ ( ρ , γ ) : = 2 − e ρ − γ ω ( γ ) e 3 ρ , c 0 : = 1 − ρ ( e ρ − 1 ) 2 log 2 − 1 − γ e 3 ρ 2 ( 2 log 2 − 1 ) . (14) \chi(\rho,\gamma) := 2 - e^\rho- \gamma\omega(\gamma)e^{3\rho}, \qquad c_0 := 1 - \frac{\rho(e^\rho- 1)}{2\log2 - 1} - \frac{\gamma e^{3\rho}}{2(2\log2 - 1)}. \tag*{(14)} χ ( ρ , γ ) := 2 − e ρ − γ ω ( γ ) e 3 ρ , c 0 := 1 − 2 log 2 − 1 ρ ( e ρ − 1 ) − 2 ( 2 log 2 − 1 ) γ e 3 ρ . (14)
The condition χ ( ρ , γ ) > 0 \chi(\rho,\gamma) > 0 χ ( ρ , γ ) > 0 forces ρ < log 2 \rho< \log2 ρ < log 2 . All results below assume χ ( ρ , γ ) > 0 \chi(\rho,\gamma) > 0 χ ( ρ , γ ) > 0 ; the convex results assume in addition c 0 ≥ 0 c_0 \ge0 c 0 ≥ 0 . The two conditions restrict how large the perturbation and the step may be taken. In the degenerate case ρ = 0 \rho= 0 ρ = 0 , that is, for CS-GD, the constants reduce to χ ( 0 , γ ) = 1 + 2 γ − e γ \chi(0,\gamma) = 1 + 2\gamma- e^\gamma χ ( 0 , γ ) = 1 + 2 γ − e γ and c 0 = 1 − γ / ( 2 ( 2 log 2 − 1 ) ) c_0 = 1 - \gamma/(2(2\log2 - 1)) c 0 = 1 − γ / ( 2 ( 2 log 2 − 1 )) .
Function classes. We say that f f f is convex with a minimizer if f f f is convex and attains f ⋆ f_\star f ⋆ at some x ⋆ x_\star x ⋆ . We say that f f f satisfies the μ \mu μ -PL condition for some μ > 0 \mu> 0 μ > 0 if
1 2 ∥ ∇ f ( x ) ∥ 2 ≥ μ ( f ( x ) − f ⋆ ) ∀ x ∈ R d . (15) \frac{1}{2}\lVert\nabla f(x)\rVert^2 \ge\mu\left(f(x)-f_\star\right) \qquad\forall x \in\mathbb{R}^d. \tag*{(15)} 2 1 ∥ ∇ f ( x ) ∥ 2 ≥ μ ( f ( x ) − f ⋆ ) ∀ x ∈ R d . (15)
( L 0 , L 1 ) (L_0,L_1) ( L 0 , L 1 ) curvature scale: M = M L M=M_L M = M L
Throughout this subsection f f f satisfies (3) and CS-SAM is run with the curvature scale M = M L M=M_L M = M L , so that the perturbation step is ρ / ( L 0 + L 1 ∥ ∇ f ( x t ) ∥ ) \rho/(L_0+L_1\lVert\nabla f(x_t)\rVert) ρ / ( L 0 + L 1 ∥ ∇ f ( x t )∥) and the descent step is γ / ( L 0 + L 1 ∥ ∇ f ( y t ) ∥ ) \gamma/(L_0+L_1\lVert\nabla f(y_t)\rVert) γ / ( L 0 + L 1 ∥ ∇ f ( y t )∥) . We collect the three rates in one statement.
Theorem 3.1. Let f f f satisfy (3) , let ρ ≥ 0 \rho\ge0 ρ ≥ 0 and γ > 0 \gamma> 0 γ > 0 satisfy χ ( ρ , γ ) > 0 \chi(\rho,\gamma)>0 χ ( ρ , γ ) > 0 , and let ( x t ) t ≥ 0 (x_t)_{t\ge0} ( x t ) t ≥ 0 be generated by CS-SAM with M = M L M=M_L M = M L . Then, for every T ≥ 1 T\ge1 T ≥ 1 , the following hold:
(i) (Nonconvex rate )
min 0 ≤ t < T ∥ ∇ f ( x t ) ∥ 2 ≤ ( e ρ L 0 ( f ( x 0 ) − f ⋆ ) γ χ ( ρ , γ ) T + e ρ L 1 ( f ( x 0 ) − f ⋆ ) γ χ ( ρ , γ ) T ) 2 . (16) \min_{0\le t<T}\lVert\nabla f(x_t)\rVert^2 \le\left(\sqrt{\frac{e^{\rho}L_0(f(x_0)-f_\star)}{\gamma\chi(\rho,\gamma)T}}+\frac{e^{\rho}L_1(f(x_0)-f_\star)}{\gamma\chi(\rho,\gamma)T}\right)^2. \tag*{(16)} 0 ≤ t < T min ∥ ∇ f ( x t ) ∥ 2 ≤ ( γ χ ( ρ , γ ) T e ρ L 0 ( f ( x 0 ) − f ⋆ ) + γ χ ( ρ , γ ) T e ρ L 1 ( f ( x 0 ) − f ⋆ ) ) 2 . (16) (ii) (Convex rate ) If in addition f f f is convex with a minimizer x ⋆ x_\star x ⋆ and c 0 ≥ 0 c_0\ge0 c 0 ≥ 0 , then
f ( x T ) − f ⋆ ≤ e ρ ( L 0 ∥ x 0 − x ⋆ ∥ 2 + L 1 ∥ x 0 − x ⋆ ∥ ( f ( x 0 ) − f ⋆ ) ) γ χ ( ρ , γ ) T . (17) f(x_T)-f_\star\le\frac{e^{\rho}\left(L_0\lVert x_0-x_\star\rVert^2+L_1\lVert x_0-x_\star\rVert(f(x_0)-f_\star)\right)}{\gamma\chi(\rho,\gamma)T}. \tag*{(17)} f ( x T ) − f ⋆ ≤ γ χ ( ρ , γ ) T e ρ ( L 0 ∥ x 0 − x ⋆ ∥ 2 + L 1 ∥ x 0 − x ⋆ ∥ ( f ( x 0 ) − f ⋆ ) ) . (17) (iii) (PL rate ) If in addition f f f satisfies the μ \mu μ -PL condition (15) , then
f ( x T ) − f ⋆ ≤ ( 1 − 2 μ γ e − ρ χ ( ρ , γ ) L 0 + L 1 2 μ ( f ( x 0 ) − f ⋆ ) ) T ( f ( x 0 ) − f ⋆ ) . (18) f(x_T)-f_\star\le\left(1-\frac{2\mu\gamma e^{-\rho}\chi(\rho,\gamma)}{L_0+L_1\sqrt{2\mu(f(x_0)-f_\star)}}\right)^T(f(x_0)-f_\star). \tag*{(18)} f ( x T ) − f ⋆ ≤ ( 1 − L 0 + L 1 2 μ ( f ( x 0 ) − f ⋆ ) 2 μ γ e − ρ χ ( ρ , γ ) ) T ( f ( x 0 ) − f ⋆ ) . (18)
Let us read the three items in turn. Item (i) shows that the best squared gradient norm decays as O ( 1 / T ) O(1/T) O ( 1/ T ) : expanding the square, the leading term is e ρ L 0 ( f ( x 0 ) − f ⋆ ) / ( γ χ ( ρ , γ ) T ) e^{\rho}L_0(f(x_0)-f_\star)/(\gamma\chi(\rho,\gamma)T) e ρ L 0 ( f ( x 0 ) − f ⋆ ) / ( γ χ ( ρ , γ ) T ) and depends on L 0 L_0 L 0 alone, while the gradient-dependent constant L 1 L_1 L 1 enters only through terms of lower order in T T T . Note that the bound requires nothing beyond (3) and χ ( ρ , γ ) > 0 \chi(\rho,\gamma)>0 χ ( ρ , γ ) > 0 , that is, no bounded gradients and no bounded iterates, and that running the method needs nothing beyond the constants L 0 , L 1 L_0,L_1 L 0 , L 1 that define the scale. Item (ii) gives an O ( 1 / T ) O(1/T) O ( 1/ T ) bound on the gap of the last iterate for convex objectives, with a leading term proportional to L 0 ∥ x 0 − x ⋆ ∥ 2 L_0\lVert x_0-x_\star\rVert^2 L 0 ∥ x 0 − x ⋆ ∥ 2 and a second term proportional to L 1 ∥ x 0 − x ⋆ ∥ ( f ( x 0 ) − f ⋆ ) L_1\lVert x_0-x_\star\rVert(f(x_0)-f_\star) L 1 ∥ x 0 − x ⋆ ∥ ( f ( x 0 ) − f ⋆ ) . The additional condition c 0 ≥ 0 c_0\ge0 c 0 ≥ 0 is what keeps the iterates within the initial distance of x ⋆ x_\star x ⋆ (Lemma B.6 ), and it is the only place where the second constant of (14) enters. Item (iii) gives a linear rate under the PL condition.
Comparison with gradient methods at ρ = 0 \rho=0 ρ = 0 . Let us now compare our guarantees with the known ones in the degenerate case. For ρ = 0 \rho=0 ρ = 0 , CS-SAM with M = M L M=M_L M = M L is the gradient descent with step γ / ( L 0 + L 1 ∥ ∇ f ( x t ) ∥ ) \gamma/(L_0+L_1\lVert\nabla f(x_t)\rVert) γ / ( L 0 + L 1 ∥ ∇ f ( x t )∥) , and the constant e ρ / ( γ χ ( ρ , γ ) ) e^\rho/(\gamma\chi(\rho,\gamma)) e ρ / ( γ χ ( ρ , γ )) in items (i) and (ii) equals 1 / ( 1 + 2 γ − e γ ) 1/(1+2\gamma-e^\gamma) 1/ ( 1 + 2 γ − e γ ) , which is 1 / ( 2 log 2 − 1 ) ≈ 2.59 1/(2\log2-1)\approx2.59 1/ ( 2 log 2 − 1 ) ≈ 2.59 at γ = log 2 \gamma=\log2 γ = log 2 . This is the method analyzed by Vankov et al. [ [34 ] and Gorbunov et al. [ [13 ] , and Theorem 3.1(i)–(ii) give the same rates as Theorems 3.1 and 3.2 of Vankov et al. [ [34 ] : the best squared gradient norm decays as 1 / T 1/T 1/ T with the L 1 L_1 L 1 term of lower order, and the gap decays as 1 / T 1/T 1/ T with an L 1 ∥ x 0 − x ⋆ ∥ L_1\lVert x_0-x_\star\rVert L 1 ∥ x 0 − x ⋆ ∥ term. Our analysis therefore recovers the known asymptotic rate orders in T T T of the curvature-scaled gradient method as the special case ρ = 0 \rho=0 ρ = 0 , and extends them to the SAM setting. To the best of our knowledge, Theorem 3.1 provides the first convergence rates for a SAM-type method under the ( L 0 , L 1 ) (L_0,L_1) ( L 0 , L 1 ) curvature scale.
( H 0 , H 1 ) (H_0,H_1) ( H 0 , H 1 ) curvature scale: M = M H M=M_H M = M H
Throughout this subsection f f f satisfies (4) and is nonconstant, so that M H > 0 M_H>0 M H > 0 everywhere by Proposition 2.4(iii), and CS-SAM is run with the curvature scale M = M H M=M_H M = M H : the perturbation step is ρ / ( H 0 + H 1 ( f ( x t ) − f ⋆ ) ) \rho/(H_0+H_1(f(x_t)-f_\star)) ρ / ( H 0 + H 1 ( f ( x t ) − f ⋆ )) and the descent step is γ / ( H 0 + H 1 ( f ( y t ) − f ⋆ ) ) \gamma/(H_0+H_1(f(y_t)-f_\star)) γ / ( H 0 + H 1 ( f ( y t ) − f ⋆ )) . Note that the loss scale is evaluated relative to f ⋆ f_\star f ⋆ , which the method therefore needs, in contrast to the gradient scale of § 3.1 .
Theorem 3.2. Let f f f satisfy (4) and be nonconstant, let ρ ≥ 0 \rho\geq0 ρ ≥ 0 and γ > 0 \gamma>0 γ > 0 satisfy χ ( ρ , γ ) > 0 \chi(\rho,\gamma)>0 χ ( ρ , γ ) > 0 , and let ( x t ) t ≥ 0 (x_t)_{t\geq0} ( x t ) t ≥ 0 be generated by CS-SAM with M = M H M=M_H M = M H . Then, for every T ≥ 1 T\geq1 T ≥ 1 , the following hold:
(i) (Nonconvex rate )
min 0 ≤ t < T ∥ ∇ f ( x t ) ∥ 2 ≤ e ρ ( H 0 + H 1 ( f ( x 0 ) − f ⋆ ) ) ( f ( x 0 ) − f ⋆ ) γ χ ( ρ , γ ) T (19) \min_{0\leq t<T}\|\nabla f(x_t)\|^2\leq\frac{e^\rho(H_0+H_1(f(x_0)-f_\star))(f(x_0)-f_\star)}{\gamma\chi(\rho,\gamma)T} \tag*{(19)} 0 ≤ t < T min ∥∇ f ( x t ) ∥ 2 ≤ γ χ ( ρ , γ ) T e ρ ( H 0 + H 1 ( f ( x 0 ) − f ⋆ )) ( f ( x 0 ) − f ⋆ ) (19) (ii) (Convex rate ) If in addition f f f is convex with a minimizer x ⋆ x_\star x ⋆ and c 0 ≥ 0 c_0\geq0 c 0 ≥ 0 , then
f ( x T ) − f ⋆ ≤ e ρ ( H 0 + H 1 ( f ( x 0 ) − f ⋆ ) ) ∥ x 0 − x ⋆ ∥ 2 γ χ ( ρ , γ ) T (20) f(x_T)-f_\star\leq\frac{e^\rho(H_0+H_1(f(x_0)-f_\star))\|x_0-x_\star\|^2}{\gamma\chi(\rho,\gamma)T} \tag*{(20)} f ( x T ) − f ⋆ ≤ γ χ ( ρ , γ ) T e ρ ( H 0 + H 1 ( f ( x 0 ) − f ⋆ )) ∥ x 0 − x ⋆ ∥ 2 (20) (iii) (PL rate ) If in addition f f f satisfies the μ \mu μ -PL condition (15) , then
f ( x T ) − f ⋆ ≤ ( 1 − 2 μ γ e − ρ χ ( ρ , γ ) H 0 + H 1 ( f ( x 0 ) − f ⋆ ) ) T ( f ( x 0 ) − f ⋆ ) . (21) f(x_T)-f_\star\leq\left(1-\frac{2\mu\gamma e^{-\rho}\chi(\rho,\gamma)}{H_0+H_1(f(x_0)-f_\star)}\right)^T(f(x_0)-f_\star). \tag*{(21)} f ( x T ) − f ⋆ ≤ ( 1 − H 0 + H 1 ( f ( x 0 ) − f ⋆ ) 2 μ γ e − ρ χ ( ρ , γ ) ) T ( f ( x 0 ) − f ⋆ ) . (21)
The three items have the same shape as in Theorem 3.1, with one difference worth pointing out: the dependence on the curvature parameters is different. Item (i) bounds the best squared gradient norm by O ( 1 / T ) O(1/T) O ( 1/ T ) with a constant proportional to ( H 0 + H 1 ( f ( x 0 ) − f ⋆ ) ) ( f ( x 0 ) − f ⋆ ) (H_0+H_1(f(x_0)-f_\star))(f(x_0)-f_\star) ( H 0 + H 1 ( f ( x 0 ) − f ⋆ )) ( f ( x 0 ) − f ⋆ ) . Thus, unlike the L 1 L_1 L 1 contribution in Theorem 3.1(i), the H 1 H_1 H 1 contribution occurs at the leading 1 / T 1/T 1/ T order. Item (ii) gives an O ( 1 / T ) O(1/T) O ( 1/ T ) bound on the last-iterate gap for convex objectives, proportional to ( H 0 + H 1 ( f ( x 0 ) − f ⋆ ) ) ∥ x 0 − x ⋆ ∥ 2 (H_0+H_1(f(x_0)-f_\star))\|x_0-x_\star\|^2 ( H 0 + H 1 ( f ( x 0 ) − f ⋆ )) ∥ x 0 − x ⋆ ∥ 2 , again under c 0 ≥ 0 c_0\geq0 c 0 ≥ 0 , which bounds the iterates as in § 3.1 . Item (iii) gives a linear rate under the PL condition, with contraction factor 1 − 2 μ γ e − ρ χ ( ρ , γ ) / ( H 0 + H 1 ( f ( x 0 ) − f ⋆ ) ) 1-2\mu\gamma e^{-\rho}\chi(\rho,\gamma)/(H_0+H_1(f(x_0)-f_\star)) 1 − 2 μ γ e − ρ χ ( ρ , γ ) / ( H 0 + H 1 ( f ( x 0 ) − f ⋆ )) .
**Comparison with gradient methods at ρ = 0. ∗ ∗ F o r \rho=0.** For ρ = 0. ∗ ∗ F or \rho=0$, CS-SAM with M = M H M=M_H M = M H is gradient descent with the step γ / ( H 0 + H 1 ( f ( x t ) − f ⋆ ) ) \gamma/(H_0+H_1(f(x_t)-f_\star)) γ / ( H 0 + H 1 ( f ( x t ) − f ⋆ )) , and, as in § 3.1 , the constant e ρ / ( γ χ ( ρ , γ ) ) e^\rho/(\gamma\chi(\rho,\gamma)) e ρ / ( γ χ ( ρ , γ )) in items (i) and (ii) equals $1/(1+2\gamma-e^\gamma)$, which is 1 / ( 2 log 2 − 1 ) ≈ 2.59 1/(2\log2-1)\approx2.59 1/ ( 2 log 2 − 1 ) ≈ 2.59 at γ = log 2 \gamma=\log2 γ = log 2 . This kind of loss-dependent step was used by Alimisis et al. [ [2 ] , who took 1 / ( 10 H 0 + 20 H 1 ( f ( x t ) − f ⋆ ) ) 1/(10H_0+20H_1(f(x_t)-f_\star)) 1/ ( 10 H 0 + 20 H 1 ( f ( x t ) − f ⋆ )) , and Theorem 3.2(ii)–(iii) give the same rates as their Theorems 4.2 and 4.3, namely a 1 / T 1/T 1/ T gap in the convex case and a linear rate under the PL condition, with a larger step at γ = log 2 \gamma=\log2 γ = log 2 : their denominator coefficients 10 and 20 are both replaced by 1 / log 2 ≈ 1.44 1/\log2\approx1.44 1/ log 2 ≈ 1.44 . At ρ = 0 \rho=0 ρ = 0 our guarantees thus match the known rates for gradient descent with a loss-dependent step and allow larger step sizes, and they extend to any positive perturbation with χ ( ρ , γ ) > 0 \chi(\rho,\gamma)>0 χ ( ρ , γ ) > 0 . To the best of our knowledge, Theorem 3.2 provides the first convergence rates for a SAM-type method under the ( H 0 , H 1 ) (H_0,H_1) ( H 0 , H 1 ) curvature scale.
Remark 3.3. As we show in Proposition 2.4(iv), every objective satisfying (3) also satisfies (4) with H 0 = 3 L 0 / 2 H_0=3L_0/2 H 0 = 3 L 0 /2 and H 1 = 3 L 1 2 / ( 2 ( 2 log 2 − 1 ) ) H_1=3L_1^2/(2(2\log2-1)) H 1 = 3 L 1 2 / ( 2 ( 2 log 2 − 1 )) , so one could ask why we treat the two scales separately. Note that CS-SAM with M = M L M=M_L M = M L and CS-SAM with M = M H M=M_H M = M H are the same algorithm run with different steps: while one assumption implies the other, the perturbation step and the descent step are scaled by M L M_L M L in one case and by M H M_H M H in the other. Theorems 3.1 and 3.2 are therefore guarantees for two different step choices.
Numerical experiments
In this section, we first verify the results of § 2 on the two one-dimensional objectives of Proposition 2.1 (§ 4.1 ), and we then test CS-SAM on the training of deep neural networks against tuned SAM and USAM baselines (§ 4.2 ). The complete protocols are given in Appendix § 12 .
Verification of Section 2
The experiments of this subsection are deterministic and one-dimensional, with exact function values and gradients. We use the quadratic f ( x ) = x 2 / 2 f(x)=x^2/2 f ( x ) = x 2 /2 and the quartic f ( x ) = x 4 / 4 f(x)=x^4/4 f ( x ) = x 4 /4 of Proposition 2.1. The two scales coincide on the quadratic, M L = M H ≡ 1 M_L=M_H\equiv1 M L = M H ≡ 1 , while on the quartic M L ( x ) = 4 + ∣ x ∣ 3 M_L(x)=4+|x|^3 M L ( x ) = 4 + ∣ x ∣ 3 and M H ( x ) = 3 + 3 x 4 / 4 M_H(x)=3+3x^4/4 M H ( x ) = 3 + 3 x 4 /4 , that is, the constants ( L 0 , L 1 ) = ( 4 , 1 ) (L_0,L_1)=(4,1) ( L 0 , L 1 ) = ( 4 , 1 ) of Proposition 2.1(ii) and ( H 0 , H 1 ) = ( 3 , 3 ) (H_0,H_1)=(3,3) ( H 0 , H 1 ) = ( 3 , 3 ) ; both bound the curvature 3 x 2 3x^2 3 x 2 at every x x x (Appendix § 12 .§ 1 ). Throughout, CS-SAM is run with ρ = γ = 1 / 8 \rho=\gamma=1/8 ρ = γ = 1/8 , for which χ ( ρ , γ ) > 0 \chi(\rho,\gamma)>0 χ ( ρ , γ ) > 0 and c 0 ≥ 0 c_0\ge0 c 0 ≥ 0 . The results are collected in Figure 1 .
Figure 1. Verification of § 2 on the objectives of Proposition 2.1. (a) Iterates of SAM on f ( x ) = x 2 / 2 f(x)=x^2/2 f ( x ) = x 2 /2 against the predicted two-cycle (dashed), with CS-SAM. (b) ∣ x t ∣ |x_t| ∣ x t ∣ of USAM on f ( x ) = x 4 / 4 f(x)=x^4/4 f ( x ) = x 4 /4 against the number of gradient evaluations, with CS-SAM for both scales. (c)–(d) Relative gradient distortion (5) against the gradient norm and the bound e ρ − 1 e^\rho-1 e ρ − 1 of Theorem 2.5.
Two-cycle and divergence. We first run the three methods on the two objectives. On the quadratic, SAM with r = 1 r=1 r = 1 and η = 0.2 \eta=0.2 η = 0.2 is started at x 0 = 3 x_0=3 x 0 = 3 ; by Proposition 2.1(i), its iterates approach the two-cycle ± a \pm a ± a with a = η r / ( 2 − η ) = 1 / 9 a=\eta r/(2-\eta)=1/9 a = η r / ( 2 − η ) = 1/9 . On the quartic, USAM with ρ = 1 / 8 \rho=1/8 ρ = 1/8 and η = 1 / 32 \eta=1/32 η = 1/32 is started at x 0 = 4 x_0=4 x 0 = 4 , which exceeds the threshold ( 2 / ( η ρ 3 ) ) 1 / 8 ≈ 3.67 (2/(\eta\rho^3))^{1/8}\approx3.67 ( 2/ ( η ρ 3 ) ) 1/8 ≈ 3.67 of Proposition 2.1(ii). Figure 1 a and Figure 1 b show the iterates. We observe that SAM oscillates between ± 1 / 9 \pm1/9 ± 1/9 (dashed lines) and does not converge, and that USAM changes sign and grows at every step, reaching ∣ x 2 ∣ ≈ 10 11 |x_2|\approx10^{11} ∣ x 2 ∣ ≈ 1 0 11 after two updates, at which point we stop the run. In contrast, CS-SAM converges to the minimizer on both objectives, with either scale.
Uniform distortion control. We next evaluate the relative gradient distortion (5) of each perturbation as a function of the gradient norm, no outer step enters this measurement. Here SAM uses r = 1 / 8 r=1/8 r = 1/8 on the quadratic and USAM uses ρ = 1 / 8 \rho=1/8 ρ = 1/8 on the quartic, so that all three perturbations share the numerical parameter 1 / 8 1/8 1/8 . Figure 1 c and Figure 1 d show the distortion together with the bound e ρ − 1 ≈ 0.133 e^\rho-1\approx0.133 e ρ − 1 ≈ 0.133 of Theorem 2.5. We observe the two failures of § 2.1 : the distortion of SAM equals ρ / ∥ ∇ f ( x ) ∥ \rho/\lVert\nabla f(x)\rVert ρ / ∥ ∇ f ( x )∥ and grows without bound as the gradient vanishes, while that of USAM equals ( 1 + ρ x 2 ) 3 − 1 (1+\rho x^2)^3-1 ( 1 + ρ x 2 ) 3 − 1 and grows without bound as the gradient grows. The distortion of CS-SAM stays below e ρ − 1 e^\rho-1 e ρ − 1 at every gradient norm and for both scales, as Theorem 2.5 guarantees. Note that on the quadratic it equals ρ \rho ρ exactly, and on the quartic it peaks below the bound and decays at both ends.
DNN experiments
In this subsection, we test CS-SAM on the training of deep neural networks and compare it with tuned SAM and USAM baselines. We go beyond the deterministic setting of § 4.1 and of our guarantees: the networks are trained with minibatch gradients, and the curvature scales are evaluated on minibatch quantities. The experiments are designed to test whether the two scales are competitive in practice. The complete grids and the per-run configurations are given in Appendix § 12 .§ 2 .
We train ResNet-20 and ResNet-32 with batch normalization on CIFAR-10 and CIFAR-100 for 200 epochs with batch size 128, random-crop and horizontal-flip augmentation without cutout, and the cross-entropy loss. Momentum and weight decay are 0 for every method, so that the comparison isolates the update rules. In the minibatch setting the M L M_L M L scale is L 0 + L 1 ∥ ∇ f i ( x ) ∥ L_0 + L_1 \lVert\nabla f_i(x) \rVert L 0 + L 1 ∥ ∇ f i ( x )∥ , and the M H M_H M H scale is H 0 + H 1 [ f i ( x ) − ℓ i ∗ ] + H_0 + H_1[f_i(x) - \ell_i^*]_+ H 0 + H 1 [ f i ( x ) − ℓ i ∗ ] + , where ℓ i ∗ \ell_i^* ℓ i ∗ is a lower bound of f i f_i f i and [ z ] + = max { z , 0 } [z]_+ = \max\{z, 0\} [ z ] + = max { z , 0 } . We set ℓ i ∗ = 0 \ell_i^* = 0 ℓ i ∗ = 0 in all our expriments. We compare against SAM and USAM, each with a constant and with a cosine annealing schedule, tuned on a 4 × 4 4 \times4 4 × 4 grid of learning rate × \times × radius (respectively multiplier) for every model–dataset cell. For CS-SAM we tune the M L M_L M L scale over ρ ∈ { 0.2 , 0.4 , 0.8 , 1.6 } \rho\in\{0.2, 0.4, 0.8, 1.6\} ρ ∈ { 0.2 , 0.4 , 0.8 , 1.6 } , γ ∈ { 0.2 , 0.4 , 0.8 } \gamma\in\{0.2, 0.4, 0.8\} γ ∈ { 0.2 , 0.4 , 0.8 } , L 0 ∈ { 0.02 , 0.5 , 2 } L_0 \in\{0.02, 0.5, 2\} L 0 ∈ { 0.02 , 0.5 , 2 } , and the M H M_H M H scale over ρ , γ ∈ { 0.3 , 1 , 3 } \rho, \gamma\in\{0.3, 1, 3\} ρ , γ ∈ { 0.3 , 1 , 3 } , H 1 ∈ { 1 , 3 , 10 , 30 } H_1 \in\{1, 3, 10, 30\} H 1 ∈ { 1 , 3 , 10 , 30 } . We run each experiment for 200 epochs. Table 3 reports, for each method and cell, the mean and standard deviation over the three seeds of the best test accuracy. We observe that both curvature scales are competitive: CS-SAM with M H M_H M H achieves the highest mean best-test accuracy in all four settings, while CS-SAM with M L M_L M L beats tuned SAM and USAM in three out of four settings.
Table 3 : Best test accuracy (%, maximum over 200 epochs), mean ± \pm ± standard deviation over 3 seeds, for ResNet-20/32 trained on CIFAR-10/100. Bold marks the best mean in each column.
Table 3. Best test accuracy (%, maximum over 200 epochs), mean ± \pm ± standard deviation over 3 seeds, for ResNet-20/32 trained on CIFAR-10/100. Bold marks the best mean in each column.
Conclusion
In this work, we studied sharpness-aware minimization under generalized smoothness through the relative gradient distortion. We showed that the distortion of SAM and USAM can become unbounded at opposite ends of the gradient scale, derived a necessary condition for uniform distortion control, and introduced CS-SAM, which scales the perturbation and the descent step by the same admissible curvature scale and keeps the distortion bounded. Under ( L 0 , L 1 ) (L_0,L_1) ( L 0 , L 1 ) - and ( H 0 , H 1 ) (H_0,H_1) ( H 0 , H 1 ) -smoothness, we established O ( 1 / T ) O(1/T) O ( 1/ T ) rates for the best squared gradient norm on nonconvex objectives and for the last-iterate gap on convex objectives, and linear convergence under the PL condition, recovering the known gradient descent rates for ρ = 0 \rho= 0 ρ = 0 . Our experiments confirmed the two failures and the distortion bound on one-dimensional objectives, and showed that both curvature scales are competitive with tuned SAM and USAM on ResNet-20/32 and CIFAR-10/100, beyond the deterministic setting of our theory. Future directions include extending the analysis to the stochastic setting, in which the curvature scales are evaluated on minibatch quantities as in our experiments, removing the dependence of the loss scale on f ⋆ f_\star f ⋆ , and combining CS-SAM with momentum and weight decay in larger-scale training.
AI use statement
We used generative AI tools to suggest proof ideas, which the authors checked and wrote up, and to streamline and edit the wording of some paragraphs and sentences. We take responsibility for the final content of this work.
Acknowledgments
The authors’ contribution to this work was supported by NSF CAREER 2542902, and AFOSR YIP FA9550-26-1-B353.
Supplementary Material
The appendix is organized as follows. In Appendix § 8 , we give a more detailed discussion of related work. In Appendix § 9 , we collect the auxiliary lemmas on admissible curvature scales and on a single iteration of CS-SAM that all proofs rely on. Appendix § 10 presents the proofs for § 2 : the verification of the distortion bounds (6) and (7) , and the proofs of Proposition 2.1, Theorem 2.2, Proposition 2.4, and Theorem 2.5. Appendix § 11 presents the proofs for § 3 , with Appendix § 11 .§ 1 for the ( L 0 , L 1 ) (L_0, L_1) ( L 0 , L 1 ) curvature scale (Theorem 3.1) and Appendix § 11 .§ 2 for the ( H 0 , H 1 ) (H_0, H_1) ( H 0 , H 1 ) curvature scale (Theorem 3.2). Finally, Appendix § 12 gives the experimental details for § 4 .
Further Related Work
In this section, we complement the discussion of related work in § 1 with a more detailed survey. We proceed from the broader literature on the dynamics of SAM and on adaptive perturbation rules to the lines closest to our work: relative control of the perturbation-induced gradient error, optimization under the curvature models (3) and (4) , and relative gradient models. We close each paragraph with a brief comparison with our results.
SAM, normalization, and optimization dynamics. Sharpness-Aware Minimization replaces the gradient at the current iterate with a gradient evaluated after a parameter perturbation, motivated by minimizing the loss over a fixed local neighborhood [12 ] . Subsequent work has shown that its behavior cannot be understood solely as ordinary descent on a smooth objective. Andriushchenko and Flammarion [ [3 ] studied the implicit bias of SAM and the role of stochastic sharpness, while Dai et al. [ [10 ] identified stabilization and continued motion along manifolds of minima as important effects of the gradient normalization. Bartlett et al. [ [5 ] showed that fixed-radius SAM typically approaches a two-cycle on convex quadratics and that analogous oscillations can induce drift toward regions with smaller Hessian spectral norm on nonquadratic landscapes. Si and Yun [ [29 ] established unavoidable stationarity neighborhoods for practical fixed-radius SAM in several settings, and Park et al. [ [26 ] showed that SAM can converge to points at which the perturbed-point gradient vanishes even though the original gradient does not. Our quadratic construction in Proposition 2.1(i) should therefore be viewed as an exact illustration of established late-stage phenomena. Our new point is that the low-gradient failure of SAM and the high-gradient amplification of USAM are complementary consequences of expressing the perturbation budget in inappropriate units, which Theorem 2.2 makes precise.
Unified and adaptive perturbation rules. Unified SAM [24 ] interpolates between SAM and USAM through a fixed normalization rule and provides deterministic and stochastic convergence guarantees under several sampling and step-size choices. Other methods adapt the perturbation: ASAM [21 ] rescales the parameter-space neighborhood to obtain scale invariance, whereas Fisher SAM [19 ] replaces the Euclidean ball by a Fisher-information geometry. LETS [Wang et al., 2024] learns the perturbation radius through a bilevel training–validation objective, LightSAM [7 ] adapts the perturbation radius and the outer learning rate using AdaGrad- and Adam-style statistics, and LE-SAM [Wang et al., 2026] replaces the fixed parameter-space radius by a fixed loss-space budget. More recent methods adapt the radius from the observed Taylor-approximation error [11 ] or redistribute a fixed global radius across parameter blocks using moving averages of blockwise gradient energy [17 ] . Polyak-type SAM schedulers instead adapt the outer step from function values under classical smoothness [25 ] . In contrast, CS-SAM adapts the perturbation through one scalar quantity, an upper bound on the local curvature (Definition 2.3 ), rather than through validation performance, optimizer statistics, parameter scale, blockwise gradient energy, or a loss-space budget. Moreover, the scaling of the perturbation is derived rather than chosen: it is motivated by the necessary condition of Theorem 2.2 for uniformly bounded relative gradient distortion, and Theorem 2.5 shows that it meets this requirement for every admissible scale. Finally, the same curvature scale sets the outer step, so that a single quantity controls both the perturbation and the descent step.
Relative-error control and exact stationarity. Inexact-gradient analysis provides a natural framework for studying gradients evaluated at perturbed points. Khanh et al. [ [18 ] used this perspective to establish convergence results for several normalized and unnormalized SAM variants, including conditions that control the perturbation-induced gradient error. Adly and Le [ [1 ] analyzed the deterministic family
y t = x t + ρ ∇ f ( x t ) ∥ ∇ f ( x t ) ∥ α , 0 ≤ α ≤ 1 , y_t = x_t + \rho\frac{\nabla f(x_t)}{\lVert\nabla f(x_t) \rVert^\alpha}, \qquad0 \le\alpha\le1, y t = x t + ρ ∥ ∇ f ( x t ) ∥ α ∇ f ( x t ) , 0 ≤ α ≤ 1 ,
under classical smoothness (2) . They identified stationarity floors for constant-parameter rules and proposed a clipped perturbation that agrees with the original rule away from stationarity but becomes gradientproportional near stationary points, yielding ∥ ∇ f ( x t ) ∥ → 0 \lVert\nabla f(x_t) \rVert\to0 ∥ ∇ f ( x t )∥ → 0 . Relative control of the gradient error is therefore not new by itself. Our contribution is to derive the scaling required to enforce such control uniformly under gradient-dependent curvature: by Theorem 2.2, every perturbation in the gradient direction with uniformly bounded distortion over the class {(3)} must be USAM-like near stationarity and SAM-like at large gradients. The curvature-scaled perturbation of CS-SAM realizes both regimes and couples the resulting inner perturbation to a curvature-scaled outer step.
Optimization beyond uniform smoothness. The ( L 0 , L 1 ) (L_0,L_1) ( L 0 , L 1 ) -smoothness model {(3)} was introduced to describe objectives whose local curvature can grow with the gradient norm and to explain the effectiveness of clipping and normalized gradients [Zhang et al., 2020b]. Subsequent work developed sharper clipping, acceleration, normalization, and adaptive methods for this class [6 , 9 , 13 , 20 , 22 , 34 ] (Zhang et al. 2020a). Curvature-scaled ordinary gradient steps are therefore established machinery rather than a contribution of this paper. The same model has also been extended to variational inequalities and root-finding problems, with adaptive-stepsize and extragradient-type methods [8 , 14 , 33 ] (Yoon et al. 2026). The loss-dependent condition {(4)} has likewise been used to explain learning-rate warm-up [2 ] and to analyze line search, steepest descent, and adaptive methods [35 ] (Vaswani et al. 2026). Our contribution is to use the same machinery for the perturbation: in CS-SAM, the curvature scale that sets the descent step also sets the perturbation, and Theorem 2.5 shows that this keeps the relative gradient distortion uniformly bounded. The resulting rates have the same asymptotic orders in T T T as those of curvature-scaled gradient descent, with different dependence on the curvature parameters and initial conditions, and they recover the known gradient-descent rates at ρ = 0 \rho= 0 ρ = 0 (§ 3 ).
Relative gradient models and curvature geometry. Gradient-normalized smoothness characterizes the neighborhood in which the gradient admits a reliable relative approximation, and uses it to globalize methods based on approximate Hessians [28 ] . We specialize this relative-locality principle to a first-order sharpness-aware perturbation, with an explicit rule based on a scalar curvature scale and a necessity result for perturbations in the gradient direction (Theorem 2.2). The exponential local models of {(11)} are also reminiscent of generalized self-concordance, where controlled curvature growth replaces a uniform Hessian bound [31 ] ; unlike that convex, Newton-oriented framework, our analysis certifies a two-gradient SAM update on nonconvex objectives.
Geometry, generalization, and scope. Parameter-space sharpness is sensitive to neural-network reparameterization, and empirical evaluations show that no single sharpness measure universally predicts generalization [4 , 21 ] . Fisher SAM and μ P 2 \mu P^2 μ P 2 further illustrate that information-geometric or layerwise perturbation scaling can be important in modern networks [16 , 19 ] . Moreover, late-stage SAM can be especially effective for selecting flatter minima [Zhou et al., 2025], while standard parameter-space SAM can optimize spurious notions of sharpness in language modeling [30 ] . CS-SAM should therefore be viewed as an optimization method rather than a parameterization-invariant theory of generalization. The present analysis is deterministic, assumes exact gradients and function values, and uses a global Euclidean scalar curvature scale.
Auxiliary lemmas
In this section, we collect the lemmas used in Appendices C and D. All of them are stated for a general κ \kappa κ -admissible scale M M M (Definition 2.3 ), with three exceptions: Lemma B.1 is the differential form of Grönwall’s inequality, Lemmas B.7 and B.8 concern the loss scale M H M_H M H of (4) and Lemma B.9 is an elementary fact about sequences.
Conventions for the proofs. The constants χ ( ρ , γ ) \chi(\rho,\gamma) χ ( ρ , γ ) and c 0 c_0 c 0 are defined in (14) . If the method stops at some x t x_t x t , then ∇ f ( x t ) = 0 \nabla f(x_t)=0 ∇ f ( x t ) = 0 : the best gradient norm is then zero, and under convexity or the PL condition x t x_t x t is a global minimizer, so every bound below holds trivially from that index on. We therefore assume in all proofs that ∇ f ( x t ) ≠ 0 \nabla f(x_t)\ne0 ∇ f ( x t ) = 0 for every t t t . Note that χ ( ρ , γ ) > 0 \chi(\rho,\gamma)>0 χ ( ρ , γ ) > 0 implies 2 − e ρ > γ ω ( γ ) e 3 ρ > 0 2-e^\rho>\gamma\omega(\gamma)e^{3\rho}>0 2 − e ρ > γ ω ( γ ) e 3 ρ > 0 , hence ρ < log 2 \rho<\log2 ρ < log 2 and γ e − ρ χ ( ρ , γ ) > 0 \gamma e^{-\rho}\chi(\rho,\gamma)>0 γ e − ρ χ ( ρ , γ ) > 0 . Finally, recall that ω ( u ) = ∑ k ≥ 0 u k ( k + 2 ) ! \omega(u)=\sum_{k\ge0}\frac{u^k}{(k+2)!} ω ( u ) = ∑ k ≥ 0 ( k + 2 )! u k , so ω \omega ω is increasing on [ 0 , ∞ ) [0,\infty) [ 0 , ∞ ) , and that
u + u 2 ω ( u ) = e u − 1 , u − u 2 ω ( u ) = 1 + 2 u − e u ( u ≥ 0 ) . (22) u+u^2\omega(u)=e^u-1,\qquad u-u^2\omega(u)=1+2u-e^u\qquad(u\ge0). \tag*{(22)} u + u 2 ω ( u ) = e u − 1 , u − u 2 ω ( u ) = 1 + 2 u − e u ( u ≥ 0 ) . (22)
We begin with the differential form of Grönwall’s inequality [15 ] , stated for absolutely continuous functions because the gradient scale M L M_L M L is only Lipschitz along a segment. We include the short proof for completeness.
Lemma B.1 (Grönwall’s inequality; see [15 ] ). Let c ≥ 0 c\ge0 c ≥ 0 and let g : [ 0 , 1 ] → [ 0 , ∞ ) g:[0,1]\to[0,\infty) g : [ 0 , 1 ] → [ 0 , ∞ ) be absolutely continuous with g ′ ( s ) ≤ c g ( s ) g'(s)\le cg(s) g ′ ( s ) ≤ c g ( s ) for almost every s ∈ [ 0 , 1 ] s\in[0,1] s ∈ [ 0 , 1 ] . Then g ( s ) ≤ g ( 0 ) e c s g(s)\le g(0)e^{cs} g ( s ) ≤ g ( 0 ) e cs for every s ∈ [ 0 , 1 ] s\in[0,1] s ∈ [ 0 , 1 ] .
Proof. The function h ( s ) : = e − c s g ( s ) h(s):=e^{-cs}g(s) h ( s ) := e − cs g ( s ) is absolutely continuous on [ 0 , 1 ] [0,1] [ 0 , 1 ] , with h ′ ( s ) = e − c s ( g ′ ( s ) − c g ( s ) ) ≤ 0 h'(s)=e^{-cs}(g'(s)-cg(s))\le0 h ′ ( s ) = e − cs ( g ′ ( s ) − c g ( s )) ≤ 0 for almost every s s s . Hence h ( s ) = h ( 0 ) + ∫ 0 s h ′ ( u ) d u ≤ h ( 0 ) = g ( 0 ) h(s)=h(0)+\int_0^s h'(u)\,\mathrm{d}u\le h(0)=g(0) h ( s ) = h ( 0 ) + ∫ 0 s h ′ ( u ) d u ≤ h ( 0 ) = g ( 0 ) , that is g ( s ) ≤ g ( 0 ) e c s g(s)\le g(0)e^{cs} g ( s ) ≤ g ( 0 ) e cs . □
Lemma B.2. Let M M M be κ \kappa κ -admissible for f f f . Then, for all x , d ∈ R d x,d\in\mathbb{R}^d x , d ∈ R d ,
∥ ∇ f ( x + d ) − ∇ f ( x ) ∥ ≤ M ( x ) e κ ∥ d ∥ − 1 κ ∥ d ∥ ∥ d ∥ , \lVert\nabla f(x+d)-\nabla f(x)\rVert\le M(x)\frac{e^{\kappa\lVert d\rVert}-1}{\kappa\lVert d\rVert}\lVert d\rVert, ∥ ∇ f ( x + d ) − ∇ f ( x )∥ ≤ M ( x ) κ ∥ d ∥ e κ ∥ d ∥ − 1 ∥ d ∥ , ∣ f ( x + d ) − f ( x ) − ⟨ ∇ f ( x ) , d ⟩ ∣ ≤ M ( x ) ω ( κ ∥ d ∥ ) ∥ d ∥ 2 , (23) \left|f(x+d)-f(x)-\langle\nabla f(x),d\rangle\right|\le M(x)\omega(\kappa\lVert d\rVert)\lVert d\rVert^2, \tag*{(23)} ∣ f ( x + d ) − f ( x ) − ⟨ ∇ f ( x ) , d ⟩ ∣ ≤ M ( x ) ω ( κ ∥ d ∥) ∥ d ∥ 2 , (23) where the quotient is interpreted as 1 1 1 when κ ∥ d ∥ = 0 \kappa\lVert d\rVert=0 κ ∥ d ∥ = 0 .
Proof. By the fundamental theorem of calculus and the first two admissibility conditions,
∥ ∇ f ( x + d ) − ∇ f ( x ) ∥ ≤ ∫ 0 1 ∥ ∇ 2 f ( x + s d ) ∥ ∥ d ∥ d s ≤ ∥ d ∥ ∫ 0 1 M ( x ) e κ s ∥ d ∥ d s = M ( x ) ∥ d ∥ e κ ∥ d ∥ − 1 κ ∥ d ∥ . \begin{aligned}
\lVert\nabla f(x+d)-\nabla f(x)\rVert\le\int_0^1\lVert\nabla^2 f(x+sd)\rVert\lVert d\rVert\,\mathrm{d}s \\
&\le\lVert d\rVert\int_0^1M(x)e^{\kappa s\lVert d\rVert}\,\mathrm{d}s=M(x)\lVert d\rVert\frac{e^{\kappa\lVert d\rVert}-1}{\kappa\lVert d\rVert}.
\end{aligned} ∥ ∇ f ( x + d ) − ∇ f ( x )∥ ≤ ∫ 0 1 ∥ ∇ 2 f ( x + s d )∥ ∥ d ∥ d s ≤ ∥ d ∥ ∫ 0 1 M ( x ) e κ s ∥ d ∥ d s = M ( x ) ∥ d ∥ κ ∥ d ∥ e κ ∥ d ∥ − 1 .
For the second inequality, write
f ( x + d ) − f ( x ) − ⟨ ∇ f ( x ) , d ⟩ = ∫ 0 1 ⟨ ∇ f ( x + s d ) − ∇ f ( x ) , d ⟩ d s f(x+d)-f(x)-\langle\nabla f(x),d\rangle=\int_0^1\langle\nabla f(x+sd)-\nabla f(x),d\rangle\,\mathrm{d}s f ( x + d ) − f ( x ) − ⟨ ∇ f ( x ) , d ⟩ = ∫ 0 1 ⟨ ∇ f ( x + s d ) − ∇ f ( x ) , d ⟩ d s
and apply the first inequality with d = s d d=sd d = s d , which gives
∥ ∇ f ( x + s d ) − ∇ f ( x ) ∥ ≤ M ( x ) ∥ d ∥ e s κ ∥ d ∥ − 1 κ ∥ d ∥ . \lVert\nabla f(x+sd)-\nabla f(x)\rVert\le M(x)\lVert d\rVert\frac{e^{s\kappa\lVert d\rVert}-1}{\kappa\lVert d\rVert}. ∥ ∇ f ( x + s d ) − ∇ f ( x )∥ ≤ M ( x ) ∥ d ∥ κ ∥ d ∥ e s κ ∥ d ∥ − 1 .
Integrating,
∣ f ( x + d ) − f ( x ) − ⟨ ∇ f ( x ) , d ⟩ ∣ ≤ M ( x ) ∥ d ∥ 2 ∫ 0 1 e s κ ∥ d ∥ − 1 κ ∥ d ∥ d s = M ( x ) ∥ d ∥ 2 e κ ∥ d ∥ − 1 − κ ∥ d ∥ ( κ ∥ d ∥ ) 2 = M ( x ) ω ( κ ∥ d ∥ ) ∥ d ∥ 2 . \begin{aligned}
\left|f(x+d)-f(x)-\langle\nabla f(x),d\rangle\right|\le M(x)\lVert d\rVert^2\int_0^1\frac{e^{s\kappa\lVert d\rVert}-1}{\kappa\lVert d\rVert}\,\mathrm{d}s \\
&=M(x)\lVert d\rVert^2\frac{e^{\kappa\lVert d\rVert}-1-\kappa\lVert d\rVert}{(\kappa\lVert d\rVert)^2}=M(x)\omega(\kappa\lVert d\rVert)\lVert d\rVert^2.
\end{aligned} ∣ f ( x + d ) − f ( x ) − ⟨ ∇ f ( x ) , d ⟩ ∣ ≤ M ( x ) ∥ d ∥ 2 ∫ 0 1 κ ∥ d ∥ e s κ ∥ d ∥ − 1 d s = M ( x ) ∥ d ∥ 2 ( κ ∥ d ∥ ) 2 e κ ∥ d ∥ − 1 − κ ∥ d ∥ = M ( x ) ω ( κ ∥ d ∥) ∥ d ∥ 2 .
Lemma B.3. Let M M M be κ \kappa κ -admissible for f f f . Then, for every x ∈ R d x \in\mathbb{R}^{d} x ∈ R d ,
f ( x ) − f ⋆ ≥ ( 2 log 2 − 1 ) ∥ ∇ f ( x ) ∥ 2 M ( x ) . (24) f(x)-f_{\star} \ge(2\log2-1)\frac{\lVert\nabla f(x)\rVert^{2}}{M(x)}. \tag*{(24)} f ( x ) − f ⋆ ≥ ( 2 log 2 − 1 ) M ( x ) ∥ ∇ f ( x ) ∥ 2 . (24)
Proof. Fix α ≥ 0 \alpha\ge0 α ≥ 0 and consider the point x − α ∇ f ( x ) / M ( x ) x-\alpha\nabla f(x)/M(x) x − α ∇ f ( x ) / M ( x ) . The third admissibility condition gives κ ∥ α ∇ f ( x ) / M ( x ) ∥ = α κ ∥ ∇ f ( x ) ∥ / M ( x ) ≤ α \kappa\lVert\alpha\nabla f(x)/M(x)\rVert=\alpha\kappa\lVert\nabla f(x)\rVert/M(x)\le\alpha κ ∥ α ∇ f ( x ) / M ( x )∥ = α κ ∥ ∇ f ( x )∥ / M ( x ) ≤ α , so by Lemma B.2 , the monotonicity of ω \omega ω , and (22) ,
f ⋆ ≤ f ( x − α ∇ f ( x ) M ( x ) ) ≤ f ( x ) − α ∥ ∇ f ( x ) ∥ 2 M ( x ) + M ( x ) ω ( α ) α 2 ∥ ∇ f ( x ) ∥ 2 M ( x ) 2 = f ( x ) − ( α − α 2 ω ( α ) ) ∥ ∇ f ( x ) ∥ 2 M ( x ) = f ( x ) − ( 1 + 2 α − e α ) ∥ ∇ f ( x ) ∥ 2 M ( x ) . \begin{aligned}
f_{\star}\le f\left(x-\alpha\frac{\nabla f(x)}{M(x)}\right)\le f(x)-\alpha\frac{\lVert\nabla f(x)\rVert^{2}}{M(x)}+M(x)\omega(\alpha)\alpha^{2}\frac{\lVert\nabla f(x)\rVert^{2}}{M(x)^{2}} \\
&= f(x)-\left(\alpha-\alpha^{2}\omega(\alpha)\right)\frac{\lVert\nabla f(x)\rVert^{2}}{M(x)}
= f(x)-\left(1+2\alpha-e^{\alpha}\right)\frac{\lVert\nabla f(x)\rVert^{2}}{M(x)}.
\end{aligned} f ⋆ ≤ f ( x − α M ( x ) ∇ f ( x ) ) ≤ f ( x ) − α M ( x ) ∥ ∇ f ( x ) ∥ 2 + M ( x ) ω ( α ) α 2 M ( x ) 2 ∥ ∇ f ( x ) ∥ 2 = f ( x ) − ( α − α 2 ω ( α ) ) M ( x ) ∥ ∇ f ( x ) ∥ 2 = f ( x ) − ( 1 + 2 α − e α ) M ( x ) ∥ ∇ f ( x ) ∥ 2 .
Thus we get f ( x ) − f ⋆ ≥ ( 1 + 2 α − e α ) ∥ ∇ f ( x ) ∥ 2 / M ( x ) f(x)-f_{\star}\ge(1+2\alpha-e^{\alpha})\lVert\nabla f(x)\rVert^{2}/M(x) f ( x ) − f ⋆ ≥ ( 1 + 2 α − e α ) ∥ ∇ f ( x ) ∥ 2 / M ( x ) for every α ≥ 0 \alpha\ge0 α ≥ 0 . The coefficient is maximized at α = log 2 \alpha=\log2 α = log 2 , where it equals 2 log 2 − 1 2\log2-1 2 log 2 − 1 .
Lemma B.4. Let M M M be κ \kappa κ -admissible for f f f , let ρ ≥ 0 \rho\ge0 ρ ≥ 0 , and let x t x_t x t be an iterate of CS-SAM. Then
e − ρ M ( x t ) ≤ M ( y t ) ≤ e ρ M ( x t ) , ∥ ∇ f ( y t ) − ∇ f ( x t ) ∥ ≤ ( e ρ − 1 ) ∥ ∇ f ( x t ) ∥ , (25) e^{-\rho}M(x_t)\le M(y_t)\le e^{\rho}M(x_t),\qquad\lVert\nabla f(y_t)-\nabla f(x_t)\rVert\le(e^{\rho}-1)\lVert\nabla f(x_t)\rVert, \tag*{(25)} e − ρ M ( x t ) ≤ M ( y t ) ≤ e ρ M ( x t ) , ∥ ∇ f ( y t ) − ∇ f ( x t )∥ ≤ ( e ρ − 1 ) ∥ ∇ f ( x t )∥ , (25) ∥ ∇ f ( y t ) ∥ ≤ e ρ ∥ ∇ f ( x t ) ∥ , ⟨ ∇ f ( x t ) , ∇ f ( y t ) ⟩ ≥ ( 2 − e ρ ) ∥ ∇ f ( x t ) ∥ 2 . (26) \lVert\nabla f(y_t)\rVert\le e^{\rho}\lVert\nabla f(x_t)\rVert,\qquad\langle\nabla f(x_t),\nabla f(y_t)\rangle\ge(2-e^{\rho})\lVert\nabla f(x_t)\rVert^{2}. \tag*{(26)} ∥ ∇ f ( y t )∥ ≤ e ρ ∥ ∇ f ( x t )∥ , ⟨ ∇ f ( x t ) , ∇ f ( y t )⟩ ≥ ( 2 − e ρ ) ∥ ∇ f ( x t ) ∥ 2 . (26)
Proof. For ρ = 0 \rho=0 ρ = 0 we have y t = x t y_t=x_t y t = x t and all claims are trivial, so let ρ > 0 \rho>0 ρ > 0 . The third admissibility condition gives κ ∥ y t − x t ∥ = ρ κ ∥ ∇ f ( x t ) ∥ / M ( x t ) ≤ ρ \kappa\lVert y_t-x_t\rVert=\rho\kappa\lVert\nabla f(x_t)\rVert/M(x_t)\le\rho κ ∥ y t − x t ∥ = ρ κ ∥ ∇ f ( x t )∥ / M ( x t ) ≤ ρ . The second condition, applied from x t x_t x t to y t y_t y t and from y t y_t y t to x t x_t x t , gives M ( y t ) ≤ M ( x t ) e κ ∥ y t − x t ∥ ≤ e ρ M ( x t ) M(y_t)\le M(x_t)e^{\kappa\lVert y_t-x_t\rVert}\le e^{\rho}M(x_t) M ( y t ) ≤ M ( x t ) e κ ∥ y t − x t ∥ ≤ e ρ M ( x t ) and M ( x t ) ≤ e ρ M ( y t ) M(x_t)\le e^{\rho}M(y_t) M ( x t ) ≤ e ρ M ( y t ) . Lemma B.2 with d = y t − x t d=y_t-x_t d = y t − x t gives
∥ ∇ f ( y t ) − ∇ f ( x t ) ∥ ≤ M ( x t ) e κ ∥ y t − x t ∥ − 1 κ ∥ y t − x t ∥ ρ ∥ ∇ f ( x t ) ∥ M ( x t ) ≤ ρ ∥ ∇ f ( x t ) ∥ e ρ − 1 ρ = ( e ρ − 1 ) ∥ ∇ f ( x t ) ∥ , \begin{aligned}
\lVert\nabla f(y_t)-\nabla f(x_t)\rVert\le M(x_t)\frac{e^{\kappa\lVert y_t-x_t\rVert}-1}{\kappa\lVert y_t-x_t\rVert}\frac{\rho\lVert\nabla f(x_t)\rVert}{M(x_t)} \\
&\le\rho\lVert\nabla f(x_t)\rVert\frac{e^{\rho}-1}{\rho}=(e^{\rho}-1)\lVert\nabla f(x_t)\rVert,
\end{aligned} ∥ ∇ f ( y t ) − ∇ f ( x t )∥ ≤ M ( x t ) κ ∥ y t − x t ∥ e κ ∥ y t − x t ∥ − 1 M ( x t ) ρ ∥ ∇ f ( x t )∥ ≤ ρ ∥ ∇ f ( x t )∥ ρ e ρ − 1 = ( e ρ − 1 ) ∥ ∇ f ( x t )∥ ,
since u ↦ ( e u − 1 ) / u u\mapsto(e^{u}-1)/u u ↦ ( e u − 1 ) / u is increasing and κ ∥ y t − x t ∥ ≤ ρ \kappa\lVert y_t-x_t\rVert\le\rho κ ∥ y t − x t ∥ ≤ ρ . The claims in (26) follow from the triangle and Cauchy–Schwarz inequalities:
∥ ∇ f ( y t ) ∥ ≤ ∥ ∇ f ( x t ) ∥ + ∥ ∇ f ( y t ) − ∇ f ( x t ) ∥ ≤ e ρ ∥ ∇ f ( x t ) ∥ , \lVert\nabla f(y_t)\rVert\le\lVert\nabla f(x_t)\rVert+\lVert\nabla f(y_t)-\nabla f(x_t)\rVert\le e^{\rho}\lVert\nabla f(x_t)\rVert, ∥ ∇ f ( y t )∥ ≤ ∥ ∇ f ( x t )∥ + ∥ ∇ f ( y t ) − ∇ f ( x t )∥ ≤ e ρ ∥ ∇ f ( x t )∥ ,
⟨ ∇ f ( x t ) , ∇ f ( y t ) ⟩ = ∥ ∇ f ( x t ) ∥ 2 + ⟨ ∇ f ( x t ) , ∇ f ( y t ) − ∇ f ( x t ) ⟩ ≥ ∥ ∇ f ( x t ) ∥ 2 − ( e ρ − 1 ) ∥ ∇ f ( x t ) ∥ 2 . \begin{aligned}
\langle\nabla f(x_t),\nabla f(y_t)\rangle=\lVert\nabla f(x_t)\rVert^{2}+\langle\nabla f(x_t),\nabla f(y_t)-\nabla f(x_t)\rangle\\
&\ge\lVert\nabla f(x_t)\rVert^{2}-(e^{\rho}-1)\lVert\nabla f(x_t)\rVert^{2}.
\end{aligned} ⟨ ∇ f ( x t ) , ∇ f ( y t )⟩ = ∥ ∇ f ( x t ) ∥ 2 + ⟨ ∇ f ( x t ) , ∇ f ( y t ) − ∇ f ( x t )⟩ ≥ ∥ ∇ f ( x t ) ∥ 2 − ( e ρ − 1 ) ∥ ∇ f ( x t ) ∥ 2 .
Lemma B.5. Let M M M be κ \kappa κ -admissible for f f f , let ρ ≥ 0 \rho\ge0 ρ ≥ 0 and γ > 0 \gamma>0 γ > 0 satisfy χ ( ρ , γ ) > 0 \chi(\rho,\gamma)>0 χ ( ρ , γ ) > 0 , and let x t x_t x t be an iterate of CS-SAM. Then
f ( x t + 1 ) ≤ f ( x t ) − χ ( ρ , γ ) γ M ( y t ) ∥ ∇ f ( x t ) ∥ 2 ≤ f ( x t ) − γ e − ρ χ ( ρ , γ ) ∥ ∇ f ( x t ) ∥ 2 M ( x t ) . (27) f(x_{t+1})\le f(x_t)-\chi(\rho,\gamma)\frac{\gamma}{M(y_t)}\lVert\nabla f(x_t)\rVert^{2}\le f(x_t)-\gamma e^{-\rho}\chi(\rho,\gamma)\frac{\lVert\nabla f(x_t)\rVert^{2}}{M(x_t)}. \tag*{(27)} f ( x t + 1 ) ≤ f ( x t ) − χ ( ρ , γ ) M ( y t ) γ ∥ ∇ f ( x t ) ∥ 2 ≤ f ( x t ) − γ e − ρ χ ( ρ , γ ) M ( x t ) ∥ ∇ f ( x t ) ∥ 2 . (27) In particular, f ( x t ) − f ⋆ f(x_t)-f_{\star} f ( x t ) − f ⋆ is nonincreasing in t t t .
Proof. By the third admissibility condition at y t y_t y t , the displacement x t + 1 − x t = − γ ∇ f ( y t ) / M ( y t ) x_{t+1}-x_t=-\gamma\nabla f(y_t)/M(y_t) x t + 1 − x t = − γ ∇ f ( y t ) / M ( y t ) satisfies
κ ∥ x t + 1 − x t ∥ = γ κ ∥ ∇ f ( y t ) ∥ M ( y t ) ≤ γ . \kappa\lVert x_{t+1}-x_t\rVert=\gamma\kappa\frac{\lVert\nabla f(y_t)\rVert}{M(y_t)}\le\gamma. κ ∥ x t + 1 − x t ∥ = γ κ M ( y t ) ∥ ∇ f ( y t )∥ ≤ γ .
Lemma B.2 at x t x_t x t and the monotonicity of ω \omega ω give
f ( x t + 1 ) ≤ f ( x t ) − γ M ( y t ) ⟨ ∇ f ( x t ) , ∇ f ( y t ) ⟩ + M ( x t ) ω ( γ ) γ 2 M ( y t ) 2 ∥ ∇ f ( y t ) ∥ 2 . f(x_{t+1})\le f(x_t)-\frac{\gamma}{M(y_t)}\langle\nabla f(x_t),\nabla f(y_t)\rangle+M(x_t)\omega(\gamma)\frac{\gamma^{2}}{M(y_t)^{2}}\lVert\nabla f(y_t)\rVert^{2}. f ( x t + 1 ) ≤ f ( x t ) − M ( y t ) γ ⟨ ∇ f ( x t ) , ∇ f ( y t )⟩ + M ( x t ) ω ( γ ) M ( y t ) 2 γ 2 ∥ ∇ f ( y t ) ∥ 2 .
By Lemma B.4 , ⟨ ∇ f ( x t ) , ∇ f ( y t ) ⟩ ≥ ( 2 − e ρ ) ∥ ∇ f ( x t ) ∥ 2 \langle\nabla f(x_t), \nabla f(y_t) \rangle\ge(2-e^\rho)\lVert\nabla f(x_t)\rVert^2 ⟨ ∇ f ( x t ) , ∇ f ( y t )⟩ ≥ ( 2 − e ρ ) ∥ ∇ f ( x t ) ∥ 2 , M ( x t ) / M ( y t ) ≤ e ρ M(x_t)/M(y_t) \le e^\rho M ( x t ) / M ( y t ) ≤ e ρ , and ∥ ∇ f ( y t ) ∥ 2 ≤ e 2 ρ ∥ ∇ f ( x t ) ∥ 2 \lVert\nabla f(y_t)\rVert^2 \le e^{2\rho}\lVert\nabla f(x_t)\rVert^2 ∥ ∇ f ( y t ) ∥ 2 ≤ e 2 ρ ∥ ∇ f ( x t ) ∥ 2 . Hence
f ( x t + 1 ) ≤ f ( x t ) − γ M ( y t ) [ 2 − e ρ − γ ω ( γ ) e 3 ρ ] ∥ ∇ f ( x t ) ∥ 2 = f ( x t ) − χ ( ρ , γ ) γ M ( y t ) ∥ ∇ f ( x t ) ∥ 2 . \begin{aligned}
f(x_{t+1}) &\le f(x_t)-\frac{\gamma}{M(y_t)}\left[2-e^\rho-\gamma\omega(\gamma)e^{3\rho}\right]\lVert\nabla f(x_t)\rVert^2 \\
&=f(x_t)-\chi(\rho,\gamma)\frac{\gamma}{M(y_t)}\lVert\nabla f(x_t)\rVert^2.
\end{aligned} f ( x t + 1 ) ≤ f ( x t ) − M ( y t ) γ [ 2 − e ρ − γ ω ( γ ) e 3 ρ ] ∥ ∇ f ( x t ) ∥ 2 = f ( x t ) − χ ( ρ , γ ) M ( y t ) γ ∥ ∇ f ( x t ) ∥ 2 .
Since χ ( ρ , γ ) > 0 \chi(\rho,\gamma)>0 χ ( ρ , γ ) > 0 and M ( y t ) ≤ e ρ M ( x t ) M(y_t)\le e^\rho M(x_t) M ( y t ) ≤ e ρ M ( x t ) , the second inequality in (27) follows.
Lemma B.6. Let f f f be convex with a minimizer x ⋆ x_\star x ⋆ , let M M M be κ \kappa κ -admissible for f f f , let ρ ≥ 0 \rho\ge0 ρ ≥ 0 and γ > 0 \gamma>0 γ > 0 , and let x t x_t x t be an iterate of CS-SAM. Then
∥ x t + 1 − x ⋆ ∥ 2 ≤ ∥ x t − x ⋆ ∥ 2 − 2 c 0 γ M ( y t ) ( f ( x t ) − f ⋆ ) . (28) \lVert x_{t+1}-x_\star\rVert^2\le\lVert x_t-x_\star\rVert^2-2c_0\frac{\gamma}{M(y_t)}\left(f(x_t)-f_\star\right). \tag*{(28)} ∥ x t + 1 − x ⋆ ∥ 2 ≤ ∥ x t − x ⋆ ∥ 2 − 2 c 0 M ( y t ) γ ( f ( x t ) − f ⋆ ) . (28) In particular, if c 0 ≥ 0 c_0\ge0 c 0 ≥ 0 , then ∥ x t − x ⋆ ∥ ≤ ∥ x 0 − x ⋆ ∥ \lVert x_t-x_\star\rVert\le\lVert x_0-x_\star\rVert ∥ x t − x ⋆ ∥ ≤ ∥ x 0 − x ⋆ ∥ for all t t t .
Proof. Expanding the square,
∥ x t + 1 − x ⋆ ∥ 2 = ∥ x t − x ⋆ ∥ 2 − 2 γ M ( y t ) ⟨ ∇ f ( y t ) , x t − x ⋆ ⟩ + γ 2 M ( y t ) 2 ∥ ∇ f ( y t ) ∥ 2 . \lVert x_{t+1}-x_\star\rVert^2=\lVert x_t-x_\star\rVert^2-2\frac{\gamma}{M(y_t)}\langle\nabla f(y_t),x_t-x_\star\rangle+\frac{\gamma^2}{M(y_t)^2}\lVert\nabla f(y_t)\rVert^2. ∥ x t + 1 − x ⋆ ∥ 2 = ∥ x t − x ⋆ ∥ 2 − 2 M ( y t ) γ ⟨ ∇ f ( y t ) , x t − x ⋆ ⟩ + M ( y t ) 2 γ 2 ∥ ∇ f ( y t ) ∥ 2 .
Convexity at y t y_t y t gives ⟨ ∇ f ( y t ) , y t − x ⋆ ⟩ ≥ f ( y t ) − f ⋆ \langle\nabla f(y_t),y_t-x_\star\rangle\ge f(y_t)-f_\star ⟨ ∇ f ( y t ) , y t − x ⋆ ⟩ ≥ f ( y t ) − f ⋆ , and convexity at x t x_t x t gives f ( y t ) ≥ f ( x t ) + ⟨ ∇ f ( x t ) , y t − x t ⟩ = f ( x t ) + ρ ∥ ∇ f ( x t ) ∥ 2 / M ( x t ) f(y_t)\ge f(x_t)+\langle\nabla f(x_t),y_t-x_t\rangle=f(x_t)+\rho\lVert\nabla f(x_t)\rVert^2/M(x_t) f ( y t ) ≥ f ( x t ) + ⟨ ∇ f ( x t ) , y t − x t ⟩ = f ( x t ) + ρ ∥ ∇ f ( x t ) ∥ 2 / M ( x t ) . Since x t − x ⋆ = ( y t − x ⋆ ) − ρ ∇ f ( x t ) / M ( x t ) x_t-x_\star=(y_t-x_\star)-\rho\nabla f(x_t)/M(x_t) x t − x ⋆ = ( y t − x ⋆ ) − ρ ∇ f ( x t ) / M ( x t ) ,
⟨ ∇ f ( y t ) , x t − x ⋆ ⟩ ≥ f ( y t ) − f ⋆ − ρ M ( x t ) ⟨ ∇ f ( y t ) , ∇ f ( x t ) ⟩ ≥ f ( x t ) − f ⋆ − ρ M ( x t ) ⟨ ∇ f ( y t ) − ∇ f ( x t ) , ∇ f ( x t ) ⟩ ≥ f ( x t ) − f ⋆ − ρ ( e ρ − 1 ) M ( x t ) ∥ ∇ f ( x t ) ∥ 2 ≥ ( 1 − ρ ( e ρ − 1 ) 2 log 2 − 1 ) ( f ( x t ) − f ⋆ ) , \begin{aligned}
\langle\nabla f(y_t),x_t-x_\star\rangle\ge f(y_t)-f_\star-\frac{\rho}{M(x_t)}\langle\nabla f(y_t),\nabla f(x_t)\rangle\\
&\ge f(x_t)-f_\star-\frac{\rho}{M(x_t)}\langle\nabla f(y_t)-\nabla f(x_t),\nabla f(x_t)\rangle\\
&\ge f(x_t)-f_\star-\frac{\rho(e^\rho-1)}{M(x_t)}\lVert\nabla f(x_t)\rVert^2
\ge\left(1-\frac{\rho(e^\rho-1)}{2\log2-1}\right)(f(x_t)-f_\star),
\end{aligned} ⟨ ∇ f ( y t ) , x t − x ⋆ ⟩ ≥ f ( y t ) − f ⋆ − M ( x t ) ρ ⟨ ∇ f ( y t ) , ∇ f ( x t )⟩ ≥ f ( x t ) − f ⋆ − M ( x t ) ρ ⟨ ∇ f ( y t ) − ∇ f ( x t ) , ∇ f ( x t )⟩ ≥ f ( x t ) − f ⋆ − M ( x t ) ρ ( e ρ − 1 ) ∥ ∇ f ( x t ) ∥ 2 ≥ ( 1 − 2 log 2 − 1 ρ ( e ρ − 1 ) ) ( f ( x t ) − f ⋆ ) ,
where we used the Cauchy–Schwarz inequality with Lemma B.4 , and then Lemma B.3 in the form ∥ ∇ f ( x t ) ∥ 2 / M ( x t ) ≤ ( f ( x t ) − f ⋆ ) / ( 2 log 2 − 1 ) \lVert\nabla f(x_t)\rVert^2/M(x_t)\le(f(x_t)-f_\star)/(2\log2-1) ∥ ∇ f ( x t ) ∥ 2 / M ( x t ) ≤ ( f ( x t ) − f ⋆ ) / ( 2 log 2 − 1 ) . Moreover, by Lemmas B.3 and B.4 ,
∥ ∇ f ( y t ) ∥ 2 M ( y t ) ≤ e 2 ρ ∥ ∇ f ( x t ) ∥ 2 e − ρ M ( x t ) = e 3 ρ ∥ ∇ f ( x t ) ∥ 2 M ( x t ) ≤ e 3 ρ 2 log 2 − 1 ( f ( x t ) − f ⋆ ) . \frac{\lVert\nabla f(y_t)\rVert^2}{M(y_t)}\le\frac{e^{2\rho}\lVert\nabla f(x_t)\rVert^2}{e^{-\rho}M(x_t)}=e^{3\rho}\frac{\lVert\nabla f(x_t)\rVert^2}{M(x_t)}\le\frac{e^{3\rho}}{2\log2-1}(f(x_t)-f_\star). M ( y t ) ∥ ∇ f ( y t ) ∥ 2 ≤ e − ρ M ( x t ) e 2 ρ ∥ ∇ f ( x t ) ∥ 2 = e 3 ρ M ( x t ) ∥ ∇ f ( x t ) ∥ 2 ≤ 2 log 2 − 1 e 3 ρ ( f ( x t ) − f ⋆ ) .
Substituting both bounds into the expansion,
∥ x t + 1 − x ⋆ ∥ 2 ≤ ∥ x t − x ⋆ ∥ 2 − 2 γ M ( y t ) [ 1 − ρ ( e ρ − 1 ) 2 log 2 − 1 − γ e 3 ρ 2 ( 2 log 2 − 1 ) ] ( f ( x t ) − f ⋆ ) . \lVert x_{t+1}-x_\star\rVert^2\le\lVert x_t-x_\star\rVert^2-2\frac{\gamma}{M(y_t)}\left[1-\frac{\rho(e^\rho-1)}{2\log2-1}-\frac{\gamma e^{3\rho}}{2(2\log2-1)}\right](f(x_t)-f_\star). ∥ x t + 1 − x ⋆ ∥ 2 ≤ ∥ x t − x ⋆ ∥ 2 − 2 M ( y t ) γ [ 1 − 2 log 2 − 1 ρ ( e ρ − 1 ) − 2 ( 2 log 2 − 1 ) γ e 3 ρ ] ( f ( x t ) − f ⋆ ) .
and the bracket equals c 0 c_0 c 0 . The last claim follows since f ( x t ) − f ⋆ ≥ 0 f(x_t)-f_\star\ge0 f ( x t ) − f ⋆ ≥ 0 .
The next two lemmas concern the loss scale M H M_H M H of (4) only.
Lemma B.7. Under (4) , for every x ∈ R d x\in\mathbb{R}^d x ∈ R d ,
∥ ∇ f ( x ) ∥ 2 ≤ 2 H 0 ( f ( x ) − f ⋆ ) + H 1 ( f ( x ) − f ⋆ ) 2 , H 1 ∥ ∇ f ( x ) ∥ ≤ M H ( x ) . (29) \lVert\nabla f(x)\rVert^2\le2H_0(f(x)-f_\star)+H_1(f(x)-f_\star)^2,\qquad\sqrt{H_1}\lVert\nabla f(x)\rVert\le M_H(x). \tag*{(29)} ∥ ∇ f ( x ) ∥ 2 ≤ 2 H 0 ( f ( x ) − f ⋆ ) + H 1 ( f ( x ) − f ⋆ ) 2 , H 1 ∥ ∇ f ( x )∥ ≤ M H ( x ) . (29)
Proof. If ∇ f ( x ) = 0 \nabla f(x)=0 ∇ f ( x ) = 0 there is nothing to prove. Suppose first H 1 = 0 H_1=0 H 1 = 0 . If H 0 = 0 H_0=0 H 0 = 0 , then ∇ 2 f ≡ 0 \nabla^2f\equiv0 ∇ 2 f ≡ 0 , so f f f is affine and, being bounded below, constant, whence ∇ f ( x ) = 0 \nabla f(x)=0 ∇ f ( x ) = 0 . If H 0 > 0 H_0>0 H 0 > 0 , then f f f is H 0 H_0 H 0 -smooth and the descent lemma at the point x − ∇ f ( x ) / H 0 x-\nabla f(x)/H_0 x − ∇ f ( x ) / H 0 gives f ⋆ ≤ f ( x − ∇ f ( x ) / H 0 ) ≤ f ( x ) − ∥ ∇ f ( x ) ∥ 2 / ( 2 H 0 ) f_\star\le f(x-\nabla f(x)/H_0)\le f(x)-\lVert\nabla f(x)\rVert^2/(2H_0) f ⋆ ≤ f ( x − ∇ f ( x ) / H 0 ) ≤ f ( x ) − ∥ ∇ f ( x ) ∥ 2 / ( 2 H 0 ) , which is the first claim; the second is trivial. Now let H 1 > 0 H_1 > 0 H 1 > 0 . We compare the loss along the negative gradient direction with the solution of a scalar differential equation, using f ≥ f ⋆ f \ge f_\star f ≥ f ⋆ to bound ∥ ∇ f ( x ) ∥ \lVert\nabla f(x)\rVert ∥ ∇ f ( x )∥ . Define, for t ≥ 0 t \ge0 t ≥ 0 , the function
ψ ( t ) : = f ( x − t ∇ f ( x ) ∥ ∇ f ( x ) ∥ ) − f ⋆ + H 0 H 1 . \psi(t) := f\left(x - t\frac{\nabla f(x)}{\lVert\nabla f(x)\rVert}\right) - f_\star+ \frac{H_0}{H_1}. ψ ( t ) := f ( x − t ∥ ∇ f ( x )∥ ∇ f ( x ) ) − f ⋆ + H 1 H 0 .
Then ψ ≥ H 0 / H 1 \psi\ge H_0/H_1 ψ ≥ H 0 / H 1 , ψ ( 0 ) = f ( x ) − f ⋆ + H 0 / H 1 \psi(0) = f(x) - f_\star+ H_0/H_1 ψ ( 0 ) = f ( x ) − f ⋆ + H 0 / H 1 , ψ ′ ( 0 ) = − ∥ ∇ f ( x ) ∥ \psi'(0) = -\lVert\nabla f(x)\rVert ψ ′ ( 0 ) = − ∥ ∇ f ( x )∥ , and, by (4) ,
ψ ′ ′ ( t ) ≤ ∥ ∇ 2 f ( x − t ∇ f ( x ) ∥ ∇ f ( x ) ∥ ) ∥ ≤ H 0 + H 1 ( f ( x − t ∇ f ( x ) ∥ ∇ f ( x ) ∥ ) − f ⋆ ) = H 1 ψ ( t ) . \psi''(t) \le\left\lVert\nabla^2 f\left(x - t\frac{\nabla f(x)}{\lVert\nabla f(x)\rVert}\right)\right\rVert\le H_0 + H_1\left(f\left(x - t\frac{\nabla f(x)}{\lVert\nabla f(x)\rVert}\right) - f_\star\right) = H_1\psi(t). ψ ′′ ( t ) ≤ ∇ 2 f ( x − t ∥ ∇ f ( x )∥ ∇ f ( x ) ) ≤ H 0 + H 1 ( f ( x − t ∥ ∇ f ( x )∥ ∇ f ( x ) ) − f ⋆ ) = H 1 ψ ( t ) .
Let q q q solve q ′ ′ = H 1 q q'' = H_1q q ′′ = H 1 q with q ( 0 ) = ψ ( 0 ) q(0) = \psi(0) q ( 0 ) = ψ ( 0 ) and q ′ ( 0 ) = ψ ′ ( 0 ) q'(0) = \psi'(0) q ′ ( 0 ) = ψ ′ ( 0 ) , that is
q ( t ) = ψ ( 0 ) cosh ( H 1 t ) − ∥ ∇ f ( x ) ∥ H 1 sinh ( H 1 t ) . q(t) = \psi(0)\cosh\left(\sqrt{H_1}t\right) - \frac{\lVert\nabla f(x)\rVert}{\sqrt{H_1}}\sinh\left(\sqrt{H_1}t\right). q ( t ) = ψ ( 0 ) cosh ( H 1 t ) − H 1 ∥ ∇ f ( x )∥ sinh ( H 1 t ) .
The difference ψ − q \psi-q ψ − q vanishes together with its derivative at t = 0 t=0 t = 0 and satisfies ( ψ − q ) ′ ′ − H 1 ( ψ − q ) = ψ ′ ′ − H 1 ψ ≤ 0 (\psi-q)'' - H_1(\psi-q) = \psi'' - H_1\psi\le0 ( ψ − q ) ′′ − H 1 ( ψ − q ) = ψ ′′ − H 1 ψ ≤ 0 , so by the variation-of-constants formula
ψ ( t ) − q ( t ) = ∫ 0 t sinh ( H 1 ( t − s ) ) H 1 ( ψ ′ ′ ( s ) − H 1 ψ ( s ) ) d s ≤ 0. \psi(t)-q(t) = \int_0^t \frac{\sinh\left(\sqrt{H_1}(t-s)\right)}{\sqrt{H_1}}\left(\psi''(s)-H_1\psi(s)\right)\,ds \le0. ψ ( t ) − q ( t ) = ∫ 0 t H 1 sinh ( H 1 ( t − s ) ) ( ψ ′′ ( s ) − H 1 ψ ( s ) ) d s ≤ 0.
Hence q ( t ) ≥ ψ ( t ) ≥ H 0 / H 1 q(t) \ge\psi(t) \ge H_0/H_1 q ( t ) ≥ ψ ( t ) ≥ H 0 / H 1 for all t ≥ 0 t \ge0 t ≥ 0 . If ∥ ∇ f ( x ) ∥ > H 1 ψ ( 0 ) \lVert\nabla f(x)\rVert> \sqrt{H_1}\psi(0) ∥ ∇ f ( x )∥ > H 1 ψ ( 0 ) , then q ( t ) → − ∞ q(t) \to-\infty q ( t ) → − ∞ as t → ∞ t \to\infty t → ∞ , a contradiction; thus ∥ ∇ f ( x ) ∥ ≤ H 1 ψ ( 0 ) \lVert\nabla f(x)\rVert\le\sqrt{H_1}\psi(0) ∥ ∇ f ( x )∥ ≤ H 1 ψ ( 0 ) , and then inf t ≥ 0 q ( t ) = ψ ( 0 ) 2 − ∥ ∇ f ( x ) ∥ 2 / H 1 \inf_{t\ge0}q(t) = \sqrt{\psi(0)^2 - \lVert\nabla f(x)\rVert^2/H_1} inf t ≥ 0 q ( t ) = ψ ( 0 ) 2 − ∥ ∇ f ( x ) ∥ 2 / H 1 . This infimum is at least H 0 / H 1 H_0/H_1 H 0 / H 1 , so
∥ ∇ f ( x ) ∥ 2 ≤ H 1 ( ψ ( 0 ) 2 − H 0 2 H 1 2 ) = H 1 ( f ( x ) − f ⋆ + H 0 H 1 ) 2 − H 0 2 H 1 = H 1 ( f ( x ) − f ⋆ ) 2 + 2 H 0 ( f ( x ) − f ⋆ ) , \begin{aligned}
\lVert\nabla f(x)\rVert^2 \le H_1\left(\psi(0)^2-\frac{H_0^2}{H_1^2}\right) = H_1\left(f(x)-f_\star+\frac{H_0}{H_1}\right)^2-\frac{H_0^2}{H_1} \\
&= H_1(f(x)-f_\star)^2+2H_0(f(x)-f_\star),
\end{aligned} ∥ ∇ f ( x ) ∥ 2 ≤ H 1 ( ψ ( 0 ) 2 − H 1 2 H 0 2 ) = H 1 ( f ( x ) − f ⋆ + H 1 H 0 ) 2 − H 1 H 0 2 = H 1 ( f ( x ) − f ⋆ ) 2 + 2 H 0 ( f ( x ) − f ⋆ ) ,
which is the first claim. For the second, multiply the first claim by H 1 H_1 H 1 :
H 1 ∥ ∇ f ( x ) ∥ 2 ≤ 2 H 0 H 1 ( f ( x ) − f ⋆ ) + H 1 2 ( f ( x ) − f ⋆ ) 2 ≤ ( H 0 + H 1 ( f ( x ) − f ⋆ ) ) 2 . H_1\lVert\nabla f(x)\rVert^2 \le2H_0H_1(f(x)-f_\star)+H_1^2(f(x)-f_\star)^2 \le\left(H_0+H_1(f(x)-f_\star)\right)^2. H 1 ∥ ∇ f ( x ) ∥ 2 ≤ 2 H 0 H 1 ( f ( x ) − f ⋆ ) + H 1 2 ( f ( x ) − f ⋆ ) 2 ≤ ( H 0 + H 1 ( f ( x ) − f ⋆ ) ) 2 .
Lemma B.8. Under (4) , if M H ( x 0 ) = 0 M_H(x_0)=0 M H ( x 0 ) = 0 for some x 0 ∈ R d x_0\in\mathbb{R}^d x 0 ∈ R d , then M H ≡ 0 M_H\equiv0 M H ≡ 0 and f f f is constant.
Proof. M H ( x 0 ) = 0 M_H(x_0)=0 M H ( x 0 ) = 0 forces H 0 = 0 H_0=0 H 0 = 0 and f ( x 0 ) = f ⋆ f(x_0)=f_\star f ( x 0 ) = f ⋆ . If H 1 = 0 H_1=0 H 1 = 0 , then ∇ 2 f ≡ 0 \nabla^2f\equiv0 ∇ 2 f ≡ 0 , so f f f is affine and bounded below, hence constant, and M H ≡ 0 M_H\equiv0 M H ≡ 0 . Let H 1 > 0 H_1>0 H 1 > 0 and fix y ∈ R d y\in\mathbb{R}^d y ∈ R d . The function s ↦ M H ( x 0 + s ( y − x 0 ) ) = H 1 ( f ( x 0 + s ( y − x 0 ) ) − f ⋆ ) s\mapsto M_H(x_0+s(y-x_0))=H_1(f(x_0+s(y-x_0))-f_\star) s ↦ M H ( x 0 + s ( y − x 0 )) = H 1 ( f ( x 0 + s ( y − x 0 )) − f ⋆ ) is nonnegative and vanishes at s = 0 s=0 s = 0 , and by Lemma B.7 its derivative satisfies
d d s M H ( x 0 + s ( y − x 0 ) ) = H 1 ⟨ ∇ f ( x 0 + s ( y − x 0 ) ) , y − x 0 ⟩ \frac{d}{ds}M_H(x_0+s(y-x_0)) = H_1\langle\nabla f(x_0+s(y-x_0)),y-x_0\rangle d s d M H ( x 0 + s ( y − x 0 )) = H 1 ⟨ ∇ f ( x 0 + s ( y − x 0 )) , y − x 0 ⟩ ≤ H 1 M H ( x 0 + s ( y − x 0 ) ) ∥ y − x 0 ∥ . \le\sqrt{H_1}M_H(x_0+s(y-x_0))\lVert y-x_0\rVert. ≤ H 1 M H ( x 0 + s ( y − x 0 )) ∥ y − x 0 ∥ . Lemma B.1 with c = H 1 ∥ y − x 0 ∥ c=\sqrt{H_1}\lVert y-x_0\rVert c = H 1 ∥ y − x 0 ∥ gives M H ( x 0 + s ( y − x 0 ) ) ≤ M H ( x 0 ) e H 1 s ∥ y − x 0 ∥ = 0 M_H(x_0+s(y-x_0))\le M_H(x_0)e^{\sqrt{H_1}s\lVert y-x_0\rVert}=0 M H ( x 0 + s ( y − x 0 )) ≤ M H ( x 0 ) e H 1 s ∥ y − x 0 ∥ = 0 on [ 0 , 1 ] [0,1] [ 0 , 1 ] , so M H ( y ) = 0 M_H(y)=0 M H ( y ) = 0 , that is f ( y ) = f ⋆ f(y)=f_\star f ( y ) = f ⋆ . As y y y was arbitrary, f f f is constant.
We close this section with the elementary sequence lemma that turns a quadratic decrease of the gap into a 1 / T 1/T 1/ T rate.
Lemma B.9. Let ( x t ) t ≥ 0 (x_t)_{t\ge0} ( x t ) t ≥ 0 be a sequence such that f ( x t ) − f ⋆ f(x_t)-f_\star f ( x t ) − f ⋆ is nonincreasing in t t t and
f ( x t + 1 ) − f ⋆ ≤ ( f ( x t ) − f ⋆ ) − β ( f ( x t ) − f ⋆ ) 2 for all t ≥ 0 , f(x_{t+1})-f_\star\le(f(x_t)-f_\star)-\beta(f(x_t)-f_\star)^2 \qquad\text{for all }t\ge0, f ( x t + 1 ) − f ⋆ ≤ ( f ( x t ) − f ⋆ ) − β ( f ( x t ) − f ⋆ ) 2 for all t ≥ 0 , where β > 0 \beta>0 β > 0 . Then f ( x T ) − f ⋆ ≤ 1 / ( β T ) f(x_T)-f_\star\le1/(\beta T) f ( x T ) − f ⋆ ≤ 1/ ( β T ) for every T ≥ 1 T\ge1 T ≥ 1 .
Proof. If f ( x T ) = f ⋆ f(x_T)=f_\star f ( x T ) = f ⋆ there is nothing to prove. Otherwise f ( x t ) − f ⋆ ≥ f ( x T ) − f ⋆ > 0 f(x_t)-f_\star\ge f(x_T)-f_\star> 0 f ( x t ) − f ⋆ ≥ f ( x T ) − f ⋆ > 0 for all t ≤ T t \le T t ≤ T , and for t < T t<T t < T ,
1 f ( x t + 1 ) − f ⋆ − 1 f ( x t ) − f ⋆ = ( f ( x t ) − f ⋆ ) − ( f ( x t + 1 ) − f ⋆ ) ( f ( x t ) − f ⋆ ) ( f ( x t + 1 ) − f ⋆ ) ≥ β f ( x t ) − f ⋆ f ( x t + 1 ) − f ⋆ ≥ β . \frac{1}{f(x_{t+1})-f_\star}-\frac{1}{f(x_t)-f_\star}=\frac{(f(x_t)-f_\star)-(f(x_{t+1})-f_\star)}{(f(x_t)-f_\star)(f(x_{t+1})-f_\star)}\ge\beta\frac{f(x_t)-f_\star}{f(x_{t+1})-f_\star}\ge\beta. f ( x t + 1 ) − f ⋆ 1 − f ( x t ) − f ⋆ 1 = ( f ( x t ) − f ⋆ ) ( f ( x t + 1 ) − f ⋆ ) ( f ( x t ) − f ⋆ ) − ( f ( x t + 1 ) − f ⋆ ) ≥ β f ( x t + 1 ) − f ⋆ f ( x t ) − f ⋆ ≥ β .
Summing over t < T t<T t < T gives 1 / ( f ( x T ) − f ⋆ ) ≥ 1 / ( f ( x 0 ) − f ⋆ ) + β T ≥ β T 1/(f(x_T)-f_\star)\ge1/(f(x_0)-f_\star)+\beta T\ge\beta T 1/ ( f ( x T ) − f ⋆ ) ≥ 1/ ( f ( x 0 ) − f ⋆ ) + β T ≥ β T .
Proofs for Section 2
In this section, we present the proofs of the results of § 2 . We first verify the distortion bounds (6) and (7) for SAM and USAM. We then prove Proposition 2.1 by direct computation on the two one-dimensional examples, Theorem 2.2 by exhibiting two one-dimensional objectives in the class (3) , and Proposition 2.4 using the lemmas of Appendix § 9 . For completeness, we restate each result before its proof.
Verification of (6) and (7) . The displacement is d = r ∇ f ( x ) / ∥ ∇ f ( x ) ∥ d = r \nabla f(x) / \lVert\nabla f(x) \rVert d = r ∇ f ( x ) / ∥ ∇ f ( x )∥ for SAM and d = ρ ∇ f ( x ) d = \rho\nabla f(x) d = ρ ∇ f ( x ) for USAM, so ∥ d ∥ = r \lVert d \rVert= r ∥ d ∥ = r and ∥ d ∥ = ρ ∥ ∇ f ( x ) ∥ \lVert d \rVert= \rho\lVert\nabla f(x) \rVert ∥ d ∥ = ρ ∥ ∇ f ( x )∥ respectively. Under (2) , ∥ ∇ f ( x + d ) − ∇ f ( x ) ∥ ≤ L ∥ d ∥ \lVert\nabla f(x+d) - \nabla f(x) \rVert\le L \lVert d \rVert ∥ ∇ f ( x + d ) − ∇ f ( x )∥ ≤ L ∥ d ∥ , and dividing by ∥ ∇ f ( x ) ∥ \lVert\nabla f(x) \rVert ∥ ∇ f ( x )∥ gives (6) . Under (3) with L 1 > 0 L_1 > 0 L 1 > 0 , the scale M L M_L M L is L 1 L_1 L 1 -admissible by Proposition 2.4(ii), which is proved below, so the first inequality in Lemma B.2 gives
∥ ∇ f ( x + d ) − ∇ f ( x ) ∥ ≤ ( L 0 + L 1 ∥ ∇ f ( x ) ∥ ) e L 1 ∥ d ∥ − 1 L 1 . \lVert\nabla f(x+d) - \nabla f(x) \rVert\le(L_0 + L_1 \lVert\nabla f(x) \rVert) \frac{e^{L_1 \lVert d \rVert} - 1}{L_1}. ∥ ∇ f ( x + d ) − ∇ f ( x )∥ ≤ ( L 0 + L 1 ∥ ∇ f ( x )∥) L 1 e L 1 ∥ d ∥ − 1 .
Inserting the two values of ∥ d ∥ \lVert d \rVert ∥ d ∥ and dividing by ∥ ∇ f ( x ) ∥ \lVert\nabla f(x) \rVert ∥ ∇ f ( x )∥ gives the two bounds in (7) .
Proposition 2.1 (restated).
(i) Let f ( x ) = x 2 / 2 f(x) = x^2/2 f ( x ) = x 2 /2 , which satisfies (2) with L = 1 L = 1 L = 1 . Run SAM with r > 0 r > 0 r > 0 and η ∈ ( 0 , 2 ) \eta\in(0, 2) η ∈ ( 0 , 2 ) . For every x ≠ 0 x \ne0 x = 0 ,
D S A M ( x ) : = D ( x , r sign ( x ) ) = r ∣ x ∣ , x t + 1 = [ 1 − η ( 1 + D S A M ( x t ) ) ] x t . D_{\mathrm{SAM}}(x) := D(x,r\operatorname{sign}(x)) = \frac{r}{\lvert x\rvert}, \qquad x_{t+1} = [1 - \eta(1 + D_{\mathrm{SAM}}(x_t))]x_t. D SAM ( x ) := D ( x , r sign ( x )) = ∣ x ∣ r , x t + 1 = [ 1 − η ( 1 + D SAM ( x t ))] x t . Let a = η r / ( 2 − η ) a = \eta r/(2-\eta) a = η r / ( 2 − η ) . Then ∣ x t + 1 ∣ < ∣ x t ∣ \lvert x_{t+1}\rvert< \lvert x_t\rvert ∣ x t + 1 ∣ < ∣ x t ∣ if ∣ x t ∣ > a \lvert x_t\rvert> a ∣ x t ∣ > a , ∣ x t + 1 ∣ > ∣ x t ∣ \lvert x_{t+1}\rvert> \lvert x_t\rvert ∣ x t + 1 ∣ > ∣ x t ∣ if 0 < ∣ x t ∣ < a 0 < \lvert x_t\rvert< a 0 < ∣ x t ∣ < a , and x t + 1 = − x t x_{t+1} = -x_t x t + 1 = − x t if ∣ x t ∣ = a \lvert x_t\rvert= a ∣ x t ∣ = a . Consequently ± a \pm a ± a is a two-cycle, and no trajectory converges to the minimizer (unless it lands on it exactly).
(ii) Let f ( x ) = x 4 / 4 f(x) = x^4/4 f ( x ) = x 4 /4 , which satisfies (3) with ( L 0 , L 1 ) = ( 4 , 1 ) (L_0,L_1) = (4,1) ( L 0 , L 1 ) = ( 4 , 1 ) . Run USAM with ρ > 0 \rho> 0 ρ > 0 and η > 0 \eta> 0 η > 0 . For every x ≠ 0 x \ne0 x = 0 ,
D U S A M ( x ) : = D ( x , ρ x 3 ) = ( 1 + ρ x 2 ) 3 − 1 , x t + 1 = [ 1 − η ( 1 + D U S A M ( x t ) x t 2 ) ] x t . D_{\mathrm{USAM}}(x) := D(x,\rho x^3) = (1+\rho x^2)^3 - 1, \qquad x_{t+1} = [1-\eta(1+D_{\mathrm{USAM}}(x_t)x_t^2)]x_t. D USAM ( x ) := D ( x , ρ x 3 ) = ( 1 + ρ x 2 ) 3 − 1 , x t + 1 = [ 1 − η ( 1 + D USAM ( x t ) x t 2 )] x t . Consequently, if ∣ x 0 ∣ > ( 2 / ( η ρ 3 ) ) 1 / 8 \lvert x_0\rvert> (2/(\eta\rho^3))^{1/8} ∣ x 0 ∣ > ( 2/ ( η ρ 3 ) ) 1/8 , then x t + 1 x_{t+1} x t + 1 has the opposite sign of x t x_t x t and ∣ x t + 1 ∣ > ∣ x t ∣ \lvert x_{t+1}\rvert> \lvert x_t\rvert ∣ x t + 1 ∣ > ∣ x t ∣ for every t t t , and ∣ x t ∣ → ∞ \lvert x_t\rvert\to\infty ∣ x t ∣ → ∞ .
Proof of Proposition 2.1. (i) Here ∇ f ( x ) = x \nabla f(x) = x ∇ f ( x ) = x , so for x ≠ 0 x \ne0 x = 0 the perturbed point of SAM is y = x + r sign ( x ) y = x + r\operatorname{sign}(x) y = x + r sign ( x ) , and since r sign ( x ) = ( r / ∣ x ∣ ) x r\operatorname{sign}(x) = (r/\lvert x\rvert)x r sign ( x ) = ( r / ∣ x ∣) x ,
D S A M ( x ) = ∣ y − x ∣ ∣ x ∣ = r ∣ x ∣ , x + = x − η y = x − η ( 1 + r ∣ x ∣ ) x = [ 1 − η ( 1 + D S A M ( x ) ) ] x . D_{\mathrm{SAM}}(x) = \frac{\lvert y-x\rvert}{\lvert x\rvert} = \frac{r}{\lvert x\rvert}, \qquad x^+ = x-\eta y = x-\eta\left(1+\frac{r}{\lvert x\rvert}\right)x = [1-\eta(1+D_{\mathrm{SAM}}(x))]x. D SAM ( x ) = ∣ x ∣ ∣ y − x ∣ = ∣ x ∣ r , x + = x − η y = x − η ( 1 + ∣ x ∣ r ) x = [ 1 − η ( 1 + D SAM ( x ))] x .
Write c ( x ) : = 1 − η − η r / ∣ x ∣ c(x) := 1-\eta-\eta r/\lvert x\rvert c ( x ) := 1 − η − η r / ∣ x ∣ for the factor in brackets, so that ∣ x + ∣ = ∣ c ( x ) ∣ ∣ x ∣ \lvert x^+\rvert= \lvert c(x)\rvert\lvert x\rvert ∣ x + ∣ = ∣ c ( x )∣ ∣ x ∣ . Since η > 0 \eta> 0 η > 0 we have c ( x ) < 1 c(x) < 1 c ( x ) < 1 , and since η < 2 \eta< 2 η < 2 ,
c ( x ) > − 1 ⟺ 2 − η > η r ∣ x ∣ ⟺ ∣ x ∣ > η r 2 − η = a . c(x) > -1 \Longleftrightarrow2-\eta> \frac{\eta r}{\lvert x\rvert} \Longleftrightarrow\lvert x\rvert> \frac{\eta r}{2-\eta} = a. c ( x ) > − 1 ⟺ 2 − η > ∣ x ∣ η r ⟺ ∣ x ∣ > 2 − η η r = a .
Hence ∣ c ( x ) ∣ < 1 \lvert c(x)\rvert< 1 ∣ c ( x )∣ < 1 if ∣ x ∣ > a \lvert x\rvert> a ∣ x ∣ > a , ∣ c ( x ) ∣ > 1 \lvert c(x)\rvert> 1 ∣ c ( x )∣ > 1 if 0 < ∣ x ∣ < a 0 < \lvert x\rvert< a 0 < ∣ x ∣ < a , and c ( x ) = − 1 c(x) = -1 c ( x ) = − 1 if ∣ x ∣ = a \lvert x\rvert= a ∣ x ∣ = a , which are the three claims. In particular a ↦ − a ↦ a a \mapsto-a \mapsto a a ↦ − a ↦ a , so ± a \pm a ± a is a two-cycle. Finally, suppose x t ≠ 0 x_t \ne0 x t = 0 for all t t t and x t → 0 x_t \to0 x t → 0 . Then 0 < ∣ x t ∣ < a 0 < \lvert x_t\rvert< a 0 < ∣ x t ∣ < a for all large t t t , so ∣ x t ∣ \lvert x_t\rvert ∣ x t ∣ is eventually strictly increasing, which contradicts x t → 0 x_t \to0 x t → 0 .
(ii) Here f ′ ( x ) = x 3 f'(x) = x^3 f ′ ( x ) = x 3 and f ′ ′ ( x ) = 3 x 2 f''(x) = 3x^2 f ′′ ( x ) = 3 x 2 . For u ≥ 0 u \ge0 u ≥ 0 the function 3 u 2 − u 3 3u^2-u^3 3 u 2 − u 3 attains its maximum 4 4 4 at u = 2 u=2 u = 2 , so 3 x 2 ≤ 4 + ∣ x ∣ 3 = 4 + ∣ f ′ ( x ) ∣ 3x^2 \le4+\lvert x\rvert^3 = 4+\lvert f'(x)\rvert 3 x 2 ≤ 4 + ∣ x ∣ 3 = 4 + ∣ f ′ ( x )∣ and (3) hold with ( L 0 , L 1 ) = ( 4 , 1 ) (L_0,L_1) = (4,1) ( L 0 , L 1 ) = ( 4 , 1 ) . The perturbed point of USAM is y = x + ρ x 3 = x ( 1 + ρ x 2 ) y = x+\rho x^3 = x(1+\rho x^2) y = x + ρ x 3 = x ( 1 + ρ x 2 ) , so that y 3 = ( 1 + ρ x 2 ) 3 x 3 y^3 = (1+\rho x^2)^3x^3 y 3 = ( 1 + ρ x 2 ) 3 x 3 and, for x ≠ 0 x \ne0 x = 0 ,
D U S A M ( x ) = ∣ y 3 − x 3 ∣ ∣ x 3 ∣ = ( 1 + ρ x 2 ) 3 − 1 , x + = x − η y 3 = [ 1 − η ( 1 + D U S A M ( x ) x 2 ) ] x . D_{\mathrm{USAM}}(x) = \frac{\lvert y^3-x^3\rvert}{\lvert x^3\rvert} = (1+\rho x^2)^3-1, \qquad x^+ = x-\eta y^3 = [1-\eta(1+D_{\mathrm{USAM}}(x)x^2)]x. D USAM ( x ) = ∣ x 3 ∣ ∣ y 3 − x 3 ∣ = ( 1 + ρ x 2 ) 3 − 1 , x + = x − η y 3 = [ 1 − η ( 1 + D USAM ( x ) x 2 )] x .
If ∣ x ∣ > ( 2 / ( η ρ 3 ) ) 1 / 8 |x| > (2/(\eta\rho^{3}))^{1/8} ∣ x ∣ > ( 2/ ( η ρ 3 ) ) 1/8 , then η ( 1 + ρ x 2 ) 3 x 2 ≥ η ρ 3 x 8 > 2 \eta(1+\rho x^{2})^{3}x^{2} \ge\eta\rho^{3}x^{8} > 2 η ( 1 + ρ x 2 ) 3 x 2 ≥ η ρ 3 x 8 > 2 , so the factor in brackets is less than − 1 -1 − 1 : x + x^{+} x + has the opposite sign of x x x and ∣ x + ∣ > ∣ x ∣ |x^{+}| > |x| ∣ x + ∣ > ∣ x ∣ . In particular ∣ x + ∣ > ( 2 / ( η ρ 3 ) ) 1 / 8 |x^{+}| > (2/(\eta\rho^{3}))^{1/8} ∣ x + ∣ > ( 2/ ( η ρ 3 ) ) 1/8 again, so by induction the sign alternates and ∣ x t ∣ |x_t| ∣ x t ∣ increases strictly for every t t t . Moreover, ∣ x t + 1 ∣ ≥ ( η ρ 3 x t 8 − 1 ) ∣ x t ∣ ≥ ( η ρ 3 x 0 8 − 1 ) ∣ x t ∣ |x_{t+1}| \ge(\eta\rho^{3}x_t^{8}-1)|x_t| \ge(\eta\rho^{3}x_0^{8}-1)|x_t| ∣ x t + 1 ∣ ≥ ( η ρ 3 x t 8 − 1 ) ∣ x t ∣ ≥ ( η ρ 3 x 0 8 − 1 ) ∣ x t ∣ with η ρ 3 x 0 8 − 1 > 1 \eta\rho^{3}x_0^{8}-1 > 1 η ρ 3 x 0 8 − 1 > 1 , so ∣ x t ∣ → ∞ |x_t| \to\infty ∣ x t ∣ → ∞ .
Theorem 2.2 (restated). Let L 0 > 0 L_0 > 0 L 0 > 0 , L 1 > 0 L_1 > 0 L 1 > 0 , and consider the perturbation given by a nonnegative collinear rule d ( x ) = α ( ∥ ∇ f ( x ) ∥ ) ∇ f ( x ) d(x)=\alpha(\|\nabla f(x)\|)\nabla f(x) d ( x ) = α ( ∥∇ f ( x ) ∥ ) ∇ f ( x ) . Suppose that for every one-dimensional objective satisfying (3) and every point with nonzero gradient, D ( x , d ( x ) ) ≤ δ D(x,d(x)) \le\delta D ( x , d ( x )) ≤ δ . Then, for every s > 0 s > 0 s > 0 ,
α ( s ) ≤ min { δ L 0 , log ( 1 + δ ) L 1 s } . (30) \alpha(s) \le\min\left\{\frac{\delta}{L_0},\frac{\log(1+\delta)}{L_1s}\right\}. \tag*{(30)} α ( s ) ≤ min { L 0 δ , L 1 s log ( 1 + δ ) } . (30)
Proof of Theorem 2.2. Fix s > 0 s > 0 s > 0 . Consider first f q ( x ) = L 0 x 2 / 2 f_q(x)=L_0x^2/2 f q ( x ) = L 0 x 2 /2 . It is bounded below with f q ′ ′ ≡ L 0 ≤ L 0 + L 1 ∣ f q ′ ( x ) ∣ f_q'' \equiv L_0 \le L_0+L_1|f_q'(x)| f q ′′ ≡ L 0 ≤ L 0 + L 1 ∣ f q ′ ( x ) ∣ , so it satisfies (3) . At the point x = s / L 0 x=s/L_0 x = s / L 0 we have f q ′ ( x ) = s f_q'(x)=s f q ′ ( x ) = s , the perturbation is d ( x ) = α ( s ) s d(x)=\alpha(s)s d ( x ) = α ( s ) s , and
D ( x , d ( x ) ) = ∣ f q ′ ( x + d ( x ) ) − f q ′ ( x ) ∣ ∣ f q ′ ( x ) ∣ = L 0 α ( s ) s s = L 0 α ( s ) . D(x,d(x))=\frac{|f_q'(x+d(x))-f_q'(x)|}{|f_q'(x)|}=\frac{L_0\alpha(s)s}{s}=L_0\alpha(s). D ( x , d ( x )) = ∣ f q ′ ( x ) ∣ ∣ f q ′ ( x + d ( x )) − f q ′ ( x ) ∣ = s L 0 α ( s ) s = L 0 α ( s ) .
The hypothesis D ( x , d ( x ) ) ≤ δ D(x,d(x)) \le\delta D ( x , d ( x )) ≤ δ gives α ( s ) ≤ δ / L 0 \alpha(s) \le\delta/L_0 α ( s ) ≤ δ / L 0 .
Next consider f e ( x ) = e L 1 x / L 2 f_e(x)=e^{L_1x/L_2} f e ( x ) = e L 1 x / L 2 . It is positive, hence bounded below, with f e ′ ( x ) = e L 1 x / L 1 > 0 f_e'(x)=e^{L_1x}/L_1 > 0 f e ′ ( x ) = e L 1 x / L 1 > 0 and f e ′ ′ ( x ) = e L 1 x = L 1 f e ′ ( x ) ≤ L 0 + L 1 ∣ f e ′ ( x ) ∣ f_e''(x)=e^{L_1x}=L_1f_e'(x) \le L_0+L_1|f_e'(x)| f e ′′ ( x ) = e L 1 x = L 1 f e ′ ( x ) ≤ L 0 + L 1 ∣ f e ′ ( x ) ∣ , so it satisfies (3) . At the point x = log ( L 1 s ) / L 1 x=\log(L_1s)/L_1 x = log ( L 1 s ) / L 1 we have f e ′ ( x ) = s f_e'(x)=s f e ′ ( x ) = s , the perturbation is d ( x ) = α ( s ) s ≥ 0 d(x)=\alpha(s)s \ge0 d ( x ) = α ( s ) s ≥ 0 , and since f e ′ ( x + d ) = e L 1 d f e ′ ( x ) f_e'(x+d)=e^{L_1d}f_e'(x) f e ′ ( x + d ) = e L 1 d f e ′ ( x ) ,
D ( x , d ( x ) ) = f e ′ ( x + d ( x ) ) − f e ′ ( x ) f e ′ ( x ) = e L 1 α ( s ) s − 1. D(x,d(x))=\frac{f_e'(x+d(x))-f_e'(x)}{f_e'(x)}=e^{L_1\alpha(s)s}-1. D ( x , d ( x )) = f e ′ ( x ) f e ′ ( x + d ( x )) − f e ′ ( x ) = e L 1 α ( s ) s − 1.
The hypothesis gives e L 1 α ( s ) s ≤ 1 + δ e^{L_1\alpha(s)s} \le1+\delta e L 1 α ( s ) s ≤ 1 + δ , that is α ( s ) ≤ log ( 1 + δ ) / ( L 1 s ) \alpha(s) \le\log(1+\delta)/(L_1s) α ( s ) ≤ log ( 1 + δ ) / ( L 1 s ) . Together with the first bound this is (10).
Proposition 2.4 (restated).
(i) Under (2) , the constant scale M ≡ L M \equiv L M ≡ L is admissible with κ = 0 \kappa=0 κ = 0 .
(ii) Under (3) , the scale M L M_L M L is admissible with κ = L 1 \kappa=L_1 κ = L 1 .
(iii) Under (4) , either M H ≡ 0 M_H \equiv0 M H ≡ 0 and f f f is constant, or M H > 0 M_H > 0 M H > 0 everywhere and the scale M H M_H M H is admissible with κ = H 1 \kappa=\sqrt{H_1} κ = H 1 .
(iv) Under (3) , for every x ∈ R d x \in\mathbb{R}^{d} x ∈ R d ,
L 0 + L 1 ∥ ∇ f ( x ) ∥ ≤ 3 2 L 0 + 3 L 1 2 2 ( 2 log 2 − 1 ) ( f ( x ) − f ⋆ ) . (31) L_0+L_1\|\nabla f(x)\| \le\frac{3}{2}L_0+\frac{3L_1^2}{2(2\log2-1)}(f(x)-f_\star). \tag*{(31)} L 0 + L 1 ∥∇ f ( x ) ∥ ≤ 2 3 L 0 + 2 ( 2 log 2 − 1 ) 3 L 1 2 ( f ( x ) − f ⋆ ) . (31) In particular, (3) implies (4) with the constants H 0 = 3 L 0 / 2 H_0=3L_0/2 H 0 = 3 L 0 /2 and H 1 = 3 L 1 2 / ( 2 ( 2 log 2 − 1 ) ) H_1=3L_1^2/(2(2\log2-1)) H 1 = 3 L 1 2 / ( 2 ( 2 log 2 − 1 )) .
Proof of Proposition 2.4. (i) With M ≡ L M \equiv L M ≡ L and κ = 0 \kappa=0 κ = 0 , the three conditions in (11) read ∥ ∇ 2 f ( x ) ∥ ≤ L \|\nabla^2f(x)\| \le L ∥ ∇ 2 f ( x ) ∥ ≤ L , L ≤ L L \le L L ≤ L , and 0 ≤ L 0 \le L 0 ≤ L .
(ii) The first condition is (3) , and the third holds with κ = L 1 \kappa=L_1 κ = L 1 because L 1 ∥ ∇ f ( x ) ∥ ≤ L 0 + L 1 ∥ ∇ f ( x ) ∥ L_1\|\nabla f(x)\| \le L_0+L_1\|\nabla f(x)\| L 1 ∥∇ f ( x ) ∥ ≤ L 0 + L 1 ∥∇ f ( x ) ∥ . For the second, fix x , y x,y x , y . Since ∇ f \nabla f ∇ f is continuously differentiable, the function s ↦ M L ( x + s ( y − x ) ) = L 0 + L 1 ∥ ∇ f ( x + s ( y − x ) ) ∥ s \mapsto M_L(x+s(y-x))=L_0+L_1\|\nabla f(x+s(y-x))\| s ↦ M L ( x + s ( y − x )) = L 0 + L 1 ∥∇ f ( x + s ( y − x )) ∥ is Lipschitz on [ 0 , 1 ] [0,1] [ 0 , 1 ] , hence absolutely continuous, and at every point of differentiability
d d s M L ( x + s ( y − x ) ) ≤ L 1 ∥ ∇ 2 f ( x + s ( y − x ) ) ( y − x ) ∥ ≤ L 1 ∥ ∇ 2 f ( x + s ( y − x ) ) ∥ ∥ y − x ∥ ≤ L 1 M L ( x + s ( y − x ) ) ∥ y − x ∥ . \begin{aligned}
\frac{d}{ds}M_L(x+s(y-x)) \le L_1\|\nabla^2f(x+s(y-x))(y-x)\| \le L_1\|\nabla^2f(x+s(y-x))\|\|y-x\| \\
&\le L_1M_L(x+s(y-x))\|y-x\|.
\end{aligned} d s d M L ( x + s ( y − x )) ≤ L 1 ∥ ∇ 2 f ( x + s ( y − x )) ( y − x ) ∥ ≤ L 1 ∥ ∇ 2 f ( x + s ( y − x )) ∥∥ y − x ∥ ≤ L 1 M L ( x + s ( y − x )) ∥ y − x ∥.
Lemma B.1 with c = L 1 ∥ y − x ∥ c=L_1\lVert y-x\rVert c = L 1 ∥ y − x ∥ gives M L ( y ) ≤ M L ( x ) e L 1 ∥ y − x ∥ M_L(y)\le M_L(x)e^{L_1\lVert y-x\rVert} M L ( y ) ≤ M L ( x ) e L 1 ∥ y − x ∥ .
(iii) If M H M_H M H vanishes somewhere, Lemma B.8 gives M H ≡ 0 M_H\equiv0 M H ≡ 0 and f f f constant. Otherwise M H > 0 M_H>0 M H > 0 everywhere. The first condition is (4), and the third, with κ = H 1 \kappa=\sqrt{H_1} κ = H 1 , is Lemma B.7 . For the second, fix x , y x,y x , y ; by Lemma B.7 ,
d d s M H ( x + s ( y − x ) ) = H 1 ⟨ ∇ f ( x + s ( y − x ) ) , y − x ⟩ ≤ H 1 ∥ ∇ f ( x + s ( y − x ) ) ∥ ∥ y − x ∥ ≤ H 1 M H ( x + s ( y − x ) ) ∥ y − x ∥ , \begin{aligned}
\frac{d}{ds}M_H\bigl(x+s(y-x)\bigr)=H_1\left\langle\nabla f\bigl(x+s(y-x)\bigr),y-x\right\rangle\le H_1\left\lVert\nabla f\bigl(x+s(y-x)\bigr)\right\rVert\lVert y-x\rVert\\
&\le\sqrt{H_1}M_H\bigl(x+s(y-x)\bigr)\lVert y-x\rVert,
\end{aligned} d s d M H ( x + s ( y − x ) ) = H 1 ⟨ ∇ f ( x + s ( y − x ) ) , y − x ⟩ ≤ H 1 ∇ f ( x + s ( y − x ) ) ∥ y − x ∥ ≤ H 1 M H ( x + s ( y − x ) ) ∥ y − x ∥ ,
and Lemma B.1 with c = H 1 ∥ y − x ∥ c=\sqrt{H_1}\lVert y-x\rVert c = H 1 ∥ y − x ∥ gives M H ( y ) ≤ M H ( x ) e H 1 ∥ y − x ∥ M_H(y)\le M_H(x)e^{\sqrt{H_1}\lVert y-x\rVert} M H ( y ) ≤ M H ( x ) e H 1 ∥ y − x ∥ .
(iv) By (ii), Lemma B.3 applies to M L M_L M L and gives ( 2 log 2 − 1 ) ∥ ∇ f ( x ) ∥ 2 ≤ ( f ( x ) − f ⋆ ) ( L 0 + L 1 ∥ ∇ f ( x ) ∥ ) (2\log2-1)\lVert\nabla f(x)\rVert^2\le(f(x)-f_\star)(L_0+L_1\lVert\nabla f(x)\rVert) ( 2 log 2 − 1 ) ∥ ∇ f ( x ) ∥ 2 ≤ ( f ( x ) − f ⋆ ) ( L 0 + L 1 ∥ ∇ f ( x )∥) , that is
∥ ∇ f ( x ) ∥ 2 − L 1 ( f ( x ) − f ⋆ ) 2 log 2 − 1 ∥ ∇ f ( x ) ∥ − L 0 ( f ( x ) − f ⋆ ) 2 log 2 − 1 ≤ 0. \lVert\nabla f(x)\rVert^2-\frac{L_1(f(x)-f_\star)}{2\log2-1}\lVert\nabla f(x)\rVert-\frac{L_0(f(x)-f_\star)}{2\log2-1}\le0. ∥ ∇ f ( x ) ∥ 2 − 2 log 2 − 1 L 1 ( f ( x ) − f ⋆ ) ∥ ∇ f ( x )∥ − 2 log 2 − 1 L 0 ( f ( x ) − f ⋆ ) ≤ 0.
Since s 2 ≤ A + B s s^2\le A+Bs s 2 ≤ A + B s with A , B , s ≥ 0 A,B,s\ge0 A , B , s ≥ 0 implies s ≤ ( B + B 2 + 4 A ) / 2 ≤ B + A s\le(B+\sqrt{B^2+4A})/2\le B+\sqrt{A} s ≤ ( B + B 2 + 4 A ) /2 ≤ B + A ,
∥ ∇ f ( x ) ∥ ≤ L 1 ( f ( x ) − f ⋆ ) 2 log 2 − 1 + L 0 ( f ( x ) − f ⋆ ) 2 log 2 − 1 . \lVert\nabla f(x)\rVert\le\frac{L_1(f(x)-f_\star)}{2\log2-1}+\sqrt{\frac{L_0(f(x)-f_\star)}{2\log2-1}}. ∥ ∇ f ( x )∥ ≤ 2 log 2 − 1 L 1 ( f ( x ) − f ⋆ ) + 2 log 2 − 1 L 0 ( f ( x ) − f ⋆ ) .
Therefore, using A B ≤ ( A + B ) / 2 \sqrt{AB}\le(A+B)/2 A B ≤ ( A + B ) /2 with A = L 0 A=L_0 A = L 0 and B = L 1 2 ( f ( x ) − f ⋆ ) / ( 2 log 2 − 1 ) B=L_1^2(f(x)-f_\star)/(2\log2-1) B = L 1 2 ( f ( x ) − f ⋆ ) / ( 2 log 2 − 1 ) ,
L 0 + L 1 ∥ ∇ f ( x ) ∥ ≤ L 0 + L 1 2 ( f ( x ) − f ⋆ ) 2 log 2 − 1 + L 0 ⋅ L 1 2 ( f ( x ) − f ⋆ ) 2 log 2 − 1 ≤ 3 2 L 0 + 3 L 1 2 2 ( 2 log 2 − 1 ) ( f ( x ) − f ⋆ ) , \begin{aligned}
L_0+L_1\lVert\nabla f(x)\rVert\le L_0+\frac{L_1^2(f(x)-f_\star)}{2\log2-1}+\sqrt{L_0\cdot\frac{L_1^2(f(x)-f_\star)}{2\log2-1}} \\
&\le\frac{3}{2}L_0+\frac{3L_1^2}{2(2\log2-1)}(f(x)-f_\star),
\end{aligned} L 0 + L 1 ∥ ∇ f ( x )∥ ≤ L 0 + 2 log 2 − 1 L 1 2 ( f ( x ) − f ⋆ ) + L 0 ⋅ 2 log 2 − 1 L 1 2 ( f ( x ) − f ⋆ ) ≤ 2 3 L 0 + 2 ( 2 log 2 − 1 ) 3 L 1 2 ( f ( x ) − f ⋆ ) ,
which is (12). Combined with (3), this bounds ∥ ∇ 2 f ( x ) ∥ \lVert\nabla^2f(x)\rVert ∥ ∇ 2 f ( x )∥ by the same right-hand side, which is (4) with the stated constants.
Theorem 2.5 (restated). Let M M M be κ \kappa κ -admissible, let ρ ≥ 0 \rho\ge0 ρ ≥ 0 , γ > 0 \gamma>0 γ > 0 , and run CS-SAM. Then every iteration with ∇ f ( x t ) ≠ 0 \nabla f(x_t)\ne0 ∇ f ( x t ) = 0 satisfies
e − ρ M ( x t ) ≤ M ( y t ) ≤ e ρ M ( x t ) , ∥ ∇ f ( y t ) − ∇ f ( x t ) ∥ ∥ ∇ f ( x t ) ∥ ≤ e ρ − 1. e^{-\rho}M(x_t)\le M(y_t)\le e^\rho M(x_t),\qquad\frac{\lVert\nabla f(y_t)-\nabla f(x_t)\rVert}{\lVert\nabla f(x_t)\rVert}\le e^\rho-1. e − ρ M ( x t ) ≤ M ( y t ) ≤ e ρ M ( x t ) , ∥ ∇ f ( x t )∥ ∥ ∇ f ( y t ) − ∇ f ( x t )∥ ≤ e ρ − 1. In particular, D C S - S A M ≤ e ρ − 1 D_{\mathrm{CS\text{-}SAM}}\le e^\rho-1 D CS - SAM ≤ e ρ − 1 .
Proof of Theorem 2.5. The two claims are the inequalities in (25) of Lemma B.4 , which holds for every κ \kappa κ -admissible scale M M M and every ρ ≥ 0 \rho\ge0 ρ ≥ 0 ; since ∇ f ( x t ) ≠ 0 \nabla f(x_t)\ne0 ∇ f ( x t ) = 0 , dividing the second inequality by ∥ ∇ f ( x t ) ∥ \lVert\nabla f(x_t)\rVert ∥ ∇ f ( x t )∥ gives the distortion bound.
Proofs for Section 3
In this section, we present the proofs of Theorem 3.1 in Appendix § 11 .§ 1 and of Theorem 3.2 in Appendix § 11 .§ 2 ; for completeness, each theorem is restated before its proofs.
Proofs for Section 3.1: the (L 0 , L 1 L_0,L_1 L 0 , L 1 ) curvature scale
Throughout this subsection f f f satisfies (3) and M = M L M=M_L M = M L , which is admissible with κ = L 1 \kappa=L_1 κ = L 1 by Proposition 2.4(ii), so Lemmas B.2 to B.6 apply with M ( x t ) = L 0 + L 1 ∥ ∇ f ( x t ) ∥ M(x_t)=L_0+L_1\lVert\nabla f(x_t)\rVert M ( x t ) = L 0 + L 1 ∥ ∇ f ( x t )∥ and M ( y t ) = L 0 + L 1 ∥ ∇ f ( y t ) ∥ M(y_t)=L_0+L_1\lVert\nabla f(y_t)\rVert M ( y t ) = L 0 + L 1 ∥ ∇ f ( y t )∥ . We use repeatedly that the map s ↦ s 2 / ( L 0 + L 1 s ) s\mapsto s^2/(L_0+L_1s) s ↦ s 2 / ( L 0 + L 1 s ) is increasing on [ 0 , ∞ ) [0,\infty) [ 0 , ∞ ) , since its derivative is ( 2 L 0 s + L 1 s 2 ) / ( L 0 + L 1 s ) 2 ≥ 0 (2L_0s+L_1s^2)/(L_0+L_1s)^2\ge0 ( 2 L 0 s + L 1 s 2 ) / ( L 0 + L 1 s ) 2 ≥ 0 . In this setting Lemma B.5 reads
f ( x t + 1 ) − f ⋆ ≤ ( f ( x t ) − f ⋆ ) − γ e − ρ χ ( ρ , γ ) ∥ ∇ f ( x t ) ∥ 2 L 0 + L 1 ∥ ∇ f ( x t ) ∥ . (32) f(x_{t+1})-f_\star\le(f(x_t)-f_\star)-\gamma e^{-\rho}\chi(\rho,\gamma)\frac{\lVert\nabla f(x_t)\rVert^2}{L_0+L_1\lVert\nabla f(x_t)\rVert}. \tag*{(32)} f ( x t + 1 ) − f ⋆ ≤ ( f ( x t ) − f ⋆ ) − γ e − ρ χ ( ρ , γ ) L 0 + L 1 ∥ ∇ f ( x t )∥ ∥ ∇ f ( x t ) ∥ 2 . (32)
Theorem 3.1 (restated). Let f f f satisfy (3) , let ρ ≥ 0 \rho\ge0 ρ ≥ 0 and γ > 0 \gamma>0 γ > 0 satisfy χ ( ρ , γ ) > 0 \chi(\rho,\gamma)>0 χ ( ρ , γ ) > 0 , and let ( x t ) t ≥ 0 (x_t)_{t\ge0} ( x t ) t ≥ 0 be generated by CS-SAM with M = M L M=M_L M = M L . Then, for every T ≥ 1 T\ge1 T ≥ 1 , the following hold:
(i) (Nonconvex rate )
min 0 ≤ t < T ∥ ∇ f ( x t ) ∥ 2 ≤ ( e ρ L 0 ( f ( x 0 ) − f ⋆ ) γ χ ( ρ , γ ) T + e ρ L 1 ( f ( x 0 ) − f ⋆ ) γ χ ( ρ , γ ) T ) 2 . (33) \min_{0\le t<T}\lVert\nabla f(x_t)\rVert^2\le\left(\sqrt{\frac{e^{\rho}L_0(f(x_0)-f_\star)}{\gamma\chi(\rho,\gamma)T}}+\frac{e^{\rho}L_1(f(x_0)-f_\star)}{\gamma\chi(\rho,\gamma)T}\right)^2. \tag*{(33)} 0 ≤ t < T min ∥ ∇ f ( x t ) ∥ 2 ≤ ( γ χ ( ρ , γ ) T e ρ L 0 ( f ( x 0 ) − f ⋆ ) + γ χ ( ρ , γ ) T e ρ L 1 ( f ( x 0 ) − f ⋆ ) ) 2 . (33) (ii) (Convex rate ) If in addition f f f is convex with a minimizer x ⋆ x_\star x ⋆ and c 0 ≥ 0 c_0\ge0 c 0 ≥ 0 , then
f ( x T ) − f ⋆ ≤ e ρ ( L 0 ∥ x 0 − x ⋆ ∥ 2 + L 1 ∥ x 0 − x ⋆ ∥ ( f ( x 0 ) − f ⋆ ) ) γ χ ( ρ , γ ) T . (34) f(x_T)-f_\star\le\frac{e^{\rho}\left(L_0\lVert x_0-x_\star\rVert^2+L_1\lVert x_0-x_\star\rVert(f(x_0)-f_\star)\right)}{\gamma\chi(\rho,\gamma)T}. \tag*{(34)} f ( x T ) − f ⋆ ≤ γ χ ( ρ , γ ) T e ρ ( L 0 ∥ x 0 − x ⋆ ∥ 2 + L 1 ∥ x 0 − x ⋆ ∥ ( f ( x 0 ) − f ⋆ ) ) . (34) (iii) (PL rate ) If in addition f f f satisfies the μ \mu μ -PL condition (15) , then
f ( x T ) − f ⋆ ≤ ( 1 − 2 μ γ e − ρ χ ( ρ , γ ) L 0 + L 1 2 μ ( f ( x 0 ) − f ⋆ ) ) T ( f ( x 0 ) − f ⋆ ) . (35) f(x_T)-f_\star\le\left(1-\frac{2\mu\gamma e^{-\rho}\chi(\rho,\gamma)}{L_0+L_1\sqrt{2\mu(f(x_0)-f_\star)}}\right)^T(f(x_0)-f_\star). \tag*{(35)} f ( x T ) − f ⋆ ≤ ( 1 − L 0 + L 1 2 μ ( f ( x 0 ) − f ⋆ ) 2 μ γ e − ρ χ ( ρ , γ ) ) T ( f ( x 0 ) − f ⋆ ) . (35)
Proof of Theorem 3.1. (i) Summing (32) over t < T t<T t < T gives
γ e − ρ χ ( ρ , γ ) ∑ t < T ∥ ∇ f ( x t ) ∥ 2 L 0 + L 1 ∥ ∇ f ( x t ) ∥ ≤ f ( x 0 ) − f ( x T ) ≤ f ( x 0 ) − f ⋆ . \gamma e^{-\rho}\chi(\rho,\gamma)\sum_{t<T}\frac{\lVert\nabla f(x_t)\rVert^2}{L_0+L_1\lVert\nabla f(x_t)\rVert}\le f(x_0)-f(x_T)\le f(x_0)-f_\star. γ e − ρ χ ( ρ , γ ) t < T ∑ L 0 + L 1 ∥ ∇ f ( x t )∥ ∥ ∇ f ( x t ) ∥ 2 ≤ f ( x 0 ) − f ( x T ) ≤ f ( x 0 ) − f ⋆ .
Since the map s ↦ s 2 / ( L 0 + L 1 s ) s\mapsto s^2/(L_0+L_1s) s ↦ s 2 / ( L 0 + L 1 s ) is increasing, each summand is bounded below by the value of this map at the smallest of the gradient norms, hence
( min t < T ∥ ∇ f ( x t ) ∥ ) 2 ≤ e ρ ( f ( x 0 ) − f ⋆ ) γ χ ( ρ , γ ) T ( L 0 + L 1 min t < T ∥ ∇ f ( x t ) ∥ ) . \left(\min_{t<T}\lVert\nabla f(x_t)\rVert\right)^2\le\frac{e^\rho(f(x_0)-f_\star)}{\gamma\chi(\rho,\gamma)T}\left(L_0+L_1\min_{t<T}\lVert\nabla f(x_t)\rVert\right). ( t < T min ∥ ∇ f ( x t )∥ ) 2 ≤ γ χ ( ρ , γ ) T e ρ ( f ( x 0 ) − f ⋆ ) ( L 0 + L 1 t < T min ∥ ∇ f ( x t )∥ ) .
Since s 2 ≤ A + B s s^2\le A+Bs s 2 ≤ A + B s with A , B , s ≥ 0 A,B,s\ge0 A , B , s ≥ 0 implies s ≤ A + B s\le\sqrt{A}+B s ≤ A + B , we get
min t < T ∥ ∇ f ( x t ) ∥ ≤ e ρ L 0 ( f ( x 0 ) − f ⋆ ) γ χ ( ρ , γ ) T + e ρ L 1 ( f ( x 0 ) − f ⋆ ) γ χ ( ρ , γ ) T , \min_{t<T}\lVert\nabla f(x_t)\rVert\le\sqrt{\frac{e^\rho L_0(f(x_0)-f_\star)}{\gamma\chi(\rho,\gamma)T}}+\frac{e^\rho L_1(f(x_0)-f_\star)}{\gamma\chi(\rho,\gamma)T}, t < T min ∥ ∇ f ( x t )∥ ≤ γ χ ( ρ , γ ) T e ρ L 0 ( f ( x 0 ) − f ⋆ ) + γ χ ( ρ , γ ) T e ρ L 1 ( f ( x 0 ) − f ⋆ ) ,
and squaring gives (16).
(ii) Since c 0 ≥ 0 c_0 \ge0 c 0 ≥ 0 , Lemma B.6 gives ∥ x t − x ⋆ ∥ ≤ ∥ x 0 − x ⋆ ∥ \lVert x_t-x_\star\rVert\le\lVert x_0-x_\star\rVert ∥ x t − x ⋆ ∥ ≤ ∥ x 0 − x ⋆ ∥ for all t t t . Convexity and the Cauchy–Schwarz inequality give
f ( x t ) − f ⋆ ≤ ⟨ ∇ f ( x t ) , x t − x ⋆ ⟩ ≤ ∥ ∇ f ( x t ) ∥ ∥ x 0 − x ⋆ ∥ . f(x_t)-f_\star\le\langle\nabla f(x_t),x_t-x_\star\rangle\le\lVert\nabla f(x_t)\rVert\lVert x_0-x_\star\rVert. f ( x t ) − f ⋆ ≤ ⟨ ∇ f ( x t ) , x t − x ⋆ ⟩ ≤ ∥ ∇ f ( x t )∥ ∥ x 0 − x ⋆ ∥ .
Since the map s ↦ s 2 / ( L 0 + L 1 s ) s \mapsto s^2/(L_0+L_1s) s ↦ s 2 / ( L 0 + L 1 s ) is increasing and f ( x t ) − f ⋆ ≤ f ( x 0 ) − f ⋆ f(x_t)-f_\star\le f(x_0)-f_\star f ( x t ) − f ⋆ ≤ f ( x 0 ) − f ⋆ ,
∥ ∇ f ( x t ) ∥ 2 L 0 + L 1 ∥ ∇ f ( x t ) ∥ ≥ ( f ( x t ) − f ⋆ ) 2 L 0 ∥ x 0 − x ⋆ ∥ 2 + L 1 ∥ x 0 − x ⋆ ∥ ( f ( x t ) − f ⋆ ) ≥ ( f ( x t ) − f ⋆ ) 2 L 0 ∥ x 0 − x ⋆ ∥ 2 + L 1 ∥ x 0 − x ⋆ ∥ ( f ( x 0 ) − f ⋆ ) . \begin{aligned}
\frac{\lVert\nabla f(x_t)\rVert^2}{L_0+L_1\lVert\nabla f(x_t)\rVert}
\ge
\frac{(f(x_t)-f_\star)^2}{L_0\lVert x_0-x_\star\rVert^2+L_1\lVert x_0-x_\star\rVert(f(x_t)-f_\star)} \\
&\ge
\frac{(f(x_t)-f_\star)^2}{L_0\lVert x_0-x_\star\rVert^2+L_1\lVert x_0-x_\star\rVert(f(x_0)-f_\star)}.
\end{aligned} L 0 + L 1 ∥ ∇ f ( x t )∥ ∥ ∇ f ( x t ) ∥ 2 ≥ L 0 ∥ x 0 − x ⋆ ∥ 2 + L 1 ∥ x 0 − x ⋆ ∥ ( f ( x t ) − f ⋆ ) ( f ( x t ) − f ⋆ ) 2 ≥ L 0 ∥ x 0 − x ⋆ ∥ 2 + L 1 ∥ x 0 − x ⋆ ∥ ( f ( x 0 ) − f ⋆ ) ( f ( x t ) − f ⋆ ) 2 .
Inserting this into (32) gives
f ( x t + 1 ) − f ⋆ ≤ ( f ( x t ) − f ⋆ ) − γ e − ρ χ ( ρ , γ ) L 0 ∥ x 0 − x ⋆ ∥ 2 + L 1 ∥ x 0 − x ⋆ ∥ ( f ( x 0 ) − f ⋆ ) ( f ( x t ) − f ⋆ ) 2 . f(x_{t+1})-f_\star\le(f(x_t)-f_\star)
-\frac{\gamma e^{-\rho}\chi(\rho,\gamma)}
{L_0\lVert x_0-x_\star\rVert^2+L_1\lVert x_0-x_\star\rVert(f(x_0)-f_\star)}
(f(x_t)-f_\star)^2 . f ( x t + 1 ) − f ⋆ ≤ ( f ( x t ) − f ⋆ ) − L 0 ∥ x 0 − x ⋆ ∥ 2 + L 1 ∥ x 0 − x ⋆ ∥ ( f ( x 0 ) − f ⋆ ) γ e − ρ χ ( ρ , γ ) ( f ( x t ) − f ⋆ ) 2 .
Since f ( x t ) − f ⋆ f(x_t)-f_\star f ( x t ) − f ⋆ is nonincreasing by Lemma B.5 , Lemma B.9 applies and gives (17).
(iii) If f ( x 0 ) = f ⋆ f(x_0)=f_\star f ( x 0 ) = f ⋆ all iterates are minimizers and there is nothing to prove, so let f ( x 0 ) > f ⋆ f(x_0)>f_\star f ( x 0 ) > f ⋆ . The PL condition (15) gives ∥ ∇ f ( x t ) ∥ ≥ 2 μ ( f ( x t ) − f ⋆ ) \lVert\nabla f(x_t)\rVert\ge\sqrt{2\mu(f(x_t)-f_\star)} ∥ ∇ f ( x t )∥ ≥ 2 μ ( f ( x t ) − f ⋆ ) , so by the monotonicity of s ↦ s 2 / ( L 0 + L 1 s ) s \mapsto s^2/(L_0+L_1s) s ↦ s 2 / ( L 0 + L 1 s ) , (32) , and f ( x t ) − f ⋆ ≤ f ( x 0 ) − f ⋆ f(x_t)-f_\star\le f(x_0)-f_\star f ( x t ) − f ⋆ ≤ f ( x 0 ) − f ⋆ ,
f ( x t + 1 ) − f ⋆ ≤ ( f ( x t ) − f ⋆ ) − γ e − ρ χ ( ρ , γ ) 2 μ ( f ( x t ) − f ⋆ ) L 0 + L 1 2 μ ( f ( x t ) − f ⋆ ) ≤ ( 1 − 2 μ γ e − ρ χ ( ρ , γ ) L 0 + L 1 2 μ ( f ( x 0 ) − f ⋆ ) ) ( f ( x t ) − f ⋆ ) . \begin{aligned}
f(x_{t+1})-f_\star\le(f(x_t)-f_\star)-\gamma e^{-\rho}\chi(\rho,\gamma)
\frac{2\mu(f(x_t)-f_\star)}{L_0+L_1\sqrt{2\mu(f(x_t)-f_\star)}} \\
&\le\left(1-\frac{2\mu\gamma e^{-\rho}\chi(\rho,\gamma)}
{L_0+L_1\sqrt{2\mu(f(x_0)-f_\star)}}\right)(f(x_t)-f_\star).
\end{aligned} f ( x t + 1 ) − f ⋆ ≤ ( f ( x t ) − f ⋆ ) − γ e − ρ χ ( ρ , γ ) L 0 + L 1 2 μ ( f ( x t ) − f ⋆ ) 2 μ ( f ( x t ) − f ⋆ ) ≤ ( 1 − L 0 + L 1 2 μ ( f ( x 0 ) − f ⋆ ) 2 μ γ e − ρ χ ( ρ , γ ) ) ( f ( x t ) − f ⋆ ) .
Applying this with t = 0 t=0 t = 0 and using f ( x 1 ) − f ⋆ ≥ 0 f(x_1)-f_\star\ge0 f ( x 1 ) − f ⋆ ≥ 0 and f ( x 0 ) − f ⋆ > 0 f(x_0)-f_\star>0 f ( x 0 ) − f ⋆ > 0 shows that the factor in parentheses is nonnegative, and it is less than one since μ γ e − ρ χ ( ρ , γ ) > 0 \mu\gamma e^{-\rho}\chi(\rho,\gamma)>0 μ γ e − ρ χ ( ρ , γ ) > 0 . Induction on t t t then gives (18).
Proofs for Section 3.2: the ( H 0 , H 1 ) (H_0,H_1) ( H 0 , H 1 ) curvature scale
Throughout this subsection f f f satisfies (4) , is nonconstant, and M = M H M=M_H M = M H , which is positive and admissible with κ = H 1 \kappa=\sqrt{H_1} κ = H 1 by Proposition 2.4(iii), so Lemmas B.2 to B.6 apply with M ( x t ) = H 0 + H 1 ( f ( x t ) − f ⋆ ) M(x_t)=H_0+H_1(f(x_t)-f_\star) M ( x t ) = H 0 + H 1 ( f ( x t ) − f ⋆ ) and M ( y t ) = H 0 + H 1 ( f ( y t ) − f ⋆ ) M(y_t)=H_0+H_1(f(y_t)-f_\star) M ( y t ) = H 0 + H 1 ( f ( y t ) − f ⋆ ) . Since f ( x t ) − f ⋆ f(x_t)-f_\star f ( x t ) − f ⋆ is nonincreasing by Lemma B.5 , we have M ( x t ) ≤ H 0 + H 1 ( f ( x 0 ) − f ⋆ ) M(x_t)\le H_0+H_1(f(x_0)-f_\star) M ( x t ) ≤ H 0 + H 1 ( f ( x 0 ) − f ⋆ ) for all t t t , and Lemma B.5 gives
f ( x t + 1 ) − f ⋆ ≤ ( f ( x t ) − f ⋆ ) − γ e − ρ χ ( ρ , γ ) ∥ ∇ f ( x t ) ∥ 2 H 0 + H 1 ( f ( x t ) − f ⋆ ) ≤ ( f ( x t ) − f ⋆ ) − γ e − ρ χ ( ρ , γ ) ∥ ∇ f ( x t ) ∥ 2 H 0 + H 1 ( f ( x 0 ) − f ⋆ ) . (36) \begin{aligned}
f(x_{t+1})-f_\star
&\le(f(x_t)-f_\star)-\gamma e^{-\rho}\chi(\rho,\gamma)
\frac{\lVert\nabla f(x_t)\rVert^2}{H_0+H_1(f(x_t)-f_\star)}\\
&\le(f(x_t)-f_\star)-\gamma e^{-\rho}\chi(\rho,\gamma)
\frac{\lVert\nabla f(x_t)\rVert^2}{H_0+H_1(f(x_0)-f_\star)}. \tag*{(36)}
\end{aligned} f ( x t + 1 ) − f ⋆ ≤ ( f ( x t ) − f ⋆ ) − γ e − ρ χ ( ρ , γ ) H 0 + H 1 ( f ( x t ) − f ⋆ ) ∥ ∇ f ( x t ) ∥ 2 ≤ ( f ( x t ) − f ⋆ ) − γ e − ρ χ ( ρ , γ ) H 0 + H 1 ( f ( x 0 ) − f ⋆ ) ∥ ∇ f ( x t ) ∥ 2 . (36)
Note that the second inequality in (36) has a constant coefficient in front of ∥ ∇ f ( x t ) ∥ 2 \lVert\nabla f(x_t)\rVert^2 ∥ ∇ f ( x t ) ∥ 2 , which is why the H 1 H_1 H 1 contribution enters the rates of Theorem 3.2 at the leading order, in contrast to Theorem 3.1.
Theorem 3.2 (restated). Let f f f satisfy (4) and be nonconstant, let ρ ≥ 0 \rho\ge0 ρ ≥ 0 and γ > 0 \gamma>0 γ > 0 satisfy χ ( ρ , γ ) > 0 \chi(\rho,\gamma)>0 χ ( ρ , γ ) > 0 , and let ( x t ) t ≥ 0 (x_t)_{t\ge0} ( x t ) t ≥ 0 be generated by CS-SAM with M = M H M=M_H M = M H . Then, for every T ≥ 1 T\ge1 T ≥ 1 , the following hold:
(i) (Nonconvex rate)
min 0 ≤ t < T ∥ ∇ f ( x t ) ∥ 2 ≤ e ρ ( H 0 + H 1 ( f ( x 0 ) − f ⋆ ) ) ( f ( x 0 ) − f ⋆ ) γ χ ( ρ , γ ) T . (37) \min_{0\le t<T}\lVert\nabla f(x_t)\rVert^2
\le\frac{e^\rho\left(H_0+H_1(f(x_0)-f_\star)\right)(f(x_0)-f_\star)}
{\gamma\chi(\rho,\gamma)T}. \tag*{(37)} 0 ≤ t < T min ∥ ∇ f ( x t ) ∥ 2 ≤ γ χ ( ρ , γ ) T e ρ ( H 0 + H 1 ( f ( x 0 ) − f ⋆ ) ) ( f ( x 0 ) − f ⋆ ) . (37)
(ii) (Convex rate ) If in addition f f f is convex with a minimizer x ⋆ x_\star x ⋆ and c 0 ≥ 0 c_0 \ge0 c 0 ≥ 0 , then
f ( x T ) − f ⋆ ≤ e ρ ( H 0 + H 1 ( f ( x 0 ) − f ⋆ ) ) ∥ x 0 − x ⋆ ∥ 2 γ χ ( ρ , γ ) T . (38) f(x_T) - f_\star\le\frac{e^\rho\left(H_0 + H_1(f(x_0)-f_\star)\right)\lVert x_0-x_\star\rVert^2}{\gamma\chi(\rho,\gamma)T}. \tag*{(38)} f ( x T ) − f ⋆ ≤ γ χ ( ρ , γ ) T e ρ ( H 0 + H 1 ( f ( x 0 ) − f ⋆ ) ) ∥ x 0 − x ⋆ ∥ 2 . (38)
(iii) (PL rate ) If in addition f f f satisfies the μ \mu μ -PL condition (15) , then
f ( x T ) − f ⋆ ≤ ( 1 − 2 μ γ e − ρ χ ( ρ , γ ) H 0 + H 1 ( f ( x 0 ) − f ⋆ ) ) T ( f ( x 0 ) − f ⋆ ) . (39) f(x_T)-f_\star\le\left(1-\frac{2\mu\gamma e^{-\rho}\chi(\rho,\gamma)}{H_0+H_1(f(x_0)-f_\star)}\right)^T(f(x_0)-f_\star). \tag*{(39)} f ( x T ) − f ⋆ ≤ ( 1 − H 0 + H 1 ( f ( x 0 ) − f ⋆ ) 2 μ γ e − ρ χ ( ρ , γ ) ) T ( f ( x 0 ) − f ⋆ ) . (39)
Proof of Theorem 3.2. (i) Summing the second inequality in (36) over t < T t<T t < T gives
γ e − ρ χ ( ρ , γ ) H 0 + H 1 ( f ( x 0 ) − f ⋆ ) ∑ t < T ∥ ∇ f ( x t ) ∥ 2 ≤ f ( x 0 ) − f ( x T ) ≤ f ( x 0 ) − f ⋆ , \frac{\gamma e^{-\rho}\chi(\rho,\gamma)}{H_0+H_1(f(x_0)-f_\star)}\sum_{t<T}\lVert\nabla f(x_t)\rVert^2 \le f(x_0)-f(x_T) \le f(x_0)-f_\star, H 0 + H 1 ( f ( x 0 ) − f ⋆ ) γ e − ρ χ ( ρ , γ ) t < T ∑ ∥ ∇ f ( x t ) ∥ 2 ≤ f ( x 0 ) − f ( x T ) ≤ f ( x 0 ) − f ⋆ ,
and the minimum over t < T t<T t < T is at most the average, which gives (19).
(ii) Since c 0 ≥ 0 c_0 \ge0 c 0 ≥ 0 , Lemma B.6 gives ∥ x t − x ⋆ ∥ ≤ ∥ x 0 − x ⋆ ∥ \lVert x_t-x_\star\rVert\le\lVert x_0-x_\star\rVert ∥ x t − x ⋆ ∥ ≤ ∥ x 0 − x ⋆ ∥ , and convexity gives ∥ ∇ f ( x t ) ∥ ≥ ( f ( x t ) − f ⋆ ) / ∥ x 0 − x ⋆ ∥ \lVert\nabla f(x_t)\rVert\ge(f(x_t)-f_\star)/\lVert x_0-x_\star\rVert ∥ ∇ f ( x t )∥ ≥ ( f ( x t ) − f ⋆ ) / ∥ x 0 − x ⋆ ∥ as in the proof of Theorem 3.1(ii). Inserting this into the second inequality in (36) ,
f ( x t + 1 ) − f ⋆ ≤ ( f ( x t ) − f ⋆ ) − γ e − ρ χ ( ρ , γ ) ∥ x 0 − x ⋆ ∥ 2 ( H 0 + H 1 ( f ( x 0 ) − f ⋆ ) ) ( f ( x t ) − f ⋆ ) 2 , f(x_{t+1})-f_\star\le(f(x_t)-f_\star)-\frac{\gamma e^{-\rho}\chi(\rho,\gamma)}{\lVert x_0-x_\star\rVert^2\left(H_0+H_1(f(x_0)-f_\star)\right)}(f(x_t)-f_\star)^2, f ( x t + 1 ) − f ⋆ ≤ ( f ( x t ) − f ⋆ ) − ∥ x 0 − x ⋆ ∥ 2 ( H 0 + H 1 ( f ( x 0 ) − f ⋆ ) ) γ e − ρ χ ( ρ , γ ) ( f ( x t ) − f ⋆ ) 2 ,
and Lemma B.9 gives (20).
(iii) Let f ( x 0 ) > f ⋆ f(x_0)>f_\star f ( x 0 ) > f ⋆ , the other case being trivial. The PL condition (15) and the second inequality in (36) give
f ( x t + 1 ) − f ⋆ ≤ ( 1 − 2 μ γ e − ρ χ ( ρ , γ ) H 0 + H 1 ( f ( x 0 ) − f ⋆ ) ) ( f ( x t ) − f ⋆ ) . f(x_{t+1})-f_\star\le\left(1-\frac{2\mu\gamma e^{-\rho}\chi(\rho,\gamma)}{H_0+H_1(f(x_0)-f_\star)}\right)(f(x_t)-f_\star). f ( x t + 1 ) − f ⋆ ≤ ( 1 − H 0 + H 1 ( f ( x 0 ) − f ⋆ ) 2 μ γ e − ρ χ ( ρ , γ ) ) ( f ( x t ) − f ⋆ ) .
As in the proof of Theorem 3.1(iii), the case t = 0 t=0 t = 0 shows that the factor in parentheses lies in [ 0 , 1 ) [0,1) [ 0 , 1 ) , and induction gives (21).
Experimental details
In this section, we give the details needed to reproduce the experiments of § 4 . Appendix § 12 .§ 1 specifies the one-dimensional verification experiments of § 4.1 : the update rules, the curvature scales and the constants that make them valid everywhere, the stopping rules, and the evaluation of the distortion. Appendix § 12 .§ 2 gives, for the deep-network experiments of § 4.2 , the training protocol, the minibatch curvature scales and their fixed coefficients, the tuning campaign with the complete grid of every method, the selection rule, and the selected configuration of every method in every model–dataset setting (Table 4 ).
Table 4. Configurations selected on seed 3107 by the best test accuracy over 200 epochs, for every method and setting of Table 3. For SAM and USAM, η \eta η is the constant learning rate or the initial learning rate of the cosine annealing schedule (32), r r r is the radius of SAM, and ρ \rho ρ is the multiplier of USAM. For CS-SAM, ρ \rho ρ and γ \gamma γ are the perturbation and step multipliers, L 0 L_0 L 0 is the constant term of the M L M_L M L scale L 0 + L 1 ∥ ∇ f i ( x ) ∥ L_0 + L_1 \lVert\nabla f_i(x)\rVert L 0 + L 1 ∥ ∇ f i ( x )∥ with L 1 = 1 L_1 = 1 L 1 = 1 , and H 1 H_1 H 1 is the loss coefficient of the M H M_H M H scale H 0 + H 1 [ f i ( x ) − ℓ i ∗ ] + H_0 + H_1[f_i(x) - \ell_i^*]_+ H 0 + H 1 [ f i ( x ) − ℓ i ∗ ] + with H 0 = 1 H_0 = 1 H 0 = 1 and ℓ i ∗ = 0 \ell_i^* = 0 ℓ i ∗ = 0 .
The pseudocode for CS-SAM is given in Algorithm 1.
Algorithm 1 Curvature-Scaled SAM (CS-SAM).
Require: starting point x 0 ∈ R d x_0 \in\mathbb{R}^d x 0 ∈ R d ; perturbation multiplier ρ ≥ 0 \rho\ge0 ρ ≥ 0 ; step multiplier γ > 0 \gamma> 0 γ > 0 ; admissible curvature scale M M M (Definition 2.3 )
for t = 0 , 1 , … t = 0,1,\ldots t = 0 , 1 , … do
if ∇ f ( x t ) = 0 \nabla f(x_t) = 0 ∇ f ( x t ) = 0 then
return x t x_t x t ▷ stationary point reached; the method stops
end if
y t ← x t + ρ M ( x t ) ∇ f ( x t ) y_t \leftarrow x_t + \frac{\rho}{M(x_t)}\nabla f(x_t) y t ← x t + M ( x t ) ρ ∇ f ( x t )
x t + 1 ← x t − γ M ( y t ) ∇ f ( y t ) x_{t+1} \leftarrow x_t - \frac{\gamma}{M(y_t)}\nabla f(y_t) x t + 1 ← x t − M ( y t ) γ ∇ f ( y t )
end for
Verification experiments of Section 4.1
The experiments of § 4.1 are deterministic and one-dimensional, with analytic function values and gradients, so there are no datasets, minibatches, random seeds, or hyperparameter searches. All computations use double precision.
Update rules and scales. The three methods are run exactly as stated in (SAM), (USAM), and (CS-SAM), with ∇ f = f ′ \nabla f = f' ∇ f = f ′ and the norm equal to the absolute value. Both objectives attain f ⋆ = 0 f_\star= 0 f ⋆ = 0 at x = 0 x = 0 x = 0 , and the two scales are
M L ( x ) = L 0 + L 1 ∣ f ′ ( x ) ∣ , M H ( x ) = H 0 + H 1 ( f ( x ) − f ⋆ ) . M_L(x) = L_0 + L_1 \lvert f'(x) \rvert,\qquad M_H(x) = H_0 + H_1\left(f(x) - f_\star\right). M L ( x ) = L 0 + L 1 ∣ f ′ ( x )∣ , M H ( x ) = H 0 + H 1 ( f ( x ) − f ⋆ ) .
For the quadratic f ( x ) = x 2 / 2 f(x) = x^2/2 f ( x ) = x 2 /2 we have f ′ ′ ≡ 1 f'' \equiv1 f ′′ ≡ 1 and take ( L 0 , L 1 ) = ( H 0 , H 1 ) = ( 1 , 0 ) (L_0,L_1) = (H_0,H_1) = (1,0) ( L 0 , L 1 ) = ( H 0 , H 1 ) = ( 1 , 0 ) , so that M L = M H ≡ 1 M_L = M_H \equiv1 M L = M H ≡ 1 and a single CS-SAM curve is shown. For the quartic f ( x ) = x 4 / 4 f(x) = x^4/4 f ( x ) = x 4 /4 we have f ′ ′ ( x ) = 3 x 2 f''(x) = 3x^2 f ′′ ( x ) = 3 x 2 and take ( L 0 , L 1 ) = ( 4 , 1 ) (L_0,L_1) = (4,1) ( L 0 , L 1 ) = ( 4 , 1 ) and ( H 0 , H 1 ) = ( 3 , 3 ) (H_0,H_1) = (3,3) ( H 0 , H 1 ) = ( 3 , 3 ) , that is, M L ( x ) = 4 + ∣ x ∣ 3 M_L(x) = 4 + \lvert x \rvert^3 M L ( x ) = 4 + ∣ x ∣ 3 and M H ( x ) = 3 + 3 x 4 / 4 M_H(x) = 3 + 3x^4/4 M H ( x ) = 3 + 3 x 4 /4 .
Parameter regime. The common choice ρ = γ = 1 / 8 \rho= \gamma= 1/8 ρ = γ = 1/8 for CS-SAM lies in the regime of Theorems 3.1 and 3.2. With the constants of (14) , 2 − e 1 / 8 ≈ 0.867 2 - e^{1/8} \approx0.867 2 − e 1/8 ≈ 0.867 and γ ω ( γ ) e 3 ρ = 1 8 ω ( 1 8 ) e 3 / 8 ≈ 0.095 \gamma\omega(\gamma)e^{3\rho} = \frac{1}{8}\omega\left(\frac{1}{8}\right)e^{3/8} \approx0.095 γ ω ( γ ) e 3 ρ = 8 1 ω ( 8 1 ) e 3/8 ≈ 0.095 , so that χ ( 1 / 8 , 1 / 8 ) ≈ 0.772 > 0 \chi(1/8,1/8) \approx0.772 > 0 χ ( 1/8 , 1/8 ) ≈ 0.772 > 0 ; moreover ρ ( e ρ − 1 ) / ( 2 log 2 − 1 ) ≈ 0.043 \rho(e^\rho- 1)/(2\log2 - 1) \approx0.043 ρ ( e ρ − 1 ) / ( 2 log 2 − 1 ) ≈ 0.043 and γ e 3 ρ / ( 2 ( 2 log 2 − 1 ) ) ≈ 0.235 \gamma e^{3\rho}/(2(2\log2 - 1)) \approx0.235 γ e 3 ρ / ( 2 ( 2 log 2 − 1 )) ≈ 0.235 , so that c 0 ≈ 0.722 ≥ 0 c_0 \approx0.722 \ge0 c 0 ≈ 0.722 ≥ 0 . Since both objectives are convex with the minimizer x ⋆ = 0 x_\star= 0 x ⋆ = 0 , the convergence of CS-SAM in Figure 1 a and Figure 1 b is the one guaranteed by Theorem 3.1(ii) with M = M L M = M_L M = M L and by Theorem 3.2(ii) with M = M H M = M_H M = M H , and the bound e ρ − 1 e^\rho- 1 e ρ − 1 in Figure 1 c and Figure 1 d is that of Theorem 2.5, which holds for every ρ ≥ 0 \rho\ge0 ρ ≥ 0 .
Two-cycle and divergence (Figures 1a and 1b). A run stops when ∣ f ′ ( x ) ∣ ≤ 10 − 12 \lvert f'(x) \rvert\le10^{-12} ∣ f ′ ( x )∣ ≤ 1 0 − 12 , when an update no longer changes the double-precision iterate or when an iterate or a perturbed point has absolute value at least 10 12 10^{12} 1 0 12 . On the quadratic, SAM uses r = 1 r = 1 r = 1 and η = 0.2 \eta= 0.2 η = 0.2 , and CS-SAM uses ρ = γ = 1 / 8 \rho= \gamma= 1/8 ρ = γ = 1/8 , both from x 0 = 3 x_0 = 3 x 0 = 3 with at most 500 updates. The SAM recurrence is x t + 1 = 0.8 x t − 0.2 sign ( x t ) x_{t+1} = 0.8x_t - 0.2\operatorname{sign}(x_t) x t + 1 = 0.8 x t − 0.2 sign ( x t ) , whose two-cycle has amplitude a = η r / ( 2 − η ) = 1 / 9 a = \eta r/(2-\eta) = 1/9 a = η r / ( 2 − η ) = 1/9 , marked by the dashed lines, and the CS-SAM recurrence is x t + 1 = ( 1 − γ ( 1 + ρ ) ) x t = 55 64 x t x_{t+1} = (1-\gamma(1+\rho))x_t = \frac{55}{64}x_t x t + 1 = ( 1 − γ ( 1 + ρ )) x t = 64 55 x t . SAM completes the 500 updates, whereas CS-SAM reaches the gradient tolerance after 190 updates. On the quartic, USAM uses ρ = 1 / 8 \rho= 1/8 ρ = 1/8 and η = 1 / 32 \eta= 1/32 η = 1/32 with at most 20 updates, and CS-SAM uses ρ = γ = 1 / 8 \rho= \gamma= 1/8 ρ = γ = 1/8 with either scale and at most 10,000 updates, all from x 0 = 4 x_0 = 4 x 0 = 4 . For USAM, the first perturbed point is y 0 = 4 + 1 8 ⋅ 4 3 = 12 y_0 = 4 + \frac{1}{8}\cdot4^3 = 12 y 0 = 4 + 8 1 ⋅ 4 3 = 12 , so that x 1 = 4 − 1 32 ⋅ 12 3 = − 50 x_1 = 4 - \frac{1}{32}\cdot12^3 = -50 x 1 = 4 − 32 1 ⋅ 1 2 3 = − 50 , then x 2 ≈ 1.2 × 10 11 x_2 \approx1.2 \times10^{11} x 2 ≈ 1.2 × 1 0 11 , and the next perturbed point exceeds the cutoff; the trace therefore ends after two completed updates, and the plotted curve consists of its three recorded points. Both CS-SAM traces complete the 10,000 updates. Figure 1 b shows ∣ x t ∣ |x_t| ∣ x t ∣ against the number 2 t 2t 2 t of gradient evaluations, two per completed update, over the first 50 updates. Note that the cutoff is a numerical termination rule; the divergence itself is the statement of Proposition 2.1(ii), whose threshold ( 2 / ( η ρ 3 ) ) 1 / 8 ≈ 3.67 (2/(\eta\rho^3))^{1/8} \approx3.67 ( 2/ ( η ρ 3 ) ) 1/8 ≈ 3.67 is exceeded by x 0 = 4 x_0 = 4 x 0 = 4 .
Distortion (Figure 1 c and Figure 1 d). These figures evaluate independent points rather than trajectories. At each nonstationary x x x we form the perturbed point y y y of the method and record the gradient norm s = ∣ f ′ ( x ) ∣ s = |f'(x)| s = ∣ f ′ ( x ) ∣ and the distortion D = ∣ f ′ ( y ) − f ′ ( x ) ∣ / ∣ f ′ ( x ) ∣ D = |f'(y) - f'(x)|/|f'(x)| D = ∣ f ′ ( y ) − f ′ ( x ) ∣/∣ f ′ ( x ) ∣ of (5) ; no outer step enters. The perturbations are those of SAM with r = 1 / 8 r = 1/8 r = 1/8 on the quadratic, of USAM with ρ = 1 / 8 \rho= 1/8 ρ = 1/8 on the quartic, and of CS-SAM with ρ = 1 / 8 \rho= 1/8 ρ = 1/8 on both, with each scale separately on the quartic. Note that the SAM radius is 1 in the two-cycle experiment and 1 / 8 1/8 1/8 here; the two are separate experiments, and a common numerical value of the parameters does not mean equal perturbation lengths across methods. The dashed line is the bound e ρ − 1 = e 1 / 8 − 1 ≈ 0.133 e^\rho- 1 = e^{1/8} - 1 \approx0.133 e ρ − 1 = e 1/8 − 1 ≈ 0.133 of Theorem 2.5.
Deep-network experiments of Section 4.2
Training protocol. All runs train ResNet-20 or ResNet-32 with batch normalization on CIFAR-10 or CIFAR-100 for 200 epochs with batch size 128 and the cross-entropy loss, with random-crop and horizontal-flip augmentation and no cutout. Momentum and weight decay are zero for every method. The test accuracy is evaluated after every epoch. Every method computes two minibatch gradients per iteration, one at the iterate and one at the perturbed point, so that equal numbers of epochs correspond to equal numbers of gradient evaluations. The runs were performed on four RTX 6000 Ada GPUs.
Learning-rate schedules. The schedule of SAM and USAM acts on the outer step η t \eta_t η t only; the radius r r r and the multiplier ρ \rho ρ are constant throughout training. With the constant schedule, η t ≡ η \eta_t \equiv\eta η t ≡ η . With the cosine schedule, the outer step is held fixed within each epoch and annealed from η \eta η towards 0 over the E = 200 E = 200 E = 200 epochs: during epoch e ∈ { 0 , … , E − 1 } e \in\{0,\ldots,E-1\} e ∈ { 0 , … , E − 1 } ,
η t = η 2 ( 1 + cos π e E ) , (40) \eta_t = \frac{\eta}{2}\left(1+\cos\frac{\pi e}{E}\right), \tag*{(40)} η t = 2 η ( 1 + cos E π e ) , (40)
so that η t = η \eta_t = \eta η t = η during the first epoch and η t ≈ 6 × 10 − 5 η \eta_t \approx6 \times10^{-5}\eta η t ≈ 6 × 1 0 − 5 η during the last. This is cosine annealing without restarts, warm-up, or a positive floor [Loschillov and Hutter, 2017], applied once per epoch through the scheduler interface of PyTorch [27 ] .
Minibatch curvature scales. As stated in § 4.2 , the M L M_L M L scale of a minibatch is L 0 + L 1 ∥ ∇ f i ( x ) ∥ L_0 + L_1\|\nabla f_i(x)\| L 0 + L 1 ∥∇ f i ( x ) ∥ and the M H M_H M H scale is H 0 + H 1 [ f i ( x ) − ℓ i ⋆ ] + H_0 + H_1[f_i(x)-\ell_i^\star]_+ H 0 + H 1 [ f i ( x ) − ℓ i ⋆ ] + with ℓ i ⋆ = 0 \ell_i^\star= 0 ℓ i ⋆ = 0 , where f i f_i f i and ∇ f i \nabla f_i ∇ f i are the minibatch loss and gradient. Note that multiplying ( ρ , γ , L 0 , L 1 ) (\rho,\gamma,L_0,L_1) ( ρ , γ , L 0 , L 1 ) , or ( ρ , γ , H 0 , H 1 ) (\rho,\gamma,H_0,H_1) ( ρ , γ , H 0 , H 1 ) , by one positive constant leaves CS-SAM unchanged, since the perturbation step ρ / M ( x t ) \rho/M(x_t) ρ / M ( x t ) and the descent step γ / M ( y t ) \gamma/M(y_t) γ / M ( y t ) are ratios. Only three of the four coefficients of each scale are therefore free, and we fix L 1 = 1 L_1 = 1 L 1 = 1 for the M L M_L M L scale and H 0 = 1 H_0 = 1 H 0 = 1 for the M H M_H M H scale, so that the tuned coefficients are ( ρ , γ , L 0 ) (\rho,\gamma,L_0) ( ρ , γ , L 0 ) and ( ρ , γ , H 1 ) (\rho,\gamma,H_1) ( ρ , γ , H 1 ) respectively. The coefficients are constant over training; CS-SAM uses no learning-rate schedule, since the perturbation and the descent step adapt through the scale.
Tuning protocol. The protocol has three stages, each run on all four model–dataset settings.
Baselines. SAM and USAM, each with a constant and with a cosine annealing schedule, are tuned on seed 3107 over a 4 × 4 4 \times4 4 × 4 grid of learning rate and radius (multiplier): η ∈ { 0.03 , 0.1 , 0.3 , 1 } \eta\in\{0.03,0.1,0.3,1\} η ∈ { 0.03 , 0.1 , 0.3 , 1 } for all four baselines, r ∈ { 0.01 , 0.05 , 0.1 , 0.2 } r \in\{0.01,0.05,0.1,0.2\} r ∈ { 0.01 , 0.05 , 0.1 , 0.2 } for SAM, and ρ ∈ { 0.1 , 0.3 , 1 , 3 } \rho\in\{0.1,0.3,1,3\} ρ ∈ { 0.1 , 0.3 , 1 , 3 } for USAM. For the cosine annealing schedule (40) , η \eta η is the initial learning rate.
(ii) CS-SAM. The M L M_L M L scale is tuned on seed 3107 over ρ ∈ { 0.2 , 0.4 , 0.8 , 1.6 } \rho\in\{0.2, 0.4, 0.8, 1.6\} ρ ∈ { 0.2 , 0.4 , 0.8 , 1.6 } , γ ∈ { 0.2 , 0.4 , 0.8 } \gamma\in\{0.2, 0.4, 0.8\} γ ∈ { 0.2 , 0.4 , 0.8 } , and L 0 ∈ { 0.02 , 0.5 , 2 } L_0 \in\{0.02, 0.5, 2\} L 0 ∈ { 0.02 , 0.5 , 2 } with L 1 = 1 L_1 = 1 L 1 = 1 , and the M H M_H M H scale over ρ ∈ { 0.3 , 1 , 3 } \rho\in\{0.3, 1, 3\} ρ ∈ { 0.3 , 1 , 3 } , γ ∈ { 0.3 , 1 , 3 } \gamma\in\{0.3, 1, 3\} γ ∈ { 0.3 , 1 , 3 } , and H 1 ∈ { 1 , 3 , 10 , 30 } H_1 \in\{1, 3, 10, 30\} H 1 ∈ { 1 , 3 , 10 , 30 } with H 0 = 1 H_0 = 1 H 0 = 1 . This stage comprises 36 configurations per scale and setting, that is, 288 runs.
(iii) Seeds. For every method and setting, the configuration with the highest best test accuracy over the 200 epochs on seed 3107 is rerun with seeds 3407 and 4096. Table 3 reports the mean and the sample standard deviation over the three seeds of the best test accuracy over epochs.
Selected configurations. Table 4 lists, for every method and setting, the configuration selected in stages (i) and (ii) and rerun in stage (iii); these are the configurations behind the entries of Table 3 .
Table 4 : Configurations selected on seed 3107 by the best test accuracy over 200 epochs, for every method and setting of Table 3 . For SAM and USAM, η \eta η is the constant learning rate or the initial learning rate of the cosine annealing schedule (40) , r r r is the radius of SAM, and ρ \rho ρ is the multiplier of USAM. For CS-SAM , ρ \rho ρ and γ \gamma γ are the perturbation and step multipliers, L 0 L_0 L 0 is the constant term of the M L M_L M L scale L 0 + L 1 ∥ ∇ f i ( x ) ∥ L_0 + L_1 \lVert\nabla f_i(x)\rVert L 0 + L 1 ∥ ∇ f i ( x )∥ with L 1 = 1 L_1 = 1 L 1 = 1 , and H 1 H_1 H 1 is the loss coefficient of the M H M_H M H scale H 0 + H 1 [ f i ( x ) − ℓ i ∗ ] + H_0 + H_1[f_i(x) - \ell_i^*]_+ H 0 + H 1 [ f i ( x ) − ℓ i ∗ ] + with H 0 = 1 H_0 = 1 H 0 = 1 and ℓ i ∗ = 0 \ell_i^* = 0 ℓ i ∗ = 0 .