GeoRemover: Removing Objects and Their Causal Visual Artifacts

Zixin Zhu, Haoxiang Li, Xuelu Feng, He Wu, Chunming Qiao, Junsong Yuan

TL;DR

GeoRemover introduces a two-stage framework that decouples object removal into geometry editing (via depth maps) and appearance rendering. By erasing an object's 3D geometric presence first, its causal visual artifacts—like shadows and reflections—are naturally and cleanly removed during the photorealistic rendering stage without over-erasing surrounding elements.

What Problem Does This Paper Address?

When you remove an object from an image, you also need to remove its secondary effects, such as the shadow it casts on the ground or its reflection in a window.

Traditional image inpainting methods fall into two flawed categories:

  1. Strictly mask-aligned methods: These only modify the user-specified mask. If the mask doesn't perfectly cover the shadow, the shadow remains, creating an unrealistic result.
  2. Loosely mask-aligned methods: These allow the model to modify regions outside the mask to clean up artifacts. However, without strict boundaries, these models lack controllability and frequently over-erase unmasked, valid objects in the scene (e.g., accidentally removing a nearby person).
Comparison of object removal training paradigms: strictly mask-aligned, loosely mask-aligned, and the proposed geometry-decoupled approach.

The authors observe that these limitations exist because current models ignore the causal relationship between an object’s physical geometry and its visual effects. Shadows and reflections are physical consequences of 3D geometry under specific lighting.

Methods

GeoRemover solves this by splitting the task into a two-stage pipeline: Geometry Removal and Appearance Rendering.

Stage 1: Geometry Removal

First, a depth estimator (Depth Anything v2) extracts the scene's geometry. Because depth maps are purely structural, they are entirely free of shadows and reflections. This allows the model to use a strictly mask-aligned diffusion model to fill in the missing depth structure, ensuring that modifications are perfectly contained within the user's mask.

To prevent the model from hallucinating weird, unrealistic structures in the filled depth map, the authors adapt Direct Preference Optimization (DPO). They define a preference objective based on "depth flow" (spatial gradients of depth values). A successful object removal should yield a smooth, continuous background surface (low depth flow), while a failed removal leaves sharp discontinuities. The model is trained to prefer smooth geometric completions over messy, hallucinated ones.

The training framework of Stage 1 (Geometry Removal) utilizing Direct Preference Optimization (DPO).

Stage 2: Appearance Rendering

Once the geometry is updated, a second diffusion model (based on FLUX.1-Fill) renders the final RGB image. It takes the original image and compares the "before" and "after" depth maps. Because the object no longer exists in the 3D geometry, the rendering model implicitly reasons that its corresponding shadows and reflections should also be omitted, resulting in a photorealistic, artifact-free image.

Datasets

The model was trained and evaluated using the following datasets:

  • RORD (Real-world Object Removal Dataset): A large-scale dataset containing 516,705 indoor images across 3,447 unique scenes, complete with paired images (with/without target objects) and manual masks.
  • RemovalBench: A popular benchmark used to evaluate image generation quality and structure preservation.
  • CausRem (New Benchmark): Introduced by the authors to specifically evaluate the removal of causal visual artifacts. It consists of 200 real-world images (100 with shadows, 100 with reflections) with separate, manually annotated masks for both the primary objects and their corresponding artifacts.

Key Insights and Ideas

  • Geometry as a Causal Anchor: Shadows and reflections are complex to model directly in the RGB domain, but they disappear in the depth domain. Modifying the geometry provides a well-posed, strongly supervised shortcut to editing complex lighting effects.
  • Unsupervised Preference via Depth Flow: Instead of relying on expensive human annotations for DPO, the authors used a mathematical heuristic—local depth smoothness—as the ground-truth preference signal to guide structural completion.
  • Bidirectional Training: In Stage 2, the rendering model is trained to perform both object removal and object insertion. This bidirectional constraint forces the model to maintain strict structural coherence and alignment with the underlying geometry.

Key Results

GeoRemover achieves state-of-the-art performance across both standard object removal benchmarks and artifact-centric evaluations:

  • Image Quality: On RemovalBench, GeoRemover achieved a Frechet Inception Distance (FID) of 29.88, significantly outperforming the previous best open-source method, OmniEraser (FID of 39.52).
  • Artifact Cleanliness: On the new CausRem benchmark, GeoRemover achieved an Intersection-over-Union (IoU) of 73.76% for accurately erasing shadows and reflections, compared to OmniEraser's 68.29%.
  • Hallucination Reduction: Integrating DPO into the geometry stage dramatically reduced the rate of wrong structural insertions (hallucinations) from 5.08% down to 1.48%.
Qualitative comparison showing GeoRemover cleanly erasing objects and their shadows/reflections compared to other baseline methods.

Limitations and Future Work

Despite its strong performance, GeoRemover has a few notable limitations:

  • Dependence on Depth Quality: If the initial depth estimation fails due to severe motion blur, translucency, or low texture, Stage 2 lacks the geometric contrast needed to trigger object removal. The authors proposed a "Local Max Depth Fill-in" heuristic to mitigate this, but a more robust geometric estimator would be ideal.
  • Complex Lighting Artifacts: For self-emitting objects (like lightbulbs) or highly reflective surfaces, the rendering stage can occasionally leave behind a faint diffuse glow or residual color bleeding rather than perfectly restoring the background illumination.

Summary updated

BibTeX
@inproceedings{zhu2025georemover,
  author = {Zixin Zhu and Haoxiang Li and Xuelu Feng and He Wu and Chunming Qiao and Junsong Yuan},
  title = {{GeoRemover: Removing Objects and Their Causal Visual Artifacts}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=RnfyqrkOxD},
}
Figure