Beyond Sufficiency: Time Series Explanation with Counterfactual Necessity

Hongnan Ma, Yiwei Shi, Mengyue Yang, Weiru Liu
7/23/2026
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ma2026beyond,
  title  = {Beyond Sufficiency: Time Series Explanation with Counterfactual Necessity},
  author = {Hongnan Ma and Yiwei Shi and Mengyue Yang and Weiru Liu},
  year   = {2026},
  eprint = {2607.21573},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.21573v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.21573.svg)](https://codeofpaper.com/paper/2607.21573)

Discussion