Trust Your Robots! Predictive Uncertainty Estimation of Neural Networks with Sparse Gaussian Processes

Jongseok Lee, Jianxiang Feng, Matthias Humt, Marcus Gerhard Müller, Rudolph Triebel

Abstract

This paper presents a probabilistic framework to obtain both reliable and fast uncertainty estimates for predictions with Deep Neural Networks (DNNs). Our main contribution is a practical and principled combination of DNNs and sparse Gaussian Processes (GPs) that enables real-time robotic introspection. By leveraging the duality between DNNs and Mixtures of GP Experts (MoE-GP) through the Neural Tangent Kernel (NTK), we provide a method that scales to millions of data points while maintaining the "gold standard" uncertainty quality of GPs on embedded hardware like the Jetson TX2.

Introduction

Deep Neural Networks (DNNs) are the backbone of modern robotic perception, yet they are notoriously overconfident. In safety-critical applications like autonomous flight or planetary exploration, a robot must not only predict its environment but also quantify its own uncertainty to avoid catastrophic failures—a field known as robotic introspection.

While Gaussian Processes (GPs) offer mathematically rigorous uncertainty estimates, their $O(N^3)$ computational complexity renders them impractical for the large-scale datasets typically handled by DNNs. Conversely, popular uncertainty methods like MC-dropout or Ensembles are often too slow for real-time robotics because they require multiple forward passes for a single input. This paper bridges that gap, providing a method that is both theoretically grounded in GP theory and efficient enough for a drone in flight.

Methodology

The proposed framework transforms a pre-trained DNN into a probabilistic model by treating it as a sparse Mixture of GP Experts (MoE-GP). The approach involves several key innovations:

  1. Theoretical Duality: The authors prove that a DNN can be mathematically viewed as a special case of an MoE-GP using the Neural Tangent Kernel (NTK). This allows the Jacobian of a pre-trained DNN to serve as a kernel for the GP without retraining the core model.
  2. Gating via NTK PCA: To handle large datasets, the input space is divided into smaller regions using clustering in the kernel space (NTK PCA) rather than raw input space, grouping highly correlated data points together.
  3. Patchwork Prior: To prevent discontinuities in uncertainty at the boundaries between local experts, a "patchwork prior" is introduced, ensuring that neighboring experts provide consistent uncertainty estimates.
  4. Efficiency Gains: The system employs active learning to select only the most informative data points and uses model pruning to reduce the computational requirements of Jacobian calculations.
The proposed method transforms a standard DNN into a probabilistic Mixture of GP Experts (MoE-GP), enabling real-time uncertainty estimation for robotic tasks like object detection on a MAV.

Experimental Evaluation

The framework was evaluated across several challenging benchmarks, including toy regression (Snelson dataset) and inverse dynamics for robotic arms (SARCOS and KUKA datasets).

Scalability and Speed

The method successfully scaled to a KUKA simulation dataset containing 2 million data points, a feat typically impossible for standard GPs. Training on this massive dataset took less than 8 hours using 6 GPUs. On embedded robot hardware (Jetson TX2), the framework ran 12 times faster than MC-dropout while maintaining high-quality uncertainty estimates.

Real-World Robotics

The system was deployed on a Micro-Aerial Vehicle (MAV) performing a simulated planetary exploration mission. By flagging high entropy in its probabilistic predictions, the MAV successfully identified "Out-of-Distribution" (OOD) samples—objects it had not encountered during training—providing a reliable signal for autonomous safety protocols.

The three-step theoretical pipeline: 1) Establishing duality between MoE-DNNs and MoE-GPs, 2) Mapping MoE-DNNs to standard neural networks, and 3) Applying the approximation step for scalability.

Conclusion

This work demonstrates that it is possible to "un-package" a deterministic DNN into a probabilistic one to achieve reliable introspection. While the non-parametric nature of the model requires storing a subset of training data (increasing the memory footprint), the gains in speed and reliability are significant for field robotics. Future work will explore how these uncertainty signals can be used to automatically trigger active data collection or emergency safety behaviors.

Summary updated

BibTeX
@inproceedings{lee2021trust,
  author = {Jongseok Lee and Jianxiang Feng and Matthias Humt and Marcus Gerhard Müller and Rudolph Triebel},
  title = {{Trust Your Robots! Predictive Uncertainty Estimation of Neural Networks with Sparse Gaussian Processes}},
  booktitle = {Conference on Robot Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=tDYbDJvwz_G},
}
Figure