On the model-based stochastic value gradient for continuous reinforcement learning

Brandon Amos, Samuel Stanton, Denis Yarats, Andrew Gordon Wilson

Abstract

Model-based reinforcement learning (MBRL) approaches aim to improve sample efficiency by incorporating explicit domain knowledge, yet they often struggle to match the peak performance of model-free agents due to compounding model errors. This paper introduces SAC-SVG(H), a hybrid agent that combines model-free value estimation with model-based policy improvement. By unrolling a deterministic recurrent world model over short horizons, the agent achieves state-of-the-art performance and sample efficiency on high-dimensional benchmarks, including the notoriously difficult Humanoid gait task.

Introduction

Reinforcement Learning (RL) is traditionally divided into two paradigms: Model-Free (MFRL) and Model-Based (MBRL). MFRL agents, such as Soft Actor-Critic (SAC), are robust and reach high final performance but require millions of interactions. MBRL agents learn a "world model" to simulate experience, offering high sample efficiency but often suffering from "model bias" where small prediction errors compound, degrading the final policy.

Recent trends in MBRL have favored increasing complexity, such as ensembles of probabilistic models and intricate planning. This research asks a fundamental question: What is the simplest model-based agent that can achieve state-of-the-art results? The answer lies in a selective hybrid approach that uses the world model only where it is most beneficial.

Methodology: SAC-SVG(H)

The authors propose SAC-SVG(H), which strategically partitions the learning process to mitigate model bias:

  1. Model-Free Policy Evaluation (The Critic): To avoid the compounding errors inherent in long-term value estimation via a learned model, the agent uses the standard model-free update from SAC. This ensures the value function remains grounded in real experience.
  2. Model-Based Policy Improvement (The Actor): The agent uses Stochastic Value Gradients (SVG) to update the policy. By unrolling the learned world model for a short horizon ($H$ steps), the agent calculates how action changes affect future rewards, providing a richer gradient signal than model-free alternatives.
  3. Recurrent World Model: Instead of the common practice of using ensembles of feed-forward networks, the authors utilize a single, deterministic Recurrent Neural Network (GRU). This architecture better captures temporal dependencies and provides smoother gradients for policy improvement.
The SAC-SVG(H) architecture unrolls a recurrent state $h$ to predict future states $\hat{x}$ for policy improvement.

Experimental Results

The approach was evaluated on the MuJoCo locomotion benchmarks, including Ant, Hopper, Cheetah, and the high-dimensional Humanoid task.

Performance and Efficiency

SAC-SVG(H) consistently matched or outperformed top-tier model-based methods like MBPO and STEVE. Notably, on the Humanoid task—a gold standard for continuous control—the agent learned a near-optimal gait, achieving higher final rewards than standard SAC while remaining significantly more sample-efficient. On the Cheetah task, SAC-SVG(2) reached a reward of ~8751, more than doubling the performance of previous model-based baselines like POPLIN-P under similar conditions.

Comparative performance of SAC-SVG(2) against model-free (SAC) and model-based (MBPO, STEVE) baselines across MuJoCo tasks.

Key Insights

  • Evaluation vs. Improvement: A critical finding is that policy evaluation is far more sensitive to model error than policy improvement. By keeping the Critic model-free, the agent bypasses the most destructive effects of model bias.
  • Short Horizons Suffice: The researchers found that unrolling the model for just 2 steps ($H=2$) was often sufficient to significantly outperform pure model-free methods.
  • Inductive Bias: A single recurrent network (GRU) proved to be a more effective inductive bias for learning physical simulation dynamics than the popular trend of using large ensembles of neural networks.

Conclusion and Future Work

SAC-SVG(H) demonstrates that simplicity and strategic hybrid design can outperform complex MBRL architectures. While the current deterministic model simplifies gradient calculations, future work may explore probabilistic models to better capture environmental noise or sparse reward settings. This framework also holds potential for multi-agent settings and constrained RL, where the world model can help agents anticipate and avoid dangerous states.

Reference: Amos, B., Stanton, S., Yarats, D., & Wilson, A. G. (2021). On the model-based stochastic value gradient for continuous reinforcement learning. Proceedings of Machine Learning Research, 144:1–17.

Summary updated

BibTeX
@inproceedings{amos2021model,
  author = {Brandon Amos and Samuel Stanton and Denis Yarats and Andrew Gordon Wilson},
  title = {{On the model-based stochastic value gradient for continuous reinforcement learning}},
  booktitle = {L4DC},
  year = {2021},
  url = {https://openreview.net/forum?id=rHeZDqcSBgc},
}
Figure