TIMING: Temporality-Aware Integrated Gradients for Time Series Explanation

Hyeongwon Jang, Changhun Kim, Eunho Yang · 2025

Read TIMING: Temporality-Aware Integrated Gradients for Time Series Explanation by Hyeongwon Jang, Changhun Kim, Eunho Yang (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2506-05035.txt.

Introduction

Hyeongwon Jang, Changhun Kim, and Eunho Yang published this study in 2025. It works on explaining time series models, showing which moments in a series drove a forecast. Common tools report how much each point matters, but not whether it pushed the score up or down. The team shows that standard gradient methods do capture both kinds of points. The grading metrics, though, cancel the two kinds out, hiding that skill.

They propose two new metrics that score positive and negative points apart. Then they build TIMING, a method that makes the gradient path respect time order, so it avoids unreal mixed-up samples. On synthetic and real data sets, TIMING beat the other explanation tools. The code is public.

Catalog record

CREATORHyeongwon Jang, Changhun Kim, Eunho Yang
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE62 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2506-05035

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

TIMING: Temporality-Aware Integrated Gradients for Time Series Explanation Hyeongwon Jang, Changhun Kim, Eunho Yang Abstract Recent explainable artificial intelligence (XAI) methods for time series primarily estimate point-wise attribution magnitudes, while overlooking the directional impact on predictions, leading to suboptimal identification of significant points. Our analysis shows that conventional Integrated Gradients (IG) effectively capture critical points with both positive and negative impacts on predictions. However, current evaluation metrics fail to assess this capability, as they inadvertently cancel out opposing feature contributions. To address this limitation, we propose novel evaluation metrics—Cumulative Prediction Difference (CPD) and Cumulative Prediction Preservation (CPP)—to systematically assess whether attribution methods accurately identify significant positive and negative points in time series XAI. Under these metrics, conventional IG outperforms recent counterparts. However, directly applying IG to time series data may lead to suboptimal outcomes, as generated paths ignore temporal relationships and introduce out-of-distribution samples. To overcome these challenges, we introduce TIMING, which enhances IG by incorporating temporal awareness while maintaining its theoretical properties. Extensive experiments on synthetic and real-world time series benchmarks demonstrate that TIMING outperforms existing time series XAI baselines. Our code is available at https://github.com/drumpt/TIMING . † † affiliationnotice: Equal contribution 1 Introduction Time series data are prevalent across various fields, especially in safety-critical domains such as healthcare ( Sukkar et al. 2012 ; Bica et al. 2020 ; Rangapuram et al. 2021 ) , energy ( Rangapuram et al. 2018 ; Benidis et al. 2022 ) , transportation ( Nguyen et al. 2018 ; Song et al. 2020 ) , and infrastructure ( Dick et al. 2019 ; Torres et al. 2021 ) . These sectors usually necessitate high transparency in predictive models to ensure safe and reliable operations, making the interpretability of model behavior crucial. With deep neural networks becoming the dominant approach for time series analysis, understanding their decision-making processes has become increasingly challenging due to their black-box nature ( Zhao et al. 2023 ; Liu et al. 2024b ; Liu et al. 2024a ) . To tackle this challenge, several XAI methods for time series data have been proposed ( Tonekaboni et al. 2020 ; Leung et al. 2023 ; Crabbé & Van Der Schaar 2021 ; Enguehard 2023 ; Liu et al. 2024b ; Queen et al. 2024 ; Liu et al. 2024a ; Ismail et al. 2020 ) . These methods commonly employ unsigned attribution schemes , focusing on the magnitude of output changes resulting from feature removal, rather than their direction —whether they reinforce or oppose the model’s prediction. This is practically undesirable as end-users typically want to identify positively contributing features. Furthermore, existing evaluation strategies assess these methods by measuring prediction changes by simultaneously masking out the most important points based on high attribution scores ; this approach does not adequately capture the effectiveness of methods such as Integrated Gradients (IG) that provide directional attribution. Regarding this matter, our preliminary analysis in Section 3.1 reveals that while IG effectively captures important points, this capability has been significantly underestimated in prior studies; this underestimation occurs since traditional metrics cancel out the effects of points with opposing impacts. By relying solely on these evaluations, recent literature has inadvertently favored methods that align attribution directions while neglecting the interpretative value of directional information. Motivated by these limitations, we first propose novel evaluation metrics—Cumulative Prediction Difference (CPD) and Cumulative Prediction Preservation (CPP)—to comprehensively assess both directed and undirected attribution methods. These metrics evaluate points cumulatively rather than simultaneously: CPD for high-attribution points (higher is better) and CPP for low-attribution points (lower is better). By addressing the cancel out problem of positive and negative attribution under these metrics, we re-evaluate existing baselines and find that traditional gradient-based methods, such as IG, perform remarkably well compared to state-of-the-art methods ( Enguehard 2023 ; Liu et al. 2024a ; Liu et al. 2024b ) . This result demonstrates that these methods with directional attributions are more effective at capturing the points that truly influence the model’s behavior. Building on the efficacy of directional attribution methods, we propose Tim e Series In tegrated G radients (TIMING), a novel approach designed to enhance conventional IG tailored for the time series domain. While traditional IG calculates gradients along a zero baseline at all points simultaneously, it often fails to capture the effects of complex temporal dependencies and introduces out-of-distribution (OOD) samples along the integration path. TIMING overcomes these challenges by integrating temporality-aware stochastic baselines into the attribution calculation process. We further analyze the theoretical guarantees of TIMING, demonstrating that its segment-based masking can be incorporated into the internal IG path, preserving key theoretical properties of IG while enabling more effective calculation. Extensive experiments on synthetic and real-world datasets demonstrate that TIMING outperforms existing time series XAI baselines. To summarize, our contributions are threefold: • We propose CPD and CPP, which monitor all internal changes rather than making simultaneous changes, to resolve the cancel out problem present in existing time series XAI evaluations. • We introduce TIMING, which improves IG by adapting temporality-aware stochastic baselines to capture the effects of complex temporal dependencies and mitigate OOD problems. • Extensive experiments show that TIMING outperforms baselines while maintaining the efficiency and theoretical properties of IG. 2 Problem Setup We define the problem of estimating feature attribution for time series data. Let F:\mathbb{R}^{T\times D}\rightarrow[0,1]^{C} be a time series classifier, where T is the number of time steps, D is the feature dimension, and C is the number of classes. Let x\in\mathbb{R}^{T\times D} denote an input time series. The classifier F outputs class probabilities F(x)=(F_{1}(x),\dots,F_{C}(x)) where F_{c}(x)\geq 0 and \sum_{c=1}^{C}F_{c}(x)=1 . A feature attribution \mathcal{A}(F,x)\in\mathbb{R}^{T\times D} is a real-valued matrix, where each entry \mathcal{A}(F,x)_{t,d} quantifies the contribution of the feature x_{t,d} to the model’s predicted probability for the chosen class F_{\hat{y}}(x) , with \hat{y}=\arg\max_{c\in\{1,\dots,C\}}F_{c}(x) . For signed attribution methods ( Lundberg & Lee 2017 ; Ribeiro et al. 2016 ; Sundararajan et al. 2017 ; Shrikumar et al. 2017 ) , positive values of \mathcal{A}(F,x)_{t,d} indicate that the feature x_{t,d} contributes to increasing model’s prediction score for the chosen class, while negative values suggested that x_{t,d} suppresses the prediction score, with the absolute value reflecting the strength of influence. In contrast, unsigned attribution methods ( Suresh et al. 2017 ; Tonekaboni et al. 2020 ; Leung et al. 2023 ; Crabbé & Van Der Schaar 2021 ; Enguehard 2023 ; Liu et al. 2024b ; Queen et al. 2024 ; Liu et al. 2024a ) focus solely on the magnitude of contributions ( i.e. , high \mathcal{A}(F,x)_{t,d} indicates the importance of x_{t,d} for the model’s prediction), highlighting the relative importance of each feature without indicating the direction of its impact. 3 Proposed Metrics In this section, we first discuss the limitations of the evaluation metrics of current time series XAI algorithms in Section 3.1 . We then introduce our novel metrics, Cumulative Prediction Difference (CPD) and Cumulative Prediction Preservation (CPP) in Section 3.2 . (a) Correctly ranked attributions with unaligned signs. (b) Poorly ranked attributions with aligned signs. (c) Existing raw prediction difference. (d) Proposed cumulative prediction difference. Figure 1 : An example illustrating how cumulative prediction difference (CPD) improves upon raw prediction difference. While raw difference incorrectly favors a poorly performing method with

Read the complete text