Data-Efficient Learning for Complex and Real-Time Physical Problem Solving using Augmented Simulation

Kei Ota, Devesh K. Jha, Diego Romeres, Jeroen van Baar, Kevin A. Smith, Takayuki Semitsu, Tomoaki Oiki, Alan Sullivan, Daniel Nikovski, Joshua B. Tenenbaum

Abstract

Humans quickly solve tasks in novel systems with complex dynamics, without requiring much interaction. While deep reinforcement learning algorithms have achieved tremendous success in many complex tasks, these algorithms need a large number of samples to learn meaningful policies. In this paper, we present a task for navigating a marble to the center of a circular maze. While this system is very intuitive and easy for humans to solve, it can be very difficult and inefficient for standard reinforcement learning algorithms to learn meaningful policies. We present a model that learns to move a marble in the complex environment within minutes of interacting with the real system. Learning consists of initializing a physics engine with parameters estimated using data from the real system. The error in the physics engine is then corrected using Gaussian process regression, which is used to model the residual between real observations and physics engine simulations. The physics engine augmented with the residual model is then used to control the marble in the maze environment using a model-predictive feedback over a receding horizon. To the best of our knowledge, this is the first time that a hybrid model consisting of a full physics engine along with a statistical function approximator has been used to control a complex physical system in real-time using nonlinear model-predictive control (NMPC).

Introduction

Deep Reinforcement Learning (RL) has demonstrated remarkable capabilities in virtual environments, yet its application to physical systems is often hindered by extreme "data hunger." Learning a policy for a complex physical task typically requires millions of samples, translating to days or weeks of hardware wear and tear. In contrast, humans possess an "internal physics model" that allows for rapid calibration to new physical puzzles.

This research addresses the sim-to-real gap by introducing a robotic agent capable of human-like learning speeds. The benchmark task is a Circular Maze Environment (CME), where a marble must be navigated to the center by tilting the board. This system is underactuated, non-linear, and requires high-speed, real-time decision-making, making it a significant challenge for traditional AI.

Methodology: Augmented Simulation

The core contribution is a three-stage pipeline designed to create an Augmented Simulation that serves as a high-fidelity prior for control.

  1. Physical Parameter Estimation (PE): The process begins with a general-purpose physics engine (MuJoCo). An evolutionary strategy, CMA-ES, is employed to tune physical parameters (such as friction) based on a limited set of real-world interactions.
  2. Residual Learning with Gaussian Processes (GP): To account for unmodeled dynamics like static friction or sensor latency, Gaussian Process regression models the residual—the difference between the physics engine's predictions and real-world observations.
  3. Real-Time Control (NMPC): The marble is controlled using Nonlinear Model Predictive Control. The agent simulates potential trajectories using the augmented model and selects optimal tilt actions at a frequency of 30Hz using an efficient iLQR solver.
The Augmented Simulation pipeline: integrating parameter estimation and Gaussian Process residuals into a real-time NMPC framework.

The system also incorporates an inverse motor model to mitigate mechanical delays in the servo motors.

Experimental Results

The proposed method was evaluated against human performance and standard RL baselines.

Sample Efficiency and Accuracy

The agent successfully solved the maze after only minutes of interaction. In contrast, a model-free algorithm like Soft Actor-Critic (SAC) failed to show meaningful learning even after three days of continuous training on the physical robot. The CMA-ES optimization significantly improved prediction accuracy, reducing the Root Mean Square Error (RMSE) of the ball's position from 0.1 degrees to 0.003 radians in simulation.

Performance Comparison

The impact of the Gaussian Process (GP) residual model is evident when comparing different model configurations across the maze's rings.

Average time to navigate different maze rings across various model configurations. The addition of GP models significantly reduces the time required, especially in the challenging inner rings.

The robotic agent outperformed humans in the outer rings (approx. 4 seconds vs. 22 seconds). However, both humans and the AI found the innermost ring (Ring 4) the most difficult due to the high precision required for small relative movements near the center.

Conclusion

This work demonstrates that hybridizing a full physics engine with a statistical function approximator enables highly data-efficient learning for complex physical tasks. By using physics as a strong prior, the learning component is restricted to modeling residuals, drastically reducing the required sample size. Future work will focus on removing the need for manual task segmentation and exploring the transferability of the model to objects with different dynamics, such as dice or coins.

Summary updated

BibTeX
@article{ota2020data,
  author = {Kei Ota and Devesh K. Jha and Diego Romeres and Jeroen van Baar and Kevin A. Smith and Takayuki Semitsu and Tomoaki Oiki and Alan Sullivan and Daniel Nikovski and Joshua B. Tenenbaum},
  title = {{Data-Efficient Learning for Complex and Real-Time Physical Problem Solving using Augmented Simulation}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2020},
}
Figure