# Scalable Counterfactual Explanations for Time Series via Policy Learning

DevFeed: [Scalable Counterfactual Explanations for Time Series via Policy Learning](<https://devfeed.tech/articles/scalable-counterfactual-explanations-for-time-series-via-policy-learning-125435.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.11704>)

Author: Peiyu Li, Pouya Hosseinzadeh, Soukaina Filali Boubrahimi, Shah Muhammad Hamdi

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Time Series](<https://devfeed.tech/topics/time-series.md>), [Temporal data](<https://devfeed.tech/topics/temporal-data.md>), [outlier-detection](<https://devfeed.tech/topics/outlier-detection.md>)

Tags: [actor](<https://devfeed.tech/tags/actor.md>), [agent](<https://devfeed.tech/tags/agent.md>), [anomaly-detection](<https://devfeed.tech/tags/anomaly-detection.md>), [autoencoder](<https://devfeed.tech/tags/autoencoder.md>), [bandit](<https://devfeed.tech/tags/bandit.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [complex](<https://devfeed.tech/tags/complex.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [datasets](<https://devfeed.tech/tags/datasets.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [detection](<https://devfeed.tech/tags/detection.md>), [experiments](<https://devfeed.tech/tags/experiments.md>), [framework](<https://devfeed.tech/tags/framework.md>), [generation](<https://devfeed.tech/tags/generation.md>), [global](<https://devfeed.tech/tags/global.md>), [inference](<https://devfeed.tech/tags/inference.md>), [learning](<https://devfeed.tech/tags/learning.md>), [policy](<https://devfeed.tech/tags/policy.md>), [series](<https://devfeed.tech/tags/series.md>), [time](<https://devfeed.tech/tags/time.md>), [time-series](<https://devfeed.tech/tags/time-series.md>)

## AI overview

The paper presents a time-series counterfactual method that replaces per-instance iterative optimization at inference with a learned policy. An actor-critic agent is trained as a one-step contextual-bandit policy in the latent space of a pre-trained autoencoder, then generates counterfactuals in one forward pass. The authors report high validity and strong plausibility across multiple anomaly-detection metrics on 13 UCR benchmark datasets. The supplied abstract does not give metric values or further experimental details.

## Source excerpt

arXiv:2611.11704v1 Announce Type: new 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.