TL;DR
The paper introduces the Neural Motion Simulator (MoSim), a physics-informed world model that achieves state-of-the-art long-horizon physical state prediction accuracy. By combining rigid-body dynamics inductive biases with Neural ODEs, MoSim enables zero-shot reinforcement learning, allowing agents to learn complex control tasks entirely within an imagined environment.
What Problem Does This Paper Address?
World models in reinforcement learning (RL) aim to simulate environment dynamics so agents can learn through "imagination" rather than costly real-world interactions. However, most existing world models are evaluated indirectly via downstream task performance, masking their actual predictive inaccuracies. Over long horizons, compounding errors cause these models to diverge from reality, making true zero-shot RL—where an agent trains completely inside a world model and deploys successfully in the real world—notoriously difficult. MoSim tackles this by focusing directly on maximizing long-horizon prediction accuracy in the raw state space.
Methods
MoSim models system dynamics using a continuous-time framework via Neural Ordinary Differential Equations (Neural ODEs), specifically utilizing the DOPRI5 adaptive integrator. The core architecture splits the time derivative of the state into two components:
- Predictor ($f$): Captures deterministic rigid-body dynamics. It embeds strong physical inductive biases by parameterizing the inverse inertia matrix $M(q)$ using a Cholesky decomposition to guarantee it remains positive definite and symmetric.
- Corrector ($\epsilon$): A standard residual network that handles non-smooth, unmodeled factors like friction, collisions, and noise.
To train this architecture effectively, the authors use a multi-stage training strategy: the predictor is trained first to capture smooth dynamics, then frozen, and the corrector is trained on top to handle complex, abrupt forces.
Datasets
The authors evaluated MoSim across several challenging continuous control benchmarks:
- DeepMind Control (DM Control) Suite: Including Cheetah, Reacher, Acrobot, Hopper, Humanoid, and Cartpole.
- MuJoCo Menagerie: Panda (a 3D robotic arm) and Go2 (a quadruped robot).
- MyoSuite: A musculoskeletal control dataset (specifically the
myohandenvironment).
Evaluation datasets were generated using both random action sequences (Poisson sampling) to test generalization and policy-based sequences to test task-specific performance.
Key Insights and Ideas
- Decoupling Physics from RL: Because MoSim predicts in the raw state space, it can turn any model-free RL algorithm (like TQC or SAC) into a model-based one without modifying the RL algorithm itself.
- Inductive Biases Matter: Purely black-box models (like standard ResNets) struggle with long-horizon physical accuracy. Forcing the network to respect structural properties of classical mechanics (like positive-definite inertia matrices) drastically reduces compounding errors.
- Random Data Boosts Generalization: Models trained on completely random datasets (-r) consistently outperformed those trained on policy-specific experience data (-e) when evaluated on out-of-distribution tasks.
- Uncertainty Penalization: To combat distribution shift during zero-shot training, the authors successfully used a residual normalizing flow to estimate training data density and penalize the agent when it enters states where the world model is uncertain.
Key Results
- State-of-the-Art Prediction: MoSim dramatically outperforms DreamerV3 (RSSM) and TD-MPC2 in multi-step state prediction. For instance, on the Reacher task at a 100-step horizon, MoSim achieved a Mean Squared Error (MSE) of 0.0009 compared to DreamerV3's 0.0988.
- Zero-Shot Success: Agents trained entirely within MoSim achieved performance close to real-environment baselines on Reacher-Easy, Reacher-Hard, Cartpole-Balance, and Acrobot-SwingUp without seeing a single real environment step during policy training.
- Long-Horizon Fidelity: MoSim maintains highly precise visual and physical fidelity over massive horizons, such as 200 steps for the Panda arm and 400 steps for the complex MyoHand.
Limitations and Future Work
Despite its success, MoSim hits a wall on highly chaotic or complex locomotion tasks like Cheetah-Run. In these environments, MoSim's stable prediction horizon is limited to roughly 100 steps, whereas standard model-free algorithms require a horizon of at least 500 steps to learn effectively offline. Furthermore, distribution shift remains a challenge; as the agent's policy improves, it visits states outside MoSim's training distribution, leading to compounding simulation errors. Future work will focus on extending the precise prediction horizon and developing better few-shot adaptation techniques to mitigate distribution shifts online.
Summary updated