GraphMuon:针对图神经网络优化的图感知版 Muon 优化器
Module-Aware Optimization for Graph Neural Networks
训练 GNN 的朋友可以看看这篇:把 Muon 改造成图感知的 GraphMuon,在 OGB 基准上比 AdamW 快 1.3 到 2.4 倍,代码已开源。
论文提出 GraphMuon,把 Muon 的矩阵正交化更新适配到图传播表示的协方差结构上。理论分析显示原版 Muon 在 GNN 中会出现图导致的更新放大问题,GraphMuon 可缓解这一效应。在 3 个大规模 OGB 基准上,GraphMuon 相对 AdamW 取得 1.32 倍至 2.42 倍的验证损失 time-to-target 加速。在覆盖节点分类、归纳图分类和图回归的 15 个数据集-架构组合中,13 个场景达到更低的 time-to-target,代码已在 GitHub 开源。
Module-Aware Optimization for Graph Neural Networks
Different optimizers impose different geometries on parameter updates. Adaptive methods such as Adam and AdamW use coordinate-wise updates, while matrix-aware optimizers such as Muon utilize weight-matrix structure through orthogonalized updates. For Graph Neural Networks (GNNs), however, the effective geometry of its weight matrices is shaped not only by its learned channel-mixing weights, but also by the graph-propagated representations it acts on. Thus, even if an update is well normalized as a matrix, its effect on the layer output can be amplified when applied to graph-propagated features. To address this gap, we introduce GraphMuon, a graph-aware optimizer that adapts Muon's matrix updates to the covariance structure of graph-propagated layer inputs. GraphMuon performs orthogonalization in a metric defined by these propagated representations and normalizes step sizes according to the update's induced effect on the layer representation. We show that theoretically, vanilla Muon can suffer from graph-induced update amplification, while our GraphMuon can mitigate this effect. As such, our GraphMuon yields a graph-metric analogue of Muon's polar update step. Empirically, GraphMuon achieves $1.32\times$-$2.42\times$ validation-loss time-to-target speedups over AdamW on three large-scale OGB benchmarks. Across 15 dataset-architecture configurations spanning node classification, inductive graph classification, and graph regression, it achieves lower time-to-target in 13 cases, while maintaining competitive or superior predictive performance. Code is available at https://github.com/guy-hadad/GraphMuon.