Optimization-Based Uncertainty Attribution Via Learning Informative Perturbations

Hanjing Wang, Bashirul Azam Biswas, Qiang JiECCV 2024

Abstract

While Uncertainty Quantification (UQ) provides a measure of a model's confidence, it fails to explain the underlying causes of predictive uncertainty. This paper introduces a novel framework for Uncertainty Attribution (UA) that identifies the specific regions of an input image responsible for model hesitation. By formulating UA as an optimization problem, the authors leverage semantic segments from the Segment Anything Model (SAM), learnable blurring perturbations, and a Gumbel-sigmoid reparameterization trick. This approach produces faithful, human-interpretable explanations that outperform existing gradient-based and perturbation-based methods in both accuracy and visual clarity.

Introduction

Deep learning models are increasingly deployed in safety-critical domains such as autonomous driving and medical diagnostics. In these contexts, understanding when a model is uncertain is vital, but understanding why it is uncertain is equally critical for safety and trust. This task, known as Uncertainty Attribution (UA), aims to pinpoint the input features that contribute most significantly to a model's predictive uncertainty.

Existing UA methods typically fall into two categories: gradient-based methods and perturbation-based methods. Gradient-based approaches are computationally efficient but often yield "noisy" heatmaps that highlight pixel-level sensitivities rather than semantic structures. Perturbation-based methods, which involve altering the input and measuring the change in uncertainty, are often computationally prohibitive and can introduce out-of-distribution artifacts (e.g., black pixels) that inadvertently increase uncertainty, leading to misleading results.

Methodology

The authors propose a framework that treats UA as an optimization task. The goal is to find a binary mask $\mathbf{M}$ that, when applied to an input $\mathbf{x}$ and replaced with a perturbed version $\mathbf{\hat{x}}$, maximizes the reduction in the model's uncertainty. The framework introduces three primary innovations to ensure faithfulness and interpretability:

1. SAM-guided Mask Parameterization

To move beyond pixel-level noise, the method utilizes the Segment Anything Model (SAM) to generate semantic segments of the input image. The attribution mask is then learned as a linear combination of these segments. This grounding ensures that the resulting explanations correspond to identifiable objects or parts (e.g., a wheel or a wing), making them inherently more interpretable to human users.

2. Learnable Informative Perturbations

Traditional methods often use static perturbations like zeroing out pixels, which can create sharp edges or artifacts that the model interprets as new sources of uncertainty. To mitigate this "masking paradox," the authors introduce learnable Gaussian blurring. The standard deviation of the blur is optimized alongside the mask, allowing the system to find a perturbation that effectively "hides" information without introducing artificial uncertainty.

3. Gumbel-sigmoid Reparameterization

Optimizing a binary mask (0 or 1) is challenging for standard gradient-based optimization because the discrete nature of the mask is non-differentiable. The authors employ the Gumbel-sigmoid trick, which allows for the efficient optimization of Bernoulli-distributed weights in a differentiable manner, enabling the use of standard backpropagation to find the optimal mask.

Experimental Evaluation

The framework was evaluated across four major benchmarks: CIFAR-10, CIFAR-100, SVHN (Street View House Numbers), and PartImageNet. To rigorously test the ability to detect problematic regions, the researchers utilized semi-synthetic data. They created controlled anomalies by swapping specific patches (e.g., 10x10 or 100x100 pixels) of a test image with patches from the training set, creating a known ground truth for the attribution method to identify.

Key Results

  • Detection Accuracy: On the SVHN dataset, the proposed method achieved an Intersection over Union (IoU) of 0.829. This significantly outperformed traditional baselines such as LIME (0.375) and Occlusion (0.350).
  • Faithfulness: The Uncertainty Reduction Rate (URR) measures how much uncertainty actually drops when the identified regions are altered. The proposed method achieved an average URR of 0.884, outperforming the next best competitor, KernelSHAP, by over 11%.
  • Qualitative Clarity: Visually, the method produces clean, semantic highlights that align with ground-truth anomalies, avoiding the "salt and pepper" noise characteristic of gradient-based attribution.

Discussion and Limitations

While the method represents a significant step forward in interpretable AI, it has certain limitations. The quality of the attribution is partially dependent on the initial segmentation provided by SAM. While the authors found the method robust to imperfect segments, a total failure in segmentation could limit the attribution's precision. Additionally, the optimization process requires 100–300 forward/backward passes per image. While more efficient than exhaustive sampling methods like SHAP, it remains slower than simple gradient-based saliency maps.

Conclusion

By framing Uncertainty Attribution as an optimization problem constrained by semantic segments and learnable perturbations, this research provides a more faithful and human-readable way to diagnose model uncertainty. This work moves the field closer to "transparent" AI, where developers and users can understand the specific visual features that cause a model to hesitate, ultimately leading to safer and more reliable deployments.

Summary updated

BibTeX
@inproceedings{wang2024optimization,
  author = {Hanjing Wang and Bashirul Azam Biswas and Qiang Ji},
  title = {{Optimization-Based Uncertainty Attribution Via Learning Informative Perturbations}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73229-4\_14},
}
Figure