Abstract
In the past decade, numerous machine learning algorithms have been shown to successfully learn optimal policies to control real robotic systems. However, it is common to encounter failing behaviors as the learning loop progresses. Specifically, in robot applications where failing is undesired but not catastrophic, many algorithms struggle with leveraging data obtained from failures. This is usually caused by (i) the failed experiment ending prematurely, or (ii) the acquired data being scarce or corrupted. Both complicate the design of proper reward functions to penalize failures. In this paper, we propose a framework that addresses those issues. We consider failing behaviors as those that violate a constraint and address the problem of learning with crash constraints, where no data is obtained upon constraint violation. The no-data case is addressed by a novel GP model (GPCR) for the constraint that combines discrete events (failure/success) with continuous observations (only obtained upon success). We demonstrate the effectiveness of our framework on simulated benchmarks and on a real jumping quadruped, where the constraint threshold is unknown a priori. Experimental data is collected, by means of constrained Bayesian optimization, directly on the real robot. Our results outperform manual tuning and GPCR proves useful on estimating the constraint threshold.
Introduction
In robot learning, the primary objective is often to maximize a performance metric, such as speed or jump height. However, real-world experiments frequently encounter "crashes"—unstable behaviors that trigger emergency stops or physical falls. Standard Bayesian Optimization (BO) techniques struggle with these scenarios for two main reasons: the "No-Data" problem, where experiments end prematurely without recording a reward, and the reliance on heuristic penalties, which can lead to suboptimal exploration.
This paper introduces Expected Improvement with Crash Constraints ($EIC^2$), a framework designed for Learning with Crash Constraints (LCC). Instead of treating failures as arbitrary negative rewards, $EIC^2$ treats them as unknown constraint violations, leveraging the location of crashes to define the boundaries of the feasible search space.
Methodology
The core of the framework is a novel probabilistic model: the Gaussian Process for Classified Regression (GPCR).
Gaussian Process for Classified Regression (GPCR)
Unlike standard Gaussian Processes (GPs) that require continuous observations, GPCR handles hybrid data. During successful experiments, it records continuous values (e.g., peak motor current). Upon failure, it records a discrete "failure" label. The model utilizes a specialized likelihood function incorporating a Heaviside function to infer that latent values during failures must exceed a threshold $c$, while successful runs remain below it.
Learnable Thresholds and Acquisition
A significant advantage of $EIC^2$ is that the threshold $c$ is treated as a hyperparameter and estimated from data using Maximum A Posteriori (MAP) estimation. This eliminates the need for human experts to pre-define physical hardware limits. The $EIC^2$ acquisition function then steers the search toward regions likely to improve the reward while remaining within the safe region predicted by the GPCR model.
Experimental Setup
The framework was evaluated on both numerical benchmarks and physical hardware:
- Numerical Benchmarks: Three global optimization functions (Michalewicz 10D, Hartman 6D, and Egg Crate 2D) were modified to include "crash" regions.
- Real-World Robotics: The Solo quadruped robot was tasked with maximizing jump height. The constraint was the peak electrical current; exceeding this limit causes a system shutdown (a "crash").
Results
The $EIC^2$ framework demonstrated superior efficiency and safety across all tests. In simulations, it consistently achieved lower "simple regret" with fewer crashes compared to standard BO methods using heuristic penalties (e.g., High Cost, Adaptive Cost).
On the Solo quadruped, the framework learned a jumping controller that reached a height of 0.784 meters, outperforming manual tuning by 34%. Furthermore, the GPCR model successfully estimated the robot's previously unknown current limit to be approximately 112.34 A.
Conclusion
By treating failures as informative features rather than bugs, $EIC^2$ provides a robust method for learning in constrained environments. Future work will explore scaling to higher-dimensional parameter spaces and handling multiple simultaneous constraints.
Summary updated