AVCodeEdit / README.md
Liguyanger's picture
Update release news
954322e verified
|
Raw History Blame Contribute Delete
11.4 kB
---
pretty_name: AVCodeEdit
license: cc-by-nc-4.0
language:
- en
- zh
tags:
- benchmark
- code-generation
- video-editing
- audiovisual
- video
- audio
size_categories:
- 1K<n<10K
configs:
- config_name: all
default: true
data_files:
- split: train
path: all/tasks/*.parquet
- config_name: test
data_files:
- split: test
path: test/tasks/*.parquet
---
<p align="center">
<img src="assets/AVCodeEdit-combined.svg" width="400" alt="AVCodeEdit logo">
</p>
<h1 align="center">Benchmarking Coding Agents on Audio-Video Editing</h1>
<p align="center">Zhenghan Chen, Zekai Shao, Leting Cheng, Xin Lin, and Siming Chen</p>
<p align="center">
<a href="https://avcodeedit.github.io"><img src="https://img.shields.io/badge/Homepage-AVCodeEdit-16837c.svg?style=flat-square" alt="Homepage: AVCodeEdit"></a>
<a href="https://github.com/avcodeedit/AVCodeEdit"><img src="https://img.shields.io/badge/GitHub-AVCodeEdit-181717.svg?style=flat-square&amp;logo=github&amp;logoColor=white" alt="GitHub: AVCodeEdit"></a>
<a href="https://huggingface.co/datasets/avcodeedit/AVCodeEdit"><img src="https://img.shields.io/badge/Hugging%20Face-AVCodeEdit-ffd21f.svg?style=flat-square&amp;logo=huggingface&amp;logoColor=black" alt="Hugging Face: AVCodeEdit"></a>
</p>
<p align="center">
<a href="https://github.com/avcodeedit/AVCodeEdit/blob/main/LICENSE"><img src="https://img.shields.io/badge/Code%20license-Apache--2.0-337ab7.svg?style=flat-square" alt="Code license: Apache-2.0"></a>
<a href="https://huggingface.co/datasets/avcodeedit/AVCodeEdit/blob/main/LICENSE"><img src="https://img.shields.io/badge/Data%20license-CC%20BY--NC%204.0-337ab7.svg?style=flat-square" alt="Data license: CC BY-NC 4.0"></a>
</p>
<p align="center">
<a href="#overview">Overview</a> &nbsp;|&nbsp;
<a href="#task-format">Task format</a> &nbsp;|&nbsp;
<a href="#dataset">Dataset</a> &nbsp;|&nbsp;
<a href="#loading-the-data">Use the data</a> &nbsp;|&nbsp;
<a href="#evaluation">Evaluation</a>
</p>
## ๐ŸŽ‰ What's New
- [2026.12] ๐Ÿ“ฃ AVCodeEdit [dataset](https://huggingface.co/datasets/avcodeedit/AVCodeEdit) and [codebase](https://github.com/avcodeedit/AVCodeEdit) are released.
- [2026.11] ๐ŸŽ‰ The AVCodeEdit paper is now on [arXiv](https://arxiv.org/abs/2611.41298)!
## Overview
AVCodeEdit evaluates coding agents on audio-video editing through executable programs. Each task combines a source video, an editing instruction, and a checklist that separately checks the requested edits and the reconstruction of unedited content. The dataset contains **1,026 tasks**, **3,024 editing goals**, and **35,048 checklist questions**, spanning **11 source categories**, **28 subtypes**, and **38 editing operations**.
<p align="center">
<img src="assets/figures/editing-cases.jpg" width="100%" alt="Representative editing tasks with source frames, editing instructions, and rendered results">
</p>
Each example above pairs a source frame and a shortened instruction with a frame from an agent's output. The examples cover visual changes and coordinated changes to picture and sound.
| Dataset component | Count |
|---|---:|
| Editing tasks / source videos | 1,026 |
| Editing goals | 3,024 |
| Checklist questions | 35,048 |
| Instruction Following questions (IF) | 9,619 |
| Fidelity Preservation questions (FP) | 25,429 |
| Source categories / subtypes | 11 / 28 |
| Editing operations | 38 |
| Fixed evaluation subset | 205 tasks |
## Task format
The model receives a **source video and an editing instruction**. It produces executable code that reconstructs the complete timeline and applies the requested edits together. Unedited subjects, actions, camera behavior, dialogue, music and sound effects should match the source.
Time references use the original source timeline unless the instruction defines an output timeline. Temporal edits may change duration, event positions and sound-picture relationships as specified in the instruction. Source videos are references for analysis; the benchmark's code-based reconstruction setting does not permit copying their frames or recordings into the output.
### An example: Fire Engine Leaving the Garage
<details>
<summary><b>Read the editing instruction</b></summary>
1. Change the outdoor environment seen through the garage bay doors and windows to a dark rainy night with falling rain, wet reflective street surfaces, and continuous rainfall and thunder ambience throughout the video.
2. Change the parked fire truck on the right from white with a blue stripe to matte black with a bright yellow stripe throughout the video.
3. Remove all human cheering, shouting, and background chatter throughout the video.
</details>
The full checklist is included in the dataset. Four representative questions are shown below:
| Question | Dimension | Exact question text |
|---|---|---|
| Q1 | IF | Is the outdoor environment seen through the garage bay doors and windows dark as at night throughout the video? |
| Q2 | IF | Is falling rain visible outside the garage doorways and windows whenever the exterior is in view? |
| Q13 | FP | Does the departing ladder fire truck have a red-and-white body as it exits the center garage bay? |
| Q14 | FP | Is the text "FIRE RESCUE EMS" visible on the rear of the exiting ladder fire truck at the start of the video? |
## Dataset
### Construction
<p align="center">
<img src="assets/figures/data-construction.jpg" width="100%" alt="Source collection, curation, audiovisual event annotation, editing instruction and checklist construction">
</p>
Source videos are collected, screened and curated, then annotated with visual and sound events. The instructions specify what to change; the checklists cover those changes and the rest of the source content.
### Editing coverage
<p align="center">
<img src="assets/figures/edit_taxonomy.jpg" width="70%" alt="The 38 editing operations across joint audio-video, video-only, non-speech audio and speech edits">
</p>
The taxonomy groups 38 operations into 14 editing aspects across joint audio-video, video-only, non-speech audio and speech edits. Tasks can contain multiple goals and multiple operation types. Operation IDs use J for joint audio-video edits, V for video-only edits, A for non-speech audio edits, and S for speech edits.
### Source diversity
<p align="center">
<img src="assets/figures/data.jpg" width="100%" alt="Distributions of task complexity, goals, categories and checklist questions, and source video styles, subjects, sounds, motion, events and duration">
</p>
Source videos include motion graphics, character animation, 3D scenes and real-world footage. Category labels can overlap, so the counts below should not be summed to obtain the number of tasks.
| Source category | Tasks carrying the label |
|---|---:|
| 1. Explainer Motion Graphics | 88 |
| 2. Branding & Promotional Motion | 238 |
| 3. Kinetic Typography | 68 |
| 4. UI & Product Motion | 113 |
| 5. Data & Infographic Animation | 50 |
| 6. Title Sequences | 77 |
| 7. Broadcast & Show Graphics | 24 |
| 8. Illustrative & Character Narrative | 655 |
| 9. Abstract & Experimental Motion | 43 |
| 10. 3D Motion | 495 |
| 11. Environments & Physical Processes | 63 |
### Complexity annotations
| Axis | Meaning |
|---|---|
| C โ€” Construction | Visual structures and elements to reconstruct |
| D โ€” Dynamic animation | Motion, coordination and temporal organization |
| S โ€” State dependency | How long earlier objects or states constrain later content |
| A โ€” Audio reconstruction | Complexity of the sound content to reconstruct |
| AV โ€” Audio-video | Relationships between visible events and sounds |
These five axes describe reconstruction complexity. Editing difficulty is recorded separately.
## Loading the data
Load the Parquet tables from [avcodeedit/AVCodeEdit](https://huggingface.co/datasets/avcodeedit/AVCodeEdit) with an authorized Hugging Face account:
```python
from datasets import load_dataset
all_tasks = load_dataset("avcodeedit/AVCodeEdit", "all", split="train", token=True)
test_tasks = load_dataset("avcodeedit/AVCodeEdit", "test", split="test", token=True)
```
`all` contains all 1,026 tasks. `test` contains the 205 evaluation tasks selected from `all` and shares their task IDs. The full table uses the `train` loading split and the evaluation table uses `test`.
Source videos are provided through `reference_urls`. No video or audio files are included.
## Data fields
| Field | Content |
|---|---|
| `sample_id` | Task ID from `AVCodeEdit-0001` to `AVCodeEdit-1026` |
| `instruction` | Complete editing instruction |
| `reference_urls`, `duration_s` | Source URLs and duration in seconds |
| `video_categories`, `subtypes`, `visual_style` | Source-category names and style label |
| `title`, `source_description`, `subjects`, `motion_types` | Original source title, description, and subject and motion types |
| `events`, `source_audio_description`, `audio_events` | Visual and sound-event descriptions, original IDs and available times |
| `construction_complexity`, `dynamic_complexity`, `state_dependency_span` | C, D and S labels |
| `audio_complexity`, `audiovisual_complexity` | A and AV labels |
| `object_localization` | Difficulty of locating the edit target |
| `audio_source_complexity` | Complexity of the audio sources involved in the edit |
| `cross_modal_linkage` | Relationship between the audio and visual parts of the edit |
| `editing_operations`, `goals` | Operation IDs, goal IDs, scope, source interval and event references |
| `edit_qa` | Instruction Following (IF) questions in their original order |
| `preservation_qa` | Fidelity Preservation (FP) questions in their original order |
Event times use seconds. Unrecorded boundaries are null.
## Evaluation
The checklist distinguishes two requirements:
- **Instruction Following (IF):** Does the result satisfy the requested changes?
- **Fidelity Preservation (FP):** Does the result reconstruct the content and properties that should stay unchanged?
Each fully satisfied question receives 1 (Yes); otherwise it receives 0 (No).
IF and FP are percentages of satisfied questions within each task, averaged
across tasks. Modality-specific scores average tasks with applicable questions.
The [GitHub repository](https://github.com/avcodeedit/AVCodeEdit) contains objective metric implementations,
independent IF/FP scorers, audiovisual quality scoring, and result aggregation.
The [project homepage](https://avcodeedit.github.io) presents editing examples and benchmark results.
## Citation
If you find AVCodeEdit useful, please consider citing our work:
```bibtex
@misc{chen2026avcodeeditbenchmarkingcodingagents,
title = {AVCodeEdit: Benchmarking Coding Agents on Audio-Video Editing},
author = {Zhenghan Chen and Zekai Shao and Leting Cheng and Xin Lin and Siming Chen},
year = {2026},
eprint = {2611.41298},
archivePrefix = {arXiv},
primaryClass = {cs.CV},
url = {https://arxiv.org/abs/2611.41298}
}
```
## Contact
For questions about AVCodeEdit, contact
[chenzh26@m.fudan.edu.cn](mailto:chenzh26@m.fudan.edu.cn).
## License
Dataset annotations and checklists are licensed under [CC BY-NC 4.0](LICENSE).
The evaluation code uses [Apache-2.0](https://github.com/avcodeedit/AVCodeEdit/blob/main/LICENSE).
Source videos and third-party materials retain their respective rights and licenses.