FeatureNeRF: Learning Generalizable NeRFs by Distilling Foundation Models

Jianglong Ye, Naiyan Wang, Xiaolong Wang · DOI

TL;DR

FeatureNeRF bridges the gap between 2D vision foundation models (like DINO and Latent Diffusion) and generalizable 3D Neural Radiance Fields (NeRFs). By distilling rich 2D semantic features into a continuous 3D feature volume via neural rendering, it enables zero-shot 2D/3D keypoint transfer and object part segmentation across novel views and instances without requiring any 3D supervision.

What Problem Does This Paper Address?

While generalizable NeRFs have gotten incredibly good at synthesizing novel views of unseen objects from just a single image, they are essentially "blind" to what they are rendering. They understand geometry and color, but they lack semantic awareness—they don't know a car's wheel from its windshield.

Conversely, 2D vision foundation models (such as DINO or Stable Diffusion) possess deep semantic knowledge and can identify object parts and correspondences across different images. However, they lack 3D awareness and view consistency.

The authors introduce FeatureNeRF to combine the best of both worlds: lifting the rich, open-world semantic knowledge of 2D foundation models into a continuous, generalizable 3D semantic feature space.

Figure 1: While most generalizable NeRFs focus on novel-view synthesis, we propose a framework named FeatureNeRF to learn 3D semantic representations by distilling vision foundation models. After distillation, FeatureNeRF allows to render novel-view feature maps given a single input image (a), which can be leveraged to various downstream tasks. Here, we show how we propagate part segmentation labels and keypoints to different views and instances in both 2D and 3D domains (b).

Methods

FeatureNeRF builds upon generalizable NeRF architectures (like pixelNeRF) which map input images to 3D volumes using an image encoder and a Multi-Layer Perceptron (MLP). The authors introduce three key innovations to incorporate semantic distillation:

  1. Feature Distillation Branch: In addition to predicting density and color, the NeRF MLP is extended to output a high-dimensional semantic feature vector for any 3D query point. These vectors are aggregated along camera rays via volume rendering to produce a 2D feature map, which is directly optimized to match the feature maps of a pre-trained 2D teacher network (DINO or Latent Diffusion) using a distillation loss ($\mathcal{L}_{\text{distill}}$).
  2. Internal NeRF Features ($v_{\text{NeRF}}$): Because 2D teacher features are inherently view-dependent and often 3D-inconsistent, the authors extract view-independent features from the intermediate layers of the NeRF MLP to serve as robust 3D visual descriptors.
  3. Coordinate Regression Loss ($\mathcal{L}_{\text{coord}}$): To prevent the semantic features from losing spatial awareness, a separate MLP branch is added to regress the original 3D coordinates from the internal NeRF features, enforcing spatial consistency via a cycle-loss mechanism.
Figure 2: Pipeline of FeatureNeRF. Given a single image I as input, FeatureNeRF adopts an encoder to extract the image feature Eπ(x), and then concatenate it with the query point x as well as the view direction d as the inputs for NeRF MLPs. Apart from density σ and color c, we add two MLP branches to predict the feature vector v and coordinate ˆx, which are supervised by two novel loss terms Ldistill and Lcoord respectively. Consequently, we distill knowledge from 2D vision foundation models to FeatureNeRF. Besides, we propose to extract internal NeRF feature vNeRF as 3D-consistent feature representation.

Datasets

The model was trained and evaluated using the following datasets:

  • ShapeNet: Utilizing 6 categories (Chair, Car, Airplane, Table, Bottle, Motorcycle) for training and evaluation.
  • KeypointNet, ShapeNet part dataset, and PartNet: Used to provide ground-truth 2D/3D annotations for evaluating downstream tasks like keypoint transfer and part segmentation.
  • CO3D (Common Objects in 3D): Used for real-world training to demonstrate the model's generalizability to in-the-wild images.
  • SPair-71k: Used to evaluate real-world keypoint transfer performance.

Key Insights and Ideas

  • Rendering as a Bridge: Neural volume rendering acts as a mathematically elegant bridge to lift 2D pixel-aligned features into a consistent 3D space.
  • Decoupling View-Dependence: The authors realized that directly forcing 3D points to match 2D foundation features creates conflicts because 2D features change with the viewpoint. By separating the view-independent internal feature representation from the view-dependent rendered output, the model successfully absorbs 2D knowledge without compromising 3D consistency.
  • Spatial Anchoring: Standard NeRF features lack explicit spatial coordinates. Forcing the network to reconstruct 3D coordinates from its internal features anchors the semantic space to physical geometry.

Key Results

FeatureNeRF was evaluated on cross-instance and novel-view 2D/3D semantic keypoint transfer and part co-segmentation, consistently outperforming standard 2D foundation models and baseline NeRF features.

  • Part Co-segmentation: FeatureNeRF distilled with DINO achieved a mean Intersection over Union (mIoU) of 76.55% on 2D chair part co-segmentation, significantly outperforming the raw DINO baseline (62.43%) and standard NeRF features (72.02%).
  • Keypoint Transfer Accuracy: In both 2D and 3D domains, FeatureNeRF consistently achieved higher correspondence accuracy across all pixel/Euclidean distance thresholds compared to the baselines.
Figure 3: Correspondence accuracy for cross-instance semantic keypoints transfer. The first row is for 2D keypoints transfer and the second row is for 3D. Our approach distilled with different features consistently outperforms baselines for all categories in both 2D and 3D domains.
  • Preserving Synthesis Quality: Crucially, adding feature distillation did not degrade the model's core ability to perform novel-view synthesis, achieving PSNR and SSIM scores comparable to standard PixelNeRF.
Qualitative results showing accurate cross-instance keypoint transfer in 2D and 3D.

Limitations and Future Work

While FeatureNeRF demonstrates strong zero-shot capabilities, it still requires preprocessing steps for real-world, in-the-wild images—specifically, segmenting and normalizing the foreground object before processing.

For future work, the authors suggest exploring more complex downstream applications, such as direct 3D object editing and texture swapping leveraging the learned semantic volumes.

Summary updated

BibTeX
@misc{ye2023featurenerf,
  author = {Jianglong Ye and Naiyan Wang and Xiaolong Wang},
  title = {{FeatureNeRF: Learning Generalizable NeRFs by Distilling Foundation Models}},
  year = {2023},
  eprint = {2303.12786},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.12786},
}
Figure