Abstract
The increasing deployment of AI models in critical applications has exposed them to significant risks from adversarial attacks. While adversarial vulnerabilities in 2D vision models have been extensively studied, the threat landscape for 3D generative models, such as Neural Radiance Fields (NeRF), remains underexplored. This work introduces AdvIRL, a novel framework for crafting adversarial NeRF models using Instant Neural Graphics Primitives (Instant-NGP) and Reinforcement Learning. Unlike prior methods, AdvIRL generates adversarial noise that remains robust under diverse 3D transformations, including rotations and scaling, enabling effective black-box attacks in real-world scenarios. Our approach is validated across a wide range of scenes, from small objects (e.g., bananas) to large environments (e.g., lighthouses). Notably, targeted attacks achieved high-confidence misclassifications, such as labeling a banana as a slug and a truck as a cannon, demonstrating the practical risks posed by adversarial NeRFs. Beyond attacking, AdvIRL-generated adversarial models can serve as adversarial training data to enhance the robustness of vision systems.
Introduction
Adversarial attacks—small, intentional perturbations designed to fool AI—have been widely studied in 2D images. However, the 3D world presents a much steeper challenge. In 2D, noise is static; in 3D, adversarial noise must remain effective even as a camera moves around an object, changes its distance, or adjusts the lighting. Furthermore, most existing 3D attacks are "white-box," meaning the attacker needs full access to the target model’s architecture and gradients. AdvIRL addresses the gap for a robust, black-box adversarial attack that works on 3D generative models like NeRFs, requiring no internal access to the target model's gradients.
Methodology
The AdvIRL framework combines several state-of-the-art techniques into a single pipeline to bake adversarial noise directly into the geometry and texture of a 3D model.
- Image Segmentation: Using Detectron2 (Mask R-CNN), the system isolates the target object from its background, ensuring adversarial noise is focused only on the object of interest.
- 3D Rendering (NeRF): The system uses Instant-NGP (Instant Neural Graphics Primitives) to represent the 3D scene, allowing for rapid rendering from multiple viewpoints.
- Reinforcement Learning (RL): This is the core of the attack. Using the Proximal Policy Optimization (PPO) algorithm, the RL agent treats the 13 million parameters of the Instant-NGP model as its action space.
- Reward Function: The agent is rewarded for increasing the confidence of a target (incorrect) class and decreasing the confidence of the true class. A Mean Squared Error penalty keeps modifications subtle.
- Black-Box Evaluation: The agent uses the CLIP model as a proxy to evaluate how successful the current "noisy" version of the 3D object is at causing a misclassification.
Key Results
The framework demonstrated high efficacy across various scales using the Tanks and Temples benchmark and custom datasets.
- Train Scene: Achieved 100% misclassification across 20 different viewpoints, with the model seeing the train as a "breakwater" or "megalith."
- Banana Scene: Successfully fooled the classifier into seeing a "flatworm" with confidence levels as high as 75%.
- Lighthouse Scene: Achieved 50% confidence in misclassifying a lighthouse as a "boathouse."
- Truck Scene: In a targeted attack, 15 out of 20 images were successfully misclassified as a "cannon."
- Horse Scene: A targeted attack successfully turned a horse into a "triceratops" in 8 out of 20 images, with training completed in less than a day.
Discussion and Future Work
AdvIRL demonstrates that by modifying the parameters of the NeRF itself, adversarial noise becomes "view-invariant"—it works regardless of the camera angle. Because it uses RL, it doesn't need to backpropagate through the target model, making it highly transferable to different vision systems.
However, the massive action space (13 million parameters) makes training computationally expensive, often taking two days per attack. Future work will focus on identifying a smaller subset of crucial parameters to modify. Additionally, the authors plan to integrate SAM 2 (Segment Anything Model) for more generalized object targeting and explore how these digital perturbations translate to 3D-printed physical objects in the real world.
Summary updated