Adversarial Attacks Against Uncertainty Quantification

Emanuele Ledda, Daniele Angioni, Giorgio Piras, Giorgio Fumera, Battista Biggio, Fabio Roli

Introduction

In safety-critical applications like autonomous driving and medical diagnostics, Uncertainty Quantification (UQ) is often deployed as a critical safety layer. Methods such as Monte Carlo (MC) Dropout and Deep Ensembles provide a "confidence score," allowing human operators to intervene when a model's predictions become unreliable. Historically, UQ has even been proposed as a defense mechanism: if a model's uncertainty spikes, it can flag a potential adversarial attack.

However, this research reveals a more insidious threat. Rather than simply causing a misclassification, an adversary can specifically target the uncertainty estimate itself. By introducing "Overconfidence Attacks," the authors demonstrate that UQ is not a robust shield but a vulnerable component that can be manipulated to break the trust between AI systems and their users.

The Threat of Overconfidence

The core of the paper focuses on the Overconfidence Attack (O-attack). In this scenario, the attacker's goal is not just to change the model's prediction, but to minimize the uncertainty measure $\mathcal{U}(x + \delta)$ associated with that incorrect prediction. If an attacker can force a model to be extremely certain about a wrong diagnosis, a practitioner might trust a flawed result without question.

To achieve this, the authors introduce several strategies based on Projected Gradient Descent (PGD):

  • Stabilizing Attack (STAB): This method pushes all Monte Carlo samples toward the most likely (incorrect) class, effectively "stabilizing" the prediction and drastically reducing both epistemic (model) and aleatoric (data) uncertainty.
  • Uniform Segmentation Target Attack (UST): A specialized attack for semantic segmentation that forces the entire image to be classified as a single dominant class (e.g., background), effectively "zeroing out" the uncertainty maps that usually highlight object boundaries.

Key Results and Vanishing Variance

The effectiveness of these attacks is startling. Across standard benchmarks like CIFAR-10 and CIFAR-100, the authors found that even small perturbations could reduce predictive variance by several orders of magnitude.

Impact of adversarial perturbations on accuracy and uncertainty measures across different UQ paradigms.

As shown in the quantitative analysis above, as the perturbation budget (epsilon) increases, accuracy drops sharply. Crucially, the uncertainty measures (epistemic and aleatoric) do not spike as one might hope for a robust system; instead, they plummet. This confirms that an adaptive attacker can make a model appear more certain about a wrong prediction than it is about a clean, correct one.

The Fragility of Deep Ensembles

One of the most surprising findings is that Deep Ensembles—often considered the gold standard for reliable UQ—are remarkably fragile. Under targeted attacks, ensemble variance can be reduced to as low as $10^{-6}$ with minimal perturbations. In comparison, MC Dropout maintained a slightly higher "noise floor," though it remained highly vulnerable.

Semantic Segmentation Vulnerabilities

In semantic segmentation, uncertainty is typically concentrated at the edges of objects. Standard classification attacks often leave "edge noise" in the uncertainty map, which could alert a human operator. The UST attack bypasses this by forcing a global classification shift, effectively wiping the uncertainty map clean.

Qualitative results of the Uniform Segmentation Target (UST) attack on semantic segmentation.

In the visualization above, the UST (Bg) attack successfully misclassifies the entire scene as background while producing an uncertainty map that is almost entirely dark (indicating near-zero uncertainty). This demonstrates how an attacker can hide their presence by manipulating the very tools meant to detect them.

Conclusion and Future Directions

This research highlights a critical gap in current AI safety: UQ methods are not inherently robust to adaptive adversaries. The ability to make Out-of-Distribution (OOD) samples appear certain invalidates the use of standard UQ for OOD detection in adversarial environments.

Moving forward, there is a desperate need for Adversarial Training for UQ. Future systems must be trained not only to be accurate but to ensure that their uncertainty estimates remain high and reliable even when the input is maliciously perturbed. Additionally, exploring "Underconfidence Attacks"—where an attacker floods a system with false alarms to cause operational paralysis—remains an important area for future study.

Summary updated

BibTeX
@inproceedings{ledda2023adversarial,
  author = {Emanuele Ledda and Daniele Angioni and Giorgio Piras and Giorgio Fumera and Battista Biggio and Fabio Roli},
  title = {{Adversarial Attacks Against Uncertainty Quantification}},
  booktitle = {Workshops @ ICCV},
  year = {2023},
}
Figure