MemoRenderer: Code-Driven World Rendering with Geometry-Aligned Memory

MemoRenderer (`arXiv:2611.37359`) is a streaming generative world renderer that resolves long-horizon appearance drift when cameras revisit scenes or objects move. Conditioning on engine normal and instance maps while retrieving historical patches via World Coordinate Maps (WCMs) and Canonical Coordinate Maps (CCMs) from a deduplicated instance memory bank, MemoRenderer beats EdenLive-14B and AgentGarten on CodeMemBench.
MemoRenderer: Code-Driven World Rendering with Geometry-Aligned Memory: MemoRenderer (`arXiv:2611.37359`) is a streaming generative world renderer that resolves long-horizon appearance drift when cameras revisit scenes or objects move. Conditioning on engine normal and instance maps while retrieving historical patches via World Coordinate Maps (WCMs) and Canonical Coordinate Maps (CCMs) from a deduplicated instance memory bank, MemoRenderer beats EdenLive-14B and AgentGarten on CodeMemBench. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.
- Exact Surface Correspondence Retrieval: Uses engine-provided World Coordinate Maps (WCMs) for static backgrounds and instance-level Canonical Coordinate Maps (CCMs) for moving objects.
- Constant-Overhead Deduplicated Memory Bank: Compresses completed chunks into persistent instance-keyed KV entries so inference retrieval scales cleanly across long trajectories.
- SOTA CodeMemBench Consistency: Reaches `0.009954` M.MSE, `22.7539` M.PSNR, and `0.6588` M.DINO across mixed static/dynamic revisits, cutting memory error by ~55% vs AgentGarten.
- SGF Distillation for Streaming Latency: Pairs supervised conditioning with distribution-matching distillation (`L_DMD + lambda * L_LPIPS`) for real-time chunked synthesis.
import { createAgent } from '@smoke-monkey/harness';const worldAgent = createAgent({agentId: 'memorenderer-scene-controller',provider: 'custom',baseUrl: 'http://127.0.0.1:8000/v1',model: 'qwen3.8:27b',workspacePath: process.cwd(),permissions: {read_file: 'allow',write_file: 'allow',run_command: 'ask',},mcpServers: {worldRenderer: {command: 'npx',args: ['-y', '@smoke-monkey/mcp-world-render', '--memory-mode', 'wcm-ccm-bank'],},},});async function renderRevisitTrajectory() {const result = await worldAgent.run('Update entity transform in the game engine, export Normal/WCM/CCM buffers, and stream MemoRenderer chunk 12 against the persistent KV memory bank.');console.log('MemoRenderer Output:', result.summary);}renderRevisitTrajectory().catch(console.error);
Watch: Related Video Guides
3D Terrain Rendering Explained: How do Geometry Clipmaps Actually Work?
I Built a Custom GPU-Driven Rendering Pipeline (10x Faster)
What Is MemoRenderer? Geometry-Aligned Patch Memory
MemoRenderer (arXiv:2611.37359) solves the fundamental failure mode of streaming code-driven world renderers: even when a coding agent and physics engine maintain exact 3D state, neural video renderers forget shadows, textures, and fine details once a region leaves the short temporal sliding window. Instead of relying on learnable attention memory alone, MemoRenderer aligns visual memory explicitly to 3D surface geometry.
At each streaming chunk, the underlying engine emits normal maps and instance segmentation masks alongside World Coordinate Maps (WCMs) and instance-level Canonical Coordinate Maps (CCMs). Code-driven retrieval matches current surface coordinates against a deduplicated, persistent instance memory bank, injecting only relevant historical KV patches into the generator context.
MemoRenderer Benchmarks on CodeMemBench (Static & Dynamic)
Evaluated on CodeMemBench across 50% static scenes and 50% dynamic code-driven worlds, MemoRenderer outperforms VACE, LTX-2.3, SolarRenderer, AgentGarten, and EdenLive-14B across visual quality, structural alignment, and revisit memory fidelity.
| Model / Baseline | MUSIQ ↑ | DOVER ↑ | PSNR ↑ | SSIM ↑ | Ctrl. DINO ↑ | M.MSE ↓ | M.PSNR ↑ | M.DINO ↑ |
|---|---|---|---|---|---|---|---|---|
VACE | 61.73 | 0.4639 | 9.75 | 0.3602 | 0.5385 | 0.06507 | 13.73 | 0.5385 |
LTX-2.3 (3DREAL) | 54.76 | 0.4294 | 14.90 | 0.5468 | 0.4792 | 0.04530 | 13.96 | 0.4792 |
SolarRenderer | 62.39 | 0.4583 | 14.38 | 0.5580 | 0.5674 | 0.05173 | 13.80 | 0.5674 |
AgentGarten | 66.66 | 0.4911 | 15.88 | 0.5648 | 0.6097 | 0.02199 | 18.10 | 0.6097 |
EdenLive-14B | 64.33 | 0.4999 | 17.47 | 0.6072 | 0.5913 | 0.02892 | 17.13 | 0.5913 |
| MemoRenderer | 67.97 | 0.5363 | 19.01 | 0.6987 | 0.7492 | 0.00995 | 22.75 | 0.6588 |
Ablating the geometric conditioning confirms that adding WCM and CCM maps on top of Normal + Instance maps drops M.MSE from 0.039409 down to 0.009954 while boosting M.PSNR by +6.27 dB.
Why Deduplicated Instance KV Banks Matter
Storing raw frames causes O(T) retrieval bloat on long sessions. MemoRenderer deduplicates surface addresses inside an instance-indexed bank so subsequent chunks query only unique spatial observations.
Inspecting MemoRenderer Conditioning Buffers & Benchmark Specs
Download the arXiv:2611.37359 technical report and inspect the required conditioning tensor channel schema (Normal + Instance + WCM + CCM) for engine integration.
# Fetch MemoRenderer technical paper (18 pages + CodeMemBench appendix)
curl -sL https://arxiv.org/pdf/2611.37359 -o memorenderer-2611.37359.pdf
# Inspect geometric buffer contract for each streaming world chunk
cat <<'EOF' > chunk_conditioning_manifest.json
{"buffers": ["normal_map", "instance_id", "world_coord_map", "canonical_coord_map"], "memory_bank": "instance_kv_dedup"}
EOFIntegrating MemoRenderer with Smoke Monkey Coding Agents
In Smoke Monkey Harness, code-driven world agents mutate simulation state in Python or Three.js while offloading photorealistic camera synthesis to MemoRenderer. Because appearance state is anchored to canonical object coordinates, agents can pan away, modify distant rooms, and return without texture hallucination.
Frequently Asked Questions
Q:What problem does MemoRenderer solve compared to standard streaming video models?
Standard streaming video models forget previously seen geometry and lighting once frames scroll out of their temporal context window. MemoRenderer retrieves past visual patches via 3D surface correspondences when cameras revisit areas or objects move.
Q:What are WCMs and CCMs in MemoRenderer?
World Coordinate Maps (WCMs) encode global 3D surface positions for static scene geometry, while instance-level Canonical Coordinate Maps (CCMs) track local object surface coordinates as dynamic objects translate or rotate.
Q:How well does MemoRenderer score on CodeMemBench?
MemoRenderer achieves `67.9704` MUSIQ, `19.0117` PSNR, `0.009954` M.MSE, and `22.7539` M.PSNR, outperforming EdenLive-14B (`17.1301` M.PSNR) and AgentGarten (`18.0980` M.PSNR).
Q:How does MemoRenderer avoid unbounded inference latency over long sequences?
Completed chunks write deduplicated surface key-value entries into a persistent instance-based memory bank, bounding retrieval search size instead of scanning every historical frame.
Related Alternatives & Comparisons
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.