SWAM: State-aware World Action Model for Multi-Agent 3D Environments

Jenna Kang, Bingxuan Li, Colin Groth, Anatolii Evdokimov, Sai Zhang, Qi SunarXiv 2026

Imagine you’re playing a high-stakes game of hide-and-seek in a sprawling 3D maze. You see your friend duck behind a pillar. Even though they are now invisible to you, your brain maintains a "mental map" of where they are, how fast they were moving, and when they might pop out from the other side.

Current AI "world models"—the systems that try to simulate game environments purely through neural networks—are notoriously bad at this. They suffer from a digital version of a lack of object permanence: if a character leaves the frame, they effectively cease to exist. When they reappear, they might have different clothes, be in the wrong place, or simply never come back at all.

The paper "SWAM: State-aware World Action Model for Multi-Agent 3D Environments" introduces a clever way to give AI that missing mental map.

TL;DR

SWAM solves the "vanishing NPC" problem in AI-generated games by decoupling the logic of where characters are from the art of rendering them. By running a lightweight "state model" in the background that tracks player positions through pure math and physics, it ensures that characters remain consistent and persistent, even during 10-minute-long simulations where they spend most of their time off-screen.

What Problem Does This Paper Address?

Most modern world models are autoregressive. This means they look at a sequence of past video frames and actions to predict the next frame. While this works beautifully for short-term visual flow, it’s a disaster for multi-agent consistency.

If an NPC (non-player character) walks behind you, the model no longer has visual pixels to "remind" it that the NPC exists. When you turn back around, the model has to guess what should be there. Usually, it fails, leading to "ghosting" or characters simply evaporating. Previous attempts to fix this either tried to render every player’s view simultaneously (which is incredibly expensive) or required a perfect, pre-defined map of the world (which is inflexible).

Methods

The researchers proposed a two-part architecture they call SWAM:

  1. The State Model: Think of this as a tiny, "blind" game engine. It takes the actions of all players (moving, jumping, firing) and predicts their next positions and orientations. It uses a Physics Prior (basic rules of gravity and motion) combined with a learned Motion Residual Model that corrects for things like bumping into invisible walls. Crucially, it doesn't look at a single pixel; it just tracks coordinates.
  2. The World Model: This is a Diffusion Transformer (DiT) that actually draws the frames. It is conditioned on the ego-player's actions and visual history, but it also receives "hints" from the State Model.

The "secret sauce" is a technique called FOV (Field of View) Conditioning. The system projects the predicted positions of other players into a 2D "mask" from the perspective of the main player.

Figure 3. Overview of our method. Dense player masks provide spatial conditioning, while state cross-attention injects player information into the video diffusion model.

Instead of using complex ray-tracing to figure out if a player is hidden behind a wall, they just provide a rough "indicator" of where a player might be. The diffusion model then learns, through training, that if there is a wall in the way, it shouldn't draw the player. This allows the model to handle occlusions naturally without needing an explicit 3D map.

Datasets

Because standard video datasets don't usually come with synchronized "internal state" data (like exact XYZ coordinates for every character), the authors built a custom 3D first-person shooter in the Godot Engine.

  • The Dataset: 40 hours of four-player gameplay.
  • The Setup: Four bots playing against each other, recording every action, position, and video frame.
  • Varied Skins: They even created a version with different character models to prove the model could distinguish between different "identities."

Key Insights and Ideas

  • Decoupling is Efficient: You don't need to spend massive GPU power rendering what you can't see. By simulating the state of off-screen players with a tiny 300K-parameter model, SWAM keeps the world "alive" at a negligible computational cost.
  • Implicit Occlusion: One of the most surprising "aha" moments is that the model learns to handle walls and obstacles just by looking at the FOV masks. It realizes that the mask is a suggestion, not a command to draw a player regardless of the environment.
  • Identity Persistence: Because the state model tracks "Player 1" vs "Player 2" as distinct data points, the visual model doesn't get confused and swap their appearances, even after long periods of separation.

Key Results

The results are striking, especially in "long-horizon" tests (simulations lasting up to 10 minutes).

  • Character Recall: In a 10-minute rollout, standard models had a "recall" of about 1-2%—meaning characters almost never reappeared correctly. SWAM maintained a 57.2% recall, keeping characters in the game for the duration.
  • Visual Fidelity: SWAM outperformed baselines in standard metrics like LPIPS (perceptual similarity) and PSNR (signal-to-noise ratio), largely because it wasn't wasting "creative energy" trying to hallucinate where characters should be.
  • Stability: As seen in Figure 4, while other models eventually turn the world into a blurry, empty void, SWAM keeps the players exactly where they are supposed to be.
Figure 4. Frame progression over time. Recorded game state at each time step, with the camera player’s field of view shaded (top row). Ground truth is rendered in-game. Ours preserves visible characters in the FOV, while in the comparison methods they disappear.

Limitations and Future Work

The authors are upfront about a few hurdles:

  • Data Dependency: Training SWAM requires synchronized state and video data. You can't just scrape YouTube for this; you need access to the "engine" of the world you're simulating.
  • State Drift: While the state model is good, it’s not perfect. Over very long periods, a character might "drift" slightly through a wall because the state model doesn't have visual feedback to correct its "mental map."
  • Graphical Complexity: The current tests use relatively simple, blocky graphics. Scaling this to photorealistic environments like Cyberpunk 2077 remains a massive challenge for the future.

In the end, SWAM suggests that the future of AI-generated worlds isn't just about better "painting" (pixels), but about better "thinking" (state). It’s a step toward virtual worlds that don't just look real, but behave with the consistency we expect from reality.

Summary updated

BibTeX
@misc{kang2026swam,
  author = {Jenna Kang and Bingxuan Li and Colin Groth and Anatolii Evdokimov and Sai Zhang and Qi Sun},
  title = {{SWAM: State-aware World Action Model for Multi-Agent 3D Environments}},
  year = {2026},
  eprint = {2611.30042},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30042},
}
Figure