NeuralSim: Augmenting Differentiable Simulators with Neural Networks

Eric Heiden, David Millard, Erwin Coumans, Yizhou Sheng, Gaurav S. Sukhatme
11/9/2020
195 citations
cs.RO

Official code: erwincoumans/tiny-differentiable-simulator (1,380 stars, C++, Apache-2.0, last commit 2026-11-15).

Abstract

Differentiable simulators provide an avenue for closing the sim-to-real gap by enabling the use of efficient, gradient-based optimization algorithms to find the simulation parameters that best fit the observed sensor readings. Nonetheless, these analytical models can only predict the dynamical behavior of systems for which they have been designed.

Show full abstract

In this work, we study the augmentation of a novel differentiable rigid-body physics engine via neural networks that is able to learn nonlinear relationships between dynamic quantities and can thus learn effects not accounted for in traditional simulators.Such augmentations require less data to train and generalize better compared to entirely data-driven models. Through extensive experiments, we demonstrate the ability of our hybrid simulator to learn complex dynamics involving frictional contacts from real data, as well as match known models of viscous friction, and present an approach for automatically discovering useful augmentations. We show that, besides benefiting dynamics modeling, inserting neural networks can accelerate model-based control architectures. We observe a ten-fold speed-up when replacing the QP solver inside a model-predictive gait controller for quadruped robots with a neural network, allowing us to significantly improve control delays as we demonstrate in real-hardware experiments. We publish code, additional results and videos from our experiments on our project webpage at https://sites.google.com/usc.edu/neuralsim.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Tiny Differentiable Simulator is a header-only C++ and CUDA physics library for reinforcement learning and robotics with zero dependencies.

1,380139C++, CMay 14, 20202 weeks agoApache-2.0

Similar Papers

Cite this paper

@article{heiden2020neuralsim,
  title  = {NeuralSim: Augmenting Differentiable Simulators with Neural Networks},
  author = {Eric Heiden and David Millard and Erwin Coumans and Yizhou Sheng and Gaurav S. Sukhatme},
  year   = {2020},
  eprint = {2011.04217},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.04217}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2011.04217.svg)](https://codeofpaper.com/paper/2011.04217)

Discussion