GeoRemover: Removing Objects and Their Causal Visual Artifacts

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

Abstract

Object removal in digital image editing often fails to address "causal" visual artifacts, such as shadows and reflections, which exist outside the primary object mask. Traditional inpainting methods, being strictly mask-aligned, frequently leave behind unrealistic "ghostly" remnants. We introduce GeoRemover, a geometry-aware two-stage framework that decouples object removal into geometric erasure and appearance rendering. By first removing the object from the scene's 3D geometry (depth map) and subsequently re-rendering the image, GeoRemover naturally eliminates artifacts whose physical cause has been removed. Our method achieves state-of-the-art performance on standard benchmarks and a newly introduced dataset, CausRem, specifically designed to evaluate the removal of causal artifacts.

Introduction: The Problem of Residual Artifacts

A persistent challenge in image editing is the removal of an object along with its secondary effects. When a user employs a standard "magic eraser" tool, the object is typically removed, but its shadow or reflection often remains as a smudge on the background. This occurs because traditional inpainting models are "strictly mask-aligned"—they are constrained to modify only the pixels within the user-provided mask.

Traditional inpainting methods often leave behind 'ghostly' artifacts or shadows because they are strictly limited to the user-provided mask.

While some recent "loosely mask-aligned" models attempt to clean up these areas by looking outside the mask, they frequently suffer from "hallucinations" or background distortion. The fundamental issue is that these models attempt to reason about complex 3D lighting and geometry within a 2D pixel space. GeoRemover addresses this by treating shadows and reflections as physical consequences of 3D structure.

Methodology: Decoupling Geometry and Appearance

The researchers propose a two-stage framework that separates the structural removal of an object from the synthesis of its visual appearance.

The GeoRemover pipeline: Stage 1 removes the object from the 3D geometry (depth map), and Stage 2 renders the final image, naturally eliminating causal artifacts like shadows.

Stage 1: Geometry Removal

Instead of operating directly on the RGB image, GeoRemover first processes a depth map of the scene. Depth maps are inherently "artifact-free" because shadows and reflections do not possess physical depth. By erasing the object from the depth map using strictly mask-aligned supervision, the model removes the physical "cause" of any associated artifacts. To prevent the generation of irregular shapes in the vacated area, the model is trained using Direct Preference Optimization (DPO). This encourages the model to prefer "smooth depth flow" (continuous surfaces) over "sharp depth transitions" (leftover geometric fragments).

Stage 2: Appearance Rendering

Once the 3D geometry is cleaned, a diffusion-based renderer (based on FLUX.1-Fill) synthesizes the final image. The renderer compares the original and modified geometry to identify the areas requiring update. Since the underlying 3D structure no longer supports a shadow or reflection, the renderer naturally fills these regions with a clean, consistent background. A "bidirectional" training approach, involving both object removal and insertion, further improves the model's ability to render realistic textures and lighting.

Datasets and Evaluation

GeoRemover was evaluated against several key benchmarks:

  • RORD (Real-world Object Removal Dataset): A large-scale dataset containing over 500,000 real-world images.
  • RemovalBench: A standard benchmark for assessing image quality and consistency in object removal tasks.
  • CausRem: A new benchmark introduced by the authors to specifically test the removal of "causal" artifacts. It includes 200 real-world images with manual annotations for both objects and their associated shadows or reflections.

Key Results

GeoRemover achieved State-of-the-Art (SOTA) performance across both quantitative and qualitative metrics:

  • Quantitative Performance: On the RORD dataset, GeoRemover significantly outperformed existing models like OmniEraser and CLIPAway in terms of FID (realism) and LPIPS (perceptual similarity). On the CausRem benchmark, it achieved a 73.76% IoU for artifact removal, surpassing the previous best by over 5%.
  • Qualitative Quality: In comparative tests, GeoRemover was the only framework capable of consistently removing long shadows and complex reflections (e.g., on water or glass) without distorting the surrounding unmasked environment.

Limitations and Future Work

Despite its advancements, GeoRemover faces challenges in specific scenarios. If the initial depth estimation is inaccurate—common with fast-moving objects or transparent surfaces—the removal process may fail. Additionally, "self-emitting" objects like light bulbs are difficult to remove because they create global illumination effects (glow) that are not strictly tied to local geometry. Future research will explore the integration of more sophisticated lighting models and improved depth estimation for complex materials.

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