SpectralNeRF: Physically Based Spectral Rendering with Neural Radiance Field

Ru Li, Jia Liu, Guanghui Liu, Shengping Zhang, Bing Zeng, Shuaicheng Liu

Abstract

Standard Neural Radiance Fields (NeRF) typically operate within the RGB color space, a simplification of human perception that often fails to capture the complex physics of light transport. We present SpectralNeRF, an end-to-end architecture that integrates physically based spectral rendering into the NeRF framework. By decomposing scenes into discrete spectral bands, SpectralNeRF achieves higher reconstruction fidelity and better handles intricate geometries. Our approach utilizes a SpectralMLP to generate spectral radiance fields and a Spectrum Attention UNet (SAUNet) for high-quality RGB fusion. Experimental results demonstrate that SpectralNeRF outperforms existing NeRF variants by approximately 5% in image quality metrics while maintaining competitive inference efficiency.

Introduction

The success of Neural Radiance Fields (NeRF) in 3D scene reconstruction is largely built on the RGB "tristimulus" model. However, RGB is a human-centric simplification rather than a direct physical representation of light transport. This discrepancy frequently results in artifacts such as "foggy" textures, aliasing, and loss of fine detail, particularly under varying illumination or in scenes with complex material properties.

Physically based spectral rendering, which models light across a continuous range of wavelengths, offers a solution but has traditionally been too computationally intensive for neural 3D representations. SpectralNeRF bridges this gap by representing the scene as a spectral radiance field, providing a more physically grounded and accurate 3D representation.

Methodology

The SpectralNeRF pipeline consists of two primary components: the SpectralMLP and the SAUNet fusion module.

Overview of the SpectralNeRF architecture, including the SpectralMLP radiance field and the SAUNet fusion module, alongside the real-world data acquisition setup.

SpectralMLP

Unlike standard NeRF MLPs that output RGB values, the SpectralMLP maps a 5D coordinate (spatial position and viewing direction) to volume density ($\sigma$) and a vector of $s_{num}$ spectral radiance values. In this implementation, the authors utilize 11 discrete bands spanning the visible spectrum from 380nm to 780nm. Volume rendering is applied to each band independently, resulting in a set of "spectrum maps."

Spectrum Attention UNet (SAUNet)

To convert these discrete spectral maps into a final RGB image, the authors introduce SAUNet. Simple summation is insufficient due to the sparsity of the spectral sampling. SAUNet employs a Spectrum Attention (SA) Module to learn correlations between different wavelengths using $1 \times 1$ convolutions and channel attention. Additionally, attention gates within the UNet skip connections use low-level spatial features to refine high-level features, ensuring the preservation of fine details.

Optimization

Optimization is performed using a dual-loss approach, combining a standard RGB reconstruction loss with a weighted spectrum map reconstruction loss. This latter loss prioritizes the more informative middle-wavelength bands, ensuring the model focuses on the most perceptually and physically significant data.

Experimental Setup and Results

The model was evaluated on both synthetic datasets (e.g., "Spaceship," "Digger") and real-world scenes captured with a custom multi-spectral setup involving narrow-band color filters.

Visualization of the 11 discrete spectral bands ($\lambda_c$) generated by the SpectralMLP and the final fused RGB output.

Quantitative Performance

SpectralNeRF consistently achieves superior results across standard metrics (PSNR, SSIM, LPIPS). For instance, on the "Digger" synthetic scene, SpectralNeRF reached a PSNR of 33.378, significantly higher than the 30.658 achieved by vanilla NeRF. Despite the increased complexity of rendering multiple bands, inference time remains competitive at approximately 2.85 seconds for a $256 \times 256$ resolution.

Qualitative Improvements

The spectral approach excels at recovering fine spatial details, such as sharp edges and small text, which are often blurred in RGB-based models. By breaking down the complex RGB signal into constituent spectral components, the learning task for the MLP is simplified, allowing for a more precise representation of intricate textures and the elimination of "cloudy" artifacts.

Discussion and Conclusion

SpectralNeRF demonstrates that physical grounding in spectral theory not only improves accuracy but also facilitates neural learning. The weights learned by the fusion module align closely with physical color-matching functions and standard illuminants, indicating that the model captures the underlying physics of light transport rather than merely memorizing pixels. While the current implementation requires specialized hardware for real-world ground truth acquisition, it represents a significant step toward more robust and physically accurate neural scene representations. Future work may focus on reducing the number of required spectral bands to further enhance efficiency and ease of use.

Summary updated

BibTeX
@inproceedings{li2024spectralnerf,
  author = {Ru Li and Jia Liu and Guanghui Liu and Shengping Zhang and Bing Zeng and Shuaicheng Liu},
  title = {{SpectralNeRF: Physically Based Spectral Rendering with Neural Radiance Field}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i4.28099},
}
Figure