Stealthy World Model Manipulation via Data Poisoning
Abstract
Model-based learning agents use learned world models to predict future states, plan actions, and adapt to new environments. However, the process of updating world models from collected experience creates a training-time attack surface: adversarially poisoned fine-tuning trajectories can manipulate the learned dynamics and thereby corrupt downstream planning. In this paper, we propose SWAAP, a two-stage data poisoning framework for learned world models. In the first stage, SWAAP identifies a harmful target world model that induces low-return behavior under planning while remaining close to clean dynamics, using a first-order bilevel approximation with value-based directions motivated by a transition-gradient theorem. In the second stage, SWAAP approximates this target through stealth-constrained gradient matching, modifying only a limited fraction of fine-tuning transition targets so that the induced training gradients steer the victim model toward the adversarial target, while a prediction-error regularizer encourages the poisoned targets to remain close to the world model's natural approximation error. To assess attack stealthiness, we evaluate pre-training residual screening, robust fine-tuning with TRIM, and post-adaptation model-deviation diagnostics. Across diverse continuous-control tasks, SWAAP causes task-dependent performance degradation while keeping data-level deviations close to the clean reference scale at the stealth-prioritized settings. Residual-CUSUM detectability is task dependent and is generally limited at low false-positive rates in the stealth-prioritized regime, while TRIM does not consistently restore clean performance in the evaluated settings. These results reveal a practical vulnerability in world-model adaptation pipelines and highlight the need for robustness methods that protect both world-model training data and learned dynamics. Code is available at https://github.com/yibhu/SWAAP.