Dual-Granularity Memory for Efficient Video Generation

Hong-Jun Wang, Lin Liu, Jian-Guo Li, Tao Lin
1/1/2026
transformer-attention

No confident code implementation found for this paper.

Abstract

Video generation using recurrent architectures offers compelling efficiency advantages over attention-based transformers, particularly for long-sequence generation. However, chunked processing in recurrent models creates temporal discontinuities that harm long-range consistency.

Show full abstract

We introduce two complementary memory mechanisms to address this challenge at different granularities: (1) Context Memory maintains persistent global context within attention chunks through learnable sink columns and boundary buffers, adding only 150K parameters (\textless 0.1% overhead); (2) Latent Context-as-Memory (LCaM) extends memory across video segments by storing and retrieving historical latent embeddings, enabling cross-segment consistency without requiring camera annotations or frame reconstruction. Applied to Generalized Spatial-temporal Propagation Networks (GSTPN), our dual-memory approach achieves 1.54xfaster inference than attention-based transformers, while excelling in visual quality metrics. Our approach is particularly effective for knowledge distillation scenarios where only pre-extracted latent embeddings are available. This work demonstrates compelling efficiency-quality trade-offs for practical long video generation.

Semantic Scholar

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2026dualgranularity,
  title  = {Dual-Granularity Memory for Efficient Video Generation},
  author = {Hong-Jun Wang and Lin Liu and Jian-Guo Li and Tao Lin},
  year   = {2026},
  url    = {https://api.semanticscholar.org/CorpusID:8c4037435948118eb46ec0f01464eb6bf13245ca},
  journal = {Computer Vision and Pattern Recognition}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/8c4037435948118eb46ec0f01464eb6bf13245ca.svg)](https://codeofpaper.com/paper/8c4037435948118eb46ec0f01464eb6bf13245ca)

Discussion