TL;DR
AVI-Edit is a unified framework for audio-synchronized, instance-level video editing. By combining a diffusion-based video backbone with an iterative mask refiner and an LLM-driven audio agent, it modifies target subjects—and their accompanying sounds—while maintaining strict temporal sync, background preservation, and fine-grained spatial control.
What Problem Does This Paper Address?
Recent video generation models showcase impressive audio-visual realism, yet video editing models remain overwhelmingly visual-only. When altering a speaker or object, traditional pipelines either mute the audio, break lip-sync, or destroy scene-level acoustic ambiance (e.g., footsteps, background chatter).
Furthermore, performing edits strictly on target instances usually requires pixel-perfect masks that human users rarely provide. Coarse bounding boxes lead to background bleeding or unwanted distortion. Existing methods struggle with two core challenges:
- Precise spatial control: Accurately localizing edits without requiring dense, per-frame manual rotoscoping.
- Fine-grained temporal audio-visual sync: Synthesizing or altering sound tracks such that audio cues (speech, vocalizations, environmental dynamics) naturally drive and align with video frames.
Methods
Built upon the Wan2.2-5B video diffusion transformer architecture, AVI-Edit consists of three core components:
[User Input: Coarse Mask + Prompt + Video + Audio]
│
├──► Granularity-Aware Mask Refiner (GAMR) ──► Refined Instance Mask
│ │
├──► Self-Feedback Audio Agent ──────────────► Curated Audio Tokens
│ │
└──────────────────► Audio-Sync Video Backbone ◄─────┘
│
[Edited Video + Audio]
- Audio-Sync Video Backbone: A flow-matching video diffusion transformer that conditions on downsampled instance masks and text. To maintain audio synchronization, each DiT block integrates a frame-wise cross-attention layer receiving curated audio tokens. Optional spatial contexts (poses, scribbles, reference images) can be added via a unified condition interface.
- Granularity-Aware Mask Refiner (GAMR): Instead of relying on crude user boxes, GAMR uses a diffusion architecture to predict precise instance contours. It accepts a scalar precision factor $p \in [0, P]$ (injected via AdaLN/Gate mechanisms) to capture mask uncertainty. Audio and video tokens guide the refinement so the mask dynamically conforms to moving, sounding instances across frames.
- Self-Feedback Audio Agent: An agentic, separate–generate–remix–rework pipeline:
- Uses an audio captioner and vision-language model (Qwen-VL) to produce an editing plan.
- Decomposes the task into audio separation (isolating non-target sounds like background ambience) and audio generation (generating new target speech, music, or sound effects via ElevenLabs).
- Remixes tracks and prompts a multimodal LLM (MLLM) judge across five quality criteria. If the score falls below a threshold ($\tau = 7/10$), the agent generates improved text prompts and reworks the audio.
Datasets
- AVISET (New Dataset): The authors created a curated dataset consisting of 71k training, 1k validation, and 1k testing video clips (~197 total hours at 720p, 24 FPS). Clips are filtered via optical flow (RAFT), aesthetic predictors, audio quality scorers (Audiobox-aesthetics), active speaker detectors (TalkNet/Scribe), and Grounded-SAM-2 to guarantee that each clip contains a single, visible, non-silent primary instance. The test set includes paired original-to-edited text instructions.
- AvED-Bench: A public benchmark used for zero-shot audio-visual editing evaluations. The authors augmented it with instance mask annotations to evaluate instance-level edits.
Key Insights and Ideas
- Mask Degradation Scheduling Matters: During sampling, the GAMR refines masks iteratively. The authors found that an instant degradation schedule (setting the precision factor to coarse at step 0 and instantly switching to fine $p=1$ for subsequent steps) strongly outperforms linear decay (achieving 76.23% IoU vs. 71.87%). Linear decay keeps the granularity factor overly coarse for too long, causing the mask to over-shrink boundaries.
- Audio as an Explicit Temporal Clock: Instead of treating audio as a static semantic embedding, feeding frame-wise audio tokens directly into both the video DiT and mask refiner provides an explicit temporal clock, locking events (like water flowing or speech cadence) to visual motion.
- Agentic Quality Gating: Open-loop audio generation frequently fails in speech-to-background balance. An MLLM-in-the-loop rework cycle averages just 1.67 iterations per clip (~70s total) but ensures the generated and separated audio blends naturally.
Key Results
- Visual & Sync Quality: On the AVISET benchmark, AVI-Edit achieved a Frechét Video Distance (FVD) of 299.19 (outperforming AvED at 362.06 and Ovi at 419.91), while leading in Audio-Video consistency (26.90%) and lip synchronization (Sync-C of 4.15 vs. AvED's 1.67).
- User Preference: In human evaluations across audio-visual synchronization, text alignment, and overall preference, human evaluators preferred AVI-Edit over baselines (e.g., 45.20% overall preference on AVISET, compared to 38.40% for Ovi and 1.60% for AvED).
- Ablation Studies: Removing the precision factor (
w/o PF) or mask refiner (w/o MR) sharply degraded mask boundaries and visual realism (FVD increased from 335.32 to 354.43 and 372.44, respectively).
Limitations and Future Work
- Single-Instance Restriction: The current architecture processes one target instance at a time. Multi-character or multi-sounding edits must be handled sequentially. Exploring joint, multi-instance audio-visual editing remains an open challenge.
- Off-the-shelf Audio Latency: While the audio agent is effective, relying on external API calls and iterative MLLM reviews introduces processing latency (~70 seconds per clip). Future iterations could explore end-to-end differentiable audio-video diffusion backbones.
Summary updated