Computation-Aware Learning for Stable Control with Gaussian Process

Wenhan Cao, Alexandre Capone, Rishabh Yadav, Sandra Hirche, Wei Pan

TL;DR

This paper introduces a "computation-aware" learning framework for robotic control that explicitly models the uncertainty arising from limited processing power. By decomposing Gaussian Process (GP) uncertainty into mathematical and computational components, the authors enable stable, high-performance control even on low-end hardware where learning algorithms must be terminated early to meet real-time deadlines.

What Problem Does This Paper Address?

Robots like tiny quadrotors often operate under severe computational constraints. While Gaussian Processes (GPs) are powerful for learning unknown dynamics online, they are computationally expensive, requiring matrix inversions that scale cubically with the number of data points. In practice, engineers often use iterative methods like Conjugate Gradient (CG) to approximate these inverses, stopping them early to ensure the control loop runs at a high enough frequency.

Standard control theory assumes these models are "perfectly" computed, ignoring the errors introduced by early termination. This "computation-agnostic" approach can lead to over-optimistic stability guarantees, causing robots to perform poorly or even crash when their hardware can't keep up with the math. The authors identify a critical gap: the lack of a formal way to quantify and account for this "computational uncertainty" in stable controller design.

Methods

The authors propose a three-stage workflow to bridge the gap between constrained computation and stable control:

  1. Computation-Aware Model Learning: They treat the iterative computation of the GP posterior as a probabilistic inference problem. This allows them to decompose the total uncertainty ($\sigma_i$) into two parts: mathematical uncertainty ($\sigma^{math}$) from limited data, and computational uncertainty ($\sigma_i^{comp}$) arising from a finite number of iterations ($i$).
  2. Stability Analysis: Using Lyapunov theory, they estimate the Region of Attraction (ROA)—the safe subset of the state space where the robot is guaranteed to return to its target. They derive new bounds for the Lyapunov derivative that explicitly include the computational error term, ensuring the ROA estimate remains conservative and safe.
  3. Controller Design: They formulate the control problem as a Second-Order Cone Program (CLF-SOCP). This optimization problem finds the minimum-effort control signal that ensures stability while respecting the "tighter" constraints imposed by both types of uncertainty. They also provide an explicit, closed-form control law that extends Sontag’s universal formula to include computational awareness.
Fig. 2: Workflow of computation-aware learning for stable control. This figure illustrates the three main stages of developing a control system with computational constraints. Initially, in Section II (computation-aware dynamical model learning), the model’s uncertainty is broken down into mathematical and computational parts. Following that, in Section III (computation- aware stability analysis), the system’s stability is analyzed by estimating its Region of Attraction (ROA) under various uncertainties. In Section IV (computation-aware controller design), a controller is designed to ensure system stability with minimal control effort, using the control lyapunov function-second order cone programming (CLF-SOCP) method. The flowchart concludes with a decision-making process that evaluates whether the system’s computational capacity needs upgrading before deployment.

Datasets

The framework was evaluated using three primary benchmarks:

  • Nonlinear 1D System: A synthetic system used to visualize how ROA estimates evolve and converge as computational iterations increase.
  • Inverted Pendulum: A classic control benchmark used to compare ROA estimation against state-of-the-art computation-agnostic methods.
  • Quadrotor Tracking: A real-world experiment where a drone carries a sloshing water bottle (introducing complex, unknown dynamics). The system uses an onboard Jetson Orin NX for online GP learning and control.

Key Insights and Ideas

  • Computational error is structured: It's not just random noise; it can be formally quantified by looking at the residuals of iterative algorithms like CG in a probabilistic manner.
  • Conservatism is Safety: By acknowledging that the model is imperfect due to limited compute, the controller becomes more conservative. This prevents the system from entering states it thinks are safe but actually aren't due to model approximation errors.
  • The "Aha" Moment: As the number of iterations increases, computational uncertainty shrinks to zero, and the framework naturally reverts to standard GP-based control. This makes it a true generalization of existing methods that works across the entire spectrum of hardware capabilities.
  • Stability over Accuracy: Even if the model isn't perfectly accurate, the system can remain stable if the controller knows exactly how much to distrust the model's current mean estimate.

Key Results

  • Improved Safety: In the inverted pendulum task, agnostic methods overestimated the ROA, potentially misclassifying unstable regions as stable. The proposed method provided a conservative, "true" safety bound.
  • Robustness to Hardware Limits: In quadrotor experiments, the computation-aware controller maintained stable tracking with as few as 5 CG iterations. In contrast, the agnostic controller's error spiked significantly as iterations decreased.
  • Quantitative Gains: For the quadrotor at 5 iterations, the proposed method reduced root mean square tracking errors by approximately 0.37m (X), 0.44m (Y), and 0.24m (Z) compared to the agnostic baseline.
  • Efficiency: The extra math required to quantify computational uncertainty adds only a marginal increase in computation time (e.g., 0.0155s vs 0.0152s for 5 iterations), making the trade-off highly favorable for real-time systems.
Fig. 1: Quadrotor tracking control under computational con- straints. The green line denotes the proposed computation- aware learning control method in this paper, showing improved tracking accuracy due to adaptive, conservative stability con- straints compared to the agnostic one (blue line).

Limitations and Future Work

  • Complexity: The computation-aware GP model has a quadratic time complexity $O(N^2 i)$, which, while better than the standard cubic scaling, might still be too heavy for extremely low-power micro-controllers compared to simpler linear-time GP approximations.
  • Discretization: The ROA estimation currently relies on discretizing the state space, which suffers from the "curse of dimensionality" in high-dimensional systems, though the authors note this is typically an offline task.
  • Broadening Scope: The authors suggest extending this "computation-aware" philosophy to other safety-critical functions, such as Control Barrier Functions (CBFs) for obstacle avoidance, and other probabilistic models like Bayesian Neural Networks or Deep GPs.

Summary updated

BibTeX
@inproceedings{cao2024computation,
  author = {Wenhan Cao and Alexandre Capone and Rishabh Yadav and Sandra Hirche and Wei Pan},
  title = {{Computation-Aware Learning for Stable Control with Gaussian Process}},
  booktitle = {Robotics: Science and Systems},
  year = {2024},
  doi = {10.15607/rss.2024.xx.004},
}
Figure