Disrupting Deep Uncertainty Estimation Without Harming Accuracy

Ido Galil, Ran El-Yaniv

ACE (Attack on Confidence Estimation) is a novel adversarial attack that cripples a neural network's ability to estimate its own uncertainty without changing its actual predictions or accuracy. By "nudging" a model to be more confident in its mistakes than its correct answers, ACE renders safety-critical "abstention" mechanisms useless, making it a stealthy and potent threat to risk-sensitive AI deployments.

The Vulnerability of Confidence Scores

Deep Neural Networks (DNNs) are often deployed in high-stakes environments—like medical diagnosis or autonomous driving—where knowing when a model is likely to be wrong is as important as the prediction itself. To handle this, researchers use uncertainty estimation (e.g., softmax scores, MC-Dropout) to allow models to "reject" or flag low-confidence predictions.

While standard adversarial attacks focus on "flipping" a label (making a model predict "dog" instead of "cat"), this paper identifies a different vulnerability. Can an attacker destroy the reliability of a model’s confidence scores while leaving its accuracy perfectly intact? If a model remains 75% accurate but becomes most confident in the 25% of cases where it is wrong, any safety threshold based on that confidence will fail catastrophically.

Methods: How ACE Works

The authors introduce ACE to exploit this exact vulnerability. Unlike traditional attacks that push an image across a decision boundary to force a misclassification, ACE moves images within their current boundary.

Conceptual diagram of ACE moving instances within decision boundaries

The strategy is two-fold:

  • For correct predictions: The attack adds a minuscule perturbation to move the instance closer to the decision boundary, artificially decreasing the model's confidence.
  • For incorrect predictions: The attack moves the instance further from the boundary, artificially increasing the model's confidence.

The algorithm uses a gradient-based approach similar to the Fast Gradient Sign Method (FGSM). However, it adds a crucial check: if a perturbation changes the predicted label, the step size ($\epsilon$) is reduced iteratively until the original prediction is preserved.

The paper evaluates ACE in two settings:

  1. White-box: The attacker has full access to the target model's gradients.
  2. Black-box: The attacker uses an ensemble of "proxy" models to generate perturbations, which are then transferred to the hidden target model.

Key Insights and Results

The researchers tested ACE primarily on the ImageNet validation set using contemporary architectures like MobileNetV2, EfficientNetB0, ResNet50, DenseNet161, and VGG16. For experiments involving SelectiveNet (a specialized architecture for "rejection" tasks), they used CIFAR-10.

Example of ACE inverting confidence on correct and incorrect predictions

The results demonstrate a severe threat to model reliability:

  • Stealth through Stability: Because ACE does not change the model's accuracy, standard performance monitors won't detect an attack. The model appears to be performing perfectly until it is asked to provide a confidence-weighted output.
  • Total Disruption: On EfficientNetB0, a white-box attack with a tiny perturbation ($\epsilon=0.005$) caused the model to be more confident in its incorrect predictions than its correct ones. In one scenario, 20% of the model's most confident predictions were wrong.
  • Metric Degradation: Across all architectures, the AURC (Area Under the Risk-Coverage curve)—a standard metric for uncertainty quality—increased by factors of 3x to 6x. A higher AURC indicates much poorer uncertainty estimation.
  • Black-box Success: The attack transferred surprisingly well. Using an ensemble of ResNet50 models as a proxy, the authors successfully disrupted the uncertainty estimation of completely different architectures like MobileNetV2 and VGG16.
  • SelectiveNet Vulnerability: Even SelectiveNet, which is explicitly trained to optimize for a "reject option," saw its selective risk (error rate on non-rejected samples) jump from 0.67% to over 8% under a direct ACE attack.

Interestingly, the authors found that even when attacking complex uncertainty measures (like Deep Ensembles or SelectiveNet), targeting the basic softmax score was often the most effective way to disrupt the model. Softmax provides a direct "handle" on the margin that other methods struggle to defend. Furthermore, standard adversarial training designed to prevent label-flipping does not provide significant protection against ACE.

Limitations and Future Work

While potent, the current iteration of ACE has limitations. To perform the attack as described, the attacker needs to know the ground truth labels of the images they are perturbing. However, in real-world scenarios, an attacker could potentially use a high-quality proxy model to estimate these labels.

Additionally, the current work is limited to classification tasks. Adapting ACE for regression (where uncertainty is often measured by variance) remains a promising but unexplored direction. Finally, the authors suggest that more sophisticated iterative methods, like Projected Gradient Descent, could make the attack even more potent and efficient with smaller total perturbations.

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