# Stealthy World Model Manipulation via Data Poisoning

*Yibin Hu, Zizhan Zheng*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152645) · [Open on the map](../papers.html#p152645)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [Data Poisoning Attacks](../pgroup/621.md) · Type: new method · Keywords: data poisoning, world model manipulation, stealthy attack, continuous control, model-based reinforcement learning

Areas: [Safety & Security](../areas/safety.md) › Adversarial Security › Backdoor Attacks

## Summary
SWAAP introduces a two-stage data poisoning framework that stealthily manipulates learned world models by poisoning fine-tuning trajectories, causing degraded planning performance while evading detection.

## Explained to a 5-year-old
Some computer programs learn how things happen by watching lots of examples. Bad people can hide tricky examples inside those examples to fool the program. When the program uses its learned model to decide what to do, it makes mistakes. The tricky examples look almost the same as normal ones, so they are hard to spot. This shows that we need to be careful and build better ways to protect these programs.

## Explained to a 5-year-old, longer
A robot or computer program can learn how the world works by looking at many experiences. It builds a mental model that predicts what will happen next. If someone hides bad information inside those experiences, the model can become wrong. The bad information is designed to make the robot choose actions that lead to bad results. But the bad information is made to look just like normal experiences, so it is sneaky. The program updates its model using this hidden bad data during training. Because the bad data looks normal, the program doesn't notice anything is wrong. When the program later tries to plan or make decisions, it follows the wrong predictions. This leads to poor performance, like a game playing badly or a robot moving incorrectly. The researchers created a way to find the best kind of bad data and add it in a hidden way. They also made sure the bad data only changes a small part of the training, keeping it stealthy. This shows that even careful computer programs can be tricked if the data they learn from is not protected.

## For a technical reader
Model-based reinforcement learning agents maintain an internal world model that predicts future states and guides planning. During fine-tuning, the agent updates this model using collected transition data (state-action-next-state tuples). An attacker can inject a few poisoned transitions that look like normal data but subtly steer the model toward a malicious dynamics. The poisoning is performed in two stages: first, a bilevel optimization finds a harmful target model close to the clean one; second, gradient-matching modifies only a few transitions while keeping prediction errors low. The result is a stealthy attack that degrades downstream planning performance and evades existing detection defenses.

## Problem
Model-based learning agents rely on learned world models to predict future states and plan actions, but updating these models from collected experience creates a training-time attack surface where poisoned trajectories can corrupt downstream planning. This raises the question of how to stealthily manipulate world models without being detected.

## Method
The approach uses a first-stage bilevel optimization to identify a harmful target world model that induces low-return behavior while staying close to clean dynamics, and a second-stage gradient-matching step that modifies a limited fraction of fine-tuning transition targets under stealth constraints and a prediction-error regularizer. This steers the victim model toward the adversarial target while keeping poisoned transitions close to natural approximation error.

## Results
The approach leads to substantial performance degradation on continuous-control tasks while the poisoned transitions remain close to clean data and evade the evaluated defenses.

## Contributions
A two-stage data poisoning framework that can stealthily manipulate world models via limited gradient-matching, a transition-gradient theorem enabling bilevel optimization for target identification, and a comprehensive evaluation of attack stealthiness across pre-training, training, and test-time stages.

## Limitations and assumptions
The attack only modifies a limited fraction of fine-tuning transitions and is evaluated on continuous-control tasks, which may limit its generality.

## Practical relevance
The findings expose a practical vulnerability in model-based learning pipelines, emphasizing the need for robust defenses in real-world deployment of world models.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152645)
