arXiv:2610.29036cs.AIOct 2026

Manuscript Offprint

arXiv:2610.29036

GRAIL: From Saliency to Semantics in Time-Series Explanation

Enver Menadjiev, Yiqiu Shen, Jaesik Choi, Julia Stoyanovich

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

Explaining a time-series model requires both locating the evidence and extracting meaningful knowledge from it. Yet a single timestep is not a semantic unit: the meaningful patterns live across many samples, not in any one of them. Per-timestep saliency is therefore noisy, high-dimensional, and unstable. Existing methods address this by introducing fixed-size windows and treating them as independent players in a cooperative game. Evaluating a coalition of such players requires defining a “baseline” region, which prior work tackles with fixed counterfactuals (e.g., a flat line, noise, or a spectral surrogate). This choice frequently dominates the resulting explanation, obscuring the model’s true decisions.

To address these issues, we propose GRAIL, a region-based time-series explanation framework that uses domain-specific intervals, such as the P-wave and the QRS complex of an electrocardiogram (ECG) beat, as players. We describe each region with human-readable features and generate counterfactual baselines with an on-manifold conditional generator. Such a choice of players also admits non-temporal features: static covariates enter as singleton players attributed with the temporal regions on one scale, so a patient's tabular evidence (e.g., age, sex) is weighed directly against the signal. We attribute the predictions to the features via Owen values with common-random-number variance reduction. Experimental results on both synthetic and real data show that the proposed framework produces faithful and robust explanations, evaluated under matched on- and off-manifold operators, offering meaningful knowledge to domain experts.

1 Introduction

Deep learning models are increasingly deployed on high-stakes time series, from clinical data to industrial sensors and financial data. Wherever they are used, deploying them hinges on a question that's hard to answer for time series: which part of the signal drove a decision, in terms a domain expert can act on.

Example 1. Consider a cardiologist inspecting a single heartbeat (Figure 1a). Rather than reasoning sample by sample, the cardiologist reads a sequence of named regions: the P-wave (atrial activation), the QRS complex (the sharp ventricular spike), and the T-wave (ventricular recovery), and attaches clinical meaning to each. Left-ventricular hypertrophy (LVH), for instance, is read chiefly from the QRS voltage. A saliency map that reports “sample 137 was important” may

Figure

(a) a cardiologist-delineated ECG beat

Figure

(b) an explanation of the LVH-positive prediction by GRAIL

Figure 1: From saliency to semantics on one LUDB beat. (a) A real ECG beat split into P, QRS, T, and the isoelectric background. Two samples of equal amplitude (+1.04) fall in different regions, so a per-timestep view cannot separate them. (b) GRAIL scores each region and static covariate (age, sex) on a single log-odds scale for this beat, which the model correctly classifies as LVH-absent. The prediction relies primarily on the QRS region, even though the patient's age and T region would suggest otherwise.

localize evidence, but it does not directly express the regional pattern or its clinical meaning.

Predictive patterns typically span multiple samples, rendering per-timestep saliency maps high-dimensional, unstable, and difficult for domain experts to interpret (Ismail et al. 2020). This motivates our first design choice: explain in the domain expert's units. We take the unit of explanation to be the region, a contiguous, named interval corresponding to a recognizable event: the P/QRS/T waves of an ECG beat, or an injected pulse, a seasonal stretch, or a trend in a synthetic signal. Regions are few, human-readable, and carry a prior, since cardiology tells us which region should distinguish an LVH from a normal beat.

Additionally, models are routinely given non-temporal in-

∗^{*}Corresponding author.

Copyright © 2027, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved.

Figure

Figure 2: The GRAIL pipeline. A signal is segmented into named regions; a codec encodes each as human-readable features and can regenerate it. In the game, a present feature keeps its observed value while an absent one triggers on-manifold regeneration, so every coalition is a plausible real signal. Owen values (features nested in regions) are estimated exactly with a common-random-number sweep, yielding a complete, region-rolled-up attribution plus the residual ρ\rho. An amortized network (blue), trained on the same game, reproduces the attribution in one forward pass for fast, robust deployment.

formation alongside the temporal signal. Returning to Example 1, a cardiologist reads an ECG differently depending on the patient's sex and age, since the voltage criteria for left-ventricular hypertrophy are sex-specific and normal intervals shift with age. This motivates our second design choice: to place the signal and covariates on a common scale. A faithful explanation must weigh such covariates against the waveform, so a model's reliance on demographics in addition to morphology can be read directly from the model. Figure 1b provides a clinically meaningful explanation of the correct diagnosis: the model calls this 68-year-old LVH-positive despite a normal QRS, consistent with the lower QRS-voltage threshold that LVH criteria apply at older ages.

Our approach. We propose GRAIL (Generative Region Attribution with Interpretable Labels), a framework that explains time-series predictions in domain-aligned units. GRAIL produces feature-based, additive explanations via a cooperative game: each region and each covariate is a player, and its value is its contribution to the prediction across all coalitions, so the contributions sum to the model's output. Scoring a coalition requires saying what the signal looks like when a region is absent, but there is no canonical "off" state for a stretch of a time series such as an ECG: prior work fills it with a fixed counterfactual, a flat line, noise, or a spectrally matched surrogate, an arbitrary choice that frequently dominates the resulting explanation (Sundararajan and Najmi 2020). The choice of the absent state is thus not an implementation detail; it is the explanation. In this work, we stop choosing from a fixed menu and instead build the counterfactual: an interpretable codec encodes each region as named features, and a conditional generator regenerates an absent region on the data manifold, so every coalition remains a plausible real signal.

GRAIL attributes the model’s log-odds to regions and covariates with Owen values (Owen 1972) (a two-level Shapley value (Shapley 1953), features nested in regions) estimated by a common-random-number sweep, and always reports the residual ρ\rho, so the accounting is exactly complete. Figure 2 shows the pipeline of GRAIL, which also amortizes into a fast single-pass surrogate for deployment.

References (90)