NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Q-Prop: Sample-Efficient Policy Gradient with An Off-Policy Critic

Shixiang Gu, Timothy Lillicrap, Zoubin Ghahramani, Richard E. Turner, Sergey Levine

Introduction

Model-free deep reinforcement learning (RL) has achieved remarkable success in simulated domains, but its high sample complexity remains a major obstacle for real-world applications. Q-Prop is a novel RL algorithm designed to bridge the gap between stable but sample-hungry on-policy methods and efficient but unstable off-policy methods. By utilizing a Taylor expansion of an off-policy critic as a "control variate," Q-Prop significantly reduces the massive variance of policy gradients without introducing the bias that typically plagues off-policy learning.

The Challenge: Sample Efficiency vs. Stability

In deep reinforcement learning, researchers are generally forced to choose between two distinct paradigms:

  1. On-policy methods (e.g., TRPO, VPG): These algorithms are stable and mathematically unbiased. However, they are incredibly slow and sample-inefficient, requiring fresh data for every single update. This makes them highly impractical for real-world robotics where collecting samples is expensive and time-consuming.
  2. Off-policy methods (e.g., Q-learning, DDPG): These methods are much faster because they reuse old data stored in a "replay buffer." Unfortunately, they are often unstable, highly sensitive to hyperparameters, and biased because they rely on approximate value functions (critics) that can be inaccurate.

The authors tackle the high sample complexity of stable methods and the instability of efficient ones, aiming to develop an algorithm that is both fast and reliable.

The Q-Prop Algorithm

The core innovation of this work is Q-Prop, which leverages a statistical technique known as control variates.

Standard policy gradients (like REINFORCE) use Monte Carlo returns to estimate the quality of an action. While unbiased, this approach suffers from huge variance. Q-Prop introduces a proxy for the return: a first-order Taylor expansion of an off-policy critic ($Q_w$).

Under Q-Prop, the policy gradient is split into two distinct terms:

  • The Analytic Term: A stable gradient calculated directly through the critic, similar to the approach used in DDPG.
  • The Residual Term: A standard policy gradient that uses the difference between the actual return and the critic's prediction.

Because the critic is used as a control variate, even if it is slightly biased or inaccurate, the residual term corrects it using real on-policy data. This ensures the overall gradient remains unbiased while significantly lowering the variance.

The authors also introduce Adaptive Q-Prop, specifically a "conservative" variant. This version only applies the control variate when it is positively correlated with the actual rewards, preventing a poorly trained critic from degrading the gradient.

Evaluation Environments

The algorithm was rigorously evaluated on the OpenAI Gym MuJoCo benchmark, a standard suite in the RL community for testing how well an agent can learn complex physical movements.

OpenAI Gym MuJoCo continuous control tasks used for evaluation.

The benchmark consists of several continuous control tasks, including:

  • Locomotion: Ant, HalfCheetah, Hopper, Humanoid, Swimmer, and Walker.
  • Robotic Manipulation: Reacher.

Key Insights and Theoretical Bridge

  • Unification: Q-Prop provides a mathematical bridge between policy gradients and actor-critic methods. It can be viewed either as using an off-policy critic to reduce variance in a policy gradient, or as using on-policy returns to correct the bias in an actor-critic algorithm.
  • Correlation over Accuracy: A fascinating insight from the control variate analysis is that the critic does not need to be perfectly accurate to be useful. As long as the critic's predictions are correlated with the actual returns, it will successfully reduce variance.
  • Stability via Conservatism: By checking the correlation between the critic and the returns, Conservative Q-Prop becomes much more robust to the "bad critic" problem that often causes algorithms like DDPG to crash or fail to converge.

Experimental Results

Q-Prop demonstrated strong performance across several key metrics:

  • Sample Efficiency: On the HalfCheetah environment, Conservative Q-Prop reached high performance levels using roughly 10x fewer samples than Trust Region Policy Optimization (TRPO).
  • Superior Stability: While DDPG is often faster, it is notoriously brittle. Q-Prop demonstrated much more consistent and monotonic learning curves.
  • Solving Hard Tasks: On the notoriously difficult Humanoid task, Q-Prop successfully found a high-reward gait, whereas DDPG often failed to find a viable solution entirely.
  • Robustness: Q-Prop proved to be less sensitive to the choice of batch size compared to traditional policy gradient methods.

Limitations and Future Directions

  • Computational Overhead: Because Q-Prop trains an off-policy critic alongside the policy, it requires more "wall-clock" computation time per episode than simpler methods like TRPO. This presents a trade-off: saving on environment samples at the cost of more CPU/GPU cycles.
  • Critic Reliability: While the conservative variant helps mitigate issues, overall performance still depends on the quality of the off-policy critic. Integrating even more stable off-policy techniques (like Retrace) could further improve the algorithm.
  • Model-Based Potential: The authors note that Q-Prop could potentially be extended to model-based RL, where the critic is derived from a learned dynamics model rather than relying solely on a neural network.

Summary updated

BibTeX
@inproceedings{gu2017q,
  author = {Shixiang Gu and Timothy Lillicrap and Zoubin Ghahramani and Richard E. Turner and Sergey Levine},
  title = {{Q-Prop: Sample-Efficient Policy Gradient with An Off-Policy Critic}},
  booktitle = {International Conference on Learning Representations},
  year = {2017},
  url = {https://openreview.net/forum?id=SJ3rcZcxl},
}
Figure