Manuscript Offprint

arXiv:2610.37225

Sharpness-Aware Muon: Matrix-Aware Optimization with Momentum-Guided Perturbations

Zhiwei Zhai, Wenjing Yan, Ying-Jun Angela Zhang

Abstract

Muon is a matrix-aware optimizer that combines momentum with orthogonalization to produce structured update directions with strong empirical behavior. However, it only shapes the geometry of the update itself and does not explicitly control neighborhood worst-case loss or bias training toward flat regions, which are often linked to stronger generalization. To address this limitation, we introduce the sharpness-aware formulation of Muon. We first develop MuSAM, which incorporates Sharpness-Aware Minimization (SAM)-style perturbation into Muon's orthogonalized update and establishes a principled bridge between sharpness-aware training and matrix-aware optimization. We then show that this formulation faces an efficiency-stability tension: constructing the perturbation requires an extra gradient evaluation, while the perturbation itself is generated from a single minibatch gradient and is therefore noisy. To resolve this issue, we propose MoMuSAM, which turns Muon's momentum from an update variable into a sharpness-probing signal. By using normalized momentum as the perturbation direction, MoMuSAM removes the extra clean-gradient computation and replaces the single-batch perturbation proxy with a temporally aggregated one. We prove that both MuSAM and MoMuSAM attain the same asymptotic first-order stationarity order, and further show that MoMuSAM yields a more stable stochastic linearization than MuSAM. Experiments on standard benchmarks demonstrate that sharpness awareness consistently improves Muon.

1 Introduction

The generalization behavior of modern deep networks depends not only on how well they fit the training data, but also on the geometry of the optimization process that selects the final solution [1, 2]. This observation has increasingly shaped modern optimizer design along two complementary directions. One direction, exemplified by Sharpness-Aware Minimization (SAM), improves generalization by explicitly penalizing large neighborhood worst-case loss and thereby biasing training toward flatter regions of the landscape [3–5]. The other reshapes the update rule itself through structured transformations of gradient information, exploiting momentum, geometry, or parameter structure to alter the inductive bias of optimization beyond plain first-order descent [6–9]. Muon is a particularly compelling instance of this second direction: by coupling momentum with orthogonalization, it produces matrix-aware update directions with distinctive geometry and strong empirical optimization behavior [10].

Despite the success of both directions, however, their interaction remains poorly understood. Sharpness-aware methods primarily control the local loss geometry explored during training, whereas structured optimizers primarily control the geometry of the update used to explore it. This distinction is particularly salient in Muon, where momentum is explicitly orthogonalized into matrix-aware search directions. Such a design gives the optimizer strong control over how it moves through parameter space, while leaving unresolved whether those structured movements are guided toward locally flat, generalization-favorable regions. In this sense, Muon does not lack geometry; rather, it leaves unmodeled the part of geometry most directly tied to flatness, namely the local worst-case loss around the iterate. Existing sharpness-aware extensions of standard momentum methods suggest that internal optimizer states can be useful for constructing perturbations [11, 12], but this idea has not been systematically developed for matrix-aware orthogonalized optimization. Muon therefore provides a particularly revealing setting for studying whether update geometry and local loss geometry can be coordinated, which naturally raises the following question:

Can the internal state of a matrix-aware optimizer be made to govern not only how updates are taken, but also which local geometries are favored during training?

Our answer is affirmative, and it leads to a new optimizer family. We begin by formulating MUSAM, a sharpness-aware Muon method that couples SAM-style local worst-case perturbation with Muon's orthogonalized momentum update. This formulation plays a foundational role: it shows that explicit sharpness control is fully compatible with Muon's matrix-aware update geometry, and thereby establishes the correct starting point for sharpness-aware Muon. More importantly, it reveals the exact challenge that such an integration creates. The sharpness perturbation is expensive to construct, because it requires an additional gradient that the base Muon update does not otherwise need [13–15]. At the same time, it is built from a single minibatch gradient, and is therefore an inherently noisy and batch-local proxy for local sharpness. Prior work has shown that such stochastic linearization can be unstable and may fail to faithfully capture the broader local geometry that ultimately matters for generalization [12, 16–18]. In this way, MUSAM serves a dual purpose: it provides the first principled sharpness-aware formulation of Muon, and it exposes the precise efficiency-stability tension that the remainder of the paper resolves.

The key technical insight of this paper is that resolving this tension does not require introducing an external perturbation mechanism; instead, it requires identifying the right sharpness signal within Muon's own optimization dynamics. In particular, Muon's momentum forms a matrix-valued, temporally aggregated state that carries information across both iterations and minibatches, and is therefore typically smoother, less myopic, and more robust to batch-level noise than an instantaneous stochastic gradient [19–21]. This leads to a principled design criterion for sharpness-aware Muon: the perturbation direction should reuse the temporal information accumulated in Muon's momentum.

while also serving as a stable proxy for local ascent. Guided by this criterion, we design MoMUSAM, in which the normalized momentum generates the perturbation and the gradient is evaluated only once at the perturbed point. Rather than merely reusing an existing optimizer state, this design connects sharpness probing with Muon's temporal momentum dynamics, turning momentum from a pure update variable into a history-aware geometric probe of local sharpness.

This design has consequences at three levels. Algorithmically, MoMUSAM eliminates the extra clean-gradient evaluation required by MUSAM, bringing sharpness-aware Muon much closer to the computational profile of vanilla Muon. Statistically, it replaces a highly local single-batch perturbation with a temporally aggregated one, yielding a more stable slope proxy for stochastic linearization. Theoretically, this distinction is substantive rather than cosmetic: our analysis shows that MUSAM and MoMUSAM attain the same asymptotic first-order stationarity order, while MoMUSAM admits a sharper certified directional-stability bound in the stochastic regime. More broadly, our results reveal a new principle for optimizer design: internal optimizer states can encode reusable geometric information, and exploiting that information can lead to genuinely stronger training algorithms. The contributions of this paper are summarized as follows.

● We introduce, to the best of our knowledge, the first systematic sharpness-aware formulation of Muon. In particular, we establish MUSAM, which unifies Muon’s matrix-aware orthogonalized updates with an explicit SAM-style approximation to local worst-case training and makes sharpness control an intrinsic part of the Muon framework.

● We uncover and resolve the fundamental efficiency–stability tension in sharpness-aware Muon. Our proposed MoMUSAM turns Muon’s momentum from an update variable into a sharpness-probing signal, thereby reducing extra gradient cost and replacing the noisy single-batch perturbation with a more stable aggregated direction.

● We provide convergence guarantees for both MUSAM and MoMUSAM, showing that they attain the same O(T−1/4)\mathcal{O}(T^{-1/4}) average first-order stationarity order for the original objective at both the clean iterates and the corresponding perturbed query points. Beyond matching this convergence guarantee, we prove that MoMUSAM improves the certified average directional-linearization stability from O(T−3/4)\mathcal{O}(T^{-3/4}) for MUSAM to O(T−1)\mathcal{O}(T^{-1}), while retaining only one gradient evaluation per iteration.

  • Through experiments on standard benchmarks, we show that introducing sharpness awareness consistently strengthens Muon, while MoMUSAM delivers a markedly better generalization-efficiency tradeoff than MUSAM. Taken together, these results position sharpness-aware Muon as a new optimizer family that tightly integrates structured matrix updates, local geometry control, and computational efficiency.

References (59)