arXiv:2611.08924cs.LGNov 2026

Manuscript Offprint

arXiv:2611.08924

ResQAdam: Residual-Preserving Adaptive Optimization for Memory-Efficient Quantization Aware Training

Liqun Ma, Shengkun Tang, Liangyu Wang, Lin Zhao, Wei Luo, Xinjun Niu, Spandan Tiwari, Ashish Sirasao, Kun Zhang, Zhiqiang Shen

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

ABSTRACT

Quantization-aware training (QAT) is the most reliable way to obtain accurate low-bit large language models (LLMs), but training with AdamW keeps two dense FP32 states for every weight matrix. We find that low-rank memory-efficient optimizers such as GaLore and LDAdam degrade substantially in QAT. A considerable part of the QAT momentum lies outside its top-rr singular subspace, and projection-based methods discard this part at every step. We further observe that this residual remains useful when only its sign is kept. Based on these observations, we propose ResQAdam. It keeps a single BF16 momentum, applies Adam only to the r×rr \times r coordinates of the principal subspace, and adds a normalized sign update computed from the residual. We evaluate ResQAdam with two from-scratch QAT methods and three QAT fine-tuning pipelines, with weights quantized down to 2 bits. It reduces optimizer-state memory by 71% to 74% relative to AdamW, stays close to AdamW in most settings, and lowers training throughput by less than 2%. Our code is available at https://github.com/LiqunMa/ResQAdam.

1 INTRODUCTION

Quantization-aware training (QAT) inserts the quantizer into the forward pass and updates latent full-precision weights through the straight-through estimator (STE) (Bengio et al., 2013). At low bit widths it recovers much of the accuracy lost by post-training quantization (PTQ) (Frantar et al., 2022; Xiao et al., 2023), both when fine-tuning a pretrained checkpoint (Liu et al., 2024; Chen et al., 2025; Liu et al., 2026) and when training from scratch (Panferov et al., 2025; Tabesh et al., 2025). This accuracy comes at a memory cost. QAT keeps full-precision weights and gradients, and most recipes rely on AdamW (Loshchilov & Hutter, 2017), which stores two FP32 moments and adds 8nm bytes for each n×mn \times m weight matrix.

A natural remedy is to borrow memory-efficient optimizers from full-precision training. GaLore (Zhao et al., 2024) and LDAdam (Robert et al., 2024) project the gradient onto a rank-rr subspace, keep Adam states only in that subspace, and map the update back to the full space. This works well when the optimization signal is concentrated in a few directions. Figure 1 shows that the same strategy does not carry over to QAT. With rank 64 and tuned learning rates, both methods are clearly worse than AdamW, in from-scratch training as well as in fine-tuning.

We hypothesize that this is a property of the QAT update itself. Under the STE, the gradient has to compensate for element-wise quantization errors, which are spread over individual entries rather

∗^{*}Work done during internship at AMD.

Figure

Figure 1: WikiText-2 perplexity versus optimizer state memory for different optimizers under two QAT paradigms. The x-axis reports the total optimizer state size of the full model (in GB). All experiments use W2A16 quantization with group size 128, and projection-based optimizers use rank 64. For a fair comparison, the learning rate of each optimizer is tuned via grid search and the best result is reported.

than aligned with a few directions of the weight matrix. If these corrections are less concentrated in the top-rr subspace than the rest of the update, a projection-based optimizer discards them at every step, and no amount of tuning inside the subspace recovers them.

To address this limitation, we decompose the QAT optimization signal according to its geometric structure. We apply Singular Value Decomposition (SVD) to the dense global momentum, retaining the top-rr singular vectors to form the orthonormal bases Ut∈Rn×rU_t \in \mathbb{R}^{n \times r} and Vt∈Rm×rV_t \in \mathbb{R}^{m \times r}. These bases induce a principal matrix subspace St={UtAVt⊤:A∈Rr×r}\mathcal{S}_t = \{U_t A V_t^\top : A \in \mathbb{R}^{r \times r}\}. The momentum can then be exactly decomposed into its projection onto St\mathcal{S}_t and an orthogonal residual lying in St⊥\mathcal{S}_t^\perp.

The principal projection captures the dominant low-rank structure of the optimization trajectory, whereas the orthogonal residual retains dispersed signals outside the principal subspace. Our empirical results show that these residual signals become particularly important under QAT. Their magnitude matters little: keeping only their sign, with no second-moment state, recovers most of the lost quality (Section 5.1).

Motivated by this insight, we propose ResQAdam (Residual-Preserving Quantization-Aware Adam), a geometrically decoupled optimizer that applies distinct update rules based on subspace characteristics. It stores one dense momentum in BF16 and refreshes its top-rr singular vectors every τ\tau steps. Adam runs on the r×rr \times r coordinates of the gradient in this subspace, and the residual of the momentum contributes a sign update whose norm matches the Adam update. Since no dense second moment is kept, persistent optimizer memory falls to roughly a quarter of AdamW, and the SVD cost is spread over τ\tau steps.

By eliminating dense second-moment tracking, ResQAdam limits the persistent optimizer memory footprint to only the BF16 momentum and negligible low-rank components. For a weight matrix W∈Rn×mW \in \mathbb{R}^{n \times m} with projection rank rr, the persistent memory ratio compared to standard AdamW is: 2nm+O((n+m)r+r2)/8nm≈25%2nm + \mathcal{O}((n+m)r + r^2)/8nm \approx 25\%. The measured saving is 71% to 74%. Furthermore, while the required SVD introduces computational overhead, refreshing the bases only once every few hundred steps effectively amortizes this cost, resulting in minimal training-speed degradation.

To evaluate our approach, we conduct extensive experiments across both from-scratch QAT and QAT fine-tuning paradigms. Across multiple LLM architectures, quantization configurations, and QAT methods, our empirical results demonstrate that ResQAdam closely tracks the optimization trajectory and largely preserves AdamW-level final performance across the evaluated settings. It achieves this by reducing around 75% of AdamW's average memory footprint, while introducing negligible computational overhead for training.

References (30)