Papers
Topics
Authors
Recent
Search
2000 character limit reached

Accelerating Zeroth-Order Spectral Optimization with Partial Orthogonalization from Power Iteration

Published 9 May 2026 in cs.LG | (2605.09034v1)

Abstract: Zeroth-order (ZO) optimization has become increasingly popular and important in fine-tuning LLMs, especially on edge devices due to its ability to adjust the model to local data without the need for memory-intensive back-propagation. Recent works try to reduce ZO variance through low-dimensional subspace search, but subspace restriction alone leaves key optimization geometry under-exploited, motivating additional acceleration. In this work, we focus on the hidden layer training problem in which spectral optimizers like Muon outperform AdamW due to its ability to exploit weak spectral directions by orthogonalization. However, we have discovered that unlike in the first-order setting, full orthogonalization works poorly in the ZO setting since the gradient estimates are highly noisy and unreliable. To address this issue, we propose a key approach we call partial orthogonalization. To do so, we replace the iconic Newton-Schulz procedure in Muon with the faster, more concentrated power-iteration method so that it only amplifies dominant spectral directions. Furthermore, to improve the efficiency and generalization of the algorithm, we adopted a streaming variant of power-iteration that requires low variance in gradients, which was achieved through constraining our search inside a subspace obtained through the projection of momentum, echoing recent advances. Experiments on LLM fine-tuning show that our method can achieve from 1.5x to 4x the convergence speed of ZO-Muon, the current SOTA algorithm, across SuperGlue datasets in the OPT-13B model. Across different models, we also reach competitive final accuracies with less time in most cases compared with strong ZO baselines such as MeZO, LOZO and ZO-Muon. Code is available at https://github.com/MOFA-LAB/ZO-MOPI.git.

Authors (2)

Summary

  • The paper introduces ZO-MOPI, a novel algorithm that leverages partial spectral orthogonalization to reduce gradient noise in zeroth-order optimization.
  • The method uses Streaming Power Iteration to track top-k singular directions, enhancing convergence rates and stability in large language model fine-tuning.
  • Empirical results demonstrate that ZO-MOPI outperforms prior baselines, achieving faster convergence and memory efficiency on diverse LLM tasks.

Accelerating Zeroth-Order Spectral Optimization with Partial Orthogonalization from Power Iteration

Motivation and Problem Setting

Zeroth-order (ZO) optimization methods, which rely exclusively on forward function evaluations to estimate gradients, are increasingly important for fine-tuning LLMs in constrained environments. Traditional FO approaches, such as Adam, are memory-prohibitive for edge devices due to the requirement for dynamic storage of activations and gradients. ZO methods such as MeZO allow memory-efficient adaptation by circumventing backpropagation, but they suffer from high gradient estimation varianceโ€”especially prominent in the billion-parameter LLM regime.

Spectral optimizers like Muon exploit matrix structure by orthogonalizing gradients, yielding accelerated convergence in FO settings. However, direct application of full orthogonalization (via Newtonโ€“Schulz iterations) to ZO-estimated gradients amplifies noise-dominated directions, degrading performance. The spectral distribution of ZO- and FO-estimated gradients reveals this fundamental mismatch; FO gradients concentrate energy in dominant directions, while ZO gradients exhibit a heavier and flatter spectral tail, reflecting high noise (Figure 1). Figure 1

Figure 1

Figure 1: FO vs. ZO gradient spectra on OPT-1.3B fc2 weights, demonstrating energy concentration versus noisy tail.

Partial Orthogonalization via Power Iteration

The central contribution is the ZO-MOPI algorithm, which introduces partial spectral orthogonalization tailored to noisy ZO gradients. The core procedure, Streaming Power Iteration (SPI), efficiently tracks only the top-k dominant singular directions, suppressing high-variance spectral tails. This approach avoids the detrimental noise amplification inherent in full-spectrum orthogonalization.

SPI maintains a cached right singular subspace across iterations, leveraging momentum to ensure temporal continuity and smooth evolution of the dominant directions. Subspace ZO estimation further reduces effective gradient variance: the ZO perturbations are constrained to a low-dimensional subspace defined by projected momentum, dramatically decreasing the search dimension and associated noise.

The theoretical convergence analysis establishes that the algorithm achieves a stationary point with a rate dictated by the reduced subspace dimension. The tracking error of the dominant subspace remains bounded under smooth drift assumptions, supported by matrix perturbation theory.

Algorithmic Integration and Ablations

ZO-MOPI combines three components: subspace ZO gradient estimation, projected momentum accumulation, and SPI-based partial orthogonalization. The streaming nature of SPI (warm-starting with cached singular vectors) necessitates momentum for stability; without it, subspace drift causes instability, as empirically demonstrated. Lazy (periodic) subspace sampling is vitalโ€”overly frequent refreshes destabilize spectral tracking and degrade convergence.

Hyperparameter studies (Figures 5 and 6) reveal the tradeoff in spectral and subspace rank choices. Too small k or r loses essential information; too large k or r incorporates noise, impairing accuracy and slowing final convergence. Figure 2

Figure 2

Figure 2: Impact of spectral rank kk on OPT-1.3B SST-2; intermediate kk balances signal extraction and noise suppression.

Figure 3

Figure 3

Figure 3: Impact of subspace rank rr on OPT-2.7B SST-2; moderate rr optimizes spectral coverage and variance reduction.

Empirical Results and Performance Analysis

ZO-MOPI demonstrates substantial acceleration compared to prior ZO baselines (MeZO, LOZO, ZO-Muon). On multiple SuperGLUE tasks and LLMs (OPT-13B, Gemma2-2B, LLaMA3-8B), ZO-MOPI consistently achieves competitive or superior final accuracy in significantly less wall-clock time. Figure 4

Figure 4

Figure 4

Figure 4: Gemma2-2B fine-tuning on BoolQ/SQuAD and SST-2: ZO-MOPI reaches strong accuracy faster, with memory efficiency.

Figure 5

Figure 5

Figure 5

Figure 5

Figure 5: OPT-13B fine-tuning efficiency (Accuracy vs. Time) on four SuperGLUE tasks: ZO-MOPI converges rapidly.

Figure 6

Figure 6

Figure 6

Figure 6

Figure 6: OPT-13B relative time-to-same-accuracy: ZO-MOPI outpaces baselines, especially ZO-Muon, by large margins.

Training/evaluation loss curves across LLMs confirm faster, more stable optimization dynamics with ZO-MOPI (Figures 7โ€“12).

ZO-MOPI maintains negligible memory overhead relative to the full parameter matrices, as confirmed in runtime/memory benchmarks. The low-rank momentum and subspace tracking state add only rn+nkrn + nk memory, with r,kโ‰ชminโก(m,n)r,k \ll \min(m,n).

Practical and Theoretical Implications

Partial orthogonalization dramatically improves ZO gradient exploitation in high-dimensional matrix settings, bridging the gap between low-variance FO optimization and practical ZO approaches. By aligning the optimizer with the spectral structure of ZO gradients and concentrating updates in robust directions, ZO-MOPI fosters rapid convergenceโ€”an essential property for scalable, resource-constrained LLM fine-tuning.

The theoretical guarantees on convergence in reduced subspaces, and robust empirical evidence across diverse tasks and models, suggest the viability of spectral ZO algorithms for parameter-efficient adaptation beyond edge scenarios. Future directions include extending spectral techniques to generalized large-scale training, integrating low-rank adaptation and spectral anisotropy further, and refining spectral tracking mechanisms for nonstationary regimes.

Conclusion

ZO-MOPI proposes partial spectral orthogonalization coupled with streaming power iteration to accelerate ZO optimization for LLMs, selectively amplifying dominant directions while suppressing noise. Comprehensive evaluation establishes strong empirical and theoretical efficiency, outperforming stateful ZO baselines in both speed and accuracy while retaining low memory complexity. The framework provides a foundation for advanced spectral ZO methods applicable to broader large-scale, resource-agnostic training settings.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 1 tweet with 4 likes about this paper.