Model-based policy gradients with parameter-based exploration by least-squares conditional density estimation

Voot Tangkaratt, Syogo Mori, Tingting Zhao, Jun Morimoto, Masashi Sugiyama · OpenReview

Introduction

Reinforcement learning (RL) agents are traditionally caught in a trade-off between sample efficiency and robustness. Model-free methods, such as REINFORCE, are generally robust to environment dynamics but require a massive volume of samples to converge. Conversely, model-based methods offer significantly higher sample efficiency by learning a transition model of the environment; however, their performance is strictly capped by the accuracy of that model.

This paper introduces M-PGPE, a model-based RL algorithm designed to bridge this gap. By combining parameter-based exploration with a flexible, non-parametric transition model estimator called Least-Squares Conditional Density Estimation (LSCDE), the authors address two critical bottlenecks in RL: high gradient variance and restrictive Gaussian assumptions in environment modeling.

The Problem: Variance and Gaussian Limitations

The authors identify two primary pain points in existing RL frameworks:

  1. High Variance in Policy Gradients: Classic policy gradient methods often suffer from variance that scales with the length of the agent's trajectory. This makes learning unstable and slow, especially in long-horizon tasks.
  2. Restrictive Modeling Assumptions: Many model-based methods rely on Gaussian Processes (GP) to predict the next state. While effective for simple systems, GPs struggle in "bimodal" or non-Gaussian environments. For example, if an action leads to two distinct outcomes with equal probability, a GP model will attempt to average these outcomes into a single Gaussian "blob," resulting in a model that reflects neither reality.

Proposed Methodology: M-PGPE

The M-PGPE framework is built upon three foundational pillars designed to mitigate the aforementioned issues.

1. Parameter-Based Exploration (PGPE)

Unlike standard stochastic policies that add noise at every time step, PGPE utilizes a deterministic policy. The exploration occurs by drawing the parameters of the policy from a distribution at the start of each trial. This approach ensures that the gradient variance remains independent of the trajectory length, providing a more stable learning signal.

2. Least-Squares Conditional Density Estimation (LSCDE)

LSCDE serves as the core of the transition model. As a non-parametric method, LSCDE estimates the conditional probability density $p(s'|s, a)$ directly without assuming a specific distribution shape. It employs a linear-in-parameter model with Gaussian kernels and is solved analytically via a system of linear equations. This allows the model to capture complex, multi-modal transition dynamics that would baffle traditional Gaussian-based estimators.

3. The Model-Based Loop

The agent follows a structured learning cycle:

  • Data Collection: A small amount of real-world data is collected to train the LSCDE model.
  • Hallucination: The agent generates thousands of artificial trajectories using the learned LSCDE model.
  • Policy Update: Because these "hallucinated" samples are computationally inexpensive, the agent can generate independent sets of samples for gradient estimation and baseline subtraction. This allows for significant variance reduction without introducing the bias typically found in model-free methods that reuse the same samples for both tasks.

Experimental Evaluation

The authors evaluated M-PGPE on two primary benchmarks designed to test robustness and scalability.

Continuous Chain Walk

This 1D environment was used to test the algorithm's ability to handle bimodal noise (where an action can move the agent left or right randomly). While GP-based models failed by predicting the agent would stay still (the average of left and right), M-PGPE with LSCDE correctly identified the two possible paths, achieving significantly higher returns.

Humanoid Robot CB-i Simulator

The method was further tested on a sophisticated simulation of the CB-i humanoid robot in a reaching task.

  • 2-Joint Task: M-PGPE(LSCDE) outperformed state-of-the-art model-free methods (such as IW-PGPE) using a limited budget of only 50 episodic samples.
  • 9-Joint Task: In a high-dimensional 18D state space, M-PGPE(LSCDE) successfully learned a policy to reach the target in just 14 steps. Notably, the GP-based version was computationally unfeasible for this task due to the enormous processing time required for high-dimensional density estimation.

Key Insights and Results

  • Breaking the Gaussian Assumption: The most significant contribution is the demonstration that LSCDE can capture complex dynamics that Gaussian Processes cannot. This makes model-based RL viable for a broader range of real-world stochastic environments.
  • Sample Independence: By generating separate batches of artificial data for the gradient and the baseline, M-PGPE achieves the variance reduction benefits of a baseline with zero introduced bias.
  • Robustness to Sampling Schedules: Unlike model-free methods, which are sensitive to when data is collected, M-PGPE is more robust because it aggregates all available data into a global transition model before performing policy updates.

Conclusion and Future Work

M-PGPE represents a significant step forward in making model-based RL both flexible and sample-efficient. While the current implementation of LSCDE requires careful hyperparameter tuning (such as kernel widths), its ability to handle non-Gaussian noise and high-dimensional states makes it a powerful tool for complex robotics tasks. Future research may explore automated kernel selection or the integration of active learning to further optimize data collection in regions where the transition model is most uncertain.

Summary updated

BibTeX
@article{tangkaratt2014model,
  author = {Voot Tangkaratt and Syogo Mori and Tingting Zhao and Jun Morimoto and Masashi Sugiyama},
  title = {{Model-based policy gradients with parameter-based exploration by least-squares conditional density estimation}},
  journal = {Neural Networks},
  year = {2014},
  doi = {10.1016/j.neunet.2014.06.006},
}
Figure