Time Series Model Attribution Visualizations as Explanations

Udo Schlegel, Daniel A. KeimarXiv 2021

Introduction

In the field of Explainable AI (XAI), attribution serves as a primary tool for interpreting "black box" models. For instance, if a deep learning model predicts a cardiac event from an ECG signal, attribution methods highlight the specific temporal spikes that drove that prediction. While heatmaps are the established standard for visualizing attributions in computer vision, they often translate poorly to time series data. This paper reviews the current landscape of time series attribution, identifying a significant "image bias" in existing tools and proposing a shift toward more specialized, human-centric visualizations.

Taxonomy of Attribution and Visualization

The authors categorize the field into two distinct components: how importance scores are generated and how they are presented to the user.

1. Attribution Generation Techniques

  • Gradient-based: Methods like Saliency and Integrated Gradients analyze internal model gradients to determine which input changes most significantly impact the output.
  • Structure-based: Techniques such as Layer-wise Relevance Propagation (LRP) and DeepLIFT decompose the final output score back through the network layers to the input features.
  • Surrogate/Sampling: Black-box methods like LIME and SHAP perturb the input data to observe changes in model behavior, requiring no knowledge of the model's internal architecture.

2. Visualization Strategies

Traditional heatmaps overlay color directly onto line plots, but this often leads to "overplotting" where the underlying data shape is obscured.

An abstract heatmap for a multivariate energy consumption time series, demonstrating how importance is mapped across multiple variables over time.

Alternatively, abstract heatmaps (as seen above) remove the data line entirely, which is common in multivariate series to show patterns across different sensors. Other emerging strategies include "Line Plot Extensions" like pipes—which vary the thickness of a sleeve around the signal to encode importance—and bar charts that display additive contributions relative to a baseline.

The Fidelity Gap and User Perception

A critical insight from the review is the lack of consistency between different attribution methods. As shown in the comparison below, different algorithms often disagree on which parts of the same time series are "important."

Comparison of different attribution methods on the FordA dataset, highlighting how Saliency, LRP, DeepLIFT, LIME, and SHAP can produce inconsistent or noisy results for the same input.

This inconsistency highlights a "fidelity issue": a visualization might look intuitive to a human expert while failing to accurately represent the model's internal logic. Furthermore, user studies suggest that non-experts often find "explanation by example" (showing similar historical cases) or counterfactuals (showing what the data would look like if the prediction were different) far more helpful than abstract importance scores.

Key Insights and Future Directions

  • The Image Bias Trap: Applying image-centric heatmaps to time series often hides critical features like slopes or peaks.
  • Context vs. Clarity: There is an inherent trade-off; removing the raw data line makes model patterns clearer but disconnects the explanation from domain-specific knowledge.
  • Interactive Workflows: The authors advocate for a workflow inspired by the "Shneiderman Mantra": provide a counterfactual overview first, allow users to zoom into specific windows, and provide raw attribution scores only on demand.

Conclusion

To move beyond static, potentially misleading heatmaps, the authors argue for interactive pipelines. Future XAI systems should allow users to perturb time series in real-time, observing how the model's focus shifts. This transition from static visualization to interactive conversation is essential for building true trust between humans and AI in sensitive domains like healthcare and energy management.

Summary updated

BibTeX
@misc{schlegel2021time,
  author = {Udo Schlegel and Daniel A. Keim},
  title = {{Time Series Model Attribution Visualizations as Explanations}},
  year = {2021},
  eprint = {2109.12935},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.12935},
}
Figure