Bayesian Optimization with Automatic Prior Selection for Data-Efficient Direct Policy Search

Rémi Pautrat, Konstantinos Chatzilygeroudis, Jean-Baptiste MouretarXiv 2017

TL;DR

When a robot breaks or encounters an unfamiliar environment, it needs to adapt in minutes, not hours. This paper introduces Most Likely Expected Improvement (MLEI), a novel Bayesian Optimization acquisition function that automatically selects the best simulation-based prior from a library of options without knowing the robot's exact context beforehand. By balancing the likelihood of each prior against its potential for improvement, MLEI enables physical robots to discover optimal walking gaits or control strategies in just a handful of trials.

What Problem Does This Paper Address?

Robots operating in the real world inevitably face unexpected changes, such as mechanical damage or novel terrains. Reinforcement learning (RL) can help them adapt, but traditional RL requires thousands of trials—impractical when hardware wear and battery life limit testing to a few minutes.

Bayesian Optimization (BO) offers a data-efficient alternative by directly modeling the reward function using Gaussian Processes (GPs). To speed up learning, researchers often inject prior knowledge (e.g., from physics simulators) into the GP's mean function. However, existing methods assume the robot already knows which prior is correct (e.g., exactly which leg is broken). If the robot selects a misleading or wrong prior, learning slows down drastically. This paper addresses the challenge of adapting when multiple priors are available, but the current context is completely unknown.

Methods

The authors propose Most Likely Expected Improvement (MLEI), a new acquisition function that integrates automatic prior selection directly into the BO loop.

Instead of using a single fixed prior, the algorithm maintains $m$ different Gaussian Process models, each initialized with a different prior mean function (representing different damage conditions or terrains generated beforehand). At each iteration, MLEI calculates the Expected Improvement for a Prior (EIP) for each model:

$$\text{EIP}(x, P) = \text{EI}(x) \times P(f(x_{1..t}) \mid x_{1..t}, P)$$

Here, $\text{EI}(x)$ is the standard Expected Improvement—which promotes exploring high-reward areas—and $P(f(x_{1..t}) \mid x_{1..t}, P)$ is the marginal likelihood of the data given that specific prior. By maximizing the EIP across all available options, the acquisition function naturally balances two forces: choosing a prior that accurately explains the observations made so far, and selecting the next point to sample on the physical robot to maximize performance.

Datasets

The method was evaluated using two primary experimental setups rather than standard static datasets:

  1. 5-DOF Planar Robotic Arm Simulation: A transfer learning task where the arm must reach an unknown target point. The library contained 10 pre-defined priors representing different target locations, none of which perfectly matched the true target.
  2. 6-Legged Robot (Hexapod) Repertoires: Prior libraries were generated using the MAP-Elites algorithm, creating 6-dimensional behavior-reward maps (containing up to 15,625 policies per map) across 15 different simulated environments and damage states (e.g., flat ground, various stair heights, and different missing or shortened legs).

Key Insights and Ideas

  • Likelihood Alone is a Trap Early On: You might think the robot should just pick the most likely prior based on early data. However, initial random trials usually yield terrible rewards. A purely likelihood-driven approach would select an overly pessimistic prior ("nothing works"), stalling exploration. MLEI avoids this by multiplying likelihood with expected improvement.
  • Creative Transfer Learning: The robot doesn't need a perfect prior to succeed. If the exact environment or damage state isn't in the library, MLEI can select a "close enough" prior (e.g., using a hard-stairs prior to help walk on medium stairs), effectively treating prior selection as an automated transfer learning mechanism.
  • Outperforming the "Perfect" Prior: Surprisingly, giving the algorithm a choice of multiple diverse priors can lead to faster adaptation than giving it a single "correct" prior. This occurs because a library of priors offers a wider variety of high-performing behavioral starting points.

Key Results

  • Robotic Arm: MLEI successfully guided the arm to the target within 7 to 8 episodes, whereas standard BO without a prior or with random prior selection failed to converge even after 20 episodes (see the convergence behavior in Robotic Arm Setup and Results).
  • Simulated Hexapod: For the hexapod climbing unknown stairs, MLEI significantly outperformed baseline methods, finding efficient gaits even when the true stair height was completely excluded from the prior library (detailed in the performance distributions in Hexapod Performance Boxplots).
  • Physical Hexapod: On a physical, damaged hexapod robot, MLEI successfully discovered stable compensatory walking gaits in under 10 trials (each lasting 10 seconds), successfully bridging the "reality gap" between simulation and physical hardware.
Robotic Arm Setup and Results
Hexapod Performance Boxplots

Limitations and Future Work

  • Discrete Prior Libraries: MLEI selects from a discrete set of pre-computed priors. If the true situation requires a continuous blend of two priors, the algorithm cannot interpolate between them; it can only pick the single best discrete option at each step.
  • Computational Scaling: The marginal likelihood must be computed for every prior at every iteration. While fast for dozens of priors, scaling to thousands of distinct priors could introduce a computational bottleneck in the optimization loop.
  • Prior Generation Dependency: The success of the method relies heavily on the quality and diversity of the pre-computed behavior maps, which require substantial upfront simulation time.

Summary updated

BibTeX
@misc{pautrat2017bayesian,
  author = {Rémi Pautrat and Konstantinos Chatzilygeroudis and Jean-Baptiste Mouret},
  title = {{Bayesian Optimization with Automatic Prior Selection for Data-Efficient Direct Policy Search}},
  year = {2017},
  eprint = {1709.06919},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1709.06919},
}
Figure