On the robustness of adversarial training against uncertainty attacks

Emanuele Ledda, Giovanni Scodeller, Daniele Angioni, Giorgio Piras, Antonio Emanuele Cinà, Giorgio Fumera, Battista Biggio, Fabio Roli

TL;DR

This paper investigates whether models trained to be robust against adversarial attacks (which aim to fool predictions) are also robust against attacks targeting their uncertainty estimates. The authors demonstrate, both theoretically and empirically, that adversarial training inherently provides robustness against these uncertainty attacks, without requiring separate defense mechanisms. This is significant because it suggests a unified approach to improving the overall security and trustworthiness of machine learning models.

What Problem Does This Paper Address?

Machine learning models, especially in security-sensitive applications like medical diagnosis or autonomous driving, need to provide not only accurate predictions but also reliable estimates of their uncertainty. Uncertainty Quantification (UQ) methods aim to achieve this, allowing systems to know when they are unsure and should defer to a human or seek more information. However, a new threat has emerged: "uncertainty attacks." These attacks aim to manipulate the model's uncertainty estimates. Attackers might try to make a model highly uncertain about correct predictions (leading to system flooding or rejection of valid inputs) or make it overly confident about incorrect predictions (leading to acceptance of wrong decisions). While significant research exists on defending against adversarial attacks that fool predictions, the defense against uncertainty attacks has been largely unexplored. This paper bridges this gap by asking: can existing defenses against prediction attacks, specifically adversarial training, also protect against uncertainty attacks?

Methods

The core of the paper lies in a theoretical analysis and subsequent empirical validation.

Theoretical Analysis: The authors first establish a theoretical framework for understanding uncertainty attacks. They define "Uncertainty Span" (US) as the range of uncertainty values an attacker can induce by perturbing an input sample within a given budget. They then analyze how standard training and adversarial training (AT) affect this US.

  • Standard Training: Models trained conventionally tend to converge to a state where low uncertainty aligns with high confidence in correct predictions.
  • Adversarial Training: Through mathematical lemmas and a theorem, they demonstrate that AT inherently leads to models that are "under-confident" (higher entropy for predictions) compared to standard models. This under-confidence, while seemingly a drawback, is shown to be beneficial against uncertainty attacks. Specifically, it makes it harder for an attacker to drastically increase uncertainty (under-confidence attack) and also provides a buffer against attempts to decrease uncertainty (over-confidence attack).

Empirical Validation: To test their theory, the authors:

  • Implement "over-confidence" and "under-confidence" attacks, which aim to respectively decrease and increase the model's predictive entropy.
  • Evaluate a wide range of state-of-the-art robust classification models from the RobustBench repository on CIFAR-10 and ImageNet datasets.
  • Extend their analysis to a semantic segmentation task, using a robust and a non-robust model on the Pascal-VOC dataset.
  • Introduce a signed Expected Calibration Error (s-ECE) to specifically measure over- and under-confidence in calibration analysis.

Datasets

  • CIFAR-10: Used for training and evaluating robust classification models.
  • ImageNet: Used for training and evaluating robust classification models.
  • Pascal-VOC: Used for training and evaluating robust semantic segmentation models.
  • MNIST: Used as an out-of-distribution (OOD) dataset for evaluating uncertainty attacks.
  • CIFAR-100: Used to simulate an open-set recognition (OSR) scenario.

The paper does not introduce new benchmark datasets but utilizes existing ones to evaluate models from the RobustBench repository.

Key Insights and Ideas

  • Adversarial Training as a Unified Defense: The most significant insight is that adversarial training, a well-established defense against prediction attacks, inherently provides robustness against uncertainty attacks without needing separate, ad-hoc defenses. This simplifies the pursuit of secure ML models.
  • Under-Confidence as a Feature, Not a Bug: AT models tend to be "under-confident" (higher entropy). While this might seem counterintuitive for uncertainty estimation, the paper shows this higher baseline entropy makes it harder for attackers to push uncertainty even higher, and also provides a "safety margin" against over-confidence attacks.
  • Uncertainty Span as a Robustness Metric: The concept of Uncertainty Span (US) provides a principled way to quantify a model's vulnerability to uncertainty attacks, encompassing both over- and under-confidence scenarios.
  • Robustness Extends Beyond Classification: The findings are not limited to simple classification tasks; they extend to more complex scenarios like semantic segmentation, highlighting the general applicability of adversarial training's robustness benefits.

Key Results

  • Theoretical Proof: The paper provides theoretical evidence (Theorem 1) that adversarial training leads to higher entropy predictions compared to standard training, which is crucial for robustness against uncertainty attacks.
  • Empirical Validation on Classification: Experiments on CIFAR-10 and ImageNet showed that robust models consistently exhibited smaller Uncertainty Spans compared to non-robust models, indicating better resilience to uncertainty attacks.
  • Semantic Segmentation Robustness: In the semantic segmentation case study, the adversarially trained model showed significantly lower uncertainty spans and better discrimination of OOD/OSR samples compared to a non-robust model.
  • Calibration Impact: While robust models are generally under-confident (positive s-ECE), they are less susceptible to becoming over-confident (negative s-ECE) under attack compared to non-robust models.
  • Ranking of Models: The study provides a leaderboard (Table 4) ranking models based on their uncertainty robustness, revealing that some architectures and training strategies are more resilient than others.

Limitations and Future Work

  • Theoretical Assumptions: The theoretical analysis is based on simplified scenarios (e.g., binary classification, deterministic equilibrium) that may not perfectly capture the complexity of real-world models.
  • Attack Setup: The attack setup used in experiments, while comprehensive, might not cover all possible adversarial strategies, especially for models with obfuscated gradients.
  • Aleatoric Uncertainty Focus: The primary focus was on aleatoric uncertainty. Future work should extend this analysis to epistemic uncertainty, particularly for Bayesian models.
  • Emerging Architectures: The authors suggest extending these findings to generative and foundation models, as well as safety-critical domains like autonomous driving and healthcare.
  • Bayesian Models: Investigating the robustness of Bayesian Neural Networks with adversarial training is a key future direction.

Summary updated

BibTeX
@article{ledda2026robustness,
  author = {Emanuele Ledda and Giovanni Scodeller and Daniele Angioni and Giorgio Piras and Antonio Emanuele Cinà and Giorgio Fumera and Battista Biggio and Fabio Roli},
  title = {{On the robustness of adversarial training against uncertainty attacks}},
  journal = {Pattern Recognition},
  year = {2026},
  doi = {10.1016/j.patcog.2025.112519},
}
Figure