Manuscript Offprint

arXiv:2610.27986

Recast the Past: Stable Long Video Generation with Full Context Memory

Yukuo Ma, Cong Liu, Junke Wang, Junqi Liu, Haibin Huang, Zuxuan Wu, Xuelong Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yukuo Ma1,2^{1,2}, Cong Liu2^{2}, Junke Wang1^{1}, Junqi Liu2^{2}, Haibin Huang2^{2}, Zuxuan Wu†1^{†1}, Xuelong Li†2^{†2}

1^{1}Fudan University, 2^{2}Institute of Artificial Intelligence (TeleAI), China Telecom

†^{\dagger}Corresponding authors.

Long-horizon video generation requires retaining an ever-expanding history, but conditioning on its growing token sequence is costly. Existing methods restrict or compress historical context, potentially losing information needed for future generation. This work proposes ReCam, which groups local spatiotemporal blocks of historical latents into vectors and projects them directly into the high-dimensional hidden space of a Diffusion Transformer. The model learns to use the resulting memory tokens through native self-attention, reducing token count while retaining block-level access to the full history. To mitigate temporal drift during autoregressive rollout, we further introduce dual-pointer denoising with separate noise schedules for recent context and target frames. Among the evaluated methods, ReCam achieves the highest VBench-Long overall score of 80.1 and competitive static-scene revisitation performance on R2M-Bench. It also leads on all four consistency metrics for off-screen subject reappearance, including clothing consistency of 4.09 versus 3.03 for the best baseline.

Keywords: Long video generation; video memory; diffusion transformers; temporal consistency

Github: https://github.com/scottykma/Recam

Date: October 16, 2026

TeleAI

TeleAI

1 Introduction

Advances in autoregressive video models have enabled streaming and interactive generation for applications such as world modeling [Parker-Holder et al., 2025, Sun et al., 2025, Team et al., 2026, Wang et al., 2026c, Gao et al., 2026a], embodied intelligence [Ye et al., 2026, Kim et al., 2026, Li et al., 2026a], and creative content generation [Gao et al., 2025, Wan et al., 2025, Teng et al., 2025]. These applications shift the focus from generating locally plausible short clips to maintaining long-term memory over extended temporal horizons (e.g., world models must maintain consistent scene states across interactions, whereas embodied agents must retain information from earlier observations to support subsequent decisions).

Given that relevant information may vary across temporal positions and denoising stages [Yu et al., 2026a], effective long-term memory requires access to such evidence throughout the accumulated history. However, naively retaining the complete history incurs substantial computational and memory costs for videos ranging from ten seconds to one minute, which is a practical range for these applications. Existing methods can be broadly categorized along two design dimensions (Fig. 1): how historical information is retrieved and how it is preserved. Selecting historical frames or sparsifying attention reduces conditioning cost by restricting the observations or interactions available to the generator [Yu et al., 2025, Cai et al., 2026, Jia et al., 2026]. Yet, the resulting selection may not fully capture the historical evidence needed, leaving relevant cues inaccessible even when they remain in the history. Other methods encode history into compact embeddings or mediate access through a limited set of query tokens [Zhang et al., 2025, Yu et al., 2026a]. These designs can retain full-history coverage, yet may discard fine-grained details needed when a scene is revisited or a subject reappears.

These limitations motivate a method that allows video models to leverage the full history during autoregressive rollout directly. Our key insight is that a coarse read does not require a coarse historical representation. We reduce the historical token count by retrieving at a coarser granularity while retaining full-history.

Figure

(a) Keyframe-based methods

Figure

(b) Compression-based methods

Figure

(c) Ours

Figure 1 A coarse read on fine-grained history. We compare our method with other representative methods. Keyframe-based approaches, such as CaM [Yu et al., 2025], typically employ an external rule-based selector to retrieve a subset of frames as memory. In contrast, compression-based methods [Zhang et al., 2025] encode history into a compact representation through a separate reconstruction stage. Different from these approaches, ReCam allows the video model itself to learn how to represent history and how to retrieve it via its native attention mechanism.

coverage. Each local spatiotemporal block of historical latents is flattened into a vector and projected into the high-dimensional hidden space of a Diffusion Transformer. The resulting memory representations are learned jointly with the video model and processed through native self-attention. This allows local detail to be encoded within each memory token, giving the model access to every historical block through a shorter token sequence.

Nevertheless, effective use of history requires more than access: errors in generated frames can propagate to subsequent predictions [Ning et al., 2024, Zhang and Agrawala, 2025, Ma et al., 2026]. To mitigate this drift, we introduce dual-pointer denoising, which assigns separate noise schedules to recent context frames and current target frames. At inference, context frames start from pure noise and follow a faster denoising trajectory, providing temporal cues while reducing the influence of errors in previously generated context.

Building on these designs, we propose ReCam, which enables stable and consistent long-video generation. Our contributions are summarized as follows:

• Full-context memory. We introduce ReCam, a simple yet effective method that allows each token to encode a larger amount of spatiotemporal content, enabling end-to-end training for long-video generation and yielding a native long-term memory mechanism.

• Dual-pointer denoising. We assign separate denoising trajectories to recent context frames and current target frames, providing temporal cues while masking prediction errors in the context frames.

• Empirical evaluation. Extensive experiments on complementary benchmarks show that ReCam achieves the highest overall VBench-Long score among the evaluated methods [Huang et al., 2024], competitive performance on static-scene revisitation [Gu et al., 2026], and the best results across all four metrics for off-screen subject reappearance [Chen et al., 2026a, Shi et al., 2026]. These results support the effectiveness of ReCam as a native long-term memory mechanism.

References (53)