NeRF-MAE: Masked AutoEncoders for Self-Supervised 3D Representation Learning for Neural Radiance Fields
Muhammad Zubair Irshad, Sergey Zakharov, Vitor Guizilini, Adrien Gaidon, Zsolt Kira, Rares Ambrus
TL;DR
NeRF-MAE targets scalable, self-supervised 3D representation learning for Neural Radiance Fields by operating directly on a dense radiance-density grid extracted from NeRFs. The method masks random 3D patches in a canonical 4D grid and trains a standard 3D Swin Transformer encoder with lightweight decoders to reconstruct the masked regions, optimizing both radiance and opacity terms. Trained on over 1.8 million posed RGB images from Front3D, HM3D, Hypersim, and ARKitScenes, NeRF-MAE achieves strong transfer performance on downstream 3D tasks such as 3D object detection, voxel labeling, and voxel super-resolution, outperforming self-supervised 3D pretraining and NeRF-scene baselines by substantial margins. This approach demonstrates that dense NeRF grids enable effective Transformer-based pretraining, offering data-efficient 3D learning from unlabeled 2D data and opening avenues for future improvements in efficiency and cross-view neural rendering collaboration.
Abstract
Neural fields excel in computer vision and robotics due to their ability to understand the 3D visual world such as inferring semantics, geometry, and dynamics. Given the capabilities of neural fields in densely representing a 3D scene from 2D images, we ask the question: Can we scale their self-supervised pretraining, specifically using masked autoencoders, to generate effective 3D representations from posed RGB images. Owing to the astounding success of extending transformers to novel data modalities, we employ standard 3D Vision Transformers to suit the unique formulation of NeRFs. We leverage NeRF's volumetric grid as a dense input to the transformer, contrasting it with other 3D representations such as pointclouds where the information density can be uneven, and the representation is irregular. Due to the difficulty of applying masked autoencoders to an implicit representation, such as NeRF, we opt for extracting an explicit representation that canonicalizes scenes across domains by employing the camera trajectory for sampling. Our goal is made possible by masking random patches from NeRF's radiance and density grid and employing a standard 3D Swin Transformer to reconstruct the masked patches. In doing so, the model can learn the semantic and spatial structure of complete scenes. We pretrain this representation at scale on our proposed curated posed-RGB data, totaling over 1.8 million images. Once pretrained, the encoder is used for effective 3D transfer learning. Our novel self-supervised pretraining for NeRFs, NeRF-MAE, scales remarkably well and improves performance on various challenging 3D tasks. Utilizing unlabeled posed 2D data for pretraining, NeRF-MAE significantly outperforms self-supervised 3D pretraining and NeRF scene understanding baselines on Front3D and ScanNet datasets with an absolute performance improvement of over 20% AP50 and 8% AP25 for 3D object detection.
