arXiv:2610.19844cs.LGOct 2026

Manuscript Offprint

arXiv:2610.19844

Memory-Efficient Subspace Optimization with Residual Correction: From Momentum SGD to Muon

Sifan Yang, Hongyi Tao, Dingzhi Yu, Haomin Bai, Wei Jiang, Silin Gao, Pi Bu, Lijun Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Memory-efficient subspace optimization has emerged as a practical approach to reducing the memory cost of LLM training while preserving optimization performance. Previous algorithms typically rely on the leading singular subspace of stochastic gradients, yet the gradient noise may dominate the subspace in later training stages and can prevent convergence. To overcome this limitation, we adopt a residual correction framework, which maintains the optimizer states in the subspace and adds the orthogonal residual gradient to the parameter update. We first integrate this scheme into momentum SGD to develop SMRC, which attains an O(T−1/4)O(T^{-1/4}) convergence rate for a fixed orthonormal basis, matching that of full-space momentum SGD. Our analysis introduces a subspace virtual iterate to resolve the coupling between the momentum and the residual correction. Furthermore, we extend SMRC to a multi-stage variant which periodically recomputes bases to track the evolving dominant subspace and retains the same rate. Since each basis refresh breaks the consistency of the virtual iterates, we devise a boundary correction approach that aligns them across stages. Beyond momentum SGD, we incorporate our framework into Muon and propose PMRC, which applies the matrix sign to the projected momentum. Through a weighted momentum tracking analysis that accounts for the residual gradient, we establish an O(T−1/4)O(T^{-1/4}) convergence rate for PMRC, which matches the rate of full-space Muon. We also design a multi-stage PMRC with periodically refreshed bases, which maintains a convergence rate of the same order. Extensive experimental results confirm the effectiveness and efficiency of our algorithms.

1 INTRODUCTION

Large language models (LLMs) (Vaswani et al., 2017; Brown et al., 2020; OpenAI, 2023; Bai et al., 2023; Guo et al., 2025; Team et al., 2025) have demonstrated strong capabilities in dialogue (Thoppilan et al., 2022), language understanding (Chowdhery et al., 2023), mathematical reasoning (Lewkowycz et al., 2022) and code generation (Chen et al., 2021). As model scale grows, training imposes substantial computational and memory demands (Brown et al., 2020; Chowdhery et al., 2023; Touvron et al., 2023). The widely used AdamW optimizer (Kingma & Ba, 2015; Loshchilov & Hutter, 2019) further increases memory consumption, since its first- and second-moment estimates are each as large as the model itself. To alleviate the memory overhead, recent work has explored different forms of memory-efficient training, ranging from restricting the set of trainable parameters (Houlsby et al., 2019; Ben Zaken et al., 2022; Hu et al., 2022; Zhang et al., 2023; Pan et al., 2024) to maintaining optimizer states in low-dimensional subspaces (Zhao et al., 2024; He et al., 2025; Chen et al., 2025a; Pan et al., 2025a). In this work, we focus on memory-efficient subspace optimization, which reduces optimization memory by maintaining the optimizer states in

*Lijun Zhang is the corresponding author.

a low-dimensional subspace. GaLore (Zhao et al., 2024) is a representative method in this line of work. For a weight matrix Wt∈Rm×nW_t \in \mathbb{R}^{m \times n}, GaLore utilizes an orthonormal basis P∈Rm×rP \in \mathbb{R}^{m \times r} with r≪min⁡{m,n}r \ll \min\{m, n\} and projects the gradient Gt∈Rm×nG_t \in \mathbb{R}^{m \times n} into the space Rr×n\mathbb{R}^{r \times n}, where the optimizer maintains its states, reducing the memory complexity from O(mn)O(mn) to O((m+n)r)O((m + n)r). To construct the projection matrix, GaLore computes the leading singular vectors of the stochastic gradient to capture its dominant directions and periodically recomputes PP via SVD during training.

As shown by He et al. (2025), GaLore may fail to converge to a stationary point under standard stochastic assumptions. Since the projection basis is estimated from stochastic gradients, whose leading singular directions can be dominated by anisotropic noise rather than the true gradient in later training stages, the selected subspace fails to capture gradient directions. While GoLore (He et al., 2025) replaces the SVD basis with random projections and establishes convergence under standard assumptions, its random subspaces do not exploit dominant gradient directions and are less effective in practice. Recent methods that retain gradient-dependent subspaces either require stronger assumptions (Robert et al., 2025) or offer no memory advantage in the worst case (Pan et al., 2025a). Therefore, there still remains a lack of convergence guarantees for memory-efficient subspace optimization with gradient-dependent dominant subspaces under standard assumptions.

Subspace Momentum SGD with Residual Correction (SMRC). Inspired by Chen et al. (2025a), we adopt a residual correction framework, which maintains optimizer states in a low-dimensional subspace and adds the residual gradient in its orthogonal complement to the update. We incorporate this framework into momentum SGD (Liu et al., 2020) and propose SMRC, which keeps momentum only in the projected space and reduces optimizer-state memory from O(mn)O(mn) to O((m+n)r)O((m+n)r). Although the projected momentum update and the residual correction lie in orthogonal subspaces, they remain coupled across iterations. To overcome this difficulty, we devise a subspace virtual iterate strategy that absorbs the momentum into an auxiliary trajectory. SMRC achieves an O(T−1/4)O(T^{-1/4}) convergence rate for any fixed orthonormal basis, matching that of full-space momentum SGD. Furthermore, since the dominant gradient subspace evolves during training, practical methods periodically refresh the projection matrix P, and we accordingly extend SMRC to a multi-stage variant. A direct application of the single-stage analysis results in a mismatch between virtual iterates at stage boundaries. We design a boundary correction approach that preserves the consistency of the virtual sequence. Our multi-stage SMRC attains the same rate as that of single-stage SMRC.

Projected Muon with Residual Correction (PMRC). Beyond momentum SGD, we apply the residual correction framework to Muon (Jordan et al., 2024), an effective optimizer for LLM training (Liu et al., 2025; Team et al., 2025), and develop PMRC. It maintains momentum in the projected coordinates and applies the matrix sign to the low-dimensional momentum. This nonlinear dependence of the update on the momentum invalidates the subspace virtual-iterate construction used for SMRC. To address this challenge, we present a weighted momentum tracking analysis that jointly characterizes momentum accumulation and effects induced by the residual correction. The matrix-sign step corresponds to steepest descent under the spectral norm and is characterized by the nuclear norm (Bernstein & Newhouse, 2024), whereas the residual gradient correction is measured in the Frobenius norm. We establish convergence under a mixed stationarity measure and PMRC attains the same O(T−1/4)O(T^{-1/4}) rate as that of full-space Muon (Li & Hong, 2025). Similarly, we generalize PMRC to a multi-stage setting with periodically refreshed projection bases that better capture the evolving dominant gradient subspace and improve practical performance. The multi-stage variant retains the same O(T−1/4)O(T^{-1/4}) convergence rate.

Finally, we evaluate our methods through extensive experiments. On synthetic problems, we examine the residual correction and the multi-stage basis refresh in SMRC, and the results show that the residual correction restores convergence while periodic refreshes track the evolving dominant gradient subspace. For practical LLM training, we develop a practical implementation of PMRC and evaluate it on LLaMA pretraining across four model scales from 60M to 1.3B parameters and on six supervised finetuning settings. Our PMRC consistently performs favorably against prior memory-efficient methods across different model scales and training settings.