TL;DR
This paper introduces JAGUAR SignSGD and JAGUAR Muon, two memory-efficient zero-order (ZO) optimization algorithms that eliminate backpropagation by using coordinate-wise finite differences with momentum. By requiring only $2d + 1$ state parameters and $\mathcal{O}(1)$ forward passes per step, these methods provide the first rigorous stochastic non-convex convergence proofs for ZO SignSGD and matrix-based Muon while significantly outperforming prior ZO baselines on large language model (LLM) fine-tuning benchmarks.
What Problem Does This Paper Address?
Fine-tuning modern LLMs with standard first-order (FO) optimizers (like AdamW or SGD) is bottlenecked by the extreme memory requirements of the backward pass. Storing activations and gradients during backpropagation often requires an order of magnitude more memory than inference alone.
Zero-Order (ZO) optimization (e.g., MeZO) bypasses backpropagation entirely, estimating gradient steps via two forward passes with small random perturbations. However, existing ZO methods face steep trade-offs:
- Noisy gradient approximations: Standard random Gaussian directions lead to high variance and convergence stalls in stochastic non-convex regimes.
- Heavy momentum overhead: Existing momentum-based ZO techniques (such as ZO-AdaMM or ZO-SPIDER) store 4 to 5 parameter copies ($4d$–$5d$), largely defeating the memory-saving purpose of ZO.
- Lack of theoretical guarantees: Theoretical analyses for sign-based or orthogonalized matrix optimizers in stochastic ZO settings have been absent or restricted to convex/ideal-oracle settings.
Methods
The authors extend the coordinate-based JAGUAR gradient estimator to sign- and matrix-based optimization routines:
-
JAGUAR SignSGD: Instead of perturbing all parameters simultaneously with a random Gaussian vector, the algorithm perturbs a single coordinate (or layer) using standard basis vectors. It updates an accumulated coordinate-wise momentum vector $m_t$ via a SAGA-like moving average: $$m^t_i = \beta m^{t-1}_i + (1 - \beta)\nabla_{e_i} f(x^t, \xi^t)$$ The parameter update is then executed as $x^{t+1} = x^t - \gamma \cdot \text{sign}(m^t)$. This requires only $2d + 1$ parameters and 2 forward passes per step.
-
JAGUAR Muon: Adapts the recently popularized Muon optimizer—which projects gradient updates onto semi-orthogonal matrices using quintic Newton–Schulz iterations—to the ZO setting. By updating matrix parameters along individual coordinate directions with momentum, it leverages parameter matrix structure while maintaining a footprint of $2mn + 1$ parameters.
- ZO-Muon: A standard Gaussian-direction ZO baseline for Muon introduced by the authors for comparison.
Datasets
The authors evaluate their methods across diverse LLM tasks and scales:
- Classification & Common-Sense Reasoning: SST-2 (sentiment analysis), WinoGrande, and COPA (causal reasoning).
- Code Generation: HumanEval (evaluating functional correctness via unit tests using Pass@1).
- Models Evaluated: RoBERTa-Large (355M), OPT-1.3B, LLaMA-2-7B, OPT-13B, and Gemma-3-7B under both Full Fine-Tuning (FT) and Low-Rank Adaptation (LoRA).
Key Insights and Ideas
- Decoupling Gradient Error from Gradient Norm: In standard Gaussian-perturbation ZO methods, estimation error depends on $\|\nabla f(x_t)\|^2$, creating severe hurdles for proving non-convex convergence. The authors show that coordinate momentum bounds the estimation variance by noise-dependent constants rather than the gradient norm itself.
- Momentum is Crucial for Stochastic Non-Convex ZO: Ablation studies show that setting momentum $\beta \approx 0.9$ is critical. Without momentum ($\beta = 0$), the algorithm can only converge to an error neighborhood proportional to gradient variance $\sigma$.
- Orthogonalization Meets ZO: Muon’s Newton–Schulz orthogonalization effectively takes the sign of singular values, mirroring how SignSGD takes the sign of scalar coordinates. This allows the nuclear norm ($\mathcal{S}_1$) analysis of Muon to mirror the $\ell_1$-norm analysis of SignSGD, yielding an iteration complexity boost dependent on parameter matrix dimensions ($d^{1/2}$ or $d^{1/4}$ improvements).
- Layer-Wise Coordinate Perturbation: Rather than perturbing single scalar parameters, perturbing an entire layer at a time in matrix form matches model hardware access patterns without increasing wall-clock overhead.
Key Results
- Closing the FO–ZO Performance Gap: On HumanEval with Gemma-7B (full FT), JAGUAR Muon achieves a Pass@1 of 0.74 (compared to 0.61 for ZO-SGD and 0.64 for ZO-SignSGD), cutting the performance gap to FO-SGD (0.86) by more than half.
- Massive GPU Memory Reduction: On HumanEval full fine-tuning, FO-SGD consumed 108.5 GB of VRAM, whereas JAGUAR Muon and JAGUAR SignSGD required roughly 75.4 GB (~30% reduction). On 7B/13B LoRA setups, JAGUAR methods required ~13–15 GB and ~25–27 GB of VRAM, respectively, compared to ~49 GB and ~97 GB for FO-SGD.
- Superior Accuracy on Downstream Tasks:
- On SST-2 with OPT-1.3B (full FT), JAGUAR SignSGD achieves 94.0%, outperforming both FO-SGD (91.1%) and ZO-SGD (90.8%).
- On COPA with OPT-13B (LoRA), JAGUAR SignSGD scores 89.0% (matching/exceeding FO-SGD at 88.0%).
- Competitive Wall-Clock Time: Despite needing more iterations than FO methods, the reduced cost per step allows JAGUAR SignSGD to reach threshold accuracies faster in total wall-clock time than standard ZO baselines.
Limitations and Future Work
- Finite-Difference Precision Limits: Like all ZO approaches, machine precision creates an irreducible lower bound on the oracle noise ($\Delta$), restricting convergence to within an $\mathcal{O}(d\sqrt{\Delta L})$ radius.
- Non-Matrix Parameters in Muon: JAGUAR Muon shows slightly degraded performance in full fine-tuning when models contain 1D parameter vectors (such as normalization layers and biases) that do not conform to matrix orthogonalization.
- Coordinate Iteration Scaling: The convergence bounds retain explicit dimension factors ($d$), meaning extreme scale-up to 70B+ parameter models without LoRA remains computationally intensive in terms of iteration count.
Summary updated