Scalable Counterfactual Explanations for Time Series via Policy Learning

Peiyu Li, Pouya Hosseinzadeh, Soukaina Filali Boubrahimi, Shah Muhammad Hamdi
11/9/2026
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Generating counterfactual (CF) explanations for time series is challenging due to complex temporal dependencies and the computational inefficiency of traditional instance-specific optimization. We propose a policy learning framework for counterfactual explanation in time series, trained as a one-step contextual-bandit policy-learning problem.

Show full abstract

By training an actor-critic agent in the latent space of a pre-trained autoencoder, our method learns a transferable policy that captures global structural regularities. Unlike existing methods that rely on iterative optimization for each new input, the learned policy enables direct generation of valid and plausible counterfactuals through a single forward pass, avoiding per-instance optimization at inference time. Experiments on 13 UCR benchmark datasets show that our framework achieves high validity and strong plausibility across multiple anomaly detection metrics. Overall, by decoupling counterfactual generation from per-instance optimization, the proposed method provides an efficient and scalable alternative to existing approaches for time series counterfactual explanations.

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{li2026scalable,
  title  = {Scalable Counterfactual Explanations for Time Series via Policy Learning},
  author = {Peiyu Li and Pouya Hosseinzadeh and Soukaina Filali Boubrahimi and Shah Muhammad Hamdi},
  year   = {2026},
  eprint = {2611.11704},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.11704v1}
}

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/2611.11704.svg)](https://codeofpaper.com/paper/2611.11704)

Discussion