Learning Policy Improvements with Path Integrals

Evangelos A. Theodorou, Jonas Buchli, Stefan SchaalAISTATS 2010

Introduction

Reinforcement Learning (RL) in high-dimensional continuous state-action spaces, such as those required for humanoid robots, presents significant challenges. Traditional value-function methods often succumb to the "curse of dimensionality" and numerical instability when using function approximation in spaces exceeding 5–10 dimensions. Conversely, policy gradient methods, while more scalable, are frequently "brittle," requiring meticulous tuning of learning rates and sensitivity to baseline choices, which often leads to slow convergence or entrapment in local optima.

The authors propose Policy Improvement with Path Integrals (PI²), a reinforcement learning algorithm that bridges stochastic optimal control and policy search. PI² aims to be computationally efficient, numerically robust, and free from the manual hyperparameter tuning typically associated with gradient-based methods.

Methodology

The PI² algorithm is derived from three primary mathematical components:

  1. Stochastic Hamilton-Jacobi-Bellman (HJB) Equations: Starting with the standard HJB equation for stochastic optimal control.
  2. Exponential Transformation: Applying a logarithmic transformation to the value function ($V = -\lambda \log \Psi$) transforms a nonlinear second-order partial differential equation (PDE) into a linear Kolmogorov backward PDE.
  3. Feynman-Kac Theorem: This theorem allows the solution of the linear PDE to be represented as an expectation over stochastic processes, effectively a path integral.

The resulting PI² algorithm operates by executing $K$ "roll-outs" (trajectories) using a parameterized policy, such as Dynamic Movement Primitives (DMPs), with added exploration noise. It then computes the cost of each trajectory and updates policy parameters via a weighted average of the explored variations, where weights are determined by the exponentiated cost of the paths. This approach eliminates the need for gradient descent, matrix inversions, and learning rates.

Experimental Evaluation

The algorithm was evaluated on three robotic control tasks of increasing complexity: a 1-DOF reaching task, a 1-DOF via-point task (passing through a specific coordinate at $t = 300ms$), and a multi-DOF via-point task involving planar robot arms with up to 50 degrees of freedom (DOFs).

Figure 1: (a) Trajectories for the 1-DOF via-point task passing through point G. (b) Learning curves showing the cost reduction over roll-outs for various algorithms.

Key Results and Insights

PI² demonstrates significant advantages over traditional methods in both speed and scalability:

  • Convergence Speed: In 1-DOF tasks, PI² outperformed gradient-based methods like REINFORCE and eNAC by an order of magnitude.
  • Scalability: PI² successfully solved the 50-DOF robot arm task with ease. While gradient methods struggled or required extensive tuning, PI² reached the lowest cost with low variance across all tested dimensions.
Figure 2: Learning curve (c) for the high-dimensional 50-DOF task, demonstrating PI²'s superior scalability and convergence compared to other methods.

The primary insight is that policy improvement can be treated as a statistical estimation problem rather than a gradient-following one. By integrating over noise-driven explorations, PI² avoids the "black magic" of tuning step sizes. Furthermore, the algorithm's numerical robustness stems from avoiding matrix inversions and gradient calculations.

Limitations and Future Work

Despite its strengths, PI² has limitations. While it eliminates learning rates, the exploration noise parameter ($\Sigma$) still requires tuning. Additionally, the derivation assumes some knowledge of the control transition matrix ($G$), though it can be used model-free with DMPs. Future work could explore more structured exploration strategies to solve even more complex, non-convex cost landscapes.

Summary updated

BibTeX
@article{theodorou2010learning,
  author = {Evangelos A. Theodorou and Jonas Buchli and Stefan Schaal},
  title = {{Learning Policy Improvements with Path Integrals}},
  journal = {AISTATS},
  year = {2010},
}
Figure