# TX-Gen: Multi-Objective Optimization for Sparse Counterfactual Explanations for Time-Series Classification

arXiv: https://arxiv.org/abs/2409.09461 · HTML: https://mlsanity.com/paper/2409.09461/

## Key facts

- Cited by 4 papers in the map (data through 14 Oct 2026).
- Builds on 7 of its 24 references that are in the map.
- First posted on arXiv 14 Sep 2024.

## Builds on (most cited first, 7 of 7)

- [Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localization](https://mlsanity.com/paper/1610.02391/) (2016)
- [Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPR](https://mlsanity.com/paper/1711.00399/) (2017)
- [Time Series Prediction using Deep Learning Methods in Healthcare](https://mlsanity.com/paper/2108.13461/) (2021)
- [Instance-based Counterfactual Explanations for Time Series Classification](https://mlsanity.com/paper/2009.13211/) (2020)
- [Generating Sparse Counterfactual Explanations For Multivariate Time Series](https://mlsanity.com/paper/2206.00931/) (2022)
- [Explainable time series tweaking via irreversible and reversible temporal transformations](https://mlsanity.com/paper/1809.05183/) (2018)
- [Shapelet-based Model-agnostic Counterfactual Local Explanations for Time Series Classification](https://mlsanity.com/paper/2402.01343/) (2024)

## Built on by (most cited first, 4 of 4)

- [Multi-SpaCE: Multi-Objective Subsequence-based Sparse Counterfactual Explanations for Multivariate Time Series Classification](https://mlsanity.com/paper/2501.04009/) (2024)
- [Info-CELS: Informative Saliency Map Guided Counterfactual Explanation](https://mlsanity.com/paper/2410.20539/) (2024)
- [Counterfactual Explanation for Multivariate Time Series Forecasting with Exogenous Variables](https://mlsanity.com/paper/2511.06906/) (2025)
- [FCA-Guided Counterfactual Explanations for Multi-Modal Breast Cancer Diagnosis: A Framework Achieving Perfect Validity with Emergent Sparsity](https://mlsanity.com/paper/2609.20067/) (2026)

## Abstract (arXiv)

In time-series classification, understanding model decisions is crucial for their application in high-stakes domains such as healthcare and finance. Counterfactual explanations, which provide insights by presenting alternative inputs that change model predictions, offer a promising solution. However, existing methods for generating counterfactual explanations for time-series data often struggle with balancing key objectives like proximity, sparsity, and validity. In this paper, we introduce TX-Gen, a novel algorithm for generating counterfactual explanations based on the Non-dominated Sorting Genetic Algorithm II (NSGA-II). TX-Gen leverages evolutionary multi-objective optimization to find a diverse set of counterfactuals that are both sparse and valid, while maintaining minimal dissimilarity to the original time series. By incorporating a flexible reference-guided mechanism, our method improves the plausibility and interpretability of the counterfactuals without relying on predefined assumptions. Extensive experiments on benchmark datasets demonstrate that TX-Gen outperforms existing methods in generating high-quality counterfactuals, making time-series models more transparent and interpretable.
