Abstract
Realistic video object insertion (VOI) requires objects to maintain spatial alignment, respect occlusions, and exhibit believable lighting changes. InsertAnywhere addresses these challenges by integrating 4D scene geometry with diffusion-based video generation. By reconstructing the 3D world over time, the system ensures perfect anchoring and occlusion handling. A specialized "inverted" dataset, ROSE++, enables the model to synthesize realistic shadows and reflections, significantly outperforming existing commercial tools in realism and consistency.
Introduction
Inserting a new object into a video—such as placing a branded product on a table or a character in a scene—is significantly more complex than static image editing. To appear authentic, the object must obey physical and perspective laws: it must be appropriately scaled, remain anchored during camera movement, respect occlusions (e.g., appearing behind a person walking by), and cast realistic shadows.
Current state-of-the-art models often treat video as a sequence of 2D slices. This leads to common artifacts where objects "slide" across surfaces, change size inconsistently, or fail to respect the 3D structure of the environment. Furthermore, most models struggle with local lighting effects, like soft shadows or reflections, which are essential for grounding an object in its scene.
Methodology
InsertAnywhere employs a two-stage framework to achieve high-fidelity video object insertion.
1. 4D-Aware Mask Generation
Rather than requiring frame-by-frame manual masking, the system performs a 4D reconstruction of the scene using the Uni4D paradigm. The user places the object once in the 3D space of the initial frame. The system then utilizes scene flow (via SEA-RAFT) to track this 3D location's trajectory over time. By reprojecting this trajectory back into 2D, the model generates a temporally consistent mask sequence that inherently accounts for camera motion and complex occlusions.
2. Diffusion-Based Video Synthesis
The core synthesis engine is a fine-tuned large video diffusion model (Wan2.1-VACE-14B) using Low-Rank Adaptation (LoRA). To maintain object identity, a "first-frame guidance" strategy is used: a high-fidelity version of the object is first inpainted into the initial frame, serving as a visual anchor for synthesizing the subsequent video frames.
Datasets and Evaluation
The authors introduced two key resources to facilitate training and benchmarking:
- ROSE++: A specialized training dataset created by "inverting" the ROSE dataset (originally for object removal). Using a Vision-Language Model (VLM), they generated clean reference images of removed objects, creating triplets of object-removed video, object-present video, and reference images. This provides a supervised signal for learning how to add objects along with their associated shadows and reflections.
- VOIBench: A new benchmark consisting of 50 diverse real-world video clips (indoor, outdoor, and landscapes) paired with contextually relevant objects for testing.
Key Insights
- 4D Geometry is Essential: Realistic insertion is a geometric problem. Grounding masks in a 4D scene representation prevents the "floating" or "sliding" artifacts prevalent in 2D-only approaches.
- Learning from the Inverse: ROSE++ demonstrates that teaching a model to add an object is most effective when showing it exactly how an object was removed, capturing the lighting changes that occurred.
- Contextual Editing: Unlike standard inpainters that only modify pixels inside a mask, InsertAnywhere is trained to modify the surrounding area, which is critical for rendering realistic shadows and light bounces.
Key Results
InsertAnywhere significantly outperforms leading commercial models like Kling and Pika-Pro across several metrics:
- Subject Consistency: On the CLIP-I metric, InsertAnywhere scored 0.8122, compared to Kling's 0.6349 and Pika-Pro's 0.4940.
- Multi-View Consistency: The model maintained a high score of 0.5857, indicating stable appearance across drastic camera angle changes.
- User Preference: In a user study, participants preferred InsertAnywhere for "Object Realism" 79.09% of the time.
Qualitative "stress tests" demonstrate the model's robustness, such as maintaining perfect tracking of a pepper shaker being occluded by a hand or a bag placed on a moving cart, scenarios where baseline models typically fail.
Limitations and Future Work
Despite its performance, the framework has limitations. The quality of insertion is dependent on the accuracy of the initial 4D scene reconstruction, which can struggle in low-texture or highly dynamic environments. Currently, the method focuses on static objects; future work is needed to handle "dynamic" insertions, such as self-animated characters. Additionally, the multi-stage pipeline is likely more computationally intensive than end-to-end 2D generation methods.
Summary updated