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:
- Quantization: Compressing 16-bit weights into 8-, 4-, or 2-bit integers, paired with continuous floating-point "scaling factors" shared across groups of weights.
- 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.
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.
- 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.
- 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