TL;DR
Imagine exploring a virtual room in an AI-generated video, painting the walls blue, walking out, and returning to find the walls have reverted to beige—or worse, the room's layout has melted. PermaVid solves this "object permanence" crisis for video generation by splitting its memory in two: one bank for how things look (RGB) and another for how things are shaped (depth). This allows AI video models to cleanly overwrite outdated visuals after an edit without accidentally throwing away the underlying 3D geometry of the world.
What Problem Does This Paper Address?
Generating short, pretty video clips is becoming routine; generating persistent, interactive worlds is much harder. When you move a camera around a generated scene and revisit a spot you saw 30 seconds ago, the scene needs to still be there.
Recent video models tackle this by adding "memory"—storing past frames or latent features indexed by camera pose so the model can look up what a corner of the room looked like last time. However, these memories assume a static world. What happens if you edit the video mid-stream—say, turning daytime into night (a global edit) or swapping a tabby cat for a British Shorthair (a local edit)?
Because existing methods store appearance and 3D structure tangled together in a single representation, an edit creates a dilemma. If the model retrieves old memories, the scene hallucinates back to its pre-edit state (the tabby cat returns!). If you wipe the memory to force the new edit to stick, the model forgets the room's layout entirely.
Methods
The authors build PermaVid on top of a standard Diffusion Transformer (specifically, the Wan2.1-14B architecture paired with a frozen VACE context branch and a 3D VAE). What is novel is how they store, update, and feed historical context into this generator:
- Disentangled Context Memory: Instead of one unified memory bank, PermaVid maintains two: an RGB memory (recording appearance, camera pose, timestamp, and a "semantic version" counter) and a depth memory (recording pure 3D geometry via an off-the-shelf depth predictor, pose, and timestamp).
- Edit-Aware Updating: When a global edit occurs (e.g., changing the art style), PermaVid increments the global semantic version counter, instantly invalidating all old RGB memories while leaving the depth memory completely intact. When a local edit occurs, it calculates the 3D view footprint of the edited region and surgically deletes only the overlapping RGB memories (and depth memories, only if the object's 3D shape changed).
- Mixed-Modality Retrieval & Fusion: To generate the next chunk of video along a target camera path, the model calculates view-frustum overlap to greedily select up to 10 diverse, non-redundant memory frames. Crucially, this reference set can be asymmetric—mixing valid post-edit RGB frames with pre-edit depth frames—which are fused into the Diffusion Transformer using relative positional encodings.
Datasets
- SpatialVid: An existing public short-video dataset with camera pose annotations, used in Stage 1 of training to teach the base model how to follow camera trajectories.
- UE-Mem (New): Existing datasets mostly feature cameras moving in one direction, rarely looping back to test long-term memory. The authors built an automated pipeline in Unreal Engine 5 using a 4-DoF navigation agent that intentionally wanders and loops back on itself. This yielded UE-Mem: 4,000 videos (1,000 frames each) across 100 3D scenes with ground-truth RGB, depth, 6-DoF camera poses, and Qwen3-VL-7B text captions.
- Evaluation Benchmark (New): A test set of 200 diverse indoor/outdoor and realistic/stylized images paired with complex looping camera scripts and streaming edits (applied via Qwen-Image).
Key Insights and Ideas
- Appearance is volatile; geometry is stubborn: The core "aha" moment of the paper is recognizing that spatial information ages at different rates. Lighting, style, and textures change globally in an instant, while walls and furniture mostly stay put. Decoupling them turns memory invalidation from a murky neural problem into clean, rule-based bookkeeping.
- Training for asymmetry: Because a post-edit retrieval might return depth-only views for areas you haven't looked at since the style change, the generator can't rely on always having RGB references. Training the model on a deliberate mix of 40% pure RGB, 40% pure depth, and 20% mixed-modality contexts forces it to seamlessly "paint" new semantics onto old depth skeletons.
- Memory is practically free at runtime: Profiling shows that diffusion generation dominates nearly 100% of inference time. Even after 1,400+ frames of accumulated history, memory retrieval takes only a few hundred milliseconds.
Key Results
PermaVid was tested against state-of-the-art memory and world-generation baselines (HY-Worldplay, HY-Gamecraft, Matrix-Game-2.0, and VMem):
- Global Edits: PermaVid achieved the best structural consistency on revisited depth frames (22.84 PSNR / 0.8703 SSIM) and the highest semantic consistency (27.87 CLIP-Vid). In contrast,
HY-Worldplaykept good geometry (22.34 PSNR) but failed to propagate the edit (19.96 CLIP-Vid), reverting to old styles when turning around. - Local Edits: When revisiting locally edited objects (like replacing a statue with a lion), PermaVid led across the board in view recall consistency (22.332 PSNR, 0.8622 SSIM, 0.2369 LPIPS) and overall visual quality (0.8544 VBench-Avg), avoiding the pre-edit reversions or blurry ghosts seen in baselines.
Limitations and Future Work
Not discussed in the paper. (Note: The provided manuscript concludes after the experimental overhead analysis without an explicit limitations or future work section.)
Summary updated