Towards Trustworthy Predictions from Deep Neural Networks with Fast Adversarial Calibration

Christian Tomani, Florian Buettner

Abstract

Deep neural networks are notoriously overconfident, often "hallucinating" certainty even when faced with data they’ve never seen before. This paper introduces FALCON (Fast AdversariaL CalibratiON), a training strategy that uses adversarial examples to force models to provide honest, well-calibrated uncertainty estimates. Unlike computationally expensive ensembles, FALCON maintains reliability under significant domain shift within a single-model framework. We evaluate FALCON across diverse benchmarks, including ImageNet corruptions and sequence modeling, showing it significantly reduces Expected Calibration Error (ECE) while remaining 5-10 times more carbon-efficient than traditional ensemble methods.

Introduction

In controlled laboratory settings, AI models perform exceptionally well on data that mirrors their training distribution. However, real-world deployment introduces "domain shift"—variations caused by sensor degradation, environmental changes, or entirely novel inputs. A trustworthy model must be well-calibrated: its confidence score should accurately reflect its likelihood of being correct. Unfortunately, standard deep learning architectures tend toward extreme overconfidence as data deviates from the training set.

Existing solutions, such as Deep Ensembles or Bayesian Neural Networks, offer improved calibration but at a high cost. They are often computationally expensive, slow to train, and difficult to scale to complex architectures like LSTMs. FALCON addresses these challenges by baking "honesty" into a single model during the training phase.

The FALCON Methodology

FALCON introduces a new training objective that augments standard cross-entropy loss with two specialized terms designed to regularize predictive confidence:

  1. Predictive Entropy Loss ($L_S$): This term encourages the model to increase entropy—effectively spreading probability mass uniformly—across all incorrect classes when uncertainty is high. This prevents the model from being "sure" about an incorrect prediction.
  2. Adversarial Calibration Loss ($L_{adv}$): This is the core innovation. Using the Fast Gradient Sign Method (FGSM), the authors generate adversarial versions of training data—samples specifically perturbed to challenge the model. The training process then directly minimizes the Expected Calibration Error (ECE) on these adversarial samples. By stress-testing the model during training, FALCON forces confidence scores to align with actual performance on difficult, shifted examples.

Experimental Setup

The researchers evaluated FALCON across a rigorous set of benchmarks:

  • Image Classification: MNIST, CIFAR-10, and ImageNet.
  • Domain Shift & OOD: Fashion-MNIST (as OOD for MNIST) and ObjectNet, a dataset designed to test robustness against real-world biases.
  • Sequence Modeling: Sequential MNIST and the 20 Newsgroups text dataset, utilizing LSTM and GRU architectures.
  • Corruptions: 19 distinct ImageNet corruptions, including various types of noise, blur, and weather effects.

Results and Discussion

FALCON demonstrates superior calibration across nearly all tested scenarios. On CIFAR-10, FALCON achieved an ECE of 0.127, a dramatic improvement over the standard L2-Dropout baseline (0.329) and outperforming specialized methods like Evidential Deep Learning (0.137).

Figure 1: Comparison of confidence scores and calibration across in-domain and out-of-distribution (OOD) tasks. FALCON shows significantly lower confidence on OOD data compared to baselines, indicating better uncertainty awareness.

A key insight is that adversarial examples serve as effective proxies for domain shift. By finding the "edges" of a model's knowledge during training, FALCON teaches the network to lower its confidence when inputs are perturbed. This makes the model architecture-agnostic; unlike many Bayesian approaches, FALCON integrates seamlessly with Recurrent Neural Networks (RNNs).

Figure 2: Calibration performance under various image perturbations. (a) Shows ECE and accuracy trends under increasing y-zoom. (b) Compares average ECE across multiple corruption types, where FALCON consistently maintains lower error rates.

On ImageNet, FALCON reduced the mean ECE by 35% compared to state-of-the-art Deep Ensembles (0.036 vs 0.056). In NLP tasks, it provided significantly higher predictive entropy for OOD samples (2.23) than ensembles (1.82), demonstrating a superior ability to signal "I don't know."

Conclusion and Future Work

FALCON provides a computationally efficient path toward trustworthy AI. By achieving uncertainty estimates comparable to or better than ensembles while being 5-10 times more carbon-efficient, it offers a scalable solution for real-world applications.

While highly effective, the authors note that calibration is not a perfect shield and may introduce theoretical privacy risks by making OOD samples easier to identify. Future research will explore how these calibrated predictions can be leveraged to identify training biases and enhance fairness in automated decision-support systems.

Summary updated

BibTeX
@inproceedings{tomani2021towards,
  author = {Christian Tomani and Florian Buettner},
  title = {{Towards Trustworthy Predictions from Deep Neural Networks with Fast Adversarial Calibration}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i11.17188},
}
Figure