Paper commentary
NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis
- Problem Rendering unseen views of a complex scene from a few posed photographs is hard for existing representations: mesh optimization gets stuck, implicit networks oversmooth, and voxel grids grow too costly at high resolution.
- Method Trains one multilayer perceptron per scene that maps a 5D coordinate to volume density and view-dependent color, then renders rays with volume rendering. Positional encoding and hierarchical sampling are added to fit high-frequency detail with fewer queries.
What existing scene representations struggle with
The task is view synthesis: given photographs of a scene whose camera poses are known, render the scene from viewpoints that were never photographed. Mesh-based methods can be optimized through differentiable rasterizers or path tracers, but gradient descent on reprojected images often stalls in local minima, and a template mesh with fixed topology is usually needed first.
Volumetric methods handle complex shapes and materials more gracefully, but a voxel grid needs a finer sampling of 3D space as resolution rises, and its storage cost grows with it.
Networks that map a 3D location to a signed distance or an occupancy value can be trained from images, but so far they have handled only simple shapes and produce oversmoothed renderings. Learning-based volumetric methods avoid per-scene fitting by predicting sampled volumes from input images, yet their discrete sampling limits the resolution they can reach.
The gap this work targets is a representation that is continuous, so resolution is not fixed by a grid, and that can still be fitted directly from the same photographs.
A continuous 5D function for each scene
The network takes a 3D location x = (x,y,z) and a viewing direction and outputs an RGB color and a volume density. Samples are taken along camera rays, passed through the network, and composited into pixel colors; because this chain is differentiable, the network weights can be adjusted until rendered pixels match the captured images.
The location first passes through eight fully-connected layers with 256 channels and ReLU activations. These layers produce the volume density and a 256-dimensional feature vector, so the density is a function of location alone. This restriction is how the representation is pushed toward multiview consistency. The feature vector is concatenated with the viewing direction and passed through one more fully-connected layer with 128 channels, which outputs the view-dependent RGB color.
Because direction enters only at the color stage, the model can represent specular effects. A model trained without view dependence has difficulty with specularities.
Rendering a ray by volume integration
For a camera ray r(t) = o + t d with near and far bounds t_n and t_f, the expected color is \(C(r)=\int_{t_n}^{t_f} T(t)\,\sigma(r(t))\,c(r(t),d)\,dt\), where \(T(t)=\exp\!\left(-\int_{t_n}^{t}\sigma(r(s))\,ds\right)\). The density acts as a differential opacity, and T(t) is the probability that the ray reaches t without hitting another particle.
A continuous network cannot be integrated exactly, so the integral is estimated with quadrature. Fixed evaluation points would query the network only on a discrete set, which would cap the resolution. Instead the interval \([t_n,t_f]\) is split into N evenly spaced bins and one sample is drawn uniformly inside each bin, so that over optimization the network is evaluated at continuous positions.
The discrete estimate is \(\hat C(r)=\sum_{i=1}^{N}T_i(1-\exp(-\sigma_i\delta_i))c_i\), with \(T_i=\exp(-\sum_{j=1}^{i-1}\sigma_j\delta_j)\) and \(\delta_i=t_{i+1}-t_i\). Each sample contributes its color weighted by its alpha value \(1-\exp(-\sigma_i\delta_i)\) and by the transmittance of the samples in front of it. This reduces to alpha compositing and is differentiable in the densities and colors.
Positional encoding for high-frequency detail
Feeding raw coordinates and angles to the network gives renderings that handle high-frequency variation in color and geometry poorly. The authors connect this to evidence that deep networks are biased toward lower-frequency functions, and that lifting the inputs into a higher-dimensional set of high-frequency features helps fitting data with fine variation.
The model is written as a composition \(F_\Theta=F'_\Theta\circ\gamma\), where γ is a fixed encoding and \(F'_\Theta\) is a regular learned MLP. The same kind of mapping appears in Transformers, where it gives token positions. Here it lifts continuous coordinates instead, so the MLP can approximate higher-frequency functions.
Spending samples where the scene is
Querying N points densely along every ray wastes work on free space and occluded regions that never reach the image. Two networks are therefore optimized together, a coarse one and a fine one, so that the coarse output tells the fine stage where to look.
The coarse network is evaluated at Nc stratified samples, and its compositing is rewritten as \(\hat C_c(r)=\sum_{i=1}^{N_c}w_i c_i\) with \(w_i=T_i(1-\exp(-\sigma_i\delta_i))\). Dividing each weight by the sum over all coarse weights, \(\hat w_i=w_i/\sum_{j=1}^{N_c}w_j\), gives a piecewise-constant probability density along the ray.
Nf fine locations are drawn from this density by inverse transform sampling. The fine network is evaluated at the union of coarse and fine samples, and the final color is composited from all Nc + Nf samples, so more samples fall in regions expected to contain visible content.
Per-scene optimization and training setup
Each scene gets its own network, fitted from captured RGB images, the camera poses, intrinsic parameters and scene bounds. For synthetic data the ground-truth poses, intrinsics and bounds are used; for real captures they are estimated with the COLMAP structure-from-motion package.
Each iteration samples a batch of 4096 rays from all pixels in the dataset, and each ray is rendered from 64 coarse samples and 128 fine samples. The loss is a summed squared error, \(L=\sum_{r\in R}\left[\|\hat C_c(r)-C(r)\|_2^2+\|\hat C_f(r)-C(r)\|_2^2\right]\), over the rays R in the batch, covering both the coarse and fine renderings.
The coarse term matters because the final color comes from the fine rendering, yet the coarse weight distribution is what allocates the fine samples.
Datasets and baselines
The DeepVoxels dataset has four Lambertian objects with simple geometry, rendered at 512 × 512 pixels with 479 input views and 1000 test views. The authors also built a Realistic Synthetic 360◦ dataset of eight pathtraced objects with complicated geometry and non-Lambertian materials, using 100 input views and 200 test views at 800 × 800 pixels.
The Real Forward-Facing dataset has eight scenes captured with a handheld cellphone, five taken from the LLFF paper and three captured by the authors, with 20 to 62 images per scene. One eighth of the images in each scene is held out for testing, and all images are 1008×756 pixels.
NV optimizes a 3D convolutional network that predicts a discretized RGBα voxel grid, and it applies only to objects inside a bounded volume in front of a separately captured background, so it is not evaluated on the real data. SRN represents the scene as an opaque surface implicitly defined by an MLP, with a recurrent network that marches along each ray and decodes one color per surface point.
LLFF trains one 3D convolutional network on a large dataset and uses it on new scenes, predicting a multiplane image for each input view and blending nearby ones at render time. The other baselines are trained separately for each scene.
Quantitative comparisons
Table 1 reports PSNR and SSIM, where higher is better, and LPIPS, where lower is better, for each dataset and method.
These are per-scene averages over eight objects with 200 test views each, so the gap reflects the whole set rather than any single object.
LLFF has the lower LPIPS, 0.212 against 0.250 for NeRF. NV was not evaluated on this dataset. The authors point to their supplementary video for better multiview consistency and fewer artifacts, which the table does not capture.
Qualitative comparisons on the synthetic scenes show LLFF with banding and ghosting, SRN with blurry and distorted renderings, and NV missing fine structure such as the microphone grille and the Lego gears.
What each component contributes
The authors rank positional encoding and view dependence as the largest contributors, followed by hierarchical sampling.
Fig. 4 shows the qualitative side of the same two components: without view dependence the specular reflection on the bulldozer tread is lost, and without positional encoding the geometry and texture are oversmoothed.
The authors state that the 25-image model still exceeds NV, SRN and LLFF on all metrics when those are given 100 images, a comparison that appears in their supplementary material.
The authors argue that the gain from raising L stops once 2^L exceeds the highest frequency in the sampled input images, which they put at roughly 1024 in their data.
Storage and optimization cost
The NeRF network weights for a single scene take 5 MB, which the authors describe as a relative compression of 3000× compared with LLFF.
For NeRF the optimization for a single scene typically takes around 100–300k iterations, about 1–2 days on a single NVIDIA V100 GPU.
The trade-off is therefore training time against storage: NeRF is slow to fit but compact to keep, while LLFF is quick to process but heavy to store.
Limits of the method and the evidence
Each new scene needs its own optimization run, since every scene gets a separately trained network. The authors also note that the two single-scene baselines and NeRF all need this per-scene training, whereas LLFF is trained once and reused.
The authors state that NV's explicit 128 3 voxel grid prevents it from scaling to fine details at high resolution. They state that LLFF's sampling guideline keeps disparity below 64 pixels, so it frequently fails on the synthetic datasets, which have up to 400-500 pixels of disparity between views. They also state that SRN produces heavily smoothed geometry and texture because it selects a single depth and color per camera ray.
The authors leave two questions open: whether sample efficiency can be improved further in both training and rendering, and how to analyze failure modes when a scene is encoded in the weights of a deep network.
The quantitative comparisons use four diffuse objects, eight pathtraced objects and eight real scenes, and the ablation uses the eight pathtraced objects only. Claims about multiview consistency and artifacts rest partly on the supplementary video, which is not part of the text the analysis is based on.
Paper info
- Authors
- Ben Mildenhall, Pratul P. Srinivasan, Matthew Tancik, Jonathan T. Barron, Ravi Ramamoorthi, Ren Ng
- Venue
- arXiv · Preprint
- First published
- 2020-3-19
- Added
- 2026-10-20
- Updated
- 2020-8-3
- Version
- v2
- arXiv
- 2003.08934
- Category
- cs.CV · cs.GR
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Ben Mildenhall, Pratul P. Srinivasan, Matthew Tancik, Jonathan T. Barron, Ravi Ramamoorthi, Ren Ng (2020). NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis. arXiv:2003.08934v2. https://arxiv.org/abs/2003.08934v2
BibTeX
@misc{mildenhall2020nerf,
title = {{NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis}},
author = {Ben Mildenhall and Pratul P. Srinivasan and Matthew Tancik and Jonathan T. Barron and Ravi Ramamoorthi and Ren Ng},
year = {2020},
eprint = {2003.08934},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2003.08934v2}
}