Introducing the Attribution Stability Indicator: A Measure for Time Series XAI Attributions

Udo Schlegel, Daniel A. Keim

Abstract

Explainable AI (XAI) is critical for deploying deep learning models in sensitive domains like finance and healthcare. While attribution techniques highlight influential time points in sequences, existing evaluation metrics often fail to capture the robustness and fidelity of these explanations. We present the Attribution Stability Indicator (ASI), a comprehensive metric designed to evaluate time series explanations by integrating prediction probability shifts, attribution similarity, and input distance. Our analysis demonstrates that ASI provides a more nuanced assessment than traditional class-flip metrics, revealing insights into model confidence and the geometric structure of attribution spaces.

Introduction

Deep learning models have become indispensable in time series analysis, yet their "black box" nature remains a significant barrier to trust. Attribution methods aim to provide transparency by identifying salient features in the input data. However, the lack of standardized, robust metrics to evaluate these explanations makes it difficult to compare XAI methods or ensure their reliability. Traditional perturbation-based evaluations often rely on binary outcomes, such as whether a prediction changes after removing important features, which ignores the continuous nature of model confidence and the consistency of explanations.

The Limitations of Current Metrics

Standard evaluation for XAI typically employs perturbation analysis: features identified as "important" are modified (e.g., zeroed out), and the resulting change in model prediction is measured. If the predicted class flips, the explanation is considered successful. This approach is overly simplistic for time series data for several reasons:

  1. It ignores subtle shifts in prediction probability that do not result in a class change.
  2. It does not account for the magnitude of the perturbation required to achieve the flip.
  3. It fails to evaluate whether the explanation for the perturbed sample is consistent with the original rationale.

The Attribution Stability Indicator (ASI)

To address these gaps, we propose the Attribution Stability Indicator (ASI). ASI aggregates five distinct factors into a single score between 0 (perfect stability) and 1 (poor stability):

  • Class Flip ($b_f$): A binary indicator of whether the predicted label changed.
  • Prediction Probability Change ($JS_{dist}$): Measured via Jensen-Shannon distance, this captures shifts in the entire output distribution, reflecting changes in model confidence.
  • Attribution Similarity ($pcc_{att}$): Uses the Pearson Correlation Coefficient (PCC) to ensure the new attribution for the perturbed sample relates logically to the original.
  • Time Series Distance ($pcc_{ts}$): Quantifies the extent of the input signal alteration, favoring minimal changes that yield maximal impact.
  • User Weighting ($W$): Hyperparameters that allow for prioritizing specific aspects, such as visual stability for human-centric applications.

The evaluation workflow involves generating an initial attribution, perturbing the most relevant points, and re-evaluating both the model's prediction and the resulting attribution.

The perturbation analysis pipeline: from original time series to perturbed instance using attributions.

Experimental Evaluation

We evaluated ASI using benchmarks from the UCR archive, including FordA, FordB (engine sensor data), and ElectricDevices (electricity consumption patterns). We tested several XAI methods: Saliency, DeepLIFT, Integrated Gradients, and GradientSHAP.

The Geometry of Explanations

By projecting attributions into a 2D space using UMAP, we observed that high-quality attributions for different classes form distinct clusters. A robust perturbation should ideally "push" a sample's attribution from its original class cluster toward another, as illustrated in the figure below.

UMAP projection of attributions showing how perturbations (A to B) move samples between class clusters.

Key Results and Discussion

Our findings indicate that GradientSHAP consistently performs well, particularly on the FordA dataset. More importantly, ASI proved to be more informative than simple flip counts. Two XAI methods might yield identical class-flip rates but significantly different ASI scores, highlighting differences in their underlying stability and fidelity.

Furthermore, ASI helped identify "shortcut learning," where models focus on features for a single class and treat others as a default. This was evidenced by asymmetric behavior in prediction flips and attribution shifts. The distribution of ASI scores across a dataset serves as a "fingerprint" for an XAI method; a Gaussian-like distribution often indicates better-separated attribution clusters and more reliable explanations.

Conclusion and Future Work

The Attribution Stability Indicator offers a robust framework for evaluating time series XAI. By moving beyond binary metrics, it provides a deeper understanding of model behavior and explanation quality. Future research will focus on addressing out-of-distribution (OOD) samples created during perturbation, incorporating domain-specific constraints (e.g., physiological plausibility in healthcare), and exploring alternative distance metrics like Dynamic Time Warping (DTW) to better handle temporal shifts.

Summary updated

BibTeX
@inproceedings{schlegel2023introducing,
  author = {Udo Schlegel and Daniel A. Keim},
  title = {{Introducing the Attribution Stability Indicator: A Measure for Time Series XAI Attributions}},
  booktitle = {PKDD/ECML Workshops},
  year = {2023},
  url = {https://openreview.net/forum?id=0cyqbQwpHT},
}

Loading related content...

Figure