TempShap: When and How Much a Feature Matters in Time-Series Forecasting
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 . 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.
Create a lesson
Metadata
- Categories
- cs.AI, cs.GT, cs.LG
Related papers
SMAD: A Semantics-Guided Multi-Agent Framework for Unsupervised Time-Series Anomaly Detection
Shared title terminologycs.AIQinghua Liu, Junpeng Wang, Mingzhi Hu et al.
The Future Is Finer: Multivariate Time Series Super-Resolution Forecasting
Shared title terminologycs.AIShuhao Li, Weidong Yang, Yue Cui et al.
Benchmarking System One Models for Time-Series Decision Making: A Case Study of Jev
Shared title terminologycs.AIJianye Wang, Kexin Zhang, Jiayin Xiong et al.
AdaTrendLike: Adaptive Hierarchical Detrending and Trend Likelihood Scoring for Time Series Anomaly Detection
Shared title terminologycs.AIVan Kwan Zhi Koh, Songnan Lin, Rongmo Luo et al.
SAE-Audit: Clinical-Trial Prediction via Inference-Time Optimization of Black-Box LLMs Audited by Sparse Autoencoder Evidence
Shared title terminologycs.AIJunbo Shen
Learning from Another Angle: Rotation-Based Test-Time Training for Multimodal Large Language Models
Shared title terminologycs.AIChangyu Liu, Fei Zhao, Yiyang Liu et al.