DynaMem: Consistent Long Video Generation via Hierarchical Memory and Motion Priors

Jingyu Lin, Xinyi Shang, Peng Sun, Cunjian Chen, Zhiqiang ShenICML 2026

The Challenge of Long-Form Video Generation

While modern text-to-video diffusion models can synthesize visually stunning clips lasting two to five seconds, they struggle significantly with "marathon" generation. Practical applications increasingly demand long-form videos with evolving narratives and persistent identities. The standard approach to this is autoregressive generation—producing the video one short clip at a time while conditioning on the previous clip.

However, as the video sequence grows, this autoregressive approach typically suffers from a "coherence collapse" characterized by three major failures:

  1. Semantic Drift: The model gradually "forgets" the original appearance of characters or scenes, leading to identity morphing over time.
  2. Motion Decay: Because models are often trained on datasets dominated by static imagery, they tend to default to "safe" static pixels over time, causing the video to eventually freeze or lose dynamic movement.
  3. Appearance Instability: Small errors in color and lighting accumulate across clips, resulting in distracting flickers or "greasy," high-contrast textures.

The DynaMem Framework

To address these compounding errors, researchers introduce DynaMem, a unified framework designed to maintain consistent character identities, vibrant motion, and stable appearance over extended durations. DynaMem tackles these issues without requiring modifications to the underlying diffusion backbone (such as HunyuanVideo) through three coordinated components:

1. Semantic-Adaptive Hierarchical Memory (SAHM)

Simply conditioning on the last few frames is insufficient for long-form storytelling. To combat semantic drift, DynaMem maintains a Global Visual Reservoir of representative past frames, filtered for quality and uniqueness. It then utilizes a Working Memory module to retrieve the most relevant frames from this reservoir based on the current text prompt. This semantic retrieval allows the model to "remember" and accurately render a character's face even if they have been off-screen for several clips.

2. Motion-Prioritized Optimization (MPO)

To fight motion decay, the authors address the "static bias" inherent in standard diffusion objectives, which are often dominated by static background pixels. MPO utilizes gradient-based data selection to train specifically on clips with high-quality dynamics. Furthermore, it introduces a spatially-adaptive loss function guided by motion saliency maps. This forces the model to prioritize moving regions during training rather than merely reconstructing static backgrounds.

3. Reference-Anchored Perceptual Alignment (RAPA)

To prevent color drift and appearance instability, the RAPA module anchors the color statistics of every new frame to the very first frames of the video. By performing this alignment in the CIELAB color space, the model can correct chromaticity (color drift) and luminance (brightness) independently. This prevents the washed-out or over-saturated looks common in long autoregressive rollouts.

Datasets and Evaluation

To support this research, the authors introduce LM-100K, a newly curated dataset of 100,000 high-quality, motion-intensive long-take videos. These videos were systematically partitioned and annotated with fine-grained semantic captions using GPT-4o. The model was evaluated using LV-Bench for long-video degradation and VBench for comprehensive quality metrics.

Key Results

DynaMem achieves state-of-the-art results across multiple benchmarks, proving its robustness in long-horizon generation:

  • Quantitative Superiority: On LV-Bench, DynaMem significantly outperforms competitive baselines like LongLive and BlockVid in Video Drift Error (VDE), demonstrating vastly superior subject and background consistency. On VBench, it secured the highest scores in Subject Consistency (0.9677) and Aesthetic Quality (0.6881).
  • Human Preference: In side-by-side comparisons, human evaluators preferred DynaMem over the strongest baselines in 55% to 78% of cases, specifically citing better identity preservation and smoother motion.
  • Long-Term Stability: Qualitative assessments reveal that while baseline models often see characters morph or scenes dissolve into noise by the 60-second mark, DynaMem's outputs remain sharp, dynamic, and recognizable.

Limitations and Future Directions

While DynaMem represents a significant leap forward in long-video coherence, the authors note a few areas for future improvement. First, maintaining a massive global reservoir for extremely long videos (e.g., hour-long films) introduces computational overhead, likely requiring more sophisticated memory pruning strategies. Second, because RAPA anchors to the initial frames, any lighting or color errors in the first generation will propagate throughout the video. Finally, while the current system excels at visual and motion consistency, future iterations could integrate higher-level "world models" to handle complex, multi-stage narrative logic.

Summary updated

BibTeX
@inproceedings{lin2026dynamem,
  author = {Jingyu Lin and Xinyi Shang and Peng Sun and Cunjian Chen and Zhiqiang Shen},
  title = {{DynaMem: Consistent Long Video Generation via Hierarchical Memory and Motion Priors}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=T8UsggiFIw},
}
Figure