Exploring Model-based Planning with Policy Networks

Tingwu Wang, Jimmy Ba

Introduction

Model-based Reinforcement Learning (MBRL) is highly prized for its sample efficiency. By learning a "world model" to simulate the future, an agent can plan its moves without constantly failing in the real world. However, traditional MBRL often relies on Random Shooting or the Cross-Entropy Method (CEM) directly in the action space.

POPLIN (Model-based Policy Planning) bridges the gap between model-based planning and policy networks by treating action selection as an optimization problem in the policy's parameter space. By optimizing network weights rather than raw action sequences, the algorithm navigates a smoother reward landscape, achieving roughly 3x the sample efficiency of prior state-of-the-art methods like PETS, SAC, and TD3 on complex locomotion tasks.

The Problem with Action-Space Planning

Imagine trying to find the highest peak in a mountain range while blindfolded, only able to teleport to random spots. In high-dimensional environments—such as a robot with many joints—the "reward surface" is incredibly jagged, filled with local minima and dead ends. Randomly sampling action sequences is highly inefficient because most sequences are nonsensical, causing the optimization process to frequently get stuck. The authors of POPLIN aim to find a more efficient way to search for optimal plans in these complex, high-dimensional spaces.

The POPLIN Approach

To solve this, the authors introduce POPLIN, which tightly integrates policy networks into the online planning loop. They propose two main variants:

  1. POPLIN-A (Action Space): The policy network provides a "warm start" for planning. Instead of starting from scratch, the agent uses the policy to propose an initial action sequence, then uses CEM to fine-tune it by adding noise to the actions.
  2. POPLIN-P (Parameter Space): This is the more novel approach. Instead of adding noise to actions, the agent adds noise to the parameters (weights) of the policy network itself. Planning becomes an optimization problem over the network's weight space.

To ensure the agent remains fast at test time, the authors also explore Policy Distillation. They take the successful plans generated during training and "distill" that knowledge back into a standalone policy network using techniques like Behavior Cloning (BC) or Generative Adversarial Network (GAN) training. This allows the agent to act quickly without needing to run expensive planning simulations for every single move.

Key Insights and Ideas

  • The Smoothness Argument: The core "aha moment" of the paper is that the optimization surface in the policy's parameter space is much smoother than in the action space. By visualizing these surfaces using PCA, the authors demonstrate that while action-space planning gets stuck in local ruts, parameter-space planning (POPLIN-P) glides toward global optima much more effectively.
PCA visualization of the smooth optimization landscape in POPLIN's parameter space.
  • Policy Networks as Proposal Generators: Instead of treating the policy and the planner as separate entities, POPLIN uses the policy to narrow the search for the planner, making the Monte-Carlo search significantly more effective.
  • Multi-modality: POPLIN-P naturally handles multi-modal distributions (e.g., a robot needing to choose between going left or right around an obstacle). Standard CEM in action space often averages these choices, resulting in the agent trying to go straight through the obstacle. POPLIN-P avoids this by leveraging the expressive power of deep networks.

Performance and Results

Evaluated on the MuJoCo benchmarking suite (including tasks like Cheetah, Ant, Hopper, and Walker2d), POPLIN demonstrated remarkable improvements:

  • 3x Efficiency Boost: POPLIN-P is significantly more sample-efficient than previous leaders, often reaching high performance levels in just 200,000 environment steps (compared to millions for model-free methods like SAC or TD3).
  • State-of-the-Art Performance: POPLIN achieved the best results across almost all 12 MuJoCo environments tested, outperforming PETS (the previous model-based leader).
  • Effective Distillation: For environments like "Cheetah," the distilled policy network performed nearly as well as the full planning-based agent, proving it can be deployed in real-time systems without the computational overhead of online planning.

Limitations and Future Work

Despite its success, POPLIN faces a few hurdles:

  • The Complexity Ceiling: The algorithm still struggles with the most complex environments, such as Walker2d and Humanoid. Performance tends to plateau, suggesting that as dimensionality increases further, even parameter-space planning faces diminishing returns.
  • Asymptotic Performance: While POPLIN is much faster to train initially, model-free algorithms (MFRL) eventually catch up and can sometimes surpass it given millions of samples. Overcoming this "bottleneck" is a key area for future research.
  • Dynamics Errors: Like all model-based methods, POPLIN is sensitive to errors in the learned world model. If the simulated model is wrong, the optimized plan will inevitably fail in reality.

Summary updated

BibTeX
@inproceedings{wang2020exploring,
  author = {Tingwu Wang and Jimmy Ba},
  title = {{Exploring Model-based Planning with Policy Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
}
Figure