Optimal Counterfactual Explanations in Tree Ensembles

Axel Parmentier, Thibaut Vidal
6/11/2021
cs.LGmath.OC

Official code: vidalt/OCEAN (38 stars, Python, MIT, last commit 2026-11-10).

Abstract

Counterfactual explanations are usually generated through heuristics that are sensitive to the search's initial conditions. The absence of guarantees of performance and robustness hinders trustworthiness.

Show full abstract

In this paper, we take a disciplined approach towards counterfactual explanations for tree ensembles. We advocate for a model-based search aiming at "optimal" explanations and propose efficient mixed-integer programming approaches. We show that isolation forests can be modeled within our framework to focus the search on plausible explanations with a low outlier score. We provide comprehensive coverage of additional constraints that model important objectives, heterogeneous data types, structural constraints on the feature space, along with resource and actionability restrictions. Our experimental analyses demonstrate that the proposed search approach requires a computational effort that is orders of magnitude smaller than previous mathematical programming algorithms. It scales up to large data sets and tree ensembles, where it provides, within seconds, systematic explanations grounded on well-defined models solved to optimality.

View on arXivView PDF

Code Implementations(1)

vidalt/OCEANOfficial100%
MIT

OCEAN: Optimal Counterfactual Explanations in Tree Ensembles (ICML 2021)

389PythonJun 10, 20213 weeks agoMIT

Similar Papers

Cite this paper

@article{parmentier2021optimal,
  title  = {Optimal Counterfactual Explanations in Tree Ensembles},
  author = {Axel Parmentier and Thibaut Vidal},
  year   = {2021},
  eprint = {2106.06631},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.06631}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.06631.svg)](https://codeofpaper.com/paper/2106.06631)

Discussion