TL;DR
Modern AI agents—like robots and autonomous vehicles—increasingly rely on internal "world models" to mentally simulate the future before acting. This paper reveals that when these world models are fine-tuned on locally collected data, an attacker can subtly alter just a small fraction of recorded memories to warp the agent's internal physics, tricking its planner into making terrible decisions while looking completely normal to standard anomaly detectors.
What Problem Does This Paper Address?
Imagine planning a hike using a topographical map. Even if you are a brilliant navigator, if someone subtly redraws a cliff to look like a gentle slope, your optimal route will walk you right off the edge.
In reinforcement learning (RL), world models serve as that map. Rather than learning purely by trial and error, model-based agents learn how the environment works—predicting future states from current states and actions—so they can "imagine" scenarios and plan ahead. Typically, a massive world model is pretrained and then periodically fine-tuned on local experience gathered in the field (e.g., from an edge device or deployed robot).
That local data stream is an inviting target for data poisoning. Yet, poisoning a world model is much harder than traditional supervised learning attacks (like flipping a "cat" label to a "dog") or standard RL attacks that directly corrupt reward signals. An attacker cannot touch the agent's decision-making policy directly; they can only nudge the next-state transitions in a small fraction of fine-tuning data. Worse, tiny prediction errors compound over long-horizon mental rollouts, and differentiating through both model training and downstream planning simultaneously is computationally intractable. How can an adversary reliably sabotage an agent’s plans without triggering obvious data-corruption alarms?
Methods
The authors introduce SWAAP (Stealthy World Model Manipulation via Data Poisoning), which cracks this intractable bilevel optimization problem by splitting it into two distinct stages:
- Stage 1: Dreaming Up the "Worst" Believable World. First, SWAAP searches parameter space to find a hypothetical target world model ($\hat{\psi}$). This model must satisfy two competing goals: its dynamics must stay mathematically close to the true environment, yet planning under its subtly warped physics must yield terrible real-world returns. To avoid the prohibitive cost of differentiating through an inner planning loop, the authors derive a novel transition-gradient theorem (an analog to policy gradients, but for environment dynamics) and pair it with a first-order dynamic-barrier bilevel method.
- Stage 2: Realizing the Target via Gradient Matching. The attacker can't just overwrite the victim's model weights—they can only edit up to a fraction $r_p$ (e.g., 10%) of next-state targets in the fine-tuning dataset. SWAAP selects the transitions where the clean model and target model disagree most, then optimizes perturbations using gradient matching (adapting techniques from supervised poisoning). It shapes the poisoned data so the victim's fine-tuning gradients point straight toward the Stage 1 target model, while a prediction-error regularizer forces the fake data's residuals to match the clean model's natural approximation error. The authors also introduce a trajectory-consistent variant where an edited state serves seamlessly as both the outcome of step $t$ and the starting point of step $t+1$.
Datasets
Rather than static datasets, SWAAP is evaluated on fine-tuning trajectories (typically 5,000 transitions, alongside 25,000-transition ablations) collected across four continuous-control and robotics simulation benchmarks:
- DMControl (5 locomotion tasks, e.g., Humanoid-Walk, Dog-Run)
- MyoSuite (2 contact-rich musculoskeletal control tasks)
- Meta-World (2 robotic manipulation tasks: Push, Soccer)
- ManiSkill2 (3 generalizable manipulation tasks: Lift, Pick, Stack)
Experiments primarily target TD-MPC2 (a latent-space world model using Model Predictive Control), alongside evaluations on DINO-WM (a visual world model) and a multi-task TD-MPC2 setup. No new benchmarks are introduced.
Key Insights and Ideas
- Stealth by Blending into Natural Imperfection: Every learned world model has some baseline prediction error. By regularizing poisoned targets to match the magnitude of clean residuals, SWAAP hides its tracks right inside the model's expected uncertainty.
- Shaping Updates Beats Corrupting Values: Compared against a baseline that directly pushes next-states toward low-value regions (offline PGD), SWAAP achieves far worse performance drops with smaller data perturbations. Optimizing how data shapes training gradients is much more potent than greedily corrupting individual states.
- The "Realizability" Bottleneck: Finding a harmful world model (Stage 1) doesn't guarantee you can reach it by poisoning 10% of fine-tuning data (Stage 2). In tasks like Humanoid-Walk, data poisoning closely tracks direct model tampering; in others like Myo-Pen-Twirl-Hard, a wide gap remains, showing that some dynamics are inherently harder to induce via bounded data edits.
- Standard Defenses Struggle: Pre-training statistical screening (Residual-CUSUM) catches aggressive attacks, but under high stealth regularization ($\alpha = 0.9$), its detection AUC drops to near-random guessing. Training-time loss trimming (TRIM) partially recovers returns on some tasks, leaves large performance gaps on others, and occasionally degrades clean performance by throwing out valid, hard-to-predict transitions.
Key Results
At a 10% poisoning budget ($r_p = 0.1$) and high stealth ($\alpha = 0.9$):
- Substantial Return Drops: SWAAP reduces mean cumulative returns across all nine DMControl, MyoSuite, and Meta-World tasks—slashing returns by 54.7% on Humanoid-Walk (from 857 to 387), 41.4% on Humanoid-Run, 33.3% on MW-Soccer, and 21.7% on Dog-Run, while random perturbations of the same scale have virtually zero effect.
- Near-Zero Data Footprint: Across tasks, normalized data-level deviation ($\delta_d$) remains nearly identical to clean reference error (e.g., $0.090$ vs. $0.090$ on Humanoid-Walk; $0.081$ vs. $0.080$ on MW-Push). Pre-training CUSUM detection across the nine main tasks averages an AUC of just 0.506 (essentially a coin flip).
- Architecture & Gray-Box Transfer: On the visual DINO-WM pipeline, SWAAP reduces goal-reaching success by 6.67 percentage points ($\alpha=0.9$) without triggering extra CUSUM alarms. In a gray-box setting—crafting raw-observation poisons on a single-task surrogate to attack an 80-task victim with an unknown encoder—returns still drop by up to 17.84% on related tasks (Push).
Limitations and Future Work
The authors note several transparent boundaries to this initial study:
- Model Scale & Access: Experiments focus on TD-MPC2 and DINO-WM; scaling to massive multimodal foundation world models remains open. Furthermore, the primary attack assumes white-box access to pretrained weights and visibility of the full fine-tuning dataset.
- Decoupled Stages: Because Stage 1 doesn't know which target models are easiest for Stage 2 to realize via gradient matching, jointly optimizing target discovery and data realization is a promising next step.
- Untargeted Sabotage: SWAAP focuses on degrading overall return rather than steering the agent into a specific, attacker-chosen behavior, and leaves open the design of defenses tailored specifically to world-model dynamics.
Summary updated