[Paper Review] Reinforcement Learning with Neural Radiance Fields
This paper proposes NeRF-RL, a method that uses Neural Radiance Fields (NeRFs) as a self-supervision signal to train a latent state representation for reinforcement learning (RL). By training an encoder to map multi-view RGB images to a latent space that can reconstruct scenes via a latent-conditioned NeRF, the approach achieves superior sample efficiency in robotic manipulation tasks—outperforming 2D CNNs, contrastive learning, and even expert-provided keypoints—due to NeRF's strong 3D inductive bias.
It is a long-standing problem to find effective representations for training reinforcement learning (RL) agents. This paper demonstrates that learning state representations with supervision from Neural Radiance Fields (NeRFs) can improve the performance of RL compared to other learned representations or even low-dimensional, hand-engineered state information. Specifically, we propose to train an encoder that maps multiple image observations to a latent space describing the objects in the scene. The decoder built from a latent-conditioned NeRF serves as the supervision signal to learn the latent space. An RL algorithm then operates on the learned latent space as its state representation. We call this NeRF-RL. Our experiments indicate that NeRF as supervision leads to a latent space better suited for the downstream RL tasks involving robotic object manipulations like hanging mugs on hooks, pushing objects, or opening doors. Video: https://dannydriess.github.io/nerf-rl
Motivation & Objective
- To improve sample efficiency in vision-based reinforcement learning by learning better state representations from high-dimensional image observations.
- To investigate whether the 3D inductive bias of Neural Radiance Fields (NeRFs) can lead to more effective latent representations than 2D CNNs or contrastive learning.
- To enable generalization across diverse object shapes in robotic manipulation tasks without relying on hand-engineered state information.
- To demonstrate that NeRF-based supervision can outperform both learned and expert-provided state representations in complex 3D manipulation environments.
Proposed method
- Train an autoencoder where the encoder maps multi-view RGB images to a latent vector, and the decoder is a latent-conditioned NeRF that reconstructs the scene from novel viewpoints.
- Use a multi-view image reconstruction loss as self-supervision to train the encoder and decoder jointly, with the NeRF decoder providing strong 3D inductive bias.
- Implement both global and compositional NeRF decoders: the former encodes the full scene, the latter encodes individual objects using instance segmentation masks.
- Pre-train the encoder offline on a dataset of random actions, then fine-tune the policy in the RL loop using the fixed encoder.
- Utilize camera matrices and multiple views to improve 3D scene understanding and resolve occlusions.
- Apply the NeRF reconstruction loss during pretraining to guide the latent space toward capturing geometric and spatial structure relevant to the task.
Experimental results
Research questions
- RQ1Can NeRF-based self-supervision lead to more effective state representations for vision-based RL than 2D CNNs or contrastive learning?
- RQ2Does the 3D inductive bias of NeRFs improve sample efficiency and generalization in robotic manipulation tasks involving variable object shapes?
- RQ3How does NeRF-RL compare to using expert-provided keypoint supervision in terms of downstream RL performance?
- RQ4Can a compositional NeRF decoder that models individual objects improve performance over a global NeRF decoder?
- RQ5Does the use of multiple camera views enhance the quality of the learned latent representation?
Key findings
- NeRF-RL significantly outperformed 2D CNN-based autoencoders and contrastive learning baselines in sample efficiency and final performance on robotic manipulation tasks.
- The compositional NeRF-RL variant achieved the highest sample efficiency, indicating that modeling individual objects with NeRFs is more effective than global scene modeling.
- NeRF-RL surpassed even expert-provided keypoint supervision in performance, demonstrating the superiority of the 3D inductive bias in the NeRF decoder.
- The method generalized well across different starting states and object shapes within the same distribution, indicating robustness and generalization capability.
- The global NeRF-RL variant, which does not require object masks, still outperformed all baselines, showing that the 3D inductive bias is effective even without instance-level supervision.
- Despite higher pretraining cost (up to 2 days), inference time remained low (~7 ms on an RTX 3090), making the method practical for online RL deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.