TempShap: When and How Much a Feature Matters in Time-Series Forecasting
Chi Zhao, Anastasiia Chelnokova, Jing Liu, Elena Parilina
Key points
From the paper's conclusion- We propose TempShap, a retrospective, loss-based Shapley framework whose players are the individual input cells $(t,i)$.
Abstract
Attribution for a time-series forecaster should answer two questions that a feature-level scalar cannot: when in the input window a feature acts, and how much its influence changes across the forecast horizon. Most existing Shapley explainers treat each feature as one player and therefore collapse both axes. We propose TempShap, a retrospective, loss-based Shapley framework whose players are the individual input cells $(t,i)$. Its attribution tensor yields temporal-localization and horizon-impact profiles. We validate these against planted temporal structures, a tractable exact cell game, and a closed-form attribution oracle for a real linear forecaster. Permutation sharing estimates the cell-level game at localized perturbation cost. Under redundant inputs, one-at-a-time scores under-credit substitutable information, whereas the signed Shapley decomposition preserves total value and yields more reliable held-out deletion rankings under mean masking. A planted counterexample isolates the redundancy mechanism. Experiments show a deletion-ranking advantage across Shapley estimators, forecasting benchmarks, and model families. TempShap therefore makes fine-grained Shapley attribution both practical and operationally useful.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Explaining Time Series Forecasting with Horizon-Resolved AttributionarXiv · 2026
- Explainable time-series forecasting with sampling-free SHAP for TransformersNature Communications · 2026
- CoLaX: Context-Aware Local Explanations for Time Series ClassificationarXiv · 2026
- MotionBench-XAI: Benchmarking What Shapes Shapley Explanations in Spatiotemporal Machine LearningarXiv · 2026
- When Attention Does Not Explain the Peak: Temporal Reference vs. Forecast Output in Attention-Based Time-Series ForecastingarXiv · 2026
- Which Histories Matter for Time Series Forecasting? Learning Predictive Relevance with Future SupervisionarXiv · 2026