StateStream
  • Interactive long video generation
  • Frozen generator · no task-specific training

StateStream

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

Dartmouth College

StateStream 0.0 s
    One continuous 36 s generation. Each colored marker is a prompt sent while the video was streaming; StateStream carries out each one and keeps its effect until a later prompt replaces it.

    OverviewFigures 1–2

    Each prompt needs reasoning about the world and control over generation

    Users steer an interactive video while it is being generated. A request can refer to something that happened earlier, can depend on a condition the video has to show first, and should keep its effect until a later prompt replaces it.

    Fig. 2Observed failures in existing video generators. Left and middle: LongLive. Right: TempAct.
    Memory lost

    “Pick up what was left”

    “What was left” points back to an earlier interaction. Without a world state to reason over, the backpack left at 4 s is never brought back.

    memory-dependent prompt
    Wrong execution

    “When the train stops, passengers exit”

    The effect has to wait for a trigger. With no visual check, passengers appear while the train is still moving.

    conditional prompt
    State reversion

    “Open the door”, then something else

    The door opens, but the conditioning text still describes it as closed, so the next prompt quietly undoes it.

    retention
    StateStream

    Reason over a world state, then control generation

    A state program records every requested change, and each new prompt is read against it. Plans are executed step by step and checked on generated frames, and only confirmed results are written into memory.

    reason · plan · verify · remember
    Fig. 1StateStream follows successive interactive prompts across four scenes, combining environmental changes, local object updates, and entity arrivals and departures, while keeping changes that later prompts do not supersede.

    StateStream reasons over an explicit world state and uses it to control a frozen video generator, with no task-specific training.

    A VLM agent turns each prompt into a state update and a step-by-step plan, conditions the generator on the resulting state, and checks generated frames before anything is written into memory.

    Changes are carried out at the right time and stay until a later prompt replaces them.

    §3 MethodFigures 3–4

    Three modules around one shared world state

    A VLM agent reasons over the world state and controls a frozen autoregressive video generator (LongLive or Self-Forcing) that renders it. The two share entity names: the same name links a line of the state program, a phrase in the conditioning text, and a region of visual memory.

    StateStream pipeline (Figure 3)World-State PlanningState-Guided Memory ControlFeedback-Guided ExecutionCheck: Blue fish visible?State VerificationInputsState codelid = Part("lid", of=chest)lid.state = "open"10 s“Blue fish arrives by plants."State PlannerOutputsState updateblue_fish = Creature( "bright blue fish", at="near plants")World-State textActive step descriptionAquariumLid openBright Blue fishSwim inShared KVWindow KVEntity MemoryFrozen video generatorQueriesEntity regionEntity KVKVConditioning textText-GuidedKV ExtractionQKVFeaturesConfirmedNot yetContinue & recheckNo writeGenerated stream3 sOpen chest;bubbles stream out.10 sBlue fish swims inand stays by plants.17 sSwitch to deep bluenight light.24 sGoldfish circles quicklyand returns.Execution planActionSwim inCheckBlue fish visible?After confirmationActive step descriptionSwim inNoneKeep state textBlue fishReadNext chunk

      Fig. 3Overview of StateStream, assembled step by step for the prompt at 10 s of the aquarium example. Completed interactions keep their state descriptions in the conditioning text after their action description is dropped.
      §3.1

      World-State Planning

      The State Planner keeps the scene as a small program: named entities, their attributes and locations, and global conditions under world. Each prompt is read against this program, appended as a requested update, and turned into a plan of ordered steps. Every step has an action, the entities it affects, an intended result, a duration, and a yes/no question about one frame. A condition the video must show first becomes a waiting step.

      # 3 s · the chest lid opens lid = Part("lid", of=chest) lid.state = "open" verify("Is the chest open?", "yes") # 10 s · a blue fish swims in blue_fish = Creature("bright blue fish", at="near the plants") # 17 s · night light world.light = "deep blue night light" Illustrative state code for the aquarium scene, in the program syntax the planner uses.
      §3.2

      State-Guided Memory Control

      The generator is conditioned on World-State text, which describes every entity as it should now be, plus the description of the step in progress. Its visual memory has three parts: Shared KV anchors the opening scene, Window KV holds recent frames, and Entity KV stores each entity's appearance. Text-Guided KV Extraction finds an entity through cross-attention to its name; Align & Read moves stored keys to where the entity is now and reads them only inside its region.

      K̃ₑ = Rot(Δpₑ)·Kₑ , Ṽₑ = Vₑ attention bias b(q,k): Shared KV −βs·D(k) Entity KV γ·Rₑ(q) − βe·(1 − Rₑ(q)) Window KV 0 Rot: relative RoPE shift to the reference time and tracked location. D marks outdated Shared KV during a move or removal; Rₑ marks queries inside entity e's region.
      §3.3

      Feedback-Guided Execution

      The same VLM answers each step's question on generated frames. A confirmed step moves the plan on; a waiting step never times out; an action that runs out of time is marked unverified and its target description stays in the text while later frames are rechecked. Only a confirmed result is written into memory, so memory holds what the video shows rather than what was asked.

      B⁺ = (1 − ηᵢMᵢ)⊙B⁻ + ηᵢMᵢ⊙Ĉₜ ηᵢ confirmed or not (1 / 0) Mᵢ region from cross-attention Ĉₜ K/V of the latest block The state program is never rewritten by a check: requested transitions and confirmed outcomes are kept apart.

      Inside one run

      The agent's log, replayed with its video

      Everything below is read from the log of the video shown: the state program written for each prompt, the plan step, every check on generated frames, and what reached memory. Click any entry to jump there.

      StateStream 0.0 s
      World-State text

      Step in progress
      Memory writes

      Checks are answered by the same VLM about one generated frame after each 0.75 s block. ● condition met, ● not yet. A step that runs out of time is marked unverified; its target stays in the World-State text and later frames keep being checked.

      Entity Memory, step by step

      Locate
      Cross-attention from visual tokens to the entity's words in the conditioning text marks its region.
      Confirm, then extract
      K/V are copied from that region of the recent cache only after State Verification confirms the result.
      Align
      Stored keys are rotated by relative RoPE to the reference time of Shared KV and to the entity's tracked location. Values are left unchanged.
      Read inside the region
      Attention biases raise an entity's reference inside its region and lower it elsewhere, which keeps one copy of the entity. After a departure, the stored entry stays in memory but is marked inactive and receives little attention.
      Fig. 4Entity Memory: extraction after confirmation, then alignment and region-guided reading.

      VideosSupplementary material

      Same prompts, same times, four methods

      Every method receives the same opening description and the same interactive prompts at the same moments. Play a scene and follow each prompt: whether it is carried out as asked and at the right moment, and whether its change is still there later on.

      Click a prompt or a marker to jump to it.

      Scene

      0.0 / 35.8 s

        LongLive is the generator StateStream runs on, unchanged. TempAct plans prompts over time; IAMFlow adds entity-aware memory. All videos are 832 × 480 at 16 fps.

        §4 ExperimentsFigures 5–7

        More interactions succeed, and they last

        All methods share opening scenes, prompts and prompt times. The frames after each prompt show whether it was carried out, and later frames show which earlier changes were kept. Quantitative results are in the paper.

        Fig. 5Qualitative comparison across successive interactions. Methods share opening scenes, prompts and sampling times; later frames show which earlier changes were kept.
        Fig. 6New interactions build on earlier outcomes during continued generation.
        Fig. 7The same prompt, “the vehicle that just parked”, resolves to different entities under different histories.

        §4.4 AblationFigure 8

        Each module covers a different failure

        Memory control keeps entities single and present; planning and feedback get the timing right.

        What breaks without each part

        − State-Guided Memory Control
        Fewer interactions succeed, and a single arrival later shows up as several copies, like the second swan.
        − Execution Plans
        The largest drops in success, both overall and for effects that must wait for a trigger.
        − Feedback-Guided Execution
        Fewer changes are visible soon after their prompt, and effects that wait for a trigger succeed less often.
        − Write confirmation
        Writing to memory before a check confirms the result lowers success and adds duplicates.
        Fig. 8Ablations across successive interactions. Red dashed boxes mark artifacts.

        Citation

        BibTeX

        @article{zhou2026statestream,
          title={StateStream: Agentic World-State Reasoning and Control for Interactive Long Video Generation},
          author={Zhou, Junwei and Zhang, Yuyao and Tai, Yu-Wing},
          journal={arXiv preprint arXiv:2611.40451},
          year={2026}
        }