Preparing for the Unknown: Learning a Universal Policy with Online System Identification

Wenhao Yu, Wenhao Yu 0003, Jie Tan, C. Karen Liu, Greg Turk

Introduction

The "Reality Gap" remains a significant hurdle in robotics, where policies trained in high-fidelity simulators often fail when deployed on physical hardware. This discrepancy arises because digital models rarely capture the exact physical parameters of the real world, such as precise mass distributions, friction coefficients, or joint damping. Traditional approaches to bridge this gap typically involve either robust control—which often results in overly conservative behavior—or extensive real-world system identification, which is time-consuming and costly.

This paper proposes UP-OSI, a framework that combines a Universal Policy (UP) with an Online System Identification (OSI) module. By learning to infer environmental parameters from short histories of interaction, the system achieves real-time adaptation to unknown or changing physics.

Methodology

The UP-OSI framework consists of two primary components that operate in a closed loop.

Universal Policy (UP)

The UP is a parameterized policy $\pi(x, \mu) \mapsto u$, where $x$ is the robot's state and $\mu$ represents a vector of dynamics parameters (e.g., mass, friction, limb lengths). Unlike standard policies, the UP is trained across a wide distribution of environments using Trust Region Policy Optimization (TRPO), allowing it to learn optimal behaviors for a variety of physical conditions.

Online System Identification (OSI)

The OSI module $\phi(x_{t-h:t}, u_{t-h:t-1}) \mapsto \mu$ acts as the robot's "physical intuition." It predicts the current environment's parameters $\mu$ by analyzing a short history of recent states and actions. This allows the robot to infer physical properties implicitly through its own movement dynamics.

The UP-OSI framework architecture, showing the interaction between the Online System Identification (OSI) module and the Universal Policy (UP).

Iterative Training

A critical innovation is the iterative training process. Initially, the OSI is trained on "clean" data from optimal trajectories. However, real-world deployment often involves prediction errors. To make the system resilient, the authors introduce "bad cases" during training: the UP is fed incorrect parameters from a sub-optimal OSI, and the OSI is then tasked with identifying the true physics from the resulting sub-optimal trajectories. This loop ensures the system can recover from its own mistakes.

Experimental Results

The framework was evaluated using the DART physics engine across several benchmarks, including a double inverted pendulum, a robot arm block-throwing task, and hopper locomotion.

Performance of UP-OSI on the Double Inverted Pendulum task. (b) shows reward vs. center of mass (COM) offset, comparing UP-OSI to a ground-truth baseline (UP-true) and a regular policy. (c) illustrates the improvement in performance over training iterations.

Key Findings

  • Performance Parity: UP-OSI consistently matched the performance of "UP-true," a baseline where the exact physical parameters are provided to the policy.
  • Generalization: In the cart-pole swing-up task, the system successfully balanced poles 75% longer than any seen during training, demonstrating significant extrapolative capabilities.
  • Real-Time Adaptation: In the hopper task, the OSI detected changes in ground friction mid-stride, allowing the robot to adjust its gait instantaneously and maintain stability.

Discussion and Conclusion

UP-OSI demonstrates that explicit parameter identification can be integrated into a reinforcement learning framework to provide both high performance and robustness. By treating history as a sensor, the robot learns to "feel" its environment.

Future work will address the challenges of high-dimensional parameter spaces and the impact of real-world sensor noise and hardware latency. While currently focused on deterministic simulations, extending this framework to stochastic real-world environments is a promising next step for bridging the reality gap.

Summary updated

BibTeX
@inproceedings{yu2017preparing,
  author = {Wenhao Yu and Wenhao Yu and Jie Tan and C. Karen Liu and Greg Turk},
  title = {{Preparing for the Unknown: Learning a Universal Policy with Online System Identification}},
  booktitle = {Robotics: Science and Systems},
  year = {2017},
  doi = {10.15607/rss.2017.xiii.048},
}
Figure