arXiv(opens in a new tab)cs.CVOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.02153

MosaiChunk: Compositing Spatio-Temporal Memory for Autoregressive Video Generation

Yiwen Zhang, Haocheng Xi, Michael Tian-Yue Liu, Alexei A. Efros, Hadar Averbuch-Elor, Qianqian Wang, Haiwen Feng

Yiwen Zhang 1,∗^{1,*} Haocheng Xi 2^{2} Michael Tian-Yue Liu 2,4^{2,4} Alexei A. Efros 2^{2}

Hadar Averbuch-Elor 1^{1} Qianqian Wang 3,4,†^{3,4,\dagger} Haiwen Feng 2,4,†^{2,4,\dagger}

1^{1}Cornell University 2^{2}University of California, Berkeley

3^{3}Harvard University 4^{4}Impossible, Inc.

*Part of the work done during an internship at Impossible Inc.

†Equal supervision.

https://mosaichunk.github.io/

Sliding window

Generated frame

Figure

Select

Query

Memory Router ∗^{*}

*For illustration, we compose cookie, tin, and background KV. In practice, the router favors cookie regions, which complement the sliding window.

MosaicChunk

DiT

× Baseline

✓ Ours

Figure 1: In text-to-video generation, prompts like “Close the tin, then reopen it.” illustrate a well-known problem: once a frame (e.g. tin with cookie) is dropped from the context sliding window, its contents are forgotten and must be hallucinated (top). We introduce MosaiChunk (bottom), a spatio-temporal memory mechanism that conditions a video generation model on composed historical KV sections (pink for the cookie, yellow for the tin, and gray for the background). Our mechanism preserves fine-grained visual details over long-horizon rollouts, such as the star cookie’s appearance when the tin closes and reopens.

ABSTRACT

Long-horizon autoregressive video generation is limited by a finite context window. When an object or scene falls out of context, its fine-grained visual details may be lost and difficult to recover upon reappearance. To retain access to such visual details, we introduce MosaiChunk, a spatio-temporal memory mechanism that composes a mosaic of selected historical key-value (KV) entries across space and time. Our approach is motivated by the observation that a frozen video generator can directly consume such non-contiguous historical KV and recover the corresponding visual content. We therefore keep the generator fixed and learn only a lightweight router that determines which historical sections to include in the mosaic under a fixed active-memory budget. We further introduce Remem-Bench, a benchmark of long-horizon revisits with prompt-driven text-to-video (T2V) and camera-driven image-to-video (I2V) splits. Our experiments show that MosaiChunk consistently improves revisit consistency over both sliding-window inference and whole-chunk retrieval under matched memory budgets, across both T2V and I2V settings. All code and data will be released.

1 INTRODUCTION

“Nothing comes from nothing.”

—The Sound of Music (1965)

The visual world is full of recurrence: objects return, surfaces reappear from new viewpoints, and details established at one moment become relevant again much later. For decades, vision and graphics methods have exploited this structure by constructing new imagery from visual elements that have already been observed—reusing patches, frames, and regions rather than synthesizing every detail from scratch (Schödl et al., 2000; Efros & Freeman, 2001; Jojic et al., 2003; Isola & Liu, 2013). In this work, we ask: can the same principle of visual reuse support persistent memory in autoregressive video generation?

Consider the example illustrated in Figure 1, where a video model is prompted to show a biscuit tin, close it, and reopen it a few seconds later. When the tin reopens, the model should be able to reuse the biscuit's previously generated appearance, since it has already established what is inside. Yet long-horizon autoregressive video generation typically relies on sliding-window inference, which keeps the active cache bounded by retaining only the most recent entries and evicting older ones. Once the biscuit leaves this window, the generator loses direct access to that specific appearance, and may synthesize a different biscuit when the tin reopens.

The simplest solution would be to keep the entire generated history active, but this quickly becomes impractical: as the rollout grows, so do both the KV cache and the cost of attending to it. The challenge is therefore not to remember everything, but to recover a small set of historical KV needed for the current continuation. Recent approaches address this problem by retrieving the most relevant historical chunks, typically according to similarity with the current context (Cai et al., 2025; Yi et al., 2026). However, chunks bundle the keys and values of multiple frames, while the reusable visual content may occupy only a small subset of entries within these chunks.

Accordingly, we introduce MosaiChunk, which constructs a new kind of memory “chunk” by assembling a mosaic of selected historical keys and values that come from different spatial regions and different moments in the generated history. For example, historical KV sections corresponding to the biscuit are composited with more recent sections corresponding to the tin and background in Figure 1. Our memory mechanism is enabled by the observation that a frozen video generator can already consume such non-contiguous historical KV and use it to recover the corresponding visual content. This allows us to keep the generator fixed and train only a lightweight router to retrieve and compose the historical sections most relevant to each continuation, thereby preserving previously established visual details under a fixed active-memory budget.

Because temporally neighboring sections can have similar keys, direct similarity-based retrieval can favor recent content and miss older content needed when previously seen objects or scenes reappear. To reduce this recency bias, we train the router's descriptor encoder through self-distillation, where both teacher and student use the same frozen backbone and noisy latent, differing only in their far memory. The teacher receives oracle memory containing whole departure chunks with the content to be redrawn; the student receives a smaller memory assembled by the router. Matching their denoising velocity predictions trains the descriptors that determine section selection and weighting. Because the targets come from the backbone's own predictions on rollout latents, this oracle-memory distillation requires no rendered or recorded ground-truth target videos.

To evaluate MosaiChunk, we introduce RememBench, a benchmark of long-horizon revisits, in which previously seen content comes back into view. Such revisits provide a concrete test of a video model's memory: the returning content should preserve the details established earlier in the rollout. Autoregressive video models such as RAVEN-adapted MiniMax-H3 (H3-AR) (MiniMax, 2026; Lu et al., 2026) and LingBot-World-Infinity (Gao et al., 2026) support long interactive rollouts through prompt updates and camera controls. We leverage these interfaces to construct complementary prompt-driven T2V and camera-driven I2V splits. Compared with an existing whole-chunk retrieval and conditioning baseline, MosaiChunk improves median revisit CLIP similarity from 0.841 to 0.936 on T2V and from 0.807 to 0.863 on I2V after the camera turns 180° away and then back.

In summary, our contributions include: (i) a compositional visual memory mechanism that retrieves historical KV sections under a fixed active budget; (ii) a self-distillation strategy for learning KV section descriptions without rendered ground-truth target videos; and (iii) RememBench, a benchmark of long-horizon revisits with prompt-driven T2V and camera-driven I2V splits.

Figure

Figure 2: Can a frozen backbone reuse a non-contiguous subset of historical KV? To test whether a frozen video generator can consume a non-contiguous subset of KV entries, we select the KV at positions corresponding to the marked cookie region. Only the colored entries are supplied alongside the sliding window. The frozen video generator preserves the cookie's appearance when the tin opens again.

References (42)