Neural Radiance Field Codebooks

Matthew Wallingford, Aditya Kusupati, Alex Fang, Vivek Ramanujan, Aniruddha Kembhavi, Roozbeh Mottaghi, Ali Farhadi

Compositional representations of the world are a crucial step toward enabling high-level scene understanding and efficient transfer to downstream tasks in artificial intelligence. However, learning such representations for complex scenes without explicit human labels remains an open challenge. To address this, researchers have introduced Neural Radiance Field Codebooks (NRC), a scalable framework for learning object-centric 3D representations through novel view reconstruction.

The Challenge of Unsupervised 3D Perception

Humans naturally perceive the world as a collection of distinct objects with specific geometries and functions. For AI, parsing a scene into discrete entities rather than just a collection of pixels is incredibly difficult without explicit supervision.

Existing unsupervised methods typically fall into two categories, both with significant limitations:

  1. 2D-only approaches: These rely heavily on color and texture, often failing when objects exhibit complex patterns or are subjected to varying lighting conditions.
  2. Current 3D approaches (e.g., Slot-Attention): These models are computationally expensive because their rendering cost grows linearly with the number of objects. Furthermore, they usually assume a fixed number of objects per scene and fail to share knowledge across different environments—every time they encounter a new room, they start the decomposition process from scratch.

The NRC Approach: Learning a Global Codebook

NRC overcomes these limitations by learning a global "codebook"—a vocabulary of object categories that can be reused across thousands of different scenes. By combining a shared dictionary of object codes with a volumetric renderer (NeRF), the model learns to decompose complex scenes into meaningful, reusable parts.

The NRC pipeline operates through several key steps:

  • Encoding: A Convolutional Neural Network (CNN) processes an input image into a spatial feature map.
  • Code Assignment: Each region of the image is assigned to the nearest "code" in a finite codebook. This forces the model to categorize parts of the scene (e.g., recognizing a "floor-like pattern" or a "couch-like geometry").
  • Intra-Code Variation: Because not all objects of the same category look identical, a Variation Module adds a small perturbation to the categorical code to account for specific instance details, such as color or texture.
  • Volumetric Rendering: The model uses a NeRF-style Multi-Layer Perceptron (MLP) to reconstruct the scene from a novel view. Because the model must predict the scene's appearance from a different angle using only these codes, it is strongly incentivized to learn the underlying 3D geometry of the objects.
  • Dynamic Growth: Unlike previous models, NRC can dynamically expand its vocabulary. If the current codebook cannot adequately explain a novel scene, it differentiably adds a new entry.
Learned object codes across different scenes

Key Insights and Advantages

The architecture of NRC yields several powerful advantages for 3D scene understanding:

  • Geometry over Color: By relying on novel-view reconstruction, NRC prioritizes geometric consistency. The codebook learns that a "couch" is defined primarily by its shape, allowing it to group couches of vastly different colors under the same semantic code.
  • Constant-Time Rendering: By assigning codes to image regions rather than treating every object as a separate rendering "slot," NRC’s computational cost remains constant regardless of the number of objects in the room.
  • Semantic Grounding: The shared codebook acts as a bridge between scenes. The model recognizes a specific code as the same category of object across entirely different environments.
  • The Importance of Variation: Ablation studies reveal that modeling intra-code variation is critical. Without it, the model struggles with the diversity of real-world objects; with it, performance on segmentation tasks nearly doubles.

Performance and Results

NRC was rigorously tested on challenging environments, including ProcTHOR, RoboTHOR, CLEVR-3D, and real-world datasets like NYU Depth. It demonstrated state-of-the-art performance across multiple tasks:

  • Unsupervised Segmentation: On the ProcTHOR dataset, NRC achieved a 29.4% relative improvement in Adjusted Rand Index (ARI) over previous 3D methods like ObSuRF.
  • Real-World Transfer: When trained on synthetic data and tested on real-world NYU Depth images, NRC outperformed baselines by 29%, proving it learns robust features rather than just exploiting simulation artifacts.
  • Object Navigation: In robotic navigation tasks within THOR environments, NRC improved the success rate by 3.1% over strong baselines like EmbCLIP.
  • Depth Ordering: NRC proved 5.5% more accurate at predicting which of two objects was closer to the camera, highlighting its superior grasp of 3D spatial relationships.

Limitations and Future Directions

Despite its successes, NRC has limitations. The model currently assumes scenes are static and cannot handle dynamic videos where objects move independently. It also requires known camera poses during training, which are not always available for "in-the-wild" data. Finally, while it solves the object-scaling issue, the underlying NeRF rendering process remains memory-intensive compared to pure 2D methods. Future work may involve integrating light fields to accelerate rendering or extending the codebook framework to handle dynamic environments.

Summary updated

BibTeX
@inproceedings{wallingford2023neural,
  author = {Matthew Wallingford and Aditya Kusupati and Alex Fang and Vivek Ramanujan and Aniruddha Kembhavi and Roozbeh Mottaghi and Ali Farhadi},
  title = {{Neural Radiance Field Codebooks}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=mX56bKDybu5},
}
Figure