arXiv:2611.07084cs.DCNov 2026

Manuscript Offprint

arXiv:2611.07084

DMuon: Scaling Matrix Optimizers in Data Parallelism with Topology-Aware Matrix Ownership and Communication

Starrick Liu, Ruizhi Chengze, Lufang Chen, Michael Zhao, Ran Yu, Xiaofan Li, dance kuzi, Yue Zhang, Zijuan Lin, SongAo Han, YongHua Chen, Ruyi Gan, Hao Wang

ABSTRACT

Matrix optimizers such as Muon update whole weight matrices, which conflicts with the element- or row-wise sharding of data-parallel runtimes. Once parameters are sharded as well, matrix optimizers incur extra communication or repeated computation. We present DMuon, a matrix-granular optimizer runtime for PyTorch FSDP (ZeRO-2/3) and HSDP. DMuon assigns each matrix a unique owner, which performs the Newton–Schulz (NS) iteration and optimizer update on the full matrix, and balances the load across owners by computational cost. On HSDP, ownership is global across replicas, so the cluster keeps a single copy of gradients and optimizer state, and updated parameters are published across nodes as soon as they are ready, overlapping subsequent computation. This layout makes every collective sparse and variable in length, so DMuon schedules these collectives as their data becomes ready and routes them along the cluster's two-level network. On up to 256 H100 GPUs, across three dense LLMs and two VLA models, DMuon matches or exceeds the training throughput of PyTorch FSDP2 with AdamW, reaching 1.05×1.05\times that of FSDP2 with AdamW at the median on 256 GPUs. The optimized parameter gathering and gradient reduction absorb the extra communication and computation a matrix optimizer requires. Against a gather-then-replicate Muon baseline, DMuon's throughput is 2.1 times as high at the median.

1 INTRODUCTION

Muon (Jordan et al., 2024) brings orthogonalization into neural-network optimization. Unlike AdamW (Loshchilov & Hutter, 2019), the object Muon updates is a whole two-dimensional weight matrix, and cutting a matrix into shards and running Newton–Schulz (NS) iteration on each one is in general not equivalent to running NS once on the whole matrix. Training at frontier scale, meanwhile, relies on Fully Sharded Data Parallel (FSDP, i.e., ZeRO-2/3) and its Hybrid Sharded Data Parallel (HSDP) variant to spread model state (Zhao et al., 2023), which rests on the assumption that element-wise updates commute with sharding. Matrix optimizers break this assumption.

Existing work handles this conflict along two lines. The first gathers the gradient shards of all ranks back into whole matrices before the optimizer step and runs NS on every rank, which preserves the semantics at the cost of an extra gather and repeated NS computation (Liu et al., 2025). The second makes a few ranks responsible for each matrix and, on ZeRO-1, already removes the extra communication from the optimizer step (Lim et al., 2025; Wang et al., 2026a; StepFun Team, 2026; DeepSeek-AI, 2026), but in all of these approaches the parameters are fully replicated on every rank. On parameter-sharded runtimes such as FSDP and HSDP, no work yet removes both the repeated computation and the extra communication at once (Section 8).

DMuon makes exactly one rank responsible for each matrix, called its owner. In the backward pass, the matrix's gradient is reduced from all ranks to the owner, the owner performs one NS and one optimizer update, and in the forward pass the new parameters are broadcast back to all ranks. These two communications replace exactly the ReduceScatter and AllGather that FSDP already performs, without adding a communication phase. HSDP confines sharding to the node, yet each replica still runs the same optimizer update, which for Muon means the same NS repeated on every replica. DMuon keeps this pattern, but each matrix has a single owner in the whole cluster, the gradient is reduced to it, the optimizer state is stored only on it, and NS runs only once.

The shape of the communication changes accordingly. The matrices of a layer belong to different owners and differ in size, so each communication is rooted at only a few owners and its segments have different lengths. It is a sparse, variable-length ReduceScatter or AllGather. Existing communication libraries support this pattern poorly, and primitives for the reduction side are particularly lack-

∗^{*}Corresponding authors: Starrick Liu (starrick@x2robot.com); Hao Wang (wanghao@x2robot.com).

DMuon: Scaling Matrix Optimizers in Data Parallelism with Topology-Aware Matrix Ownership and Communication

ing (Wang et al., 2026b). These communications also cross two network levels with very different bandwidths. DMuon follows the established idea of organizing collective communication by network level (Shah et al., 2023; Hidayetoglu et al., 2024; Cao et al., 2025) and implements three sparse, variable-length operators.

DMuon makes three contributions.

  1. Communication-free matrix ownership. We define owners at matrix granularity, uniformly for FSDP (ZeRO-2/3) and HSDP. Each matrix runs NS and its optimizer update once, on its owner, at the same logical communication volume as FSDP, and owners are assigned by computational cost so that NS work stays balanced as the cluster grows.

  2. Globally unique ownership across HSDP replicas. On HSDP, owners are unique across replicas, so the cluster keeps a single copy of gradients and optimizer state. A cross-step publish returns each updated parameter to every node as soon as it is ready, overlapping subsequent computation.

  3. Topology-aware variable-length communication operators. We implement AllGatherV, ReduceScatterV, and the cross-node publish as single kernels that send or forward data as soon as it is ready instead of in a fixed order, complete multicast and reduction in one hop inside a node, and shrink the chain from the number of ranks to the number of nodes.

We evaluate DMuon on up to 32 nodes with 256 H100 GPUs, under several FSDP and HSDP sharding configurations, on three dense LLMs and two VLA models. DMuon matches or exceeds the training throughput of PyTorch FSDP2 with AdamW, reaching 1.05×1.05 \times its throughput at the median on 256 GPUs, and is 2.1 times as fast at the median as Muon implemented along the first route. DMuon is open source at https://github.com/X-Square-Robot/dmuon and has been used in the pre-training of two production foundation models, Wall-OSS-0.5 (Yu et al., 2026) and WALL-WM (Li et al., 2026).

References (80)