ENGRAM / README.md
Mousky's picture
Link the arXiv paper and GitHub release and update BibTeX
b55ddc7 verified
|
Raw History Blame Contribute Delete
6.57 kB
---
language:
- en
pipeline_tag: image-to-video
base_model: Wan-AI/Wan2.2-TI2V-5B-Diffusers
tags:
- video-generation
- image-to-video
- camera-control
- world-model
- spatial-memory
---
<div align="center">
<h1>ENGRAM: Reliability-Weighted Latent Fusion and<br>Occlusion-Aware Layered Readout for Video World Models</h1>
<p>
Chenhao Wu<sup>1,*</sup>&nbsp;&nbsp;
Zhaolong Su<sup>2,*</sup>&nbsp;&nbsp;
Yang Liu<sup>3,*</sup>&nbsp;&nbsp;
Tianrui Su<sup>4</sup><br>
Yingguang Yang<sup>3</sup>&nbsp;&nbsp;
Shang Luo<sup>3</sup>&nbsp;&nbsp;
Yancheng Chen<sup>1</sup>&nbsp;&nbsp;
Chongyang Zhang<sup>5</sup><br>
Hao Zheng<sup>5</sup>&nbsp;&nbsp;
Kefu Xu<sup>3</sup>&nbsp;&nbsp;
Congjing Ran<sup>6</sup>&nbsp;&nbsp;
Bin Chong<sup>3,†</sup>
</p>
<p>
<sup>1</sup>University of the Chinese Academy of Sciences&nbsp;&nbsp;
<sup>2</sup>Jilin University&nbsp;&nbsp;
<sup>3</sup>Peking University<br>
<sup>4</sup>University of New South Wales&nbsp;&nbsp;
<sup>5</sup>Fullive-AI&nbsp;&nbsp;
<sup>6</sup>Wuhan University<br>
<small><sup>*</sup>Equal contribution.&nbsp;&nbsp;<sup>†</sup>Corresponding author.</small>
</p>
<p>
<a href="https://arxiv.org/abs/2611.28136"><img src="https://img.shields.io/badge/arXiv-2611.28136-B31B1B?style=flat&amp;logo=arxiv&amp;logoColor=white" alt="arXiv paper"></a>
&nbsp;
<a href="https://github.com/wchkoutian/Engram-release"><img src="https://img.shields.io/badge/GitHub-Code-181717?style=flat&amp;logo=github&amp;logoColor=white" alt="GitHub code"></a>
&nbsp;
<a href="https://huggingface.co/Mousky/ENGRAM/tree/main"><img src="https://img.shields.io/badge/Hugging%20Face-Weights-FFB300?style=flat&logo=huggingface&logoColor=white" alt="Hugging Face weights"></a>
&nbsp;
<a href="#citation"><img src="https://img.shields.io/badge/BibTeX-Citation-4F46E5?style=flat" alt="BibTeX citation"></a>
</p>
</div>
## Abstract
Camera-conditioned video world models aim to generate 3D-consistent videos from a single image along specified camera trajectories. However, set-union updates in latent spatial memory leave repeated observations unconsolidated, while frontmost-only readout limits simultaneous access to stored evidence at different depths.
To address these limitations, we present ENGRAM, a latent spatial memory framework combining *reliability-weighted latent fusion* and *occlusion-aware layered readout*. Specifically, recursive fusion integrates geometrically and visually compatible observations in a channel-normalized latent space, consolidating repeated evidence into a shared scene representation. Layered readout exposes multiple depth-ordered latent candidates with their reliability and availability at each target cell. This gives the generator access to information from multiple surfaces as visibility changes. Explicit camera rays provide viewpoint information independently of memory coverage, while geometric consistency constraints guide memory updates.
Memory retrieval uses a single projection at latent resolution, avoiding intermediate RGB rendering and VAE re-encoding. We adapt a pretrained video generator using only 256 training scenes. On 100 RealEstate10K test scenes, ENGRAM improves novel-view-synthesis and closed-loop PSNRs over Spatia by 0.82 and 4.48 dB, respectively. On a 200-case WorldScore evaluation subset, it achieves an average score of 67.78, exceeding Spatia by 3.31 points.
<div align="center">
<img src="./teaser.png" width="100%" alt="ENGRAM framework, closed-loop revisits, and camera-controlled generation across diverse scenes">
</div>
*ENGRAM maintains persistent latent spatial memory for camera-controlled exploration and revisits.*
## Checkpoints
This repository provides both adaptation-stage checkpoints and the supporting inference assets.
| File | Contents | Size |
| --- | --- | --- |
| [`stage1_step_4000.pt`](./stage1_step_4000.pt) | Stage-1 memory-conditioning side branch | 5.58 GB |
| [`stage2_step_8000.pt`](./stage2_step_8000.pt) | Final adapted transformer and frozen memory-conditioning side branch | 12.81 GB |
| [`wan_latent_stats.pt`](./wan_latent_stats.pt) | Latent channel statistics for memory fusion | |
| [`empty-text-bundle.pt`](./empty-text-bundle.pt) | Empty-text conditioning embedding | |
| [`training/manifest.json`](./training/manifest.json) | Training manifest associated with the checkpoints | |
| [`assets.example.json`](./assets.example.json) | Asset-path configuration | |
| [`SHA256SUMS`](./SHA256SUMS) | SHA256 checksums | |
Adaptation uses **256 training scenes** and **2,304 windows**. Stage 1 trains the side branch for 4,000 updates. Stage 2 freezes the side branch and adapts the full video transformer for 8,000 updates.
## Download and use
Authenticate with an account that has access to the repository, then download the files:
```bash
pip install -U huggingface_hub
hf auth login
hf download Mousky/ENGRAM --local-dir checkpoints/ENGRAM
```
Run inference from the ENGRAM source release using `run.py`. Obtain the upstream [Wan2.2-TI2V-5B Diffusers model](https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers), [MapAnything](https://github.com/facebookresearch/map-anything), and the required Torch cache. Copy `assets.example.json` to `assets.local.json` in the downloaded directory and set the external model and evaluation-data paths.
```bash
python run.py check-assets \
--assets checkpoints/ENGRAM/assets.local.json \
--for-action infer-re10k
```
Keep both checkpoints and `training/manifest.json` in place for the current release loader. Paths in the asset configuration resolve relative to that JSON file. The evaluation recipe uses 33-frame chunks, a 32-frame stride, 40 sampling steps, and CFG 1. Follow the source release README for data preparation and the RealEstate10K and WorldScore inference commands.
## License
ENGRAM source code uses the [MIT License](./LICENSE-CODE). The checkpoints adapt Wan2.2; its upstream [Apache-2.0 license](./LICENSE-Wan2.2.txt) continues to apply. Upstream models and datasets are obtained separately from their providers.
## Citation
```bibtex
@misc{wu2026engram,
title = {{ENGRAM}: Reliability-Weighted Latent Fusion and Occlusion-Aware Layered Readout for Video World Models},
author = {Chenhao Wu and Zhaolong Su and Yang Liu and Tianrui Su and Yingguang Yang and Shang Luo and Yancheng Chen and Chongyang Zhang and Hao Zheng and Kefu Xu and Congjing Ran and Bin Chong},
year = {2026},
eprint = {2611.28136},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.28136}
}
```