Agentic memory improves consistency in long real-time video generation
Agentic LongLive: Asynchronous Agentic Memory for Long Video Generation
Computer Vision and Pattern Recognition
Summary
Generating long videos in real time can cause problems like people or places changing unexpectedly. The authors created Agentic LongLive, a system that remembers key parts of the story—like characters and scenes—using a specialized memory that updates as the video is made. It runs alongside the video generator on different GPUs and helps keep details consistent without slowing down the video. Tests show it improves how well the video keeps characters and places the same, while running almost as fast as usual. This is the first real-time video system that uses both text and image memories managed by a small language model for better storytelling.
What this means in practice
- •For video game developers: Maintain consistent characters and environments in long interactive game scenes streamed live.
- •For film and animation studios: Generate multi-shot story sequences that keep visual continuity without regenerating failed parts.
Authors
Shaoteng Liu, Shuai Yang, Wei Huang, Luozhou Wang, Song Han, Yukang Chen
Abstract
Real-time autoregressive video generators stream minutes of video and accept new prompts on the fly, but struggle to keep people, objects, and places consistent over a long interactive story. Agent systems provide such memory for offline multi-shot generation, yet they read the whole script in advance, plan each shot before generating it, and regenerate failed shots, which a live stream does not allow. We present Agentic LongLive, an asynchronous agentic memory for long video generation. A memory agent on separate GPUs reads only the prompts revealed so far, never the generated video, and keeps a text state and evolving images for every person, object, and scene. From this entity memory it composes a global image and a per-shot memory image, which an auxiliary GPU prefills into the generator's attention sink before the next shot starts, and writes entity cards for the prompts that name them, so the video never waits for memory and video errors are not written back. A small language model, trained with reinforcement learning and an image reward calibrated using downstream video outcomes, decides what to remember before the next prompt is known. On LongStory-Online, a new benchmark of 25 stories (857 shots) revealed one shot at a time, Agentic LongLive improves persistent-state accuracy of LongLive-2.0, its base generator, by 26.3 points, protagonist identity by 44.9, and revisited-place consistency by 40.4, at about 1% extra generation time on H100. The full system streams faster than real time on one 8xB200 node with the generator in BF16 (34.3 FPS), keeps image quality stable over 14-minute stories, and improves identity on two MiniMax-H3 generators, one of which, LongLive-H3, also runs in real time with it. To our knowledge, it is the first real-time video generator with text and image memory kept by an LLM agent.