Attention Is All You Need
Ashish Vaswani, Noam Shazeer et al.
0
Citations
0
Influential Citations
—
Venue
2026
Year
Faithful explanations of time-series classifiers should identify subsequences that are not only sufficient to preserve a black-box model's prediction, but also necessary for maintaining it. However, existing sufficiency-oriented methods can assign high importance to spurious subsequences that support the prediction without being essential to the model's decision. We introduce \textbf{TimePNS}, a necessity-aware framework for time-series explanation. Inspired by Pearl's counterfactual notion of necessity, TimePNS assesses whether a temporal factor is necessary by intervening on it and measuring whether the original prediction is disrupted. The framework adopts a two-stage design. Stage I learns an identifiable causal generative process together with a sufficiency-oriented explanation mask. Stage II performs counterfactual interventions on temporal factors to derive necessity signals, which supervise a temporal gate that refines the initial explanation by suppressing non-essential components and emphasizing counterfactually necessary ones. Experiments on synthetic and real-world time-series benchmarks show that TimePNS more accurately identifies decision-critical subsequences and consistently improves sufficiency-necessity trade-offs over strong baselines.
Time-series classifiers are widely used in critical applications such as medical diagnosis, financial forecasting, and industrial monitoring. However, existing explanation methods often focus on sufficiency—identifying subsequences that are enough to preserve a model's prediction. This can lead to highlighting spurious patterns that correlate with the outcome but are not causally necessary. The paper addresses this gap by introducing necessity, a concept from causal inference, into time-series explainability. This shift is significant because it aligns explanations more closely with human intuition: we want to know what must be present for the decision, not just what could be present.
The paper's focus on counterfactual necessity, inspired by Pearl's causal framework, provides a principled way to distinguish essential from coincidental features. This is particularly important in time series, where temporal dependencies and noise can easily mislead sufficiency-based methods. By proposing a concrete framework (TimePNS) that operationalizes this idea, the paper opens a new direction for faithful and robust explanations.
The paper reports experiments on synthetic and real-world time-series benchmarks. TimePNS consistently outperforms strong baselines (e.g., sufficiency-only methods) in identifying decision-critical subsequences. The key metric is the sufficiency-necessity trade-off, where TimePNS achieves better balance, meaning explanations are both sufficient (preserve prediction) and necessary (removing them changes prediction). Concrete numbers are not provided in the abstract, but the claim of consistent improvement suggests robust performance across datasets.
This work has broad implications for AI safety and interpretability. In high-stakes domains, knowing which temporal factors are necessary for a decision can prevent over-reliance on spurious correlations and improve model debugging. The framework also bridges causal inference and explainability, offering a template for other sequence modeling tasks. Future work could extend TimePNS to multivariate time series or integrate it with online learning systems.
Ashish Vaswani, Noam Shazeer et al.
Jakubův, Jan, Chvalovský, Karel et al.
Pauli Virtanen, Ralf Gommers et al.
Tom B. Brown, Benjamin Mann et al.