NeRFool: Uncovering the Vulnerability of Generalizable Neural Radiance Fields against Adversarial Perturbations

Yonggan Fu, Ye Yuan, Souvik Kundu, Shang Wu, Shunyao Zhang, Yingyan Celine Lin

Neural Radiance Fields (NeRFs) have fundamentally transformed 3D scene reconstruction. However, "vanilla" NeRFs require hours of per-scene optimization, limiting their real-time utility. Generalizable NeRFs (GNeRFs) overcome this bottleneck by conditioning the model on a few source views, enabling the instant rendering of entirely new environments.

While this convenience is a massive leap forward for applications like autonomous driving and robotic navigation, it introduces a critical security gap. Because these source views might be acquired from the internet or untrusted third-party providers, they are susceptible to adversarial manipulation. NeRFool represents the first comprehensive investigation into the adversarial robustness of GNeRFs, revealing that these models are highly vulnerable to imperceptible perturbations in their input images.

The Threat Model: 2D Attacks in a 3D World

Adversarial attacks on 2D image classifiers are well understood, but GNeRFs operate in 3D space using complex mechanisms like volume rendering and ray marching. The core research question is whether injecting subtle, imperceptible noise into 2D source images can effectively "break" the resulting 3D model.

To explore this, the researchers developed two primary attack frameworks:

  1. NeRFool (View-Specific Attack): This method optimizes adversarial perturbations in the source images to maximize the reconstruction error of one specific target view. Because ground-truth data for a novel view is often unavailable, the attack uses a "pseudo-ground truth"—the reconstruction generated from clean source views—as its target.
  2. NeRFool+ (Universal Attack): To ensure the attack is effective across any viewpoint (transferability), NeRFool+ introduces two novel techniques:
  3. Novel Target View Sampling: It uses spherical linear interpolation (Slerp) to generate a diverse set of "unseen" camera poses during optimization. This ensures the adversarial noise disrupts a wider array of 3D points in the scene.
  4. Geometric Error Maximization: Recognizing that geometry is a critical weak point in NeRFs, this technique leverages a pretrained depth estimation model to maximize errors in the rendered depth maps, effectively "melting" the scene's 3D structure.

Experimental Setup

The study evaluated three state-of-the-art GNeRF models—IBRNet, MVSNeRF, and GNT—across three diverse datasets: DeepVoxels (simple Lambertian objects), NeRF Synthetic (complex reflections and textures), and LLFF (real-world, forward-facing scenes).

Key Insights and Vulnerabilities

The evaluation uncovered several surprising insights into how GNeRFs process and succumb to adversarial noise:

  • Density is the Achilles' Heel: Perturbing a scene's density (its 3D geometry) is far more destructive than altering its color. If an attacker can trick the model into miscalculating spatial depth, the entire render collapses into unrealistic artifacts.
  • The Conditionality Paradox: Counterintuitively, providing more source views makes GNeRFs more vulnerable. Additional views give attackers more pixels to manipulate, increasing their capacity to inject destructive noise.
  • Finetuning Fragility: While per-scene finetuning enhances rendering quality, it causes the model to overfit to specific geometries. This makes the finetuned model significantly more brittle and easier to fool with adversarial noise.
  • Architectural Differences: MVSNeRF proved to be the most robust model tested, likely due to its explicit cost-volume-based geometry estimation. Furthermore, the Transformer-based GNT model was more robust than the MLP-based IBRNet, suggesting that non-linear architectures may inherently handle noise better.

Results and Defenses

The proposed attacks proved highly destructive. On the LLFF dataset, NeRFool achieved an average PSNR reduction of over 10 dB against IBRNet using a minimal perturbation strength ($\epsilon=8$). Visually, this degradation turns a crisp 3D scene into a blurry, artifact-ridden mess.

To counter these vulnerabilities, the authors explored Adversarial GNeRF Training. By augmenting the training process with perturbed views, models became significantly more resilient, boosting robust PSNR by up to 10.39 dB on certain scenes. Interestingly, for models like GNT, adversarial training acted as a powerful regularizer, occasionally improving reconstruction accuracy even on clean images.

Conclusion and Future Directions

NeRFool exposes a critical security vulnerability in the deployment of GNeRFs for real-world applications. While adversarial training offers a viable defense, it often comes with a robustness-accuracy trade-off, where perfectly robust models render slightly blurrier clean images.

Future research must explore architectures that are "robust by design"—perhaps by incorporating more rigid geometric constraints. Additionally, investigating attacks that target camera poses directly, and assessing how these visual vulnerabilities impact downstream tasks like robotic path planning, will be crucial for the safe deployment of 3D neural rendering technologies.

Summary updated

BibTeX
@inproceedings{fu2023nerfool,
  author = {Yonggan Fu and Ye Yuan and Souvik Kundu and Shang Wu and Shunyao Zhang and Yingyan Celine Lin},
  title = {{NeRFool: Uncovering the Vulnerability of Generalizable Neural Radiance Fields against Adversarial Perturbations}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=RgHuDK44gq},
}
Figure