Muon Dynamics as a Spectral Wasserstein Flow

Gabriel PeyréNeurIPS 2026

TL;DR

Modern deep learning optimizers like Muon don't just nudge individual weights down a slope; they normalize entire blocks of matrix parameters using their spectral properties (eigenvalues). This paper asks what happens to these matrix-aware optimizers when neural networks become infinitely wide. By inventing a new family of optimal transport metrics—"Spectral Wasserstein distances"—the author reveals that matrix normalization isn't just a clever algebraic trick, but true steepest descent through a warped, matrix-aware geometric landscape.

What Problem Does This Paper Address?

To understand how massive neural networks train, theorists often zoom out to the mean-field regime. Instead of tracking millions of individual neurons, you treat an infinitely wide network layer as a continuous cloud—a probability distribution—of parameters. Under standard gradient descent, training this parameter cloud is mathematically equivalent to a smooth, downhill fluid flow governed by the classical Euclidean Wasserstein ($W_2$) distance from optimal transport theory.

Meanwhile, in practical large-scale training, optimizers like Shampoo and Muon have gained traction by abandoning simple Euclidean updates. Because neural network layers are shaped like matrices, Muon normalizes gradient updates using the operator norm (which focuses on a matrix's largest singular value, effectively orthogonalizing the update).

Here lies the gap: our classic optimal transport toolkit assumes standard Euclidean geometry, leaving us without a mathematical language to describe matrix-normalized optimizers at infinite width. Can we find a continuous geometry where Muon-style updates are also natural, downhill gradient flows?

Methods

To bridge matrix optimization and probability clouds, Gabriel Peyré studies an idealized version of Muon (deterministic, continuous-time, and with vanishing momentum) and builds a three-part framework:

  1. Measure-Level Linear Minimization Oracles (Measure-LMO): Standard normalized descent picks an update direction by solving a matrix optimization problem. Peyré lifts this to continuous probability distributions—and proves a neat trick: this infinite-dimensional problem collapses back into a tractable, finite-dimensional matrix problem governed by the uncentered covariance of the forces acting on the particles.
  2. Static Spectral Wasserstein Distance ($W_\gamma$): Classical optimal transport measures the average squared distance particles move. Here, Peyré applies a monotone matrix norm $\gamma$ (specifically Schatten $p$-norms, which measure the $p$-norm of a matrix's eigenvalues) to the global covariance matrix of all particle displacements. Setting $p=1$ (trace norm) recovers standard $W_2$ transport; setting $p=\infty$ (operator norm) yields the Muon geometry.
  3. Dynamic Equivalence: Using a "Benamou–Brenier" fluid-dynamics formulation, the paper proves that minimizing kinetic energy along a continuous path of parameter clouds equals the static $W_\gamma$ coupling cost. This unlocks the ultimate prize: proving the idealized Muon partial differential equation (PDE) is a genuine metric gradient flow.

Datasets

No standard machine learning datasets or external benchmarks are used. Because this is a foundational theoretical paper, all numerical illustrations rely on synthetic setups:

  • 2D Point Clouds & Image Shapes: Used to visualize static transport couplings and interpolations (e.g., matching a ring to two disks, or a rabbit silhouette to a club symbol, using $n=1500$ particles).
  • Synthetic Teacher-Student Tasks: Random Gaussian inputs ($z \sim \mathcal{N}(0, \text{Id}_2)$) with a 3-neuron teacher for a 2-layer ReLU MLP; random 16-token sequences fitting a 5-head teacher with a 200-head student for shallow multi-head attention; and 200-particle clouds in $\mathbb{R}^2$ for Maximum Mean Discrepancy (MMD) energy minimization.

Key Insights and Ideas

  • Cost-Robust Optimal Transport: You can view the Spectral Wasserstein distance as an adversarial game (a max–min problem). Nature picks a quadratic cost matrix $Q$ to penalize movement along certain directions, and the transport plan tries to move the cloud as cheaply as possible.
  • Freedom in Orthogonal Directions: At the Muon endpoint ($p=\infty$), the adversary puts all its penalty on the single direction of largest displacement variance. Consequently, particles are tightly policed along the main axis of movement, but enjoy tremendous freedom to cross paths in directions orthogonal to it!
Figure 1: Static coupling illustrations for two source-target pairs: exact trace assignments (p = 1) and heuristic operator couplings (p = ∞). Only a subsample of matched segments is displayed.
  • Equalizing Velocity vs. Single-File Motion: You might guess that penalizing the largest eigenvalue forces particles to march in a single line. Infinitesimally, the exact opposite happens: the Muon flow equalizes the velocity covariance across all active force directions, amplifying weaker transverse signals. This is the infinite-width twin of Muon’s matrix orthogonalization.
  • Infinite Width, Finite Equations: For linear two-layer networks initialized as Gaussians, the spectral velocity remains linear. That means an infinitely wide network stays Gaussian forever during training, allowing you to track infinitely many neurons using a compact, finite system of mean and covariance equations.

Key Results

Because this work builds mathematical formalism rather than chasing leaderboard metrics, the main results are theoretical proofs backed by qualitative visual simulations:

  • Exact Static-Dynamic Equivalence: Proves $W_\gamma^{\text{BB}} = W_\gamma$ for monotone norms, establishing that $W_\gamma$ is a true metric with the same topology as $W_2$, complete with explicit constant-speed geodesics and a generalized "Spectral Bures" formula for Gaussians.
  • Coordinated Macroscopic Flows: In MMD, ReLU MLP, and shallow attention experiments (tested across dense attention with $N_{\text{eff}} \approx 16$ and sparse attention with $N_{\text{eff}} \approx 2.1$ effective tokens), changing $p=1$ to $p=\infty$ visibly alters training trajectories. While standard $W_2$ ($p=1$) reacts locally to forces, the operator flow ($p=\infty$) produces globally coordinated particle trajectories—including an early outward "fanning" in MMD caused by amplifying small transverse force modes.

Limitations and Future Work

The author is refreshingly candid about what this paper doesn't do:

  • Not an Empirical Speedup Proof: The paper does not claim to prove why Muon beats Adam or SGD on real Transformers, nor are the numerical plots calibrated to compare wall-clock convergence speeds.
  • Idealized Muon: Real-world Muon uses momentum, stochastic minibatches, and approximate Newton–Schulz iterations. Adding momentum breaks the pure position-space gradient flow (turning it into a phase-space Liouville equation), and stochastic noise doesn't commute cleanly with spectral normalization.
  • Open PDE Theory: The gradient-flow proof assumes a smooth, well-behaved trajectory already exists (which breaks at non-smooth ReLU kinks or sudden matrix rank changes). Proving global-in-time PDE existence, particle-to-continuum convergence, and avoidance of bad local minima remain wide-open mathematical frontiers.

Summary updated

Abstract

Gradient normalization can stabilize deep-learning optimization, and spectral nor- malizations are especially natural for matrix-shaped parameter blocks; Muon is the motivating example. We study an idealized deterministic, continuous-time, vanishing-momentum version of this idea in the mean-field regime, where wide models are represented by probability measures on parameter space. Starting from normalized matrix flows, we introduce Spectral Wasserstein distances indexed by norms γon positive semidefinite matrices: the trace norm recovers the classical W2 distance, the operator norm gives the Muon geometry, and Schatten norms interpolate between them. We develop a static Kantorovich formulation, a max–min robust-cost representation, and Gaussian reductions extending the Bures formula. For monotone norms, we prove equivalence with a Benamou–Brenier formulation and obtain a gradient-flow interpretation of normalized mean-field training dynamics. Numerical experiments illustrate the resulting flows for MMD objectives, Gaussian reductions, two-layer ReLU models, and shallow attention.
BibTeX
@inproceedings{peyre2026muon,
  author = {Gabriel Peyré},
  title = {{Muon Dynamics as a Spectral Wasserstein Flow}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=sqPfZgXVES},
}

Loading related content...

Figure