TL;DR
EffectErase is a novel video editing framework that cleanly removes objects and their secondary visual effects (like shadows, reflections, and lighting changes) by treating video object removal and insertion as inverse, mutually reinforcing tasks. Alongside this method, the authors introduce VOR, a massive hybrid dataset of 60,000 video pairs designed specifically to train models to recognize and erase these complex environmental side effects.
What Problem Does This Paper Address?
When you remove an object from a video, you aren't just erasing its pixels; you also need to erase its impact on the environment. Think of a car driving down a street at night: it casts moving shadows, reflects off wet pavement, blocks objects behind it, and illuminates nearby walls with its headlights.
Most current video inpainting and object removal methods rely heavily on user-provided input masks that only cover the object's body. As a result, they often leave behind "ghost" artifacts—lingering shadows or reflections that look unnatural.
Progress in this area has been bottlenecked by two things:
- Algorithmic limitations: A lack of explicit spatiotemporal modeling to link an object to its far-reaching environmental effects.
- Data scarcity: The absence of a large-scale, diverse video dataset that provides perfect ground-truth pairs of videos with and without an object's secondary effects.
Methods
The core insight behind EffectErase is that video object removal and video object insertion are two sides of the same coin. They are inverse operations that alter the exact same regions of a scene.
The authors build EffectErase on top of a Diffusion Transformer (DiT) backbone and introduce three key components:
- Removal-Insertion Joint Learning: Instead of training a model solely to remove objects, EffectErase trains a single denoising backbone to perform both removal and insertion. This dual-task learning forces the network to deeply understand the relationship between foreground objects and background environments.
- Task-Aware Region Guidance (TARG): This module uses text tokens (e.g., "remove" vs. "insert") and visual tokens from the target object to guide the model's cross-attention layers. It allows the model to dynamically map out where the object's effects are likely to manifest and enables seamless switching between tasks.
- Effect Consistency (EC) Loss: Since both tasks modify the same environmental regions, their cross-attention maps should match. The EC loss aligns the attention maps of the removal and insertion branches. Crucially, instead of using a binary mask, it uses a soft difference map that preserves the subtle gradients of lighting changes and fading shadows.
Datasets
To power this framework, the authors created the VOR (Video Object Removal) dataset, a large-scale hybrid dataset consisting of:
- Real-World Data: Videos captured using fixed tripods across 293 real scenes (parks, streets, gyms) with and without target objects, augmented with simulated camera movements (the Ken Burns effect).
- Synthesized Data: Over 150 complex 3D scenes rendered in Blender, featuring dynamic object trajectories, multi-camera setups, and varied lighting conditions.
In total, VOR contains 60,000 high-quality video pairs (over 145 hours), spanning 366 object classes and 67 scene types. It explicitly categorizes five types of object-induced effects: occlusion, shadow, lighting, reflection, and deformation.
The authors also establish two evaluation benchmarks: VOR-Eval (with ground truth) and VOR-Wild (real-world, in-the-wild videos).
Key Insights and Ideas
- Reciprocal Learning as Supervision: Training a model to insert an object realistically requires it to generate plausible shadows and reflections. By tying this to the removal task, the insertion task acts as an excellent auxiliary supervisor, teaching the removal network exactly what environmental traces it needs to clean up.
- Soft Distributions over Binary Masks: Previous attempts to predict "side-effect masks" treated them as binary (effect vs. no effect). EffectErase's use of a soft distribution map ensures the model captures the intensity of effects, which is vital for restoring complex illumination changes.
Key Results
EffectErase achieves state-of-the-art performance across multiple benchmarks, outperforming specialized video removal models like ROSE and MinMax-Remover, as well as top-tier video inpainting models like ProPainter.
On the VOR-Eval benchmark, EffectErase achieved:
- PSNR: 23.750 (compared to ROSE's 22.966)
- FVD (Fréchet Video Distance): 342.871 (a significant drop from ROSE's 383.084, indicating much higher temporal consistency and visual quality)
Qualitatively, the model excels at erasing complex artifacts. For instance, when removing a boat, it successfully erases the surrounding wake and water deformations; when removing a car at night, it removes the headlights' glare on the asphalt. Furthermore, because it is trained symmetrically, EffectErase can perform high-quality object insertion out-of-the-box simply by changing the text prompt.
Limitations and Future Work
Despite its strengths, EffectErase still requires a user-provided input mask to identify the main body of the object to be removed. The authors note that a promising future direction is to integrate more flexible, user-friendly interaction modalities, such as allowing users to specify objects via text prompts ("remove the red car") or speech commands.
Summary updated