VASSO: Variance Suppression in SAM
- 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
where denotes model parameters, is the expected training loss, and is a perturbation radius. In practice, the inner maximization is replaced by a first-order stochastic approximation: followed by the outer update
The central criticism is that this adversary is computed from a single minibatch. It may therefore be adversarial for the batch used to construct it, but “friendly” to other batches. Formally, for the construction batch one has approximately
for small , but for another batch it can happen that
0
whenever
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: 2 The adversarial perturbation is then defined by
3
while the outer update remains SAM-like: 4
Operationally, each iteration samples a minibatch, computes 5, updates 6, forms 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 8. The memory overhead is described as effectively unchanged from SAM because one can store 9 and its norm and reconstruct 0 when needed (Li et al., 2 Sep 2025).
The method formalizes adversary quality through
1
with anchor quantity 2. A stochastic linearization with slope 3 is defined to be 4-stable if
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 6 is lower bounded, that the stochastic gradient is 7-Lipschitz,
8
and that it is unbiased with bounded variance,
9
Under these assumptions, generic SAM-type updates converge as long as 0, so VASSO inherits the same order of convergence as SAM. With 1, 2, and 3, the SAM convergence theorem gives
4
and
5
The distinctive result is the mean-squared-error control for the EMA direction: 6 By contrast, SAM only has
7
Thus, for sufficiently large 8, VASSO shrinks the leading variance term from 9 to roughly 0. Using
1
the paper derives the stability comparison: SAM has 2-stability, whereas VASSO has
3
Asymptotically, VASSO is therefore about 4 times more stable than SAM. The tuning implication is explicit: 5 should be small enough to suppress variance, but not too small, because the residual term
6
is amplified when 7 is extremely small (Li et al., 2 Sep 2025).
The paper also gives an SNR-based intuition. Near convergence, when 8 is small relative to gradient noise, the normalized SAM direction
9
can point almost anywhere on the sphere. In training ResNet-18 on CIFAR-10, reported practical SNR values are in the range 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 1–2 accuracy points, with a smaller gain of about 3 on PyramidNet-110. On ImageNet, VASSO improves ResNet-50 over SAM from 4 to 5, and ViT-S/32 from 6 to 7. Combined with GSAM, denoted V+G, it reaches 8 on ResNet-50 and 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 0 versus 1 for SAM and 2 for GSAM. In neural machine translation on IWSLT-14 with a Transformer and AdamW, the best reported setting is 3, giving BLEU 4 versus 5 for SAM and 6 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 7 label noise, SAM gets 8, while VASSO reaches 9 with 0 and 1 with 2, an absolute gain of 3 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 4 decreases from 5 for SGD to 6 for SAM and further to 7 for VASSO; the anisotropy proxy 8 decreases from 9 to 0 to 1. 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 2 with
3
At every iteration it computes 4 and updates 5, but only when 6 does it form the adversary and compute the second gradient at 7; otherwise it performs a plain SGD update. The expected number of gradient computations per iteration is 8, interpolating between SGD (9) and VASSO (0). On CIFAR-10 with ResNet-18, eSAM at 1 gets 2, while eVASSO at 3 gets 4; at 5, eSAM gets 6, while eVASSO gets 7. The paper’s headline tradeoff claim is that eVASSO with 8 can surpass vanilla SAM and eSAM with 9, implying about 00 and 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 02, the EMA coefficient. Reported tuning sets include 03 and 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 05 or 06 often work; under severe label noise, 07 performs better. The perturbation radius 08 is tuned similarly to SAM, and the paper generally uses the same 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 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).