Augmenting Physical Simulators with Stochastic Neural Networks: Case Study of Planar Pushing and Bouncing

Anurag Ajay, Jiajun Wu, Nima Fazeli, Maria Bauzá, Leslie Pack Kaelbling, Joshua B. Tenenbaum, Alberto Rodriguez

Introduction

In robotics, simulators are indispensable tools for planning and control. However, they frequently suffer from the "reality gap"—a discrepancy between simulated outcomes and real-world observations. Standard rigid-body simulators, such as Bullet or MuJoCo, rely on simplified contact models that often fail to capture complex real-world phenomena like non-uniform friction, micro-surface interactions, and vibrations.

Analytical models tend to be deterministic and "stiff," failing to account for the inherent stochasticity of physical interactions. Conversely, purely data-driven neural networks require vast amounts of data to learn basic physics from scratch and often struggle to generalize to novel object shapes or materials. This research proposes a "middle way": a hybrid framework that combines the structural priors of physics with the expressive power of deep learning.

Methodology: The Hybrid Approach

The core contribution of this work is the Stochastic Recurrent Data-Augmented Residual Model. Rather than training a neural network to predict the next state from scratch, the framework employs a two-step process:

  1. The Physics Guess: An analytical physics engine (the "prior") provides a deterministic prediction of the next state ($\bar{s}_{t+1}$).
  2. The Neural Correction: A neural network takes this initial guess, along with the current state ($s_t$) and action, to predict a residual (the error), resulting in a final, corrected distribution of possible outcomes ($P(s_{t+1})$).
Comparison of modeling architectures: (a) pure physics, (b) pure learned, and (c-e) various hybrid residual configurations.

To manage long-term sequences and uncertainty, the authors utilize a Decoupled Conditional Variational Recurrent Neural Network (DCVRNN). This architecture uses a Variational Autoencoder (VAE) structure to represent complex, multi-modal probability distributions—essential for scenarios where an object might slide in different directions due to microscopic surface imperfections. By "decoupling" the encoder, decoder, and prior networks, the model can efficiently process trajectories spanning hundreds of time steps.

Experimental Evaluation

The model was evaluated on two distinct physical scenarios:

  • Synthetic Bouncing Ball: A controlled environment in PyBullet where the coefficient of restitution varies randomly, testing the model's ability to handle stochasticity.
  • MIT Push Dataset: A high-fidelity real-world dataset featuring thousands of recorded planar pushes of various objects on surfaces like ABS, plywood, and delrin. This served as the primary benchmark for accuracy and generalization.
Experimental domains: stochastic bouncing ball trajectories (left) and planar pushing of a rectangular object (right).

Key Results and Insights

The hybrid approach yielded several significant advantages over baseline methods:

  • Superior Accuracy: In MIT Push tasks, the hybrid model consistently outperformed both pure physics and pure neural baselines. For a standard rectangular object, the test error was approximately 25% lower than that of the pure neural model.
  • Data Efficiency: The hybrid model achieved high accuracy with only 2,500 training examples, a performance level the purely data-driven model could not reach even with 6,500 examples. This demonstrates that learning residuals is mathematically simpler than learning fundamental laws from scratch.
  • Robust Generalization: When tested on unseen object shapes, the hybrid model maintained low error rates. The underlying physics engine acts as a "generalization anchor," allowing the model to adapt to new geometries far better than pure neural networks.
  • Uncertainty Modeling: The model effectively captured the true distribution of real-world outcomes, achieving a significantly lower Chamfer distance compared to state-of-the-art methods like GP-SUM.

Conclusion and Future Work

By augmenting analytical physics with stochastic neural networks, this framework bridges the reality gap while maintaining data efficiency and generalizability. While the current model can occasionally predict physically inconsistent outcomes and assumes access to the full state of the object, future work aims to integrate observation models for raw sensor data and extend the framework to complex 3D interactions.

Summary updated

BibTeX
@inproceedings{ajay2018augmenting,
  author = {Anurag Ajay and Jiajun Wu and Nima Fazeli and Maria Bauzá and Leslie Pack Kaelbling and Joshua B. Tenenbaum and Alberto Rodriguez},
  title = {{Augmenting Physical Simulators with Stochastic Neural Networks: Case Study of Planar Pushing and Bouncing}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=ufx09-GNX1R},
}
Figure