Sensorimotor World Models

Checkpoints for Sensorimotor World Models: Perception for Action via Inverse Dynamics. Paper · Code · Analysis data

Models

100 final checkpoints: four environments × five learned methods × five training seeds. Each directory <environment>/<method>/seed<0–4>/ contains:

  • config.yaml: training and model settings.
  • weights.pt: CPU model state dictionary, including the encoder; no optimizer state.
  • metrics.json: success rate and all 100 evaluation episode outcomes.

Environments: tworoom, reacher, pusht, ogbcube. Methods: smwm, sigreg, forward_only, pldm, dino_wm. Seed 0 is used for the representation analysis.

Training uses 10 epochs, effective batch size 256 and history length 1. SMWM uses λ=10; SIGReg uses weight 0.09. The DINO-WM baseline uses frozen DINOv2-small patch embeddings and pixels/actions only.

Download and use

After setting up the code repository:

from pathlib import Path
import sys
import torch
from omegaconf import OmegaConf
from huggingface_hub import snapshot_download

snapshot_download(
    "petr-ivashkov/smwm", revision="v1.0",
    local_dir="planning/outputs/pretrained",
    allow_patterns=["tworoom/smwm/seed0/*", "LICENSE*"],
)
sys.path.insert(0, "planning")
from eval import build_jepa
directory = Path("planning/outputs/pretrained/tworoom/smwm/seed0")
config = OmegaConf.load(directory / "config.yaml")
model = build_jepa(config).eval()
model.load_state_dict(torch.load(directory / "weights.pt", weights_only=True))

Select other models by changing allow_patterns; omit it to download all models. The code README covers encoding images and running the analysis notebooks.

Planning benchmark

Success percentage, mean ± sample standard deviation over seeds 0–4. Random uses five policy repeats. Each run evaluates 100 held-out tasks with goal offset 25, budget 50, and CEM horizon 5 × 5 actions (300 candidates, 30 iterations, 30 elites). Evaluation outcomes, including Random, are in the analysis dataset.

Environment SMWM SIGReg PLDM DINO-WM Random Forward-only
TwoRoom 96.8 ± 0.8 94.4 ± 0.5 99.2 ± 0.4 100.0 ± 0.0 30.0 ± 5.7 35.0 ± 6.8
Reacher 68.4 ± 3.4 69.2 ± 1.9 68.2 ± 6.5 61.6 ± 4.6 13.6 ± 5.1 7.6 ± 2.1
Push-T 83.6 ± 1.9 89.8 ± 1.5 70.4 ± 2.1 72.2 ± 1.8 2.8 ± 1.5 1.8 ± 1.3
OGBench-Cube 80.6 ± 3.6 59.2 ± 3.4 58.2 ± 2.9 67.0 ± 4.3 43.0 ± 1.9 43.8 ± 1.3

License

SMWM-trained weights and release metadata are MIT licensed (see LICENSE). DINO-WM includes the frozen DINOv2-small encoder, revision ed25f3a31f01632728cabb09d1542f84ab7b0056, released by Meta under Apache-2.0 (LICENSE.dinov2). The code repository documents the LeWorldModel, PLDM, stable-worldmodel, and DINO-WM implementations and their attribution.

Downloads last month

-

Downloads are not tracked for this model. How to track
Video Preview
loading

Paper for petr-ivashkov/smwm