Neural Radiance Fields (NeRF) represent a scene as a continuous volumetric function using a neural network. Given a sparse set of input images, NeRF can synthesize photorealistic novel views of complex scenes.
Scene Representation
NeRF models a scene as a function FΘ that maps a 3D position x=(x,y,z) and viewing direction d=(θ,ϕ) to a color c=(r,g,b) and volume density σ:
FΘ:(x,d)→(c,σ)
Volume Rendering
To render a pixel, we cast a ray r(t)=o+td and integrate:
C(r)=∫tntfT(t)⋅σ(r(t))⋅c(r(t),d)dt
where the transmittance is:
T(t)=exp(−∫tntσ(r(s))ds)
In practice, this is approximated with quadrature using stratified sampling.
Positional Encoding
Raw coordinates are mapped to higher dimensions using sinusoidal functions:
This allows the MLP to represent high-frequency details.
Hierarchical Sampling
NeRF uses two networks:
Coarse network: Sampled uniformly along the ray
Fine network: Samples concentrated where the coarse network predicts high density
Training
The loss is simply the MSE between rendered and ground truth pixel colors:
L=∑r∈RC^(r)−Cgt(r)2
Limitations
Slow training: Hours per scene
Slow rendering: Seconds per frame (ray marching)
Static scenes only: Original NeRF cannot handle dynamic content
Requires accurate camera poses
Extensions
Instant-NGP: Hash-based encoding for fast training (minutes)
Mip-NeRF: Anti-aliased rendering with cone tracing
D-NeRF: Dynamic scenes with deformation fields
NeRF in the Wild: Handles varying lighting and transient objects
Conclusion
NeRF pioneered neural scene representations and novel view synthesis. While largely superseded by 3D Gaussian Splatting for real-time applications, NeRF's mathematical framework remains foundational.
References
Mildenhall et al., "NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis," ECCV 2020.
Barron et al., "Mip-NeRF: A Multiscale Representation for Anti-Aliasing Neural Radiance Fields," ICCV 2021.