Skip to main content
QUICK REVIEW

[Paper Review] An exact counterfactual-example-based approach to tree-ensemble models interpretability

Pierre Blanchart|arXiv (Cornell University)|May 31, 2021
Explainable Artificial Intelligence (XAI)Computer Science26 references6 citations
TL;DR

This paper proposes an exact, geometry-based method to compute counterfactual explanations for tree-ensemble models like XGBoost and LightGBM by deriving precise multidimensional intervals that characterize decision regions. The approach enables exact computation of optimal counterfactuals, supports feature subset constraints, and extends naturally to regression, offering interpretable, actionable insights for high-stakes applications such as fault detection.

ABSTRACT

Explaining the decisions of machine learning models is becoming a necessity in many areas where trust in ML models decision is key to their accreditation/adoption. The ability to explain models decisions also allows to provide diagnosis in addition to the model decision, which is highly valuable in scenarios such as fault detection. Unfortunately, high-performance models do not exhibit the necessary transparency to make their decisions fully understandable. And the black-boxes approaches, which are used to explain such model decisions, suffer from a lack of accuracy in tracing back the exact cause of a model decision regarding a given input. Indeed, they do not have the ability to explicitly describe the decision regions of the model around that input, which is necessary to determine what influences the model towards one decision or the other. We thus asked ourselves the question: is there a category of high-performance models among the ones currently used for which we could explicitly and exactly characterise the decision regions in the input feature space using a geometrical characterisation? Surprisingly we came out with a positive answer for any model that enters the category of tree ensemble models, which encompasses a wide range of high-performance models such as XGBoost, LightGBM, random forests ... We could derive an exact geometrical characterisation of their decision regions under the form of a collection of multidimensional intervals. This characterisation makes it straightforward to compute the optimal counterfactual (CF) example associated with a query point. We demonstrate several possibilities of the approach, such as computing the CF example based only on a subset of features. This allows to obtain more plausible explanations by adding prior knowledge about which variables the user can control. An adaptation to CF reasoning on regression problems is also envisaged.

Motivation & Objective

  • To address the lack of accurate, exact explanations for high-performance tree-ensemble models used in industrial fault detection and anomaly detection.
  • To develop a method that explicitly characterizes decision regions in the input space using multidimensional intervals, enabling precise counterfactual reasoning.
  • To support user-controlled feature constraints and partial counterfactuals, improving plausibility and interpretability in real-world scenarios.
  • To extend the approach to regression problems by faithfully modeling the relation between exogenous variables and target values using tree ensembles.

Proposed method

  • Derives exact geometric characterizations of decision regions in tree-ensemble models as collections of multidimensional intervals (boxes) in the input space.
  • Uses recursive restriction of feature spaces via intersection boxes, maintaining maximal coverage and disjointness across dimensions.
  • Constructs optimal counterfactual examples by finding the minimal input perturbation within the decision region that changes the model’s prediction.
  • Applies feature-wise constraints by fixing values of non-controllable features during counterfactual search, enhancing plausibility.
  • Employs recursive decomposition of feature intervals using parent-children relationships across tree levels to ensure correctness and completeness.
  • Extends to regression by defining counterfactuals that shift predictions into user-defined target intervals, preserving model fidelity.

Experimental results

Research questions

  • RQ1Can the decision regions of tree-ensemble models be exactly characterized using geometric intervals in the input space?
  • RQ2Can optimal counterfactual examples be computed exactly and efficiently using this geometric characterization?
  • RQ3Can the method support counterfactuals that respect user-defined constraints on features (e.g., non-modifiable variables)?
  • RQ4Can the approach be adapted to regression problems by defining counterfactuals that shift predictions into desired intervals?
  • RQ5Does the method provide more plausible and actionable explanations than approximate black-box counterfactual methods?

Key findings

  • The method provides an exact geometric characterization of decision regions in tree-ensemble models as disjoint, maximal multidimensional intervals.
  • Optimal counterfactual examples are computed exactly by finding the minimal perturbation within the decision region that alters the model’s prediction.
  • The approach supports constrained counterfactuals by fixing values of non-controllable features, resulting in more realistic and actionable explanations.
  • The method is formally proven to preserve correctness and completeness through recursive decomposition and interval intersection properties.
  • The framework naturally extends to regression problems by defining counterfactuals that shift predictions into user-specified target intervals.
  • The approach enables full diagnostic insight by explicitly revealing the decision boundaries influencing a model’s output for any given input.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.