TL;DR
MosaiChunk is a spatio-temporal memory mechanism that enables autoregressive video models to "remember" fine-grained visual details over long durations. By composing a "mosaic" of specific historical key-value (KV) entries rather than entire frames, it maintains visual consistency when objects reappear—all while keeping the underlying video generator frozen and memory costs low.
What Problem Does This Paper Address?
Current state-of-the-art video generation models (like Sora or MiniMax) often work autoregressively, generating video in short "chunks" and using a sliding window of recent frames as context. However, this window is finite. When an object leaves the frame or is hidden (e.g., closing a cookie tin), it eventually falls out of the context window and is "forgotten."
When the object needs to reappear later, the model has no direct record of its specific appearance and must "hallucinate" a new version. This leads to jarring inconsistencies, such as a star-shaped cookie suddenly turning into a round one. While one could theoretically retrieve whole past frames as context, this is computationally expensive and fills the limited memory budget with irrelevant background data.
Methods
The authors introduce MosaiChunk, a three-stage memory router designed to work with frozen, pre-trained video Diffusion Transformers (DiTs).
- Encode and Store: Each generated chunk is partitioned into equal-sized "sections" using balanced k-means clustering. These sections often correspond to semantic regions (like just the cookie or just the tin). A lightweight encoder creates a "descriptor" for each section, which is stored in CPU memory.
- Score and Route: When generating a new frame, the router compares descriptors from the current context against the entire history. It looks for sections that are semantically relevant but missing from the current sliding window.
- Extract and Compose: The top-$N$ most relevant sections are retrieved and concatenated into a single "mosaic" chunk. This MosaiChunk is fed into the frozen DiT alongside the standard sliding window.
To train this router without needing ground-truth videos, the authors use self-distillation. A "teacher" model is given "oracle" access to the exact historical chunks it needs to see. The "student" model (the router) must learn to pick the best sections to match the teacher's performance, effectively learning an "anti-recency bias" that favors useful old content over redundant recent content.
Datasets
The authors introduce RememBench, a new benchmark specifically designed to test long-horizon visual memory. It consists of two parts:
- T2V Split: 100 text-to-video scenarios following an "appear–disappear–reappear" prompt structure (e.g., "Open the drawer, close it, wait, then open it again").
- I2V Split: 150 image-to-video scenes where the camera rotates 180° away from a starting view and then turns back.
For training, they used the Sekai dataset. They also evaluated their method on existing public benchmarks like WBench and WorldMark.
Key Insights and Ideas
- Frozen Backbones are Robust: A key "aha moment" was discovering that frozen video generators can consume non-contiguous, "patchwork" KV entries and still successfully recover the corresponding visual content. You don't need to retrain the whole model to add memory.
- Anti-Recency Bias: Standard retrieval often suffers from "recency bias," where the model just picks the most recent frames because they look similar to the current one. MosaiChunk's distillation process explicitly trains the router to look further back for details that the sliding window has already lost.
- Global vs. Per-Query Selection: Instead of picking a few matches for every part of the current frame, MosaiChunk selects the best matches globally. This ensures the memory budget is spent on the most critical missing information rather than wasting space on background elements that are already in the sliding window.
Key Results
MosaiChunk significantly outperforms both standard sliding-window baselines and whole-chunk retrieval methods (like Mixture of Contexts):
- Text-to-Video: On RememBench, it improved median CLIP similarity (a measure of visual consistency) from 0.841 to 0.936 compared to chunk-based retrieval.
- Image-to-Video: In 180° camera turn scenarios, it improved CLIP similarity from 0.807 to 0.863.
- Efficiency: MosaiChunk achieved better consistency with a one-chunk memory budget than the baseline did with a two-chunk budget, proving that what you remember is more important than how much you remember.
Limitations and Future Work
- Backbone Constraints: Since the video generator is kept frozen, MosaiChunk cannot fix inherent flaws in the base model's ability to follow complex instructions or its general aesthetic quality.
- Native Integration: While the "plug-and-play" router is efficient, the authors suggest that future models might benefit from having this spatio-temporal memory mechanism integrated directly into the generator during its initial training.
- Complex Motion: While it handles rotations well, extremely complex camera trajectories (like full 360° turns with translation) remain a significant challenge for all current memory methods.
Summary updated