Eidetic Code World Model

Wenqing Tian, Zijian Zhang, Qiang Liu, Liang WangarXiv 2026

Imagine playing an open-world video game where every time you turn your back on a building and look back, the windows have moved, the graffiti has changed, and the flowerpots have vanished. This "hallucination amnesia" is a major headache for current AI world models. While they are getting better at understanding the structure of a world, they are notoriously bad at remembering the specific details they just finished rendering.

The paper "Eidetic Code World Model" introduces Paintress, a system designed to give AI models a photographic (eidetic) memory. By combining executable 3D code with a persistent "visual diary" made of 3D Gaussians, Paintress ensures that when you return to a location, it looks exactly as you left it.

TL;DR

Paintress solves the problem of "visual drift" in AI-generated worlds by coupling a 3D structural skeleton (code) with a persistent 3D Gaussian memory that stores every pixel the model creates. It introduces a "read/write" separation that allows the model to update its memory without confusing itself, achieving over 5x better detail retention than previous state-of-the-art models.

What Problem Does This Paper Address?

Generative video models are great at making things look "realistic" frame-by-frame, but they struggle with generated-appearance retention.

Current "code-conditioned" models use a 3D "blockout" (a simple, low-poly version of the world) to keep the layout consistent. However, the texture and fine details—the specific pattern on a rug or the color of a banner—are often re-imagined every time the camera moves. If these details aren't in the initial starting image, the model essentially "forgets" its own creative choices once they leave the screen.

As shown in Figure 1D, existing models like CWM might change a monument's banner or move flowerpots upon a revisit, whereas Paintress keeps them locked in place.

Figure 1. Paintress: A world that remembers. (Top & B) Paintress couples an executable 3D blockout proxy with a persistent 3D Gaussian memory that grows during exploration. (A & C) Expedition-33 evaluates whether models recover self-generated appearance at matched poses (Return A) after 15, 30, or 60 s of target absence. (D) In Lumi`ere (15 s absence), CWM alters the monument banner and flowerpots upon revisit, whereas Paintress preserves its first-visit realization. (E) Across ten systems, Paintress ranks first overall across all five capability groups (Eq. 3).

Methods

Paintress uses a Dual-World Architecture to bridge the gap between structural logic and visual memory.

  1. The Executable Proxy (The Skeleton): This is the "code" part. It’s a 3D whitebox model that defines where walls, floors, and objects are. It enforces the "physics" of the scene.
  2. 3D Gaussian Memory (The Skin): Instead of just remembering 2D images, Paintress reconstructs its generated frames into a 3D cloud of "Gaussians" (essentially 3D paint splats). These are anchored to the 3D proxy but can capture details the proxy misses, like the fluffiness of a tree or the intricate texture of a stone wall.
  3. Read/Write Separation: This is the secret sauce. Paintress maintains a "raw" map where it constantly fuses new observations (writing). When it needs to generate a new frame, it clones this map into a "reader copy" and refines it globally (reading). This prevents the "jitter" and "seams" that occur when you try to update and render a 3D map at the same time.
Overview of the Paintress Dual-World Architecture showing the interaction between the 3D proxy and Gaussian memory.

Datasets

The authors introduced a rigorous new benchmark called Expedition-33.

  • The Setup: 11 static scenes across 5 different route families.
  • The Test: The model explores a scene, synthesizes a "target" area not seen in the first frame, leaves for 15, 30, or 60 seconds, and then returns.
  • The Metric: How much of the originally generated detail does the model remember?
  • Scale: A massive 1,650-video comparison across ten different AI systems.

Key Insights and Ideas

  • Decoupling is Key: The researchers found that strictly binding pixels to the low-poly proxy surfaces was a mistake. By letting the 3D Gaussians "float" slightly independently of the proxy, the model can represent complex geometry (like foliage) that the simple blockout code can't describe.
  • Confidence-Gated Fusion: Not all generated pixels are equal. Paintress uses a confidence-gated system to decide which parts of a new frame are "reliable" enough to be written into the permanent 3D memory.
  • Memory as a Condition: Instead of just looking at the last few frames, the video generator is "conditioned" on a render of its own 3D memory. It’s like the AI is looking at a polaroid of what it did five minutes ago to make sure it doesn't contradict itself.

Key Results

Paintress dominated the competition, ranking first across all five evaluation categories (Initial Detail, Detail Success, ROI Fidelity, Revisit Quality, and Revisit Consistency).

  • Detail Retention: Paintress kept 52.12% of target details upon return, while the next best baseline (AgentGarten) only managed 11.52%.
  • Perceptual Accuracy: It reduced ROI-LPIPS (a measure of perceptual error) by 55.3% compared to the previous leader, CWM.
  • Long-Term Stability: Even after a 60-second absence—an eternity for most video models—Paintress maintained a lower error rate (0.1630) than most models could manage after only 15 seconds.
Performance graphs showing Paintress maintaining high target existence and retention over time compared to baselines.

Limitations and Future Work

While Paintress is a memory champion, it isn't fast. The "offline" pipeline—which involves 3D reconstruction, Gaussian fitting, and global refinement—is computationally expensive. A full cycle can take several minutes, making it unsuitable for real-time applications like interactive gaming... for now.

The authors also noted that while the structure stays perfect, "fine-detail drift" still exists. Over very long periods (60s+), colors might shift slightly or textures might soften. Future work will likely focus on speeding up the 3D fusion process and finding ways to lock in those micro-details even more tightly.

Summary updated

Abstract

Executable code can preserve a world's structural layout, yet video renderers frequently alter the appearance of previously visited places once they leave the camera view. We present Paintress, a code-conditioned world model that couples an executable geometric proxy with an independently parameterized 3D Gaussian appearance memory in a shared metric coordinate frame. While the proxy enforces structural and visibility constraints, 3D Gaussians capture the visual realization synthesized by emitted observations. To balance stable incremental fusion with consistent readout, Paintress separates writing from reading: newly emitted frames update a persistent raw Gaussian map under confidence-gated selection, whereas a cloned reader copy is globally refined against the observation archive and rendered with coverage masks to condition generation. We also introduce Expedition-33, a benchmark for generated-appearance retention across 11 static scenes, five route families, and 15, 30, and 60 s target absences (165 settings per system). Excluded from the opening image, targets are synthesized during a shared prefix and scored against each system's own first visit at matched return cameras. Across ten systems (1,650 videos), Paintress achieves 0.1220 ROI-LPIPS, 0.0613 MAE, and 52.12% detail retention (vs. 0.2731, 0.1401, and 10.91% for CWM), with lower discrepancy at 60 s (0.1630) than CWM, AgentGarten, and Lyra 2.0 achieve at 15 s.
BibTeX
@misc{tian2026eidetic,
  author = {Wenqing Tian and Zijian Zhang and Qiang Liu and Liang Wang},
  title = {{Eidetic Code World Model}},
  year = {2026},
  eprint = {2611.28878},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28878},
}
Figure