TempShap: When and How Much a Feature Matters in Time-Series Forecasting

Zhao, Chi, Chelnokova, Anastasiia, Liu, Jing, Parilina, Elena

–arXiv.org Artificial Intelligence 

Yet most existing Shapley explainers (SHAP (Lundberg & Lee, 2017), KernelSHAP, FastSHAP (Jethani et al., 2022), Leverage SHAP (Musco & Witter, 2025), ShapG (Zhao et al., 2025b)) treat each feature as one player, returning one scalar per input feature. This collapses the input-lag and the whole output cell (forecast horizon and target) to that scalar. The standard evaluation does the same: estimators are ranked by a progressive feature-removal score (Petsiuk et al., 2018), a single curve that again collapses the input-lag and horizon axes. ShapTime (Zhang et al., 2024) explains temporal importance to guide forecasting improvements. Other time-series extensions push toward (feature,timestep)space by grouping (TimeSHAP (Bento et al., 2021), WindowSHAP (Nayebi et al., 2023), ShaTS (Franco de la Pe na et al., 2025)); finer-grained approaches use cell-level Shapley perturbations (TimeSHAP) or localized per-position sensitivities (PAX-TS), but neither provides a uniform loss-based per-(sample, input-lag, input-feature, horizon, target) Shapley tensor from which temporal profiles are read; that tensor is this paper's contribution. Our contributions are: A cell-level, loss-based Shapley framework (Section 3) whose attribution tensor yields temporal-localization, horizon-impact, and rank-settling profiles (Figure 1). Validation and robustness of this framework (Sections A.4 and 5.1): recovery of planted signals, exact-cell and linear-model oracle agreement, baseline-robust localization, and no consistent recency ordering across architectures. 1