Disrupting Deep Uncertainty Estimation Without Harming Accuracy

Ido Galil, Ran El-Yaniv

TL;DR

ACE (Attack on Confidence Estimation) is a novel adversarial attack that destroys a neural network's ability to estimate its own uncertainty without changing its classification accuracy. By applying minuscule, imperceptible perturbations, ACE makes a model more confident in its mistakes than in its correct predictions, rendering safety-critical "abstention" mechanisms completely useless.

What Problem Does This Paper Address?

Deep neural networks (DNNs) are increasingly deployed in risk-sensitive fields like autonomous driving and medical diagnosis. In these settings, it isn't enough for a model to be accurate; it must also be "self-aware"—knowing when it is likely to be wrong so it can abstain from a prediction or hand the task to a human expert. This is known as uncertainty estimation.

While traditional adversarial attacks focus on "fooling" a model into making the wrong prediction (harming accuracy), this paper explores a more insidious threat. The authors ask: Can an attacker sabotage the model’s confidence scores while leaving its accuracy untouched? If a model remains 90% accurate but becomes highly confident in its 10% of errors, any safety monitor relying on those confidence scores will fail to catch the mistakes, potentially leading to catastrophic outcomes.

Methods

The authors introduce ACE (Attack on Confidence Estimation). The core intuition is to nudge the input data points just enough to shift their position relative to the model's decision boundary without actually crossing it.

Figure 1: The intuition driving ACE on a classifier of cats and dogs, when the uncertainty measure used is softmax. Correct predictions are moved closer to the decision boundary without crossing it, thus increasing their uncertainty (purple arrows), and incorrect predictions are moved further away from the decision boundary to decrease their uncertainty (green arrow).

The algorithm works as follows:

  1. Identify the Prediction: Determine if the model's current prediction for an input $x$ is correct or incorrect based on the ground truth.
  2. Calculate the Gradient: Find the direction that changes the confidence score (typically the softmax response).
  3. Apply Perturbation:
    • If the prediction is correct, apply a tiny perturbation to decrease confidence (moving the point toward the decision boundary).
  4. If the prediction is incorrect, apply a perturbation to increase confidence (moving it away from the boundary).
  5. Maintain Accuracy: Ensure the perturbation magnitude ($\epsilon$) is small enough that the predicted label does not change.

The paper evaluates ACE in both white-box settings (where the attacker has full access to the model) and black-box settings (where the attacker uses an ensemble of proxy models to generate transferable perturbations).

Datasets

The researchers tested ACE on two primary benchmarks:

  • ImageNet: The standard large-scale dataset for image classification (50,000 validation images).
  • CIFAR-10: A smaller dataset used for testing specific architectures like SelectiveNet.

They applied the attack across various modern architectures, including MobileNetV2, EfficientNetB0, ResNet50, DenseNet161, and VGG16.

Key Insights and Ideas

  • Stealthiness: Because ACE does not change the model's accuracy, standard performance monitoring tools—which usually track error rates—would fail to detect that the model has been compromised.
  • Efficiency of "Nudges": Standard adversarial attacks require a large enough "push" to force a sample across a decision boundary. ACE only needs a tiny "nudge" to reorder the confidence of samples within those boundaries. Consequently, the required perturbation magnitude ($\epsilon$) is significantly smaller than what is needed for accuracy-based attacks.
  • Softmax as a Universal Handle: Interestingly, the authors found that even when attacking complex uncertainty methods like MC-Dropout or Deep Ensembles, targeting the underlying softmax score was often more effective than targeting the final uncertainty metric directly.
  • Failure of Traditional Defenses: The paper demonstrates that standard adversarial training (like AdvProp) provides almost no protection against ACE, as these defenses are designed to prevent boundary-crossing, not internal confidence shifting.

Key Results

The impact of ACE is quantified using the Area Under the Risk-Coverage curve (AURC), where a higher value indicates worse uncertainty estimation.

  • Devastating Impact: For EfficientNetB0 under a white-box attack, the AURC increased from ~69 to ~553. In practical terms, an end-user asking the model for its 20% most confident predictions would receive nearly 100% wrong answers.
  • Visual Proof: The attack can make a model more confident that a pair of binoculars is a "tank" than it is about an actual, correctly identified tank.
Figure 2: Demonstration of attacking EfficientNet with softmax as the uncertainty estimation method. Left: Two images being predicted to be tanks. The top one is correctly labeled and the model has high confidence in its label. The bottom image is of binoculars incorrectly labeled as a tank, with the model having low confidence in its prediction. Right: After adding perturbations to the original images, the model has lower confidence in its (correct) tank label than in the wrongly labeled binoculars.
  • Black-Box Transferability: The attack remains highly potent even when the attacker doesn't know the target model's architecture, provided they use an ensemble of proxy models to generate the perturbations.

Limitations and Future Work

  • Ground Truth Requirement: The current version of ACE requires knowledge of the ground truth labels to decide whether to increase or decrease confidence. While attackers could use proxy models to estimate labels, this remains a hurdle for large-scale, real-time attacks.
  • Classification Focus: The study is limited to classification tasks. The authors suggest that future work could adapt ACE for regression tasks by manipulating the variance of model outputs.
  • Iterative Optimization: The authors note that using iterative optimization techniques (similar to PGD) could make the attack even more potent and help eliminate artifacts where very large perturbations occasionally become less effective.

Summary updated

BibTeX
@inproceedings{galil2021disrupting,
  author = {Ido Galil and Ran El-Yaniv},
  title = {{Disrupting Deep Uncertainty Estimation Without Harming Accuracy}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=kpf4ZGOb24},
}
Figure