Explainable time-series forecasting with sampling-free SHAP for Transformers
Matthias Hertel, Sebastian Pütz, Ralf Mikut, Veit Hagenmeyer, Benjamin Schäfer
Karlsruhe Institute of Technology
Key points
From the paper's conclusion- We introduce SHAPformer, an accurate, fast and explainable time-series forecasting model based on the Transformer architecture and Shapley Additive Explanations (SHAP).
Abstract
Time-series forecasting is essential for planning and decision-making across domains, and model explainability is critical for fostering user trust and satisfying transparency requirements. We introduce SHAPformer, an accurate, fast and explainable time-series forecasting model based on the Transformer architecture and Shapley Additive Explanations (SHAP). SHAPformer leverages attention manipulation to make predictions using feature subsets, thereby eliminating the need for sampling from background data required by established SHAP algorithms. As a result, it produces exact explanations in less than one second, achieving speedups of 50-1000 × compared to PermutationSHAP. On synthetic data with known ground-truth explanations, SHAPformer generates explanations that are true to the data. When applied to electrical load data and electricity price data, it achieves competitive predictive performance while providing meaningful local and global insights, including the identification of the past target as the key predictor and the detection of distinct load forecasting behavior during the Christmas period.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- TempShap: When and How Much a Feature Matters in Time-Series ForecastingarXiv · 2026
- Explaining Time Series Forecasting with Horizon-Resolved AttributionarXiv · 2026
- Embedded Decomposed Transformer for explainable multivariate time series forecastingComputers & Electrical Engineering · 2026
- Scaling transformers for time series forecasting: do pretrained large models outperform small-scale alternatives?Artificial Intelligence Review · 2026
- Explainability for Forecasting Task with Close-Up OptionAI · 2026
- MP-Transformer: A Hybrid Model Integrating Multi-Period ARIMA and Dynamically Gated Attention for Time-Series ForecastingInformation Technology And Control · 2026