Introduction
Video object removal, a specialized form of inpainting, remains a significant challenge in computer vision. While modern diffusion models have revolutionized video generation, the specific task of erasing objects while maintaining temporal coherence and background consistency often results in visual artifacts like "ghosting" or blurred textures. Furthermore, existing state-of-the-art methods typically suffer from high computational latency due to their reliance on Classifier-Free Guidance (CFG) and a high number of sampling steps.
This paper introduces MiniMax-Remover, a novel two-stage framework designed to address these challenges. By replacing complex text prompts with contrastive condition tokens and employing a minimax optimization strategy to "tame" adversarial noise, MiniMax-Remover achieves state-of-the-art performance with significantly reduced inference times.
Methodology
MiniMax-Remover moves away from traditional text-conditioned diffusion models, opting for a more streamlined and robust architecture.
Stage 1: Contrastive Condition Tokens
The framework utilizes a Diffusion Transformer (DiT) backbone (specifically Wan2.1-1.3B). A key architectural innovation is the removal of all cross-attention layers, which are typically used for text conditioning. The authors argue that text prompts are often redundant for object removal tasks. Instead, they introduce two learnable Contrastive Condition Tokens:
- Positive Token ($c^+$): Guides the model to fill masked regions with background-consistent content.
- Negative Token ($c^-$): Explicitly discourages the reconstruction of the unwanted object.
These tokens are injected directly into the self-attention stream, simplifying the model and improving efficiency.
Stage 2: Minimax Optimization
The core contribution of this work is the "taming" of "bad noise." The authors observed that specific input noise patterns often trigger model failures, leading to the reappearance of the masked object. To counter this, they implement a minimax optimization strategy:
- Inner Maximization: The model identifies adversarial noise patterns that maximize prediction error—essentially finding the noise that most likely causes the removal to fail.
- Outer Minimization: The model is then trained to minimize error specifically against these adversarial patterns.
This adversarial training makes the model exceptionally robust, allowing it to function effectively without Classifier-Free Guidance (CFG) during inference. Since CFG requires two model evaluations per step, its removal effectively halves the computational cost.
Experimental Setup
The model was trained in two phases. Stage 1 utilized a subset of WebVid-10M, comprising 2.5 million video-mask pairs. Stage 2 involved a more refined training process using a curated dataset of 10,000 high-quality video removals, which were generated by the Stage 1 model and manually verified by human annotators.
Evaluation was conducted on the DAVIS dataset (90 videos) and a generalization set of 200 videos from Pexels.
Results and Discussion
MiniMax-Remover demonstrates substantial improvements in both efficiency and visual quality over existing methods like Propainter, DiffuEraser, and FloED.
Efficiency and Speed
The model achieves high-quality results in as few as 6 sampling steps. Combined with the removal of CFG, this leads to a dramatic reduction in latency. On an A800 GPU, MiniMax-Remover processes videos in just 0.18 seconds, compared to 0.35s for DiffuEraser and over 1.3s for FloED.
Visual Quality and Success Rate
Quantitative evaluation using GPT-O3 on the DAVIS dataset shows a 91.11% success rate, nearly doubling the performance of previous leaders like Propainter (56.67%). Qualitative analysis confirms that MiniMax-Remover produces fewer artifacts and maintains better temporal consistency than flow-based or standard generative approaches.
Conclusion and Future Work
MiniMax-Remover proves that by focusing on noise robustness and task-specific conditioning, video object removal can be made both faster and more accurate. While the DiT backbone is highly optimized, the authors identify the VAE (Variational Autoencoder) encoding and decoding as the remaining primary bottleneck. Future research will explore more efficient VAE architectures and larger curated datasets to further push the boundaries of real-time video editing.
Summary updated