Scalable Counterfactual Explanations for Time Series via Policy Learning
Peiyu Li, Pouya Hosseinzadeh, Soukaina Filali Boubrahimi, Shah Muhammad Hamdi
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. 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.
Create a lesson
Related papers
CoLaX: Context-Aware Local Explanations for Time Series Classification
Shared title terminology · Kexuan Zhang, Paolo Frazzetto, Xiaobei Zou et al.
HiPPO Functional Memory: Coordinate-Queryable Attention for Irregular Time Series
Shared title terminology · Zhaodong Guo, Haoyun Feng
When Does Causality Help in Multivariate Time-Series Anomaly Detection?
Shared title terminology · Long Zhang, Wei Huang, Aishui Rao et al.
Closing the Loop: Co-Evolving EM for Irregular Time Series Generation in Lifted Representations
Shared title terminology · Idan Arbiv, Gal Fadlon, Omri Azencot
TimeSeek: Multi-Task and Multi-Domain Pretraining for Generalized Time Series Analytics
Shared title terminology · Peng Chen, Yihang Wang, Zhongwen Rao et al.
Quantifying the Sampling Frequency Invariance of Time-Series Foundation Models for Sensor Data Applications
Shared title terminology · Sourish Gunesh Dhekane, Abinaya Kumar, Torsten Woertwein et al.