Abstract
Neural radiance fields (NeRF) rely on volume rendering to synthesize novel views. Volume rendering requires evaluating an integral along each ray, which is numerically approximated with a finite sum that corresponds to the exact integral along the ray under piecewise constant volume density. As a consequence, the rendered result is unstable w.r.t. the choice of samples along the ray, a phenomenon that we dub quadrature instability. We propose a mathematically principled solution by reformulating the sample-based rendering equation so that it corresponds to the exact integral under piecewise linear volume density. This simultaneously resolves multiple issues: conflicts between samples along different rays, imprecise hierarchical sampling, and non-differentiability of quantiles of ray termination distances w.r.t. model parameters. We demonstrate several benefits over the classical sample-based rendering equation, such as sharper textures, better geometric reconstruction, and stronger depth supervision. Our proposed formulation can be also be used as a drop-in replacement to the volume rendering equation of existing NeRF-based methods.
The Problem: Quadrature Instability
At the heart of Neural Radiance Fields (NeRF) is volume rendering: the process of calculating pixel color by integrating light along a ray. Because this integral cannot be solved analytically for complex neural networks, it is approximated using quadrature—a finite sum of samples.
Standard NeRF formulations assume that volume density (opacity) is piecewise constant between these sample points. While computationally simple, this assumption introduces a significant flaw: quadrature instability. The rendered output becomes highly sensitive to the exact placement of samples.
This instability manifests as "ray conflicts." For instance, a camera viewing a surface perpendicularly and another viewing it at a grazing angle will perceive different density distributions for the same spatial point. To reconcile these differences during training, the optimization process often produces a blurry compromise, resulting in fuzzy surfaces, cloudy interiors, and low-frequency textures.
Methods: From Constant to Linear Opacity
The core contribution of this work is PL-NeRF, which replaces the piecewise constant assumption with a piecewise linear opacity model.
1. Piecewise Linear (PL) Formulation
Instead of treating density as a series of discrete "steps," PL-NeRF assumes density changes linearly between sample points. The authors derived a new, closed-form rendering equation that accounts for this linear transition. This allows the model to represent the underlying geometry more faithfully without requiring an excessive number of samples.
2. Precision Importance Sampling
In vanilla NeRF, the cumulative distribution function (CDF) used for importance sampling is a step function, which is not strictly invertible. This forces researchers to use heuristic "surrogate" functions. By contrast, the PL assumption yields a continuous, strictly increasing CDF. This allows for an exact, closed-form solution for inverse transform sampling using a quadratic formula, enabling the model to place samples with surgical precision near the actual object surface.
3. A Drop-in Replacement
PL-NeRF is not a new architecture but a fundamental change to the rendering integration. It can be integrated into existing frameworks like Mip-NeRF or voxel-based methods like DiVeR with minimal code modifications, acting as a drop-in replacement for the standard volume rendering equation.
Key Insights
- The "Band" Problem: Piecewise constant density creates an artificial "band" of high opacity in front of surfaces. Different rays passing through this band at varying angles receive conflicting supervisory signals, which "muddies" the neural network's weights.
- Invertibility and Gradients: A continuous and invertible CDF eliminates the need for surrogate sampling. Furthermore, the mathematically robust formulation provides stronger gradients for depth supervision, allowing the model to utilize sparse depth data (like LiDAR) more effectively than previous methods.
Results and Performance
PL-NeRF was evaluated across standard benchmarks including the Blender (Synthetic), LLFF (Real Forward Facing), and DTU datasets.
Quantitative and Qualitative Gains
- Metrics: PL-NeRF consistently outperformed vanilla NeRF across PSNR, SSIM, and LPIPS. On the Blender dataset, average PSNR improved from 30.61 to 31.10.
- Visual Fidelity: Qualitative results show significantly sharper high-frequency details, such as the weave of fabric or fine textures on synthetic models.
- Geometric Accuracy: When extracting 3D meshes via Marching Cubes, PL-NeRF produced cleaner surfaces with fewer "floaters" and better-defined edges compared to the noisy reconstructions of standard NeRF.
- Stability: The model demonstrated superior stability in close-up views, where sampling discrepancies typically cause the most significant noise in standard models.
Limitations and Future Work
While PL-NeRF offers clear advantages, it comes with a slight increase in computational cost. Rendering an 800x800 image takes approximately 32.35 seconds, compared to 25.59 seconds for vanilla NeRF. Additionally, while the model uses linear opacity, it still assumes piecewise constant color within intervals; integrating linear color could further improve results but would add significant complexity. Future work may extend this formulation to handle participating media, such as fog or smoke, more accurately.
Summary updated