TL;DR
VideoMemory introduces an entity-centric framework that solves the long-standing problem of visual drift in multi-shot narrative video generation. By combining a multi-agent system with a Dynamic Memory Bank, it explicitly tracks, retrieves, and updates the visual and semantic states of characters, props, and backgrounds across distant shots. This approach achieves state-of-the-art long-range consistency from text prompts alone, preventing characters and objects from morphing as the story unfolds.
What Problem Does This Paper Address?
While modern text-to-video diffusion models excel at generating high-quality short clips, they struggle with long-form, story-driven video generation. Specifically, they fail to maintain entity consistency—keeping main characters, signature props, and environments looking identical when they reappear after long temporal gaps or when the scene context changes.
Existing approaches either lack persistent visual representations (causing each shot to be generated blindly without reference to past appearances) or rely on feature-centric history caching that suffers from memory degradation over time. This leads to severe identity drift, where a character's facial structure changes, clothes spontaneously swap, or a key prop morphs into a completely different object across shots.
Methods
Inspired by human film production workflows—where crews maintain a strict inventory of cast appearances, costumes, and props—VideoMemory separates narrative planning from visual generation using a multi-agent system and an explicit Dynamic Memory Bank (DMB).
The pipeline consists of three cooperating agents:
- Storyboard Agent: Uses a Large Language Model (LLM) to expand a brief text synopsis into detailed, shot-by-shot descriptions (specifying actions, framing, and participating entities).
- Memory Agent: Acts as a casting and prop specialist. It extracts the entities required for each shot, forms attribute-based keys, and interacts with the memory bank.
- Visualization Agent: Acts as a cinematographer, synthesizing a consistent shot-level keyframe based on retrieved memory states and then using an Image-to-Video (I2V) model (specifically, Wan 2.2) to generate the final video clip.
The core innovation is the Dynamic Memory Bank, which maintains three specialized slots: characters ($M^{char}$), props ($M^{prop}$), and backgrounds ($M^{bg}$). It operates via a coordinated Retrieve-and-Update mechanism:
- Retrieval: Before generating a shot, the Memory Agent uses an LLM-based matcher to calculate semantic similarity and retrieve the correct visual reference.
- Update: If an entity's state changes (e.g., a character ages or a prop gets damaged), or if it's a new entity, the system generates a new reference image—conditioned on historical images to preserve core identity features—and updates the bank.
Datasets
Because existing video benchmarks largely target single-shot or short clips, the authors constructed a new Multi-Shot Entity Consistency Benchmark to evaluate long-horizon persistence.
The benchmark consists of 54 structured test cases divided into three subclasses:
- Character-persistent
- Prop-persistent
- Background-persistent
Each subclass is evaluated across varying shot lengths ($K \in \{4, 8, 12\}$ shots). Crucially, to rigorously test decoupling, when one element remains consistent (e.g., the character), the other two elements (the scene and props) are deliberately varied across the shots.
Key Insights and Ideas
- Asset-Centric vs. Feature-Centric Memory: Instead of caching full-frame histories or abstract feature maps—which are computationally expensive and prone to degradation—treating memory as an explicit asset inventory drastically reduces overhead while locking in identity.
- Decoupling Identity from Context: By explicitly retrieving an entity's visual representation before composition, the model avoids the common trap where changing backgrounds or lighting conditions inadvertently alters the character's core facial features.
- Controlled Evolution: The update mechanism allows entities to undergo story-driven changes (like aging or changing clothes) while preserving their underlying identity, striking a balance between rigid consistency and narrative progression.
Key Results
VideoMemory was evaluated against several competitive baselines, including native text-to-video models (Wan 2.2, EchoShot) and two-stage keyframe methods (IC-LoRA, StoryDiffusion, VGoT), using DINOv2 feature similarity on localized regions.
- Quantitative Performance: VideoMemory established a new state-of-the-art across all three consistency metrics. Its advantage became significantly more pronounced as the number of shots increased. For instance, on 12-shot sequences, it achieved a character consistency score of 0.64 (vs. VGoT's 0.60) and a background consistency score of 0.73 (vs. VGoT's 0.47).
- Ablation Impact: Removing the Dynamic Memory Bank entirely caused performance to collapse; background consistency suffered a catastrophic drop from 0.72 to 0.28, proving the memory bank is the central driver of stability.
- Qualitative & User Study: In a user study with 5 expert raters, VideoMemory achieved human preference rates as high as 95.8% for character and background consistency against baselines. Visually, it successfully prevented objects from disappearing or morphing across complex narratives.
Limitations and Future Work
The authors do not include a standalone limitations section, but a few constraints are implicit in the architecture:
- Error Propagation: The framework heavily relies on the quality of the initial keyframe generation. If the upstream image generator fails to accurately depict an entity or its attributes, that error is saved into the memory bank and propagates through subsequent shots.
- Sequential Bottleneck: Because the memory bank must be updated after each shot to maintain temporal logic, shots must be processed sequentially rather than in parallel, which could limit generation speed for exceptionally long videos.
Summary updated