DuoEdit: A Unified Local Video Editing Model Learning Only Two Primitive Operators

Jiayi Wu, Haoming Cai, Cornelia Fermuller, Yezhou Yang, Furong Huang, Christopher Metzler, Yiannis AloimonosarXiv 2026

TL;DR

What if teaching an AI to perform complex, multi-object video edits didn’t require massive, impossible-to-gather datasets of complex edits? DuoEdit shows that by learning just two fundamental primitives—object removal and insertion—a diffusion model can spontaneously compose intricate, multi-subject video transformations (like simultaneous swaps, additions, and deletions) zero-shot in a single pass, complete with harmonized lighting and shadows.

What Problem Does This Paper Address?

Imagine editing a tabletop cooking video: you want to swap a blue muffin tray for a red one, delete a butter knife on the counter, and drop a potted plant into the corner. Doing this cleanly in video is notoriously difficult because objects don't exist in a vacuum—they cast shadows, create reflections, and physically occlude hands and other objects.

Currently, video editing faces three major bottlenecks:

  1. Sequential chaining breaks interactions: You could run a specialized removal model, then an insertion model, and so on. However, chaining independent inference runs struggles to synthesize coherent human-object interactions and unified scene lighting.
  2. Tedious user prep: Many insertion pipelines force users to pre-align foreground cutouts or edit keyframes to match the exact pose, scale, and perspective of the target video—a headache when multiple objects are moving.
  3. The data desert: Training a single unified model to handle complex compositional edits directly would require high-quality paired videos showing scenes before and after multi-object swaps and deletions. At scale, such paired video data simply does not exist.

Methods

DuoEdit sidesteps the data bottleneck by treating local video editing like basic arithmetic: complex operations are just combinations of addition (insertion) and subtraction (removal).

DuoEdit learns only removal and insertion primitives, which are controlled via independent interfaces.

In DuoEdit’s video diffusion framework, the two primitives are governed by completely independent conditioning signals:

  • Removal is triggered by standard spatial erasure masks.
  • Insertion is guided by bounding-box trajectories paired with unaligned appearance reference images.

Because these conditions don't interfere with one another, you can switch both on at inference time. Want to replace an object? Activate an erasure mask over the existing subject while feeding a bounding-box trajectory and a new reference image into the exact same space. Because everything executes in a single end-to-end diffusion pass conditioned on the full source video, shadows, reflections, and occlusions harmonize naturally across all edited subjects.

Compositional editing interface: simultaneously inserting a plant, replacing a tray, and removing a knife.

To save users from manually aligning reference cutouts, DuoEdit decouples appearance from spatial guidance. Reference images remain globally available throughout the diffusion process, and the model uses shared subject IDs for internal spatial–appearance routing—essentially acting like a switchboard that directs each unaligned object image to its designated moving bounding box, while optional text prompts handle fine dynamics like facial expressions or actions.

Finally, the authors introduce a clever bidirectional training strategy:

  • Forward pass (Removal): Standard object-removal video pairs (source video with object $\rightarrow$ target video without object + shadows) directly supervise removal.
  • Reverse pass (Insertion): They simply flip the arrows! The clean video becomes the source, and the original video becomes the target. Using SAM 3.1 to track objects into bounding-box trajectories and HunyuanImage to alter the lighting and viewpoint of cropped objects (creating synthetic "unaligned" references), they get insertion supervision for free.

Datasets

  • VOR (Video Object Removal) Dataset: Introduced by prior work (EffectErase), VOR provides paired videos with and without target objects alongside their scene effects (like shadows and reflections). DuoEdit uses VOR exclusively—training both primitives bidirectionally from these exact same pairs without any extra paired datasets for replacement or multi-operation tasks.

(Note: Evaluation benchmarks beyond pages 1–3 are not visible in the provided manuscript excerpt.)

Key Insights and Ideas

  • Compositional editing doesn't require compositional data: During training, DuoEdit never sees an object replacement or a mixed insert-and-remove operation. Yet, because the input controls are orthogonal, multi-subject compositionality emerges naturally zero-shot at test time.
  • Time-reversing removal yields rich insertion physics: Flipping an effect-aware removal dataset (where shadows and water splashes vanish alongside a kiteboarder) automatically teaches the reverse insertion operator how to generate realistic shadows, lighting, and water splashes in a scene.
  • ID-routed decoupling beats aligned layers: Keeping unaligned reference images as persistent global context—linked to trajectories via simple IDs—frees users from frame-by-frame keyframe surgery while keeping multi-object identities from bleeding into one another.

Key Results

Note: Detailed quantitative tables and ablation numbers are not included in the provided three-page excerpt of the paper.

According to the authors' summary of experiments, DuoEdit matches or surpasses state-of-the-art specialized baselines on standard removal and insertion tasks, while generating significantly more reliable zero-shot compositional edits (replacements, human-object interactions, and mixed multi-object edits) than both mainstream unified video editors and sequential multi-pass pipelines.

Input setup for a single-pass multi-edit scene.

Qualitatively (as seen in Figure 1), the model cleanly erases wake splashes alongside a kiteboarder, casts warm glow onto grass from an inserted lantern, and simultaneously swaps a baking tray under moving hands while deleting a knife and adding a houseplant.

Limitations and Future Work

Not discussed in the provided excerpt of the paper.

Summary updated

BibTeX
@misc{wu2026duoedit,
  author = {Jiayi Wu and Haoming Cai and Cornelia Fermuller and Yezhou Yang and Furong Huang and Christopher Metzler and Yiannis Aloimonos},
  title = {{DuoEdit: A Unified Local Video Editing Model Learning Only Two Primitive Operators}},
  year = {2026},
  eprint = {2611.35509},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.35509},
}
Figure