Classified Regression for Bayesian Optimization: Robot Learning with Unknown Penalties

Alonso Marco, Dominik Baumann, Philipp Hennig, Sebastian TrimpearXiv 2019

Abstract

In robot learning, failures such as falls or safety violations are common but difficult to quantify. Traditional Bayesian Optimization (BO) often relies on arbitrary heuristic penalties for these "unstable" events, which can lead to numerical instability or suboptimal performance. This paper introduces Classified Regression for Bayesian Optimization (GPCR), a novel model that treats failures as binary labels within a hybrid likelihood framework. By learning a failure threshold directly from data, GPCR avoids manual tuning. Coupled with a new optimization algorithm, mESCO (Min-Value Entropy Search with unknown level-set COnstraints), this approach efficiently guides robots toward high-performance, stable behaviors.

Introduction

Training robots often involves navigating regions of instability. Whether it is a bipedal robot losing balance or a robotic arm exceeding its torque limits, these failures provide critical information but lack a continuous cost metric. In standard Bayesian Optimization, researchers typically assign a large constant penalty to failures. However, this practice is fraught with issues: the choice of penalty is often arbitrary, failures may lack sufficient sensor data for cost calculation, and manual re-tuning is frequently required if the robot achieves a cost higher than the chosen penalty.

To address these challenges, the authors present a framework that learns from a hybrid dataset of continuous costs (for successes) and discrete labels (for failures).

Methods

Gaussian Process for Classified Regression (GPCR)

The core contribution is the GPCR model, which replaces standard Gaussian Process regression with a hybrid likelihood. Instead of forcing a numerical value onto failures, GPCR treats them as indicators that the latent cost $f(x)$ exceeds a certain threshold $c$.

Graphical model of the GPCR framework showing the relationships between inputs (x), latent costs (f), observed values (y), and binary labels (l).

As shown in the graphical model above, for a given input $x_i$, the model considers both the observed cost $y_i$ and a binary stability label $l_i \in \{-1, +1\}$.

  • Stable runs ($l_i = +1$): The model acts like a standard regressor using a Gaussian likelihood, where the observed cost $y_i$ is a noisy version of the latent function $f_i$.
  • Failures ($l_i = -1$): The model uses a "Heaviside" step function likelihood, assuming the cost is simply greater than a threshold $c$.

Crucially, the threshold $c$ is not a fixed hyperparameter but is estimated from the data using Maximum A Posteriori (MAP) estimation. This allows the model to dynamically define $c$ as the "worst-case" cost of a successful run, ensuring that failures are always penalized more heavily than any observed success without human intervention.

mESCO Optimization

To optimize this model, the authors developed mESCO (Min-Value Entropy Search with unknown level-set COnstraints). This algorithm extends Max-Value Entropy Search (MVES) to handle the learned failure boundaries. mESCO identifies the next experiment by maximizing the information gain about the global minimum while respecting the "safe" regions identified by the GPCR's classification component.

Experimental Evaluation

The proposed methods were evaluated across synthetic benchmarks and real-world robotic tasks.

Synthetic Benchmarks

On modified versions of the Gardner and Branin-Hoo functions—where artificial "unstable" regions were introduced—mESCO consistently outperformed random search and standard BO baselines. It demonstrated a superior ability to find the hidden global minimum by effectively mapping the boundary between success and failure.

Robot Apollo Tuning

The framework was applied to the Apollo robot, a humanoid tasked with balancing an inverted pole. The objective was to tune Linear Quadratic Regulator (LQR) parameters in 2D and 5D spaces.

  • Robustness: GPCR successfully handled scenarios where stable runs yielded poor performance. Unlike traditional methods that might require a restart, GPCR simply updated its internal threshold $c$ and continued learning.
  • Efficiency: In the 5D task, the system identified a high-performing controller even though 65 out of 80 evaluations were failures. This highlights the model's ability to extract meaningful information from "bad" data.

Discussion and Conclusion

GPCR transforms failures from "missing data" into informative features. By integrating classification and regression into a single probabilistic framework, it creates a "probabilistic fence" that guides the optimizer away from dangerous regions.

While effective, the model faces some limitations. A "cold start" problem exists if the robot only fails initially, as the threshold $c$ cannot be accurately estimated without at least one success. Additionally, the use of Expectation Propagation (EP) for posterior approximation adds computational complexity compared to standard GPs. Future work may focus on more efficient scaling for high-dimensional problems and integrating formal safety guarantees to ensure the robot never fails during the learning process itself.

Summary updated

BibTeX
@misc{marco2019classified,
  author = {Alonso Marco and Dominik Baumann and Philipp Hennig and Sebastian Trimpe},
  title = {{Classified Regression for Bayesian Optimization: Robot Learning with Unknown Penalties}},
  year = {2019},
  eprint = {1907.10383},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.10383},
}
Figure