Provably Better Explanations with Optimized Aggregation of Feature Attributions

Thomas Decker, Ananta R. Bhattarai, Jindong Gu, Volker Tresp, Florian Buettner

Introduction

Feature attribution methods—the tools used to explain "why" a model made a prediction—are notoriously unstable and inconsistent. This paper introduces a framework to combine multiple attribution methods into an optimized "ensemble" that is provably more robust and faithful to the underlying model than any single method alone.

The Problem: Inconsistency in XAI

In the world of "Black Box" machine learning, post-hoc explanation methods like Saliency maps or Integrated Gradients are the gold standard for transparency. However, these methods have a reliability problem: they are often hypersensitive to tiny amounts of noise (low robustness) and frequently disagree with one another on which features actually matter. Recent theoretical work has even suggested a "no-free lunch" theorem for XAI, implying that no single attribution method can faithfully capture every model's behavior.

Methodology: Optimized Aggregation

The authors propose a novel approach called Optimized Aggregation. The core technical contribution is the definition of Generalized L2 metrics. They show that many popular quality benchmarks—such as Average-Sensitivity (measuring robustness) and Infidelity (measuring how well the explanation tracks model changes)—can be expressed in this L2 form.

By framing these metrics as quadratic forms, the authors can solve for the optimal convex weights ($\omega$) for a set of different attribution results. They introduce three specific strategies:

  1. AGG_robust: Optimizes weights to minimize sensitivity to noise.
  2. AGG_faith: Optimizes weights to maximize faithfulness to the model's logic.
  3. AGG_opt: A multi-objective approach that balances both robustness and faithfulness.

Crucially, they provide a theoretical guarantee showing that an aggregated explanation is mathematically guaranteed to be at least as good as the weighted average of the individual methods' scores.

Empirical Evaluation

The authors validated their approach across a diverse range of computer vision tasks and architectures, including ImageNet, CIFAR10, and Medical Imaging (MedMNIST). They tested models ranging from VGG16 and ResNet18 to modern Vision Transformers like SwinT.

Original input image $x$ (Corgi) used for evaluating attribution methods.

Key Results

  • Consistent Superiority: Across almost every model architecture, the aggregated methods (AGG_robust and AGG_faith) outperformed all individual methods and simple baselines like simple averaging.
  • Robustness and Faithfulness Gains: On ResNet18, AGG_robust achieved an Average-Sensitivity of 0.410, significantly better than the best individual method (0.483). AGG_faith consistently produced the lowest Infidelity scores, particularly on Transformer models.
  • Visual Clarity: Qualitatively, the aggregated heatmaps are much cleaner and more intuitive, successfully highlighting the actual object of interest while discarding the "checkerboard" noise common in raw gradient methods.
An optimized aggregated attribution map showing improved focus and reduced noise compared to individual methods.

Insights and Limitations

One might worry that finding the "right" weights requires massive data. However, the authors demonstrate that as few as 50 evaluation points are sufficient for effective generalization. Furthermore, the optimization process acts as an automatic filter; if a method produces poor results for a specific image, the optimizer naturally assigns it a near-zero weight.

The primary trade-off is computational cost, as producing an optimized aggregate requires running multiple base methods and solving a quadratic program. While this adds seconds to the process, the authors argue it is a minor price for significantly more reliable explanations. Future work may explore non-convex aggregation strategies and concept-based insights.

Summary updated

BibTeX
@inproceedings{decker2024provably,
  author = {Thomas Decker and Ananta R. Bhattarai and Jindong Gu and Volker Tresp and Florian Buettner},
  title = {{Provably Better Explanations with Optimized Aggregation of Feature Attributions}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=3VnSgdget6},
}
Figure