TL;DR
ROSE (Remove Objects with Side Effects) is a novel video inpainting framework designed to eliminate not just target objects, but also their environmental "side effects" like shadows, reflections, and light glows. By leveraging a massive synthetic dataset generated in a 3D engine and an auxiliary "difference mask" prediction task, ROSE achieves state-of-the-art performance in producing physically consistent, "clean" video edits.
What Problem Does This Paper Address?
Removing an object from a video is more than just filling a hole; it’s about correcting the environment the object lived in. If you remove a car from a sunny street but leave its shadow on the pavement, the result looks "ghostly" and fake.
The core challenge is a lack of paired data. In the real world, we rarely have two identical videos where the only difference is the presence or absence of a specific object. Consequently, most existing models are trained on "artificial pairs"—where an object is simply pasted into a scene or masked out with zeros. These models never learn the complex physical relationships between an object and its surroundings, such as how a lamp illuminates a wall or how a glass vase refracts the background.
Methods
The authors introduce a multi-pronged approach to bridge this "physics gap":
- Synthetic Data Pipeline: Using the Unreal Engine, the researchers built a fully automated pipeline to generate over 16,000 high-quality video triplets: the original video, the video with the object removed (toggled off in the engine), and the precise object mask. This ensures the model sees perfect "before and after" examples that follow real-world lighting and reflection rules.
- Reference-based Erasing: Unlike traditional methods that hide the object from the model using a zero-mask, ROSE feeds the entire original video into the Diffusion Transformer (DiT) backbone. This allows the model to use the object itself as a reference to "understand" its properties (e.g., its color, brightness, and shape) to better locate and erase its corresponding side effects.
- Difference Mask Predictor (DMP): The model includes an auxiliary MLP-based head that explicitly predicts a "difference mask"—a map of every pixel that needs to change between the original and edited versions. This forces the model to pay attention to subtle areas like faint reflections or light bleeds that might otherwise be ignored by a standard diffusion loss.
- Mask Augmentation: To ensure the model works with messy, human-provided masks, they trained it using various mask types, including bounding boxes, dilated masks, and sparse points.
Datasets
- Training Set: 16,678 synthetic video pairs (90 frames each) rendered in Unreal Engine across diverse indoor and outdoor scenes.
- ROSE-Bench (New): A comprehensive benchmark consisting of:
- Synthetic Paired Subset: 60 high-quality triplets categorized into Common, Shadow, Light Source, Reflection, Mirror, and Translucent effects.
- Realistic Paired Subset: Created using a copy-and-paste strategy on the DAVIS dataset to provide ground-truth for real-world textures.
- Realistic Unpaired Subset: Real-world videos used for qualitative evaluation and motion consistency testing.
Key Insights and Ideas
- The "Anti-Mask" Intuition: The most surprising insight is that showing the model the object it is supposed to remove actually helps. By treating the original video as a reference rather than a "hole" to be filled, the model can correlate the object's position with its environmental impact.
- Categorizing Side Effects: The paper formalizes "side effects" into five distinct physical categories (Shadow, Reflection, Light, Translucency, Mirror). This taxonomy allows for more granular evaluation of where models fail.
- Supervision via Delta: Using the difference between the "with-object" and "without-object" frames as a secondary supervision signal (the DMP) acts as a powerful attention mechanism, guiding the generative process to the exact regions that require modification.
Key Results
ROSE significantly outperforms existing state-of-the-art (SOTA) models like ProPainter and DiffuEraser:
- Quantitative: On the synthetic benchmark, ROSE achieved a PSNR of 31.12, compared to ProPainter’s 27.19 and DiffuEraser’s 26.50. It also led in perceptual metrics (LPIPS), indicating much higher visual fidelity.
- Qualitative: In real-world tests, ROSE was the only model capable of cleanly removing the "glow" left on a wall by a lamp or the reflection of a person in a mirror, whereas other models left noticeable artifacts.
- Consistency: Evaluation via VBench showed that ROSE maintains superior temporal consistency and background stability, avoiding the "flickering" common in video generative models.
Limitations and Future Work
While ROSE represents a major step forward, the authors note two primary limitations:
- Temporal Flickering: Under extremely large or fast camera motions, the model can still produce slight flickering artifacts.
- Inference Efficiency: Because the model processes video tokens through a large Diffusion Transformer, inference time scales linearly with video length, which can be slow for very long sequences.
Future work may involve optimizing the model for real-time performance and expanding the synthetic pipeline to include even more complex environmental interactions, such as fluid dynamics or weather-based lighting changes.
Summary updated