SplatFill: 3D Scene Inpainting via Depth-Guided Gaussian Splatting

Mahtab Dahaghin, Milind G. Padalkar, Matteo Toso, Alessio Del BuearXiv 2025

TL;DR

SplatFill is a novel 3D scene inpainting framework based on 3D Gaussian Splatting (3DGS) that seamlessly fills missing regions left behind by object removal. By combining joint depth- and object-aware supervision with an iterative, localized refinement strategy, it achieves state-of-the-art perceptual quality and geometric consistency across viewpoints while slashing training time by 24.5% compared to previous methods.

What Problem Does This Paper Address?

While 3D Gaussian Splatting (3DGS) has revolutionized novel view synthesis by producing highly realistic 3D scenes at blazing-fast rendering speeds, editing these scenes remains a major headache. Specifically, when you remove an object from a 3D model, it leaves behind a "hole" or an unobserved region that needs to be filled in realistically—a task known as 3D scene inpainting.

Figure 1. The 3D scene inpainting problem: Starting from a set of images with known poses and masks occluding the area to be in- painted, we train a model to incrementally fill the masked regions with high-frequency geometric and texture details that remain con- sistent with the unmasked scene elements. The resulting method is consistent even under strong viewpoint changes.

Simply applying standard 2D image inpainting to each camera view independently doesn't work; minor variations between the generated 2D images accumulate into blurry artifacts and floating geometry when rendered in 3D. Existing 3D inpainting methods either rely on slow Neural Radiance Fields (NeRFs) or struggle to maintain geometric consistency when the camera moves significantly. SplatFill tackles this challenge by ensuring that newly generated 3D Gaussians are accurately placed in 3D space and remain perfectly aligned with the surrounding geometry from any perspective.

Methods

SplatFill introduces a structured, seven-stage pipeline that bridges high-quality 2D image generation with geometrically consistent 3D reconstruction.

Figure 2. Pipeline. (a) We begin with a set of multi-view training images, each with its corresponding binary mask and camera pose. (b) One image is selected as the reference and inpainted using a diffusion-based 2D inpainting model, providing plausible content for the masked region. (c) Monocular depth estimation is performed for each image, producing depth maps that guide the 3D spatial placement of Gaussians. (d) Instance segmentation is applied to all images to generate object masks, providing semantic priors for the 3D Gaussians. (e) The 3DGS model is optimized with supervision from the photometric, depth, and object-aware signals, producing geometrically and semantically consistent inpainting across all views. (f) Selective Guided Inpainting (SGI) is iteratively applied by identifying and refining the regions with the highest inpainting errors using updated 2D inpainting on challenging views.

The core technical innovations lie in its supervision and refinement strategies:

  1. Soft Depth Clustering Loss (SDCL): Traditional depth losses struggle with monocular depth estimators because of scale and shift discrepancies. SplatFill bypasses this by partitioning the estimated depth map into evenly spaced depth bins (clusters). It then enforces consistency between the rendered depth and the mean depth within each bin, eliminating the need for complex scale-and-shift alignment.
  2. Crop-Focused Depth Loss (CFDL): To ensure fine-grained detail inside the masked regions, the model randomly crops and expands areas around the hole, applying a Gaussian-like weighting scheme that prioritizes accuracy near the center of the inpainted zone.
  3. Object-Based Supervision: Using Segment Anything 2 (SAM2), the framework extracts 2D instance segmentation masks. It projects these into the 3D space by augmenting each Gaussian with a 16-dimensional learnable feature vector, optimized via an Object-Aware Contrastive Loss (LOACL). This forces the Gaussians to respect physical object boundaries.
  4. Selective Guided Inpainting (SGI): Instead of uniformly inpainting all views simultaneously (which causes oversmoothing), SplatFill uses an error-driven loop. It renders the scene, identifies the single viewpoint with the highest geometric discrepancy compared to the depth prior, localizes the exact error zones using gradient magnitudes, and applies 2D inpainting only to those problematic sub-regions.

Datasets

The authors evaluated SplatFill on the SPIn-NeRF dataset, a standard benchmark specifically designed for object removal in forward-facing, real-world scenes. The dataset consists of 10 distinct scenes, each containing 100 multi-view images with human-annotated object masks. For evaluation, 60 images containing the unwanted object are used for training, while the remaining 40 images (captured physically without the object) serve as the ground truth for testing.

Key Insights and Ideas

  • Scale-Invariant Geometry via Binning: Instead of trying to mathematically align absolute depth values from monocular depth estimators to the 3D scene, treating depth as a relative clustering problem (SDCL) provides a much more robust supervisory signal for positioning Gaussians.
  • Less is More in Refinement: Uniformly updating all views with generative models introduces conflicting multi-view noise. By isolating the single "worst" view and updating only its high-error sub-regions via SGI, the model preserves well-reconstructed areas while stably resolving geometric contradictions.
  • Semantic Anchoring: Embedding a semantic feature field directly into the 3D Gaussians doesn't just help with object selection; it acts as a geometric regularizer that prevents the generative inpainter from bleeding textures across distinct structural boundaries.

Key Results

SplatFill delivers significant improvements in both visual fidelity and computational efficiency:

  • Perceptual Quality: On the SPIn-NeRF dataset, SplatFill achieved a significantly lower FID score of 29.76 compared to the leading baseline, GScream (36.72), indicating much higher photorealism and better integration with the surrounding scene.
  • Efficiency: SplatFill reduced training time to just 34 minutes, representing a 24.5% speedup over GScream (45 minutes) and rendering hours faster than older NeRF-based methods like SPIn-NeRF (~112.5 mins) and OR-NeRF (~225 mins).
Table 1. Average results for all scenes in the SPIn-NeRF dataset (Full Region). ‘*’ indicates the metrics are based on those reported in GScream.

Qualitatively, the method produces noticeably sharper edges, finer textures (such as grass patterns), and fewer floating artifacts under extreme viewpoint changes.

Qualitative comparison against baselines

Limitations and Future Work

Despite its strong performance, the authors note a few remaining challenges:

  • Reference View Dependency: The final quality is heavily influenced by the initial 2D inpainted reference view, which is currently selected at random. Implementing smarter heuristics to choose the optimal starting view could improve results.
  • Independent Object Completion: While Gaussians are clustered by object, the pipeline does not yet complete missing 3D objects independently.
  • Illumination Inconsistency: The framework does not explicitly model view-dependent lighting changes, meaning that complex shadows or reflections across views can still occasionally cause minor inconsistencies.

Summary updated

BibTeX
@misc{dahaghin2025splatfill,
  author = {Mahtab Dahaghin and Milind G. Padalkar and Matteo Toso and Alessio Del Bue},
  title = {{SplatFill: 3D Scene Inpainting via Depth-Guided Gaussian Splatting}},
  year = {2025},
  eprint = {2509.07809},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.07809},
}
Figure