Neural Directional Encoding for Efficient and Accurate View-Dependent Appearance Modeling

Liwen Wu, Sai Bi, Zexiang Xu, Fujun Luan, Kai Zhang, Iliyan Georgiev, Kalyan Sunkavalli, Ravi Ramamoorthi

TL;DR

Neural Directional Encoding (NDE) significantly improves the rendering of specular objects in NeRFs by replacing slow, analytical directional encodings with learnable feature grids. By combining a global cubemap for far-field reflections with cone-traced spatial features for near-field interreflections, NDE achieves state-of-the-art visual quality and enables real-time inference at 75 FPS.

What Problem Does This Paper Address?

Capturing the appearance of shiny, specular objects—like a polished teapot or a chrome car—remains a major hurdle for Neural Radiance Fields (NeRFs). These objects don't just have a single color; their appearance depends heavily on the viewing angle and the surrounding environment.

Existing methods typically use analytical functions (like spherical harmonics or Integrated Directional Encoding) to map viewing directions to colors. However, these functions struggle to represent high-frequency details like sharp reflections without using massive, computationally expensive Multi-Layer Perceptrons (MLPs). Furthermore, most NeRF models fail to accurately capture "near-field" interreflections—where one object's reflection appears on another—because their directional encoding doesn't account for spatial position.

Methods

The authors introduce Neural Directional Encoding (NDE), which treats directional information much like modern NeRFs treat spatial information: as a learnable feature grid.

Figure 2. Pipeline of our neural directional encoding (NDE). We encode far-field reflections into a cubemap and near-field interreflec- tions into a volume. Both representations store learnable feature vectors to encode direction and are mip-mapped to account for rough reflections. Given a reflected ray, the features are combined by tracing a cone of size proportional to the surface roughness to aggregate spatial features with cubemap features blended as the background. The result is fed into an MLP to output the specular color (Eq. (5)).

Key components include:

  • Far-field Features (Cubemap): Instead of a fixed mathematical function, NDE stores learnable feature vectors in a global cubemap. This allows the model to "learn" the environment map directly. To handle different surface roughnesses, the cubemap is pre-filtered into multiple mip-map levels.
  • Near-field Features (Cone-tracing): To capture interreflections, the method cone-traces a spatial feature grid (like a tri-plane). By aggregating features along a reflection cone rather than just a single ray, the model can represent how reflections blur and change based on the distance to nearby objects.
  • Tiny MLPs: Because the complex angular signals are already encoded in the feature grids, the final "decoding" MLP can be extremely small (e.g., 2 layers, 64 width). This is the secret to their massive speedup.
Comparison of NDE's small MLP vs. standard analytical encodings.

Datasets

The model was evaluated on several challenging benchmarks:

  • Shiny Blender Dataset: A standard for specular NeRF evaluation featuring objects like a toaster and a chrome ball.
  • NeRF Synthetic (Materials scene): Used specifically for ablation studies on complex reflections.
  • NeRO Real Scenes: Real-world captures containing complex backgrounds and reflections of the photographer.
  • Ref-NeRF Garden Spheres: A real-world dataset focused on unbounded environments and intricate interreflections.

Key Insights and Ideas

  • Learnable > Analytical: Moving from fixed directional encodings to learnable feature grids localizes signal learning. This makes it much easier for the network to fit sharp, high-frequency specular highlights that analytical functions often smooth over.
  • Spatio-Spatial Parameterization: The authors argue that interreflections are better modeled as a function of where the reflection hits next, rather than just the angle it leaves the surface. Cone-tracing spatial features effectively implements this "spatio-spatial" logic.
  • Efficiency through Architecture: By shifting the representational burden from the MLP's weights to the feature grids, NDE achieves a "best of both worlds" scenario: higher accuracy with a fraction of the computational cost during inference.

Key Results

NDE sets a new bar for both quality and performance in specular rendering:

  • State-of-the-Art Quality: On the Shiny Blender dataset, NDE outperformed leading methods like Ref-NeRF and ENVIDR in PSNR (37.19 vs. 35.88 and 34.95, respectively) and LPIPS.
  • Real-Time Performance: While Ref-NeRF renders at a glacial 0.02 FPS, NDE achieves 75 FPS on an NVIDIA 3090 GPU. A specialized real-time version (NDE-RT) can even reach over 300 FPS with minimal quality loss.
  • Complex Reflections: NDE successfully reconstructs multi-bounce reflections (e.g., a ball reflected in a teapot) that previous methods either missed or "faked" using incorrect geometry.
Figure 3. Our cubemap-based feature encoding requires only a small MLP (2 layers, 64 width) to model details in mirror reflec- tions (3rd image) comparable with IDE [49] (2nd image; 8 layers, 256 width MLP) that fails when the MLP is small (1st image).

Limitations and Future Work

  • Normal Sensitivity: Like most specular-focused NeRFs, NDE is highly sensitive to the quality of surface normals. If the underlying geometry is noisy, the reflections will look broken.
  • Training Time: While inference is real-time, training still takes 10–18 hours because the model relies on a slow, high-quality SDF (Signed Distance Field) representation for geometry.
  • Editability: While you can remove an object and its first-bounce reflections by masking the feature grid, multi-bounce reflections are harder to edit as they aren't explicitly disentangled.

Future work could involve integrating NDE with faster geometry representations like Hash Grids to bring training times down to minutes rather than hours.

Summary updated

BibTeX
@misc{wu2024neural,
  author = {Liwen Wu and Sai Bi and Zexiang Xu and Fujun Luan and Kai Zhang and Iliyan Georgiev and Kalyan Sunkavalli and Ravi Ramamoorthi},
  title = {{Neural Directional Encoding for Efficient and Accurate View-Dependent Appearance Modeling}},
  year = {2024},
  eprint = {2405.14847},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.14847},
}
Figure