Manuscript Offprint

arXiv:2610.03510

Weave Forcing: Compositional Memory Routing for Interactive Long Video Generation

Ziyi Wang, Junchi Yao, Heqian Qiu, Wenbo Shi, Chengjiu Wang, Jinyang He, Binkai Hong, Hongliang Li

ABSTRACT

Recent advances in autoregressive video generation have improved temporal consistency over extended durations, yet interactive storytelling requires more than continuous scene extension: a new shot may combine characters and backgrounds from different historical shots. Whole prompt retrieval can overlook the distinct reference needs of individual components, while directly combining all historical memories may introduce unrelated visual content. To address these problems, we present Weave Forcing, a training-free framework for compositional memory reuse in interactive long video generation. First, we use an LLM for semantic slot routing to decompose user prompts into character and background descriptions and explicitly select suitable historical references for each component. To isolate the required content, masked memory weaving uses contrasting attention maps conditioned on semantic slots to construct refined semantic masks, selectively exposing relevant tokens from compressed historical KV memories to guide the generation of the current shot. We further introduce coverage adaptive RoPE to adjust temporal offsets and memory retention according to no, partial, or full reference coverage, addressing visual artifacts observed when incomplete historical references are positioned close to the current generation. Extensive experiments demonstrate that Weave Forcing improves cross-shot subject and background consistency while maintaining competitive visual quality and text alignment.

1 INTRODUCTION

Video diffusion models have rapidly advanced visual realism, motion complexity, and text alignment (Kong et al., 2024; Wan et al., 2025). Autoregressive models further enable efficient, temporally consistent long video generation through sequential prediction, historical context reuse, and improved training and denoising (Deng et al., 2025; Huang et al., 2026). However, filmmaking and interactive storytelling require users to revise instructions, switch shots, and recall earlier characters or backgrounds. Interactive multi-shot generation must therefore respond to new instructions while preserving continuity with relevant historical content (Lin et al., 2023).

Existing approaches can be distinguished by the temporal attention structure of their video generators. Methods built on bidirectional diffusion transformers (DiTs) produce high-quality clips and support composition across shots through joint generation or conditioning on historical frames. However, repeatedly denoising each target clip with bidirectional attention incurs substantial computational cost and high generation latency, limiting rapid user feedback (Guo et al., 2025; Luo et al., 2026a). Causal autoregressive approaches instead generate sequentially and reuse historical KV states; combined with few-step sampling, they reduce latency while preserving long-range context and motion dynamics (Yin et al., 2025; Meng et al., 2026). Within this causal paradigm, global historical context and local within-shot context, together with shot-transition control, further support cross-shot consistency and interactive video generation (Lu et al., 2026; Luo et al., 2026b). These advances improve interactive generation, but precise reuse of historical content for each new shot remains unresolved.

∗^{*}Corresponding author.

Prompt: The same armored knight and purple-robed sorceress practice magic in the castle courtyard.

Figure

Too much

Figure

Too little

Figure

Just right

Figure 1: Motivation for compositional memory reuse. Broad history reuse introduces irrelevant content (too much), while global prompt similarity retrieval can miss required references (too little). Weave Forcing selectively reuses relevant historical content (just right).

Two limitations arise when instructions combine content from different narrative moments, as shown in Figure 1. First, historical references can provide too much unrelated information or too little relevant evidence. Reusing compressed or sampled representations of preceding frames preserves whole-scene content, including unrequested contents (Zhang et al., 2025). Conversely, selecting a single source by global prompt similarity, as in the optional automatic router of Echo Forcing, can miss required components across shots (Wu et al., 2026a). For example, an instruction may bring a previously seen girl and boy into a library, with each character and the background originating from a different shot. Reusing all three source memories also imports unrelated content, whereas the most similar single shot may omit a required reference. Additional sources alone cannot resolve within-shot selection. Second, a uniform reference use policy struggles to reconcile two competing demands: preserving content supported by historical references and generating new content without such support. Strong historical conditioning can constrain unreferenced components, whereas indiscriminately weakening it can compromise the consistency of referenced characters and backgrounds. Infinity-RoPE demonstrates that manipulating temporal rotary position embedding (RoPE) coordinates can regulate temporal continuity and enable scene transitions (Yesiltepe et al., 2026). Inspired by this positional control, we adapt temporal RoPE settings to the availability of character and background references, balancing reference preservation with flexible generation of new content.

To address these challenges, we propose Weave Forcing, a training-free framework for compositional memory reuse in interactive long video generation. Semantic slot routing uses a large language model (LLM) to first perform slot prompt splitting to identify the requested characters and background, and then apply cross-shot routing to associate each component with a historical source and its corresponding target slot prompt. Masked memory weaving uses contrastive slot attention (CSA) to distinguish target content from other content within the same historical memory, producing a semantic KV mask that selectively exposes relevant tokens. The references are combined in the cross-shot cache to guide the new shot. Coverage adaptive RoPE then adapts temporal positioning and reference retention to the available character and background support, while progressive memory decay smooths the transition toward the current shot's own context. Together, these components enable selective recombination of historical content as user instructions evolve. Experiments on 100 six-shot prompts demonstrate the effectiveness of Weave Forcing, showing improved cross-shot subject and background consistency over the Self Forcing backbone while achieving competitive visual quality and text alignment.

Our main contributions are summarized as follows:

• We introduce Semantic Slot Routing, which decomposes each shot prompt into character and background slots and independently matches them to available historical source slots, enabling composition of references from different shots.

• We propose Masked Memory Weaving, which constructs semantic KV masks through CSA, then combines the independently masked historical KV memories to retain requested content while suppressing unrelated characters and backgrounds.

• We develop Coverage Adaptive RoPE, which adapts temporal offsets and reference retention to no, partial, or full character and background reference coverage, balancing historical guidance with the generation of newly requested content.

References (44)