arXiv:2611.03260cs.LGNov 2026

Manuscript Offprint

arXiv:2611.03260

The Cost of Mismatch: Noise Amplification in Zeroth-Order Reinforcement Learning

Lianmin Chen, Junbin Qiu, Chenxing Wei, Yao Shu, Kun He

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Zeroth-order (ZO) optimization has emerged as a promising approach for memory-efficient large language model (LLM) post-training, yet its reliable application to reinforcement learning with verifiable rewards (RLVR) remains largely unexplored. Motivated by the distinct data regimes of on-policy RL and fixed-data optimization, we develop a generic variance-theoretic framework to investigate what limits the reliability of ZO gradient estimation. Our analysis reveals that estimation reliability is structurally determined by whether the two finite-difference evaluations are performed on matched data. On-policy reinforcement learning (RL) under the mismatched-data regime produces a 1/μ21/\mu^2 oracle-noise amplification that sets an irreducible noise floor as the perturbation scale μ\mu decreases, whereas Boltzmann Targeted SFT (BOLT) under the matched-data regime eliminates this amplification via noise cancellation. We further derive convergence guarantees with explicit constants that cleanly separate the two regimes. These results naturally lead to ZO-BOLT, which applies ZO optimization to BOLT's RLVR-aligned weighted-SFT objective. Controlled perturbation-scale sweeps and matched-versus-mismatched end-to-end comparisons validate the predicted effect of data matching. Experiments across three model variants and two mathematical reasoning benchmarks further show that ZO-BOLT consistently improves over the pretrained baseline while retaining a near-inference memory footprint. The code is publicly available at https://github.com/lianmin-chen/the_cost_of_mismatch.

1 Introduction

Reinforcement learning with verifiable rewards (RLVR) has become a key component in the post-training of large language models (LLMs) [1–4]. While first-order (FO) methods remain the default for this process, their reliance on backpropagation [5] imposes severe memory constraints due to the retention of intermediate activations, gradients, and often optimizer states [6, 7].

To mitigate these constraints, zeroth-order (ZO) optimization [8, 9] has received increasing attention as a compelling memory-efficient alternative. Instead of relying on backpropagation, ZO methods estimate gradients using only forward passes and thus reduce memory consumption to the inference level [6, 10]. Prior studies have demonstrated the feasibility of memory-efficient LLM post-training with ZO optimization in supervised fine-tuning (SFT) [6, 11, 10, 12, 13], and more recently, in preference optimization [14] (see App. A for related work). However, to the best of our knowledge, the reliability of ZO optimization for RLVR remains largely unexplored. This raises a key question:

*Corresponding authors.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

what limits ZO optimization from being reliably applied to RLVR in LLM post-training, and how can this limitation be addressed?

To answer this question, our key observation is that on-policy RL [15–17] introduces a different data regime from the fixed-dataset settings commonly considered in existing ZO post-training studies. Specifically, ZO methods typically estimate gradients via the finite difference of two function evaluations under a parameter perturbation. In fixed-dataset settings such as SFT, since data remains unchanged across parameter perturbations, the two function evaluations can be performed on the same minibatch, which we refer to as a matched-data regime. In on-policy RL, however, each function evaluation uses data generated by the corresponding policy, so perturbing the parameters leads to different batches for the two evaluations, resulting in a mismatched-data regime.

In this work, we develop a generic variance-theoretic framework to characterize the reliability of ZO gradient estimation and analyze the impact of different data regimes. This framework decomposes the ZO gradient estimation error into a noise-free term and an oracle-noise term, revealing that the reliability of ZO gradient estimates is structurally determined by the noise correlation between the two finite-difference evaluations. In the mismatched-data regime, instantiated by on-policy RL, function evaluations are performed on independently sampled data, leaving their stochastic fluctuations uncorrelated and inducing a 1/μ21/\mu^2 amplification of oracle-noise variance, where μ\mu denotes the perturbation scale. This establishes an irreducible noise floor as μ\mu decreases, making it a key failure mechanism in direct ZO optimization for on-policy RL. Conversely, the matched-data regime, instantiated by Boltzmann Targeted SFT (BOLT) [18], utilizes the same data across the finite-difference pair, enforcing aligned stochasticity and eliminating this amplification. Accordingly, these results identify BOLT as a natural basis for reliable ZO optimization, motivating ZO-BOLT as a practical matched-data ZO algorithm for optimizing the corresponding RLVR-aligned objective.

Specifically, our contributions are:

  1. A generic variance-theoretic framework for noisy ZO optimization. We develop a generic framework for analyzing ZO gradient estimation under noisy function evaluations. We establish Lem. 1, an exact decomposition of the ZO optimization estimator error, showing the oracle-noise term is entirely governed by the noise correlation between the two paired evaluations. This provides a unified foundation for analyzing different data regimes.

  2. Variance-theoretic characterization of the mismatched- and matched-data regimes. We instantiate the two data regimes with on-policy RL and Boltzmann Targeted SFT (BOLT), respectively. We prove that on-policy RL under the mismatched-data regime induces a 1/μ21/\mu^2 oracle-noise amplification (Prop. 1), whereas BOLT under the matched-data regime eliminates this amplification, leaving only a bounded minibatch-level variance term (Prop. 2). These results are unified into an oracle-noise separation theorem (Thm. 1) and translated into convergence guarantees with explicit constants that cleanly separate the two regimes (Thm. 2).

  3. Empirical validation of noise amplification and practical evaluation of ZO-BOLT. We first validate the predicted effect of the matched- and mismatched-data regimes on ZO optimization. Controlled perturbation-scale μ\mu sweeps verify the 1/μ21/\mu^2 amplification under independently sampled paired evaluations (Table 1 and Figure 1), while matched-versus-mismatched end-to-end comparisons validate its optimization consequences (Figure 2 and Table 2). We then evaluate ZO-BOLT across Qwen2.5-1.5B, Qwen2.5-7B, and DeepSeek-R1-Distill-Qwen-1.5B on GSM8K and MATH [19, 2, 20, 21], showing consistent performance gains while retaining a near-inference memory footprint (Tables 3 and 4).

References (37)