Uncertainty Aware System Identification with Universal Policies

Buddhika Laknath Semage, Thommen George Karimpanal, Santu Rana, Svetha Venkatesh

Abstract

The transition of robotic policies from simulation to the real world—the "sim-to-real gap"—remains a significant challenge due to discrepancies in physical parameters and environmental noise. This paper introduces UncAPS (Uncertainty-aware Policy Search), a novel framework that utilizes Universal Policy Networks (UPNs) and robust Bayesian Optimization to identify latent environmental parameters. Unlike traditional system identification methods, UncAPS explicitly models both aleatoric uncertainty (inherent noise) and epistemic uncertainty (estimation error). Experimental results across various MuJoCo benchmarks demonstrate that UncAPS achieves superior initial performance and greater robustness in stochastic environments compared to existing baselines like Domain Randomization and Meta-Learning.

Introduction

Training robotic agents directly in physical environments is often impractical due to safety concerns and high costs. Consequently, "Sim2Real" transfer—training in simulation before deployment—is the standard paradigm. However, simulators often fail to capture the full complexity of reality. Two common strategies to address this are Domain Randomization (DR), which seeks a policy robust to a wide range of parameters, and System Identification (System ID), which attempts to calibrate simulation parameters to match the real world.

The authors argue that standard System ID is insufficient because it ignores two critical types of uncertainty: aleatoric uncertainty (stochasticity in the environment) and epistemic uncertainty (uncertainty regarding the model's own parameter estimates). UncAPS addresses these gaps by integrating uncertainty awareness into the parameter search and action selection process.

The UncAPS Framework

UncAPS combines several advanced techniques to create a robust transfer mechanism:

  1. Universal Policy Networks (UPN): Instead of a single-task policy, a UPN is trained to be conditioned on environmental parameters. This allows the agent to instantly adapt its behavior once the latent parameters of the real world are estimated.
  2. Unscented Bayesian Optimisation (UBO): To find the optimal parameters in a noisy real-world environment, UncAPS employs Bayesian Optimization. It uses the "Unscented Transformation" to sample "sigma points" around candidate parameters, ensuring that the selected values are robust to noise rather than just being "lucky" peaks.
  3. Epistemic Uncertainty via Random Fourier Features (RFF): To account for limited data, UncAPS uses RFF to approximate the Gaussian Process (GP) posterior. This enables sampling from a distribution of likely optimal parameters rather than relying on a single point estimate.
The UncAPS pipeline: from Unscented Bayesian Optimisation to Epistemic Uncertainty Estimation and the final Optimal Latent Parameter Distribution.

Experimental Evaluation

The framework was evaluated using the MuJoCo physics engine on five continuous control tasks: Ant, Humanoid, Swimmer, Half-Cheetah, and Hopper. In each task, five "latent" parameters (mass of body parts, friction, and restitution) were hidden from the agent. To simulate real-world conditions, Gaussian noise was added to the transition states, creating a stochastic environment distinct from the "clean" training simulator.

Key Results

UncAPS was compared against standard Bayesian Optimization (BO), Domain Randomization (DR), and Model-Agnostic Meta-Learning (MAML).

Comparative performance of UncAPS against baselines across five MuJoCo tasks. Bold values indicate the best performance.

As shown in the results table, UncAPS achieved the highest "jumpstart" reward in four out of five tasks. Key insights include:

  • Robustness to Noise: By explicitly modeling aleatoric uncertainty, UncAPS significantly outperformed standard BO, which often converged to unstable parameter estimates.
  • Benefits of Uncertainty Modeling: Ablation studies showed that modeling both types of uncertainty (UncAPS) outperformed modeling only noise (UncAPS-EP), highlighting the importance of accounting for estimation error in low-data regimes.
  • Sample Efficiency: UncAPS reached peak performance within just 25 real-world iterations, a regime where meta-learning approaches like MAML typically struggle.

Conclusion

UncAPS provides a principled way to bridge the sim-to-real gap by treating system identification as an uncertainty-aware search problem. By performing "policy-driven grounding," it focuses on identifying task-relevant parameters rather than attempting to match the entire physics of the environment. Future work will focus on estimating environmental noise variance on the fly and scaling the framework to high-dimensional sensor data on physical hardware.

Summary updated

BibTeX
@inproceedings{semage2022uncertainty,
  author = {Buddhika Laknath Semage and Thommen George Karimpanal and Santu Rana and Svetha Venkatesh},
  title = {{Uncertainty Aware System Identification with Universal Policies}},
  booktitle = {ICPR},
  year = {2022},
  url = {https://openreview.net/forum?id=Klv-IFE0KaK},
}
Figure