Is Attention All That NeRF Needs?
Mukund Varma T, Peihao Wang, Xuxi Chen, Tianlong Chen, Subhashini Venugopalan, Zhangyang Wang
TL;DR
The paper presents Generalizable NeRF Transformer (GNT), a two-stage transformer framework that reconstructs neural radiance fields and renders novel views withoutscene-specific optimization. A view transformer, constrained by epipolar geometry, aggregates multi-view features into coordinate-aligned representations, while a ray transformer renders new viewpoints via attention-driven, learned rendering along sampled rays. GNT achieves state-of-the-art performance in both single-scene and cross-scene generalization, including challenging cases with refraction and reflection, and offers interpretable attention maps that align with depth and occlusion cues. These results suggest transformers can serve as a universal modeling tool for graphics, effectively replacing handcrafted rendering equations with learned, geometry-aware attention mechanisms.
Abstract
We present Generalizable NeRF Transformer (GNT), a transformer-based architecture that reconstructs Neural Radiance Fields (NeRFs) and learns to renders novel views on the fly from source views. While prior works on NeRFs optimize a scene representation by inverting a handcrafted rendering equation, GNT achieves neural representation and rendering that generalizes across scenes using transformers at two stages. (1) The view transformer leverages multi-view geometry as an inductive bias for attention-based scene representation, and predicts coordinate-aligned features by aggregating information from epipolar lines on the neighboring views. (2) The ray transformer renders novel views using attention to decode the features from the view transformer along the sampled points during ray marching. Our experiments demonstrate that when optimized on a single scene, GNT can successfully reconstruct NeRF without an explicit rendering formula due to the learned ray renderer. When trained on multiple scenes, GNT consistently achieves state-of-the-art performance when transferring to unseen scenes and outperform all other methods by ~10% on average. Our analysis of the learned attention maps to infer depth and occlusion indicate that attention enables learning a physically-grounded rendering. Our results show the promise of transformers as a universal modeling tool for graphics. Please refer to our project page for video results: https://vita-group.github.io/GNT/.
