MemoRenderer: Code-Driven Generative World Rendering with Geometry-Aligned Memory
Organizations: Beihang University · VAST · University of Hong Kong · Tsinghua University ·
Abstract
Code-driven world models use coding agents and engines to control world evolution, while video models synthesize appearance. However, persistent world state alone does not ensure consistent appearance beyond a streaming renderer's recent context. We present MemoRenderer, a generative world renderer with geometry-aligned visual memory. Engine-provided normal and instance maps constrain scene structure, while world coordinate maps (WCMs) and instance-level canonical coordinate maps (CCMs) establish surface correspondences across viewpoints and object motion. Code-driven retrieval uses these correspondences to select historical patches as memory context, achieving better appearance consistency than learnable memory baselines under the same conditioning. To avoid searching an ever-growing history, a persistent, instance-based memory bank deduplicates historical observations and stores key-value entries from completed chunks. Subsequent chunks search only this bank, reducing retrieval overhead during inference. We introduce CodeMemBench to evaluate visual memory in static scenes and dynamic code-driven worlds. Experiments show improved contextual appearance consistency over recent generative renderers.
Figures & tables
| Method | Visual Quality | Visual Alignment | Structure Alignment | |||
|---|---|---|---|---|---|---|
| MUSIQ | DOVER | PSNR | SSIM | PSNR-D | Ctrl. DINO | |
| VACE [ 36 ] | 64.6825 | 0.5330 | 12.2607 | 0.4121 | 20.6625 | 0.6965 |
| DaS [ 20 ] | 55.3964 | 0.4970 | 16.5021 | 0.5440 | 18.8653 | 0.6477 |
| LongVie 2 [ 17 ] | 58.3286 | 0.5441 | 19.9844 | 0.6748 | 20.4677 | 0.7554 |
| VideoFrom3D [ 38 ] | 60.0605 | 0.5839 | 12.5876 | 0.4712 | 19.5908 | 0.6298 |
| C2R [ 19 ] | 65.8548 | 0.5703 | 12.4536 | 0.4511 | 19.9913 | 0.6433 |
| Method / Setting | Visual Quality | Visual Alignment | Structure Alignment | Memory Consistency | |||||
| MUSIQ | DOVER | PSNR | SSIM | PSNR-D | Ctrl. DINO | M.MSE | M.PSNR | M.DINO | |
| (A) Overall comparison (50% static + 50% dynamic) | |||||||||
| VACE [ 36 ] | 61.7319 | 0.4639 | 9.7463 | 0.3602 | 23.3528 | 0.6502 | 0.065072 | 13.7348 | 0.5385 |
| DaS [ 20 ] | 50.0763 | 0.3892 | 11.5544 | 0.4285 | 21.4973 | 0.4622 | 0.076807 | 12.6263 | 0.3730 |
| LongVie 2 [ 17 ] | 60.0026 | 0.4816 | 13.4697 | 0.4801 | 23.0324 | 0.6283 | 0.061780 | 13.8994 | 0.5224 |
| VideoFrom3D [ 38 ] | 60.8394 | 0.5469 | 12.3375 | 0.4788 | 22.6472 | 0.5820 | 0.057683 | 13.9323 | 0.5087 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Stage | Step | Batch | LR (G) | LR (fake) |
| Bidirectional SFT | 19,000 | 32 | – | |
| TF SFT | 18,000 | 32 | – | |
| SGF distillation | 1,500 | 8 | ||
| Memory adaptation | 900 | 8 |
| Benchmark | Frames | All cases | Memory cases |
|---|---|---|---|
| Static scenes | 401 | 27 | 17 |
| Code-driven sequences | 960 | 16 | 12 |
| Method / setting | Visual Quality | Visual Alignment | Structure Alignment | Memory Consistency | |||||
|---|---|---|---|---|---|---|---|---|---|
| MUSIQ | DOVER | PSNR | SSIM | PSNR-D | Ctrl. DINO | M.MSE | M.PSNR | M.DINO | |
| (A) Static-scene comparison (401 frames) | |||||||||
| VACE [ 36 ] | 63.6781 | 0.5140 | 10.9536 | 0.3778 | 19.9865 | 0.6568 | 0.052415 | 14.4524 | 0.5404 |
| DaS [ 20 ] | 48.1659 | 0.4159 | 12.3755 | 0.4472 | 17.6575 | 0.4815 | 0.081190 | 12.0286 | 0.3389 |
| LongVie 2 [ 17 ] | 57.2025 | 0.5305 | 15.0536 | 0.5302 | 19.8551 | 0.6843 | 0.053849 | 14.9465 | 0.5629 |
| VideoFrom3D [ 38 ] | 59.2318 | 0.5825 | 11.7765 | 0.4678 | 18.9153 | 0.5842 | 0.075027 | 13.0487 | 0.5095 |
| Method / setting | Visual Quality | Visual Alignment | Structure Alignment | Memory Consistency | |||||
|---|---|---|---|---|---|---|---|---|---|
| MUSIQ | DOVER | PSNR | SSIM | PSNR-D | Ctrl. DINO | M.MSE | M.PSNR | M.DINO | |
| (A) Static-scene memory access (401 frames) | |||||||||
| Without retrieval | 65.6747 | 0.5676 | 20.3363 | 0.7166 | 20.1524 | 0.7572 | 0.013726 | 21.0322 | 0.6621 |
| Learned router query | 65.5410 | 0.5657 | 20.5055 | 0.7233 | 20.1420 | 0.7564 | 0.012194 | 22.0355 | 0.6724 |
| Sparse-attention | 67.0146 | 0.5739 | 20.4995 | 0.7231 | 20.1340 | 0.7582 | 0.010226 | 22.3716 | 0.6780 |
| Test-time training [ 62 ] | 57.1766 | 0.4939 | 19.5078 | 0.7187 | 20.0779 | 0.7437 | 0.013378 | 20.7141 | 0.6542 |
| Method / setting | Visual Quality | Visual Alignment | Structure Alignment | Memory Consistency | |||||
|---|---|---|---|---|---|---|---|---|---|
| MUSIQ | DOVER | PSNR | SSIM | PSNR-D | Ctrl. DINO | M.MSE | M.PSNR | M.DINO | |
| (A) Static-scene conditioning ablation (401 frames) | |||||||||
| Normal + Instance | 64.4188 | 0.5609 | 17.8991 | 0.6420 | 20.0284 | 0.7279 | 0.024256 | 18.1954 | 0.6372 |
| Normal + Instance + WCM | 63.5735 | 0.5554 | 17.6636 | 0.6372 | 20.0036 | 0.7232 | 0.023967 | 18.1397 | 0.6368 |
| Normal + Instance + CCM | 63.8158 | 0.5679 | 18.0983 | 0.6557 | 19.9894 | 0.7345 | 0.019863 | 18.6951 | 0.6388 |
| Normal + Instance + WCM + CCM | 66.7746 | 0.5781 | 20.8591 | 0.7330 | 20.1345 | 0.7579 | 0.009866 | 23.1477 | 0.6829 |
| Method | Visible in the initial frame | First observed during rollout | ||||
|---|---|---|---|---|---|---|
| M.MSE | M.PSNR | M.DINO | M.MSE | M.PSNR | M.DINO | |
| VACE | 0.055272 | 14.1220 | 0.5674 | 0.054632 | 14.6128 | 0.5612 |
| DaS | 0.085414 | 11.7389 | 0.3254 | 0.072017 | 12.0313 | 0.3814 |
| LongVie 2 | 0.063803 | 14.3475 | 0.5559 | 0.056776 | 14.2830 | 0.5805 |
| VideoFrom3D | 0.077015 | 13.0409 | 0.5291 | 0.054984 | 13.8442 | 0.5197 |
| LTX-2.3 (3DREAL) | 0.041354 | 14.4996 | 0.5186 | 0.035108 | 15.2181 | 0.5062 |
| Method | Resolution | H100 GPUs | Latent / chunk | Throughput (FPS) |
|---|---|---|---|---|
| EdenLive 5B | 1 | 3 | 56.45 | |
| EdenLive 5B | 1 | 3 | 23.42 | |
| EdenLive 14B | 8 | 3 | 16.03 | |
| AgentGarten | 1 | 4 | 31.03 | |
| SolarRenderer | 8 | 5 | 1.34 | |
| StreamCWM | 5 | 1.95 |
Memory-Augmented Video Generation
Memory-augmented video generation gives video models persistent context to preserve identities, scenes, and events across long sequences.
See all 139 papers