reinforcement-learning llm-agent long-video-generation real-time-video attention-sink agentic-memory asynchronous-processing identity-consistency
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.
한국어 요약
한 줄 요약
Agentic LongLive는 실시간 장시간 동영상 생성 시 인물, 객체, 장면 일관성을 유지하는 비동기적 에이전트 메모리 시스템이다.
핵심 기여도
- 비동기적 에이전트 메모리 시스템을 제안하여, LLM 에이전트가 텍스트와 이미지 메모리를 관리하는 최초의 실시간 동영상 생성기를 구현.
- 개방형 루프 2단계 메모리 구조를 도입, 글로벌 이미지 **G**와 샷 메모리 **M**을 생성하여 주 생성기의 어텐션 싱크에 전달.
- 강화학습 기반 **RL 레시피**로, 8B 크기의 작은 언어 모델이 어떤 엔티티를 기억할지 결정.
- **LongStory-Online** 벤치마크(25개 스토리, 857개 샷)에서 LongLive-2.0 기반 생성기의 일관성 성능을 26.3~44.9 포인트 개선.
핵심 아이디어
기존 실시간 생성기는 어텐션 캐시에 기반한 메모리로 인해 오래된 정보를 잊거나 오류가 누적되는 문제가 있었다. Agentic LongLive는 별도 GPU에서 작동하는 **메모리 에이전트**를 도입하여, 향후 프롬프트가 도착하기 전에 이미지를 생성하고, 이를 **어텐션 싱크**에 미리 전달함으로써 생성 지연을 숨긴다. 이는 실시간 생성의 4가지 제약(C1~C4)을 모두 만족하는 구조다.
핵심 통찰은, 생성기와 메모리 에이전트를 **비동기적으로 분리**하고, 메모리 에이전트가 생성된 동영상 자체를 보지 않도록 설계함으로써, 오류가 다시 메모리에 반영되지 않도록 하는 것이다. 이는 **오픈-루프 메모리 시스템**으로, 엔티티별 텍스트 상태와 이미지를 저장하고, 이를 **글로벌 이미지 G**와 **샷 메모리 M**으로 합성한다.
기술적 접근법
- **메모리 에이전트**: 별도 GPU에서 작동하며, 이미 풀린 프롬프트만 읽고, 생성된 동영상은 보지 않음.
- **글로벌 이미지 G**와 **샷 메모리 M**을 생성하여, 보조 GPU가 생성기의 어텐션 싱크에 미리 전달.
- **엔티티 카드**: 프롬프트에 명시된 엔티티에 대한 텍스트 정보를 추가.
- **강화학습 기반 RL 레시피**: 8B 크기의 언어 모델을 훈련하여, 다음 프롬프트가 도착하기 전에 어떤 엔티티를 기억할지 결정.
- **하드웨어**: B200 GPU 8개 노드에서 BF16으로 34.3 FPS 속도로 실시간 스트리밍.
주요 결과
- **LongStory-Online** 벤치마크에서 LongLive-2.0 기반 생성기의 일관성 성능을 26.3 포인트(지속 상태), 44.9 포인트(주인공 ID), 40.4 포인트(재방문 장소 일관성) 개선.
- H100에서 약 1% 추가 생성 시간 소요.
- B200 노드에서 BF16으로 34.3 FPS 속도로 실시간 스트리밍.
- 14분 길이의 스토리에서도 이미지 품질이 안정.
- MiniMax-H3 생성기 2개에서 ID 일관성 개선, 그중 LongLive-H3는 실시간 동작.
의의 및 한계
Agentic LongLive는 실시간 동영상 생성에서 텍스트와 이미지 메모리를 LLM 에이전트가 관리하는 최초의 시스템으로, 장시간 스토리의 일관성을 유지하는 데 기여한다. 특히, 생성 지연 없이 메모리를 미리 준비하고, 오류가 다시 메모리에 반영되지 않도록 설계한 점이 혁신적이다.
하지만, 현재는 **LongStory-Online** 벤치마크에서만 평가되었으며, 다른 장시간 생성 시나리오에서의 일반화 가능성은 명시되지 않음. 또한, 메모리 에이전트의 작동이 별도 GPU에 의존하므로, 하드웨어 자원이 제한된 환경에서는 한계가 있을 수 있다.
실용적 활용
Agentic LongLive는 실시간 동영상 스트리밍, 인터랙티브 게임, 세계 모델(World Models) 등에서 활용 가능하다. 특히, 사용자 입력에 따라 동적으로 스토리가 생성되는 시스템에서 인물과 장면의 일관성을 유지하는 데 유용하며, 대규모 생성 모델과 병행하여 사용할 수 있는 경량 에이전트 구조가 실용적이다.