EvoMA:Evolving Entity Memory Agent
for Consistent Long Video Generation

1The Hong Kong University of Science and Technology2MetaX

* Equal contribution.

† Corresponding authors.

Abstract

Consistent long video generation requires preserving entity identity while tracking evolving states. Existing planning-based methods typically predefine entity-state trajectories and visual references, which can diverge from the actual content of generated clips and continuing user inputs. We introduce EvoMA, an Evolving Entity Memory Agent that treats memory management as an online decision-making process. EvoMA maintains a structured memory that separates persistent identities from evolving states and records state histories for characters, scenes, and objects using textual descriptions and visual references. A vision-language agent updates and queries this memory through an observe–think–act–verify loop, dynamically performing add, update, noop, and retrieve operations based on newly generated clips. Memory changes are verified against visual evidence before being committed, while retrieved entity-state references guide subsequent generation. We further train the memory agent with reinforcement learning to improve both memory updates and state retrieval. Experiments show that EvoMA improves identity consistency and state alignment in long and interactive video generation.

Method Overview

EvoMA method overview. The inference loop observes clips, verifies entity-state memory updates, and retrieves historical states for subsequent generation. The training pipeline sequentially optimizes the memory writer and retriever with GRPO.
Overview of EvoMA. (a) Inference loop: Given clip t, the memory agent proposes state actions (add, update, noop), verifies them (approve, modify, reject) to commit new states with clean references, and retrieves historical states for next-shot synthesis. (b) Policy learning: Using GRPO (Shao et al., 2024), we first train the writer with a frozen retriever and a text judge, and then freeze the writer to build student banks for training the retriever with a judge-aligned set-match reward.

Results

Long Video Generation

Railway Signal

Tracking signal-color progression and a character’s knee-tape state across a continuous narrative.

Interactive Video Generation

Midnight at the Bakery

Maintaining sequential user edits to Mara’s apron and the pastry container across subsequent shots.