arXiv:2609.38095cs.LGSep 2026

Manuscript Offprint

arXiv:2609.38095

Probe-Space Preconditioning for Fast and Stable Zero-Order Training

Francois Chaubard, Mykel J. Kochenderfer, Chris Ré

Abstract

Backpropagation (BP) dominates deep learning but imposes a massive memory tax. For example, training OPT-30B with Adam requires ≈\approx 600GB of GPU memory (assuming batch size 8 and sequence length 2048). Alternatively, zero-order optimization (ZOO) trains in inference-mode (requiring only ≈\approx 60GB for the same model): no stored activations, no gradients, and no optimizer states. However, ZOO convergence has lagged behind BP. In this work, we evaluate two methods to close this gap. First, we show that reallocating training compute budget from many steps to large effective batch sizes with many perturbations (or probes) but fewer steps, allows 1SPSA (Spall, 1992) to outperform zero order methods like MeZO (Malladi et al., 2023) with less training compute. Next, we introduce 1.5-SPSA, adding a single “clean” forward-pass per step to 1SPSA to calculate a cheap diagonal preconditioner in probe-space, which improves convergence rate and convergence by down-weighting high curvature directions. Benchmarking on 6 post-training datasets on both Qwen3 and OPT model families, we show that 1.5-SPSA achieves State-of-the-Art results over previous ZOO solvers with much less optimization steps. For example, we train OPT-13B (for direct comparison to MeZO) and find 1.5-SPSA achieves +3.1% accuracy on SST-2 over both MeZO and BP in only 70 steps vs. MeZO’s 100,000 steps. Finally, we combine an 8-bit-packing random generator, triton fused unpack/apply kernels, and distributed parallelism to achieve fast and stable training of models as large as OPT-30B in-place on commodity GPUs (e.g. A100).

1. Introduction

Current deep learning (DL) solvers typically rely on Backpropagation (BP) combined with adaptive optimizers like Adam (Kingma & Ba, 2015). While effective, this paradigm incurs a massive memory tax. For example, training OPT-30B with Adam requires ≈\approx 600GB of GPU memory (assuming batch size 8 and sequence length 2048). This prohibits training on a single accelerator for large models, forcing the use of large, expensive accelerator clusters and complex distributed model sharding.

Additionally, neural network loss landscapes typically exhibit highly ill-conditioned hessians with massive eigenvalue spreads (Ghorbani et al., 2019; Sagun et al., 2017) requiring adaptive optimizers like Adam for stable training. This is exacerbated in deep settings like Reinforcement Learning or Large Language Model (LLM) post-training (Dauphin et al., 2014).

This provides the following desiderata for a new solver:

  1. Inference-Mode Memory Use: require no saved activations, gradients, or moving averages

  2. Robust to Ill-Conditioned Loss: capable of converging quickly even in ill-conditioned loss landscapes as is common in training neural networks

  3. Efficient Training Compute: train models with efficiency, measured as the amount of performance gain per floating-point operation

Derivative-Free Optimization (DFO), or Zero-Order Optimization (ZOO), is a promising area as training is done in inference-mode: no stored activations, no gradients, and no optimizer states. 1SPSA (Simultaneous Perturbation Stochastic Approximation) (Spall, 1992), one of the most famous ZOO methods, performs central difference approximation along a random perturbation (or probe) to estimate gradients versus calculating derivatives and trains in inference-mode, minimizing GPU memory use. Training OPT-30B with 1SPSA, for example, requires only ≈60GB\approx 60GB, effectively reducing the memory footprint by ≈10×\approx 10\times compared to Adam. However, 1SPSA requires many forward-passes, which comes with more compute per step. Additionally, 1SPSA introduces large perturbation noise on top of Adam's batch noise, both of which must be mitigated to ensure stable

1^{1}Stanford University, Stanford, CA, USA. Correspondence to: Francois Chaubard fchaubar@stanford.edu.

Preprint. September 30, 2026.

(A) Memory

Figure

(B) Training compute

Figure

Fewer steps; more parallelism per step

(C) 1-D curvature c^i\hat{c}_i reweighting

Figure

wiw_i down-weights high c^i\hat{c}_i perturbations for stability

Figure 1. Overview of 1.5-SPSA. (A) Inference-mode training avoids optimizer state and stored activations, reducing memory relative to BP+Adam. (B) forward-passes are reallocated from many optimization steps to large (parallelizable) batch size × perturbations per step for 44× less training compute to achieve SOTA test accuracy via a ZOO method (on SST-2). (C) Directional curvature estimates c^i\hat{c}_i set weights wi=∣c^i∣α=0.1w_i = |\hat{c}_i|^{\alpha=0.1}: high-curvature directions cause instability so steps are down-weighted, while flat regions yield wi≈1w_i \approx 1, which improves stability, convergence rate, and test accuracy with inference-mode memory use.

convergence which we analyze in the post-training setting in Section A.1. Many recent methods have attempted to solve this, most notably MeZO (Malladi et al., 2023) which adapts 1SPSA for LLM post-training in-place, requiring 2 forward-passes per step for 100,000 steps. In this paper, we discover two novel and independent ways to increase convergence beyond MeZO and in some cases BP, with more parallelization and less total training compute.

For our first contribution, we study where 1SPSA should spend its forward-passes: on more optimization steps, or on more computation per step. Under a fixed forward-pass budget F1SPSA=s×a×2×npertF_{1SPSA} = s \times a \times 2 \times n_{pert}, we sweep batch size (via gradient accumulation at micro-batch = 16) and npertn_{pert} while holding F1SPSA=500,000F_{1SPSA} = 500,000 on OPT-13B SST-2. Figure 2 shows that reallocating budget toward larger effective batch size and more perturbations per step yields substantially higher accuracy in only tens of steps. For example, at effective batch size = 128 and npert=160n_{pert} = 160, 1SPSA reaches 94.2% in 80 steps using 205k forward-passes, versus MeZO's 91.4% which uses similar forward-passes and +2.8 points. However, this regime is parallelizable across perturbations and accumulation steps so 1SPSA is capable of far faster wall-clock training time. Despite strong early progress, 1SPSA can become unstable late in training as curvature varies dramatically across random directions. Adam-style diagonal preconditioning would typically mitigate this, but storing O(d)O(d) moments is incompatible with our inference-mode desiderata and estimating in only tens of steps is unlikely to assist convergence.

For our second contribution, we introduce 1.5-SPSA, adding a single unperturbed loss evaluation per step to estimate a cheap preconditioner in probe-space, that down-weights high-curvature probes described in Section 4. This stabilizes training and permits larger step sizes. On OPT-13B SST-2, 1.5-SPSA reaches 94.5% in 70 steps using 179k forward-passes, outperforming MeZO by +3.1 points with less compute and exceeding BP (+2.5 points), as shown in Figure 2. To ensure this is not just a property of OPT, we also test on Qwen3-1.7B/8B. Table 3 and Table 4 shows similar performance improvement over 1SPSA and BP as 1.5-SPSA expands the stable learning-rate range and improves convergence rates and convergence.

For our third contribution, we investigate the root cause of these gains in controlled stress tests, where we discover 1.5-SPSA's improvement over 1SPSA is proportional to the loss landscapes's hessian condition number κ\kappa. Curvature reweighting in high κ\kappa losses yields up to 6×6\times fewer steps-to-zero loss and little effect in very low κ\kappa as described in Section 5.

Finally, for our fourth contribution, we keep training in-place and fast with the following innovations. We combine an 8-bit-packing random generator, triton fused unpack/apply kernels, and distributed parallelism to minimize wall-clock per step, enabling inference-mode training on models as large as OPT-30B on commodity accelerators (e.g. A100) described in Algorithm 1 and Section A.8.

References (16)