Neural Dynamics Models: Predicting the Next State#

Choose a dynamics model by the quantity you observe and the quantity you want to predict. Each family ships as embodichain.extensions.models.dynamics.<family> in the main embodichain wheel. You can import a model independently of a simulator. Its example handles the required data, assets and weights.

Choose a model#

Model

Inputs

Prediction

Example

NeRD

History of robot states, joint efforts and contacts when present

State change decoded into the next articulated state

Cartpole and Ant

RWM

Current robot state, control and optional physical context

Next robot state at a fixed control period

Controlled fitting and replay

LeWM

RGB history and actions grouped into model steps

Future visual embeddings for image-goal planning

OGBench Cube

RigidFormer

Point-cloud history, reference geometry, anchors, physical properties and step size

Future geometry of interacting rigid objects in free rollout

MOVi rigid bodies

WorldParticle

Particle state, total acceleration, material features, static boundaries and optional topology

Next world-space particle positions and velocities

Fluid, cloth and elastic solids

Architecture and runtime#

Model

Architecture and gradients

Runtime

NeRD

Causal Transformer over history. The network and physical codec retain input gradients.

PyTorch on CPU or CUDA. Reference online forward kinematics uses Newton/Warp.

RWM

MLP with frame-local state integration. State and action gradients propagate through multiple steps.

PyTorch on CPU or CUDA.

LeWM

Vision Transformer and action-conditioned latent predictor. The rollout is differentiable and the CEM planner samples actions.

PyTorch on CPU or CUDA. The Cube example uses DexUni and native RGB.

RigidFormer

Object-level attention and anchor acceleration prediction. forward() trains parameters and rollout() runs inference without autograd.

Geometry prediction needs CUDA and the rigidformer extra.

WorldParticle

Local particle convolutions, token merging and cross-attention. The integration supports frozen forward inference and reset.

The tested configuration uses Python 3.12, Torch 2.11 CUDA and separately provisioned SM120 operators.

Shared supervised training#

NeRD, RWM, LeWM and RigidFormer provide installable factories for the common embodichain.learning.sl trainer:

Model

Recipe factory

NeRD

embodichain.extensions.models.dynamics.nerd.sl_recipe:build_supervised_trainer

RWM

embodichain.extensions.models.dynamics.rwm.sl_recipe:build_rwm_trainer

LeWM

embodichain.extensions.models.dynamics.lewm.sl_recipe:build_lewm_trainer

RigidFormer

embodichain.extensions.models.dynamics.rigidformer.sl_recipe:build_rigidformer_trainer

WorldParticle currently has no shared-SL recipe, learning-env or APG entry point.

After following a model guide to prepare its data and recipe, use the same entry point for training and recovery:

embodichain train-sl --config /path/to/recipe.yaml
embodichain train-sl --config /path/to/recipe.yaml --resume /path/to/train/last.pt

Relative paths in SL recipes resolve from the working directory. Use a fresh trainer.output_dir for a new run. Recovery uses the same recipe, data and model identity; changing the output destination does not make an incompatible checkpoint resumable. The SL API and launch guide describes checkpoints, distributed launches and per-rank batch sizes.

The shared trainer owns optimizer updates and recovery. Each family owns its representation, data adapter and objective, so inference inputs and export formats remain model-specific. A training checkpoint is distinct from an inference export, and the final checkpoint does not imply validation-based model selection.

Original papers#

Each model guide includes the project site and a BibTeX entry. For RWM’s implementation lineage, see the RWM references.

Results and further reading#

The guides distinguish offline transition error, accumulated rollout error, engine comparisons and controlled fitting. Their reported results apply to the recorded data, physical setup and evaluation protocol. Use each model’s reference workflow for published-weight or retraining comparisons.

  • Official model API: NeRD network, transition/geometry, optional Providers and WorldParticle inference, with a link to the RWM API.

  • RWM API: state integration, prediction, replay and supervised training.

  • LeWM API covers the model, SL recipe and CEM planner.

  • RigidFormer API: geometry inputs, checkpoint loading, MOVi source, objective and trainer factory.

  • Model catalog: model families and public import conventions.