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

Abstract

Neural Radiance Fields (NeRF) have set new standards for photorealistic 3D scene synthesis, yet their application to comprehensive scene understanding remains challenging. Traditional "Semantic NeRFs" often rely on per-pixel label rendering, which lacks spatial context and results in noisy segmentations. We present GP-NeRF (Generalized Perception NeRF), a framework that integrates NeRF with 2D segmentation modules by rendering high-dimensional semantic features instead of discrete labels. By employing self-distillation and depth-guided losses, GP-NeRF achieves state-of-the-art performance in both semantic and instance segmentation while maintaining high-quality geometric reconstruction.

Introduction

While NeRF excels at capturing the visual appearance of 3D scenes, translating this success to semantic understanding—identifying "what" and "where" objects are—is non-trivial. Existing methods typically treat segmentation as a point-wise classification task, adding a label-predicting branch to the NeRF architecture. This "isolated label rendering" approach ignores the spatial relationships between neighboring pixels, leading to inconsistent object boundaries and misclassifications within object interiors. GP-NeRF addresses these limitations by shifting from per-pixel labels to context-aware feature rendering.

Methodology

The GP-NeRF architecture is designed to harmonize 3D volumetric rendering with 2D perception capabilities.

Feature Rendering and Perception

Unlike standard semantic NeRFs, GP-NeRF outputs a high-dimensional semantic embedding field. This field is rendered into a 2D feature map, which is then processed by a "Perception Head" (a U-Net style decoder). This design allows the model to leverage global image context for final classification, resolving local ambiguities that per-pixel methods cannot.

Qualitative results of GP-NeRF showing reconstruction, segmentation, and PCA feature maps.

Transformer-Based Aggregation

The framework utilizes two specialized Transformer modules:

  • Field-Aggregation Transformer (FAT): Aggregates features from multiple reference views to construct the underlying 3D radiance and semantic fields.
  • Ray-Aggregation Transformer (RAT): Performs volumetric rendering by combining sampled points along a ray to generate the final 2D feature map.

Self-Distillation and Geometric Consistency

To ensure feature quality, GP-NeRF employs two primary distillation losses:

  1. Semantic Distill Loss ($L_{S.D}$): A 2D teacher network provides supervision for the rendered features.
  2. Depth-Guided Semantic Distill Loss ($L_{D.G}$): This loss prevents "semantic bleeding" into empty space by using depth information to ensure that semantic features are concentrated on actual object surfaces, preserving geometric sharpness.

Evaluation

GP-NeRF was evaluated on two benchmark datasets:

  • Replica: A synthetic dataset of indoor environments with dense annotations.
  • ScanNet: A real-world dataset of thousands of 3D scans, characterized by significant sensor noise and geometric complexity.

Key Results

GP-NeRF demonstrates substantial improvements over previous state-of-the-art methods, including Semantic-Ray and DM-NeRF.

Quantitative comparison of GP-NeRF against state-of-the-art methods across three segmentation tasks.
  • Semantic Segmentation: On the Replica dataset, GP-NeRF improved mean Intersection-over-Union (mIoU) by 6.94% in generalized settings and 11.76% after fine-tuning.
  • Instance Segmentation: The model outperformed DM-NeRF by 8.47% in the AP75 metric, indicating superior object differentiation.
  • Reconstruction and Efficiency: Beyond segmentation, the model improved visual quality (PSNR increased by 2.8 dB on ScanNet) and required significantly fewer fine-tuning steps (2.5k vs. up to 50k for competitors).

Discussion and Key Insights

A central finding of this work is the synergy between geometry and semantics: joint optimization allows semantic consistency to refine 3D reconstruction, while better geometry leads to cleaner segmentation. By prioritizing context through the 2D perception head, GP-NeRF effectively resolves ambiguities that plague per-pixel models.

Limitations and Future Work

Currently, GP-NeRF requires full semantic and instance labels for training, which are costly to obtain for real-world data. Future research will explore semi-supervised learning and the incorporation of visual saliency to reduce reliance on dense annotations and scale the approach to larger, more diverse environments.

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