Optimize the Unseen - Fast NeRF Cleanup with Free Space Prior

Leo Segre, Shai Avidan

Introduction

Neural Radiance Fields (NeRFs) have fundamentally changed the landscape of 3D scene reconstruction and novel view synthesis. By representing scenes as continuous volumetric functions, they allow for photorealistic rendering from arbitrary viewpoints. However, NeRFs are prone to a specific type of artifact known as "floaters"—semi-transparent, foggy clusters of density that appear in unobserved or occluded regions of the scene.

These artifacts arise because NeRF optimization is typically an ill-posed problem. The model is trained using a photometric reconstruction loss, which only constrains the density along rays that pass through the training camera centers. In regions of the 3D volume where no training rays penetrate, the density is mathematically unconstrained. Consequently, the optimization process often settles on Maximum Likelihood (ML) solutions that hallucinate density in empty space. While these floaters might be invisible from the original training perspectives, they become a major hindrance when rendering novel views, significantly degrading image quality and spatial consistency.

Methodology: The Free Space Prior

To address this, the authors propose a lightning-fast, post-hoc cleanup method based on a Maximum-a-Posteriori (MAP) framework. Instead of relying solely on photometric data, they introduce a global "Free Space Prior" (FSP) that encourages the model to minimize density in regions not explicitly required to represent solid objects.

Uniform 3D Sampling

A key departure from standard NeRF training is the sampling strategy. While traditional methods only sample points along camera rays, this approach performs Uniform 3D Sampling across the entire bounding box of the scene. By evaluating the density at randomly distributed points in the volume—including those never "seen" by the training cameras—the method can identify and suppress floaters in previously unconstrained regions.

The proposed pipeline utilizes both randomly sampled points and points sampled across rays to optimize the NeRF model using a combination of a density prior and a reconstruction loss.

Optimization and Loss Functions

The cleanup process involves a short fine-tuning phase (typically under 30 seconds) where the pre-trained NeRF weights are updated. The optimization objective is a weighted sum of two primary losses:

  1. Photometric Reconstruction Loss ($L_{Rec}$): This ensures that the actual geometry and appearance of the scene, as captured in the training images, are preserved.
  2. Free Space Prior Loss ($L_{FSP}$): This term uses a sigmoid-softened density prior to drive the density of sampled points toward zero.

This creates a "tug-of-war" effect: the reconstruction loss maintains the density of real surfaces, while the FSP loss aggressively clears out the "vacuum" of space where no photometric evidence for density exists.

Experimental Evaluation

The effectiveness of the Free Space Prior was tested across various NeRF architectures, including Nerfacto, Instant-NGP, and LeRF. The authors utilized several challenging datasets to benchmark the performance:

  • Nerfbusters: A dataset specifically designed to expose floaters by providing evaluation views far from the training trajectory.
  • MipNeRF-360 & KITTI-360: Benchmarks for unbounded 360-degree scenes and large-scale outdoor environments.
  • Seathru-NeRF: A dataset focused on underwater scenes, which are notoriously difficult due to medium-induced scattering.

Key Results and Performance

The proposed method demonstrates significant improvements in both visual quality and computational efficiency.

Visual Quality and Artifact Removal

The qualitative results show a dramatic reduction in floaters across all tested methods and datasets. In the "Nerfbusters" benchmark, the method successfully removes the "fog" surrounding objects, leading to much sharper novel view renders.

Qualitative comparison showing the "Before" and "After" states of various NeRF methods when cleaned with the Optimize the Unseen approach. The method effectively removes foggy artifacts (floaters) across diverse datasets.

Efficiency and Speed

One of the most compelling advantages of this approach is its speed. The post-hoc cleanup is completed in under 30 seconds, making it orders of magnitude faster than diffusion-based cleanup methods (which can take ~20 minutes). Furthermore, because the method modifies the underlying NeRF weights directly, there is zero inference overhead. The final model renders at the same speed as the original, unlike uncertainty-based methods like BayesRays, which can be 2.5x slower due to per-frame calculations.

Limitations and Future Outlook

While highly effective, the "zero-density" heuristic has its limits. It is primarily designed to fix artifacts from under-optimization and cannot resolve issues stemming from fundamentally inconsistent data, such as moving objects or severe camera calibration errors. Additionally, in scenes with legitimate volumetric media (like heavy smoke), the global prior might require more careful tuning to avoid erasing real environmental effects.

Future work could involve integrating the Free Space Prior directly into the initial training loop, potentially preventing floaters from forming in the first place and further simplifying the 3D reconstruction pipeline.

Summary updated

BibTeX
@inproceedings{segre2025optimize,
  author = {Leo Segre and Shai Avidan},
  title = {{Optimize the Unseen - Fast NeRF Cleanup with Free Space Prior}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=AOj3idcleS},
}
Figure