Manuscript Offprint
arXiv:2610.29192Curvature-Scaled Sharpness-Aware Minimization: Convergence Beyond Smoothness
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Sharpness-Aware Minimization (SAM) has established itself as a widely used method for training deep neural networks. Despite its popularity, existing convergence guarantees for SAM-type methods require smoothness, a restrictive assumption. Generalized smoothness conditions have recently been proposed in the analysis of gradient methods but remain underexplored for SAM. To analyze the effect of SAM's perturbation under generalized smoothness, we use relative gradient distortion to quantify how the sharpness-aware direction departs from the original gradient. Under -smoothness, we show that this distortion can become unbounded near stationarity for SAM and at large gradients for its unnormalized variant (USAM), with examples where SAM cycles and USAM diverges. We then establish a necessary condition for uniform distortion control among perturbations along the gradient whose nonnegative multipliers depend only on its norm. Motivated by this condition, we propose Curvature-Scaled SAM (CS-SAM), which scales both the perturbation and the descent step by suitable curvature upper bounds, and prove that it uniformly bounds the distortion. Under both - and -smoothness, we establish deterministic rates for the best squared gradient norm on nonconvex objectives, last-iterate rates for the function gap on convex objectives with a minimizer, and linear convergence under the Polyak–Lojasiewicz condition. With zero perturbation, our guarantees recover the rates for gradient descent with - or -based step-sizes. Minibatch experiments on computer vision tasks demonstrate competitive performance for both variants, with the variant achieving the highest mean best-test accuracy in all four settings against tuned SAM and USAM with constant and cosine annealing schedules.
1 Introduction
Sharpness-Aware Minimization (SAM) was introduced to improve generalization by seeking parameters whose training loss remains low throughout a local neighborhood [Foret et al., 2021]. 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 , standard SAM uses a fixed-radius perturbation of length along the normalized gradient, whereas its unnormalized variant (USAM) uses a fixed multiple of the gradient itself [Andriushchenko and Flammarion, 2022]:
(SAM)
(USAM) with radius , multiplier , and outer step . Both rules cost two gradient evaluations per iteration, one at the iterate and one at the perturbed point .
Throughout, we consider the problem
where is twice continuously differentiable. In model training, represents the model parameters and the training loss. We call the Hessian operator norm the local curvature at . Classical smoothness bounds this quantity by a constant :
Classical L-smoothness can fail even for simple neural-network training objectives [Alimisis et al., 2026]. Motivated by empirical observations that local curvature grows with the gradient norm during neural-network training, Zhang et al. [2020b] introduced -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 [2023] imply -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 -smoothness for two-layer networks trained with -regularized cross-entropy loss under suitable activation assumptions [Alimisis et al., 2026]. These findings motivate the gradient-dependent and loss-dependent curvature bounds considered here:
-smoothness,
(3)
-smoothness,
(4)
for every , with , , and . Note that both models contain classical smoothness as a special case ( or ). With slight abuse of notation, in several parts of the paper we write and . We refer to a positive function that upper-bounds the local curvature everywhere as a curvature scale; and, for nonconstant objectives, 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. [2023] analyzed cycling of fixed-radius SAM on convex quadratics, and Si and Yun [2023] established stationarity neighborhoods in several settings. The inexact-gradient viewpoint of Khanh et al. [2024] makes the perturbation-induced error explicit, while the clipped rule of Adly and Le [2026] 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 model was introduced by Zhang et al. [2020b] to explain gradient clipping and has since supported analyses of clipped, normalized, and adaptive methods [Chen et al., 2023, Crawshaw et al., 2022, Koloskova et al., 2023, Li et al., 2023, Zhang et al., 2020a]. In particular, Gorbunov et al. [2025] and Vankov et al. [2025] analyzed steps inversely proportional to gradient-dependent curvature bounds. The loss-dependent model has likewise been used to explain learning-rate warm-up [Alimisis et al., 2026] and to analyze line search and adaptive gradient methods [Vaswani and Babanezhad Harikandeh, 2025, 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.
◇ Curvature-Scaled Sharpness-Aware Minimization. In Section 2.2, we construct CS-SAM, which, for a curvature scale M, iterates
(CS-SAM)
with perturbation multiplier and descent step , where and . We identify conditions on the curvature scale that ensure uniform distortion control and show that both and satisfy them. For every scale satisfying these conditions, Theorem 2.5 bounds the distortion by at every nonstationary iterate.
◇ Convergence under generalized smoothness. We establish convergence guarantees for CS-SAM under -smoothness with and under -smoothness with (Theorems 3.1 and 3.2). In each setting, for suitable perturbation and step parameters, we prove rates for the best squared gradient norm on nonconvex objectives and last-iterate rates for the function gap on convex objectives with a minimizer. We also prove linear convergence in both settings under the Polyak–Lojasiewicz (PL) condition, for every and some .
◇ Recovery of gradient descent guarantees for . Setting recovers gradient descent with step . Our bounds recover the known nonconvex and convex rates for gradient-dependent steps [Gorbunov et al., 2025, Vankov et al., 2025], and the convex and PL rates for loss-dependent steps [Alimisis et al., 2026], 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 Section 4.1, we verify Proposition 2.1 and Theorem 2.5: SAM cycles and USAM diverges, whereas CS-SAM converges with a distortion below for both scales. In Section 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.
2 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 C; the distortion bound follows from the auxiliary lemmas in Appendix B.
Table 1: Comparison with the closest prior work. is the relative gradient distortion of the perturbation (Section 2.1). Curvature models: means ; means ; means , with . : is bounded by a constant; : the bound degenerates. Rates are on the best squared gradient norm over iterations (nonconvex), on the last-iterate gap for convex objectives with a minimizer (convex), and on the function gap under PL.
| Method | Perturbation | Curvature model | uniformly bounded | Nonconvex | Convex | PL |
|---|---|---|---|---|---|---|
| SAM [Foret et al., 2021]rates: [Si and Yun, 2023], [Oikonomou and Loizou, 2025] | no last-iterate gap rate | linear to a neighborhood | ||||
| USAM[Andriushchenko and Flammarion, 2022] | linear | |||||
| Unified SAM[Oikonomou and Loizou, 2025] | if ; otherwise | (in expectation) | not analyzed | : linear: linear to a neighborhood | ||
| Clipped perturbation[Adly and Le, 2026] | , | not analyzed | not analyzed | |||
| Inexact-gradient SAM[Khanh et al., 2024] | normalized and unnormalized variants | normalized: USAM: | (no generic rate) | (no rate) | USAM: linear under KL exponent | |
| Ours, CS-SAM with | linear | |||||
| Ours, CS-SAM with | linear |
2.1 Relative gradient distortion and the failures of SAM and USAM
The outer step of SAM and USAM is a gradient step that uses in place of , 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 and a displacement , we define the relative gradient distortion
Let us explain why this is the right quantity. If , then makes an acute angle with , since , and has comparable length, since . These are exactly the two properties the descent lemma requires, so 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. [2024], and relative control of this error near stationarity is what the clipped rule of Adly and Le [2026] 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
Note that the bound for SAM degenerates as , while the bound for USAM is uniform. Under the more general (3), for (both bounds are proved in Appendix C):
The bound for SAM tends to the constant at large gradients and degenerates as . The bound for USAM tends to as and grows exponentially as . 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 , which satisfies (2) with . Run SAM with and . For every ,
Let . Then if , if , and if . Consequently is a two-cycle, and no trajectory converges to the minimizer (unless it lands on it exactly).
(ii) Let , which satisfies (3) with . Run USAM with and . For every ,
Consequently, if , then has the opposite sign of and for every , and .
The quadratic construction can be viewed as an exact illustration of established late-stage phenomena: Bartlett et al. [2023] showed that fixed-radius SAM typically approaches a two-cycle on convex quadratics, and Si and Yun [2023] 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 , , and consider the perturbation given by a nonnegative collinear rule . Suppose that for every one-dimensional objective satisfying (3) and every point with nonzero gradient, . Then, for every ,
Note that the theorem covers SAM with and USAM with . The bound says that the perturbation length must be at most linear in the gradient near and at most a constant for large . SAM violates the first requirement since as , and USAM violates the second since as . In words, every perturbation of this form with uniformly bounded distortion must be USAM-like near stationarity and SAM-like at large gradients. Dividing by gives the multiplier , which has both properties and lies below (10) for every once . 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.
2.2 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 . A function is -admissible for if, for all ,
Let us read the three conditions in (11). The first says that 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 short, so that it stays under control along the perturbation. Under (3), the scale is -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 is admissible with .
(ii) Under (3), the scale is admissible with .
(iii) Under (4), either and is constant, or everywhere and the scale is admissible with .
(iv) Under (3), for every ,
In particular, (3) implies (4) with the constants and .
Items (i)–(iii) say that the three curvature bounds in (2), (3) and (4) are admissible, with , , and respectively; the only exception is the trivial case of a constant , for which 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 and . This inclusion also appears as Proposition B.1 of Alimisis et al. [2026] and as Proposition 3 of Vaswani and Babanezhad Harikandeh [2025], with different constants.
The update. Given an admissible curvature scale , parameters and , and a starting point , we propose Curvature-Scaled SAM, which iterates
(CS-SAM)
Here, sets the perturbation and the descent step. The perturbation step and the descent step use the same curvature scale, each evaluated at the point where the corresponding gradient is taken. If the method stops at . Two instances are of particular interest and are compared in Table 2. With the gradient scale , the perturbation step is and the descent step is ; in particular, the perturbation multiplier is exactly the permitted by Theorem 2.2. With the loss scale , the perturbation step is and the descent step is . 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 is computed from the gradient already in hand, and from the function value and .
Let us highlight the degenerate case. For we have , and CS-SAM reduces to curvature-scaled gradient descent, that is, gradient descent with the curvature-scaled step :
(CS-GD)
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 of Proposition 2.4, the perturbation and descent steps of CS-SAM, and the curvature-scaled gradient method obtained at (CS-GD, Section 2.2).
| Curvature scale | Assumption | Perturbation step | Descent step | CS-SAM at (CS-GD) | |
| (2) | gradient descent with step | ||||
| (3) | the gradient method of Vankov et al. [2025], Gorbunov et al. [2025] | ||||
| (4) | a loss-dependent step similar to Alimisis et al. [2026] |
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 Section 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 be -admissible, let , , and run CS-SAM. Then every iteration with satisfies
In particular, .
Let us highlight what Theorem 2.5 says. The curvature scale at the perturbed point stays within a factor of the scale at the iterate, and the relative gradient distortion never exceeds . This is exactly the uniform control that (6), (7), and Proposition 2.1 show SAM and USAM lack: the bound does not degenerate as , nor as . Moreover, the bound depends neither on the admissibility constant nor on which admissible scale is used, so the constant scale, the scale, and the scale all inherit it. In particular, taking in Section 2.1, whenever , which is a necessary condition for the rates of Section 3: the condition of (14) under which they hold forces .
3 Convergence rates
In this section, we present convergence rates for CS-SAM run with the curvature scales of (3) and of (4). We first fix the constants and the function classes that appear in the bounds. Then, Section 3.1 states the rates for the gradient scale and Section 3.2 those for the loss scale , 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 B.
Constants. For let for and . Define
The condition forces . All results below assume ; the convex results assume in addition . The two conditions restrict how large the perturbation and the step may be taken. In the degenerate case , that is, for CS-GD, the constants reduce to and .
Function classes. We say that is convex with a minimizer if is convex and attains at some . We say that satisfies the -PL condition for some if
3.1 curvature scale:
Throughout this subsection satisfies (3) and CS-SAM is run with the curvature scale , so that the perturbation step is and the descent step is . We collect the three rates in one statement.
Theorem 3.1. Let satisfy (3), let and satisfy , and let be generated by CS-SAM with . Then, for every , the following hold:
(i) (Nonconvex rate)
(ii) (Convex rate) If in addition is convex with a minimizer and , then
(iii) (PL rate) If in addition satisfies the -PL condition (15), then
Let us read the three items in turn. Item (i) shows that the best squared gradient norm decays as : expanding the square, the leading term is and depends on alone, while the gradient-dependent constant enters only through terms of lower order in . Note that the bound requires nothing beyond (3) and , that is, no bounded gradients and no bounded iterates, and that running the method needs nothing beyond the constants that define the scale. Item (ii) gives an bound on the gap of the last iterate for convex objectives, with a leading term proportional to and a second term proportional to . The additional condition is what keeps the iterates within the initial distance of (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 . Let us now compare our guarantees with the known ones in the degenerate case. For , CS-SAM with is the gradient descent with step , and the constant in items (i) and (ii) equals , which is at . This is the method analyzed by Vankov et al. [2025] and Gorbunov et al. [2025], and Theorem 3.1(i)-(ii) give the same rates as Theorems 3.1 and 3.2 of Vankov et al. [2025]: the best squared gradient norm decays as with the term of lower order, and the gap decays as with an term. Our analysis therefore recovers the known asymptotic rate orders in of the curvature-scaled gradient method as the special case , 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 curvature scale.
3.2 curvature scale:
Throughout this subsection satisfies (4) and is nonconstant, so that everywhere by Proposition 2.4(iii), and CS-SAM is run with the curvature scale : the perturbation step is and the descent step is . Note that the loss scale is evaluated relative to , which the method therefore needs, in contrast to the gradient scale of Section 3.1.
Theorem 3.2. Let satisfy (4) and be nonconstant, let and satisfy , and let be generated by CS-SAM with . Then, for every , the following hold:
(i) (Nonconvex rate)
(ii) (Convex rate) If in addition is convex with a minimizer and , then
(iii) (PL rate) If in addition satisfies the -PL condition (15), then
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 with a constant proportional to . Thus, unlike the contribution in Theorem 3.1(i), the contribution occurs at the leading order. Item (ii) gives an bound on the last-iterate gap for convex objectives, proportional to , again under , which bounds the iterates as in Section 3.1. Item (iii) gives a linear rate under the PL condition, with contraction factor .
Comparison with gradient methods at . For , CS-SAM with is gradient descent with the step , and, as in Section 3.1, the constant in items (i) and (ii) equals , which is at . This kind of loss-dependent step was used by Alimisis et al. [2026], who took , and Theorem 3.2(ii)-(iii) give the same rates as their Theorems 4.2 and 4.3, namely a gap in the convex case and a linear rate under the PL condition, with a larger step at : their denominator coefficients 10 and 20 are both replaced by . At 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 . To the best of our knowledge, Theorem 3.2 provides the first convergence rates for a SAM-type method under the curvature scale.
Remark 3.3. As we show in Proposition 2.4(iv), every objective satisfying (3) also satisfies (4) with and , so one could ask why we treat the two scales separately. Note that CS-SAM with and CS-SAM with are the same algorithm run with different steps: while one assumption implies the other, the perturbation step and the descent step are scaled by in one case and by in the other. Theorems 3.1 and 3.2 are therefore guarantees for two different step choices.

(a) Quadratic: iterates
(b) Quartic:
(c) Quadratic: distortion
(d) Quartic: distortion
Figure 1: Verification of Section 2 on the objectives of Proposition 2.1. (a) Iterates of SAM on against the predicted two-cycle (dashed), with CS-SAM. (b) of USAM on 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 of Theorem 2.5.
4 Numerical experiments
In this section, we first verify the results of Section 2 on the two one-dimensional objectives of Proposition 2.1 (Section 4.1), and we then test CS-SAM on the training of deep neural networks against tuned SAM and USAM baselines (Section 4.2). The complete protocols are given in Appendix E.
4.1 Verification of Section 2
The experiments of this subsection are deterministic and one-dimensional, with exact function values and gradients. We use the quadratic and the quartic of Proposition 2.1. The two scales coincide on the quadratic, , while on the quartic and , that is, the constants of Proposition 2.1(ii) and ; both bound the curvature at every (Appendix E.1). Throughout, CS-SAM is run with , for which and . The results are collected in Figure 1.
Two-cycle and divergence. We first run the three methods on the two objectives. On the quadratic, SAM with and is started at ; by Proposition 2.1(i), its iterates approach the two-cycle with . On the quartic, USAM with and is started at , which exceeds the threshold of Proposition 2.1(ii). Figures 1a and 1b show the iterates. We observe that SAM oscillates between (dashed lines) and does not converge, and that USAM changes sign and grows at every step, reaching 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 on the quadratic and USAM uses on the quartic, so that all three perturbations share the numerical parameter 1/8. Figures 1c and 1d show the distortion together with the bound of Theorem 2.5. We observe the two failures of Section 2.1: the distortion of SAM equals and grows without bound as the gradient vanishes, while that of USAM equals and grows without bound as the gradient grows. The distortion of CS-SAM stays below at every gradient norm and for both scales, as Theorem 2.5 guarantees. Note that on the quadratic it equals exactly, and on the quartic it peaks below the bound and decays at both ends.
4.2 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 Section 4.1 and of our guarantees: the networks are trained with minibatch gradients, and the curvature scales are evaluated on minibatch
Table 3: Best test accuracy (%), maximum over 200 epochs), mean standard deviation over 3 seeds, for ResNet-20/32 trained on CIFAR-10/100. Bold marks the best mean in each column.
| Method | ResNet-20 / CIFAR-10 | ResNet-32 / CIFAR-10 | ResNet-20 / CIFAR-100 | ResNet-32 / CIFAR-100 |
|---|---|---|---|---|
| SAM, constant lr | ||||
| SAM, cosine | ||||
| USAM, constant lr | ||||
| USAM, cosine | ||||
| CS-SAM with | ||||
| CS-SAM with |
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 E.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 scale is , and the scale is , where is a lower bound of and . We set in all our experiments. We compare against SAM and USAM, each with a constant and with a cosine annealing schedule, tuned on a grid of learning rate radius (respectively multiplier) for every model–dataset cell. For CS-SAM we tune the scale over , , , and the scale over , . 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 achieves the highest mean best-test accuracy in all four settings, while CS-SAM with beats tuned SAM and USAM in three out of four settings.
5 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 - and -smoothness, we established 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 . 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 , 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.
References
Samir Adly and Ba Khiet Le. Stationarity floors and vanishing perturbations in sharpness-aware minimization. arXiv preprint arXiv:2608.06692, 2026.
Foivos Alimisis, Rustem Islamov, and Aurelien Lucchi. Why do we need warm-up? A theoretical perspective. In ICML, 2026.
Maksym Andriushchenko and Nicolas Flammarion. Towards understanding sharpness-aware minimization. In ICML, 2022.
Maksym Andriushchenko, Francesco Croce, Maximilian Müller, Matthias Hein, and Nicolas Flammarion. A modern look at the relationship between sharpness and generalization. In ICML, 2023.
Peter L. Bartlett, Philip M. Long, and Olivier Bousquet. The dynamics of sharpness-aware minimization: Bouncing across ravines and drifting towards wide minima. Journal of Machine Learning Research, 24(316):1–36, 2023.
Ziyi Chen, Yi Zhou, Yingbin Liang, and Zhaosong Lu. Generalized-smooth nonconvex optimization is as efficient as smooth nonconvex optimization. In ICML, 2023.
Yifei Cheng, Li Shen, Hao Sun, Nan Yin, Xiaochun Cao, and Enhong Chen. LightSAM: Parameter-agnostic sharpness-aware minimization. arXiv preprint arXiv:2505.24399, 2025.
Sayantan Choudhury and Nicolas Loizou. Extragradient method for -Lipschitz root-finding problems. In NeurIPS, 2025.
Michael Crawshaw, Mingrui Liu, Francesco Orabona, Wei Zhang, and Zhenxun Zhuang. Robustness to unbounded smoothness of generalized signSGD. In NeurIPS, 2022.
Yan Dai, Kwangjun Ahn, and Suvrit Sra. The crucial role of normalization in sharpness-aware minimization. In NeurIPS, 2023.
Jiaxin Deng and Junbiao Pang. On the implicit flatness bias of sharpness-aware minimization: A linear stability analysis with quantitative hyperparameter bounds. arXiv preprint arXiv:2608.03197, 2026.
Pierre Foret, Ariel Kleiner, Hossein Mobahi, and Behnam Neyshabur. Sharpness-aware minimization for efficiently improving generalization. In ICLR, 2021.
Eduard Gorbunov, Nazarii Tupitsa, Sayantan Choudhury, Alen Aliev, Peter Richtárik, Samuel Horváth, and Martin Takáč. Methods for convex -smooth optimization: Clipping, acceleration, and adaptivity. In ICLR, 2025.
Ezra Greenberg and Nicolas Loizou. Extragradient and past extragradient methods for -Lipschitz variational inequalities. arXiv preprint arXiv:2610.16886, 2026.
T. H. Gronwall. Note on the derivatives with respect to a parameter of the solutions of a system of differential equations. Annals of Mathematics, 20(4):292–296, 1919.
Moritz Haas, Jin Xu, Volkan Cevher, and Leena Chennuru Vankadara. : Effective sharpness aware minimization requires layerwise perturbation scaling. In NeurIPS, 2024.
Zhen Huang, Jiaxin Deng, and Junbiao Pang. Gradient-energy guided block-wise perturbations for sharpness-aware minimization. arXiv preprint arXiv:2607.18306, 2026.
Pham Duy Khanh, Hoang-Chau Luong, Boris S. Mordukhovich, and Dat Ba Tran. Fundamental convergence analysis of sharpness-aware minimization. In NeurIPS, 2024.
Minyoung Kim, Da Li, Shell X Hu, and Timothy Hospedales. Fisher SAM: Information geometry and sharpness aware minimisation. In ICML, 2022.
Anastasia Koloskova, Hadrien Hendrikx, and Sebastian U. Stich. Revisiting gradient clipping: Stochastic bias and tight convergence guarantees. In ICML, 2023.
Jungmin Kwon, Jeongseop Kim, Hyunseo Park, and In Kwon Choi. ASAM: Adaptive sharpness-aware minimization for scale-invariant learning of deep neural networks. In ICML, 2021.
Haochuan Li, Jian Qian, Yi Tian, Alexander Rakhlin, and Ali Jadbabaie. Convex and non-convex optimization under generalized smoothness. In NeurIPS, 2023.
Ilya Loshchilov and Frank Hutter. SGDR: Stochastic gradient descent with warm restarts. In ICLR, 2017.
Dimitris Oikonomou and Nicolas Loizou. Sharpness-aware minimization: General analysis and improved rates. In ICLR, 2025.
Dimitris Oikonomou and Nicolas Loizou. Adaptive sharpness-aware minimization with a Polyak-type step size: A theory-grounded scheduler. In ICML, 2026.
Chanwoong Park, Uijeong Jang, Ernest K. Ryu, and Insoon Yang. Sharpness-aware minimization can hallucinate minimizers. In ICML, 2026.
Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Köpf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. PyTorch: An imperative style, high-performance deep learning library. In NeurIPS, 2019.
Andrei Semenov, Martin Jaggi, and Nikita Doikov. Gradient-normalized smoothness for optimization with approximate Hessians. In ICLR, 2026.
Dongkuk Si and Chulhee Yun. Practical sharpness-aware minimization cannot converge all the way to optima. In NeurIPS, 2023.
Sidak Pal Singh, Hossein Mobahi, Atish Agarwala, and Yann Dauphin. Avoiding spurious sharpness minimization broadens applicability of SAM. In ICML, 2025.
Tianxiao Sun and Quoc Tran-Dinh. Generalized self-concordant functions: A recipe for Newton-type methods. Mathematical Programming, 178(1–2):145–213, 2019.
Hossein Taheri and Christos Thrampoulidis. Fast convergence in learning two-layer neural networks with separable data. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pages 9944–9952, 2023.
Daniil Vankov, Angelia Nedich, and Lalitha Sankar. Generalized smooth variational inequalities: Methods with adaptive stepsizes. In ICML, 2024.
Daniil Vankov, Anton Rodomanov, Angelia Nedich, Lalitha Sankar, and Sebastian U. Stich. Optimizing -smooth functions by gradient methods. In ICLR, 2025.
Sharan Vaswani and Reza Babanezhad Harikandeh. Armijo line-search can make (stochastic) gradient descent provably faster. In ICML, 2025.
Sharan Vaswani, Yifan Sun, and Reza Babanezhad. Convergence of steepest descent and Adam under non-uniform smoothness. In ICML, 2026.
Jinping Wang, Qinhan Liu, Zhiwu Xie, and Zhiqiang Gao. Fix the loss, not the radius: Rethinking the adversarial perturbation of sharpness-aware minimization. In ICML, 2026.
Xuehao Wang, Weisen Jiang, Shuai Fu, and Yu Zhang. Enhancing sharpness-aware minimization by learning perturbation radius. In European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases, 2024.
TaeHo Yoon, Sayantan Choudhury, Ezra Greenberg, and Nicolas Loizou. Polyak-type extragradient methods for monotone root-finding problems. arXiv preprint arXiv:2609.26581, 2026.
Bohang Zhang, Jikai Jin, Cong Fang, and Liwei Wang. Improved analysis of clipping algorithms for non-convex optimization. In NeurIPS, 2020a.
Jingzhao Zhang, Tianxing He, Suvrit Sra, and Ali Jadbabaie. Why gradient clipping accelerates training: A theoretical justification for adaptivity. In ICLR, 2020b.
Zhanpeng Zhou, Mingze Wang, Yuchen Mao, Bingrui Li, and Junchi Yan. Sharpness-aware minimization efficiently selects flatter minima late in training. In ICLR, 2025.
Supplementary Material
The appendix is organized as follows. In Appendix A, we give a more detailed discussion of related work. In Appendix B, we collect the auxiliary lemmas on admissible curvature scales and on a single iteration of CS-SAM that all proofs rely on. Appendix C presents the proofs for Section 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 D presents the proofs for Section 3, with Appendix D.1 for the curvature scale (Theorem 3.1) and Appendix D.2 for the curvature scale (Theorem 3.2). Finally, Appendix E gives the experimental details for Section 4.
Contents
1 Introduction ..... 1
1.1 Main Contributions ..... 2
2 From gradient distortion to curvature-scaled SAM ..... 3
2.1 Relative gradient distortion and the failures of SAM and USAM ..... 4
2.2 Admissible scales and the CS-SAM update ..... 5
3 Convergence rates ..... 7
3.1 curvature scale: ..... 8
3.2 curvature scale: ..... 9
4 Numerical experiments ..... 10
4.1 Verification of Section 2 ..... 10
4.2 DNN experiments ..... 10
5 Conclusion ..... 11
A Further Related Work ..... 16
B Auxiliary lemmas ..... 18
C Proofs for Section 2 ..... 23
D Proofs for Section 3 ..... 26
D.1 Proofs for Section 3.1: the curvature scale ..... 26
D.2 Proofs for Section 3.2: the curvature scale ..... 27
E Experimental details ..... 29
E.1 Verification experiments of Section 4.1 ..... 29
E.2 Deep-network experiments of Section 4.2 ..... 30
A Further Related Work
In this section, we complement the discussion of related work in Section 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 [Foret et al., 2021]. Subsequent work has shown that its behavior cannot be understood solely as ordinary descent on a smooth objective. Andriushchenko and Flammarion [2022] studied the implicit bias of SAM and the role of stochastic sharpness, while Dai et al. [2023] identified stabilization and continued motion along manifolds of minima as important effects of the gradient normalization. Bartlett et al. [2023] 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 [2023] established unavoidable stationarity neighborhoods for practical fixed-radius SAM in several settings, and Park et al. [2026] 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 [Oikonomou and Loizou, 2025] 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 [Kwon et al., 2021] rescales the parameter-space neighborhood to obtain scale invariance, whereas Fisher SAM [Kim et al., 2022] 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 [Cheng et al., 2025] 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 [Deng and Pang, 2026] or redistribute a fixed global radius across parameter blocks using moving averages of blockwise gradient energy [Huang et al., 2026]. Polyak-type SAM schedulers instead adapt the outer step from function values under classical smoothness [Oikonomou and Loizou, 2026]. 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. [2024] 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 [2026] analyzed the deterministic family
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 gradient-proportional near stationary points, yielding . 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 -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 [Chen et al., 2023, Crawshaw et al., 2022, Gorbunov et al., 2025, Koloskova et al., 2023, Li et al., 2023, Vankov et al., 2025, 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 [Choudhury and Loizou, 2025, Greenberg and Loizou, 2026, Vankov et al., 2024, Yoon et al., 2026]. The loss-dependent condition (4) has likewise been used to explain learning-rate warm-up [Alimisis et al., 2026] and to analyze line search, steepest descent, and adaptive methods [Vaswani and Babanezhad Harikandeh, 2025, 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 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 (Section 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 [Semenov et al., 2026]. 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 [Sun and Tran-Dinh, 2019]; 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 [Andriushchenko et al., 2023, Kwon et al., 2021]. Fisher SAM and further illustrate that information-geometric or layerwise perturbation scaling can be important in modern networks [Haas et al., 2024, Kim et al., 2022]. 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 [Singh et al., 2025]. 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.
B Auxiliary lemmas
In this section, we collect the lemmas used in Appendices C and D. All of them are stated for a general -admissible scale (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 of (4) and Lemma B.9 is an elementary fact about sequences.
Conventions for the proofs. The constants and are defined in (14). If the method stops at some , then : the best gradient norm is then zero, and under convexity or the PL condition is a global minimizer, so every bound below holds trivially from that index on. We therefore assume in all proofs that for every . Note that implies , hence and . Finally, recall that , so is increasing on , and that
We begin with the differential form of Grönwall's inequality [Gronwall, 1919], stated for absolutely continuous functions because the gradient scale is only Lipschitz along a segment. We include the short proof for completeness.
Lemma B.1 (Grönwall's inequality; see Gronwall, 1919). Let and let be absolutely continuous with for almost every . Then for every .
Proof. The function is absolutely continuous on , with for almost every . Hence , that is .
Lemma B.2. Let be -admissible for . Then, for all ,
(23)
where the quotient is interpreted as 1 when .
Proof. By the fundamental theorem of calculus and the first two admissibility conditions,
For the second inequality, write
and apply the first inequality with , which gives
Integrating,
□
Lemma B.3. Let be -admissible for . Then, for every ,
Proof. Fix and consider the point . The third admissibility condition gives , so by Lemma B.2, the monotonicity of , and (22),
Thus we get for every . The coefficient is maximized at , where it equals .
Lemma B.4. Let be -admissible for , let , and let be an iterate of CS-SAM. Then
Proof. For we have and all claims are trivial, so let . The third admissibility condition gives . The second condition, applied from to and from to , gives and . Lemma B.2 with gives
since is increasing and . The claims in (26) follow from the triangle and Cauchy–Schwarz inequalities:
Lemma B.5. Let be -admissible for , let and satisfy , and let be an iterate of CS-SAM. Then
In particular, is nonincreasing in .
Proof. By the third admissibility condition at , the displacement satisfies
Lemma B.2 at and the monotonicity of give
By Lemma B.4, , , and . Hence
Since and , the second inequality in (27) follows.
Lemma B.6. Let be convex with a minimizer , let be -admissible for , let and , and let be an iterate of CS-SAM. Then
In particular, if , then for all .
Proof. Expanding the square,
Convexity at gives , and convexity at gives . Since ,
where we used the Cauchy–Schwarz inequality with Lemma B.4, and then Lemma B.3 in the form . Moreover, by Lemmas B.3 and B.4,
Substituting both bounds into the expansion,
and the bracket equals . The last claim follows since .
The next two lemmas concern the loss scale of (4) only.
Lemma B.7. Under (4), for every ,
Proof. If there is nothing to prove. Suppose first . If , then , so is affine and, being bounded below, constant, whence . If , then is -smooth and the descent lemma at the point gives , which is the first claim; the second is trivial.
Now let . We compare the loss along the negative gradient direction with the solution of a scalar differential equation, using to bound . Define, for , the function
Then , , , and, by (4),
Let solve with and , that is
The difference vanishes together with its derivative at and satisfies , so by the variation-of-constants formula
Hence for all . If , then as , a contradiction; thus , and then . This infimum is at least , so
which is the first claim. For the second, multiply the first claim by :
Lemma B.8. Under (4), if for some , then and is constant.
Proof. forces and . If , then , so is affine and bounded below, hence constant, and . Let and fix . The function is nonnegative and vanishes at , and by Lemma B.7 its derivative satisfies
Lemma B.1 with gives on , so , that is . As was arbitrary, is constant.
We close this section with the elementary sequence lemma that turns a quadratic decrease of the gap into a 1/T rate.
Lemma B.9. Let be a sequence such that is nonincreasing in and
where . Then for every .
Proof. If there is nothing to prove. Otherwise for all , and for ,
Summing over gives .
C Proofs for Section 2
In this section, we present the proofs of the results of Section 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 B. For completeness, we restate each result before its proof.
Verification of (6) and (7). The displacement is for SAM and for USAM, so and respectively. Under (2), , and dividing by gives (6). Under (3) with , the scale is -admissible by Proposition 2.4(ii), which is proved below, so the first inequality in Lemma B.2 gives
Inserting the two values of and dividing by gives the two bounds in (7).
Proposition 2.1 (restated).
(i) Let , which satisfies (2) with . Run SAM with and . For every ,
Let . Then if , if , and if . Consequently is a two-cycle, and no trajectory converges to the minimizer (unless it lands on it exactly).
(ii) Let , which satisfies (3) with . Run USAM with and . For every ,
Consequently, if , then has the opposite sign of and for every , and .
Proof of Proposition 2.1. (i) Here , so for the perturbed point of SAM is , and since ,
Write for the factor in brackets, so that . Since we have , and since ,
Hence if , if , and if , which are the three claims. In particular , so is a two-cycle. Finally, suppose for all and . Then for all large , so is eventually strictly increasing, which contradicts .
(ii) Here and . For the function attains its maximum 4 at , so and (3) holds with . The perturbed point of USAM is , so that and, for ,
If , then , so the factor in brackets is less than : has the opposite sign of and . In particular again, so by induction the sign alternates and increases strictly for every . Moreover, with , so .
Theorem 2.2 (restated). Let , , and consider the perturbation given by a nonnegative collinear rule . Suppose that for every one-dimensional objective satisfying (3) and every point with nonzero gradient, . Then, for every ,
Proof of Theorem 2.2. Fix . Consider first . It is bounded below with , so it satisfies (3). At the point we have , the perturbation is , and
The hypothesis gives .
Next consider . It is positive, hence bounded below, with and , so it satisfies (3). At the point we have , the perturbation is , and since ,
The hypothesis gives , that is . Together with the first bound this is (10).
Proposition 2.4 (restated).
(i) Under (2), the constant scale is admissible with .
(ii) Under (3), the scale is admissible with .
(iii) Under (4), either and is constant, or everywhere and the scale is admissible with .
(iv) Under (3), for every ,
In particular, (3) implies (4) with the constants and .
Proof of Proposition 2.4. (i) With and , the three conditions in (11) read , , and .
(ii) The first condition is (3), and the third holds with because . For the second, fix . Since is continuously differentiable, the function is Lipschitz on , hence absolutely continuous, and at every point of differentiability
Lemma B.1 with gives .
(iii) If vanishes somewhere, Lemma B.8 gives and constant. Otherwise everywhere. The first condition is (4), and the third, with , is Lemma B.7. For the second, fix ; by Lemma B.7,
and Lemma B.1 with gives .
(iv) By (ii), Lemma B.3 applies to and gives , that is
Since with implies ,
Therefore, using with and ,
which is (12). Combined with (3), this bounds by the same right-hand side, which is (4) with the stated constants.
Theorem 2.5 (restated). Let be -admissible, let , , and run CS-SAM. Then every iteration with satisfies
In particular, .
Proof of Theorem 2.5. The two claims are the inequalities in (25) of Lemma B.4, which holds for every -admissible scale and every ; since , dividing the second inequality by gives the distortion bound.
D Proofs for Section 3
In this section, we present the proofs of Theorem 3.1 in Appendix D.1 and of Theorem 3.2 in Appendix D.2; for completeness, each theorem is restated before its proofs.
D.1 Proofs for Section 3.1: the curvature scale
Throughout this subsection satisfies (3) and , which is admissible with by Proposition 2.4(ii), so Lemmas B.2 to B.6 apply with and . We use repeatedly that the map is increasing on , since its derivative is . In this setting Lemma B.5 reads
Theorem 3.1 (restated). Let satisfy (3), let and satisfy , and let be generated by CS-SAM with . Then, for every , the following hold:
(i) (Nonconvex rate)
(ii) (Convex rate) If in addition is convex with a minimizer and , then
(iii) (PL rate) If in addition satisfies the -PL condition (15), then
Proof of Theorem 3.1. (i) Summing (30) over gives
Since the map is increasing, each summand is bounded below by the value of this map at the smallest of the gradient norms, hence
Since with implies , we get
and squaring gives (16).
(ii) Since , Lemma B.6 gives for all . Convexity and the Cauchy–Schwarz inequality give
Since the map is increasing and ,
Inserting this into (30) gives
Since is nonincreasing by Lemma B.5, Lemma B.9 applies and gives (17).
(iii) If all iterates are minimizers and there is nothing to prove, so let . The PL condition (15) gives , so by the monotonicity of , (30), and ,
Applying this with and using and shows that the factor in parentheses is nonnegative, and it is less than one since . Induction on then gives (18).
□
D.2 Proofs for Section 3.2: the curvature scale
Throughout this subsection satisfies (4), is nonconstant, and , which is positive and admissible with by Proposition 2.4(iii), so Lemmas B.2 to B.6 apply with and . Since is nonincreasing by Lemma B.5, we have for all , and Lemma B.5 gives
(31)
Note that the second inequality in (31) has a constant coefficient in front of , which is why the contribution enters the rates of Theorem 3.2 at the leading order, in contrast to Theorem 3.1.
Theorem 3.2 (restated). Let satisfy (4) and be nonconstant, let and satisfy , and let be generated by CS-SAM with . Then, for every , the following hold:
(i) (Nonconvex rate)
(ii) (Convex rate) If in addition is convex with a minimizer and , then
(iii) (PL rate) If in addition satisfies the -PL condition (15), then
Proof of Theorem 3.2. (i) Summing the second inequality in (31) over gives
and the minimum over is at most the average, which gives (19).
(ii) Since , Lemma B.6 gives , and convexity gives as in the proof of Theorem 3.1(ii). Inserting this into the second inequality in (31),
and Lemma B.9 gives (20).
(iii) Let , the other case being trivial. The PL condition (15) and the second inequality in (31) give
As in the proof of Theorem 3.1(iii), the case shows that the factor in parentheses lies in , and induction gives (21).
E Experimental details
In this section, we give the details needed to reproduce the experiments of Section 4. Appendix E.1 specifies the one-dimensional verification experiments of Section 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 E.2 gives, for the deep-network experiments of Section 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).
The pseudocode for CS-SAM is given in Algorithm 1.
Algorithm 1 Curvature-Scaled SAM (CS-SAM).
Require: starting point ; perturbation multiplier ; step multiplier ; admissible curvature scale (Definition 2.3)
1: for do 2: if then 3: return 4: end if 5: 6: 7: end for
E.1 Verification experiments of Section 4.1
The experiments of Section 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 and the norm equal to the absolute value. Both objectives attain at , and the two scales are
For the quadratic we have and take , so that and a single CS-SAM curve is shown. For the quartic we have and take and , that is, and .
Parameter regime. The common choice for CS-SAM lies in the regime of Theorems 3.1 and 3.2. With the constants of (14), and , so that ; moreover and , so that . Since both objectives are convex with the minimizer , the convergence of CS-SAM in Figures 1a and 1b is the one guaranteed by Theorem 3.1(ii) with and by Theorem 3.2(ii) with , and the bound in Figures 1c and 1d is that of Theorem 2.5, which holds for every .
Two-cycle and divergence (Figures 1a and 1b). A run stops when , when an update no longer changes the double-precision iterate or when an iterate or a perturbed point has absolute value at least . On the quadratic, SAM uses and , and CS-SAM uses , both from with at most 500 updates. The SAM recurrence is , whose two-cycle has amplitude , marked by the dashed lines, and the CS-SAM recurrence is . SAM completes the 500 updates, whereas CS-SAM reaches the gradient tolerance after 190 updates. On the quartic, USAM uses and with at most 20 updates, and CS-SAM uses with either scale and at most 10,000 updates, all from . For USAM, the first perturbed point is , so that , then , 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 1b shows against the number 2t 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 is exceeded by .
Distortion (Figures 1c and 1d). These figures evaluate independent points rather than trajectories. At each nonstationary we form the perturbed point of the method and record the gradient norm and the distortion of (5); no outer step enters. The perturbations are those of SAM with on the quadratic, of USAM with on the quartic, and of CS-SAM with on both, with each scale separately on the quartic. Note that the SAM radius is 1 in the two-cycle experiment and 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 of Theorem 2.5.
E.2 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 only; the radius and the multiplier are constant throughout training. With the constant schedule, . With the cosine schedule, the outer step is held fixed within each epoch and annealed from towards 0 over the epochs: during epoch ,
so that during the first epoch and during the last. This is cosine annealing without restarts, warm-up, or a positive floor [Loshchilov and Hutter, 2017], applied once per epoch through the scheduler interface of PyTorch [Paszke et al., 2019].
Minibatch curvature scales. As stated in Section 4.2, the scale of a minibatch is and the scale is with , where and are the minibatch loss and gradient. Note that multiplying , or , by one positive constant leaves CS-SAM unchanged, since the perturbation step and the descent step are ratios. Only three of the four coefficients of each scale are therefore free, and we fix for the scale and for the scale, so that the tuned coefficients are and 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.
(i) Baselines. SAM and USAM, each with a constant and with a cosine annealing schedule, are tuned on seed 3107 over a grid of learning rate and radius (multiplier): for all four baselines, for SAM, and for USAM. For the cosine annealing schedule (32), is the initial learning rate.
(ii) CS-SAM. The scale is tuned on seed 3107 over , , and with , and the scale over , , and with . 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, is the constant learning rate or the initial learning rate of the cosine annealing schedule (32), is the radius of SAM, and is the multiplier of USAM. For CS-SAM, and are the perturbation and step multipliers, is the constant term of the scale with , and is the loss coefficient of the scale with and .
| Method | Parameters | ResNet-20 / CIFAR-10 | ResNet-32 / CIFAR-10 | ResNet-20 / CIFAR-100 | ResNet-32 / CIFAR-100 |
|---|---|---|---|---|---|
| SAM, constant lr | |||||
| SAM, cosine | |||||
| USAM, constant lr | |||||
| USAM, cosine | |||||
| CS-SAM with | |||||
| CS-SAM with |