Summary
DuoEdit fine-tunes Wan2.2-Fun-A14B-Control (two 14B diffusion-transformer experts, LoRA plus input layers) to perform only two local video edits: removal, conditioned on an erasure mask, and insertion, conditioned on unaligned appearance references plus per-subject box trajectories. References are linked to boxes through shared subject-ID colours on an identity canvas and the box video. Training uses only the VOR removal pairs (from EffectErase). Insertion pairs come from reversing those pairs, and references are re-rendered by an image editor so the model cannot simply copy-paste the crop.
The central claim is that compositional editing (replacement, mixed multi-subject edits) needs no compositional training data. Because the mask stream and the box/reference stream are independent inputs, they can be switched on together at inference to perform such edits zero-shot in one run. The paper reports results on removal (Table 1) and insertion (Table 2), each the mean of VOR-Eval and ROSE-Bench. On a CoinVE-200K compositional subset (Table 3) it reports large gains over UniVideo, VACE, Kiwi-Edit and a sequential ROSE→VACE pipeline. Inference code and weights are released; training and evaluation code are not.
Strengths
Simple, composable control interface that the released code implements faithfully
Sec. 3.1, 3.3; App. A.1, Eq. (3); duoedit/conditioning.py
Removal is driven only by an erasure mask; insertion is driven only by references plus box trajectories. Mixed edits are the union of the two (Eq. 3, task-control table). I ran the released CPU conditioning builder on all four shipped examples (check 08). The box-video and identity-canvas colour sets match exactly, with one colour per subject. Appearance/identity canvas support IoU is 0.9953 to 1.0000. The mixed example's erasure mask equals the 4-px-dilated union of its two masks (IoU 1.0000), built in the same call as the boxes. The replacement subject's box overlaps its erasure mask with mean IoU 0.823 (check 15).
Implementation details are precise and match the code and weights
App. A.2–A.5, Eqs. (4)–(6)
Appendix A specifies the channel layout (52 ch), mask packing, reference projection 16→32, LoRA rank 64/α 32, expert boundary, 25 steps, CFG 4.5. All 17 static code checks matched (check 06). Re-executing the mask-packing code reproduces the described first-frame×4 grouping and polarity. Safetensors headers confirm rank-64 LoRA on 40 blocks, patch_embedding [5120, 52, 1, 2, 2] and ref_conv [5120, 32, 2, 2] (check 07). Eq. (6) and the expert split also check out: 9 of 25 steps on the high-noise expert (check 11). This level of reproducible detail is uncommon for large video-diffusion papers.