Turning films into structured, editable, and cinematically faithful representations for creative agents.
Chuyue Li1,2, Jinpeng Yu1,†, Haozhe Wang1,3, Tian Xueyun1,4, Zhijing Zhang1,5, Bingnan Li1, Shuqi Gu2, Kan Ren2,, Jiaming Liu1,, Ruihua Huang1
1Qwen Business Unit of Alibaba 2ShanghaiTech University
3The Hong Kong University of Science and Technology
4Institute of Computing Technology 5Southeast University
†Project Lead
*Co-corresponding authors
Problem · Our Answer · Framework · Results · Reconstruction · Editing · Release · Citation
In one sentence: AVA-Encoder learns an agent-native, text-centered Film Knowledge Graph by reconstructing the source film and using the reconstruction residual to improve the shared encoding policy and each input-specific representation at separate stages.
Video creation agents can write stories, design keyframes, and generate videos, but their base models still lack the planning ability needed to coordinate scripts, characters, shots, and audiovisual elements into production-ready film content. One central reason is the scarcity of high-quality records of complete agentic video creation processes. Professionally directed films contain rich filmmaking knowledge, but agents cannot directly use the finished films as clear, step-by-step creation records.
This limitation leads to a fundamental mismatch: films encode narrative, visual, temporal, and audio information in a tightly connected multimodal form, whereas agents learn and operate most effectively through structured text, code, plans, and graphs.
| Film space | Agent space |
|---|---|
| Dense pixels, motion, sound, timing, and narrative are tightly connected. | Agents learn and operate through explicit text, plans, tools, and graphs. |
| The creative decisions behind a finished film are hidden in the final audiovisual output. | Reasoning, learning, querying, and editing require clear intermediate structure. |
| Existing visual representations retain detail but are hard to operate on; captions and understanding-oriented graphs are easier to read but often lose generation-critical information. | A useful representation must be readable, operable, and faithful at the same time. |
AVA-Encoder converts a film into a text-centered Film Knowledge Graph (KG) representation, reconstructs the film from that representation through a fixed decoder, and uses the observed reconstruction residual to improve the representation process. Following the paper notation, the core auto-encoding path is
where
The resulting representation is designed to be:
- Agent-readable: cinematic information is stored as clear, structured text.
- Agent-operable: agents can query, learn from, and edit individual nodes and their dependencies.
- Cinematically faithful: reconstruction-based learning preserves the information needed to regenerate the source film.
| 1 · Faithful representation | 2 · Self-evolving encoding | 3 · Operable film knowledge |
|---|---|---|
| Reconstruction directly tests whether a representation preserves enough cinematic information for future generation. AVA-Encoder reaches 49.0% Overall, outperforming the strongest external baseline by 20.7 points. | Two stage-separated textual-gradient loops improve different objects at different times: the outer stage updates the shared shot- and keyframe-level policies, and optional test-time refinement updates only the current input's KG. Together they add 6.6 points over removing both stages. | Typed KG relations make film knowledge directly queryable and editable. A local change can update dependent identities, actions, dialogue, keyframes, and shots while preserving unrelated content. |
Downstream understanding tasks may succeed even when a representation has discarded visual composition, camera language, motion, timing, or audio details needed for creation. AVA-Encoder instead asks a stricter question: can the representation reconstruct the source film? With the decoder fixed, reconstruction differences reveal which information was lost or changed and provide grounded feedback for self-improvement.
AVA-Encoder contains three core components and a reconstruction-residual signal design:
- Multi-level Agentic Video Encoder. Film-, shot-, and keyframe-level understanding progressively maps dense video content into structured text while passing high-level context to finer levels.
- Film KG Representation. A Story–Event–Shot hierarchy and Character, Scene, Object, Style, Camera, and Audio states separate cinematic information into editable text nodes. Typed edges preserve hierarchy, temporal order, asset references, and cross-shot dependencies.
-
Dual-loop Textual-Gradient Evolution. Data-Agnostic Encoding Policy Pseudo-Training first improves the shared shot- and keyframe-level Agentic Video Encoder policies
$P_{\mathrm{shot}}$ and$P_{\mathrm{kf}}$ in separate branches across videos before deployment. After the complete policy is frozen, optional Data-Dependent KG Representation Refinement improves only the current input's$G$ at test time. All foundation-model weights remain fixed, and the two stages never update$P$ and$G$ simultaneously. -
Reconstruction Residual. Branch-specific failed evidence diagnoses reconstruction failures and constructs textual gradients, the loop-facing
$R_{\mathrm{reward}}$ verifies candidate updates, and the separate$R_{\mathrm{eval}}$ provides the common four-direction final evaluation across representation systems without optimizing either loop.
The Story–Event–Shot hierarchy and its Character, Scene, Object, Style, Camera, and Audio states contain structured text only. Generated keyframes and other image, audio, and video outputs are kept in a linked asset layer. No frame, crop, or screenshot from the source video is stored as an asset or supplied directly to the reconstruction generators.
Final reporting under
AVA-Encoder achieves the best reconstruction fidelity in all four comparison directions.
| Method | Video ↑ | Keyframe ↑ | Video Back-Captioning ↑ | Keyframe Back-Captioning ↑ | Overall ↑ |
|---|---|---|---|---|---|
| VideoAnalyzer | 26.1 | 28.5 | 9.7 | 21.7 | 21.5 |
| Storyboard Studio | 16.4 | 28.6 | 9.6 | 23.0 | 19.4 |
| soap2soap | 36.7 | 39.5 | 15.8 | 21.3 | 28.3 |
| AVA-Encoder | 57.8 | 73.7 | 29.7 | 34.6 | 49.0 |
All values are percentages. Overall is the unweighted mean of the four comparison directions.
Key findings:
- +20.7 percentage points, or a 73.1% relative improvement, over the strongest external baseline in Overall reconstruction fidelity.
- +6.6 percentage points over removing both optimization stages, equivalent to a 15.6% relative improvement.
- In a controlled policy-only comparison, the pseudo-trained Agentic Video Encoder reaches 45.8%, compared with 44.4% for a carefully human-tuned policy.
- The pseudo-trained policy uses 74.3% fewer shot-level and 70.1% fewer keyframe-level system-prompt tokens than the human-tuned policy.
- The automatic reconstruction metrics agree with the judgments of two mutually blinded expert annotators on 710 of 730 comparison triples (97.3%).
AVA-Encoder better preserves character identity, scene content, actions, composition, and temporal consistency when reconstructing a film from its representation.
Typed graph relations connect narrative structure, recurring entities, cinematic states, keyframes, and generated assets. These links allow an agent to trace dependencies and update affected content without rewriting unrelated parts of the film.
An identity edit can update the dependent character appearance, actions, dialogue, keyframes, and shots while preserving unrelated characters, scenes, compositions, and events.
A visual-treatment edit follows the corresponding style states and asset references, producing a consistent change across linked shots.
We construct and release a Film KG Dataset at the scale of tens of thousands of shots. It contains the text portion of Film KG representations derived from high-quality, human-made film content, including fine-grained structured descriptions of scripts, characters, scenes, objects, shots, and keyframes.
The released dataset contains the structured-text hierarchy, states, and graph relations rather than source-film pixels or generated image, audio, and video assets. Users can connect their own generation APIs, use the representations as agentic video creation trajectories, or perform linked graph editing without first rendering a video.
Important
Source code is available at HBDYW/AVA-Encoder. Consult the repository for the current availability of the evaluation toolkit, system prompts, data, and graph-editing tools.
- Paper overview and method description
- Reconstruction and editing visualizations
- AVA-Encoder source code
- Reconstruction benchmark and evaluation toolkit — see repository
- Agentic Video Encoder system prompts — see repository and paper appendix
- Film KG Dataset and graph-editing tools — see repository
Please watch or star this repository to follow future releases.
AVA-Encoder: Towards Agent-Native Video Representation Learning
Paper page: https://arxiv.org/abs/2608.12313
If you find this project useful, please consider citing our paper:
@misc{li2026avaencoder,
title = {AVA-Encoder: Towards Agent-Native Video Representation Learning},
author = {Chuyue Li and Jinpeng Yu and Haozhe Wang and Tian Xueyun and
Zhijing Zhang and Bingnan Li and Shuqi Gu and Kan Ren and
Jiaming Liu and Ruihua Huang},
year = {2026}
}License information for the code and released resources is provided with the corresponding materials in the source repository.
For questions and collaboration, please contact:
- Jiaming Liu: jmliu1217@gmail.com
- Kan Ren: renkan@shanghaitech.edu.cn




