Related Experiment Videos
Explainable time-series forecasting with sampling-free SHAP for Transformers
Matthias Hertel1, Sebastian Pütz2, Ralf Mikut2
1Institute for Automation and Applied Informatics (IAI), Karlsruhe Institute of Technology (KIT), Eggenstein-Leopoldshafen, Germany. matthias.hertel@kit.edu.
Nature Communications
|May 27, 2026
Summary
SHAPformer enhances time-series forecasting with explainability. This Transformer-based model provides accurate predictions and fast, exact explanations (SHAP) without background data sampling.
Area of Science:
- Artificial Intelligence
- Machine Learning
- Time-Series Analysis
Background:
- Accurate time-series forecasting is crucial for planning.
- Model explainability is vital for user trust and transparency.
- Existing Shapley Additive Explanations (SHAP) methods can be computationally intensive.
Purpose of the Study:
- Introduce SHAPformer, a novel time-series forecasting model.
- Achieve accurate predictions with enhanced model explainability.
- Develop a faster SHAP-based explanation method for Transformers.
Main Methods:
- Utilized a Transformer architecture for time-series forecasting.
- Integrated Shapley Additive Explanations (SHAP) for model interpretability.
- Developed an attention manipulation technique to eliminate background data sampling for SHAP calculations.
Main Results:
- SHAPformer achieved accurate time-series forecasting performance.
- Generated exact SHAP explanations in under one second (50-1000x speedup over PermutationSHAP).
- Identified key predictors (e.g., past target) and distinct forecasting patterns (e.g., holiday periods).
Conclusions:
- SHAPformer offers a fast, accurate, and explainable solution for time-series forecasting.
- The model provides valuable local and global insights into forecasting behavior.
- Attention manipulation is an effective strategy for efficient SHAP explanations in Transformer models.
Related Concept Videos
Transformers in Distribution System
Transformers in distribution systems can be broadly categorized into distribution substation transformers and other distribution transformers. They are crucial for stepping down high transmission voltages to levels suitable for distribution and end-user applications.
Distribution substation transformers come in various ratings and typically use mineral oil for insulation and cooling. To prevent moisture and air from entering the oil, some transformers use an inert gas like nitrogen to fill the...
Distribution substation transformers come in various ratings and typically use mineral oil for insulation and cooling. To prevent moisture and air from entering the oil, some transformers use an inert gas like nitrogen to fill the...
Sampling Continuous Time Signal
In signal processing, a continuous-time signal can be sampled using an impulse-train sampling technique, followed by the zero-order hold method. Impulse-train sampling involves the use of a periodic impulse train, which consists of a series of delta functions spaced at regular intervals determined by the sampling period. When a continuous-time signal is multiplied by this impulse train, it generates impulses with amplitudes corresponding to the signal's values at the sampling points.
In the...
In the...
Transformers with Off-Nominal Turns Ratios
In scenarios involving parallel transformers with disparate ratings, developing per-unit models requires accommodating off-nominal turns ratios. This situation arises when the selected base voltages are not proportional to the transformer’s voltage ratings. Consider a transformer where the rated voltages are related by the term a. If the chosen voltage bases satisfy a relationship involving term b, term c is defined as the ratio of these bases. This ratio is then substituted into the rated...
Transformers
A device that transforms voltages from one value to another using induction is called a transformer. A transformer consists of two separate coils, or windings, wrapped around the same soft iron core. However, they are electrically insulated from each other.
The iron core has a substantial relative permeability. Therefore, the magnetic field lines generated due to the current in one winding are almost entirely confined within the core, such that the same magnetic flux permeates each turn of both...
The iron core has a substantial relative permeability. Therefore, the magnetic field lines generated due to the current in one winding are almost entirely confined within the core, such that the same magnetic flux permeates each turn of both...
Sampling Theorem
In signal processing, the analysis of continuous-time signals, denoted as x(t), often involves sampling techniques to convert these signals into discrete-time signals. This process is essential for digital representation and manipulation. A critical component in sampling is the train of impulses, characterized by the sampling interval and the sampling frequency. The relationship between these parameters and the original signal's properties dictates the success of the sampling process.
Sampling Plans
Sampling is a crucial step in analytical chemistry, allowing researchers to collect representative data from a large population. Common sampling methods include random, judgmental, systematic, stratified, and cluster sampling.
Random sampling is a method where each member of the population has an equal chance of being selected for the sample. It involves selecting individuals randomly, often using random number generators or lottery-type methods. For example, when analyzing the properties of a...
Random sampling is a method where each member of the population has an equal chance of being selected for the sample. It involves selecting individuals randomly, often using random number generators or lottery-type methods. For example, when analyzing the properties of a...