Manuscript Offprint
arXiv:2608.28460LayerRecall: A State-Conditioned Memory Router for Long-Horizon Consistency in Video Generation
Yixuan Ding , Jiahao Kong , Wei Huang , Ruijie Quan , Yi Yang
Zhejiang University 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 ...

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

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

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

Figure 3: Overview of LayerRecall. Given the current chunk, the router retrieves finite historical K/V candidates from layer-indexed memory banks and scores which memories are relevant to the next generation step. Retrieved states are injected only into profiled memory-sensitive layers, while the remaining layers keep the original sink, sliding-window, and current-chunk attention context. K/V denotes key-value states.
Long-Horizon Video Generation. One line of work extends pretrained short-video models through noise rescheduling, overlapping windows, queue-based generation, or global-local information exchange (Qiu et al. 2024; Kim et al. 2024; Lu et al. 2024; Li et al. 2025). Streaming systems similarly rely on bounded local context or fixed anchors to preserve continuity across successive segments (Henschel et al. 2025; Yang et al. 2026; Liu et al. 2026). A complementary direction enlarges available temporal context or trains autoregressive models to manage longer histories (Guo et al. 2025; Chen et al. 2026c). These approaches substantially extend generation horizons, but local propagation and fixed anchors may not preserve sparse, content-dependent evidence after it leaves the active window, whereas dense long-context processing increases computation and memory costs.
Memory-Augmented Video Generation. Recent methods preserve information beyond the local window through compressed global states (Chen et al. 2026b; Yu et al. 2025b), online parameter memories or memory experts (Hong et al. 2025; Stapf et al. 2026), and selective retention or retrieval of historical frames, latents, or key-value states (Yu et al. 2025a; Yi et al. 2026; Dou et al. 2026; Hu et al. 2026). These directions demonstrate that nonlocal history can be represented and queried without exposing the complete sequence at every generation step. They also motivate a complementary question: beyond deciding what history to retrieve, where should that history enter the network without disrupting local temporal modeling? LayerRecall addresses these two dimensions jointly by retrieving history from the current generation state and routing it only to memory-sensitive layers identified through layer-wise empirical analysis, while preserving local attention elsewhere.
3 Method
We formulate effective historical access as two decisions: what to retrieve, which assigns the available memory slots to content-relevant chunks, and where to use it, which determines the network layers that receive the retrieved K/V states. LayerRecall implements these decisions through current-conditioned retrieval and layer-selective routing. We train it without explicit memory-selection labels using Cross-Horizon Prediction Matching (CHPM), which transfers the predictive behavior of a privileged long-context reference to a bounded-memory student.
3.1 LayerRecall
Figure 3 gives an overview. LayerRecall preserves the local pathway of a pretrained chunk-autoregressive DiT while adding sparse access to historical K/V states.
What to Retrieve: Current-Conditioned Historical Retrieval. During each context update, every layer pools the normalized pre-RoPE keys of a historical chunk into a detached summary and stores it with chunk metadata and a pointer to the corresponding physical-cache slice. The summary is used only for scoring; the full cached RoPE-applied keys and corresponding values are the payload that enters attention after selection. The physical K/V cache follows a sink-protected sliding update: the sink is retained, while the oldest non-sink states are removed as new chunks are appended.
For the current chunk, LayerRecall mean-pools the detached pre-attention hidden state at layer l into and sets . It combines a shared learnable query with a current-conditioned residual:

Figure 4: Training framework of LayerRecall. A frozen long-horizon teacher predicts from an expanded historical context, while a frozen short-horizon student predicts with bounded local context augmented by LayerRecall memory routing. The routing module is optimized by matching student and teacher predictions; snowflakes indicate frozen backbones.
The normalization, MLP, gate, global query, and scalar are shared across layers, while is layer-specific. Each layer independently ranks physically resident historical records by the cosine similarity between and . During training, every retrieval slot uses the highest-scoring chunk's full K/V in the forward pass and a temperature-controlled soft mixture as a straight-through gradient surrogate; later slots exclude chunks already selected. Thus, the attention computation remains hard and budgeted, while the selector receives differentiable learning signals.
Where to Use: Layer-Selective Memory Injection. Figure 2 shows that temporal attention preferences vary substantially across layers. We identify a fixed, backbone-specific set through temporal profiling, routing-usage analysis, and controlled policy comparisons; the full protocol is provided in the supplementary material. Layers in attend to the sink, hard-selected historical K/V slots, and the current chunk. All remaining layers retain the backbone's original sink-plus-sliding-window context and do not inject retrieved history. Consequently, what to retrieve is current-dependent, whereas where to use it is a fixed backbone-specific policy.
3.2 CHPM: Cross-Horizon Prediction Matching
CHPM trains LayerRecall to approximate long-context predictive behavior under a bounded memory budget, without requiring high-quality long-horizon target videos or explicit memory-allocation labels. As illustrated in Figure 4, teacher and student share the same pretrained causal video backbone, whose parameters remain frozen; only the LayerRecall parameters are optimized. Their distinction is the available history: the teacher directly attends to an expanded context, whereas the student predicts from its bounded local context augmented by LayerRecall.
Cross-Horizon Reference and Prediction Matching. At each supervised anchor , teacher and student receive the same current noisy latent, prompt condition, and diffusion timestep, while maintaining independent rollout histories and K/V caches. The teacher follows its own no-grad long-context trajectory and provides a detached denoised-latent prediction . The student follows its bounded-memory trajectory and produces . The teacher therefore serves as a privileged-context behavioral reference rather than a different or intrinsically stronger generative model.
We define the prediction-matching term over supervised anchors as
The complete training objective is , where averages the mean-squared magnitude of each trainable LayerRecall parameter tensor. This regularization is applied only to the router; the frozen generative backbone is excluded. Full loss settings are provided in the supplementary material. CHPM does not observe which historical chunk the teacher uses and does not match its attention distribution. Instead, with both backbones frozen, reducing the prediction gap requires LayerRecall to change how historical K/V states are retrieved and injected. The prediction discrepancy thus converts the teacher's long-context behavior into task-relevant supervision for bounded-memory routing.
Detached Student Rollout. LayerRecall must be trained on the context distribution encountered during autoregressive inference. Supplying teacher-generated prefixes to the student would hide errors accumulated by the bounded-memory model and introduce a train–test mismatch. We therefore let the student maintain its own trajectory. Non-anchor chunks are denoised without gradients and written back as detached future context; supervised anchors compute the CHPM loss and are likewise detached before subsequent context updates. The teacher independently advances its own detached long-context trajectory and provides targets only at supervised anchors. This design exposes LayerRecall to the student's self-generated history while preventing gradients from spanning the entire video, keeping supervision localized to the current anchor and memory use bounded across chunks.
4 Experiments
4.1 Experimental Setups
Implementation details. We build LayerRecall upon LongLive-2.0 (Chen et al. 2026d), whose backbone follows the Wan2.2-TI2V-5B architecture (Wan-AI 2025). Each

Figure 5: LayerRecall showcases across diverse three-shot reappearance scenarios. Each triplet samples one frame from Shots 1–3: a subject, object, or visual attribute is established in Shot 1, leaves the visible scene in Shot 2, and reappears in Shot 3. Across people, animals, apparel, instruments, and scene-specific objects, LayerRecall preserves the corresponding identity and fine-grained appearance over the intervening temporal gap, demonstrating stable long-term recall.
training sequence contains 384 latent frames, partitioned into 48 chunks of 8 frames, and CHPM uses one denoising step during training. The teacher attention horizon is full 384 frames context (48 chunks), whereas the student operates under a 32-frame attention-visible budget and maintains an 80-frame physical K/V cache (10 chunks). At each memory-sensitive layer, this budget comprises an 8-frame sink, up to two hard-selected historical chunks (16 latent frames), and the current 8-frame chunk; the memory-sensitive layers have 0-based indices [4, 9, 10, 12, 13, 15, 16, 17, 18, 26], while the remaining 20 layers preserve the original local sliding-window attention. We train on 16 NVIDIA H100 GPUs using sequence parallelism of 2 and data parallelism of 8 for one epoch.
Data Construction. We train LayerRecall on 1,600 multi-shot prompts, each containing 48 blocks aligned with the 384-frame training rollout. We separately use 100 prompts
| Method | Venue | VBench-Long Avg. | MemoBench ↑ | MovieBench ↑ | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Overall | Obj. Reapp. | Layout Rec. | State Upd. | Overall | Shot Coh. | Scene Layout | Narrative | |||
| LongLive | ICLR26 | 0.977 | 0.499 | 0.516 | 0.534 | 0.464 | 0.544 | 0.491 | 0.624 | 0.509 |
| LongLive-2.0 | arXiv26 | 0.978 | 0.513 | 0.519 | 0.524 | 0.499 | 0.546 | 0.531 | 0.596 | 0.517 |
| LongLive-RAG | arXiv26 | 0.958 | 0.373 | 0.358 | 0.360 | 0.297 | 0.394 | 0.352 | 0.436 | 0.355 |
| CausVid | CVPR25 | 0.975 | 0.426 | 0.418 | 0.414 | 0.400 | 0.483 | 0.489 | 0.495 | 0.450 |
| Deep Forcing | ICML26 | 0.964 | 0.408 | 0.371 | 0.441 | 0.405 | 0.511 | 0.473 | 0.583 | 0.427 |
| Dummy Forcing | arXiv26 | 0.953 | 0.417 | 0.427 | 0.410 | 0.407 | 0.494 | 0.480 | 0.486 | 0.502 |
| Self-Forcing | NeurIPS25 | 0.976 | 0.327 | 0.316 | 0.346 | 0.293 | 0.363 | 0.292 | 0.371 | 0.344 |
| MemFlow | arXiv25 | 0.981 | 0.531 | 0.516 | 0.573 | 0.492 | 0.542 | 0.480 | 0.630 | 0.504 |
| Rolling Forcing | ICLR26 | 0.972 | 0.482 | 0.498 | 0.483 | 0.481 | 0.548 | 0.505 | 0.608 | 0.510 |
| Context Forcing | ICML26 | 0.971 | 0.417 | 0.421 | 0.455 | 0.401 | 0.463 | 0.421 | 0.497 | 0.440 |
| HiAR | arXiv26 | 0.969 | 0.424 | 0.347 | 0.454 | 0.429 | 0.495 | 0.364 | 0.646 | 0.385 |
| Infinity-RoPE | CVPR26 | 0.978 | 0.455 | 0.408 | 0.536 | 0.477 | 0.513 | 0.446 | 0.589 | 0.445 |
| SkyReels-V2 | arXiv25 | 0.992 | 0.466 | 0.404 | 0.489 | 0.463 | 0.508 | 0.400 | 0.665 | 0.380 |
| LayerRecall | - | 0.978 | 0.548 | 0.571 | 0.572 | 0.525 | 0.578 | 0.579 | 0.619 | 0.561 |
Table 1: Main results on the videos generated from 100 evaluation prompts. VBench-Long Avg. is the mean of VBench-Long subject consistency, background consistency, and motion smoothness. MemoBench and MovieBench provide task-aligned memory diagnostics. Bold and underline denote the best and second-best scores.

Figure 6: Temporal stability analysis on the 100 evaluation prompts. (a) Abrupt-change energy over time, with fewer frame-change spikes under LayerRecall. (b) Temporal spectrum of frame-change energy, with the HF ratio reduced from 0.60 to 0.38.
to generate videos for evaluation. Prompt construction, filtering, and single-prompt adaptation for methods without a native multi-shot interface are described in the supplementary material.
Baselines. We compare with autoregressive long-video generators, including CausVid, Deep Forcing, Dummy Forcing, LongLive, LongLive-2.0, Self-Forcing, Rolling Forcing,
| Metric | All-Layer | ||
|---|---|---|---|
| Routing | LayerRecall | Diff. | |
| VBench Motion Smooth. ↑ | 0.9910 | 0.9916 | +0.0006 |
| Helios Smooth. ↑ | 0.9917 | 0.9923 | +0.0006 |
| CLIP Adjacent ↑ | 0.9397 | 0.9574 | +0.0177 |
| DINO Adjacent ↑ | 0.8795 | 0.9212 | +0.0417 |
Table 2: Temporal consistency ablation between LayerRecall and all-layer memory routing.
and SkyReels-V2 (Yin et al. 2025; Yi et al. 2026; Guo et al. 2026; Yang et al. 2026; Chen et al. 2026d; Huang et al. 2025; Liu et al. 2026; Chen et al. 2025). We also include memory-or context-augmented methods: LongLive-RAG, MemFlow, Context Forcing, HiAR, and Infinity-RoPE (Hu et al. 2026; Ji et al. 2025; Chen et al. 2026c; Zou et al. 2026; Yesiltepe et al. 2026) for more comprehensive comparisons.
Evaluation metrics. We assess long-range consistency with subject consistency, background consistency, and motion smoothness of VBench-Long, together with the memory-oriented MemoBench and MovieBench scores (Huang et al. 2024, 2026; Chen et al. 2026a; Wu et al. 2025).
4.2 Qualitative Analysis
Figure 5 presents LayerRecall generations across diverse three-shot sequences. In each case, Shot 1 establishes a subject, object, or visual attribute, Shot 2 removes it from the visible scene, and Shot 3 tests its recovery after the relevant evidence has fallen outside the local context. LayerRecall consistently restores identities and fine-grained ap-
MemoBench (↑)

Figure 7: MemoBench evaluation of zero-training cross-backbone portability on 100 prompts. “L2 profile” applies LayerRecall with the LongLive-2.0 layer policy, while “Self profile” uses a backbone-specific layer policy obtained by profiling each target backbone.
| Backbone | Variant | End-to-end time (s/video) ↓ | FPS ↑ |
|---|---|---|---|
| LongLive-2.0 | w/o LayerRecall | 305.9 | 5.22 |
| w/ LayerRecall | 309.4 | 5.16 |
Table 3: Inference efficiency under matched H100 settings. FPS is computed from decoded frames divided by full end-to-end generation time.
pearance across people, animals, apparel, instruments, and scene-specific objects, while allowing the intervening shot to evolve independently. These cases provide direct visual evidence of stable long-term recall over substantial temporal gaps.
Beyond recovering an earlier appearance when it re-enters the scene, we repeatedly observe a memory-guided self-correction phenomenon: an initially mismatched local attribute can return to its historical state later within the same shot, without resetting the ongoing action or scene structure. Figure 10 and the supplementary analysis provide a representative example and discuss its connection to LayerRecall's state-conditioned retrieval and layer-selective memory injection.
4.3 Quantitative Results
Table 1 shows a consistent advantage on memory-oriented evaluation. LayerRecall ranks first on both MemoBench and MovieBench overall and remains among the top methods across most diagnostic subdimensions. It simultaneously matches LongLive-2.0 on VBench-Long, indicating that these memory gains do not compromise the backbone's consistency and motion quality. This balance is consistent with selective retrieval and layer-wise injection strengthening distant-memory use while preserving the local pathway.
MemoBench

Figure 8: MemoBench comparison of random and profile-guided historical-memory insertion in the dedicated matched ablation over 100 evaluation prompts. Under matched retrieval settings, LayerRecall (Profiled-10) improves the overall score and four of five reported dimensions, supporting the importance of selecting where retrieved memory enters the DiT.
| Method | Variant | Memo Overall ↑ | Memo ID ↑ | Memo State ↑ | Memo Camera ↑ |
|---|---|---|---|---|---|
| LayerRecall | Random init | 0.519 | 0.484 | 0.487 | 0.508 |
| Trained | 0.548 | 0.530 | 0.525 | 0.573 |
Table 4: Ablation of CHPM validity on the MemoBench. Both variants use the same ten memory-sensitive layers.
4.4 Ablation Study
Analysis of Efficiency Table 3 compares LayerRecall with the LongLive-2.0 backbone under matched H100 settings. LayerRecall changes end-to-end generation time from 305.9 to 309.4 seconds per video, showing that its selective memory routing introduces negligible inference overhead.
Effect of Layer-Selective Memory Routing This ablation isolates where retrieved historical K/V states enter the generator. We compare all-layer routing with LayerRecall while keeping the checkpoint, retrieved memory, memory budget, and evaluation protocol fixed.
Figure 6 and Table 2 show that LayerRecall reduces the high-frequency frame-change power from 0.60 to 0.38 and improves motion smoothness and adjacent-frame CLIP/DINO consistency. These results support profile-guided routing as a means of limiting the temporal disturbance introduced by broad all-layer memory access.
Backbone Portability of LayerRecall We test zero-training portability on LongLive (Yang et al. 2026) and Self-Forcing (Huang et al. 2025), which use the 1.3B Wan2.1 backbone family (Team Wan et al. 2025) rather than 5B Wan2.2 of LongLive-2.0 (Chen et al. 2026d; Wan-AI 2025). We directly reuse all trained LayerRecall parameters without further optimization. We compare the frozen backbone alone, direct reuse with the original LongLive-2.0 layer profile, and the same reused LayerRecall with only the enabled-layer policy replaced by a 1.3B profile obtained from each model corresponding.
Figure 7 highlights the resulting MemoBench comparison, while complete metrics are provided in the supplementary material. Direct reuse improves MemoBench Overall on both backbones and most reported dimensions, supporting the portability of the state-conditioned what-to-retrieve policy. Replacing only the layer profile yields the best Overall score on both models, although individual dimensions exhibit trade-offs, further indicating the importance of adapting where-to-use to the target backbone. We interpret these results as cross-backbone portability over the tested models rather than universal zero-shot applicability.
Effect of CHPM Table 4 compares LayerRecall trained with CHPM against the same architecture with randomly initialized routing parameters; both variants use the same ten memory-sensitive layers. CHPM raises MemoBench overall from 0.519 to 0.548 and improves every reported subdimension, supporting prediction matching as effective supervision beyond the fixed layer policy.
Effect of Profile-Guided Where to Use We isolate the where-to-use decision by applying the same trained LayerRecall checkpoint to either the profiled LongLive-2.0 policy [4, 9, 10, 12, 13, 15, 16, 17, 18, 26] or ten randomly sampled DiT layers [0, 3, 4, 7, 8, 17, 20, 23, 24, 28]. All other settings, including the retrieval mechanism, memory budget, and the 100 evaluation prompts, remain fixed. Figure 8 show that the profiled policy raises the MemoBench overall score from 0.538 to 0.570 and improves object reappearance, state, layout, and camera consistency. Identity is the only reported dimension on which Random-10 is higher (0.507 versus 0.495). The overall and four-of-five dimensional gains show that, under a fixed checkpoint and retrieval procedure, the layer allowlist materially affects how well routed history is used. This supports profile-guided where-to-use routing over an equally sized random policy, without assuming that different layers select identical historical chunks.
5 Conclusion
We presented LayerRecall for improving long-range consistency in autoregressive video diffusion under a bounded physical K/V cache. Motivated by layer-wise differences in temporal attention, LayerRecall revisits memory use from a layer-aware perspective and separates memory management into two coupled decisions: a current-conditioned query determines what to retrieve, while a backbone-specific policy determines where to use the retrieved K/V states. Retaining the original local pathway elsewhere enables distant recall without discarding local temporal evolution. CHPM learns this routing strategy from a privileged long-context reference without explicit memory-allocation labels or backbone fine-tuning. Prediction-space matching converts long-context behavior into routing supervision, while detached self-rollout exposes the student to its own accumulated context without propagating gradients across the full sequence.
Across multi-shot evaluations, LayerRecall achieves the best overall scores on MemoBench and MovieBench while matching LongLive-2.0 on VBench-Long. Ablations validate layer-selective injection, CHPM, and cross-backbone transfer with negligible overhead. Together, these results highlight the importance of allocating limited history across both content and network depth. Future work may explore adaptive layer activation and compressed memory.
References
Chen, G.; Lin, D.; Yang, J.; Lin, C.; Zhu, J.; Fan, M.; Zhang, H.; Chen, S.; Chen, Z.; Ma, C.; Xiong, W.; Wang, W.; Pang, N.; Kang, K.; Xu, Z.; Jin, Y.; Liang, Y.; Song, Y.; Zhao, P.; Xu, B.; Qiu, D.; Li, D.; Fei, Z.; Li, Y.; and Zhou, Y. 2025. SkyReels-V2: Infinite-Length Film Generative Model. arXiv:2504.13074.
Chen, H.; Zhou, K.; Hua, H.; Zhang, K.; Qian, J.; Ma, W.; Chen, H.; Liu, C.; Zhao, Y.; Wang, X.; Li, W.; Yuille, A.; Liang, P. P.; and Du, Y. 2026a. MemoBench: Benchmarking World Modeling in Dynamically Changing Environments. arXiv:2606.27537.
Chen, J.; Zhao, Y.; Yu, J.; Chu, R.; Chen, J.; Yang, S.; Wang, X.; Pan, Y.; Zhou, D.; Ling, H.; Liu, H.; Yi, H.; Zhang, H.; Li, M.; Chen, Y.; Cai, H.; Fidler, S.; Luo, P.; Han, S.; and Xie, E. 2026b. SANA-Video: Efficient Video Generation with Block Linear Diffusion Transformer. In International Conference on Learning Representations.
Chen, S.; Wei, C.; Sun, S.; Shen, T.; Nie, P.; Zou, K.; Zhang, G.; Yang, M.-H.; and Chen, W. 2026c. Context Forcing: Consistent Autoregressive Video Generation with Long Context. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research.
Chen, Y.; Wang, L.; Huang, W.; Yang, S.; Zhang, B.; Xiao, Y.; Chu, R.; Mao, W.; Hu, Q.; Liu, S.; Zhao, Y.; Mao, H.; Chen, Y.-C.; Xie, E.; Qi, X.; and Han, S. 2026d. LongLive-2.0: An NVFP4 Parallel Infrastructure for Long Video Generation. arXiv:2605.18739.
Cui, J.; Wu, J.; Li, M.; Yang, T.; Li, X.; Wang, R.; Bai, A.; Ban, Y.; and Hsieh, C.-J. 2026. Self-Forcing++: Towards Minute-Scale High-Quality Video Generation. In International Conference on Learning Representations.
Dou, W.; Li, H.; Cui, J.; Zhou, L.; Wang, J.; and Zhu, S. 2026. Slot-Memory: Object-Centric KV Memory for Streaming Long-Video Generation. arXiv:2605.31033.
Gao, K.; Shi, J.; Zhang, H.; Wang, C.; Xiao, J.; and Chen, L. 2025. Ca2-VDM: Efficient Autoregressive Video Diffusion Model with Causal Generation and Cache Sharing. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, 18550–18565.
Guo, H.; Jia, Z.; Li, J.; Li, B.; Cai, Y.; Wang, J.; Li, Y.; and Lu, Y. 2026. Efficient Autoregressive Video Diffusion with Dummy Head. arXiv:2601.20499.
Guo, Y.; Yang, C.; Yang, Z.; Ma, Z.; Lin, Z.; Yang, Z.; Lin, D.; and Jiang, L. 2025. Long Context Tuning for Video Generation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 17281–17291.
Henschel, R.; Khachatryan, L.; Poghosyan, H.; Hayrapetyan, D.; Tadevosyan, V.; Wang, Z.; Navasardyan, S.; and Shi, H. 2025. StreamingT2V: Consistent, Dynamic, and Extendable Long Video Generation from Text. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2568–2577.
Hong, Y.; Liu, B.; Wu, M.; Zhai, Y.; Chang, K.-W.; Li, L.; Lin, K.; Lin, C.-C.; Wang, J.; Yang, Z.; Wu, Y. N.; and Wang, L. 2025. SlowFast-VGen: Slow-Fast Learning for Action-Driven Long Video Generation. In International Conference on Learning Representations.
Hu, Q.; Yang, S.; Huang, W.; Han, S.; and Chen, Y. 2026. LongLive-RAG: A General Retrieval-Augmented Framework for Long Video Generation. arXiv:2606.02553.
Huang, X.; Li, Z.; He, G.; Zhou, M.; and Shechtman, E. 2025. Self Forcing: Bridging the Train-Test Gap in Autoregressive Video Diffusion. In Advances in Neural Information Processing Systems, volume 38, 167283–167308.
Huang, Z.; He, Y.; Yu, J.; Zhang, F.; Si, C.; Jiang, Y.; Zhang, Y.; Wu, T.; Jin, Q.; Chanpaisit, N.; Wang, Y.; Chen, X.; Wang, L.; Lin, D.; Qiao, Y.; and Liu, Z. 2024. VBench: Comprehensive Benchmark Suite for Video Generative Models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 21807–21818.
Huang, Z.; Zhang, F.; Xu, X.; He, Y.; Yu, J.; Dong, Z.; Ma, Q.; Chanpaisit, N.; Si, C.; Jiang, Y.; Wang, Y.; Chen, X.; Chen, Y.-C.; Wang, L.; Lin, D.; Qiao, Y.; and Liu, Z. 2026. VBench++: Comprehensive and Versatile Benchmark Suite for Video Generative Models. IEEE Transactions on Pattern Analysis and Machine Intelligence, 48(3): 3268–3285.
Ji, S.; Chen, X.; Yang, S.; Tao, X.; Wan, P.; and Zhao, H. 2025. MemFlow: Flowing Adaptive Memory for Consistent and Efficient Long Video Narratives. arXiv:2512.14699.
Kim, J.; Kang, J.; Choi, J.; and Han, B. 2024. FIFO-Diffusion: Generating Infinite Videos from Text without Training. In Advances in Neural Information Processing Systems, volume 37, 89834–89868.
Kong, W.; Tian, Q.; Zhang, Z.; Min, R.; Dai, Z.; Zhou, J.; Xiong, J.; Li, X.; Wu, B.; Zhang, J.; Wu, K.; Lin, Q.; Yuan, J.; Long, Y.; Wang, A.; Wang, A.; Li, C.; Huang, D.; Yang, F.; Tan, H.; Wang, H.; Song, J.; Bai, J.; Wu, J.; Xue, J.; Wang, J.; Wang, K.; Liu, M.; Li, P.; Li, S.; Wang, W.; Yu, W.; Deng, X.; Li, Y.; Chen, Y.; Cui, Y.; Peng, Y.; Yu, Z.; He, Z.; Xu, Z.; Zhou, Z.; Xu, Z.; Tao, Y.; Lu, Q.; Liu, S.; Zhou, D.; Wang, H.; Yang, Y.; Wang, D.; Liu, Y.; Jiang, J.; and Zhong, C. 2025. HunyuanVideo: A Systematic Framework for Large Video Generative Models. arXiv:2412.03603.
Li, Z.; Rahmani, H.; Ke, Q.; and Liu, J. 2025. LongDiff: Training-Free Long Video Generation in One Go. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 17789–17798.
Liu, K.; Hu, W.; Xu, J.; Shan, Y.; and Lu, S. 2026. Rolling Forcing: Autoregressive Long Video Diffusion in Real Time. In International Conference on Learning Representations.
Lu, Y.; Liang, Y.; Zhu, L.; and Yang, Y. 2024. FreeLong: Training-Free Long Video Generation with SpectralBlend Temporal Attention. In Advances in Neural Information Processing Systems, volume 37, 131434–131455.
Ma, X.; Wang, Y.; Chen, X.; Jia, G.; Liu, Z.; Li, Y.-F.; Chen, C.; and Qiao, Y. 2025. Latte: Latent Diffusion Transformer for Video Generation. Transactions on Machine Learning Research.
Peebles, W.; and Xie, S. 2023. Scalable Diffusion Models with Transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 4195–4205.
Qiu, H.; Xia, M.; Zhang, Y.; He, Y.; Wang, X.; Shan, Y.; and Liu, Z. 2024. FreeNoise: Tuning-Free Longer Video Diffusion via Noise Rescheduling. In International Conference on Learning Representations.
Stapf, S.; Acuaviva Huertos, P.; Davtyan, A.; and Favaro, P. 2026. Composition of Memory Experts for Diffusion World Models. In International Conference on Learning Representations.
Team Wan; Wang, A.; Ai, B.; Wen, B.; Mao, C.; Xie, C.-W.; Chen, D.; Yu, F.; Zhao, H.; Yang, J.; Zeng, J.; Wang, J.; Zhang, J.; Zhou, J.; Wang, J.; Chen, J.; Zhu, K.; Zhao, K.; Yan, K.; Huang, L.; Feng,
M.; Zhang, N.; Li, P.; Wu, P.; Chu, R.; Feng, R.; Zhang, S.; Sun, S.; Fang, T.; Wang, T.; Gui, T.; Weng, T.; Shen, T.; Lin, W.; Wang, W.; Wang, W.; Zhou, W.; Wang, W.; Shen, W.; Yu, W.; Shi, X.; Huang, X.; Xu, X.; Kou, Y.; Lv, Y.; Li, Y.; Liu, Y.; Wang, Y.; Zhang, Y.; Huang, Y.; Li, Y.; Wu, Y.; Liu, Y.; Pan, Y.; Zheng, Y.; Hong, Y.; Shi, Y.; Feng, Y.; Jiang, Z.; Han, Z.; Wu, Z.-F.; and Liu, Z. 2025. Wan: Open and Advanced Large-Scale Video Generative Models. arXiv:2503.20314.
Wan-AI. 2025. Wan2.2-TI2V-5B. Hugging Face model card.
Wu, W.; Liu, M.; Zhu, Z.; Xia, X.; Feng, H.; Wang, W.; Lin, K. Q.; Shen, C.; and Shou, M. Z. 2025. MovieBench: A Hierarchical Movie Level Dataset for Long Video Generation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 28984–28994.
Yang, S.; Huang, W.; Chu, R.; Xiao, Y.; Zhao, Y.; Wang, X.; Li, M.; Xie, E.; Chen, Y.-C.; Lu, Y.; Han, S.; and Chen, Y. 2026. LongLive: Real-Time Interactive Long Video Generation. In International Conference on Learning Representations.
Yang, Z.; Teng, J.; Zheng, W.; Ding, M.; Huang, S.; Xu, J.; Yang, Y.; Hong, W.; Zhang, X.; Feng, G.; Yin, D.; Zhang, Y.; Wang, W.; Cheng, Y.; Xu, B.; Gu, X.; Dong, Y.; and Tang, J. 2025. CogVideoX: Text-to-Video Diffusion Models with An Expert Transformer. In International Conference on Learning Representations.
Yesiltepe, H.; Meral, T.; Akan, A. K.; Oktay, K.; and Yanardag, P. 2026. Infinity-RoPE: Action-Controllable Infinite Video Generation Emerges From Autoregressive Self-Rollout. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 40256–40265.
Yi, J.; Jang, W.; Cho, P. H.; Nam, J.; Yoon, H.; and Kim, S. 2026. Deep Forcing: Training-Free Long Video Generation with Deep Sink and Participative Compression. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research.
Yin, T.; Zhang, Q.; Zhang, R.; Freeman, W. T.; Durand, F.; Shechtman, E.; and Huang, X. 2025. From Slow Bidirectional to Fast Autoregressive Video Diffusion Models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 22963–22974.
Yu, J.; Bai, J.; Qin, Y.; Liu, Q.; Wang, X.; Wan, P.; Zhang, D.; and Liu, X. 2025a. Context as Memory: Scene-Consistent Interactive Long Video Generation with Memory Retrieval. In SIGGRAPH Asia 2025 Conference Papers, 1–11.
Yu, Y.; Wu, X.; Hu, X.; Hu, T.; Sun, Y.; Lyu, X.; Wang, B.; Ma, L.; Ma, Y.; Wang, Z.; and Qi, X. 2025b. VideoSSM: Autoregressive Long Video Generation with Hybrid State-Space Memory. arXiv:2512.04519.
Zhu, H.; Zhao, M.; He, G.; Su, H.; Li, C.; and Zhu, J. 2026. Causal Forcing: Autoregressive Diffusion Distillation Done Right for High-Quality Real-Time Interactive Video Generation. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research.
Zou, K.; Zheng, D.; Liu, H.; Hang, T.; Liu, B.; and Yu, N. 2026. HiAR: Efficient Autoregressive Long Video Generation via Hierarchical Denoising. arXiv:2603.08703.
LayerRecall: A State-Conditioned Memory Router for Long-Horizon Consistency in Video Generation
Appendix
A Additional Experiments
A.1 Layer Preference Beyond LongLive-2.0
Figure 9 extends the layer-preference analysis in Main.Fig.2 beyond the LongLive-2.0 backbone. We profile LongLive (Yang et al. 2026) and Self-Forcing (Huang et al. 2025) on the same 100 held-out prompts and aggregate historical attention mass with the protocol used in the main paper. Both backbones exhibit pronounced variation across network depth: layers that allocate more attention to historical context form heterogeneous, model-specific patterns rather than a uniform response throughout the DiT. The relative layer-wise trends are also stable across most evaluated prompts, as reflected by the narrow prompt-level ranges at many layers. These observations support the presence of layer preference beyond LongLive-2.0, while the different peak locations indicate that the exact memory-sensitive layer set remains backbone-specific. We regard this as evidence over the tested models and prompt set, rather than a universal property of all video DiTs.
A.2 Memory-Guided Self-Correction
In addition to recovering historical attributes when a subject reappears, we observe cases in which LayerRecall corrects an initial local mismatch later within the same shot. Figure 10 shows one example: the returning subject first appears with an incorrect patterned inner garment, then recovers the solid blue garment established before she left the scene. The correction remains localized to the mismatched attribute, while her identity, gray cardigan, action, and surrounding scene continue without a global visual reset.
We interpret this behavior through LayerRecall's two routing decisions. At the beginning of a reappearance, the current representation may still be ambiguous. As identity, body shape, and scene relations become more discriminative, current-conditioned retrieval updates the query and can better align it with the relevant historical chunk. The retrieved K/V states are then injected only into memory-sensitive layers, while the remaining layers retain the backbone's local attention pathway. This separation allows historical appearance cues to revise a residual attribute mismatch without reconstructing the motion, pose, or scene as a whole. LayerRecall does not explicitly detect errors; rather, the correction emerges from repeatedly conditioning memory access on the evolving current state and restricting where recalled evidence enters the network.
A.3 Complete Cross-Backbone Portability Results
Figure 11 reports the complete MemoBench dimensions for the cross-backbone portability experiment summarized in the main paper. For both LongLive and Self-Forcing, it compares the frozen backbone, direct LayerRecall transfer with the LongLive-2.0 layer policy, and transfer with only the insertion layers replaced by the target backbone's profiled policy. These results provide the fine-grained scores underlying the main-paper portability analysis; the claim is restricted to the two evaluated target backbones.
B Additional Method Details
This section provides architecture, retrieval, layer-policy, and CHPM training details omitted from the main paper for space.
B.1 LayerRecall Architecture
LayerRecall augments a frozen chunk-autoregressive DiT with a small state-conditioned memory router. Each generated sequence is partitioned into prompt blocks and latent chunks. In the submitted LongLive-2.0 setting (Chen et al. 2026d; Wan-AI 2025), one training/evaluation rollout uses 384 latent frames, organized as 48 chunks of 8 latent frames.
Router architecture and initialization. The router operates in one attention-head dimension, . Its shared global query is initialized from . The current-conditioned branch consists of a LayerNorm over the 3,072-dimensional DiT state, a MLP with a SiLU activation, and a linear gate followed by a sigmoid. The final MLP projection is zero-initialized, so the router initially reduces to the global query. The residual scale is learnable and initialized to 0.1, while each learnable layer scale is initialized to one. Cosine scores use a fixed temperature ; the temperature is not a trained parameter.
Historical summaries. For each historical chunk and each DiT layer l, LayerRecall pools the normalized pre-RoPE keys into a compact summary . This summary is used only for retrieval scoring. The physical cache separately stores the full RoPE-applied key and value tensors for the same chunk. Thus determines which resident record is retrieved, whereas self-attention consumes its full cached K/V payload rather than the summary.
Current state. At the current chunk , LayerRecall mean-pools the detached pre-attention hidden state at layer into and sets . The retrieval query is
The global query, LayerNorm, MLP, gate, and are shared across layers; only is layer-specific. The global query provides a shared retrieval prior, and the gated residual rotates this prior according to the current content at each layer. Current-state pooling is detached from the frozen backbone activations, while gradients still update the router through the query residual.
(a) Layer memory preference
LongLive

(b) Prompt-independent layer preference
(a) Layer memory preference
Self Forcing

(b) Prompt-independent layer preference
Figure 9: Layer-preference profiling on LongLive (left) and Self-Forcing (right), two backbones distinct from the LongLive-2.0 model used in the main experiments. For each backbone, the upper panel reports historical attention mass across DiT layers and prompt categories, while the lower panel shows the mean and min–max range over 100 held-out prompts. Both models exhibit heterogeneous and relatively prompt-stable layer-wise preferences, although their specific memory-sensitive layers differ. Red outlines mark the profiled insertion policies used in the cross-backbone experiments.
Memory-Guided Self Correction
LayerRecall

Figure 10: Memory-guided self-correction in a three shot sequence. The subject wears a solid blue inner garment in Shot 1, leaves the scene in Shot 2, and initially reappears with a mismatched pattern in Shot 3. LayerRecall later recalls the earlier blue garment while preserving the subject's identity, gray cardigan, ongoing action, and scene structure, illustrating localized attribute recovery without a global visual reset.
Parameter count. The LayerRecall overlay contains 11 trainable tensors and 1,648,416 parameters: the global query, LayerNorm, two-layer MLP, gate, 30 layer scales, and one global residual scale. This is approximately 0.033% of the 5B backbone. The video DiT backbone, text encoder, VAE, and teacher/student generators remain frozen during CHPM training.
B.2 Hard and Soft Retrieval
Both retrieval forms start from the cosine compatibility between the current query and each physically resident historical summary,
During CHPM training, hard and soft retrieval are coupled through a straight-through estimator: the selected hard K/V payload determines the numerical forward pass, while a temperature-scaled soft mixture provides the differentiable backward path to the compatibility scores. The submitted training and main-evaluation configurations retain the eight highest-scoring candidates before retrieval and use .
Hard retrieval. For each memory slot, LayerRecall selects the highest-scoring candidate that has not already been used, , and inserts that record's complete cached K/V payload into self-attention. When the visible budget contains multiple memory slots, previously selected records are masked before the next selection, yielding retrieval without
MemoBench-Obj.Reapp. (↑)
Absolute scores

Zoomed view
MemoBench-Identity (↑)
Absolute scores
Zoomed view
MemoBench-State (↑)
Absolute scores

Zoomed view
MemoBench-Layout (↑)
Absolute scores
Zoomed view
MemoBench-Camera (↑)
Absolute scores

Zoomed view
MemoBench-Overall (↑)
Absolute scores
Zoomed view
Figure 11: Complete MemoBench results for zero-training LayerRecall transfer to LongLive and Self-Forcing over 100 evaluation prompts. Each group compares the backbone without LayerRecall, direct transfer using the LongLive-2.0 policy (L2 profile), and the same frozen router using the target backbone's own profiled insertion policy (Self profile). “Self profile” denotes self-profiled layers for each target backbone, not Self-Forcing exclusively. Absolute scores and zoomed views are shown for object reappearance, identity, state, layout, camera, and overall performance. Thin black lines connect value labels to their bars and do not denote uncertainty intervals.
replacement. Our evaluation uses st_topk_slots; under no-gradient inference, this follows the same hard numerical path without the soft gradient surrogate.
Soft retrieval. Over the retained candidate set , Layer-Recall computes
and forms and . During CHPM training, these mixtures supply the backward surrogate through
(6)
The resulting tensors are numerically equal to the hard payload in the forward pass, but their gradients reach the compat-ibility scores through the soft mixture. Detached backbone summaries prevent this gradient from updating the base DiT. The implementation also supports a pure-soft mode in which the weighted payload itself enters attention, but this mode is not used for the reported main evaluation.
B.3 Layer Profiling and Layer Policy Selection
The main paper states that the memory-sensitive layer set is chosen through attention profiling, routing-usage analysis, and controlled policy comparisons. We use profiling to identify layer-wise temporal heterogeneity, then fix a backbone-specific insertion policy before evaluation.
Aggregation. For each layer, profiling first aggregates historical attention mass over query tokens and heads, then averages it over denoising steps and query chunks to obtain one profile per prompt. We report the prompt mean together with the prompt-level min-max range. The compact visualization additionally groups prompts by four memory stresses: subject return, color/attribute memory, object permanence, and spatial memory. This aggregation exposes stable layer-level trends without using any profiling prompt for CHPM training or final evaluation.
Policy selection. Raw attention ranking is used to form candidate policies rather than directly serving as the final insertion mask. We compare these candidates under a fixed checkpoint, retrieval budget, and evaluation protocol, and then freeze the selected backbone-specific allowlist. For LongLive-2.0, the submitted policy is
Profiling therefore identifies where historical access is useful, while controlled policy comparison determines the final insertion set; the allowlist is not defined as a literal top-k ranking of a single attention statistic.
Cross-backbone insertion policies. For the cross-backbone study, profiling is used only to choose where the already-trained LongLive-2.0 LayerRecall router is inserted. We do not train separate LongLive- or Self-Forcing-specific router parameters. The main zero-training setting reuses the LongLive-2.0 insertion policy; its backbone-profiled variant changes only the enabled-layer mask while keeping the router weights fixed. The target-backbone insertion policies are
LongLive: [15, 18, 13, 22, 24, 25, 26, 19, 11, 23],
Self-Forcing: [15, 18, 6, 13, 10, 2, 24, 23, 3, 25].
These layer policies are fixed before the final cross-backbone evaluation; all LayerRecall rows reuse the same trained router weights without further optimization.
B.4 CHPM Training Details
CHPM trains only the LayerRecall router by matching a bounded-memory student to a privileged long-context teacher in denoised-latent prediction space. Teacher and student use the same LongLive-2.0/Wan2.2-TI2V-5B backbone checkpoint and the same current noisy latent, text condition, and diffusion timestep at each supervised anchor. Both teacher and student backbones are frozen. The complete training configuration is summarized in Table 6.
C Prompt Construction, Baseline Adaptation, and Evaluation Protocol
C.1 Prompt Construction
The CHPM training set contains 1,600 multi-shot prompts. The prompt summary records 480 3-shot, 480 4-shot, 320 5-shot, and 320 6-shot cases. The four paper axes are balanced at 400 prompts each: subject, color, position, and scene. The corresponding primary stresses are subject return identity, color consistency memory, spatial position memory, and scene layout consistency.
The main evaluation bank contains 100 held-out 3-shot prompts with 25 prompts per paper axis. Each prompt is written as a sequence in which salient subjects, attributes, objects, spatial relations, or scene landmarks appear, leave the local context, and later reappear. Prompt metadata records target attributes, bad-case criteria, camera views, shot durations, memory axes, and quality control fields. A separate 100-prompt profiling bank is used for layer-policy analysis and is disjoint from both CHPM training and the final 100-prompt evaluation set.
C.2 Prompt Filtering
The checked prompt summaries report empty quality-issue distributions for the 1,600-prompt training bank and the 100-prompt main evaluation bank. Metadata fields indicate filtering for target axis, overloaded consistency targets, smooth transitions without explicit scene-transition wording, and limited color clutter for non-color axes.
C.3 Baseline Prompt Adaptation
Some baselines accept a native multi-shot or block-structured prompt, while others are driven by a single text prompt. For single-prompt baselines, we adapt the multi-shot prompt into one descriptive prompt that preserves the key subject, attribute, object, reappearance, and camera-return constraints without adding new semantic targets.
Adaptation example 1. Original 3-shot prompt: (1) a female archivist named Mara with a copper hairpin and square glasses sits at a reading desk under a skylight; (2) the lens moves away to a far bookshelf while Mara leaves the frame; (3) the camera returns to the reading desk and Mara reappears with the same copper hairpin, glasses, and grey cardigan. Adapted single prompt: generate a continuous long video in a hushed library archive where Mara is introduced at the desk with the copper hairpin and square glasses, the camera smoothly leaves her toward the far bookshelf, and later returns to the desk where Mara reappears with the same identity, accessories, clothing cues, and surrounding globe/skylight layout.
Adaptation example 2. Original 3-shot prompt: (1) a man in a charcoal suit stands in a train station with a cognac-brown leather briefcase at his feet by a marble pillar; (2) the camera moves toward the departure board and the briefcase leaves view; (3) the camera returns and the same cognac-brown briefcase and station layout are visible again. Adapted single prompt: generate a continuous long video inside a grand train station where the cognac-brown leather briefcase
| Split | Size | Purpose | CHPM train | Layer selection | Final eval |
|---|---|---|---|---|---|
| Training set | 1,600 | Multi-shot prompts used to train CHPM. The prompt summary records 480 3-shot, 480 4-shot, 320 5-shot, and 320 6-shot cases across subject, color, position, and scene axes. | Yes | No | No |
| Profiling set | 100 | Held-out prompts used for prompt-stability analysis and layer-policy validation across subject, color, object, and spatial memory stresses. | No | Yes | No |
| Main evaluation set | 100 | Held-out 3-shot prompts used to generate the main evaluation videos. The summary records 25 cases for each of subject, color, position, and scene axes. | No | No | Yes |
Table 5: Data split usage for training, layer-policy analysis, and evaluation.
| Item | Setting |
|---|---|
| Backbone | LongLive-2.0 5B on Wan2.2-TI2V-5B. |
| Trainable parameters | LayerRecall router only; 1,648,416 parameters. |
| Training prompts | 1,600 multi-shot prompts. |
| Latent rollout | 384 latent frames, 48 chunks, 8 latent frames per chunk. |
| Prediction schedule | One sampled diffusion timestep and one denoising prediction-matching forward per supervised anchor. |
| Teacher/student history | Teacher retains the complete causal prefix at each anchor, with a maximum attention horizon of 384 latent frames; student has a 32-frame total attention-visible budget comprising an 8-frame sink, up to two retrieved history chunks (16 frames), and the current 8-frame chunk. |
| Anchors | Prediction anchor every 64 frames at chunk indices [7, 15, 23, 31, 39, 47]. |
| Loss | Mean-squared error between student and detached teacher denoised-latent predictions, with prediction loss weight 1.0 and regularization weight 0.0001. |
| Detached rollout | Student prefixes and anchor predictions are detached before becoming future context; teacher target predictions are detached. |
| Optimizer | AdamW, learning rate , betas (0.0, 0.999), weight decay 0. |
| Batching | Per-DP batch size 1, gradient accumulation 1, effective global batch 8. |
| Precision | Mixed precision enabled for training; evaluated generator checkpoint uses BF16 inference. |
| Parallelism | 16 H100 GPUs, world size 16, sequence parallelism 2, data parallelism 8. |
| Schedule | One pass over 1,600 training cases, corresponding to 200 optimizer steps at data-parallel size 8. |
| Random seed | Logging, model initialization, and data-order seeds are all set to 0. |
| Training compute | 128 H100 GPU hours. |
Table 6: CHPM training and reproducibility settings.
is established beside the man and marble pillar, temporarily leaves the local view as the camera moves to the departure board, and later reappears with the same color, material, owner/location relation, and station landmarks.
C.4 Reproducibility and Evaluation Protocol
Video checks and frame extraction. The trade-off evaluation script requires 100 generated videos before running the full evaluation. It extracts inspection frames every 10 seconds up to 60 seconds, requires an expected minimum duration of 55 seconds, and uses ffprobe and ffmpeg when available with an OpenCV fallback.
Metric execution. CLIP/DINO consistency, VBench, VBench-Long, Helios, MemoBench-style VLM scoring, and MovieBench-style VLM scoring are run on all 100 evaluation videos. VBench dimensions include temporal flickering, subject consistency, background consistency, motion smoothness, aesthetic quality, and imaging quality. VBench-Long dimensions include subject consistency, background consistency, motion smoothness, dynamic degree, aesthetic quality, and imaging quality.
Temporal stability diagnostic. For decoded frames, we convert each frame to grayscale, resize it to 192 pixels in width, and define frame-change energy as . Abrupt-change energy is the positive residual , where and the moving average uses edge-value padding. For each matched video pair, we normalize both abrupt-energy sequences by their shared 95th percentile before pointwise averaging. We compute the temporal spectrum as and report as the high-frequency ratio. Each displayed spectrum is normalized by its maximum power over 0.05–12 Hz, while the reported ratio is averaged over video-level ratios.
VLM protocol. All VLM-based evaluation uses gemini-3-flash-preview. For each video, the evaluator samples 12 evenly spaced frames, resizes the long
| Method | Native multi-shot support | Input format | Adaptation rule |
|---|---|---|---|
| LongLive | Yes/partial | Block prompt list | Use the 48-block prompt script directly when supported. |
| LongLive-2.0 | Yes/partial | Block prompt list | Use the 48-block prompt script directly. |
| LongLive-RAG | Partial | Retrieved prompt/context | Preserve the same shot script and use its retrieval interface. |
| CausVid | No/partial | Single text prompt | Concatenate shots into a coherent long-video prompt with explicit reappearance constraints. |
| Deep Forcing | No/partial | Single text prompt | Concatenate shots; preserve subject, layout, and return constraints. |
| Dummy Forcing | No/partial | Single text prompt | Concatenate shots; preserve the memory target and final return. |
| Self-Forcing | No/partial | Single text prompt | Use the single-prompt adaptation produced from the same shot script. |
| MemFlow | No/partial | Single text prompt | Concatenate shots while preserving memory target and transition. |
| Rolling Forcing | No/partial | Single text prompt | Concatenate shots into a long-video prompt. |
| Context Forcing | No/partial | Single text prompt | Concatenate shots into a long-video prompt. |
| HiAR | No/partial | Single text prompt | Concatenate shots into a long-video prompt. |
| Infinity-RoPE | No/partial | Single text prompt | Concatenate shots into a long-video prompt. |
| SkyReels-V2 | No/partial | Single text prompt | Concatenate shots into a long-video prompt. |
| LayerRecall | Yes | 48-block prompt list | Use the 48-block prompt script directly. |
Table 7: Baseline prompt adaptation policy. “No/partial” means the local evaluation used a single-prompt adaptation or a method-specific wrapper rather than assuming a native 48-block prompt interface.
side to 512 pixels, and requests JSON scores under the MemoBench and MovieBench schemas. Video-level scores are then averaged over all 100 evaluation prompts.
Aggregation. Reported table values are arithmetic means over the corresponding videos and dimensions. The main VBench-Long Avg. is the mean of subject consistency, background consistency, and motion smoothness. MemoBench and MovieBench overall values are the evaluator-provided overall fields averaged over videos, not the mean of only the dimensions selected for the main table.
Runtime. End-to-end time is measured around the generation subprocess. Decoded-frame FPS is computed as decoded RGB frames divided by that end-to-end wall-clock time. This is separate from playback FPS, which is only the MP4 playback rate. The 48-block latent-FPS audit additionally reports latent frames per second as 384 latent frames per video divided by the same wall-clock interval; this latent-FPS value is retained as an audit statistic and should not be mixed with decoded-frame FPS.