Improving Quantized Zeroth-Order Optimization through Reconstructed Low-Rank Structures

Fei Wang, Shuai Xie, Li Shen, Chao Xue, Ye Liu, Changxing DingNeurIPS 2026

TL;DR

Fine-tuning massive AI models on tiny memory budgets usually requires two compromises: crushing the weights down to low-bit integers (quantization) and guessing gradients using only forward passes (zeroth-order optimization). Unfortunately, combining the two causes model accuracy to fall off a cliff at ultra-low precisions like 2-bit. By noticing that true neural network updates naturally follow low-rank patterns—and redesigning random perturbations to mimic that geometry—the authors create LQZO, an optimizer that rescues low-bit training without adding extra memory overhead or adapter modules.

What Problem Does This Paper Address?

Backpropagation is a memory hog because it caches activations and optimizer states across billions of parameters. If you are working on edge devices or tight GPU budgets, two remedies stand out:

  1. Quantization: Compressing 16-bit weights into 8-, 4-, or 2-bit integers, paired with continuous floating-point "scaling factors" shared across groups of weights.
  2. Zeroth-Order (ZO) Optimization: Skipping backpropagation entirely. Instead, you nudge the parameters slightly in a random direction, run two forward passes to see if the loss goes up or down, and step accordingly.

Because you cannot smoothly nudge discrete integers without rounding errors eating your lunch, recent methods like QZO freeze the integer weights and apply ZO nudges directly to the continuous quantization scales. It works—until you drop down to extreme compression like INT4 or INT2, where QZO barely beats a zero-shot baseline.

Why? In standard full-precision training (like Adam), weight gradients are heavily low-rank: almost all the meaningful action happens along a tiny handful of dominant directions. Yet when the authors inspected QZO's cumulative updates, the singular value spectrum was completely flat—white noise with no clear direction.

Figure 3: Top 20 of 512 singular values of QZO checkpoint dis- placements for fc2 in layer 31, showing a flat spectrum in this setting.

Methods

To bring structured, directional focus back to scale-space optimization without adding trainable adapter weights (unlike QLoRA), the authors propose LQZO (Low-rank Quantized Zeroth-Order optimizer), built on three clever tweaks to standard ZO scale perturbation:

  • Low-Rank Perturbation Factorization: Instead of generating a full random noise matrix $Z$ for a block of scales, LQZO builds $Z = U V^\top$ as the product of two thin matrices of small rank $r$ (e.g., $r=2$). All scale parameters remain trainable because the subspaces refresh over time, and to save compute, $V$ is only regenerated lazily every $\tau$ steps.
  • Binary-Aggregated Gaussian Perturbation: Prior low-rank ZO methods sample both $U$ and $V$ from Gaussian distributions. Multiplying two Gaussians creates heavy tails (high kurtosis), inflating gradient variance. LQZO samples $U$ from a standard Gaussian and $V$ from a Rademacher distribution (random $\pm 1$ flips). Each entry cleanly retains an exact Gaussian marginal while constraining higher-order moments—tightening variance bounds with zero extra forward passes.
Figure 4: Empirical distribution of Zij/r comparing our Binary-Aggregated Gaussian Perturbation (Rademacher V ) with Gaussian V , estimated from 10,000 independent samples. Here U, V, Z, r denote Uk, Vk, Zk, rk for one block.
  • Isotropy-Enhanced Estimation: Quantization scale matrices are notoriously lopsided—for example, $4096 \times 32$ in OPT-6.7B. Applying a rank-2 perturbation directly means exploring $2/32$ of one dimension and a minuscule $2/4096$ of the other. LQZO applies a simple, reversible power-of-two reshape before perturbing (e.g., balancing $4096 \times 32$ into $512 \times 256$) so low-rank exploration covers rows and columns evenly, then maps the update right back.

Datasets

No new benchmarks are introduced. The authors evaluate across existing NLP and computer vision suites:

  • NLP (11 benchmarks): SST-2, RTE, CB, BoolQ, WiC, WSC, MultiRC, COPA, ReCoRD, SQuAD, and DROP.
  • Vision (3 classification benchmarks): CIFAR-10, CIFAR-100, and Oxford-IIIT Pet.

Key Insights and Ideas

  • Reconstructing the "spike" in update spectra: While QZO spreads its energy thinly across all directions, LQZO’s factorized perturbations successfully recover a sharp, dominant singular value (>0.2) during training, echoing the concentrated geometry of first-order Adam updates.
  • Tiny ranks work best: More rank isn't better. Ablations show performance peaks at a tiny rank of $r=2$ and degrades as $r$ grows, hitting a sweet spot between focused directional exploration and estimation variance.
  • Almost-free lunch on hardware: Because forward passes overwhelmingly dominate LLM runtime, reconstructing low-rank matrices and reshaping tensors adds only ~5% latency per step and roughly 1 MB of extra memory (since $U$ can be regenerated on the fly from random seeds).

Key Results

Tested across OPT (6.7B to 66B), LLaMA-2-7B, LLaMA-3.1-8B, Qwen3-4B-Base, and ViT-base:

  • Across Bit-Widths (OPT-6.7B across 11 tasks): LQZO beats QZO by +2.0% (INT8), +2.2% (INT4), and +3.3% (INT2) on average. At INT8 and INT4 (67.8% and 67.7%), it nearly matches full-precision FP16 MeZO (68.5%) while using up to $3.6\times$ less memory at INT2.
Figure 1: Performance on SST-2 at different bit widths. Arrows mark LQZO gains over QZO.
  • Scaling & Architectures: At INT4, LQZO outperforms QZO by +1.6% on LLaMA-2-7B, +3.8% on LLaMA-3.1-8B, +1.15% on Qwen3-4B-Base, and scales gracefully up to OPT-66B.
  • Cross-Modality (Vision): On RTN-quantized Vision Transformers, LQZO beats QZO across all bit-widths, peaking at a +13.4% jump on CIFAR-100 at INT4.

Limitations and Future Work

  • Scope of Quantization & Architectures: LQZO relies on continuous scaling factors paired with frozen integer weights. It has been tested on GPTQ (dense LLMs) and RTN (ViTs), leaving Mixture-of-Experts (MoE) models, codebook-only schemes, and joint weight-and-activation quantization unexplored.
  • Module Variance: Controlled spectral checks show that feed-forward and output layers have less concentrated gradient spectra than attention layers, meaning low-rank perturbations may not benefit every module equally.
  • Theory-Practice Gap: The authors' convergence proof covers the unclipped base estimator refreshing factors every step ($\tau=1$); the practical lazy-update ($\tau=50$) and gradient-clipping tricks rely on empirical validation. Furthermore, like all ZO methods, convergence remains slower per step than true backpropagation.

Summary updated

Abstract

Fine-tuning Large Language Models under stringent memory constraints remains a significant challenge. Recently, Zeroth-Order (ZO) optimizers have been employed to fine-tune quantized models, avoiding backpropagation and further reducing memory usage. However, quantized ZO optimizers often underperform compared to their full-precision counterparts, especially at low bit-widths. Motivated by concentrated gradient spectra in LLM fine-tuning, we investigate whether structured low-rank perturbations can improve quantized scale optimization. To address this, we propose the **L**ow-rank **Q**uantized **Z**eroth-**O**rder optimizer (LQZO), which enhances quantized ZO fine-tuning by leveraging the low-rank structure inherent in gradients. Our method introduces three key innovations: (1) A low-rank parameterization of gradient perturbations using structured matrix factorization. (2) A Binary-Aggregated Gaussian perturbation strategy that employs a Rademacher distribution to constrain higher-order moments and tighten the variance bound of gradient estimates, without additional loss evaluations. (3) An Isotropy-Enhanced Estimation technique that reshapes quantization scale groups into more isotropic structures to diversify exploration directions. We provide a convergence analysis for the independently refreshed base estimator, including finite-difference bias; the practical lazy-update and clipping variants are evaluated empirically. Extensive experiments demonstrate that LQZO improves average task scores over QZO by 2.0–3.3 points across quantization precisions. While extreme quantization inevitably leads to information loss, LQZO significantly improves the trainability of INT2 models and narrows the performance gap compared to prior quantized ZO methods. Furthermore, we demonstrate the cross-modality versatility of LQZO by validating its superior performance on Vision Transformers. Code is available at [https://github.com/WangFei-2019/UnifiedZO](https://github.com/WangFei-2019/UnifiedZO).
BibTeX
@inproceedings{wang2026improving,
  author = {Fei Wang and Shuai Xie and Li Shen and Chao Xue and Ye Liu and Changxing Ding},
  title = {{Improving Quantized Zeroth-Order Optimization through Reconstructed Low-Rank Structures}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=1UKJD5PlWg},
}
Figure