cs.LGAug 24, 2026

Counterfactual Transition Graphs: Evaluating Cross-Class Transition Quality

Authors: Syed Muhammad Hamza Zaidi, Szymon Bobek, Grzegorz J. Nalepa, Myra Spiliopoulou

Organizations: Otto-von-Guericke University Magdeburg, Magdeburg, Germany · Jagiellonian University, Krakow, Poland · Center for Applied Intelligence Systems Research, School of ITE, Halmstad University, Halmstad 30118, Sweden

Abstract

Counterfactual (CF) explanations for time-series classifiers are usually evaluated one example at a time: what minimal edit flips this single window's prediction? We argue that the more informative question for diagnostic interpretability is structural: how does the classifier connect its own classes to each other? We propose a counterfactual transition graph (CGT) in which each node is a class and each edge weight is the CF reliability of the transition from one prototype to another under a proximity aware retrieval sweep. On a six-class hand-movement task, we induce a CGT that reveals a non-trivial topology, which is not predicted by the binary confusion matrix: it shows that counterfactual reachability does not align with classifier accuracy and even runs counter to it (Spearman ρ=−0.37ρ=-0.37 over the 15 pairs), i.e. the boundaries the classifier separates most confidently are among those an in-distribution edit can least often cross. Our framework is method agnostic, i.e. any CF-explainers can be used. Presently, we use it to juxtapose replacement-based CFs with gradient-based CFs; gradient-based methods reach almost any class by stepping off the data manifold, while replacement-based methods stay on it and fail on precisely the rigid boundaries.

Figures & tables

Explore similar work

CardsList
  1. A Comparative Study of Counterfactual Explainers for Graph Neural Networks Enabling Multiple Types of Graph Edit

    Sep 4, 2026Maria Myrto Villia, Filippos Gouidis, Theodore Patkos +1Counterfactual ExplanationsGraph Counterfactual Explanations

  2. FCx: An algorithm for finding Feasible Counterfactual Explanations

    Sep 16, 2026Kleopatra Markou, Vana Kalogeraki, Dimitrios GunopulosCounterfactual Explanations

  3. What-If Explanations Over Time: Counterfactuals for Time Series Classification

    Mar 29, 2026Udo Schlegel, Thomas SeidlGraph Counterfactual ExplanationsCounterfactual Explanations