All publications

Preprint 2026

CodecMem: Fast and Adaptive Visual Memory for Video and World Models

Liyuan Zhu, Chao Liu, Julius Berner, Tao Sun, Ying Shen, Shengyu Huang, Tianye Li, Amrita Mazumdar, Rafał Karp, Enting Liu, Haithem Turki, Gordon Wetzstein, Iro Armeni, Shalini De Mello, Alex Trevithick

arXiv:2612.04174

CodecMem overview: a tubelet codec selects patches of the history context where warping the previous reconstruction fails, and an autoregressive video model reads the resulting codec memory to generate future video or actions.
The codec stores tubelets only where warping its previous reconstruction fails, and an autoregressive video model reads this codec memory in place of every past frame.

Abstract

We present CodecMem, a fast (100+ fps) and adaptive codec for long-context video and world models. We introduce the first motion-compensated tubelet codec designed for generative video models: to encode an observation, it warps its own reconstruction of the previous frame with estimated flow and stores additional multi-scale tubelets only where this warping fails. We condition video models on this codec memory, which spans the whole history, in place of dense attention over every token of every past frame. On our benchmark that jointly tests retrieval, tracking, and spatial memory with up to 60 s of context, CodecMem ranks first among 12 compressed-memory baselines with 18× fewer inference FLOPs than dense attention, surpassing it on tracking beyond the training length. It also learns the best long-context policy among world action models (WAMs) on RoboMME, enables in-context learning over multiple trials, and preserves subject consistency better than dense attention in long video generation at lower cost.

BibTeX

@article{zhu2026codecmem,
  title={Fast and Adaptive Visual Memory for Video and World Models},
  author={Zhu, Liyuan and Liu, Chao and Berner, Julius and Sun, Tao and Shen, Ying and Huang, Shengyu and Li, Tianye and Mazumdar, Amrita and Karp, Rafa{\l} and Liu, Enting and Turki, Haithem and Wetzstein, Gordon and Armeni, Iro and De Mello, Shalini and Trevithick, Alex},
  journal={arXiv preprint arXiv:2612.04174},
  year={2026},
  doi={10.48550/arXiv.2612.04174},
  url={https://arxiv.org/abs/2612.04174}
}