Manuscript Offprint

arXiv:2610.37062

EnergyCal: Taming Loss Spikes in Muon-Family Optimizers for Sparse MoE Training

Masato Fujitake

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

ABSTRACT

Sparse mixture-of-experts (MoE) language-model training can exhibit large loss spikes with Muon-family optimizers. We introduce EnergyCal, a lightweight rule that attenuates routed-expert updates according to the normalized squared Frobenius norm of their finite-step Newton–Schulz directions. EnergyCal leaves the spectral transform unchanged and adds no persistent optimizer state. We evaluate it on a 4B-parameter MoE model. Against a development-selected, lower-learning-rate MuonH recipe, EnergyCal–MuonH reduces mean thresholded loss-spike burden by 99.51% and final geometric-mean perplexity by 4.06%, with a modest throughput cost. With plain Muon at matched nominal learning rate and weight decay, the reduction in mean spike burden averages 95.98% across the two tested exponents, accompanied by small endpoint improvements. These findings support stabilization both with and without Hyperball in the evaluated setting.

Index Terms—Muon, MuonH, mixture-of-experts, energy calibration, training stability

1. INTRODUCTION

Sparse mixture-of-experts (MoE) language models route tokens unevenly across experts, creating time-varying optimization conditions [1]. This setting can be challenging for Muon-family optimizers, which use Newton–Schulz (NS) iterations to transform momentum-based updates. Muon has shown promise for language-model pretraining [2–4], while Hyperball introduces explicit control over weight and update norms [5]. Its Muon variant, MuonH, normalizes update directions and projects weights onto a fixed-radius sphere. In our custom 4B-parameter DeepSeekMoE-style model, both Muon and MuonH exhibit intermittent loss spikes, although all full-schedule runs complete. We investigate whether these loss excursions can be mitigated through a simple modification of routed-expert updates.

An expert can retain nonzero momentum even when no tokens are assigned to it in the current step. This motivates examining expert-wise update magnitudes, particularly under MuonH's fixed-norm normalization. We propose EnergyCal, a lightweight rule that attenuates each routed-expert update

Figure

Fig. 1. EnergyCal overview. (1) Sparse routing creates uneven expert traffic. (2) Each routed matrix’s post-NS energy determines qeq_e; when qe>0q_e > 0, scaling preserves the individual NS direction, not necessarily the displacement after Hyperball projection or writeback. (3) Continuous calibration reduces observed thresholded loss-spike burden. Curves are schematic, not measurements; coefficients use direction energy, not token counts.

according to the normalized squared Frobenius norm of its finite-step NS direction. Figure 1 illustrates the method. The coefficient is bounded between zero and one and is applied continuously during training. EnergyCal leaves the NS transform, momentum, and router objective unchanged, requires no token-utilization statistics, and adds no persistent optimizer state. Its energy statistic is not scale-invariant stable rank: low energy can reflect direction concentration, amplitude, or both.

We evaluate EnergyCal in two separate full-schedule studies, each using three initialization seeds. First, a frozen EnergyCal–MuonH recipe reduces mean thresholded loss-spike burden by 99.51% and final geometric-mean perplexity by 4.06% relative to a development-selected, lower-learning-rate MuonH recipe, with 1.62% lower mean throughput. Second, applying EnergyCal to plain Muon at matched nominal learning rate and weight decay reduces mean spike burden by 95.98% on average across the two tested exponents, with small endpoint improvements. Together, these results show that stabilization is observed both with and without Hyperball in the evaluated MoE setting. However, plain Muon retains intermediate-quality and speed advantages in the first study, and different evaluation banks prevent a direct ranking of the calibrated optimizer families.

Our contribution is an empirical evaluation of one-sided, post-NS energy attenuation across MuonH and plain Muon. Unlike utilization- or alignment-guided expert scaling methods [6, 7], EnergyCal relies only on the energy of each logical matrix's NS direction. The results do not establish general optimizer superiority or identify the cause of individual spikes: single-update interventions fail to rescue two examined events, and the plain-Muon study lacks a routed-only uniform-scaling control to separate energy-dependent attenuation from a simpler reduction in update magnitude. We therefore focus on the measured stability benefits and their practical trade-offs within the tested setting; Section 7 discusses these evidence boundaries.

References (22)