[Paper Review] Augmenting Differentiable Simulators with Neural Networks to Close the Sim2Real Gap
This paper proposes a hybrid differentiable simulator that integrates neural networks into analytical physics engines at any computational point, enabling end-to-end gradient-based optimization for system identification. By combining analytical dynamics with data-driven residual models and using random search to escape local minima, the approach significantly reduces the sim2real gap, as demonstrated on simulated and real-world double-pendulum dynamics.
We present a differentiable simulation architecture for articulated rigid-body dynamics that enables the augmentation of analytical models with neural networks at any point of the computation. Through gradient-based optimization, identification of the simulation parameters and network weights is performed efficiently in preliminary experiments on a real-world dataset and in sim2sim transfer applications, while poor local optima are overcome through a random search approach.
Motivation & Objective
- Address the sim2real gap in robotics by enhancing analytical physics simulations with data-driven models.
- Overcome poor local optima in system identification of nonlinear dynamics using a random search strategy.
- Enable efficient, gradient-based optimization of both simulation parameters and neural network weights in a unified framework.
- Allow neural networks to be inserted at any point in the simulation computation graph to model unmodeled dynamics.
- Demonstrate the approach on both sim2sim transfer and real-world system identification using real trajectory data.
Proposed method
- Augment any variable in a differentiable physics engine with a neural network that takes inputs from other simulation variables, creating a 'neural scalar'.
- Use a differentiable simulation engine based on C++ with multi-dimensional dual numbers for automatic gradient computation via Ceres library.
- Formulate system identification as a nonlinear least squares problem using Equation 1, minimizing state trajectory error with L2 regularization on neural network weights.
- Apply the Levenberg-Marquardt algorithm for fast local optimization of the loss function.
- Employ parallel basin hopping (PBH) to restart local solvers from randomized initial parameters, escaping poor local minima.
- Define a 'neural blueprint' in separate code to specify network architectures and initial weights, decoupling model definition from simulation execution.
Experimental results
Research questions
- RQ1Can neural networks be effectively inserted at arbitrary points in a differentiable physics engine to model unmodeled dynamics?
- RQ2How well can end-to-end differentiable optimization identify both analytical and neural network parameters from observed trajectories?
- RQ3Can random search strategies like parallel basin hopping effectively escape poor local minima in high-dimensional, nonconvex system identification problems?
- RQ4To what extent does the hybrid model reduce the sim2real gap compared to purely analytical simulators?
- RQ5How does regularization of neural network weights affect the physical plausibility and generalization of the learned dynamics?
Key findings
- After system identification using PBH, the hybrid simulator closely matched the target trajectory of a cube thrown on a ground plane, significantly reducing the sim2real gap compared to an unoptimized baseline.
- On the real-world double-pendulum dataset, the method successfully identified inertia, mass, and link length parameters, achieving a minimal sim2real gap.
- The loss function in Equation 1 enabled efficient optimization of both analytical model parameters and neural network weights through backpropagation.
- The use of random search (PBH) improved convergence to better solutions by escaping poor local minima common in nonlinear dynamics optimization.
- The hybrid architecture allowed for fine-grained augmentation of specific dynamics components—such as friction—while preserving the analytical foundation of the physics engine.
- The approach demonstrated strong performance in both sim2sim transfer and real-world system identification, showing promise for practical robotics applications.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.