Goto

Collaborating Authors

 pax-ts


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

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


PAX-TS: Model-agnostic multi-granular explanations for time series forecasting via localized perturbations

arXiv.org Artificial Intelligence

Time series forecasting has seen considerable improvement during the last years, with transformer models and large language models driving advancements of the state of the art. Modern forecasting models are generally opaque and do not provide explanations for their forecasts, while well-known post-hoc explainability methods like LIME are not suitable for the forecasting context. We propose PAX-TS, a model-agnostic post-hoc algorithm to explain time series forecasting models and their forecasts. Our method is based on localized input perturbations and results in multi-granular explanations. Further, it is able to characterize cross-channel correlations for multivariate time series forecasts. We clearly outline the algorithmic procedure behind PAX-TS, demonstrate it on a benchmark with 7 algorithms and 10 diverse datasets, compare it with two other state-of-the-art explanation algorithms, and present the different explanation types of the method. We found that the explanations of high-performing and low-performing algorithms differ on the same datasets, highlighting that the explanations of PAX-TS effectively capture a model's behavior. Based on time step correlation matrices resulting from the benchmark, we identify 6 classes of patterns that repeatedly occur across different datasets and algorithms. We found that the patterns are indicators of performance, with noticeable differences in forecasting error between the classes. Lastly, we outline a multivariate example where PAX-TS demonstrates how the forecasting model takes cross-channel correlations into account. With PAX-TS, time series forecasting models' mechanisms can be illustrated in different levels of detail, and its explanations can be used to answer practical questions on forecasts.