Manuscript Offprint

arXiv:2608.22994

A Physical Response-and-Memory Model for Muon Optimization

Yinze Hu, Hongjun Xiang, Xingao Gong, Hongyu Yu

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

Abstract

Training large language models is costly. How low a loss the same compute can ultimately reach depends on how each step's gradient is converted into a weight update; the rule that performs this conversion is the optimizer. From SGD and AdamW to the recent Muon, effective update rules have mostly been shaped by engineering intuition and then selected on benchmarks. Muon semi-orthogonalizes the momentum matrix before applying the update and has kept breaking records on public training benchmarks; yet why the semi-orthogonalized direction works, and over how long a history the momentum should average, are two questions at present answered mainly by experience. Here we treat the weight matrix during training as a responsive medium with memory and build a physical model for it, in which both questions find answers: the semi-orthogonalized direction is the maximally dissipative response under an output-side safety budget, which explains why it works; momentum is the internal stress accumulated by the medium; how long it should average is set by the relaxation of this stress, and a real medium relaxes on more than one timescale, the simplest form being one fast and one slow. On this basis we propose the Bi-Maxwell optimizer. The framework further yields a testable consequence: gradient directions change fast early in training and more slowly later, so the optimal memory length should grow with training stage; step-by-step measurements of a proxy for it by a read-only probe across 8 independent training trajectories are consistent with this consequence. Replacing the memory kernel alone, from a single timescale to two, brings training to the target loss in noticeably fewer steps on a public large-language-model optimizer benchmark.

1 Introduction

Large language models are becoming infrastructure for science and industry, and their training cost has risen steeply in tandem: a single frontier pretraining run routinely occupies thousands of GPUs for weeks. With compute costs this high, how the weights are updated at every step, that is, the choice of optimizer, directly determines how low a loss the same compute can ultimately reach.

The essence of training is to repeatedly compute gradients over massive text and adjust billions of parameters accordingly; within this, the optimizer is the rule that converts each step's gradient into a parameter update. It simultaneously determines three things: training speed (how many steps are needed to reach a given loss), stability (whether the loss diverges), and the loss attainable under a given compute budget.

The most basic optimizer of stochastic training is stochastic gradient descent (SGD): take a step against the gradient of the current batch of data, Wt+1=Wt−ηgt[40]W_{t+1} = W_t - \eta g_t[40]. Batch-to-batch gradient noise makes single-step updates jitter; the momentum method replaces gtg_t with an exponential moving average of past gradients, Mt=βMt−1+(1−β)gtM_t = \beta M_{t-1} + (1 - \beta) g_t, suppressing the noise and accelerating convergence [36]^{[36]}. This recursion is often read as a particle moving through a viscous medium, with the momentum coefficient playing the role of the particle's mass [37]^{[37]}; its effect in deep network training has also been examined systematically [43]^{[43]}. The picture of this paper differs: the memory

*Corresponding author: hongyuyu20@fudan.edu.cn here is not a particle’s inertia but the medium’s internal stress, and how long it lasts is set by the relaxation spectrum of that stress (Sec. 3.2). This skeleton, an instantaneous gradient plus a time average, has been inherited by almost every optimizer since.

Adam introduces a per-coordinate second-moment estimate vtv_t, giving each parameter its own adaptive step size, Wt+1=Wt−ηMt/(vt+ϵ)W_{t+1} = W_t - \eta M_t / (\sqrt{v_t} + \epsilon), and quickly became the most widely used optimizer in deep learning[19]; its decoupled-weight-decay variant AdamW (adding −ηλWt-\eta \lambda W_t to the update) remains the default choice of mainstream large-model training stacks to this day[26].

In the past two years Muon has taken a different route: it semi-orthogonalizes the momentum matrix through Newton–Schulz iterations before using it for the update, Wt+1=Wt−ηUtVt⊤W_{t+1} = W_t - \eta U_t V_t^\top (with UtVt⊤U_t V_t^\top the orthogonal polar factor of the momentum matrix), and has kept breaking records on public language-model training speedruns[15, 16]; it has since been scaled to the billion-parameter level[25] and has run stably throughout frontier training at the trillion-token scale[18]. Refinements have followed in quick succession: per-neuron adaptive scaling[21], second-moment injection[41], distributed orthogonalization[1]. Muon is now one of the most actively developed optimizer families.

But for SGD, AdamW and Muon alike, much of the design preceded theory: the rules came from engineering intuition and were repeatedly tested, discarded and selected on benchmarks. Optimizer iteration is in essence a dynamical process in discrete time; one update is one step of motion, and momentum is memory. What we lack is a systematic theory from physical assumptions to algorithmic form that answers two basic questions: why the semi-orthogonalized direction works, and how long the momentum memory should last. The answers given here are conditional: they rest on the assumptions set out explicitly in Section 3, whose boundaries and relaxed generalizations are given in Appendix F. Meanwhile, the work that mathematized spectral-norm steepest descent also points out that nailing down the precise role of the exponential moving average is perhaps still an open problem[3].

Physical models already have successful precedents in AI: the 2024 Nobel Prize in Physics recognized foundational discoveries and inventions enabling machine learning with artificial neural networks [44]^{[44]}, and physics-informed neural networks write physical laws directly into models and training [39]^{[39]}. These works use physics to understand and design the network itself; for the optimization process that trains the network, such physical models remain scarce [9,27]^{[9, 27]}.

In this paper we construct a physical model of the training optimization process, treating the weight matrix during training as a responsive medium with memory (Fig. 1), and derive its laws of motion from how it responds to applied forces: Muon's semi-orthogonalized direction is the maximally dissipative response under an output-side safety budget; momentum is the internal stress accumulated by the medium, how long it should average is set by the relaxation of this stress, and the relaxation of a real medium has more than one timescale, the simplest form being one fast and one slow. On this basis we propose the Bi-Maxwell optimizer: keeping all other components of Muon unchanged, it replaces the single-timescale momentum with a two-timescale stress memory.

On modded-nanogpt, the public NanoGPT optimizer training benchmark[15], this replacement brought training to the target at step 2635, ahead of the 2690-step record standing at the time (July 2026) (and likewise brought training to the target 40 steps earlier on the bare tuned-Muon baseline without SOAP or other add-ons). The same framework also points to a quantity not measured directly before: the optimal memory length of momentum, that is, over how many recent steps of gradients it should average. Early in training directions change fast and the optimal memory is short; later they change slowly and the optimal memory should lengthen. Step-by-step read-only measurements on 8 independent trajectories are consistent with this picture (Experiment 2). The nature of this comparison deserves a word: the baseline of this benchmark is not one we set ourselves, but the standing record of a public track that the community has tuned adversarially over a long period, its hyperparameters and components repeatedly selected by many hands. Gaining a further speed-up on such a configuration is harder than obtaining the same margin over a self-chosen baseline.

The paper is organized as follows. Section 3 builds the physical model and completes the derivation: first the Muon update direction is derived, then momentum is identified as the medium's internal stress memory, and finally the memory kernel is extended from a single timescale to one fast

Figure

Local chain for the selected entries (i,α)(i, \alpha)

① δyα=xiδWαi\delta y_{\alpha} = x_i \delta W_{\alpha i}

② δΦ=eαδeα=eαδyα=eαxiδWαi\delta \Phi = e_{\alpha} \delta e_{\alpha} = e_{\alpha} \delta y_{\alpha} = e_{\alpha} x_i \delta W_{\alpha i}

③ Xαi=−eαxiX_{\alpha i} = -e_{\alpha} x_i

Mismatch potential

Φ=12∑a=1mea2\Phi=\frac{1}{2}\sum_{a=1}^{m}e_{a}^{2} =12(e12+⋯+eα2+⋯+em2)=\frac{1}{2}\Big(e_{1}^{2}+\cdots+\boxed{e_{\alpha}^{2}}+\cdots+e_{m}^{2}\Big)

only eα2e_{\alpha}^{2} contributes to the first-order variation

input quantities

weights / outputs / targets

driving force (conjugate)

energy (potential)

unchanged channels

conjugate driving force matrix XX

Figure

General definition (all entries)

Xij=−∂Φ∂WijX_{ij}=-\frac{\partial\Phi}{\partial W_{ij}}

Figure 1: Construction of the responsive medium and the mismatch potential (schematic). An input xx passes through the weight matrix WW to produce the output y=Wxy = Wx; the mismatch between the output and the target y⋆y^\star, eα=yα−yα⋆e_\alpha = y_\alpha - y_\alpha^\star, is measured by the mismatch potential Φ=12∑αeα2\Phi = \frac{1}{2} \sum_\alpha e_\alpha^2, so that each output channel is equivalent to a linear spring whose elongation is the mismatch. For a selected coupling element WαiW_{\alpha i}, only eαe_\alpha contributes to the first-order variation, giving the conjugate driving force Xαi=−eαxiX_{\alpha i} = -e_\alpha x_i; assembling all components gives X=−∂Φ/∂WX = -\partial \Phi / \partial W. The linear readout and quadratic mismatch shown here are an illustrative special case chosen so that every step can be drawn; for a general nonlinear network the same definition is carried by the backpropagation gradient and does not depend on this special case (full derivation in Sec. 3).

and one slow. Section 4 performs the controlled kernel-swap experiment: only the memory kernel is exchanged, all other components are held fixed, alternative explanations and readout artefacts are checked item by item, and cross-hardware transfer is tested. Section 5 uses a read-only probe to examine whether the optimal memory length grows with training. The Discussion covers mechanism and limitations; Methods and the appendices give protocol details, proofs and per-seed data.

References (45)