NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Neural Robot Dynamics

Jie Xu, Eric Heiden, Iretiayo Akinola, Dieter Fox, Miles Macklin, Yashraj Narang

TL;DR

NeRD (Neural Robot Dynamics) introduces modular, robot-specific neural physics models that replace only the numerical dynamics and contact solvers inside existing robotics simulators while retaining classical collision detection and controller layers. By utilizing a robot-centric, spatially invariant state representation and a lightweight causal Transformer, NeRD enables long-horizon stability, zero-shot policy transfer to both classical simulators and real hardware, and rapid fine-tuning on real-world data.

What Problem Does This Paper Address?

Traditional analytical physics simulators (such as Featherstone-based engines) struggle with contact discontinuities, complex frictional mechanics, and the sim-to-real gap. Conversely, existing neural physics engines and model-based RL "world models" typically treat simulation as an end-to-end black box, directly mapping $(s_t, a_t) \to s_{t+1}$.

Because these end-to-end models omit explicit environment geometry and take raw control actions (e.g., target joint positions) rather than joint torques, they overfit to specific scenes, tasks, and low-level controllers. Consequently, they fail when exposed to novel state distributions, altered terrain, or custom control gains.

Methods

NeRD takes a hybrid, modular simulation approach:

  • Selective Replacement: Instead of replacing the entire simulator, NeRD replaces only the application-agnostic core: the forward dynamics and contact solver. Modules for collision detection and low-level control are kept intact.
  • Compact Contact Interface: Classical collision detection produces a set of contact quantities $\mathcal{C}_t = \{(\mathbf{p}^0_i, \mathbf{p}^1_i, \vec{n}_i, d_i)\}$ (contact points, contact normals, and signed penetration distances), and the low-level controller translates action commands into joint-space torques $\boldsymbol{\tau}_t$.
  • Robot-Centric, Spatially Invariant Representation: All base states and contact points are projected into the robot’s instantaneous base coordinate frame $\mathcal{B}_t$. Gravity is treated as an external directional vector $\vec{g}^{\mathcal{B}_t}$ in the body frame. This explicitly enforces translation and yaw-rotation invariance, drastically reducing the search space and preventing out-of-distribution drift over large spatial displacements.
  • Macro-step Relative Prediction: Rather than stepping through multiple numerical micro-substeps, a lightweight causal Transformer (GPT-2 style, 6 layers, history window $h=10$) directly predicts the normalized state difference $\Delta s_{t+1}$ across a macro timestep.

NeRD is implemented as an interchangeable backend solver inside NVIDIA’s Warp framework.

Datasets

  • Synthetic Training Data: Collected using NVIDIA Warp with Featherstone solvers across six distinct systems: Cartpole, Double Pendulum, Ant (14-DoF), Franka Emika Panda (7-DoF), ANYmal quadruped (18-DoF), and Cube Toss. Each model is trained task-agnostically on 100K 100-step random trajectories driven by randomized torque sequences.
  • Real-World Benchmarks:
  • Cube Tossing Dataset: 570 real trajectories (~60K transitions) of a cube colliding and settling on planar surfaces, split into 400 train, 85 validation, and 85 test trajectories.
  • Physical Hardware: A physical 7-DoF Franka arm executing reaching tasks over 50 target workspace positions.

Key Insights and Ideas

  • Modularity beats end-to-end learning: Isolating the dynamics/contact solver from collision detection and controllers allows a single model trained purely on random torque babbling to generalize across completely different downstream tasks, controllers (torque vs. position PD), and ground contact configurations.
  • Invariance through frame transformations: Re-centering inputs and outputs into the robot's local body frame eliminates the need to sample all coordinates and heading angles during training, preventing errors from exploding when the robot travels far from the origin.
  • History smooths velocity noise: Although classical rigid-body mechanics is first-order Markovian ($s_{t+1} = f(s_t, \tau_t)$), including a short history ($h=10$) via a causal Transformer substantially outperforms MLPs and RNNs by inferring smoothed internal velocity representations.

Key Results

  • Long-Horizon Accuracy: Over 1,000 passive simulation steps (~16.7 s), NeRD on Cartpole accumulates only 0.033 m prismatic base error and 0.075 rad revolute error. For the 14-DoF floating-base Ant over 500 steps, base position error remains within 0.057 m.
  • Zero-Shot Policy Transfer: Policies for Cartpole swing-up, Ant locomotion (running, spinning, tracking), and ANYmal velocity-tracking trained exclusively inside NeRD deploy directly to the ground-truth Warp simulator with nearly identical returns (e.g., ANYmal forward walking reward differs by only -0.02%).
  • Sim-to-Real Transfer: A Franka reaching policy trained entirely inside NeRD transferred zero-shot to a physical robot, reaching targets with an average steady-state error of $1.927 \pm 0.699\text{ mm}$, outperforming a policy trained in the analytical baseline simulator ($4.647 \pm 2.667\text{ mm}$).
  • Real-World Fine-Tuning: On the cube-tossing benchmark, fine-tuning a pretrained NeRD model cut position error from 0.036 m (Warp) to 0.018 m, converged in fewer than 5 epochs ($10\times$ faster than training from scratch), and trained in under 10 minutes (vs. 12 hours for ContactNets).
  • Speed: On parallel Ant simulation (512 envs), NeRD ran at 46K FPS, surpassing Warp with 16 substeps (28K FPS).

Limitations and Future Work

  • Scaling to High-DoF Systems: NeRD has been tested on systems up to 18 DoF (ANYmal); scaling to humanoids (20–50+ DoF) with intricate closed chains remains untested.
  • Data Coverage for Complex Morphologies: Uniform random torque babbling works for moderate DoFs, but will suffer from the curse of dimensionality as degrees of freedom multiply.
  • Full State Observability: Fine-tuning currently assumes ground-truth joint positions, velocities, and full geometry for collision detection, which are rarely available without noise or occlusion in unstructured real-world domains.

Summary updated

BibTeX
@inproceedings{xu2025neural,
  author = {Jie Xu and Eric Heiden and Iretiayo Akinola and Dieter Fox and Miles Macklin and Yashraj Narang},
  title = {{Neural Robot Dynamics}},
  booktitle = {Conference on Robot Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=HqqyJ9A2fy},
}
Figure