arXiv:2610.32465cs.LGOct 2026

Manuscript Offprint

arXiv:2610.32465

Sharpness-aware Orthogonalized Momentum Algorithms

Geetika, Shivani Singh Chauhan, Gauranshi Gupta, Anant Jain, Kaushik Kalyanaraman, Bapi Chatterjee

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Adversarial sharpness penalty per iteration of a base optimizer, known as sharpness-aware minimization (SAM), is an accepted technique to improve generalization in deep learning. Recently, MUON has emerged as a dominant optimization algorithm for training large language models (LLMs). It achieves lower sample complexity for heavy-tailed gradient updates – a phenomenon common in LLM training. However, sharpness penalties with MUON updates are yet largely unexplored in the literature. Moreover, the behavior of SAM under heavy-tailed noise is unknown both theoretically and empirically. A potential reason for this gap is the additional cost of extra gradient computation per iteration for penalty perturbations in SAM, which becomes prohibitive for LLMs.

This paper introduces Sharpness-aware Orthogonalized Momentum Algorithm (SOMA) to combine a computationally efficient and theoretically grounded perturbation scheme with the MUON algorithm. The key idea is to use stale (purely) stochastic gradient noise for adversarial perturbations. Theoretically, we show that SOMA’s sample complexity is invariant to the perturbation direction. We provide explorations and insights into SOMA’s robustness to heavy-tailed gradient noise. We extensively explore SOMA’s efficacy in (a) mitigating quality degradation due to post-training quantization, and (b) catastrophic forgetting during fine-tuning of LLMs. The code is available at https://github.com/dcll-iiitd/soma.

Keywords Sharpness-aware minimization · Muon · Heavy-tailed noise · Large language models

1 Introduction

Consider the problems of empirical risk minimization (ERM) for training a deep learning model:

min⁡W∈B{f(W):=1N∑i=1Nf(W;ξi)},\min_{W\in\mathbb{B}}\left\{f(W):=\frac{1}{N}\sum_{i=1}^{N}f(W;\xi_{i})\right\},

where WW are parameters in a Banach space B\mathbb{B} such as Rd\mathbb{R}^d or Rm×n\mathbb{R}^{m\times n} and ξi\xi_i is the ii-th sample drawn from a training set S={Xi,Yi}i=1N\mathcal{S} = \{X_i, Y_i\}_{i=1}^N. The basic approach for solving ERM is stochastic gradient descent (SGD):

Wt+1=Wt−ηt∣Bt∣∑ξi∈Bt∇f(Wt;ξi),W_{t+1}=W_t-\frac{\eta_t}{|\mathcal{B}_t|}\sum_{\xi_i\in\mathcal{B}_t}\nabla f(W_t;\xi_i),

where Bt⊂S\mathcal{B}_t \subset \mathcal{S} is a stochastic mini-batch, ηt>0\eta_t > 0 is the learning rate and WtW_t the parameter both at iteration tt [53, 6].

=^{=} These authors contributed equally to this work.

*Supported in part by the INSPIRE fellowship No. DST/INSPIRE Fellowship/IF220579 offered by the Department of Science & Technology (DST), Government of India.

†^{\dagger}Supported in part by the Infosys Centre for Artificial Intelligence (CAI) at Indraprastha Institute of Information Technology, Delhi (IIIT-Delhi).

Beyond ERM, an enduring pursuit in deep learning is to achieve better generalization, that is, performance on unseen data. For large language models (LLMs), where ERM happens in phases of pre-training and fine-tuning, mitigating issues such as catastrophic forgetting due to fine-tuning [62] and performance degradation after post-training quantization (PTQ) [33] are both important endeavours beyond simply a basic generalization of the pretrained model, and they have been found to relate to model training dynamics [66, 7].

The loss landscape geometry of training trajectory, especially that of flat minima, is well known to have connections to a model’s generalization ability [28, 16, 36]. Motivated by the idea of landing at a flatter minima, Foret et al. [18] introduced sharpness-aware minimization (SAM) to SGD updates:

Wt+1=Wt−ηt∣Bt∣∑ξi∈Bt∇f(Wt+Et;ξi),(1)W_{t+1}=W_{t}-\frac{\eta_{t}}{\left|\mathcal{B}_{t}\right|}\sum_{\xi_{i}\in\mathcal{B}_{t}}\nabla f(W_{t}+E_{t};\xi_{i}), \tag{1}

where Et:=ρGt/∥Gt∥2E_t := \rho G_t / \|G_t\|_2 is a sharpness penalty perturbation in which ρ>0\rho > 0 is a penalty parameter and Gt:=1∣Bt∣∑ξi∈Bt∇f(Wt,ξi)G_t := \frac{1}{|\mathcal{B}_t|} \sum_{\xi_i \in \mathcal{B}_t} \nabla f(W_t, \xi_i). SAM has demonstrated considerable empirical successes [3, 10, 41].

Naturally, these successes of SAM attracted both empirical and theoretical research [3, 11, 67, 55], and inspired a large family of variants largely motivated by two obvious goals: (a) finding EtE_t that better captures sharpness [34, 75], and (b) reducing the cost of the additional gradient evaluation required for EtE_t [41, 14]; we survey them with more details in Appendix 2. F-SAM [38] noted that the full gradient direction degrades generalization and proposed EtE_t along the pure stochastic noise, computed by subtracting a scaled exponentially moving average (EMA) of stochastic gradients from a fresh mini-batch gradient, and observing that EMA estimates the full gradient. Nevertheless, the variants of SAM have largely focused on improving SGD as the base optimizer empirically [34] as well as theoretically [29], but with very limited inclusion of adaptive preconditioned updates and without any backing convergence theory [61]. In the meantime, ADAM [32] and ADAMW [43] have become the mainstream optimizers for LLMs.

MUON [27], which orthogonalizes the momentum of matrix-valued parameters (see Section 3), has also quickly become one of the most sought-after optimizers for LLM training: it scales to LLM pre-training [40, 56], it was used to pre-train open-weight frontier models [31, 20], and its convergence is now well understood, including under heavy-tailed gradient noise [30, 24, 25]. In many cases, MUON remains competitive to ADAMW when fine-tuning ADAMW-pretrained LLMs, while reducing the required resources significantly [40, 47]. A MUON-pretrained model fine-tuned with MUON outperforms its ADAMW-fine-tuned counterpart [40] and, since switching the optimizer between pre-training and fine-tuning can erode acquired knowledge [51] due to optimizer mismatch, the growing number of MUON-pretrained open-weight models makes MUON the natural optimizer for fine-tuning them. Yet, to the best of our knowledge, the only work combining SAM with MUON is the concurrent and unpublished work of Zhong et al. [74], which pairs a spectral version of vanilla SAM EtE_t with a MUON update and evaluates it empirically, without any convergence theory.

Furthermore, stochastic gradient noise in deep networks is known to be heavy-tailed [60, 21], markedly so in attention-based language models [72, 2]. In fact, the tail of the noise in SGD was found to avoid sharp minima and settle in flatter ones [65], which is precisely the goal of SAM. Yet existing analyses of SAM assume either deterministic gradients [1] or stochastic gradients with bounded variance [59]. To the best of our knowledge, no work has studied the empirical or theoretical performance of SAM under heavy-tailed noise.

From the preceding discussion, we identify three gaps at the intersection of SAM, MUON, and LLM training. First, SAM variants have been designed and analyzed almost exclusively around SGD; their only pairing with MUON [74] uses a vanilla SAM perturbation that doubles the per-iteration gradient cost and comes with no convergence guarantee. Second, although heavy-tailed gradient noise is pervasive in LLM training, it is unknown, empirically or theoretically, whether and when SAM remains beneficial in this regime. Third, it is open whether a sharpness-aware perturbation can be added to MUON at essentially no extra cost while retaining the convergence guarantees of MUON under heavy-tailed noise. We bridge all these gaps in our work.

In this paper, we propose Sharpness-aware Orthogonalized Momentum Algorithms, which build a spectral-friendly perturbation from quantities that MUON already holds, namely, the perturbed gradient of the previous iteration and the scaled MUON momentum. Effectively, it needs half the number of gradient evaluations than standard SAM approaches: T+1T + 1 gradient evaluations over T iterations instead of the 2T of its fresh perturbation counterpart FP-SOMA, a spectral adaptation of F-SAM. We also propose OP-SOMA, which removes the component of the perturbation aligned with the previous MUON step (see Section 4). We then prove that SOMA reaches an ϵ\epsilon-stationary point (for some ϵ>0\epsilon > 0) in the nuclear norm under appropriate smoothness requirements and in the presence of heavy-tailed noise with a bounded p-th central moment, and our analysis leads us to an estimate with an irreducible floor of order ρν\rho^{\nu} due to the nonzero perturbation radius. Our guarantee holds for any perturbation direction as well as recovers the convergence rate of MUON at ρ=0\rho = 0, and our analysis also shows that the reuse of the stale gradient costs little by way of accuracy (see Section 5). Empirically, on synthetic problems with a controlled tail index, the spectral variants reduce the optimality gap of MUON by up to 40% under even the heaviest tails, whereas SAM and F-SAM on SGD degrade sharply. Additionally, the spectral perturbations outperform the Frobenius ones. We further evaluate all our proposed methods on 4-bit PTQ and observe catastrophic forgetting in nanoGPT and Pythia-70M (see Section 6).

References (68)