Drantal-NeRF: Diffusion-Based Restoration for Anti-aliasing Neural Radiance Field

Ganlin Yang, Kaidong Zhang, Jingjing Fu, Dong LiuarXiv 2024 · DOI

TL;DR

Drantal-NeRF introduces a novel two-stage framework that treats aliasing in Neural Radiance Fields (NeRF) as a 2D image restoration problem rather than a 3D representation challenge. By leveraging the generative priors of pretrained diffusion models, it significantly enhances the visual quality of renderings from any NeRF backbone, effectively removing "jaggies," blur, and artifacts in complex, large-scale scenes.

Introduction

While NeRFs excel at synthesizing novel views of small, centered objects, they often struggle with unbounded 360-degree scenes (like a park) or large-scale urban environments (like a city block). In these scenarios, renderings frequently suffer from aliasing artifacts—jagged edges, shimmering, and loss of fine detail.

The authors identify three main culprits for these artifacts:

  1. Limited Representation Capacity: Voxel grids and MLPs have finite memory; they simply cannot store every minute detail of a square kilometer.
  2. Inappropriate Parameterization: Standard rays struggle to reason about scale, particularly for objects at varying distances.
  3. Ill-posed Optimization: Regions seen from only a few angles often lead to "floaters" or blurry patches.

Previous solutions involved complex mathematical reformulations like Mip-NeRF’s conical frustums. Drantal-NeRF takes a different path: it assumes the NeRF output is a "degraded" version of reality and uses a diffusion model to "restore" it.

Methodology

The core of Drantal-NeRF is a two-stage training paradigm designed to be NeRF-agnostic, allowing it to function as a plug-in for various architectures.

The Drantal-NeRF architecture featuring a two-stage training paradigm: aliasing-conditioned diffusion finetuning and feature wrapping for high-fidelity restoration.
  • Stage 1: Aliasing-conditioned Diffusion Finetuning. The authors take a pretrained Stable Diffusion model and finetune it to map "low-quality" (LQ) NeRF patches to "high-quality" (HQ) ground truth patches. They use a time-aware encoder to extract multi-scale features from the aliased NeRF rendering. These features are injected into the diffusion process via Spatial Feature Transformation (SFT) layers, ensuring the model generates details that match the scene's structure.

  • Stage 2: Feature Wrapping for Fidelity. To prevent the generative model from hallucinating details and to ensure multi-view consistency, the authors introduce a Controllable Feature Wrapping (CFW) module. This module fuses features from the original NeRF input into the VAE decoder. They also finetune the VAE decoder itself using an adversarial loss to better adapt to the specific scene's distribution.

  • Inference Trick: To handle high-resolution images, they employ a Patch Aggregation strategy during the reverse sampling process, allowing for seamless, high-res restoration.

Datasets

The authors evaluated their method on two challenging benchmarks:

  • MatrixCity: A large-scale urban dataset featuring aerial views of city blocks, testing the model's ability to handle massive scale and intricate structural details.
  • MipNeRF-360: The standard benchmark for unbounded scenes, containing five outdoor and four indoor environments with complex backgrounds and lighting.

Key Insights and Ideas

  • Restoration vs. Representation: By shifting the burden of detail from the 3D representation to a 2D generative prior, the model bypasses the cubic memory growth associated with increasing voxel resolution.
  • Joint Training is Better: Training the NeRF and the diffusion model simultaneously in Stage 1 is more effective than sequential training. This exposes the diffusion model to a wider variety of "degradation types" as the NeRF converges, making the restoration more robust.
  • Consistency through Fidelity: Forcing the diffusion model to stay faithful to the NeRF input through the CFW module achieves better multi-view consistency without needing a complex 3D-aware diffusion architecture.

Key Results

Drantal-NeRF achieved state-of-the-art performance across both quantitative metrics and qualitative visual quality. Visual results show significantly sharper building edges, clearer road markings, and the removal of "floaters" in empty space.

Quantitative comparison of Drantal-NeRF against various baselines on the MatrixCity (left) and MipNeRF-360 (right) datasets.

On the MatrixCity dataset, it improved the GridNeRF baseline by 1.0 dB in PSNR and slashed the perceptual error (LPIPS) from 0.385 to 0.201. On MipNeRF-360, it boosted the already-strong ZipNeRF by 0.84 dB in PSNR, reaching a top score of 29.41 dB.

Furthermore, the authors demonstrated that a low-resolution voxel grid (e.g., $200^3$) enhanced by Drantal-NeRF can outperform a much higher-resolution grid ($500^3$) alone, offering a path toward more memory-efficient 3D reconstruction.

Limitations and Future Work

  • Computational Overhead: Integrating a diffusion model adds significant overhead, making rendering slower than a "pure" NeRF due to iterative denoising steps.
  • Color Consistency: Diffusion models can occasionally cause global color shifts. While a mean/variance color correction step was implemented, more integrated solutions for multi-view illumination consistency remain an open area.
  • Future Directions: Potential future work includes exploring faster diffusion techniques like Latent Consistency Models and applying this restoration approach to other 3D representations, such as 3D Gaussian Splatting.

Summary updated

BibTeX
@misc{yang2024drantal,
  author = {Ganlin Yang and Kaidong Zhang and Jingjing Fu and Dong Liu},
  title = {{Drantal-NeRF: Diffusion-Based Restoration for Anti-aliasing Neural Radiance Field}},
  year = {2024},
  eprint = {2407.07461},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.07461},
}
Figure