StateStream: Agentic World-State Reasoning and Control for Interactive Long Video Generation

Junwei Zhou, Yuyao Zhang, Yu-Wing TaiarXiv 2026

TL;DR

Current AI video generators have severe object-permanence issues: if you steer a long video with sequential prompts, the model often forgets earlier changes, ignores causal triggers, or spontaneously reverts the scene. StateStream wraps a frozen video generator in an agentic "director" that tracks the evolving world in code, manages visual memory at the object level, and visually verifies that actions actually happened before committing them to memory. It turns passive video streamers into coherent, interactive worlds—without any task-specific training.

What Problem Does This Paper Address?

Imagine directing a live, AI-generated scene. At 3 seconds, a polar bear walks up to an igloo. At 10 seconds, northern lights appear. At 17 seconds, you plant a red flag in the snow.

StateStream retaining earlier world-state changes like the polar bear and northern lights while adding a red flag.

Recent autoregressive video models can stream long, visually smooth videos, and even let you switch text prompts on the fly. However, they treat prompts like isolated snapshots rather than updates to a persistent world. This leads to three major failures:

  1. State reversion: You open a door, then ask a wheelbarrow to tip over—and the door magically snaps shut because the new prompt didn't mention it.
  2. Memory loss: You leave a red backpack at 4 seconds, and at 20 seconds say "pick up what was left." Without explicit state history, the model has no idea what "what" is.
  3. Premature execution: You say, "When the train stops, passengers exit," and people start leaping onto the platform while the train is still moving because nobody is actually watching the video for the trigger.

The challenge isn't just generating pretty pixels; it's synchronizing what you asked for, what actually rendered, and what needs to stay true minutes later.

Methods

Instead of fine-tuning a massive video model, the authors build StateStream around existing frozen autoregressive generators (like LongLive and Self-Forcing), using an off-the-shelf Vision-Language Model (Qwen3-VL-8B) as both planner and critic. Three modules share a unified representation of the world:

  • World-State Planning: The scene is tracked as a lightweight Python-like state program (variables for entities, attributes, and global weather/lighting). When a new user prompt arrives, the VLM reads the code history to resolve references ("the vehicle that just parked") and outputs a state update plus an ordered execution plan—complete with "waiting steps" for conditional triggers and visual check questions.
  • State-Guided Memory Control: Standard generators rely on Key-Value (KV) caches—essentially compressed visual memories of recent frames. StateStream splits this into Shared KV (the background scene), Window KV (recent motion), and Entity KV (specific objects). Using cross-attention maps from entity words in the text, it extracts just the KV tokens belonging to, say, a cat, shifts their spatial/temporal coordinates using Relative RoPE (rotary positional embeddings), and amplifies or suppresses them during generation. If the cat leaves the kitchen, its Entity KV is deactivated so it stays gone.
Removing an entity cleanly while retaining global changes like lowered window blinds.
  • Feedback-Guided Execution: Because generators don't always listen on the first try, the VLM inspects generated video chunks to answer the plan's check questions (e.g., "Is the blue fish visible?"). Crucially, local visual memory is only updated after visual confirmation, preventing half-baked or failed generations from polluting long-term memory.

Datasets

Because StateStream is training-free, no training datasets are used.

For evaluation, existing benchmarks focus on static prompt fidelity rather than sequential causality, so the authors introduce a new interactive evaluation protocol paired with standard VBench visual quality metrics:

  • Basic suite: 70 scenes (36s each) with 4 timed prompts covering local/global edits, arrivals, departures, and brief actions.
  • Targeted suites: Dependent (ordered prerequisites), Conditional (waiting for visual triggers), Paired (identical prompts like "load boxes into the vehicle" under different histories), New scenes (adapted from VBench), and 60-second long-horizon tests.

Key Insights and Ideas

  • Separate intent from reality: StateStream keeps the history of requested transitions separate from confirmed visual execution. If a generator fails to render an intermediate step on time, the planner still remembers what the user meant for future prompts, while the memory controller refuses to overwrite visual cache with unverified frames.
  • Unconfirmed memory writes cause "cloning": In ablations, writing to visual memory without VLM verification caused a noticeable spike in object duplication—storing an awkward mid-transition frame can trick the generator into spawning a second swan later.
  • Prompt rewriting isn't enough: A baseline using the exact same VLM to simply rewrite prompts with full history still lagged far behind StateStream, proving that explicit KV-cache surgery and visual feedback are doing heavy lifting alongside text reasoning.

Key Results

Evaluated via an automated VLM judge (and corroborated by human raters), StateStream substantially outperforms prior streaming and memory-augmented baselines:

  • Interaction Success Rate (ISR): On the LongLive backbone, StateStream nearly doubles basic interaction success from 26.34% to 50.00% (beating the history-aware LLM rewriter at 36.64%).
  • Conditional & Long-Horizon Gains: Conditional ISR jumps from 10.68% to 45.63%, and 60-second interactive retention climbs from 19.37% to 50.45%.
  • Backbone Agnostic & High Quality: Applying StateStream to a second generator (Self-Forcing) yields similar leaps (24.81% to 48.85% Basic ISR), while VBench scores for consistency, motion smoothness, and image quality match or slightly exceed the base models.

Limitations and Future Work

StateStream is a director, not a rendering engine: if the frozen video backbone fundamentally doesn't know how to render a complex physical interaction, StateStream cannot force it into existence. Future work points toward adapting this modular architecture to stronger open generators with compatible KV-cache interfaces, as well as integrating world-state control with commercial video models.

Summary updated

BibTeX
@misc{zhou2026statestream,
  author = {Junwei Zhou and Yuyao Zhang and Yu-Wing Tai},
  title = {{StateStream: Agentic World-State Reasoning and Control for Interactive Long Video Generation}},
  year = {2026},
  eprint = {2611.40451},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.40451},
}
Figure