Abstract: International audience
Introduction
In safety-critical applications such as autonomous driving, ensuring the robustness of neural networks against random environmental noise—termed statistical robustness—is paramount. Unlike adversarial robustness, which focuses on malicious perturbations, statistical robustness evaluates a model's performance under everyday variability like sensor noise or weather conditions.
The primary challenge in this evaluation is the "rare event" problem: well-trained models fail so infrequently that standard "Crude Monte Carlo" sampling is computationally prohibitive. For instance, a failure rate of one in a billion would require billions of simulations for a reliable estimate. While previous methods like Adaptive Multi-Level Splitting (AMLS) improved efficiency, they treated the neural network as a "black box." This research proposes leveraging the internal gradient information of neural networks to significantly accelerate and refine robustness estimation.
Methodology: Gradient-Informed Sequential Monte Carlo
The authors introduce a Gradient-Informed Sequential Monte Carlo (SMC) framework. By utilizing back-propagation—a standard tool in deep learning—the algorithm calculates the gradient of the network's output relative to its input. This gradient acts as a compass, guiding simulations toward the failure regions of the input space.
The approach consists of three core components:
- Tempering: The algorithm avoids the difficulty of jumping directly into rare failure regions by using a sequence of intermediate distributions. It starts with standard noise and gradually "warps" the distribution toward failure-prone areas.
- Gradient-Based Samplers: To move particles effectively through high-dimensional space, the authors employ:
- H-SMC: Uses Hamiltonian dynamics for long, informed strides.
- MALA-SMC: Uses the Metropolis-Adjusted Langevin Algorithm for simpler gradient-driven steps.
- Adaptive Tuning: The algorithm automatically adjusts temperature steps and sampler step sizes to maintain a constant Effective Sample Size, preventing simulation collapse.
Experimental Results
The method was evaluated across three benchmarks: a linear toy model, the MNIST digit dataset, and large-scale ImageNet models (MobileNetV2 and ResNet18).
Efficiency and Accuracy
On the toy model and MNIST, gradient-informed methods demonstrated superior efficiency. As shown in Figure 4, H-SMC and MALA-SMC achieved a significantly lower Mean Relative Error (MRE) for the same number of model calls compared to traditional black-box methods like MLS-SMC.
Handling Extreme Rarity
The advantage of using gradients becomes more pronounced as the failure event becomes rarer. In scenarios with failure probabilities as low as $10^{-12}$ or $10^{-16}$, black-box random walks often fail to converge or exhibit massive bias. In contrast, gradient-informed methods remain stable. Figure 5 illustrates how these methods converge toward the reference log-probability even at extreme scales where standard splitting methods struggle.
Key Insights
- Gradients as "Free" Information: Since the infrastructure for back-propagation already exists in deep learning frameworks, using gradients for rare-event simulation is a highly efficient extension of existing workflows.
- MALA vs. HMC: The simpler MALA-SMC often performed comparably to the more complex H-SMC, suggesting that even basic gradient information provides a substantial boost over black-box methods.
- Scalability: The framework successfully estimated failure probabilities on ImageNet-scale models (ResNet18), where black-box methods frequently returned "null" estimates due to an inability to find any failure points.
Limitations and Future Directions
While powerful, the method requires the model to be differentiable, excluding discrete architectures like Random Forests. Additionally, while the estimator is consistent in the limit, providing non-asymptotic certainty bounds for finite samples remains an open research challenge. Future work will focus on more theoretically grounded methods for scheduling the adaptive parameters of the simulation.
Summary updated