TL;DR
While first-order adaptive optimizers like Adam are essential for training large language models (LLMs), this paper reveals that coordinate-wise adaptivity provides no convergence advantage in zeroth-order (ZO) optimization due to gradient homogeneity in high dimensions. To exploit this, the authors introduce MEAZO, a memory-efficient optimizer that tracks just a single scalar for global step-size adaptation, matching ZO-Adam's performance and learning-rate robustness with the tiny memory footprint of ZO-SGD.
What Problem Does This Paper Address?
Fine-tuning large language models (LLMs) using standard backpropagation (first-order optimization) is incredibly memory-intensive because it requires caching activations and maintaining high-precision gradients. Zeroth-Order (ZO) optimization offers a clever workaround: it estimates gradients using only forward passes by computing the difference in loss after randomly perturbing the model's parameters.
However, because these perturbations are random, ZO gradients suffer from high variance, leading to slower convergence. To combat this, recent literature introduced adaptive ZO algorithms (like ZO-Adam) that track the first and second moments of gradients per coordinate. Unfortunately, tracking these moments introduces a massive memory overhead, defeating the low-memory purpose of ZO optimization. This paper investigates whether coordinate-wise adaptivity is actually doing any useful work in high-dimensional settings.
Methods
The authors first provide a theoretical analysis of ZO gradient statistics in high dimensions. They prove that when the number of random perturbations ($q$) is much smaller than the number of dimensions ($d$), the coordinate-wise variance of ZO gradient estimates collapses to a single global value.
Based on this insight, they propose MEAZO (Memory-Efficient Adaptive Zeroth-Order) optimization. Instead of tracking a vector of second moments (one scalar per parameter), MEAZO tracks a single global scalar ($v_t$) that captures the exponential moving average of the squared, averaged projected gradient norm.
They also extend this to Grouped MEAZO for block-coordinate optimization, where the model is partitioned into disjoint blocks (e.g., tracking one scalar per transformer decoder layer). This allows layer-wise step-size adaptivity without the memory penalty of parameter-wise tracking.
Datasets
The authors evaluated their approach across multiple model families (Llama-3.2 1B, Qwen-3 0.6B/8B, Ministral-3 14B, and ViT-B/16) using the following datasets:
- SST-2: Sentiment analysis accuracy.
- XSum: Extreme text summarization (evaluated via ROUGE-L).
- SQuAD: Question answering (evaluated via F1 score).
- Oxford-IIIT Pets: Fine-grained image classification (for the vision baseline).
Key Insights and Ideas
-
The Homogeneity Collapse: In high-dimensional spaces, the isotropic nature of random perturbations causes coordinate-wise gradient heterogeneity to vanish. As shown in Figure 2, as the dimension $d$ scales from 9 to 1024, the coordinate-wise variance of ZO-Adam collapses directly onto the global gradient norm line.
Figure 2. Second moment estimate of FO-Adam, ZO-Adam and MEAZO across training on synthetic quadratic objectives. -
Adaptivity is About Robustness, Not Speed: Contrary to popular belief, adaptive ZO methods do not converge faster than a well-tuned ZO-SGD baseline. Instead, the true benefit of adaptivity in ZO settings is learning rate robustness—widening the window of initial step sizes that lead to stable convergence.
- Layer-Wise Sensitivity: Grouped MEAZO reveals that earlier layers in a transformer are significantly more sensitive to random perturbations than deeper layers. Grouped MEAZO automatically scales down the effective step size for these early layers, providing a stabilizing effect during block-coordinate descent.
Key Results
- Performance Parity at Lower Cost: Across Parameter-Efficient Fine-Tuning (PEFT) tasks like LoRA and prompt tuning, MEAZO consistently matches or outperforms ZO-Adam while maintaining the exact same memory footprint as ZO-SGD.
-
Tuned ZO-SGD is a Strong Baseline: The authors show that a properly tuned ZO-SGD baseline matches ZO-Adam on tasks like XSum fine-tuning, validating their theory that coordinate-wise tracking is largely redundant.
Figure 1. LoRA fine-tuning Llama-3.2 1B on XSum for various optimizers with optimal step size. -
Step-Size Robustness: MEAZO retains ZO-Adam's primary advantage: resilience to poor learning rate choices. While ZO-SGD quickly diverges if the learning rate is set too high, MEAZO remains stable across several orders of magnitude.
Limitations and Future Work
- Noise-Dominated Convergence Bounds: The theoretical convergence guarantees presented in the paper bound MEAZO to a noise-dominated neighborhood of a stationary point rather than converging strictly to zero. The authors note that refining these bounds is an open direction.
- Subspace Extensions: Future work includes integrating MEAZO into subspace ZO frameworks (such as low-rank perturbations or sparse optimization) to further boost efficiency.
- Full-Model Fine-Tuning: While the paper primarily focuses on PEFT (LoRA and prompt tuning), exploring MEAZO's performance in full-model fine-tuning—where memory savings matter most—remains an important next step.
Summary updated