Generating immersive indoor worlds from a single image has become feasible with recent video generation models. However, maintaining scene consistency during long-horizon exploration remains challenging, especially when revisiting previously observed rooms from different viewpoints. Existing memory mechanisms either rely on potentially inaccurate 3D reconstruction or lack explicit awareness of indoor layouts and occlusions, limiting reliable spatial memory retrieval. Moreover, these methods provide limited structural guidance for unseen regions, potentially leading to structural collapse and inaccurate camera navigation. In this paper, we present IndoorMem, a unified framework that uses a coarse floorplan as a spatial scaffold for consistent indoor video generation. Our key insight is that this floorplan can serve as both a spatial index for recalling the past and a structural blueprint for guiding the future. Building upon this scaffold, we introduce Tile-indexed Memory for efficient, room-level occlusion-aware history retrieval, and Layout-aware Guidance to provide coarse geometric and semantic cues for camera control and architectural consistency. Furthermore, we propose Spatially Masked Memory Attention to suppress interference from spatially irrelevant historical content during generation. Extensive experiments demonstrate that IndoorMem achieves superior multi-view consistency and camera control accuracy while maintaining high video generation quality, enabling consistent long-horizon indoor exploration without dense 3D reconstruction. Project page: https://riga2.github.io/indoormem
Figures & tables
Figure 2: Limitations of representative memory mechanisms. Left: 3D-reconstruction-based memory relies on estimated 3D representations, which may (a) cause distortions during target-view rendering or (b) suffer from inaccurate spatial indexing due to accumulated reconstruction errors, e.g., a wall reconstructed from the yellow view incorrectly occludes the cabinet in the blue view. Right: Reconstruction-free memory either (c) uses FoV overlap as a retrieval heuristic, ignoring architectural occlusions, or (d) encodes historical observations into memory states, making precise recall challenging without explicit spatial indexing.
Figure 3: Top: Overview of IndoorMem . We first leverage an MLLM to synthesize a plausible floorplan from user input, which serves as a shared spatial scaffold for Tile-indexed Memory and Layout-aware Guidance. The retrieved memories and layout guidance are incorporated into a video DiT with Spatially Masked Memory Attention for consistent indoor video generation. Bottom: Three key components. (a) Tile-indexed Memory organizes historical observations through spatial indexing and retrieves relevant frames based on architectural visibility; (b) Layout-aware Guidance generates hybrid geometric and semantic cues via ray-layout intersection; (c) Spatially Masked Memory Attention uses coarse geometric reprojection to construct token-level visibility masks for selective memory conditioning.
Multi-view Consistency
Camera Control
Video Generation Quality
Method
Rev. MEt3R ↓
ZOR (%) ↓
Adj. MEt3R ↓
RotErr ↓
TransErr ↓
CamMC ↓
SC ↑
BC ↑
TF ↑
MS ↑
AQ ↑
Overall ↑
DreamX-World
0.797
37.35
0.050
117.93
2.776
3.699
75.43
84.80
95.88
98.37
45.41
79.98
HY-WorldPlay
0.656
16.74
0.055
117.50
2.530
3.486
74.29
84.72
95.91
98.90
42.63
79.29
Alaya-EVOKE
0.783
42.25
0.047
103.21
2.625
3.429
77.53
85.27
95.28
98.32
52.80
81.84
Infinite-World
0.656
24.26
0.040
127.34
2.596
3.598
76.44
85.58
97.40
99.23
45.73
80.88
Lyra 2.0
0.744
38.53
0.054
80.08
2.372
2.989
74.45
84.74
95.23
98.60
43.19
79.24
Table 1: Quantitative comparison . Rev./Adj. MEt3R denote revisit/adjacent-frame MEt3R, and ZOR denotes zero-overlap rate. Overall averages SC, BC, TF, MS, and AQ. Best, second-best, and third-best results are highlighted in red, orange, and yellow, respectively.
Figure 4: Qualitative comparison on a real-world scene (top) and a generated scene (bottom). Left: The input image (Frame 0) and the floorplan with the camera exploration trajectory. Middle: Generated videos from different methods. Right: Point clouds reconstructed from the generated videos. The colored frame indices correspond to the camera viewpoints marked on the floorplans.
Table 5
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 1: Example of an outdoor scene. Given an input image, we use an MLLM to generate a floorplan following our specification. Without any outdoor-specific fine-tuning, our method can generate an outdoor scene using this floorplan, suggesting its potential for extension to outdoor environments.
Figure 2: Example containing a dynamic object. Our method preserves the appearance of a dynamic object to some extent, suggesting its potential for handling dynamic scenes.
Figure 3: Example of floorplan generation. Given an initial input image, the provided specification and prompts, the MLLM generates an FML sequence that can be parsed into a 2D floorplan.
Figure 4: Example of training data. Left: 2D floorplan and camera trajectory; Middle: Rendered hybrid geometric and semantic guidance used as a reference video; Right: Rendered RGB video frames.
Multi-view Consistency
Camera Control
Video Generation Quality
Method
Rev. MEt3R ↓
ZOR (%) ↓
Adj. MEt3R ↓
RotErr ↓
TransErr ↓
CamMC ↓
SC ↑
BC ↑
TF ↑
MS ↑
AQ ↑
Overall ↑
WorldMesh
0.562
8.54
0.063
30.92
1.211
1.448
71.03
82.29
93.66
98.31
47.75
78.61
Code-World-Model
0.533
21.41
0.052
96.58
2.480
3.291
78.97
88.17
94.84
98.33
49.64
81.99
Ours
0.425
5.81
0.038
28.58
1.207
1.410
78.61
87.08
95.88
99.02
48.71
81.86
Appendix
Table 1: Quantitative comparison . Rev./Adj. MEt3R denote revisit/adjacent-frame MEt3R, and ZOR denotes zero-overlap rate. Overall averages SC, BC, TF, MS, and AQ. Best and second-best results are shown in bold and underlined, respectively.
Figure 5: Qualitative comparisons with other methods. We compare generated frames and reconstructed point clouds across two indoor scenes. The input images and floorplans with camera trajectories are shown on the left. Our method better preserves scene appearance and structure during long-horizon exploration and revisits.
Figure 6: Large-scale scene generation. Given a single input image, our method generates a large-scale indoor scene– a palace –and supports exploration over 3,380 frames (approximately 2.5 minutes) while maintaining consistency when revisiting previously generated regions.
Figure 7: Qualitative comparison with all baselines. We compare generated frames and reconstructed point clouds with 11 baseline methods. The input images and floorplans with camera trajectories are shown on the left. Our method better preserves scene appearance and structure during long-horizon exploration and revisits.
Figure 8: One image, multiple floorplans. Given the same input image but different floorplans, our method generates different indoor scenes and exploration results.
Figure 9: One floorplan, multiple styles. Given the same floorplan and camera trajectory, our method supports text-to-video generation. With different styles specified in the text prompts, our method generates indoor scenes with substantially different appearances.
Spatially consistent long-horizon video generation aims to maintain temporal and spatial consistency along predefined camera trajectories. Existing methods mostly entangle memory modeling with video generation, leading to inconsistent content during scene revisits and diminished generative capacity when exploring novel regions, even when trained on extensive annotated data. To address these limitations, we propose a decoupled framework that separates memory conditioning from generation. Our approach significantly reduces training costs while simultaneously enhancing spatial consistency and preserving the generative capacity for novel scene exploration. Specifically, we employ a lightweight, independent memory branch to learn precise spatial consistency from historical observations. We first introduce a hybrid memory representation to capture complementary temporal and spatial cues from generated frames, then leverage a per-frame cross-attention mechanism to ensure each frame is conditioned exclusively on the most spatially relevant historical information, which is injected into the generative model to ensure spatial consistency. When generating new scenes, a camera-aware gating mechanism is proposed to mediate the interaction between memory and generation modules, enabling memory conditioning only when meaningful historical references exist. Compared with the existing method, our method is highly data-efficient, yet the experiments demonstrate that our approach achieves state-of-the-art performance in terms of both visual quality and spatial consistency. Project page can be found at https://iguoyanjun.github.io/memorize-when-needed-project-page/.
Yanjun Guo, Zhengqiang Zhang, Pengfei Wang +3
The Hong Kong Polytechnic University · OPPO Research Institute
Recent advances in video generative models have promoted rapid progress in controllable world models. However, maintaining fine-grained spatio-temporal consistency under long-horizon reasoning remains a key challenge. In this work, we move beyond explicit 3D memory and coarse frame-level implicit modeling, and propose a fine-grained, learnable, and scalable memory for consistent world generation. We first identify two fundamental limitations of naïve learnable memory architectures in long-horizon extrapolation, namely computational inefficiency and attention dispersion. Through a systematic analysis of attention dispersion, we propose DecMem, a decoupled memory architecture that employs Sparse Global Memory for efficient fine-grained access to global history and Anchored Local Memory for stable and high-quality extrapolation. Extensive experiments demonstrate that DecMem significantly outperforms current state-of-the-art methods. By ensuring precise and efficient long-term memory and achieving superior extrapolation capabilities, DecMem enables minute-level controllable long video generation with high fidelity and consistency.
Zhenhao Yang, Xiaoshi Wu, Zhengyao Lv +5
1The University of Hong Kong · *Work done during an internship at Kling Team, Kuaishou Tech. · 2Kling Team, Kuaishou Technology
Despite remarkable progress in video generation, maintaining long-term scene consistency upon revisiting previously explored areas remains challenging. Existing solutions rely either on explicitly constructing 3D geometry, which suffers from error accumulation and scale ambiguity, or on naive camera Field-of-View (FoV) retrieval, which typically fails under complex occlusions. To overcome these limitations, we propose I3DM, a novel implicit 3D-aware memory mechanism for consistent video scene generation that bypasses explicit 3D reconstruction. At the core of our approach is a 3D-aware memory retrieval strategy, which leverages the intermediate features of a pre-trained Feed-Forward Novel View Synthesis (FF-NVS) model to score view relevance, enabling robust retrieval even in highly occluded scenarios. Furthermore, to fully utilize the retrieved historical frames, we introduce a 3D-aligned memory injection module. This module implicitly warps historical content to the target view and adaptively conditions the generation on reliable warping regions, leading to improved revisit consistency and accurate camera control. Extensive experiments demonstrate that our method outperforms state-of-the-art approaches, achieving superior revisit consistency, generation fidelity, and camera control precision.
Jia Li, Han Yan, Yihang Chen +6
Monash University · Vertex Lab · Shanghai Jiao Tong University