arXiv(opens in a new tab)cs.CVAug 2026Cited by 4 papers on PaperVantage

Manuscript Offprint

arXiv:2608.28460

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

Yixuan Ding, Jiahao Kong, Wei Huang, Ruijie Quan, Yi Yang

Yixuan Ding 1^{1}, Jiahao Kong 1^{1}, Wei Huang 2^{2}, Ruijie Quan 1∗^{1*}, Yi Yang 1^{1}

1^{1}Zhejiang University 2^{2}The University of Hong Kong

Webpage

GitHub

Hugging Face

A student in lab ...

A cart stacked moved into frame ...

The student is back in view ...

Figure

A shipwright in lab ...

The shipwright walk to the back of ship ...

The shipwright return to inspecting ...

A street artist ...

The artist step out of frame ...

The artist return to painting with ...

A map vendor in store ...

The camera moving close to the wooden ...

The camera moving back with a tourist ...

Figure

Rolling Forcing

LongLive-2.0

Figure 1: Qualitative comparison on long-range reappearance scenarios. In each case, prompt-highlighted subjects, attributes, and objects leave the local context and later return. Compared with representative long-video baselines, LayerRecall more faithfully recalls and restores subject identity, attributes, and scene-specific objects.

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. 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.

∗^{*}Corresponding author.

1 Introduction

Diffusion Transformers (DiTs) (Peebles and Xie 2023) have driven recent progress in video generation (Ma et al. 2025; Yang et al. 2025; Kong et al. 2025; Team Wan et al. 2025), providing a scalable backbone for high-fidelity synthesis. Most pretrained video DiTs nevertheless use bidirectional attention over a fixed clip, requiring the sequence to be processed jointly and limiting efficient extension to longer durations. Recent studies have therefore recast video diffusion as causal or autoregressive generation, producing frames or chunks from preceding context and using key-value (KV) caching to avoid recomputing the complete sequence (Yin et al. 2025; Gao et al. 2025; Huang et al. 2025; Yang et al. 2026; Liu et al. 2026). These developments support streaming inference and generation beyond the duration of conventional clip-based models. As the attainable horizon grows, preserving useful information across that horizon becomes more challenging.

Longer output, however, does not by itself ensure long-term semantic consistency. Under bounded memory, autoregressive generators typically retain a recent temporal window or a fixed-size KV cache (Kim et al. 2024; Gao et al. 2025; Yang et al. 2026; Chen et al. 2026d). This recency-based policy supports local motion and appearance continuity, but eventually evicts evidence about subjects, objects, scenes, or attributes that reappear after shot changes. Existing methods augment the local pathway with fixed anchors, compressed or recurrent states, online memories, or retrieved historical frames and latents (Henschel et al. 2025; Chen et al. 2026b; Yu et al. 2025b; Hong et al. 2025; Yu et al. 2025a; Dou et al. 2026; Hu et al. 2026), thereby exposing the model to non-local history. Yet access alone does not guarantee effective use: Figure 1 shows that representative long-video methods still exhibit identity, attribute, count, and scene drift when content leaves the local context and later returns.

To understand this gap, we examine how autoregressive video DiTs distribute temporal attention across network depth. Figure 2 reveals pronounced layer-wise preferences for current, recent, and distant context. This heterogeneity appears across the tested backbones, although the specific memory-sensitive layers remain backbone-dependent. Therefore, we consider that effective use of long-range memory may require not only what to retrieve, but also where to use it. We introduce LayerRecall, a current-conditioned, layer-selective memory router that jointly controls historical retrieval and injection while retaining the local pathway. Because long-horizon training videos and explicit memory-allocation labels are scarce, we further propose Cross-Horizon Prediction Matching (CHPM), which turns a privileged long-context reference into prediction-space supervision for the bounded-memory router. Across 100 evaluation prompts, LayerRecall achieves SOTA results on both memory-oriented benchmarks while matching its backbone on VBench-Long, demonstrating stronger long-range recovery without sacrificing consistency and motion quality.

Our contributions are summarized as follows:

• We identify layer-wise temporal preferences in autoregressive video DiTs and formulate bounded-memory use

(a) Layer memory preference

Figure

(b) Prompt-independent layer preference

Figure 2: Attention profiling on the LongLive-2.0 backbone. (a) Memory-attention mass by prompt type and DiT layer; memory denotes far-history and recent-history buckets before the current chunk. Final memory-sensitive layers are outlined. (b) Prompt-level mean and min-max memory mass across 100 prompts, showing that the layer-preference pattern remains relatively stable over the evaluated prompts.

as joint allocation over historical content and network depth.

• We propose LayerRecall, which retrieves history from the current generation state and routes its K/V states through backbone-specific memory-sensitive layers while preserving local attention elsewhere.

• We propose CHPM, which uses long-context predictions to supervise sparse memory routing without explicit memory-allocation labels or backbone finetuning.

• We evaluate LayerRecall across multi-shot consistency, temporal stability, cross-backbone portability, and inference efficiency.

References (52)