mlsanityData to 7 Oct 2026

Counterfactual Maps: What They Are and How to Find Them

arXiv 2602.09128 ↗First posted 9 Feb 2026cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Counterfactual explanations are a central tool in interpretable machine learning, yet computing them exactly for complex models remains challenging. For tree ensembles, predictions are piecewise constant over a large collection of axis-aligned hyperrectangles, implying that an optimal counterfactual for a point corresponds to its projection onto the nearest rectangle with an alternative label under a chosen metric. Existing methods largely overlook this geometric structure, relying either on heuristics with no optimality guarantees or on mixed-integer programming formulations that do not scale to interactive use. In this work, we revisit counterfactual generation through the lens of nearest-region search and introduce counterfactual maps, a global representation of recourse for tree ensembles. Leveraging the fact that any tree ensemble can be compressed into an equivalent partition of labeled hyperrectangles, we cast counterfactual search as the problem of identifying the generalized Voronoi cell associated with the nearest rectangle of an alternative label. This leads to an exact, amortized algorithm based on volumetric k-dimensional (KD) trees, which performs branch-and-bound nearest-region queries with explicit optimality certificates and sublinear average query time after a one-time preprocessing phase. Our experimental analyses on several real datasets drawn from high-stakes application domains show that this approach delivers globally optimal counterfactual explanations with millisecond-level latency, achieving query times that are orders of magnitude faster than existing exact, cold-start optimization methods.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 16 of its 28 references that are in the map. First posted on arXiv 9 Feb 2026.

Builds on

16 of 28 references.

References · 16

  1. 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,086
  2. 2019Explaining Machine Learning Classifiers through Diverse Counterfactual Explanationscited by 612
  3. 2019Model-Agnostic Counterfactual Explanations for Consequential Decisionscited by 204
  4. 2020Counterfactual Explanations and Algorithmic Recourses for Machine Learning: A Reviewcited by 174
  5. 2019Preserving Causal Constraints in Counterfactual Explanations for Machine Learning Classifierscited by 143
  6. 2017Interpretable Predictions of Tree-based Ensembles via Actionable Feature Tweakingcited by 76
  7. 2019FOCUS: Flexible Optimizable Counterfactual Explanations for Tree Ensemblescited by 43
  8. 2020Born-Again Tree Ensemblescited by 38
  9. 2021Optimal Counterfactual Explanations in Tree Ensemblescited by 36
  10. 2021Conditional Generative Models for Counterfactual Explanationscited by 28
  11. 2021Amortized Generation of Sequential Algorithmic Recourses for Black-box Modelscited by 24
  12. 2021Model-agnostic and Scalable Counterfactual Explanations via Reinforcement Learningcited by 15
4 more
  1. 2021Model-Based Counterfactual Synthesizer for Interpretationcited by 14
  2. 2020Ordered Counterfactual Explanation by Mixed-Integer Linear Optimizationcited by 11
  3. 2023Very fast, approximate counterfactual explanations for decision forestscited by 4
  4. 2021An exact counterfactual-example-based approach to tree-ensemble models interpretabilitycited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.