GP-NeRF: Generalized Perception NeRF for Context-Aware 3D Scene Understanding

Hao Li, Dingwen Zhang, Yalun Dai, Nian Liu, Lechao Cheng, Jingfeng Li, Jingdong Wang, Junwei Han

TL;DR

GP-NeRF is a new framework that bridges the gap between Neural Radiance Fields (NeRF) and 2D segmentation models to achieve superior 3D scene understanding. By shifting from simple per-pixel "label rendering" to context-aware feature prediction, it achieves state-of-the-art performance in semantic and instance segmentation, outperforming previous methods by over 10% in some benchmarks.

What Problem Does This Paper Address?

While NeRFs are excellent at synthesizing photorealistic new views of a scene, teaching them to "understand" the objects within those scenes (semantic and instance segmentation) has proven difficult.

Most existing "Semantic NeRFs" treat labels like color: they try to render a specific class label for every 3D point independently. This approach, known as "isolated label rendering," ignores the crucial spatial context—the fact that a pixel's identity is heavily influenced by its neighbors. Consequently, these methods often produce "noisy" results with blurry object boundaries and inconsistent labels within a single object. Furthermore, there is often a disconnect between the geometry of the scene (the radiance field) and its semantic meaning, leading to inconsistencies where labels don't match the physical structure.

Methods

GP-NeRF (Generalized Perception NeRF) introduces a unified pipeline that makes NeRF and powerful 2D segmentation modules work together.

  1. Transformer-based Aggregation: The authors use a Field-Aggregation Transformer to combine features from multiple reference images into a coordinate-aligned 3D feature field. This field jointly represents both radiance (color/density) and semantic embeddings.
  2. Joint Volumetric Rendering: A Ray-Aggregation Transformer then performs joint volumetric rendering. Instead of rendering final class labels, it renders "rich-semantic features" for each pixel in a novel view.
  3. Context-Aware Perception Head: These rendered features are fed into a 2D segmentation decoder (based on U-Net). This allows the model to use spatial context to make final predictions, leading to much cleaner and more accurate segments.
  4. Self-Distillation Mechanisms: To ensure the semantic features are high-quality, the authors propose two novel losses:
  5. Semantic Distill Loss ($L_{S.D}$): Uses features extracted directly from 2D images as a "teacher" to guide the rendered features.
  6. Depth-Guided Semantic Distill Loss ($L_{D.G}$): Prevents the model from "cheating" the 2D loss by ensuring semantic features are placed at the correct 3D depth, maintaining geometric consistency.
Overview of the GP-NeRF architecture showing joint field aggregation and the context-aware perception head.

Datasets

The model was evaluated on two major benchmarks:

  • Replica: A high-quality synthetic dataset of various indoor environments.
  • ScanNet: A large-scale, real-world dataset containing thousands of indoor scenes with diverse layouts and objects.

The authors tested the model in both generalized settings (evaluating on completely unseen scenes) and fine-tuning settings (optimizing on a specific scene).

Key Insights and Ideas

  • Context is King: The primary "aha moment" is that segmentation should be treated as a "prediction with context" task rather than a simple rendering task. Using a 2D decoder to process rendered features significantly cleans up object boundaries.
  • Semantics Help Geometry: Interestingly, the authors found that jointly optimizing for semantics and radiance actually improves the visual reconstruction quality (PSNR). The semantic consistency provides a strong prior that helps the model resolve ambiguous geometry.
  • The Depth-Guided Fix: A major technical insight was identifying that 2D distillation alone can corrupt scene geometry. The model might satisfy a 2D semantic loss by putting the "right" feature at the "wrong" depth. The Depth-Guided Semantic Distill Loss (illustrated in Figure 4) is essential to force the model to respect the physical structure of the scene.
Illustration of how the Depth-Guided loss prevents the model from "cheating" by misplacing semantic features along a ray.

Key Results

GP-NeRF sets new state-of-the-art (SOTA) records across multiple tasks:

  • Semantic Segmentation: On the Replica dataset, it improved the mean Intersection-over-Union (mIoU) by 6.94% in the generalized setting and a massive 11.76% after fine-tuning.
  • Instance Segmentation: It outperformed the previous SOTA (DM-NeRF) by 8.47% in AP75.
  • Reconstruction Quality: Beyond segmentation, GP-NeRF also improved RGB reconstruction, surpassing the generalized NeRF baseline (GNT) by 0.41% and Semantic-Ray by 2.8% in PSNR on ScanNet.
Qualitative comparison showing GP-NeRF's superior segmentation boundaries and feature discrimination (PCA) compared to baselines.

Limitations and Future Work

While GP-NeRF shows remarkable results, it still relies on having full semantic annotations for training. The authors note that a promising future direction is incorporating semi-supervised learning and visual saliency techniques to reduce the dependence on dense manual labels. Additionally, like many transformer-based NeRF methods, the computational cost of processing multiple reference views and rays remains a factor for real-time applications.

Summary updated

BibTeX
@inproceedings{li2023gp,
  author = {Hao Li and Dingwen Zhang and Yalun Dai and Nian Liu and Lechao Cheng and Jingfeng Li and Jingdong Wang and Junwei Han},
  title = {{GP-NeRF: Generalized Perception NeRF for Context-Aware 3D Scene Understanding}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure