CodecMem:让视频与世界模型以 100+ fps 速度处理长上下文记忆
Fast and Adaptive Visual Memory for Video and World Models
给视频生成和世界模型开发者提了个新思路:别再对全部历史帧做稠密注意力,用光流 warp 加选择性 tubelet 存储做记忆压缩,FLOPs 降到 1/18 还能在 60 秒上下文上跑赢 12 个基线。做长视频生成、机器人策略或长上下文记忆的团队值得照着论文复现一下。
研究人员发布 CodecMem,一个面向长上下文视频与世界模型的快速自适应编解码器,推理速度超过 100 fps,相比稠密注意力减少 18 倍推理 FLOPs。这是首个专为生成式视频模型设计的运动补偿 tubelet 编解码器:编码新观测时,它先用估计的光流对上一帧的自身重建结果做 warp,只在这个 warp 失效的区域存储额外的多尺度 tubelets。
视频模型用这种跨越全部历史的编解码记忆替代对每一帧每个 token 的稠密注意力。在同时测试检索、跟踪与空间记忆、上下文长度达 60 秒的自建基准上,CodecMem 在 12 个压缩记忆基线中排名第一,且在超过训练长度的跟踪任务上仍优于稠密注意力。
此外,它在 RoboMME 上学到了世界动作模型(WAM)中最优的长上下文策略,支持跨多次试验的 in-context learning,并在长视频生成中以更低成本保持比稠密注意力更好的主体一致性。
Fast and Adaptive Visual Memory for Video and World Models
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$\times$ 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.
This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include CodecMem, world models, video generation, long context.
Source attribution: curated from arXiv cs.AI (@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).