Counterfactual Explanations for Oblique Decision Trees: Exact, Efficient Algorithms
Miguel Á. Carreira-Perpiñán, Suryabhan Singh Hada
Abstract
We consider counterfactual explanations, the problem of minimally adjusting features in a source input instance so that it is classified as a target class under a given classifier. This has become a topic of recent interest as a way to query a trained model and suggest possible actions to overturn its decision. Mathematically, the problem is formally equivalent to that of finding adversarial examples, which also has attracted significant attention recently. Most work on either counterfactual explanations or adversarial examples has focused on differentiable classifiers, such as neural nets. We focus on classification trees, both axis-aligned and oblique (having hyperplane splits). Although here the counterfactual optimization problem is nonconvex and nondifferentiable, we show that an exact solution can be computed very efficiently, even with high-dimensional feature vectors and with both continuous and categorical features, and demonstrate it in different datasets and settings. The results are particularly relevant for finance, medicine or legal applications, where interpretability and counterfactual explanations are particularly important.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext bba719b7-af7d-4781-bc87-499de1c22459Cited by top-tier papers5
- GLANCE: Global Actions in a Nutshell for Counterfactual ExplainabilityLoukas Kavouras, Eleni Psaroudaki, Konstantinos Tsopelas, Dimitrios Rontogiannis et al.AAAI 2026 · 7 citations
- Very Fast, Approximate Counterfactual Explanations for Decision ForestsMiguel Á. Carreira-Perpiñán, Suryabhan Singh HadaAAAI 2023 · 7 citations
- Softmax Tree: An Accurate, Fast Classifier When the Number of Classes Is LargeArman Zharmagambetov, Magzhan Gabidolla, Miguel Á. Carreira-PerpiñánEMNLP 2021 · 4 citations
- DiCoFlex: Model-Agnostic Diverse Counterfactuals with Flexible ControlOleksii Furman, Ulvi Movsum-zada, Patryk Marszalek, Maciej Zieba et al.NeurIPS 2025 · 3 citations
- Bivariate Decision Trees: Smaller, Interpretable, More AccurateRasul Kairgeldin, Miguel Á. Carreira-PerpiñánKDD 2024 · 1 citation
Builds on1
Related papers
- FOCUS: Flexible Optimizable Counterfactual Explanations for Tree EnsemblesAna Lucic, Harrie Oosterhuis, Hinda Haned, Maarten de RijkeAAAI 2022 · 87 citations
- FACET: Robust Counterfactual Explanation AnalyticsPeter M. VanNostrand, Huayi Zhang, Dennis M. Hofmann, Elke A. RundensteinerSIGMOD 2024 · 14 citations
- A General Search-Based Framework for Generating Textual Counterfactual ExplanationsDaniel Gilo, Shaul MarkovitchAAAI 2024 · 3 citations
- Learning Models for Actionable RecourseAlexis Ross, Himabindu Lakkaraju, Osbert BastaniNeurIPS 2021 · 25 citations
- Computing Rule-Based Explanations by Leveraging CounterfactualsZixuan Geng, Maximilian Schleich, Dan SuciuVLDB 2023 · 7 citations
