NeRF in the Dark: High Dynamic Range View Synthesis from Noisy Raw Images

Ben Mildenhall, Peter Hedman, Ricardo Martin-Brualla, Pratul P. Srinivasan, Jonathan T. Barron

Abstract

RawNeRF transforms Neural Radiance Fields (NeRF) from a view synthesis tool into a powerful high-dynamic-range (HDR) restorer. By training directly on noisy, linear raw sensor data instead of processed JPEGs, the system can "see in the dark," outperforming state-of-the-art denoisers while enabling post-capture control over exposure, tonemapping, and focus.

Introduction

Standard NeRF implementations typically ingest low-dynamic-range (LDR) images—the 8-bit JPEGs produced by standard camera pipelines. While visually appealing to humans, these images are the product of lossy processing that clips highlights, smothers fine detail to hide noise, and applies non-linear tonemapping.

This creates two major hurdles for 3D reconstruction. First, in high-contrast scenes, JPEGs lose critical information in shadows and highlights. Second, while raw sensor noise is generally "zero-mean" (averaging out to the true signal), camera processing distorts this distribution. This introduces a permanent bias that prevents standard NeRF from accurately reconstructing dark scenes.

A raw input image from a scene lit only by a single candle, showing extreme darkness and noise.

Methodology

RawNeRF bypasses the camera pipeline entirely to work with linear radiance. Key technical innovations include:

  • Linear HDR Supervision: The model is trained to output linear radiance rather than sRGB values, preserving the scene's full dynamic range.
  • Gradient-Weighted Loss: To handle HDR values spanning many orders of magnitude, the authors use a reweighted loss that penalizes errors in dark areas more heavily, aligning with human perception without introducing non-linear bias.
  • NeRF as a Denoiser: The core advantage lies in NeRF’s multi-view consistency. By optimizing a single 3D representation over dozens of noisy 2D images, the model naturally filters out zero-mean raw noise more effectively than dedicated 2D denoisers.

Results and Discussion

RawNeRF demonstrates a significant leap in visual fidelity. On real-world datasets, it achieved an sRGB PSNR of 23.53, vastly outperforming standard NeRF (19.43) and even beating specialized multi-image denoisers like UDVD (22.75).

Reconstructed HDR scene using RawNeRF, showing recovered details and dynamic range.

Beyond denoising, the resulting linear HDR model allows for sophisticated "post-capture photography." Users can adjust exposure or apply tonemapping after reconstruction. Furthermore, because the model knows the true intensity of light sources, it can render physically correct synthetic defocus (bokeh) effects that LDR models cannot replicate.

Conclusion

By shifting the focus from human-centric JPEGs to machine-centric raw data, RawNeRF proves that multi-view consistency is a powerful prior for denoising and HDR recovery. While currently limited to static scenes and requiring accurate initial pose estimation, it sets a new standard for high-fidelity 3D reconstruction in challenging lighting environments.

Summary updated

BibTeX
@inproceedings{mildenhall2021nerf,
  author = {Ben Mildenhall and Peter Hedman and Ricardo Martin-Brualla and Pratul P. Srinivasan and Jonathan T. Barron},
  title = {{NeRF in the Dark: High Dynamic Range View Synthesis from Noisy Raw Images}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr52688.2022.01571},
}
Figure