LayerRecall: A State-Conditioned Memory Router for Long-Horizon Consistency in Video Generation

Yixuan Ding, Jiahao Kong, Wei Huang, Ruijie Quan, Yi Yang
8/28/2026
6 citations
cs.CV
diffusion-flow

No official code found. Best implementation: Yixuan-Ding-ZJU/LayerRecall (15 stars).

Abstract

Autoregressive video diffusion enables scalable long-video generation by producing chunks from a bounded recent context. While recency-based caching preserves local continuity, it evicts historical cues needed when subjects, objects, scenes, or attributes reappear.

Show full abstract

Existing memory mechanisms expose models to nonlocal history, but access alone does not ensure effective use. Our analysis reveals that video DiT layers exhibit distinct preferences for current, recent, and distant context, suggesting that long-range memory requires deciding both what to retrieve and where to use it. We introduce LayerRecall, a current-conditioned, layer-selective memory router that retrieves relevant historical K/V states and injects them only into backbone-specific memory-sensitive layers while preserving local attention elsewhere. To reduce reliance on scarce high-quality long-horizon videos and explicit memory-allocation labels, we further propose Cross-Horizon Prediction Matching (CHPM), which uses a privileged long-context reference to supervise the bounded-memory router in prediction space. Across 100 multi-shot evaluation prompts, LayerRecall achieves the best overall results on MemoBench and MovieBench while matching its backbone on VBench-Long, demonstrating stronger long-range recovery without sacrificing local continuity. Qualitative analyses further reveal memory-guided self-correction, whereby initially mismatched local attributes return to their historical appearance without resetting ongoing motion or scene structure. Additional analyses show cross-backbone portability and negligible inference overhead.

View on arXivView PDF

Code Implementations(1)

Official implementation of "LayerRecall: A State-Conditioned Memory Router for Long-Horizon Consistency in Video Generation."

151

Similar Papers

Cite this paper

@article{ding2026layerrecall,
  title  = {LayerRecall: A State-Conditioned Memory Router for Long-Horizon Consistency in Video Generation},
  author = {Yixuan Ding and Jiahao Kong and Wei Huang and Ruijie Quan and Yi Yang},
  year   = {2026},
  eprint = {2608.28460},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.28460v1}
}

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/2608.28460.svg)](https://codeofpaper.com/paper/2608.28460)

Discussion