Papers
Topics
Authors
Recent
Search
2000 character limit reached

VASSO: Variance Suppression in SAM

Updated 10 July 2026
  • Variance Suppression (VASSO) is an optimization method that stabilizes the inner linearization in sharpness-aware minimization using an exponential moving average of gradients.
  • It reduces gradient variance to produce adversarial perturbations that are less ‘friendly’ and more representative of local sharpness, leading to improved generalization.
  • VASSO offers a low-overhead upgrade to SAM, maintaining similar computational cost while effectively mitigating instability issues inherent in minibatch-based approximations.

Variance Suppression (VASSO) is a variance-suppression mechanism for sharpness-aware optimization that modifies the practical adversary construction used in Sharpness-Aware Minimization (SAM). In this line of work, the target is not the outer sharpness-aware objective itself, but the instability of the minibatch-based inner linearization that SAM uses to generate adversarial parameter perturbations. VASSO replaces the raw stochastic gradient in that inner step with an exponentially averaged direction, with the stated aim of producing adversaries that are more stable, less “friendly,” and more representative of local sharpness. The method appeared earlier under the spelling “VaSSO” and later under the spelling “VASSO” (Li et al., 2023, Li et al., 2 Sep 2025).

1. Nomenclature and scope

The method is presented as “VaSSO” in “Enhancing Sharpness-Aware Optimization Through Variance Suppression” (Li et al., 2023) and as “VASSO” in “VASSO: Variance Suppression for Sharpness-Aware Minimization” (Li et al., 2 Sep 2025). In both formulations, the underlying idea is the same: SAM is retained as the training paradigm, but the stochastic slope used to define the adversarial perturbation is stabilized by variance suppression. The method is therefore best understood as an optimization modification or wrapper for SAM-style methods, not as a separate regularizer added to the loss, and not as a new minimax objective in the strict sense (Li et al., 2 Sep 2025).

This scope matters because “variance suppression” here refers to the variance of the direction used in the inner linearized maximization. It does not refer to redefining sharpness-aware learning from scratch, and it is distinct from simply adding noise, changing the base optimizer, or introducing a separate explicit penalty. A plausible implication is that VASSO belongs more naturally to the family of practical adversary-generation schemes than to the family of objective-level reformulations of robust or sharpness-aware optimization (Li et al., 2 Sep 2025).

2. SAM, sharpness, and the “friendly adversary” problem

SAM is posed as the minimax problem

minxmaxϵρf(x+ϵ),\min_{\mathbf{x}} \max_{\|\bm{\epsilon}\|\le \rho} f(\mathbf{x}+\bm{\epsilon}),

where x\mathbf{x} denotes model parameters, f(x)=EB[fB(x)]f(\mathbf{x})=\mathbb{E}_{\mathcal B}[f_{\mathcal B}(\mathbf{x})] is the expected training loss, and ρ\rho is a perturbation radius. In practice, the inner maximization is replaced by a first-order stochastic approximation: ϵtarg maxϵρf(xt)+gt(xt),ϵ=ρgt(xt)gt(xt),\bm{\epsilon}_t \approx \argmax_{\|\bm{\epsilon}\|\le \rho} f(\mathbf{x}_t)+\langle \mathbf{g}_t(\mathbf{x}_t),\bm{\epsilon}\rangle = \rho \frac{\mathbf{g}_t(\mathbf{x}_t)}{\|\mathbf{g}_t(\mathbf{x}_t)\|}, followed by the outer update

xt+1=xtηgt(xt+ϵt).\mathbf{x}_{t+1}=\mathbf{x}_t-\eta\,\mathbf{g}_t(\mathbf{x}_t+\bm{\epsilon}_t).

The central criticism is that this adversary is computed from a single minibatch. It may therefore be adversarial for the batch Bt\mathcal B_t used to construct it, but “friendly” to other batches. Formally, for the construction batch one has approximately

fBt(xt+ϵt)fBt(xt)0f_{\mathcal B_t}(\mathbf{x}_t+\bm{\epsilon}_t)-f_{\mathcal B_t}(\mathbf{x}_t)\ge 0

for small ρ\rho, but for another batch B\mathcal B it can happen that

x\mathbf{x}0

whenever

x\mathbf{x}1

This is the paper’s “over-friendly adversary” or “friendly adversary” failure mode. It is also supported empirically: when the adversary is computed from a different random batch than the one used for the perturbed loss, SAM’s generalization gains nearly disappear (Li et al., 2 Sep 2025).

3. Algorithmic construction of VASSO

VASSO replaces the raw stochastic gradient used in the inner linearization with an exponential moving average: x\mathbf{x}2 The adversarial perturbation is then defined by

x\mathbf{x}3

while the outer update remains SAM-like: x\mathbf{x}4

Operationally, each iteration samples a minibatch, computes x\mathbf{x}5, updates x\mathbf{x}6, forms x\mathbf{x}7, computes the perturbed gradient, and updates parameters. This requires the same two gradient evaluations per iteration as vanilla SAM. The extra cost is one EMA vector update and storage of x\mathbf{x}8. The memory overhead is described as effectively unchanged from SAM because one can store x\mathbf{x}9 and its norm and reconstruct f(x)=EB[fB(x)]f(\mathbf{x})=\mathbb{E}_{\mathcal B}[f_{\mathcal B}(\mathbf{x})]0 when needed (Li et al., 2 Sep 2025).

The method formalizes adversary quality through

f(x)=EB[fB(x)]f(\mathbf{x})=\mathbb{E}_{\mathcal B}[f_{\mathcal B}(\mathbf{x})]1

with anchor quantity f(x)=EB[fB(x)]f(\mathbf{x})=\mathbb{E}_{\mathcal B}[f_{\mathcal B}(\mathbf{x})]2. A stochastic linearization with slope f(x)=EB[fB(x)]f(\mathbf{x})=\mathbb{E}_{\mathcal B}[f_{\mathcal B}(\mathbf{x})]3 is defined to be f(x)=EB[fB(x)]f(\mathbf{x})=\mathbb{E}_{\mathcal B}[f_{\mathcal B}(\mathbf{x})]4-stable if

f(x)=EB[fB(x)]f(\mathbf{x})=\mathbb{E}_{\mathcal B}[f_{\mathcal B}(\mathbf{x})]5

This definition makes VASSO’s target explicit: it seeks to stabilize the stochastic linearization used to approximate local sharpness (Li et al., 2 Sep 2025).

4. Theoretical properties

The analysis assumes that f(x)=EB[fB(x)]f(\mathbf{x})=\mathbb{E}_{\mathcal B}[f_{\mathcal B}(\mathbf{x})]6 is lower bounded, that the stochastic gradient is f(x)=EB[fB(x)]f(\mathbf{x})=\mathbb{E}_{\mathcal B}[f_{\mathcal B}(\mathbf{x})]7-Lipschitz,

f(x)=EB[fB(x)]f(\mathbf{x})=\mathbb{E}_{\mathcal B}[f_{\mathcal B}(\mathbf{x})]8

and that it is unbiased with bounded variance,

f(x)=EB[fB(x)]f(\mathbf{x})=\mathbb{E}_{\mathcal B}[f_{\mathcal B}(\mathbf{x})]9

Under these assumptions, generic SAM-type updates converge as long as ρ\rho0, so VASSO inherits the same order of convergence as SAM. With ρ\rho1, ρ\rho2, and ρ\rho3, the SAM convergence theorem gives

ρ\rho4

and

ρ\rho5

The distinctive result is the mean-squared-error control for the EMA direction: ρ\rho6 By contrast, SAM only has

ρ\rho7

Thus, for sufficiently large ρ\rho8, VASSO shrinks the leading variance term from ρ\rho9 to roughly ϵtarg maxϵρf(xt)+gt(xt),ϵ=ρgt(xt)gt(xt),\bm{\epsilon}_t \approx \argmax_{\|\bm{\epsilon}\|\le \rho} f(\mathbf{x}_t)+\langle \mathbf{g}_t(\mathbf{x}_t),\bm{\epsilon}\rangle = \rho \frac{\mathbf{g}_t(\mathbf{x}_t)}{\|\mathbf{g}_t(\mathbf{x}_t)\|},0. Using

ϵtarg maxϵρf(xt)+gt(xt),ϵ=ρgt(xt)gt(xt),\bm{\epsilon}_t \approx \argmax_{\|\bm{\epsilon}\|\le \rho} f(\mathbf{x}_t)+\langle \mathbf{g}_t(\mathbf{x}_t),\bm{\epsilon}\rangle = \rho \frac{\mathbf{g}_t(\mathbf{x}_t)}{\|\mathbf{g}_t(\mathbf{x}_t)\|},1

the paper derives the stability comparison: SAM has ϵtarg maxϵρf(xt)+gt(xt),ϵ=ρgt(xt)gt(xt),\bm{\epsilon}_t \approx \argmax_{\|\bm{\epsilon}\|\le \rho} f(\mathbf{x}_t)+\langle \mathbf{g}_t(\mathbf{x}_t),\bm{\epsilon}\rangle = \rho \frac{\mathbf{g}_t(\mathbf{x}_t)}{\|\mathbf{g}_t(\mathbf{x}_t)\|},2-stability, whereas VASSO has

ϵtarg maxϵρf(xt)+gt(xt),ϵ=ρgt(xt)gt(xt),\bm{\epsilon}_t \approx \argmax_{\|\bm{\epsilon}\|\le \rho} f(\mathbf{x}_t)+\langle \mathbf{g}_t(\mathbf{x}_t),\bm{\epsilon}\rangle = \rho \frac{\mathbf{g}_t(\mathbf{x}_t)}{\|\mathbf{g}_t(\mathbf{x}_t)\|},3

Asymptotically, VASSO is therefore about ϵtarg maxϵρf(xt)+gt(xt),ϵ=ρgt(xt)gt(xt),\bm{\epsilon}_t \approx \argmax_{\|\bm{\epsilon}\|\le \rho} f(\mathbf{x}_t)+\langle \mathbf{g}_t(\mathbf{x}_t),\bm{\epsilon}\rangle = \rho \frac{\mathbf{g}_t(\mathbf{x}_t)}{\|\mathbf{g}_t(\mathbf{x}_t)\|},4 times more stable than SAM. The tuning implication is explicit: ϵtarg maxϵρf(xt)+gt(xt),ϵ=ρgt(xt)gt(xt),\bm{\epsilon}_t \approx \argmax_{\|\bm{\epsilon}\|\le \rho} f(\mathbf{x}_t)+\langle \mathbf{g}_t(\mathbf{x}_t),\bm{\epsilon}\rangle = \rho \frac{\mathbf{g}_t(\mathbf{x}_t)}{\|\mathbf{g}_t(\mathbf{x}_t)\|},5 should be small enough to suppress variance, but not too small, because the residual term

ϵtarg maxϵρf(xt)+gt(xt),ϵ=ρgt(xt)gt(xt),\bm{\epsilon}_t \approx \argmax_{\|\bm{\epsilon}\|\le \rho} f(\mathbf{x}_t)+\langle \mathbf{g}_t(\mathbf{x}_t),\bm{\epsilon}\rangle = \rho \frac{\mathbf{g}_t(\mathbf{x}_t)}{\|\mathbf{g}_t(\mathbf{x}_t)\|},6

is amplified when ϵtarg maxϵρf(xt)+gt(xt),ϵ=ρgt(xt)gt(xt),\bm{\epsilon}_t \approx \argmax_{\|\bm{\epsilon}\|\le \rho} f(\mathbf{x}_t)+\langle \mathbf{g}_t(\mathbf{x}_t),\bm{\epsilon}\rangle = \rho \frac{\mathbf{g}_t(\mathbf{x}_t)}{\|\mathbf{g}_t(\mathbf{x}_t)\|},7 is extremely small (Li et al., 2 Sep 2025).

The paper also gives an SNR-based intuition. Near convergence, when ϵtarg maxϵρf(xt)+gt(xt),ϵ=ρgt(xt)gt(xt),\bm{\epsilon}_t \approx \argmax_{\|\bm{\epsilon}\|\le \rho} f(\mathbf{x}_t)+\langle \mathbf{g}_t(\mathbf{x}_t),\bm{\epsilon}\rangle = \rho \frac{\mathbf{g}_t(\mathbf{x}_t)}{\|\mathbf{g}_t(\mathbf{x}_t)\|},8 is small relative to gradient noise, the normalized SAM direction

ϵtarg maxϵρf(xt)+gt(xt),ϵ=ρgt(xt)gt(xt),\bm{\epsilon}_t \approx \argmax_{\|\bm{\epsilon}\|\le \rho} f(\mathbf{x}_t)+\langle \mathbf{g}_t(\mathbf{x}_t),\bm{\epsilon}\rangle = \rho \frac{\mathbf{g}_t(\mathbf{x}_t)}{\|\mathbf{g}_t(\mathbf{x}_t)\|},9

can point almost anywhere on the sphere. In training ResNet-18 on CIFAR-10, reported practical SNR values are in the range xt+1=xtηgt(xt+ϵt).\mathbf{x}_{t+1}=\mathbf{x}_t-\eta\,\mathbf{g}_t(\mathbf{x}_t+\bm{\epsilon}_t).0, under which SAM adversaries are nearly spread over the sphere. The EMA direction averages out noise and preserves persistent directional information, which the paper interprets as making perturbations more representative of “global” local sharpness (Li et al., 2 Sep 2025).

5. Empirical performance and efficient variants

The empirical evaluation covers image classification, domain generalization, label-noise robustness, and neural machine translation. In image classification, the paper evaluates VGG-11, ResNet-18, WRN-28-10, and PyramidNet-110 on CIFAR-10 and CIFAR-100, and ResNet-50 and ViT-S/32 on ImageNet, against SGD, SAM, ASAM, FisherSAM, and GSAM. On CIFAR, VASSO usually improves over SAM by around xt+1=xtηgt(xt+ϵt).\mathbf{x}_{t+1}=\mathbf{x}_t-\eta\,\mathbf{g}_t(\mathbf{x}_t+\bm{\epsilon}_t).1–xt+1=xtηgt(xt+ϵt).\mathbf{x}_{t+1}=\mathbf{x}_t-\eta\,\mathbf{g}_t(\mathbf{x}_t+\bm{\epsilon}_t).2 accuracy points, with a smaller gain of about xt+1=xtηgt(xt+ϵt).\mathbf{x}_{t+1}=\mathbf{x}_t-\eta\,\mathbf{g}_t(\mathbf{x}_t+\bm{\epsilon}_t).3 on PyramidNet-110. On ImageNet, VASSO improves ResNet-50 over SAM from xt+1=xtηgt(xt+ϵt).\mathbf{x}_{t+1}=\mathbf{x}_t-\eta\,\mathbf{g}_t(\mathbf{x}_t+\bm{\epsilon}_t).4 to xt+1=xtηgt(xt+ϵt).\mathbf{x}_{t+1}=\mathbf{x}_t-\eta\,\mathbf{g}_t(\mathbf{x}_t+\bm{\epsilon}_t).5, and ViT-S/32 from xt+1=xtηgt(xt+ϵt).\mathbf{x}_{t+1}=\mathbf{x}_t-\eta\,\mathbf{g}_t(\mathbf{x}_t+\bm{\epsilon}_t).6 to xt+1=xtηgt(xt+ϵt).\mathbf{x}_{t+1}=\mathbf{x}_t-\eta\,\mathbf{g}_t(\mathbf{x}_t+\bm{\epsilon}_t).7. Combined with GSAM, denoted V+G, it reaches xt+1=xtηgt(xt+ϵt).\mathbf{x}_{t+1}=\mathbf{x}_t-\eta\,\mathbf{g}_t(\mathbf{x}_t+\bm{\epsilon}_t).8 on ResNet-50 and xt+1=xtηgt(xt+ϵt).\mathbf{x}_{t+1}=\mathbf{x}_t-\eta\,\mathbf{g}_t(\mathbf{x}_t+\bm{\epsilon}_t).9 on ViT-S/32 (Li et al., 2 Sep 2025).

In DomainBed domain generalization with a pretrained ResNet-50 and Adam base optimizer, VASSO attains the best average leave-one-out cross-validation accuracy among Adam, SAM, and GSAM: average Bt\mathcal B_t0 versus Bt\mathcal B_t1 for SAM and Bt\mathcal B_t2 for GSAM. In neural machine translation on IWSLT-14 with a Transformer and AdamW, the best reported setting is Bt\mathcal B_t3, giving BLEU Bt\mathcal B_t4 versus Bt\mathcal B_t5 for SAM and Bt\mathcal B_t6 for AdamW. The label-noise results are substantially larger in magnitude. On CIFAR-10 with random label flips, the gap widens with noise level; at Bt\mathcal B_t7 label noise, SAM gets Bt\mathcal B_t8, while VASSO reaches Bt\mathcal B_t9 with fBt(xt+ϵt)fBt(xt)0f_{\mathcal B_t}(\mathbf{x}_t+\bm{\epsilon}_t)-f_{\mathcal B_t}(\mathbf{x}_t)\ge 00 and fBt(xt+ϵt)fBt(xt)0f_{\mathcal B_t}(\mathbf{x}_t+\bm{\epsilon}_t)-f_{\mathcal B_t}(\mathbf{x}_t)\ge 01 with fBt(xt+ϵt)fBt(xt)0f_{\mathcal B_t}(\mathbf{x}_t+\bm{\epsilon}_t)-f_{\mathcal B_t}(\mathbf{x}_t)\ge 02, an absolute gain of fBt(xt+ϵt)fBt(xt)0f_{\mathcal B_t}(\mathbf{x}_t+\bm{\epsilon}_t)-f_{\mathcal B_t}(\mathbf{x}_t)\ge 03 points over SAM (Li et al., 2 Sep 2025).

The paper also reports flatness-related diagnostics. For ResNet-18 on CIFAR-10, the top Hessian eigenvalue fBt(xt+ϵt)fBt(xt)0f_{\mathcal B_t}(\mathbf{x}_t+\bm{\epsilon}_t)-f_{\mathcal B_t}(\mathbf{x}_t)\ge 04 decreases from fBt(xt+ϵt)fBt(xt)0f_{\mathcal B_t}(\mathbf{x}_t+\bm{\epsilon}_t)-f_{\mathcal B_t}(\mathbf{x}_t)\ge 05 for SGD to fBt(xt+ϵt)fBt(xt)0f_{\mathcal B_t}(\mathbf{x}_t+\bm{\epsilon}_t)-f_{\mathcal B_t}(\mathbf{x}_t)\ge 06 for SAM and further to fBt(xt+ϵt)fBt(xt)0f_{\mathcal B_t}(\mathbf{x}_t+\bm{\epsilon}_t)-f_{\mathcal B_t}(\mathbf{x}_t)\ge 07 for VASSO; the anisotropy proxy fBt(xt+ϵt)fBt(xt)0f_{\mathcal B_t}(\mathbf{x}_t+\bm{\epsilon}_t)-f_{\mathcal B_t}(\mathbf{x}_t)\ge 08 decreases from fBt(xt+ϵt)fBt(xt)0f_{\mathcal B_t}(\mathbf{x}_t+\bm{\epsilon}_t)-f_{\mathcal B_t}(\mathbf{x}_t)\ge 09 to ρ\rho0 to ρ\rho1. Loss-landscape visualizations are described as showing flatter valleys than SAM. This is presented as evidence that stabilizing the adversary strengthens the intended sharpness-aware bias rather than merely injecting another form of noise (Li et al., 2 Sep 2025).

An efficient variant, eVASSO, combines stabilized adversaries with an efficient SAM schedule. It introduces an i.i.d. Bernoulli variable ρ\rho2 with

ρ\rho3

At every iteration it computes ρ\rho4 and updates ρ\rho5, but only when ρ\rho6 does it form the adversary and compute the second gradient at ρ\rho7; otherwise it performs a plain SGD update. The expected number of gradient computations per iteration is ρ\rho8, interpolating between SGD (ρ\rho9) and VASSO (B\mathcal B0). On CIFAR-10 with ResNet-18, eSAM at B\mathcal B1 gets B\mathcal B2, while eVASSO at B\mathcal B3 gets B\mathcal B4; at B\mathcal B5, eSAM gets B\mathcal B6, while eVASSO gets B\mathcal B7. The paper’s headline tradeoff claim is that eVASSO with B\mathcal B8 can surpass vanilla SAM and eSAM with B\mathcal B9, implying about x\mathbf{x}00 and x\mathbf{x}01 savings in computational overhead relative to SAM and eSAM, respectively, for the same accuracy target (Li et al., 2 Sep 2025).

6. Interpretation, hyperparameters, and limitations

The main additional hyperparameter is x\mathbf{x}02, the EMA coefficient. Reported tuning sets include x\mathbf{x}03 and x\mathbf{x}04. Smaller values generally improve stability more, especially in noisier settings such as label noise, but excessively small values may over-smooth or worsen finite-time behavior. In cleaner image-classification settings, values like x\mathbf{x}05 or x\mathbf{x}06 often work; under severe label noise, x\mathbf{x}07 performs better. The perturbation radius x\mathbf{x}08 is tuned similarly to SAM, and the paper generally uses the same x\mathbf{x}09 for VASSO as for SAM (Li et al., 2 Sep 2025).

Several misconceptions are addressed implicitly by the formulation. VASSO does not change the outer SAM objective, does not replace the one-step closed-form perturbation by a multi-step adversary generator, and is not presented as a generic gradient-noise regularizer. It specifically modifies the slope in the inner stochastic linearization. The paper also argues that the observed behavior is distinct from the so-called x\mathbf{x}10-sharpness phenomenon: larger variance in itself does not explain better generalization. A plausible implication is that VASSO’s contribution is best understood as improving the quality of the adversarial perturbation rather than simply adding another source of stochasticity (Li et al., 2 Sep 2025).

The limitations are also explicit. VASSO is not presented as universally dominant on every dataset and architecture; some gains are modest, and on certain held-out domains it is competitive rather than best. Full VASSO, like SAM, still needs two gradient computations per adversarial iteration. The theoretical and empirical arguments therefore support it as a low-friction upgrade to SAM, especially when minibatch noise is high, data are noisy, or distribution shift is important, rather than as a replacement for sharpness-aware optimization as a whole (Li et al., 2 Sep 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Variance Suppression (VASSO).