betaFeedback

WorksComputer Science

One Size Does Not Fit All: Curvature-Aware Adaptive Perturbation for SAM

Abstract

Poor generalisation in deep neural networks is frequently associated with convergence to sharp minima. Sharpness-Aware Minimisation (SAM) improves generalisation of deep neural networks by minimising a combination of the training loss and the local sharpness of the loss landscape, biasing convergence towards flat minima. However, SAM relies on a fixed perturbation radius ρρ that ignores local curvature, leading to inefficient behaviour: the perturbation may be too small to escape poor basins defined by sharp local minima, or too large to allow convergence to solutions with good loss-sharpness tradeoff. We reinterpret ρρ as the intensity of the perturbation signal and propose Curvature-Aware Adaptive Perturbation for SAM (CAP-SAM), a geometry-aware method that modulates the perturbation radius based on a sharpness ratio, enabling a more effective search for robust minima on the loss landscape. We prove that CAP-SAM preserves the same convergence rate as standard SAM in non-convex stochastic settings. Extensive experiments indicate that our approach consistently outperforms SAM and its most prominent variants across diverse network architectures on CIFAR-10, CIFAR-100, and ImageNet.

Introduction

Despite the remarkable success of deep neural networks in a wide range of tasks He et al. [12]; Samuel [27]; Krizhevsky et al. [20]; Vaswani et al. [29], their ability to generalise to unseen data remains a persistent challenge in modern deep learning Zhang et al. [33]; Hendrycks et al. [13]. Recent work suggests that the geometry of the loss landscape plays a central role in model generalisation Hochreiter and Schmidhuber [14]; Jiang et al. [16]; Neyshabur et al. [25]. Flat minima have long been associated with better generalisation Dinh et al. [8]; Andriushchenko et al. [1]; Hochreiter and Schmidhuber [15], and it has been observed that sharp minima, regions of high curvature where small perturbations cause large increases in loss, generalise poorly to unseen data Chaudhari et al. [4].

This led to Sharpness-Aware Minimization (SAM) Foret et al. [10] which minimises the maximum loss within a neighbourhood of the current parameters, enabling it to identify flat minima associated with improved generalisation performance. When the model reaches a sharp region, the perturbation step helps it escape the sharp minimum and move toward flatter areas of the loss landscape Keskar et al. [17].

The perturbation radius ρ\rho is among SAM’s most critical hyperparameters: its value strongly affects the solution quality, and it must be carefully tuned for each dataset and architecture. A key limitation of current formulations is that ρ\rho is fixed throughout training, so a single value must serve regions of different curvature. It may be insufficient to escape very sharp regions, leaving the optimizer trapped in poor minima, or perturb too aggressively in flat regions, pushing the optimizer away from a good solution. This motivates a new treatment of ρ\rho; rather than a static hyperparameter, we approach it as a dynamic quantity that should adapt to the local geometry of the loss landscape.

The contributions of this paper can be summarized as follows:

  • We provide a new interpretation of the perturbation radius ρ\rho in SAM, revealing its limitations, and proposing CAP-SAM, which adapts its radius to local sharpness.

  • We prove that CAP-SAM converges at the same rate as SAM, i.e., O(log⁡T/T)O\left(\log T/\sqrt{T}\right). We further show that SAM’s perturbation becomes geometry-blind near stationary points and that our approach mitigates this.

  • We validate CAP-SAM on several baselines and datasets (CIFAR-10/100 and ImageNet), demonstrating improvements in accuracy and generalisation over SAM and its variants.

Methodology

We introduce a dynamically adaptive perturbation radius that addresses the fundamental limitations of the standard SAM formulation, based on a novel reinterpretation of the perturbation radius ρ\rho as the magnitude of the perturbation signal applied to the parameter vector. Vanilla SAM Foret et al. [10] employs a fixed perturbation ρ\rho which remains constant throughout the optimization procedure. In contrast, our formulation modulates this intensity at each step in response to the local sharpness changes observed during training. The method is seamlessly incorporated into any SAM variant, augmenting its capabilities at negligible additional computational cost.

Sharpness-Aware Minimization

SAM is an optimization approach focusing on robust learning to enhance the generalisation ability of deep neural networks by solving the min-max problem

min⁡wfSAM(w)wherefSAM(w)≜max⁡∥ϵ∥≤ρf(w+ϵ);\min_{w} f^{\mathrm{SAM}}(w) \quad\text{where} \quad f^{\mathrm{SAM}}(w) \triangleq\max_{\lVert\epsilon\rVert\le\rho} f(w+\epsilon);

where ϵ\epsilon denotes the perturbation applied to the weights ww, ρ\rho is the fixed perturbation radius that controls the size of the adversarial neighborhood.

The perturbation at iteration tt is computed as

ϵt=arg⁡max⁡∥ϵ∥≤ρf(wt+ϵ)≈arg⁡max⁡∥ϵ∥≤ρf(wt)+ϵ∇f(wt)≈ρgt(wt)∥gt(wt)∥,(1)\epsilon_t = \mathop{\arg\max}_{\lVert\epsilon\rVert\le\rho} f(w_t+\epsilon) \approx\mathop{\arg\max}_{\lVert\epsilon\rVert\le\rho} f(w_t)+\epsilon\nabla f(w_t) \approx\rho\frac{g_t(w_t)}{\lVert g_t(w_t)\rVert}, \tag*{(1)}

SAM minimises the local worst-case loss by perturbing the parameter space, encouraging convergence to flat minima.

Interpretation of SAM. Notice that SAM formulates the perturbation as ϵt=ρgt(wt)∥gt(wt)∥\epsilon_t = \rho\frac{g_t(w_t)}{\lVert g_t(w_t)\rVert} Foret et al. [10] where ρ\rho denotes the radius of the perturbation neighborhood and gt(wt)∥gt(wt)∥\frac{g_t(w_t)}{\lVert g_t(w_t)\rVert} is the direction of steepest ascent. However, we observe that ρ\rho can equivalently be interpreted as a multiplicative scalar controlling the magnitude of the ascent step, i.e., how far the parameters are displaced along the steepest ascent direction. This perspective exposes a formal limitation of using a fixed radius, which constrains the perturbation to a fixed magnitude regardless of the local sharpness of the loss landscape. In very sharp regions, a fixed ρ\rho may be insufficient to escape the basin, while in flat regions the same ρ\rho may applies an unnecessary perturbation.

Dynamic Radius Formulation

The proposed method modifies the ascent step of SAM by introducing a dynamically adaptive perturbation radius ρt\rho_t, adjusted at each optimization step based on local sharpness changes observed during training. The core of our strategy is centred around the sharpness ratio, defined as

rt=∣f(wt+ϵwt)−f(wt)∣∣f(wt−1+ϵwt−1)−f(wt−1)∣≈∣⟨g(wt),ϵwt⟩∣∣⟨g(wt−1),ϵwt−1⟩∣≈∥g(wt)∥∥g(wt−1)∥.(2)r_t = \frac{\left|f(w_t+\epsilon_{w_t})-f(w_t)\right|}{\left|f(w_{t-1}+\epsilon_{w_{t-1}})-f(w_{t-1})\right|} \approx\frac{\left|\langle g(w_t),\epsilon_{w_t}\rangle\right|}{\left|\langle g(w_{t-1}),\epsilon_{w_{t-1}}\rangle\right|} \approx\frac{\lVert g(w_t)\rVert}{\lVert g(w_{t-1})\rVert}. \tag*{(2)}

capturing the relative change in local sharpness between consecutive optimization steps (Appendix § 9.§ 1 for a theoretical explanation). The perturbation radius is then updated according to

ρt={min⁡(γρt−1,ρmax⁡),rt≥1max⁡(ρt−1γ,ρmin⁡),otherwise(3)\rho_t = \begin{cases} \min(\gamma\rho_{t-1},\rho_{\max}), & r_t \ge1 \\ \max\left(\frac{\rho_{t-1}}{\gamma},\rho_{\min}\right), & \text{otherwise} \end{cases} \tag*{(3)}

When rt≥1r_t \ge1 the optimization has moved into a sharper region of the loss surface and ρt\rho_t grows geometrically by a factor of γ\gamma, until it is large enough to expose the optimizer to flatter regions. On the other hand, when rt≤1r_t \le1 the optimizer has entered a flatter region and ρt\rho_t contracts by the same factor, preserving the quality of the minimum found and preventing over perturbation. The bounds ρmin⁡\rho_{\min} and ρmax⁡\rho_{\max} constrains the range of ρt\rho_t to [ρmin⁡,ρmax⁡][\rho_{\min}, \rho_{\max}].

Figure 1 depicts the resulting radius dynamics across different regions of the loss surface. Our method treats ρt\rho_t as a quantity that stretches and shrinks in response to the local geometry of the loss landscape.

Figure 1. Curvature-aware perturbation radius scheduling. The top panel illustrates how our method adjusts the perturbation radius based on the sharpness characteristics of the loss landscape. The bottom panel shows how ρt\rho_t evolves: when in a sharp region, ρt\rho_t expands by a factor of γ\gamma to look further ahead and escape the sharp basin; when in a flat region, ρt\rho_t contracts by the same factor, so the optimizer stops perturbing aggressively and settles into the local minimum.

Theoretical Analysis

Convergence analysis

In this section, we analyze the convergence properties of CAP-SAM in nonconvex settings. Based on standard assumptions in nonconvex stochastic optimization (stated formally in Appendix § 9.§ 2), we can now define Theorem 1.

Theorem 1 Suppose that Assumptions 1, 2, and 3 hold, and that the perturbation radius satisfies the D.2, e.g., ρt=ρmax⁡/t\rho_t = \rho_{\max}/\sqrt{t} (Appendix § 9.§ 2). Let ηt=η0/t\eta_t = \eta_0/\sqrt{t}. For ρmax⁡≤η0G\rho_{\max} \le\eta_0G and η0≤1/L\eta_0 \le1/L, we have:

1T∑t=1TE[∥∇f(wt)∥2]≤C1+C2log⁡TT\frac{1}{T}\sum_{t=1}^{T}\mathbb{E}[\lVert\nabla f(w_t)\rVert^2] \le\frac{C_1+C_2\log T}{\sqrt{T}}

where C1=2η0(f(w0)−E[f(wT)])C_1 = \frac{2}{\eta_0}(f(w_0)-\mathbb{E}[f(w_T)]), C2=2L(σ2η0+ρmax⁡G)C_2 = 2L(\sigma^2\eta_0+\rho_{\max}G).

For non-convex stochastic optimization, Theorem 1 implies that the dynamic radius formulation has the same convergence rate as SAM, i.e., O(log⁡T/T)O(\log T/\sqrt{T}). Detailed proofs are in Appendix § 9.§ 3.

CAP-SAM reduces noise impact around the optimum

Given the stochastic gradient decomposition gt(wt)=∇f(wt)+ξg_t(w_t) = \nabla f(w_t)+\xi, in the near-optimal regime where ∥∇f(wt)∥→0\lVert\nabla f(w_t)\rVert\to0, the gradient becomes dominated by noise, i.e., gt(wt)≈ξg_t(w_t) \approx\xi. The SAM perturbation thus collapses to: ϵt≈ρ ξ/∥ξ∥\epsilon_t \approx\rho\,\xi/\lVert\xi\rVert. For Gaussian noise, ϵt\epsilon_t is uniformly distributed on the sphere Sρ(0)S_\rho(0), no longer reflecting directions of high curvature or sharpness, affecting the ability of SAM to accurately estimate local flatness. The dynamic ρt\rho_t mitigates the effect of directional misalignment. By construction, ρt\rho_t tends to increase in sharp regions where ∥∇f(wt)∥\lVert\nabla f(w_t)\rVert is large, and reduce in flat regions where ∥∇f(wt)∥≈0\lVert\nabla f(w_t)\rVert\approx0, naturally scaling the magnitude of the perturbation to the local geometry, limiting the influence of non-informative, noise-driven perturbations, as illustrated in Figure 2. A formal geometric analysis of the gradient misalignment and its implications are provided in Appendix § 7.

Illustration of SAM perturbation directions in flat and sharp regions of the loss landscape

Figure 2. Illustration of SAM perturbation directions in flat and sharp regions of the loss landscape.

Experimental Results

We evaluate the proposed CAP-SAM through extensive experiments on standard benchmark datasets across diverse model architectures. We compare each method in two configurations: using a fixed perturbation radius ρ\rho and using our proposed dynamic ρ\rho.

Experimental Settings. We adopt CIFAR-10 Krizhevsky et al. [20], CIFAR-100 Krizhevsky et al. [20] and ImageNet-1K Deng et al. [6] as benchmark datasets to evaluate the proposed method. For CIFAR-10 and CIFAR-100, we compare against SAM and three of its variants: ASAM Kwon et al. [21], Fisher SAM Kim et al. [19], and VASSO Li and Giannakis [22], across four neural network architectures: VGG-11 Simonyan and Zisserman [28], ResNet-18 He et al. [12], WRN-28-10 Zagoruyko and Komodakis [32] and PyramidNet-110 Han et al. [11]. For ImageNet-1K Deng et al. [6], we train ResNet-50 from scratch and evaluate on the ImageNet validation set as well as four additional out-of-distribution test sets: ImageNet-Real/V2/R/Sketch Beyer et al. [2]; Recht et al. [26]; Hendrycks et al. [13]; Wang et al. [30]. We evaluate the proposed dynamic formulation applied to SAM, ASAM Kwon et al. [21], and GSAM Zhuang et al. [35]. A comprehensive description of the experimental setup, including hyperparameters and a detailed description of the statistical tests, is provided in the Appendix E.

Results. Table 1 and Table 2 report the results of our method across CIFAR-10 and CIFAR-100, respectively. For CIFAR-10 our approach improves over the fixed radius baselines in 15 of 16 combinations. Gains are consistently more prominent for CIFAR-100 (Table 2), where even for VASSO, the strongest fixed-radius baseline on PyramidNet-110, we outperform the baselines. The mean gains observed for the dynamic ρ\rho over the constant radius are statistically significant at the 95% level (CIFAR10: p=0.0002p = 0.0002, CI95=0.23±0.11CI_{95} = 0.23 \pm0.11; CIFAR100: p=0.0013p = 0.0013, CI95=1.14±0.64CI_{95} = 1.14 \pm0.64).

ModelSAMASAMFisher SAMVaSSO
Const.Dynam.Const.Dynam.Const.Dynam.Const.Dynam.
VGG-11-BN93.82±0.0593.82\pm0.0594.14±0.0994.14\pm0.0993.47±0.0493.47\pm0.0494.13±0.2794.13\pm0.2793.60±0.0993.60\pm0.0994.14±0.1594.14\pm0.1593.93±0.1393.93\pm0.1394.17±0.1494.17\pm0.14
ResNet-1896.58±0.1096.58\pm0.1096.66±0.0396.66\pm0.0396.33±0.0996.33\pm0.0996.91±0.0896.91\pm0.0896.62±0.0796.62\pm0.0796.79±0.0696.79\pm0.0696.60±0.0896.60\pm0.0896.74±0.2396.74\pm0.23
WRN-28-1097.32±0.1197.32\pm0.1197.47±0.0697.47\pm0.0697.15±0.0597.15\pm0.0597.56±0.0797.56\pm0.0797.46±0.0697.46\pm0.0697.48±0.1097.48\pm0.1097.46±0.0997.46\pm0.0997.16±0.0897.16\pm0.08
PyramidNet-11097.58±0.0297.58\pm0.0297.70±0.0597.70\pm0.0597.56±0.1197.56\pm0.1197.76±0.0397.76\pm0.0397.59±0.0797.59\pm0.0797.77±0.0697.77\pm0.0697.64±0.0997.64\pm0.0997.76±0.0597.76\pm0.05

Table 1. Top-1 test accuracy (%) on CIFAR-10 with Cutout augmentation.

ModelSAM Const.SAM Dynam.ASAM Const.ASAM Dynam.Fisher SAM Const.Fisher SAM Dynam.VaSSO Const.VaSSO Dynam.
VGG-11-BN73.59±0.1073.59\pm0.1074.15±0.1474.15\pm0.1468.53±0.1568.53\pm0.1573.46±0.0973.46\pm0.0973.82±0.3173.82\pm0.3174.38±0.1374.38\pm0.1374.02±0.0774.02\pm0.0774.23±0.1974.23\pm0.19
ResNet-1880.52±0.3780.52\pm0.3781.10±0.0881.10\pm0.0878.91±0.2778.91\pm0.2781.03±0.1281.03\pm0.1280.82±0.1480.82\pm0.1481.12±0.1481.12\pm0.1480.70±0.2180.70\pm0.2181.29±0.2481.29\pm0.24
WRN-28-1084.64±0.1084.64\pm0.1085.10±0.1685.10\pm0.1683.88±0.2783.88\pm0.2785.03±0.2185.03\pm0.2184.47±0.0684.47\pm0.0684.94±0.1684.94\pm0.1684.77±0.0784.77\pm0.0784.87±0.2884.87\pm0.28
PyramidNet-11085.60±0.1185.60\pm0.1186.49±0.1186.49\pm0.1183.72±0.0983.72\pm0.0986.90±0.1886.90\pm0.1885.55±0.1485.55\pm0.1486.64±0.2386.64\pm0.2385.85±0.0985.85\pm0.0986.89±0.3586.89\pm0.35

Table 2. Top-1 test accuracy (%) on CIFAR-100 with Cutout augmentation.

Table 3 reports results on ImageNet-1K and four out-of-distribution test sets. On ImageNet we significantly outperform the fixed-radius baselines (p=0.0012p = 0.0012, CI95=0.31±0.17CI_{95} = 0.31 \pm0.17), with positive gains observed in 14 of 15 combinations, the sole exception being SAM on ImageNet-Sketch. All configurations surpass the vanilla SGD baseline (MHT-corrected p<10−4p < 10^{-4} in all cases), confirming that curvature-aware adaptation is additive to the general benefit of sharpness-aware training rather than a substitute for it.

MethodIMAGENET-1KRealV2RSketch
SGD—76.72±0.0976.72\pm0.0983.02±0.0283.02\pm0.0264.40±0.0764.40\pm0.0719.95±0.1219.95\pm0.1220.56±0.2020.56\pm0.20
SAMConst.77.45±0.0877.45\pm0.0883.84±0.0883.84\pm0.0865.34±0.1665.34\pm0.1620.81±0.3420.81\pm0.3422.12±0.1722.12\pm0.17
Dynam.77.65±0.1177.65\pm0.1184.03±0.0784.03\pm0.0765.53±0.1865.53\pm0.1820.95±0.0720.95\pm0.0721.90±0.1821.90\pm0.18
GSAMConst.77.37±0.0777.37\pm0.0783.83±0.0783.83\pm0.0765.42±0.1865.42\pm0.1820.93±0.2520.93\pm0.2521.26±0.5121.26\pm0.51
Dynam.77.65±0.1577.65\pm0.1583.98±0.0983.98\pm0.0965.54±0.2265.54\pm0.2221.14±0.0921.14\pm0.0922.24±0.1622.24\pm0.16
ASAMConst.77.11±0.0877.11\pm0.0884.07±0.1284.07\pm0.1265.06±0.1865.06\pm0.1821.38±0.1821.38\pm0.1821.67±0.1921.67\pm0.19
Dynam.77.64±0.1777.64\pm0.1784.17±0.1984.17\pm0.1965.86±0.0965.86\pm0.0921.57±0.4121.57\pm0.4122.42±0.6822.42\pm0.68

Table 3. Top-1 accuracy (%) on ImageNet and robustness datasets for ResNet-50.

Generalisation Effect. Figure 3 shows that CAP-SAM achieves a lower training loss than SAM while reaching better test accuracy than both baselines. SGD prioritises data fitting at the cost of overfitting, SAM prioritises robustness but may under-fit, and CAP-SAM balances the two, fitting the data effectively without sacrificing generalisation, converging to flatter minima with stronger generalisation properties, a pattern consistent with Keskar et al. [17]; Neyshabur et al. [25].

Training loss and test accuracy plots for CAP-SAM, SAM, and SGD

Figure 3. PyramidNet-110 on CIFAR-100. (a) Training loss L(D;wt)\mathcal{L}(\mathcal{D}; w_t) and (b) test accuracy (top-1) for CAP-SAM, SAM, and SGD.

Keskar et al. [17]; Neyshabur et al. [25]. CAP-SAM also exhibits faster convergence than SAM and SGD (Figure 3 (b)), suggesting a more efficient progress along the optimization trajectory.

Hyperparameter sensitivity. We analyze the impact of the hyperparameters of CAP-SAM.

As shown in Figure 4, the parameters that meaningfully influence performance are the initial radius ρ0\rho_0 and the growth factor γ\gamma, which benefit from light tuning, consistent with standard practice for SAM and its variants. The lower and upper bounds, ρmin⁡\rho_{\min} and ρmax⁡\rho_{\max}, have negligible impact on performance (Figure 7 (c) and (Figure 7d) in Appendix § 11), as they serve primarily to clip the updated radius within a safe interval.

Effect of hyperparameters with ResNet-18 on CIFAR-10

Figure 4. Effect of hyperparameters with ResNet-18 on CIFAR-10.

Four-panel sensitivity plots showing top-1 accuracy versus the perturbation radius $\rho_0$, growth factor $\gamma$, minimum radius $\rho_{\min}$, and maximum radius $\rho_{\max}$

Figure 7. Effect of hyperparameters on top-1 accuracy of CAP-SAM with ResNet-18 on CIFAR-10.

Conclusion

In this paper, we investigated SAM and provided a new interpretation of the perturbation radius ρ\rho as a signal of the perturbation magnitude. Based on this finding, we proposed CAP-SAM, which modifies the ascent step of SAM by adjusting the perturbation radius based on local sharpness estimates across steps. We theoretically investigated the impact of stochastic gradient noise on SAM’s perturbation direction, showing that it becomes increasingly uninformative about local curvature near convergence, and demonstrated that CAP-SAM mitigates this undesirable effect. We validated CAP-SAM across several baselines as a plug-in for SAM and its variants, achieving consistent improvements in accuracy.

Related Works

Several works have investigated the correlation between the generalization ability of a model and the sharpness of the minimum it converges to Dinh et al. [8]; Keskar et al. [17]; Wang et al. [31].

Following this line of work, subsequent studies have examined the connection between batch size and generalization, showing that the choice of batch size influences the tendency of a model to converge to a sharp or flat minimum Keskar et al. [17]. Different measures have also been proposed to evaluate the geometric characteristics of the loss landscape and their connection to sharpness Jiang et al. [16]; Kim et al. [18]; Zhuang et al. [35]. These works justify the goal of seeking flatter valleys in the loss landscape to enhance generalization. Inspired by this, Sharpness-Aware Minimization (SAM) Foret et al. [10] was proposed as a strategy that targets flatter minima by minimizing the worst-case loss within a local neighborhood. SAM has been shown to achieve generalization improvements across a variety of tasks and benchmarks Caldarola et al. [3]; Kwon et al. [21]; Zheng et al. [34].

A series of SAM variants have since been proposed, addressing SAM’s limitations from different perspectives. From the perspective of the neighborhood’s geometric measure, ASAM Kwon et al. [21] introduce scale invariance to address SAM’s sensitivity to weight re-scaling, while Fisher SAM Kim et al. [19] replace SAM’s Euclidean balls with ellipsoids induced by the Fisher information metric. From the perspective of the optimization stability, GSAM Zhuang et al. [35] jointly minimizes the perturbed loss and a surrogate gap, while the friendly-adversary approach of VaSSO Li and Giannakis [22] stabilizes the adversarial perturbation through variance suppression. To reduce computational cost, a further line of work seeks to alleviate SAM’s characteristic doubling of forward–backward passes. For instance, ESAM Du et al. [9] reduces this overhead through stochastic weight perturbation and sharpness-sensitive data selection, and Sparse SAM Mi et al. [24] perturbs only a sparse subset of parameters via a learned binary mask.

Despite their improvements over the vanilla formulation, these variants all operate within the original min-max framework, refining either the perturbation direction or the regularization term while treating the radius as a fixed hyperparameter shared across all iterations and regions of the landscape. The strategy proposed in this work, CAP-SAM, instead adapts the size of the perturbation radius itself based on local sharpness estimates, bridging the geometric and stability perspectives in a direction largely unexplored by existing SAM variants.

Gradient misalignment

We analyze the behavior of the SAM perturbation near convergence by decomposing the stochastic gradient on a mini-batch BB as:

g(wt)=∇f(wt)+ξ,g(w_t) = \nabla f(w_t) + \xi,

where ξ\xi is a zero-mean Gaussian random variable representing the batch-specific noise. Assuming g(wt)g(w_t) is an unbiased estimator of the full gradient, we have EB[ξ]=0\mathbb{E}_B[\xi] = 0. Moreover, as ∇f(wt)\nabla f(w_t) is deterministic with respect to batch sampling,

EB⟨∇f(wt),ξ⟩=⟨∇f(wt),E[ξ]⟩=0.\mathbb{E}_{B}\langle\nabla f(w_t), \xi\rangle= \langle\nabla f(w_t), \mathbb{E}[\xi] \rangle= 0.

Consequently, the stochastic noise has zero mean and zero expected projection onto the true gradient: on average it carries no systematic descent or curvature information. Figure 5(a) illustrates this expected decomposition, where the stochastic gradient is expressed as the sum of the deterministic gradient and a zero-mean noise component.

Figure 5. Investigation of the SAM perturbation direction near convergence. (a) Away from convergence, ∇f(wt)\nabla f(w_t) dominates and the perturbation ϵSAM\epsilon_{\mathrm{SAM}} remains reasonably aligned with the true gradient direction. (b) Near a stationary point, ∇f(wt)≈0\nabla f(w_t) \approx0 and gt(wt)≈ξg_t(w_t) \approx\xi, the perturbation direction becomes increasingly dominated by stochastic gradient noise making the perturbation uninformative about the local loss curvature [23].

The SAM perturbation at step tt is

ϵt=ρg(wt)∥g(wt)∥=ρ∇f(wt)+ξ∥∇f(wt)+ξ∥.\epsilon_t = \rho\frac{g(w_t)}{\lVert g(w_t)\rVert} = \rho\frac{\nabla f(w_t) + \xi}{\lVert\nabla f(w_t) + \xi\rVert}.

As optimization approaches minimum, where ∥∇f(wt)∥→0\lVert\nabla f(w_t)\rVert\to0, the deterministic gradient is dominated by the noise and the perturbation collapses to

ϵt≈ρξ∥ξ∥,\epsilon_t \approx\rho\frac{\xi}{\lVert\xi\rVert},

The perturbation direction becomes increasingly governed by stochastic gradient noise rather than by the deterministic descent direction, making the perturbation uninformative about the loss curvature .

Geometric characterization of the misalignment

To quantify this behavior, we measure the alignment between ϵt\epsilon_t and the noise direction ϵnoise=ρξ∥ξ∥\epsilon_{\mathrm{noise}} = \rho\frac{\xi}{\lVert\xi\rVert}. The alignment angle θ\theta is given as the inverse cosine of

cos⁡θ=⟨ϵt,ϵnoise⟩=⟨g(wt)∥g(wt)∥,ξ∥ξ∥⟩,\cos\theta= \langle\epsilon_t, \epsilon_{\mathrm{noise}}\rangle= \left\langle\frac{g(w_t)}{\lVert g(w_t)\rVert}, \frac{\xi}{\lVert\xi\rVert} \right\rangle,

where cos⁡θ=1\cos\theta= 1 indicates θ=0\theta= 0, i.e., perfect alignment. Near a minimum, ∥∇f(wt)∥≈0\lVert\nabla f(w_t)\rVert\approx0, so the gradient component vanishes and the expression simplifies to

cos⁡θ≈⟨ξ∥ξ∥,ξ∥ξ∥⟩≈∥ξ∥2∥ξ∥2=1⟹θ=0.\cos\theta\approx\left\langle\frac{\xi}{\lVert\xi\rVert}, \frac{\xi}{\lVert\xi\rVert} \right\rangle\approx\frac{\lVert\xi\rVert^2}{\lVert\xi\rVert^2} = 1 \qquad\Longrightarrow\qquad\theta= 0.

Therefore, the stochastic gradient becomes increasingly aligned with the noise component, causing the SAM perturbation to converge to the normalized noise direction. Consequently, the ascent step is driven primarily by stochastic fluctuations rather than by the underlying loss geometry, reducing its effectiveness as an estimator of local sharpness, as illustrated in Figure 5 (b).

Algorithm

Algorithm 1 CAP-SAM

  1. Input: Training set D={(xi,yi)}i=1nD = \{(x_i, y_i)\}_{i=1}^{n}, loss LL, learning rate λ\lambda, growth factor γ\gamma, bounds ρmin⁡≤ρmax⁡\rho_{\min} \le\rho_{\max}, initial radius ρ0\rho_0.

  2. Initialise weights w←w0w \leftarrow w_0

  3. Initialise perturbation radius ρ←ρ0\rho\leftarrow\rho_0

  4. while not converged do

  5. &nbsp;&nbsp;&nbsp;&nbsp;Sample a mini-batch BB data form DD

  6. &nbsp;&nbsp;&nbsp;&nbsp;Compute stochastic gradient gtg_t

  7. &nbsp;&nbsp;&nbsp;&nbsp;Compute rt=∥g(wt)∥∥g(wt−1)∥r_t = \frac{\lVert g(w_t)\rVert}{\lVert g(w_{t-1})\rVert}

  8. &nbsp;&nbsp;&nbsp;&nbsp;Compute ρt={min⁡(γρt−1,ρmax⁡),if rt≥1,max⁡(ρt−1γ,ρmin⁡),otherwise\rho_t = \begin{cases} \min(\gamma\rho_{t-1}, \rho_{\max}), & \text{if } r_t \ge1,\\ \max\left(\frac{\rho_{t-1}}{\gamma}, \rho_{\min}\right), & \text{otherwise} \end{cases}

  9. &nbsp;&nbsp;&nbsp;&nbsp;Compute ϵt=ρtg(xk)/∥g(xk)∥2\epsilon_t = \rho_t g(x_k) / \lVert g(x_k)\rVert_2

  10. &nbsp;&nbsp;&nbsp;&nbsp;Update weights wt+1←wt−λg(wt+ϵt)w_{t+1} \leftarrow w_t - \lambda g(w_t + \epsilon_t)

  11. end while

  12. Return ww, g(wt−1)g(w_{t-1})

Theoretical Analysis

rtr_t as a measure of local sharpness

We provide a formal justification for rtr_t as a principled measure of how local sharpness evolves along the optimization trajectory. Following Zhuang et al. [35], we define the surrogate gap at a point ww as:

h(w)=max⁡∥δ∥≤ρf(w+δ)−f(w)≈fSAM(w)−f(w).h(w) = \max_{\lVert\delta\rVert\leq\rho} f(w+\delta) - f(w) \approx f^{\mathrm{SAM}}(w) - f(w).

The surrogate gap measures the difference between the maximum loss within the neighborhood and the loss at the center point.

Theorem 2. Let w∗w^* be a local minimum of ff, and let σmax⁡(t)\sigma_{\max}^{(t)} denote the dominant eigenvalue of the Hessian as a measure of sharpness. Assuming the iterates wt−1w_{t-1} and wtw_t lie near w∗w^*, the ratio rtr_t defined in Eq. (3) approximates the change in sharpness between consecutive steps: σmax⁡(t)/σmax⁡(t−1)≈rt/α2\sigma_{\max}^{(t)} / \sigma_{\max}^{(t-1)} \approx r_t / \alpha^2 where α=ρt/ρt−1\alpha= \rho_t / \rho_{t-1} is the ratio of perturbation radii between iterations.

Proof. We follow the argument of Zhuang et al. [35], adapting it to the ratio of surrogate gaps at consecutive iterates. Since ρt\rho_t is small, consider the second-order Taylor expansion of ff around wtw_t:

fSAM(wt)=f(wt+δ)=f(wt)+∇f(wt)Tδ+12δTHtδ+O(∥ρ∥3),f^{SAM}(w_t) = f(w_t + \delta) = f(w_t) + \nabla f(w_t)^{\mathsf{T}}\delta+ \frac{1}{2}\delta^{\mathsf{T}}H_t\delta+ O(\lVert\rho\rVert^3),

where Ht=∇2f(wt)H_t = \nabla^2 f(w_t) is the Hessian at wtw_t, assumed to be positive semidefinite near local minima. Since wtw_t lies near the local minimum, the gradient can be assumed to be negligible, ∇f(wt)≈0\nabla f(w_t) \approx0, so the first-order term vanishes. Normalizing δ\delta such that ∥δ∥=ρt\lVert\delta\rVert= \rho_t, we obtain

fSAM(wt)−f(wt)=max⁡∥δ∥≤ρtf(wt+δ)−f(wt)=12σmax⁡(t)ρt2+O(ρt3).f^{SAM}(w_t) - f(w_t) = \max_{\lVert\delta\rVert\leq\rho_t} f(w_t+\delta) - f(w_t) = \frac{1}{2}\sigma_{\max}^{(t)}\rho_t^2 + O(\rho_t^3).

where λmax⁡(t)\lambda_{\max}^{(t)} is the largest eigenvalue of the Hessian HtH_t. Applying the same expansion at step t−1t-1 and substituting into rt=h(wt)/h(wt−1)r_t = h(w_t)/h(w_{t-1}):

rt=fSAM(wt)−f(wt)fSAM(wt−1)−f(wt−1)=12λmax⁡(t)ρt2+O(ρt3)12λmax⁡(t−1)ρt−12+O(ρt−13).r_t = \frac{f^{SAM}(w_t)-f(w_t)}{f^{SAM}(w_{t-1})-f(w_{t-1})} = \frac{\frac{1}{2}\lambda_{\max}^{(t)}\rho_t^2 + O(\rho_t^3)}{\frac{1}{2}\lambda_{\max}^{(t-1)}\rho_{t-1}^2 + O(\rho_{t-1}^3)}.

Defining α=ρtρt−1\alpha= \frac{\rho_t}{\rho_{t-1}} and rearranging gives λmax⁡(t)λmax⁡(t−1)≈rt/α2\frac{\lambda_{\max}^{(t)}}{\lambda_{\max}^{(t-1)}} \approx r_t / \alpha^2.

Remark 3 (First-order interpretation and computational cost) The Theorem above establishes rtr_t as a sharpness measure via a second-order argument. Under the adaptive update rule, however, rtr_t also admits a simpler interpretation that makes it cheap to compute in practice. Using a first-order Taylor expansion

∣f(wt+ϵt)−f(wt)∣≈∣⟨g(wt),ϵt⟩∣=ρt∥g(wt)∥,\lvert f(w_t+\epsilon_t)-f(w_t)\rvert\approx\lvert\langle g(w_t),\epsilon_t\rangle\rvert= \rho_t\lVert g(w_t)\rVert,

where g(wt)=∇f(wt)g(w_t) = \nabla f(w_t) and the SAM perturbation is ϵt=ρtg(wt)/∥g(wt)∥\epsilon_t = \rho_t g(w_t)/\lVert g(w_t)\rVert. Therefore:

rt≈ρt∥g(wt)∥ρt−1∥g(wt−1)∥=ρtρt−1⋅∥g(wt)∥∥g(wt−1)∥.r_t \approx\frac{\rho_t\lVert g(w_t)\rVert}{\rho_{t-1}\lVert g(w_{t-1})\rVert} = \frac{\rho_t}{\rho_{t-1}}\cdot\frac{\lVert g(w_t)\rVert}{\lVert g(w_{t-1})\rVert}.

Since the adaptive update rule adjusts ρ\rho by a factor of γ=1.001\gamma= 1.001, consecutive radii satisfy ρt/ρt−1∈{γ,γ−1}=1+O(10−3)\rho_t/\rho_{t-1} \in\{\gamma,\gamma^{-1}\} = 1 + O(10^{-3}), and thus:

rt≈∥g(wt)∥∥g(wt−1)∥.r_t \approx\frac{\lVert g(w_t)\rVert}{\lVert g(w_{t-1})\rVert}.

Hence rtr_t is well approximated by the ratio of consecutive gradient norms Zou et al. [36], a quantity already available during training at no additional computational cost.

Assumptions

Our analysis relies on the following assumptions, which are standard in nonconvex stochastic optimization.

Assumption 1 (Bounded Gradient) ∃G≥0\exists G \ge0 such that ∥∇f(w)∥≤G\lVert\nabla f(w)\rVert\le G.

Assumption 2 (Bounded Variance) ∃σ≥0\exists\sigma\ge0 such that E[∥g(w)−∇f(w)∥2]≤σ2\mathbb{E}\left[\lVert g(w)-\nabla f(w)\rVert^2\right] \le\sigma^2.

Assumption 3 (L-smoothness) ∃L>0\exists L > 0 such that ∥∇f(w)−∇f(v)∥≤L∥w−v∥\lVert\nabla f(w)-\nabla f(v)\rVert\le L\lVert w-v\rVert, ∀w,v∈Rd\forall w,v \in\mathbb{R}^d.

Decaying-radius assumption. Following existing convergence analyses of SAM and its variants Zhuang et al. [35]; Mi et al. [24], we assume that the perturbation radius vanishes asymptotically, i.e., ρt=ρmax⁡t\rho_t = \frac{\rho_{\max}}{\sqrt{t}}. As in prior work, the assumption is made for analytical tractability and does not reflect how the method is used in practice. In our experiments (§ 4), ρt\rho_t follows Eq. (3) within the fixed interval [ρmin⁡,ρmax⁡][\rho_{\min}, \rho_{\max}] and is not forced to decay.

Proof of Theorem 1

We adapt the standard SAM convergence proof Foret et al. [10] to the CAP-SAM formulation. We can write the algorithm 1:

wt+12=wt+ϵtwt+1=wt−η⋅g(wt+12)(4)\begin{aligned} w_{t+\frac{1}{2}} &= w_t + \epsilon_t \\ w_{t+1} &= w_t - \eta\cdot g\left(w_{t+\frac{1}{2}}\right) \tag*{(4)} \end{aligned}

where for SAM ϵt=ρ⋅g(wt)∥g(wt)∥\epsilon_t = \rho\cdot\frac{g(w_t)}{\lVert g(w_t)\rVert} and for CAP-SAM ϵt=ρt⋅g(wt)∥g(wt)∥\epsilon_t = \rho_t \cdot\frac{g(w_t)}{\lVert g(w_t)\rVert} with ρt\rho_t as defined in Eq. (3).

We first present useful lemmas that will be used to support the proof of the main result.

Lemma 4 For any ρ>0\rho> 0, L>0L > 0, and differentiable function ff, we have:

⟨∇f(wt),∇f(wt+ρ∇f(wt)∥∇f(wt)∥)⟩≥∥∇f(wt)∥2−ρLG.(5)\left\langle\nabla f(w_t), \nabla f\left(w_t+\rho\frac{\nabla f(w_t)}{\lVert\nabla f(w_t)\rVert}\right)\right\rangle\ge\lVert\nabla f(w_t)\rVert^2-\rho LG. \tag*{(5)}

Proof. Adding and subtracting ∥∇f(wt)∥\lVert\nabla f(w_t)\rVert inside the inner product and factoring out ∥∇f(wt)∥/ρ\lVert\nabla f(w_t)\rVert/\rho:

LHS⁡=∥∇f(wt)∥ρ⟨ρ∇f(wt)∥∇f(wt)∥,∇f(wt+ρ∇f(wt)∥∇f(wt)∥)−∇f(wt)⟩+∥∇f(wt)∥2.(6)\operatorname{LHS}=\frac{\lVert\nabla f(w_t)\rVert}{\rho}\left\langle\frac{\rho\nabla f(w_t)}{\lVert\nabla f(w_t)\rVert},\nabla f\left(w_t+\rho\frac{\nabla f(w_t)}{\lVert\nabla f(w_t)\rVert}\right)-\nabla f(w_t)\right\rangle+\lVert\nabla f(w_t)\rVert^2. \tag*{(6)}
LHS⁡≥−L∥∇f(wt)∥ρ∥ρ∥∇f(wt)∥∇f(wt)∥2+∥∇f(wt)∥2\operatorname{LHS}\ge-L\frac{\lVert\nabla f(w_t)\rVert}{\rho}\left\lVert\frac{\rho}{\lVert\nabla f(w_t)\rVert}\nabla f(w_t)\right\rVert^2+\lVert\nabla f(w_t)\rVert^2
≥−L∥∇f(wt)∥ρρ2+∥∇f(wt)∥2\ge-L\frac{\lVert\nabla f(w_t)\rVert}{\rho}\rho^2+\lVert\nabla f(w_t)\rVert^2
=−∥∇f(wt)∥ρL+∥∇f(wt)∥2.= -\lVert\nabla f(w_t)\rVert\rho L+\lVert\nabla f(w_t)\rVert^2.

Applying the bounded gradient Assumption 1

∥∇f(wt)∥2−ρL∥∇f(wt)∥≥∥∇f(wt)∥2−ρLG,(7)\lVert\nabla f(w_t) \rVert^2 - \rho L \lVert\nabla f(w_t) \rVert\ge\lVert\nabla f(w_t) \rVert^2 - \rho L G, \tag*{(7)}

Lemma 5. For ρ>0\rho> 0, L>0L > 0, the iteration 4 satisfies the following inequality:

E⟨∇f(wt),g(wt+12)⟩≥12∥∇f(wt)∥2−L2ρ2−LρG.\mathbb{E}\left\langle\nabla f(w_t), g\left(w_{t+\frac{1}{2}}\right) \right\rangle\ge\frac{1}{2}\lVert\nabla f(w_t) \rVert^2 - L^2\rho^2 - L\rho G.

Proof. We denote the deterministic value of wt+12w_{t+\frac{1}{2}} as defined in 4. Adding and subtracting g(w^t+12)g\left(\widehat{w}_{t+\frac{1}{2}}\right) decomposes the inner product into two terms:

⟨∇f(wt),g(wt+12)⟩=⟨∇f(wt),g(wt+ρg(wt)∥g(wt)∥)−g(w^t+12)⟩⏟Term I: perturbation direction error+⟨g(w^t+12),∇f(wt)⟩⏟Term II: true gradient alignment.\begin{aligned} \left\langle\nabla f(w_t), g\left(w_{t+\frac{1}{2}}\right) \right\rangle ={}&\underbrace{\left\langle\nabla f(w_t), g\left(w_t+\rho\frac{g(w_t)}{\lVert g(w_t)\rVert}\right)-g\left(\widehat{w}_{t+\frac{1}{2}}\right)\right\rangle}_{\text{Term I: perturbation direction error}}\\ &+\underbrace{\left\langle g\left(\widehat{w}_{t+\frac{1}{2}}\right),\nabla f(w_t)\right\rangle}_{\text{Term II: true gradient alignment}}. \end{aligned}

Bounding Term I from below by applying Young’s inequality, followed by LL-smoothness:

−⟨∇f(wt),g(wt+ρg(wt)∥g(wt)∥)−g(w^t+12)⟩≤12∥g(wt+ρg(wt)∥g(wt)∥)−g(w^t+12)∥2+12∥∇f(wt)∥2≤L22∥wt+ρg(wt)∥g(wt)∥−w^t+12∥2+12∥∇f(wt)∥2=L22∥wt+ρg(wt)∥g(wt)∥−(wt+ρ∇f(wt)∥∇f(wt)∥)∥2+12∥∇f(wt)∥2=L2ρ22∥g(wt)∥g(wt)∥−∇f(wt)∥∇f(wt)∥∥2+12∥∇f(wt)∥2≥−L2ρ2−12∥∇f(wt)∥2.\begin{aligned} -\left\langle\nabla f(w_t),g\left(w_t+\rho\frac{g(w_t)}{\lVert g(w_t)\rVert}\right)-g\left(\widehat{w}_{t+\frac{1}{2}}\right)\right\rangle &\le\frac{1}{2}\left\lVert g\left(w_t+\rho\frac{g(w_t)}{\lVert g(w_t)\rVert}\right)-g\left(\widehat{w}_{t+\frac{1}{2}}\right)\right\rVert^2+\frac{1}{2}\lVert\nabla f(w_t)\rVert^2\\ &\le\frac{L^2}{2}\left\lVert w_t+\rho\frac{g(w_t)}{\lVert g(w_t)\rVert}-\widehat{w}_{t+\frac{1}{2}}\right\rVert^2+\frac{1}{2}\lVert\nabla f(w_t)\rVert^2\\ &=\frac{L^2}{2}\left\lVert w_t+\rho\frac{g(w_t)}{\lVert g(w_t)\rVert}-\left(w_t+\rho\frac{\nabla f(w_t)}{\lVert\nabla f(w_t)\rVert}\right)\right\rVert^2+\frac{1}{2}\lVert\nabla f(w_t)\rVert^2\\ &=\frac{L^2\rho^2}{2}\left\lVert\frac{g(w_t)}{\lVert g(w_t)\rVert}-\frac{\nabla f(w_t)}{\lVert\nabla f(w_t)\rVert}\right\rVert^2+\frac{1}{2}\lVert\nabla f(w_t)\rVert^2\\ &\ge-L^2\rho^2-\frac{1}{2}\lVert\nabla f(w_t)\rVert^2. \end{aligned}

For the second term applying Lemma 4 directly, we have

Term II≥∥∇f(wt)∥2−ρLG.\text{Term II} \ge\lVert\nabla f(w_t)\rVert^2-\rho L G.

Combining the two terms:

E⟨∇f(wt),g(wt+12)⟩=Term I+Term II≥(−L2ρ2−12∥∇f(wt)∥2)+(∥∇f(wt)∥2−ρLG)=12∥∇f(wt)∥2−L2ρ2−LρG,\begin{aligned} \mathbb{E}\left\langle\nabla f(w_t),g\left(w_{t+\frac{1}{2}}\right)\right\rangle= \mathrm{Term\ I}+\mathrm{Term\ II} \\ &\geq\left(-L^2\rho^2-\frac{1}{2}\left\|\nabla f(w_t)\right\|^2\right)+\left(\left\|\nabla f(w_t)\right\|^2-\rho LG\right) \\ &=\frac{1}{2}\left\|\nabla f(w_t)\right\|^2-L^2\rho^2-L\rho G, \end{aligned}

Lemma 6. For η≤1L\eta\leq\frac{1}{L}, the iteration 44 satisfies for all t>0t>0:

Ef(wt+1)≤Ef(wt)−η2E∥∇f(wt)∥2+Lη2σ2+ηL2ρ2+(1−Lη)ηLGρ.\mathbb{E}f(w_{t+1})\leq\mathbb{E}f(w_t)-\frac{\eta}{2}\mathbb{E}\left\|\nabla f(w_t)\right\|^2+L\eta^2\sigma^2+\eta L^2\rho^2+(1-L\eta)\eta LG\rho.

Proof. By the LL-smoothness of ff and the update rule 44:

f(wt+1)≤f(wt)−η⟨∇f(wt),g(wt+12)⟩+Lη22∥g(wt+12)∥2.(8)f(w_{t+1})\leq f(w_t)-\eta\left\langle\nabla f(w_t),g\left(w_{t+\frac{1}{2}}\right)\right\rangle+\frac{L\eta^2}{2}\left\|g\left(w_{t+\frac{1}{2}}\right)\right\|^2. \tag*{(8)}

Substituting the identity ∥g(wt+12)∥2=∥∇f(wt)−g(wt+12)∥2−∥∇f(wt)∥2+2⟨∇f(wt),g(wt+12)⟩\left\|g\left(w_{t+\frac{1}{2}}\right)\right\|^2=\left\|\nabla f(w_t)-g\left(w_{t+\frac{1}{2}}\right)\right\|^2-\left\|\nabla f(w_t)\right\|^2+2\left\langle\nabla f(w_t),g\left(w_{t+\frac{1}{2}}\right)\right\rangle into 8 and rearranging:

f(wt+1)≤f(wt)−Lη22∥∇f(wt)∥2+Lη22∥∇f(wt)−g(wt+12)∥2−(1−Lη)η⟨∇f(wt),g(wt+12)⟩f(w_{t+1})\leq f(w_t)-\frac{L\eta^2}{2}\left\|\nabla f(w_t)\right\|^2+\frac{L\eta^2}{2}\left\|\nabla f(w_t)-g\left(w_{t+\frac{1}{2}}\right)\right\|^2-(1-L\eta)\eta\left\langle\nabla f(w_t),g\left(w_{t+\frac{1}{2}}\right)\right\rangle
≤f(wt)−Lη22∥∇f(wt)∥2+Lη2∥∇f(wt)−g(wt)∥2+Lη2∥g(wt)−g(wt+12)∥2−(1−Lη)η⟨∇f(wt),g(wt+12)⟩.\leq f(w_t)-\frac{L\eta^2}{2}\left\|\nabla f(w_t)\right\|^2+L\eta^2\left\|\nabla f(w_t)-g(w_t)\right\|^2+L\eta^2\left\|g(w_t)-g\left(w_{t+\frac{1}{2}}\right)\right\|^2-(1-L\eta)\eta\left\langle\nabla f(w_t),g\left(w_{t+\frac{1}{2}}\right)\right\rangle.

Taking expectation and applying Lemma 5:

Ef(wt+1)≤Ef(wt)−Lη22E∥∇f(wt)∥2+Lη2σ2+η2L3ρ2−(1−Lη)ηE⟨∇f(wt),g(wt+12)⟩\mathbb{E}f(w_{t+1})\leq\mathbb{E}f(w_t)-\frac{L\eta^2}{2}\mathbb{E}\left\|\nabla f(w_t)\right\|^2+L\eta^2\sigma^2+\eta^2L^3\rho^2-(1-L\eta)\eta\mathbb{E}\left\langle\nabla f(w_t),g\left(w_{t+\frac{1}{2}}\right)\right\rangle
≤Ef(wt)−Lη22E∥∇f(wt)∥2+Lη2σ2+η2L3ρ2−(1−Lη)η[12E∥∇f(wt)∥2−L2ρ2−LρG].\leq\mathbb{E}f(w_t)-\frac{L\eta^2}{2}\mathbb{E}\left\|\nabla f(w_t)\right\|^2+L\eta^2\sigma^2+\eta^2L^3\rho^2-(1-L\eta)\eta\left[\frac{1}{2}\mathbb{E}\left\|\nabla f(w_t)\right\|^2-L^2\rho^2-L\rho G\right].

Collecting terms in E∥∇f(wt)∥2\mathbb{E}\left\|\nabla f(w_t)\right\|^2 and ρ2\rho^2 yields:

Ef(wt+1)≤Ef(wt)−η2E∥∇f(wt)∥2+Lη2σ2+ηL2ρ2+(1−Lη)ηLGρ.\mathbb{E}f(w_{t+1})\leq\mathbb{E}f(w_t)-\frac{\eta}{2}\mathbb{E}\left\|\nabla f(w_t)\right\|^2+L\eta^2\sigma^2+\eta L^2\rho^2+(1-L\eta)\eta LG\rho.

which completes the proof.

Proposition 7. Let ηt=η0/t\eta_t=\eta_0/\sqrt{t} and perturbation amplitude ρ\rho decay with the square root of tt, e.g., ρt=ρmax⁡/t\rho_t=\rho_{\max}/\sqrt{t}. For ρmax⁡≤Gη0\rho_{\max}\leq G\eta_0 and η0≤1L\eta_0\leq\frac{1}{L}, we have:

1T∑t=1TE∥∇f(wt)∥2≤C11T+C2log⁡TT,\frac{1}{T}\sum_{t=1}^{T}\mathbb{E}\left\|\nabla f(w_t)\right\|^2\leq C_1\frac{1}{\sqrt{T}}+C_2\frac{\log T}{\sqrt{T}},

where

C1=2η0(f(w0)−Ef(wT)),C2=2(Lσ2η0+LGρmax⁡).C_1=\frac{2}{\eta_0}\left(f(w_0)-\mathbb{E}f(w_T)\right),\qquad C_2=2\left(L\sigma^2\eta_0+LG\rho_{\max}\right).

Proof. Under the decaying-radius assumption D.2, ρt=ρmax⁡/t\rho_t = \rho_{\max}/\sqrt{t}. Since all three lemmas hold for any ρ>0\rho> 0, they apply with ρ\rho replaced by ρt\rho_t at each step. As ρt≤ρmax⁡/t\rho_t \leq\rho_{\max}/\sqrt{t} for all tt, we set ρ0=ρmax⁡\rho_0 = \rho_{\max}, corresponding to the worst case in which ρt\rho_t always attains its upper bound. Replacing ηt=η0/t\eta_t = \eta_0/\sqrt{t} and ρt=ρmax⁡/t\rho_t = \rho_{\max}/\sqrt{t} into Lemma 6:

Ef(wt+1)≤Ef(wt)−ηt2E∥∇f(wt)∥2+Lηt2σ2+ηtL2ρt2+(1−Lηt)ηtLGρt.\mathbb{E}f(w_{t+1}) \leq\mathbb{E}f(w_t) - \frac{\eta_t}{2}\mathbb{E}\lVert\nabla f(w_t)\rVert^2 + L\eta_t^2\sigma^2 + \eta_tL^2\rho_t^2 + (1-L\eta_t)\eta_tLG\rho_t.

Summing the per-step inequality from t=1t = 1 to TT and rearranging, the left-hand side telescopes to Ef(wT)−f(w0)\mathbb{E}f(w_T) - f(w_0):

Ef(wT)−f(w0)≤−∑t=1Tηt2E∥∇f(wt)∥2+(Lσ2η02+LGρmax⁡η0)∑t=1T1t\mathbb{E}f(w_T) - f(w_0) \leq-\sum_{t=1}^{T}\frac{\eta_t}{2}\mathbb{E}\lVert\nabla f(w_t)\rVert^2 + (L\sigma^2\eta_0^2 + LG\rho_{\max}\eta_0)\sum_{t=1}^{T}\frac{1}{t}
+(L2η0ρmax⁡2−L2Gη02ρmax⁡)∑t=1T1t3/2.{} + (L^2\eta_0\rho_{\max}^2 - L^2G\eta_0^2\rho_{\max})\sum_{t=1}^{T}\frac{1}{t^{3/2}}.

Drop the last term using ρmax⁡≤Gη0\rho_{\max} \leq G\eta_0

Ef(wT)−f(w0)≤−∑t=1Tηt2E∥∇f(wt)∥2+(Lσ2η02+LGρmax⁡η0)∑t=1T1t.\mathbb{E}f(w_T) - f(w_0) \leq-\sum_{t=1}^{T}\frac{\eta_t}{2}\mathbb{E}\lVert\nabla f(w_t)\rVert^2 + (L\sigma^2\eta_0^2 + LG\rho_{\max}\eta_0)\sum_{t=1}^{T}\frac{1}{t}.

With

ηT2∑t=1TE∥∇f(wt)∥2≤∑t=1Tηt2E∥∇f(wt)∥2\frac{\eta_T}{2}\sum_{t=1}^{T}\mathbb{E}\lVert\nabla f(w_t)\rVert^2 \leq\sum_{t=1}^{T}\frac{\eta_t}{2}\mathbb{E}\lVert\nabla f(w_t)\rVert^2

where replacing ηT=η0T\eta_T = \frac{\eta_0}{\sqrt{T}} yields:

η02T∑t=1TE∥∇f(wt)∥2≤f(w0)−Ef(wT)+(Lσ2η02+LGρmax⁡η0)∑t=1T1t≤f(w0)−Ef(wT)+(Lσ2η02+LGρmax⁡η0)log⁡T.(9)\begin{aligned} \frac{\eta_0}{2\sqrt{T}}\sum_{t=1}^{T}\mathbb{E}\lVert\nabla f(w_t)\rVert^2 \leq f(w_0) - \mathbb{E}f(w_T) + (L\sigma^2\eta_0^2 + LG\rho_{\max}\eta_0)\sum_{t=1}^{T}\frac{1}{t} \\ &\leq f(w_0) - \mathbb{E}f(w_T) + (L\sigma^2\eta_0^2 + LG\rho_{\max}\eta_0)\log T. \tag*{(9)} \end{aligned}

Finally, we archive the result:

1T∑t=1TE∥∇f(wt)∥2≤2(f(w0)−Ef(wT))η01T+2(Lσ2η0+LGρmax⁡)log⁡TT=C11T+C2log⁡TT.\begin{aligned} \frac{1}{T}\sum_{t=1}^{T}\mathbb{E}\lVert\nabla f(w_t)\rVert^2 \leq\frac{2(f(w_0)-\mathbb{E}f(w_T))}{\eta_0}\frac{1}{\sqrt{T}} + 2(L\sigma^2\eta_0 + LG\rho_{\max})\frac{\log T}{\sqrt{T}} \\ &= C_1\frac{1}{\sqrt{T}} + C_2\frac{\log T}{\sqrt{T}}. \end{aligned}

This shows that, under the decaying-radius assumption standard in SAM analyses, CAP-SAM converges at the rate of O(log⁡T/T)O(\log T/\sqrt{T}).

Experimental setup

We report the averaged results and standard deviation results over 3 independent runs.

CIFAR

For CIFAR-10 and CIFAR-100 Krizhevsky et al. [20], we compare test accuracy against SAM and three variants ASAM Kwon et al. [21], Fisher SAM Kim et al. [19], and VASSO Li and Giannakis [22] across four neural network architectures VGG-11 Simonyan and Zisserman [28], ResNet-18 He et al. [12], WRN-28-10 Zagoruyko and Komodakis [32] and PyramidNet-110 Han et al. [11]. Standard data augmentation is applied, including random crop, random horizontal flip, normalization, and Cutout Devries and Taylor [7]. The first three models are trained for 200 epochs with a batchsize of 128, and PyramidNet-110 is trained for 300 epochs. A cosine learning rate schedule is used across all settings, with an initial learning rate of 0.05 and weight decay of 0.001. For CIFAR-10, we set ρ=0.1\rho= 0.1 for SAM, Fisher SAM, and VASSO, and ρ=0.05\rho= 0.05 for ASAM, following the original papers. For our adaptive formulation, we use a initial radius ρ0=0.05\rho_{0} = 0.05 across all architectures, with the exception of ResNet-18 where ρ0=0.1\rho_{0} = 0.1, and growth factor γ=1.001\gamma= 1.001. For CIFAR-100,we set ρ=0.2\rho= 0.2 for SAM, Fisher SAM, and VASSO, and ρ=1\rho= 1 for ASAM. For our adaptive formulation, we use a initial radius ρ0=0.2\rho_{0} = 0.2 across all architectures, and growth factor γ=1.001\gamma= 1.001.

ImageNet

For ImageNet-1K, we train ResNet-50 from scratch and evaluate on the ImageNet validation set as well as four additional out-of-distribution test sets: ImageNet-Real Beyer et al. [2], ImageNet-V2 Recht et al. [26], ImageNet-R Hendrycks et al. [13], and ImageNet-Sketch Wang et al. [30]. Following the setup of GSAM Zhuang et al. [35] and Chen et al. [5], without strong data augmentation. Models are trained with a global batch size of 4096, a perturbation batch size of m=64m = 64. A linear learning rate schedule with warmup is used, with an initial learning rate of 0.016 and weight decay of 0.001. We evaluate the proposed CAP-SAM formulation applied to SAM, ASAM Kwon et al. [21], and GSAM Zhuang et al. [35]. Following hyperparameter tuning, we set ρ=0.04\rho= 0.04 for SAM, ρ=0.05\rho= 0.05 for GSAM and ρ=0.5\rho= 0.5 for ASAM. The same values are used as the initial radius for the corresponding adaptive formulations, with growth factor γ=1.001\gamma= 1.001.

Statistical analysis

Statistical analysis for each test case (CIFAR-10, CIFAR-100 and ImageNet) was performed using an analysis of variance (ANOVA) model, with the perturbation type (constant ρ\rho, dynamic ρ\rho) as the experimental factor of interest. In the case of CIFAR-10 and CIFAR-100, the Method (SAM, ASAM, FSAM, VASSO) and the Model (VGG-11-BN, ResNet-18, WRN-28-10, PyramidNet-110) were used as blocking variables, so that the marginal effects on the accuracy are accounted for when estimating the effect of deploying the dynamic ρ\rho perturbation. For ImageNet, two comparisons were performed: the first used the Method (SAM, GSAM and ASAM) and the ImageNet Version (1K, Real, V2, R, Sketch) as blocking variables, to directly estimate the effects of the dynamic ρ\rho. The second compared all combinations of method + perturbation strategy directly against the SGD baseline, with Version as a blocking variable.

All statistical analyses were performed in R version 4.6.0. The p-values for the comparisons between constant and dynamic ρ\rho were estimated using function aov. Post-ANOVA tests used Tukey contrasts as implemented in function glht from package multcomp. Effect size and confidence interval estimation were obtained applying function confint to the Tukey comparison models. The ANOVA tables for the three comparisons are presented below.

Factordegrees-of-freedomF-valuep-valueMean acc. gain (%) (dynam. - const.)CI95CI_{95}
Variant119.511.83 × 10−410^{-4}0.23[0.12, 0.33]
Method30.4510.72——
Model31107.67.42 × 10−2610^{-26}——
Residuals24————

Table 4. ANOVA table and effect size estimation for the CIFAR-10 test. Statistically significant effects at the 95% confidence level are shown in boldface

Factordegrees-of-freedomF-valuep-valueMean acc. gain (%) (dynam. - const.)CI95CI_{95}
Variant113.321.27 × 10−310^{-3}1.14[0.50, 1.78]
Method34.380.013——
Model3335.31.02 × 10−1910^{-19}——
Residuals24————

Table 5. ANOVA table and effect size estimation for the CIFAR-100 test. Statistically significant effects at the 95% confidence level are shown in boldface

Factordegrees-of-freedomF-valuep-valueMean acc. gain (%) (dynam. - const.)CI95CI_{95}
Variant113.721.24 × 10−310^{-3}0.31[0.14, 0.48]
Method21.410.27——
Version41.1 × 10510^{5}7.76 × 10−4710^{-47}——
Residuals24————

Table 6. ANOVA table and effect size estimation for the first ImageNet test (Variant × Method × Version). Statistically significant effects at the 95% confidence level are shown in boldface

Figure 6. Mean accuracy gains of different Method-variant combinations against the SGD baseline, after removing the dataset Version effects. Using SAM-based approaches result in gains over the SGD baseline in all cases. Moreover, dynamic ρ\rho results in higher gains when compared to constant ρ\rho across all three methods tested.

Ablation Study

Figure 7 reports the sensitivity/top-1 accuracy of CAP-SAM to its four hyperparameters, varying one at a time while holding the remaining three at their default values. Panels (a) and (b) report the initial radius ρ0\rho_0 and the growth factor γ\gamma; panels (c) and (d) report the bounds ρmin⁡\rho_{\min} and ρmax⁡\rho_{\max}.

CAP-SAM is therefore robust to ρmin⁡\rho_{\min} and ρmax⁡\rho_{\max}, which serve only to clip the updated radius within a safe interval and have no effect unless the clip becomes active. In contrast, ρ0\rho_0 and γ\gamma meaningfully influence performance and benefit from light tuning, as they act throughout training and shape how the radius changes.

Additional Convergence Results

Figure 8 shows convergence of CAP-SAM training loss on the CIFAR-10 and CIFAR-100 datasets. Figure 9 and 10 shows the training loss and Test top-1 accuracy as a function of the number of epochs for CAP-SAM, SAM, and SGD on CIFAR-100 across all network architectures. CAP-SAM consistently converges faster than both SAM and SGD.

Training loss of CAP-SAM across CIFAR-10 and CIFAR-100 for four architectures

Figure 8. Training loss L(D;wt)\mathcal{L}(\mathcal{D}; w_t) of CAP-SAM as a function of the number of epochs, comparing CIFAR-10 and CIFAR-100 across four architectures: (a) ResNet-18,(b)WRN-28-10,(c) VGG-11-BN and (d) PyramidNet-110.

Figure 9. Training loss L(D;wt)\mathcal{L}(\mathcal{D}; w_t) as a function of the number of epochs on CIFAR-100, comparing CAP-SAM, SAM, and SGD across four architectures: (a) ResNet-18, (b) WRN-28-10, (c) VGG-11-BN and (d) PyramidNet-110.

CAP-SAM attains a consistently lower training loss than SAM while remaining above SGD, and reaches higher test accuracy than both baselines throughout training. This phenomenon clearly shows how SGD descends fastest on the training objective but generalises worst, SAM sacrifices training progress for robustness, and CAP-SAM, by perturbing only as much as the local curvature requires, is able to fit the data quickly while exceeding SAM’s generalisation ability.

Four-panel plots of Top-1 accuracy (%) versus Number of Epochs for (a) ResNet-18, (b) WRN-28-10, (c) VGG-11-BN, and (d) PyramidNet-110, with CAP-SAM, SAM, and SGD curves

Figure 10. Test top-1 accuracy as a function of the number of epochs on CIFAR-100, comparing CAP-SAM, SAM, and SGD across four architectures: (a) ResNet-18, (b) WRN-28-10, (c) VGG-11-BN and (d) PyramidNet-110.

References

  1. [1]Maksym Andriushchenko, Francesco Croce, Maximilian Müller, Matthias Hein, and Nicolas Flammarion. A modern look at the relationship between sharpness and generalization. arXiv preprint arXiv:2302.07011, 2023.arxiv.org/abs/2302.07011
  2. [2]Lucas Beyer, Olivier J Hénaff, Alexander Kolesnikov, Xiaohua Zhai, and Aäron van den Oord. Are we done with imagenet? arXiv preprint arXiv:2006.07159, 2020.arxiv.org/abs/2006.07159
  3. [3]Debora Caldarola, Pietro Cagnasso, Barbara Caputo, and Marco Ciccone. Beyond local sharpness: Communication-efficient global sharpness-aware minimization for federated learning. In CVPR, 2025.arxiv.org/abs/2412.03752
  4. [4]Pratik Chaudhari, Anna Choromanska, Stefano Soatto, Yann LeCun, Carlo Baldassi, Christian Borgs, Jennifer Chayes, Levent Sagun, and Riccardo Zecchina. Entropy-SGD: Biasing Gradient Descent Into Wide Valleys, April 2017. URL http://arxiv.org/abs/1611.01838. arXiv:1611.01838 [cs.LG].
  5. [5]Xiangning Chen, Cho-Jui Hsieh, and Boqing Gong. When vision transformers outperform resnets without pre-training or strong data augmentations. arXiv preprint arXiv:2106.01548, 2021.arxiv.org/abs/2106.01548
  6. [6]Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, pages 248–255, 2009.
  7. [7]Terrance Devries and Graham W. Taylor. Improved regularization of convolutional neural networks with cutout. CoRR, abs/1708.04552, 2017. URL http://arxiv.org/abs/1708.04552.
  8. [8]Laurent Dinh, Razvan Pascanu, Samy Bengio, and Yoshua Bengio. Sharp minima can generalize for deep nets. CoRR, abs/1703.04933, 2017. URL http://arxiv.org/abs/1703.04933.
  9. [9]Jiawei Du, Hanshu Yan, Jiashi Feng, Joey Tianyi Zhou, Liangli Zhen, Rick Siow Mong Goh, and Vincent Y. F. Tan. Efficient sharpness-aware minimization for improved training of neural networks. CoRR, abs/2110.03141, 2021. URL https://arxiv.org/abs/2110.03141.
  10. [10]Pierre Foret, Ariel Kleiner, Hossein Mobahi, and Behnam Neyshabur. Sharpness-aware minimization for efficiently improving generalization. CoRR, abs/2010.01412, 2020. URL https://arxiv.org/abs/2010.01412.
  11. [11]Dongyoon Han, Jiwhan Kim, and Junmo Kim. Deep pyramidal residual networks. CoRR, abs/1610.02915, 2016. URL http://arxiv.org/abs/1610.02915.
  12. [12]Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778, 2016.arxiv.org/abs/1512.03385
  13. [13]Dan Hendrycks, Steven Basart, Norman Mu, Saurav Kadavath, Frank Wang, Evan Dorundo, Rahul Desai, Tyler Zhu, Samyak Parajuli, Mike Guo, et al. The many faces of robustness: A critical analysis of out-of-distribution generalization. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 8340–8349, 2021.
  14. [14]Sepp Hochreiter and Jürgen Schmidhuber. Simplifying neural nets by discovering flat minima. In Proceedings of the 8th International Conference on Neural Information Processing Systems, NIPS’94, page 529–536, Cambridge, MA, USA, 1994. MIT Press.
  15. [15]Sepp Hochreiter and Jürgen Schmidhuber. Flat minima. Neural Computation, 9(1):1–42, 1997. doi: 10.1162/neco.1997.9.1.1.DOI
  16. [16]Yiding Jiang, Behnam Neyshabur, Hossein Mobahi, Dilip Krishnan, and Samy Bengio. Fantastic generalization measures and where to find them. arXiv preprint, 12 2019. doi: 10.48550/arXiv.1912.02178.DOI
  17. [17]Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. CoRR, abs/1609.04836, 2016. URL http://arxiv.org/abs/1609.04836.
  18. [18]Hoki Kim, Jinseong Park, Yujin Choi, and Jaewook Lee. Fantastic robustness measures: The secrets of robust generalization. In Thirty-seventh Conference on Neural Information Processing Systems, 2023.DOI
  19. [19]Minyoung Kim, Da Li, Shell Xu Hu, and Timothy M. Hospedales. Fisher SAM: Information geometry and sharpness aware minimisation. In International Conference on Machine Learning, pages 11145–11161, 2022.arxiv.org/abs/2206.04920
  20. [20]Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, 2009.
  21. [21]Jungmin Kwon, Jeongseop Kim, Hyunseo Park, and In Kwon Choi. Asam: Adaptive sharpness-aware minimization for scale-invariant learning of deep neural networks. In International Conference on Machine Learning, pages 5905–5914. PMLR, 2021.arxiv.org/abs/2102.11600
  22. [22]Bingcong Li and Georgios B Giannakis. Enhancing sharpness-aware optimization through variance suppression. In Proc. of Neural Information Processing Systems, 2023.arxiv.org/abs/2309.15639
  23. [23]Tao Li, Pan Zhou, Zhengbao He, Xinwen Cheng, and Xiaolin Huang. Friendly sharpness-aware minimization, 2024. URL https://arxiv.org/abs/2403.12350.
  24. [24]Peng Mi, Li Shen, Tianhe Ren, Yiyi Zhou, Xiaoshuai Sun, Rongrong Ji, and Dacheng Tao. Make sharpness-aware minimization stronger: A sparsified perturbation approach, 2022. URL https://arxiv.org/abs/2210.05177.
  25. [25]Behnam Neyshabur, Srinadh Bhojanapalli, David McAllester, and Nathan Srebro. Exploring generalization in deep learning. CoRR, abs/1706.08947, 2017. URL http://arxiv.org/abs/1706.08947.
  26. [26]Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do imagenet classifiers generalize to imagenet? In International conference on machine learning, pages 5389–5400. PMLR, 2019.arxiv.org/abs/1902.10811
  27. [27]A. L. Samuel. Some studies in machine learning using the game of checkers. IBM Journal of Research and Development, 3(3):211–229, 1959.
  28. [28]Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In Yoshua Bengio and Yann LeCun, editors, ICLR, 2015. URL http://arxiv.org/abs/1409.1556.
  29. [29]Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017.arxiv.org/abs/1706.03762
  30. [30]Haohan Wang, Songwei Ge, Zachary Lipton, and Eric P. Xing. Learning robust global representations by penalizing local predictive power. In Advances in Neural Information Processing Systems, pages 10506–10518, 2019.
  31. [31]Pengfei Wang, Zhaoxiang Zhang, Zhen Lei, and Lei Zhang. Sharpness-aware gradient matching for domain generalization, 2023. URL https://arxiv.org/abs/2303.10353.
  32. [32]Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. CoRR, abs/1605.07146, 2016. URL http://arxiv.org/abs/1605.07146.
  33. [33]Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. CoRR, abs/1611.03530, 2016. URL http://arxiv.org/abs/1611.03530.
  34. [34]Yaowei Zheng, Richong Zhang, and Yongyi Mao. Regularizing neural networks via adversarial model perturbation. CoRR, abs/2010.04925, 2020. URL https://arxiv.org/abs/2010.04925.
  35. [35]Juntang Zhuang, Boqing Gong, Liangzhe Yuan, Yin Cui, Hartwig Adam, Nicha Dvornek, Sekhar Tatikonda, James Duncan, and Ting Liu. Surrogate gap minimization improves sharpness-aware training. arXiv preprint arXiv:2203.08065, 2022.arxiv.org/abs/2203.08065
  36. [36]Jinping Zou, Xiaoge Deng, and Tao Sun. Sharpness-aware minimization with adaptive regularization for training deep neural networks, 2024. URL https://arxiv.org/abs/2412.16854.

Paper details

vlnc:W_mvj9xjw7
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 7

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents