KIT | KIT-Bibliothek | Impressum | Datenschutz

Explainable time-series forecasting with sampling-free SHAP for Transformers

Hertel, Matthias ORCID iD icon 1; Pütz, Sebastian 1; Mikut, Ralf ORCID iD icon 1; Hagenmeyer, Veit ORCID iD icon 1; Schäfer, Benjamin ORCID iD icon 1
1 Institut für Automation und angewandte Informatik (IAI), Karlsruher Institut für Technologie (KIT)

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.


Verlagsausgabe §
DOI: 10.5445/IR/1000193702
Veröffentlicht am 01.06.2026
Originalveröffentlichung
DOI: 10.1038/s41467-026-73243-5
Cover der Publikation
Zugehörige Institution(en) am KIT Institut für Automation und angewandte Informatik (IAI)
Publikationstyp Zeitschriftenaufsatz
Publikationsjahr 2026
Sprache Englisch
Identifikator ISSN: 2041-1723
KITopen-ID: 1000193702
Erschienen in Nature Communications
Verlag Nature Research
Band 17
Heft 1
Seiten Art.: 4723
Vorab online veröffentlicht am 27.05.2026
Nachgewiesen in OpenAlex
KIT – Die Universität in der Helmholtz-Gemeinschaft
KITopen Landing Page