Skip to article
← All posts

Optimal transport

Muon as a spectral Wasserstein flow

From matrix orthogonalization to a geometry of distributions.

In my paper Muon Dynamics as a Spectral Wasserstein Flow, I connect a matrix optimizer to optimal transport by changing how a distribution’s motion is measured.

Muon replaces the nonzero singular values of its momentum matrix by ones. Ignoring momentum and stochasticity, write \(G_k=\nabla F(X_k)=U_k\Sigma_k V_k^\top\) using only its strictly positive singular values. This gives the update direction

\[X_{k+1}=X_k-\eta_k U_kV_k^\top.\]

Here \(U_kV_k^\top\) is the partial polar factor; set it to zero when \(G_k=0\). No arbitrary directions from a zero-singular-value subspace are added.

The spectral Wasserstein distance uses a continuous, convex, positively one-homogeneous gauge \(\gamma\) on positive semidefinite matrices, positive away from zero and monotone in the positive semidefinite order. A monotone matrix norm restricted to that cone is one example. For probability measures on \(\mathbb R^d\) with finite second moments, define

\[\begin{aligned} \Sigma_\pi&=\int(y-x)(y-x)^\top\,\mathrm d\pi(x,y),\\ \mathsf W_\gamma(\mu,\nu)^2 &=\inf_{\pi\in\Pi(\mu,\nu)}\gamma(\Sigma_\pi). \end{aligned}\]

Here \(\Pi(\mu,\nu)\) denotes all couplings. The trace choice \(\gamma(S)=\operatorname{tr}(S)\) recovers \(\mathsf W_2\); on the positive semidefinite cone it is the restriction of the nuclear norm, not a norm on all symmetric matrices. The operator norm \(\gamma(S)=\|S\|_{\mathrm{op}}\) measures the largest directional mean-square displacement.

The connection comes from the infinitesimal cost \(\gamma(\int vv^\top\,\mathrm d\mu)\). For particles \(\mu_X=n^{-1}\sum_i\delta_{x_i}\) stacked as rows of \(X\), the operator choice gives \(n^{-1}\|\dot X\|_{\mathrm{op}}^2\).

Proposition 1 (the polar descent direction). For a loss \(\mathcal F\) with differentiable particle lift \(F(X)=n\mathcal F(\mu_X)\), one steepest-descent velocity in this geometry is

\[\begin{aligned} G&=\nabla F(X)=U\Sigma V^\top,\\ \dot X&=-\|G\|_*UV^\top, \end{aligned}\]

where \(\|G\|_*=\sum_i\sigma_i\) is the nuclear norm and the same partial-polar convention is used. Indeed, this velocity minimizes

\[V\longmapsto \frac1n\langle G,V\rangle_{\mathrm F} +\frac1{2n}\|V\|_{\mathrm{op}}^2:\]

the dual inequality \(\langle G,V\rangle_{\mathrm F}\ge-\|G\|_*\|V\|_{\mathrm{op}}\) is attained by the displayed choice. The minimizing velocity need not be unique at a rank-deficient nonzero gradient. This selected velocity is Muon’s polar direction with a scalar speed factor; under the paper’s regularity hypotheses, its idealized continuous-time, zero-momentum mean-field dynamics has the corresponding \(\mathsf W_\gamma\) gradient-flow interpretation.

How these posts and numerical experiments were prepared: AI disclosure.

Subscribe with an RSS reader: RSS Atom

How to subscribe

RSS and Atom let a reader app collect new posts for you; they are not email subscriptions. Opening these links in Safari may display plain text instead of a subscription form.

  1. Open an RSS reader, such as NetNewsWire on Mac.
  2. Choose Add feed or Subscribe in your reader (NetNewsWire calls it New Web Feed), then paste the RSS feed URL below. You can also use the Atom link above.

To copy manually, select the URL and press Command+C on Mac or Ctrl+C on Windows/Linux.

Back to the blog · Gabriel Peyré