Zeroth-Order Policy Gradient for Reinforcement Learning from Human Feedback without Reward Inference

Qining Zhang, Lei Ying

Overview

This paper introduces two novel algorithms, Zeroth-Order Policy Gradient (ZPG) and Zeroth-Order Block-Coordinate Policy Gradient (ZBCPG), designed to perform Reinforcement Learning from Human Feedback (RLHF) without the need to train an intermediate reward model. Unlike existing direct optimization methods like Direct Preference Optimization (DPO), these algorithms are mathematically formulated to succeed in complex, stochastic environments, offering a provably efficient pathway to aligning AI agents with human preferences.

The Challenge of Reward Inference

The standard pipeline for RLHF—the process instrumental in making models like ChatGPT helpful and safe—typically involves three stages: pre-training, training a "reward model" based on human preferences, and finally using that reward model to fine-tune the agent (often via Proximal Policy Optimization, or PPO).

Comparison of standard RLHF (Reward Model + PPO) and direct optimization pipelines.

However, this "reward inference" step introduces significant friction. Reward models are highly prone to overfitting, struggle with distribution shifts when the agent's behavior deviates from the training data, and often suffer from problem misspecification (where the mathematical proxy fails to capture human nuance).

While Direct Preference Optimization (DPO) was developed to bypass the reward model entirely, it carries a major limitation: its mathematical foundation assumes the environment is either a simple "bandit" (one-shot) or entirely deterministic. In real-world applications or complex games, environments are inherently stochastic (random). Taking the same action twice can yield different results. DPO struggles in these scenarios, leaving a critical gap for a direct optimization method capable of handling general, unpredictable RL problems.

Proposed Methods: ZPG and ZBCPG

To bridge this gap, the authors propose two algorithms: ZPG and its more scalable variant, ZBCPG.

The core innovation lies in utilizing zeroth-order optimization. Instead of calculating a gradient through a complex, intermediate reward model, the algorithms follow a direct, iterative process:

  1. Perturb: Take the current policy and create a slightly "tweaked" version by adding a small amount of noise to its parameters.
  2. Sample: Run both the original and the perturbed policy in the environment to generate trajectories.
  3. Query: Ask a human evaluator (or a simulated oracle) which trajectory is preferred.
  4. Estimate: Use the preference feedback alongside a "link function" (such as the Bradley-Terry model) to estimate the local difference in value between the two policies.
  5. Update: Use this estimated value difference to approximate the direction of the policy gradient and update the model.

ZBCPG extends this logic for high-dimensional models by only perturbing a "block" (subset) of parameters at a time. This block-coordinate approach is significantly more memory-efficient and allows for parallelization, a crucial feature for scaling to massive Large Language Models (LLMs).

Experimental Setup

The researchers evaluated their algorithms in a stochastic GridWorld environment designed to test robustness against unpredictability.

  • The Stochastic Twist: To simulate real-world randomness (akin to wind or turbulence), the agent's chosen actions are reversed with a specific probability.
  • Feedback Mechanism: Human preferences were simulated using the Bradley-Terry model, a standard statistical method for modeling pairwise choices.
  • Baselines: The proposed methods were benchmarked against RM+PPO (the classic three-step approach), standard DPO, and Online DPO.

Key Insights and Results

  • Local vs. Global Optimization: Traditional RLHF attempts to learn a global reward function for every possible state. This paper demonstrates that local information—simply knowing which of two nearby policies is slightly better—is sufficient to find the correct gradient direction for improvement.
  • Bridging the Stochastic Gap: By focusing on the "value function" (expected long-term reward) rather than immediate, deterministic rewards, the authors created a method that naturally absorbs the noise of stochastic environments.
  • Provable Efficiency: The paper provides rigorous mathematical proofs showing these algorithms converge to a stationary point at a polynomial rate, elevating direct preference optimization from an empirical trick to a mathematically grounded technique.

In the stochastic GridWorld experiments, the proposed algorithms significantly outperformed the baselines:

  • Superior Performance: ZPG and ZBCPG achieved the highest average returns (~1.94 and 1.91, respectively).
  • The DPO Failure: Vanilla DPO performed poorly in this stochastic setting, yielding a return of -4.13. This confirms that DPO's deterministic assumptions break down when environmental randomness is introduced.
  • Efficiency over Standard RLHF: Even the classic RM+PPO approach lagged behind (return of 1.80), likely due to inaccuracies compounding within the intermediate reward model.
  • Parallelization Benefits: Experiments demonstrated that ZBCPG converges faster as the number of parallel optimized "blocks" increases, though there is a natural trade-off with accuracy if the blocks become too small.

Limitations and Future Work

  • Query Volume: Zeroth-order methods are notoriously "query-hungry." While the paper proves polynomial convergence, the absolute number of human queries required to fine-tune a trillion-parameter model may still be prohibitively high in practice.
  • Human Noise: The theoretical guarantees assume humans follow a consistent link function. In reality, human feedback is often noisy, inconsistent, or contradictory. Future research must explore how robust these algorithms are to irrational human labels.
  • Scaling to LLMs: While the stochastic GridWorld results are highly promising, the ultimate test will be applying ZPG and ZBCPG to full-scale LLMs to determine if local gradient estimation can truly replace the massive reward models currently dominating the industry.

Summary updated

BibTeX
@inproceedings{zhang2025zeroth,
  author = {Qining Zhang and Lei Ying},
  title = {{Zeroth-Order Policy Gradient for Reinforcement Learning from Human Feedback without Reward Inference}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=cmYScmfu4Q},
}
Figure