Toward Adversarially Robust World Models
Organizations: Northeastern University · Max Planck Institute for Software System
Abstract
Latent dynamic world models have proven to be highly versatile tools for embodied artificial intelligence systems, enabling online action planning, safe policy evaluation, and scalable policy learning. However, this versatility makes world models a vulnerable and centralized point of failure as a compromised model can impact planning, evaluation, and training at once. Therefore it is critical that the security and robustness properties of world models are properly understood before they are universally deployed in embodied AI systems. In this work we take a unifying approach towards this understanding, developing two novel attacks against world models, named state hallucination and dynamic shift attacks, aimed directly at impacting downstream systems, and proposing a new theoretical lens through which to study the robustness of latent dynamic world models. Through our analysis we identify robust latent space encoders as the key component of robust world models. We empirically validate this finding on four separate latent dynamic world model families, studying Dino World Model, Le World Model, r2Dreamer, and Cosmos 3, demonstrating significant improvements in robustness through adversarial encoder model training.
Figures & tables
| Encoder | Metric | Dino WM | Le WM | r2Dreamer | Cosmos 3 | ||||
|---|---|---|---|---|---|---|---|---|---|
| wall | push-t | wall | push-t | reacher | cartpole | walker | droid | ||
| Base | Hallucination | 0.26 | 0.32 | 0.12 | 0.31 | 0.23 | 0.14 | 0.26 | 0.54 |
| Hallucination | 0.79 | 0.76 | 0.79 | 0.62 | 0.87 | 0.91 | 0.76 | 0.81 | |
| Hallucination | 1.82 (0.01) | 2.52 (0.59) | 2.14 (0.10) | 2.36 (0.43) | 2.83 (1.49) | 2.77 (0.51) | 4.20 (1.89) | 1.34 (0.73) | |
| Invert actions | 0.19 | 0.29 | 0.54 | 0.68 | 1.07 | 1.38 | 0.98 | 0.51 | |
| Encoder | Observation | reacher_easy | cartpole_swingup | walker_walk | |||
|---|---|---|---|---|---|---|---|
| Base | 18.64 | 6.03 | 12.89 | 9.00 | 17.66 | 6.98 | |
| 3.51 | 14.35 | 5.68 | 7.19 | 4.54 | 13.67 | ||
| 2.60 | 11.11 | 5.61 | 7.18 | 4.31 | 9.16 | ||
| ASR | 90% | 63% | 77% | ||||
| FARE | 18.47 | 5.78 | 13.04 | 9.09 | 17.79 | 7.77 | |
Appendix figures & tables31 assets
Supplementary material from the paper’s appendix.
Appendix
| Dino WM | Le WM | r2Dreamer | Cosmos 3 | |
| Model and data | ||||
| Encoder | DINOv2 ( Oquab et al., 2023 ) ViT-S/14 ( Dosovitskiy et al., 2021 ) (22M), patch tokens | ViT-Tiny/14 with MLP projector to a 192-d embedding (6.3M) | CNN (220k) | Wan2.2 VAE encoder (150M) |
| Predictor | 6-block ViT (20M), action and proprioception tiled into every token; released adversarially trained checkpoint ( Parthasarathy et al., 2025 ) | 6-block autoregressive transformer (11M), adaLN ( Peebles and Xie, 2023 ) action conditioning | RSSM ( Hafner et al., 2019 ) (6M), 2048-d recurrent, stochastic state | Diffusion transformer ( Peebles and Xie, 2023 ) (8B), 30 sampler steps |
| Environments | Wall (1920 episodes), Push-T (18,685 + 21 held-out) | Push-T (18,685 episodes), Wall (10,000) | DMC reacher_easy , walker_walk , cartpole_swingup | DROID |
| Input | image + proprioception; history 1 (Wall), 3 (Push-T); frameskip 5 | image; frameskip 5 | image, 5 context frames | 1 frame (wrist + 2 exterior cameras), 16 end-effector actions |
| Main | Push-T , Wall | and | ||
| Dino WM | Le WM | r2Dreamer | Cosmos 3 | |
| FARE training | ||||
| Objective | Equation 6 , patch tokens, normalized | Equation 6 , encoder tokens + CLS embedding, normalized | Equation 6 , CNN embedding + posterior state, each normalized | VAE latent + prediction term, each normalized |
| Trainable params | full encoder (22.1M) | encoder + projector (6.3M) | full CNN encoder (220k) | VAE encoder + its output convolution (149.6M) |
| Training data | 4096 frames from the FARE split | 4096 frames from the FARE split | 60 episodes, disjoint seeds | 84 DROID episodes, disjoint from evaluation |
| Push-T , Wall | ||||
| Inner maximization | 10-step sign-PGD, untargeted | 10-step sign-PGD, untargeted | 10-step sign-PGD, untargeted | 10-step sign-PGD through 1 sampler step, EOT 2 |
| Variance | Similarity across | Rotation error ( ∘ ) | ||
|---|---|---|---|---|
| Location | in plane | observations | target | target |
| Hidden activations, layer 1 | 0.950 | 0.531 | – | – |
| Hidden activations, layer 3 | 0.958 | 0.498 | 32.4 | 29.3 |
| Hidden activations, layer 6 | 0.943 | 0.473 | – | – |
| Conditioning pathway, layer 1 | 0.933 | 0.978 | – | – |
| Conditioning pathway, layer 5 | 0.954 | 0.997 | 74.6 | 125.8 |
| Predictor input | Action recoverable (probe ) | Depends on image |
|---|---|---|
| State input (recurrent) | yes | |
| State input (stochastic) | yes | |
| Action input | no | |
| Combined first layer | yes | |
| Next predicted state | – |
| Model / env | Encoder | ( ) | (rot ) | (mirror ) | |
|---|---|---|---|---|---|
| Dino WM Wall | base | 8/255 | 0.19 | 0.25 | 0.14 |
| Dino WM Wall | FARE | 8/255 | 0.99 | 0.99 | 0.99 |
| Dino WM Push-T | base | 8/255 | 0.29 | 0.47 | 0.37 |
| Dino WM Push-T | FARE | 8/255 | 0.99 | 0.99 | 0.99 |
| Le WM Push-T | base | 8/255 | 0.68 | 0.71 | 0.79 |
| Le WM Push-T | FARE | 8/255 | 0.91 | 0.89 | 0.92 |
| State err. | |||
|---|---|---|---|
| clean | – | – | 0.53 |
| 0 | 0.26 [0.23, 0.29] | 0.68 [0.64, 0.72] | 0.79 |
| 3 | 0.22 [0.18, 0.27] | 0.76 [0.72, 0.80] | 0.56 |
| Model / env | Encoder | clean floor | white-box err. | white-box succ. | transfer succ. | |
|---|---|---|---|---|---|---|
| Dino WM Wall | base | 8/255 | 0.01 [0.00, 0.01] | 1.81 [1.71, 1.92] | 1.00 [0.94, 1.00] | – |
| FARE | 8/255 | 0.00 [0.00, 0.01] | 0.01 [0.01, 0.01] | 0.00 [0.00, 0.06] | 0.00 [0.00, 0.06] | |
| FARE | 16/255 | 0.00 [0.00, 0.01] | 0.03 [0.02, 0.03] | 0.00 [0.00, 0.06] | – | |
| FARE | 32/255 | 0.00 [0.00, 0.01] | 0.10 [0.08, 0.12] | 0.00 [0.00, 0.06] | – | |
| FARE | 64/255 | 0.00 [0.00, 0.01] | 2.16 [1.99, 2.34] | 0.89 [0.79, 0.95] | – | |
| Le WM Push-T | base | 8/255 | 0.44 [0.38, 0.51] | 2.35 [2.13, 2.60] | 0.38 [0.27, 0.50] | – |
| Model / env | Attack | Probe err. | Success | ||||
|---|---|---|---|---|---|---|---|
| Dino WM Wall | 8/255 | – | none | 0.26 | 0.79 | 1.82 (0.01) | 1.00 |
| 75 | oblivious | 1.36 | 1.26 | 1.03 (0.01) | 0.10 | ||
| 75 | BPDA | 0.52 | 0.80 | 1.44 (0.01) | 0.88 | ||
| 75 | BPDA + EOT | 0.44 | 0.82 | 1.57 (0.01) | 0.98 | ||
| 50 | oblivious | 1.35 | 0.96 | 0.70 (0.02) | 0.00 | ||
| 50 | BPDA | 0.83 | 0.98 | 1.25 (0.02) | 0.45 |
| Model / env | Defense | No attack | Oblivious | BPDA + EOT | |
|---|---|---|---|---|---|
| Dino WM Wall | 8/255 | none | 46/50 | 38/50 | – |
| JPEG 75 | 47/50 | 43/50 | 39/50 | ||
| JPEG 50 | 47/50 | 46/50 | 43/50 | ||
| Le WM Push-T | 8/255 | none | 40/50 | 2/50 | – |
| JPEG 75 | 40/50 | 40/50 | 8/50 | ||
| JPEG 50 | 43/50 | 40/50 | 12/50 |
| Task | Enc. | Return, none | Success, none | Return, untarg. 16 | Success, untarg. 16 | Return, halluc. 16 | Success, halluc. 16 |
|---|---|---|---|---|---|---|---|
| reacher | base | 844 | 44/50 [0.76, 0.94] | 105 | 4/50 [0.03, 0.19] | 77 | 3/50 [0.02, 0.16] |
| reacher | FARE | 808 | 43/50 [0.74, 0.93] | 809 | 41/50 [0.69, 0.90] | 756 | 40/50 [0.67, 0.89] |
| walker | base | 919 | 50/50 [0.93, 1.00] | 133 | 0/50 [0.00, 0.07] | 95 | 0/50 [0.00, 0.07] |
| walker | FARE | 868 | 50/50 [0.93, 1.00] | 788 | 50/50 [0.93, 1.00] | 812 | 50/50 [0.93, 1.00] |
| cartpole | base | 864 | 50/50 [0.93, 1.00] | 100 | 0/50 [0.00, 0.07] | 118 | 0/50 [0.00, 0.07] |
| cartpole | FARE | 653 | 50/50 [0.93, 1.00] | 512 | 30/50 [0.46, 0.72] | 558 | 46/50 [0.81, 0.97] |
| Base | FARE | ||||||
|---|---|---|---|---|---|---|---|
| Attack | |||||||
| Dino WM Wall ( = 4, 8, 16/255) | |||||||
| none | 46/50 | 48/50 | |||||
| untargeted | 7/50 | 3/50 | 6/50 | 49/50 | 48/50 | 49/50 | |
| Eq. (2) planner goal | 44/50 | 35/50 | 39/50 | 47/50 | 48/50 | 49/50 | |
| Eq. (2) other episode’s goal | 40/50 | 38/50 | 37/50 | 48/50 | 49/50 | 47/50 | |
| Model / env | Enc. | Success | median | med. | |||
|---|---|---|---|---|---|---|---|
| Dino WM Wall | base | 4/255 | 25/50 [0.37, 0.63] | +0.19 [+0.13, +0.23] | 58 ∘ | 0.24 | 1042 |
| Dino WM Wall | base | 8/255 | 19/50 [0.26, 0.52] | +0.24 [+0.20, +0.27] | 46 ∘ | 0.23 | 1172 |
| Dino WM Wall (cold start) | base | 8/255 | 4/50 [0.03, 0.19] | -0.65 [-0.67, -0.61] | 150 ∘ | 0.59 | 1446 |
| Dino WM Wall | base | 16/255 | 24/50 [0.35, 0.61] | +0.22 [+0.18, +0.26] | 50 ∘ | 0.22 | 1173 |
| Dino WM Wall | FARE | 4/255 | 47/50 [0.84, 0.98] | +1.00 [+1.00, +1.00] | 1 ∘ | 0.00 | 317 |
| Dino WM Wall | FARE | 8/255 | 46/50 [0.81, 0.97] | +1.00 [+1.00, +1.00] | 1 ∘ | 0.00 | 383 |
| Agent in the dynamic-shifted Push-T model | Median final error (su) | Solved ( su) |
|---|---|---|
| Clean model, CEM | 2.0 | 98.4% |
| Mirror- shift, CEM | 23.1 | 76.6% |
| Inversion shift, CEM | 37.4 | 59.4% |
| Mirror- shift, analytic inverse of | 98.3 | 10.9% |
| Inversion shift, analytic inverse of | 96.3 | 7.8% |
| Latent attack | Planning success | |||||||
|---|---|---|---|---|---|---|---|---|
| Env | Encoder | Predictor | None | Untarg. | Halluc. (goal) | Halluc. (other) | ||
| Wall (8/255) | base | adv.-trained | 0.26 | 0.19 | 92% | 6% | 70% | 76% |
| clean-trained | 0.26 | 0.25 | 80% | 4% | 40% | 50% | ||
| FARE | adv.-trained | 0.99 | 0.99 | 96% | 96% | 96% | 98% | |
| clean-trained | 0.99 | 1.00 | 80% | 80% | 80% | 74% | ||
| Push-T (8/255) | base | adv.-trained | 0.32 | 0.29 | 32% | 4% | 42% | 22% |
| Latent attack | Planning success | ||||||
|---|---|---|---|---|---|---|---|
| Env | Encoder | Predictor | None | Untarg. | Halluc. (other) | ||
| Wall (2/255) | base | released | 0.12 | 0.54 | 82% | 24% | 38% |
| clean FT | 0.12 | 0.54 | 88% | 34% | 42% | ||
| AWM FT | 0.12 | 0.52 | 86% | 34% | 52% | ||
| FARE | released | 0.97 | 0.99 | 82% | 84% | 84% | |
| clean FT | 0.97 | 0.99 | 88% | 86% | 84% | ||
| FARE data | Clean floor | Sens. slope | Fidelity cos | Next-state err. | (Eq. 2) | Probe err. (Eq. 2) | Untarg. err. | Untarg. disp. |
|---|---|---|---|---|---|---|---|---|
| Wall frames | 0.01 | 0.0061 | 0.89 | 0.05 | 0.99 [0.99, 0.99] | 0.02 | 0.01 | 0.000 |
| ImageNet | 0.01 | 0.0031 | 0.04 | 1.24 | 0.78 [0.77, 0.79] | 0.23 | 0.33 | 0.024 |
| 50/50 mix | 0.01 | 0.0058 | 0.82 | 0.09 | 0.97 [0.96, 0.97] | 0.05 | 0.03 | 0.000 |
| Task | FARE target | Probe err. | Control return | ||
|---|---|---|---|---|---|
| walker | posterior | 16/255 | 0.91 | 2.01 | 233 |
| walker | embedding | 16/255 | 0.76 | 2.61 | – |
| Clean probe error (z) | Sensitivity slope | Fidelity cos | ||||
|---|---|---|---|---|---|---|
| Model / env | Base | FARE | Base | FARE | Base | FARE |
| Dino WM Wall | 0.01 | 0.01 | 0.0060 | 0.0061 | 0.91 | 0.89 |
| Dino WM Push-T | 0.59 | 0.48 | 0.0200 | 0.0198 | 0.73 | 0.76 |
| Le WM Push-T | 0.43 | 0.45 | 0.0160 | 0.0169 | 0.77 | 0.77 |
| Le WM Wall | 0.10 | 0.14 | 0.0185 | 0.0200 | 0.80 | 0.57 |
| r2Dreamer reacher | 1.49 | 1.48 | 0.0895 | 0.0891 | 0.15 | 0.22 |
| Model / env | Measure | Base | FARE |
|---|---|---|---|
| r2Dreamer reacher | return (50 episodes) | 844.6 43.9 | 858.3 37.3 |
| r2Dreamer walker | return (50 episodes) | 921.9 5.5 | 855.8 9.4 |
| r2Dreamer cartpole | return (50 episodes) | 863.5 0.2 | 650.7 5.0 |
| Cosmos 3 DROID | clean rollout PSNR vs recorded (dB) | 21.0 [20.3, 21.7] | 20.2 [19.6, 20.8] |
| Cosmos 3 DROID | 0 | 0.402 |
| Attack | Encoder | attacked vs GT | clean vs GT | attacked vs clean | attacked vs target | target vs clean |
|---|---|---|---|---|---|---|
| Dynamic shift (reverse) | base | 17.0 | 21.0 | 18.0 | 20.7 | 17.1 |
| Dynamic shift (reverse) | FARE | 19.2 | 20.2 | 23.8 | 18.6 | 17.7 |
| State hallucination | base | 16.0 | 21.0 | 16.9 | 19.0 | 15.6 |
| State hallucination | FARE | 18.9 | 20.2 | 22.9 | 17.3 | 16.2 |
| Target | Encoder | Attack | to target | from clean | |
|---|---|---|---|---|---|
| Eq. (3) reverse | base | encoder only | 10 | 0.93 [0.90, 0.96] | 0.26 [0.19, 0.33] |
| Eq. (3) reverse | base | 10 | 0.56 [0.50, 0.63] | 0.77 [0.71, 0.84] | |
| Eq. (3) reverse | base | (as in Table 1 ) | 10 | 0.49 [0.42, 0.57] | 0.80 [0.74, 0.85] |
| Eq. (3) reverse | FARE | encoder only | 10 | 0.95 [0.92, 0.96] | 0.10 [0.06, 0.13] |
| Eq. (3) reverse | FARE | 10 | 0.85 [0.79, 0.91] | 0.26 [0.21, 0.31] | |
| Eq. (3) reverse | FARE | (as in Table 1 ) | 10 | 0.80 [0.71, 0.87] | 0.35 [0.27, 0.42] |
| State hallucination | Static | Rotation | ||||
|---|---|---|---|---|---|---|
| Attack | Cost ( rollout) | latent | position | EE drift (cm) | motion | latent |
| Encoder only (Eq. (2)) | 1.1–9.0 | 0 0 | 0 0 | 0.5 0.3 | 0 0 | 0 0 |
| Through , | 8.8 | 20 0 | 6 0 | 2.9 0.8 | 75 0 | 81 10 |
| Through , | 74.6 | 70 0 | 15 2 | 3.6 1.2 | 92 0 | 96 17 |
| Through , | 681.6 | 57 0 | 9 0 | 1.6 0.8 | 100 0 | 85 10 |
World Models
World models represent and predict how environments change, helping agents plan, act, and reason about possible futures.
See all 417 papers