---
title: 'DeMuon: Decentralized Matrix Optimization'
url: https://www.emergentmind.com/topics/demuon
type: topic
---

# DeMuon: Decentralized Matrix Optimization

Searching arXiv for DeMuon and closely related decentralized Muon work.
DeMuon is a decentralized matrix optimization algorithm that extends the centralized Muon optimizer to peer-to-peer optimization over a communication graph. It is formulated for finite-sum matrix problems of the form
\[
\min_{X\in\mathbb{R}^{m\times n}} f(X):=\frac1N\sum_{i=1}^N f_i(X),
\]
where node \(i\) holds a local objective \(f_i\), communication is performed without a central coordinator, and each node observes noisy stochastic gradients. DeMuon preserves Muon’s matrix-structured update through the matrix sign map and Newton–Schulz orthogonalization, while adding gradient tracking to mitigate heterogeneity among local functions. Under heavy-tailed noise with finite \(\alpha\)-th moments, it provides an iteration-complexity guarantee for reaching an approximate stochastic stationary point in nuclear norm, with dependence on the target tolerance matching the best-known centralized dependence. It is presented as the first direct extension of Muon to decentralized optimization over graphs with provable complexity guarantees [2510.01377].

## 1. Problem class and motivation

DeMuon is motivated by three observations. First, Muon is matrix-native: rather than vectorizing parameters, it operates directly on matrices and uses orthogonalized updates. Second, most decentralized methods, including DSGD, EXTRA, and gradient-tracking variants, are typically applied after vectorization and therefore do not preserve matrix structure. Third, DeMuon explicitly targets stochastic gradients with only finite \(\alpha\)-th moments, \(\alpha\in(1,2]\), rather than sub-Gaussian noise, placing heavy-tailed stochasticity at the center of the analysis [2510.01377].

The communication model is encoded by a mixing matrix \(W\in\mathbb{R}^{N\times N}\) satisfying \(W\ge 0\), primitiveness, and doubly stochasticity:
\[
W\mathbf 1_N=\mathbf 1_N,\qquad \mathbf 1_N^\top W=\mathbf 1_N^\top.
\]
Its consensus rate is controlled by
\[
\lambda := \left\|W-\frac{1}{N}\mathbf 1_N\mathbf 1_N^\top\right\| < 1.
\]
This places DeMuon in the standard decentralized optimization setting over graphs, but its update geometry is explicitly matrix-based rather than Euclidean-vector-based [2510.01377].

A central design objective is therefore to combine three ingredients that are usually studied separately: Muon-style matrix orthogonalization, decentralized communication over a graph, and gradient tracking for heterogeneous local objectives. This suggests that DeMuon is best understood not as a minor variant of DSGD, but as a graph-based control mechanism wrapped around a matrix-aware update rule.

## 2. Update structure and local state

Each node \(i\) maintains three matrix-valued states: the parameter matrix \(X_i^k\), a momentum or EMA state \(M_i^k\), and a gradient-tracking variable \(V_i^k\). The algorithm uses the recursions
\[
M_i^k = (1-\theta)M_i^{k-1} + \theta\, G(X_i^k;\xi_i^k),
\]
\[
V_i^k = \sum_{j=1}^N w_{ij}\big(V_j^{k-1} + M_j^k - M_j^{k-1}\big),
\]
\[
X_i^{k+1} = \sum_{j=1}^N w_{ij}\big(X_j^k - \eta\,\mathrm{msgn}(V_j^k)\big),
\]
with \(M_i^{-1}=0\), \(V_i^{-1}=0\), stepsize \(\eta>0\), and smoothing parameter \(\theta\in(0,1)\) [2510.01377].

The matrix sign map is defined through the reduced SVD \(M=U\Sigma V^\top\) by
\[
\mathrm{msgn}(M)=UV^\top.
\]
In the algorithmic interpretation, this is the Muon-style orthogonalized direction. The paper states that DeMuon inherits Muon’s Newton–Schulz orthogonalization idea, but its analysis works abstractly with \(\mathrm{msgn}(\cdot)\) rather than unfolding the internal Newton–Schulz iterations in detail [2510.01377].

In stacked notation,
\[
X_{[N]}=[X_1^\top,\dots,X_N^\top]^\top,\quad
M_{[N]}=[M_1^\top,\dots,M_N^\top]^\top,\quad
V_{[N]}=[V_1^\top,\dots,V_N^\top]^\top,
\]
the updates become
\[
M_{[N]}^k = (1-\theta)M_{[N]}^{k-1} + \theta G(X_{[N]}^k;\xi_{[N]}^k),
\]
\[
V_{[N]}^k = (W\otimes I_m)\big(V_{[N]}^{k-1}+M_{[N]}^k-M_{[N]}^{k-1}\big),
\]
\[
X_{[N]}^{k+1} = (W\otimes I_m)\big(X_{[N]}^k-\eta V_{O,[N]}^k\big),
\]
where
\[
V_{O,[N]}^k=[\mathrm{msgn}(V_1^k)^\top,\dots,\mathrm{msgn}(V_N^k)^\top]^\top.
\]
Because \(W\) is doubly stochastic,
\[
\overline X^{k+1}=\overline X^k-\eta\,\overline V_O^k,
\]
with
\[
\overline X = \frac1N\sum_{i=1}^N X_i.
\]
This decomposition separates local tracking dynamics from the network-average dynamics and makes clear that DeMuon’s descent direction is an average of orthogonalized tracked signals rather than raw gradients [2510.01377].

## 3. Assumptions, geometry, and stationarity

The analysis is carried out under four assumptions. The global objective is lower bounded:
\[
f(X)\ge f_{\mathrm{low}},\qquad \forall X\in\mathbb{R}^{m\times n}.
\]
Each local gradient is \(L_*\)-Lipschitz in matrix form:
\[
\|\nabla f_i(X)-\nabla f_i(Y)\|_* \le L_*\|X-Y\|,
\]
which yields the descent inequality
\[
f(Y)\le f(X)+\langle \nabla f(X),Y-X\rangle + \frac{L_*}{2}\|Y-X\|^2.
\]
The stochastic gradient oracle is unbiased and heavy-tailed in nuclear norm:
\[
\mathbb{E}[G_i(X;\xi)] = \nabla f_i(X),
\]
\[
\mathbb{E}\big[\|G_i(X;\xi)-\nabla f_i(X)\|_*^\alpha\big]\le \sigma^\alpha,\qquad \alpha\in(1,2].
\]
Finally, the network mixing matrix \(W\) is primitive and doubly stochastic [2510.01377].

The stationarity notion is adapted to matrix optimization. An \(\epsilon\)-stationary point is defined by
\[
\mathbb{E}\big[\|\overline{\nabla}F(X_{[N]}^\iota)\|_*\big]\le \epsilon,
\]
for a uniformly random output index \(\iota\in\{0,\dots,K-1\}\), where
\[
\overline{\nabla}F(X_{[N]}) := \frac1N\sum_{i=1}^N \nabla f_i(X_i).
\]
The use of the nuclear norm is consistent with Muon’s matrix geometry and with the identity
\[
\langle V_i^k,\mathrm{msgn}(V_i^k)\rangle = \|V_i^k\|_*,
\]
together with
\[
\|\mathrm{msgn}(V_j^k)\|\le 1,
\]
which are the key operator-level properties used in the analysis [2510.01377].

A noteworthy network-control result is the uniform consensus bound
\[
\|X_{[N]}^k-\mathbf 1_N\otimes \overline X^k\| \le \frac{\sqrt N\,\lambda\,\eta}{1-\lambda},\qquad \forall k\ge 0.
\]
The paper highlights this as a spectral-norm disagreement bound, rather than the more common Frobenius-norm control. This suggests that DeMuon’s consensus analysis is aligned with the same matrix-operator viewpoint that defines its update rule.

## 4. Non-asymptotic analysis under heavy-tailed noise

The proof uses a Lyapunov-like potential
\[
\mathcal P_k = f(\overline X^k) + p\|\nabla F(X_{[N]}^k)-M_{[N]}^k\|_F^\alpha + q\|V_{[N]}^k-\mathbf 1_N\otimes \overline V^k\|_*,
\]
for suitable \(p,q>0\). This combines objective decrease, momentum-estimation error, and tracking error into a single quantity [2510.01377].

A central descent inequality is
\[
\begin{aligned}
f(\overline X^{k+1}) \le\;& f(\overline X^k) -\eta\|\overline{\nabla}F(X_{[N]}^k)\|_* \\
&+2\eta\|\nabla F(X_{[N]}^k)-M_{[N]}^k\|_* +2\eta\|V_{[N]}^k-\mathbf 1_N\otimes\overline V^k\|_* \\
&+\Big(\frac{\sqrt N\,\lambda}{1-\lambda}+\frac12\Big)L_*\eta^2.
\end{aligned}
\]
This makes the analytical structure explicit: the desired stationarity term appears with a negative sign, while the perturbations arise from EMA error, tracking error, and smoothness [2510.01377].

The gradient-tracking recursion satisfies
\[
\mathbb{E}\big[\|V_{[N]}^{k+1}-\mathbf 1_N\otimes \overline V^{k+1}\|_*\big]
\le \lambda \|V_{[N]}^k-\mathbf 1_N\otimes\overline V^k\|_*
+ \frac{\lambda\theta}{1-\theta}
\left(
\mathbb{E}\big[\|\nabla F(X_{[N]}^{k+1})-M_{[N]}^{k+1}\|_*\big]+\sigma
\right),
\]
and the momentum error obeys both first-moment and \(\alpha\)-moment bounds:
\[
\mathbb{E}\big[\|\nabla F(X_{[N]}^{k+1})-M_{[N]}^{k+1}\|_*\big]
\le
(1-\theta)\|\nabla F(X_{[N]}^k)-M_{[N]}^k\|_*
+(1-\theta)L_F\Big(\frac{2\sqrt N\,\lambda}{1-\lambda}+1\Big)\eta +N\sigma\theta,
\]
\[
\begin{aligned}
\mathbb{E}\big[\|\nabla F(X_{[N]}^{k+1})-M_{[N]}^{k+1}\|_F^\alpha\big] \le\;&
(1-\theta)\|\nabla F(X_{[N]}^k)-M_{[N]}^k\|_F^\alpha \\
&+3L_F^\alpha\Big(\frac{2\sqrt N\,\lambda}{1-\lambda}+1\Big)^\alpha \theta^{1-\alpha}\eta^\alpha
+2(N\sigma\theta)^\alpha.
\end{aligned}
\]
These recursions quantify how network disagreement, smoothing, and heavy-tailed stochasticity interact [2510.01377].

The main complexity theorem chooses
\[
\eta = K^{-\frac{2\alpha-1}{3\alpha-2}},\qquad
\theta = K^{-\frac{\alpha}{3\alpha-2}},
\]
and shows that for \(\iota_K\sim \mathrm{Unif}\{0,\dots,K-1\}\),
\[
\mathbb{E}\big[\|\overline{\nabla}F(X_{[N]}^{\iota_K})\|_*\big]\le \epsilon
\]
whenever
\[
K \ge \max\left\{ \left(\frac{U_{\mathrm{dm}}}{\epsilon}\right)^{\frac{3\alpha-2}{\alpha-1}}, 4 \right\}.
\]
Equivalently,
\[
K = \mathcal O\!\left(\epsilon^{-\frac{3\alpha-2}{\alpha-1}}\right).
\]
The paper emphasizes that this matches the best-known centralized dependence on \(\epsilon\) under heavy-tailed noise. In that sense, DeMuon’s graph-based decentralization does not worsen the tolerance scaling of the leading complexity order [2510.01377].

## 5. Position within decentralized Muon design space

Relative to centralized Muon, DeMuon adds two mechanisms absent from the centralized setting: peer-to-peer consensus through \(W\) and gradient tracking through \(V_i^k\). Relative to DSGD, it replaces raw stochastic-gradient steps with momentum-smoothed, tracked, and orthogonalized matrix updates. Relative to DSGD_Clip, it does not rely on scalar clipping as the core response to heavy tails. Relative to conventional gradient-tracking methods, it retains the matrix geometry through \(\mathrm{msgn}(\cdot)\) rather than using vectorized Euclidean updates [2510.01377].

A subsequent paper, "SUDA-Muon: Structural Design Principles and Boundaries for Fully Decentralized Muon" [2604.23980], treats DeMuon as the main reference point for what a fully decentralized Muon method already looks like in the literature. In that terminology, DeMuon is a “closely related gradient-tracking mechanism combined with Muon directions,” operating on general communication graphs without a central server. The later paper argues, however, that DeMuon is structurally different from its SUDA-based design because DeMuon applies gossip-style mixing directly to the primal variables after the Muon update and does not maintain the SUDA dual variable \(\mathbf Y^k\) [2604.23980].

That later analysis frames the difference as structural rather than cosmetic. Because the nonlinear matrix-sign operator \(\operatorname{msgn}\) does not commute with linear averaging, the ordering of communication, tracking, and polarization becomes a design principle. The SUDA paper identifies two non-modular boundaries relevant to DeMuon’s interpretation: internally, tracking-before-polarization is necessary to avoid non-stationary fixed points under heterogeneous objectives; externally, fully decentralized local-polarize-then-average cannot reproduce federated average-then-polarize and therefore may fail to exhibit linear speedup even on a complete graph with exact averaging [2604.23980].

This reinterpretation does not invalidate DeMuon. Rather, it places DeMuon within a broader taxonomy of decentralized Muon methods and suggests that its behavior is constrained by the noncommutativity of matrix polarization and averaging. It should also be distinguished from DMuon, which is a distributed systems layer for exact Muon semantics with owner-based execution and near-AdamW overhead, not a graph-decentralized optimizer [2606.27153].

## 6. Empirical behavior, scope, and limitations

The original empirical evaluation of DeMuon is a decentralized transformer-pretraining study using a 3M-parameter GPT model on Multi30k for auto-regressive language modeling. Three graph topologies are considered: a complete graph, a directed exponential graph, and a ring graph. The baselines are DSGD, DSGD_Clip, and GT_NSGDm [2510.01377].

The reported pattern is that DeMuon converges rapidly at the beginning and reaches low validation loss in roughly 500 rounds. On directed exponential and ring graphs, it performs close to GT_NSGDm and clearly outperforms DSGD and DSGD_Clip. On the complete graph, it also converges quickly, but shows some later-round instability relative to GT_NSGDm while still outperforming DSGD and DSGD_Clip [2510.01377].

The later SUDA-Muon study provides a second empirical reference point. On CIFAR-100 with a 10-node ring and strong heterogeneity (\(\alpha=0.05\)), SUDA--Muon-ED, SUDA--Muon-ATC-GT, and DeMuon perform similarly after 25 epochs: SUDA--Muon-ED achieves \(44.99 \pm 5.19\%\), SUDA--Muon-ATC-GT achieves \(45.56 \pm 3.18\%\), and DeMuon achieves \(45.50 \pm 5.57\%\). In a longer 20-node, 100-epoch non-IID CIFAR-100 run, SUDA--Muon-ED reaches \(\mathbf{0.281 \pm 0.018}\) training loss and \(\mathbf{52.89 \pm 0.82\%}\) accuracy, while DeMuon reaches \(0.386 \pm 0.009\) and \(43.94 \pm 1.68\%\). On GPT-2 fine-tuning for Wikitext-2 in a mild near-IID regime, the three methods are nearly indistinguishable, with validation perplexities after four epochs all around \(18.14\) and SUDA--Muon-ED slightly best at \(18.1396\) [2604.23980].

The practical significance claimed for DeMuon is specific. It is the first direct decentralized extension of Muon with theory, it is designed for matrix-valued optimization under graph communication, and it accommodates heavy-tailed stochastic gradients. The stated limitations are also specific: the constant \(U_{\mathrm{dm}}\) in the complexity bound is complicated, the schedules \((\eta,\theta)\) are theory-driven, the experiments are preliminary, and the internal Newton–Schulz implementation is not expanded in the algorithmic description because the analysis is carried out at the level of the abstract sign map \(\mathrm{msgn}(\cdot)\) [2510.01377].

In subsequent synthesis, DeMuon is characterized as a valid fully decentralized Muon method, but not the final word on decentralized Muon design [2604.23980]. A plausible implication is that its long-term significance lies less in being a terminal algorithmic form than in establishing the first rigorous bridge between Muon’s matrix-aware geometry and decentralized stochastic optimization over graphs.

Source: https://www.emergentmind.com/topics/demuon