NormEnsembleXAI: Unveiling the Strengths and Weaknesses of XAI Ensemble Techniques

Weronika Hryniewska-Guzik, Bartosz Sawicki, Przemyslaw BiecekarXiv 2024 · DOI

Introduction

Deep learning models have revolutionized computer vision and natural language processing, yet they often operate as "black boxes." To address this, Explainable AI (XAI) methods like SHAP, LIME, and Guided Backpropagation have been developed to provide insights into model decision-making. However, individual XAI methods frequently exhibit specific biases—some are robust but lack precision, while others are sharp but sensitive to input noise.

Ensembling multiple explanations offers a path toward a more holistic and reliable interpretation. Yet, current ensembling techniques face significant hurdles: high computational costs, the need for ground-truth segmentation masks (which are rarely available), and mathematical incompatibility between different XAI output ranges. This paper introduces NormEnsembleXAI, a lightweight framework that achieves state-of-the-art performance by combining simple normalization with basic aggregation functions.

Methodology

The core of the proposed approach is a two-stage pipeline: normalization followed by aggregation.

NormEnsembleXAI

To resolve the "apples-to-oranges" comparison problem inherent in combining different XAI methods, the authors evaluate three normalization techniques:

  1. Normal Standardization (z-score): Centers the data around the mean with unit variance.
  2. Robust Standardization: Uses medians and Interquartile Ranges (IQR) to mitigate the influence of outliers.
  3. Second Moment Scaling: Scales values based on the second raw moment.

Following normalization, the explanations are combined using simple aggregation functions such as Mean, Minimum, Maximum, or Maximum Absolute Value.

Overview of the NormEnsembleXAI pipeline, showing the transition from individual explanations through normalization and aggregation to the final ensembled output.

Comparative Baselines

The study compares NormEnsembleXAI against two prominent ensembling strategies:

  • SupervisedXAI: This method employs a Kernel Ridge Regression (KRR) model to learn a mapping from multiple XAI explanations to a ground-truth segmentation mask. The authors enhanced this baseline by introducing "instance weights" to account for varying mask sizes across the dataset.
  • Autoweighted: This technique assigns weights to individual XAI methods based on their internal stability (resistance to noise) and consistency across different model states.

Experimental Setup

The researchers utilized the ImageNet-S dataset (a subset of 50 ImageNet classes with segmentation masks) and the COCO dataset to benchmark localization and faithfulness. A ResNet-18 model, pre-trained on ImageNet, served as the primary subject for explanation. To facilitate further research, the authors released EnsembleXAI, a PyTorch-compatible library implementing these methods.

Key Insights and Results

The experimental results highlight several critical findings regarding the nature of XAI ensembling.

The Power of Normalization

Normalization proved to be the "secret sauce" of the framework. Without it, ensembling often fails because methods with higher output magnitudes disproportionately influence the final result. Interestingly, the simplest combination—Average aggregation with Normal Standardization—consistently provided the best balance across metrics, matching or exceeding the performance of complex supervised models without requiring any training data.

Efficiency and Performance

One of the most striking results is the computational efficiency of NormEnsembleXAI. While SupervisedXAI and Autoweighted require approximately 41 and 48 seconds respectively to generate an ensemble, NormEnsembleXAI completes the task in just 0.08 to 0.11 seconds.

Qualitative comparison of different ensemble methods across various ImageNet classes. NormEnsembleXAI variants provide clear, localized explanations comparable to supervised methods.

In terms of Faithfulness (how accurately the explanation reflects the model's logic) and Randomization tests, the "normal average" variant of NormEnsembleXAI outperformed all other ensembling methods and individual component explanations. All methods performed comparably well on the "Pointing-Game" metric, indicating strong localization capabilities across the board.

Discussion and Future Work

The study also uncovered a potential pitfall in ensembling: Cancellation Risks. If two explanation methods provide attributions with similar magnitudes but opposite signs, a simple mean aggregation can lead to information loss. Furthermore, the authors noted that SupervisedXAI is often biased toward positive attributions because it is trained on binary [0, 1] masks, preventing it from highlighting features that might negatively influence a class prediction.

Future research directions include expanding these techniques to text and tabular data domains. Additionally, the authors suggest that replacing Kernel Ridge Regression with Convolutional Neural Networks (CNNs) in supervised setups could better capture the spatial relationships inherent in image-based explanation maps.

Summary updated

BibTeX
@misc{hryniewskaguzik2024normensemblexai,
  author = {Weronika Hryniewska-Guzik and Bartosz Sawicki and Przemyslaw Biecek},
  title = {{NormEnsembleXAI: Unveiling the Strengths and Weaknesses of XAI Ensemble Techniques}},
  year = {2024},
  eprint = {2401.17200},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.17200},
}
Figure