On Baselines for Local Feature Attributions

Johannes Haug, Stefan Zürn, Peter El-Jiz, Gjergji KasneciarXiv 2021

Abstract

High-performing predictive models, such as neural nets, usually operate as black boxes, which raises serious concerns about their interpretability. Local feature attribution methods help to explain black box models and are therefore a powerful tool for assessing the reliability and fairness of predictions. To this end, most attribution models compare the importance of input features with a reference value, often called baseline. Recent studies show that the baseline can heavily impact the quality of feature attributions. Yet, we frequently find simplistic baselines, such as the zero vector, in practice. In this paper, we show empirically that baselines can significantly alter the discriminative power of feature attributions. We conduct our analysis on tabular data sets, thus complementing recent works on image data. Besides, we propose a new taxonomy of baseline methods. Our experimental study illustrates the sensitivity of popular attribution models to the baseline, thus laying the foundation for a more in-depth discussion on sensible baseline methods for tabular data.

Introduction

To explain why a "black box" model makes a specific prediction, researchers use Local Feature Attribution (LFA) methods like SHAP or Integrated Gradients. These methods typically assign importance by comparing the current input to a "neutral" reference point called a baseline. For example, in image recognition, a common baseline is a solid black image. However, determining the equivalent for tabular data—which may include age, income, and credit scores—is non-trivial. While many practitioners default to a vector of zeros, this choice is often arbitrary and can lead to misleading explanations. This research addresses the lack of a systematic framework for choosing baselines specifically for tabular data.

A Taxonomy of Baseline Methods

The authors propose a two-dimensional taxonomy to categorize baseline methods:

  1. Static vs. Dynamic: A static baseline provides the same reference value for every observation (e.g., the dataset mean), whereas a dynamic baseline changes depending on the specific input being explained (e.g., a blurred version of the input).
  2. Deterministic vs. Stochastic: A deterministic baseline always produces the same value for a given input, while a stochastic baseline involves randomness (e.g., drawing a random sample from the training set).

Experimental Methodology

The study evaluated seven baseline types (Constant, Max Distance, Blurred, Gaussian, Uniform, Expectation, and Neutral) across four state-of-the-art attribution models: KernelSHAP, DeepSHAP, DeepLIFT, and Integrated Gradients (IG). These were tested on five diverse tabular datasets, including Human Activity Recognition (HAR), Fraud Detection, and COMPAS.

To measure explanation quality, the researchers employed a Top-K ablation test. In this test, the most "important" features identified by an attribution method are masked with random noise. The quality is determined by how quickly the model's performance (measured by F1 score) drops. A sharper drop indicates that the attribution method successfully identified the truly influential features.

Top-K ablation test results showing F1 score degradation as important features are removed.

Key Results and Discussion

The experiments revealed several critical insights into the behavior of baselines on tabular data:

  • High Sensitivity: All attribution models were extremely sensitive to the baseline choice. Changing the baseline often completely reordered the feature rankings.
  • The Distribution Gap: Baselines that follow the underlying data distribution, such as Expectation or Gaussian, generally yield superior explanations. Using "outlier" values that the model never encountered during training often results in nonsensical attributions.
  • Failure of Image-Centric Baselines: Uniform random baselines, which are effective for images, struggle with tabular data. This is likely due to the heterogeneous nature of tabular features; a random value between a feature's minimum and maximum might be logically irrelevant or physically impossible.
  • The "Zero" Trap: Defaulting to a zero baseline is particularly dangerous for categorical data, where "0" might represent a specific category rather than the absence of information.
Ablation curves illustrating the high sensitivity of attribution quality to baseline choice across different datasets.
  • No Universal Winner: The effectiveness of a baseline depends heavily on the specific dataset and the model's decision boundary. While the Expectation baseline was frequently a top performer, no single method was optimal in every scenario.

Conclusion

This study demonstrates that the choice of baseline is not a mere implementation detail but a fundamental component of local feature attribution. By proposing a new taxonomy and providing empirical evidence of baseline sensitivity on tabular data, this work lays the foundation for more rigorous selection of reference values in explainable AI. Future work should focus on developing "neutral" baselines that sit on the model's decision boundary and creating automated tools to assist practitioners in baseline selection.

Summary updated

BibTeX
@misc{haug2021baselines,
  author = {Johannes Haug and Stefan Zürn and Peter El-Jiz and Gjergji Kasneci},
  title = {{On Baselines for Local Feature Attributions}},
  year = {2021},
  eprint = {2101.00905},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.00905},
}
Figure