Table of Contents
Fetching ...

Optimal Transport Group Counterfactual Explanations

Enrique Valero-Leal, Bernd Bischl, Pedro Larrañaga, Concha Bielza, Giuseppe Casalicchio

TL;DR

This paper reframes group counterfactual explanations as optimal transport (OT) maps to achieve consistent, generalizable recourse for groups of instances. By modeling counterfactuals as a function \hat{g} or a Kantorovich plan, the approach reduces parameter count, controls group geometry via bi-Lipschitz constraints, and enables density-preserving transformations with convex optimization in many setups. The authors develop several parameterizations (affine, PSD affine, diagonal, Gaussian, Gaussian mixtures) and derive closed-form/SDP formulations where applicable, showing favorable transport costs, distortion behavior, and validity on numerous datasets. Empirical results demonstrate robust performance, with dense and sparse OT maps delivering strong generalization, interpretability through surrogate models, and advantages in multiobjective optimization over pointwise baselines. The work advances scalable, interpretable, and fair group recourse by leveraging OT theory for counterfactual explanations.

Abstract

Group counterfactual explanations find a set of counterfactual instances to explain a group of input instances contrastively. However, existing methods either (i) optimize counterfactuals only for a fixed group and do not generalize to new group members, (ii) strictly rely on strong model assumptions (e.g., linearity) for tractability or/and (iii) poorly control the counterfactual group geometry distortion. We instead learn an explicit optimal transport map that sends any group instance to its counterfactual without re-optimization, minimizing the group's total transport cost. This enables generalization with fewer parameters, making it easier to interpret the common actionable recourse. For linear classifiers, we prove that functions representing group counterfactuals are derived via mathematical optimization, identifying the underlying convex optimization type (QP, QCQP, ...). Experiments show that they accurately generalize, preserve group geometry and incur only negligible additional transport cost compared to baseline methods. If model linearity cannot be exploited, our approach also significantly outperforms the baselines.

Optimal Transport Group Counterfactual Explanations

TL;DR

This paper reframes group counterfactual explanations as optimal transport (OT) maps to achieve consistent, generalizable recourse for groups of instances. By modeling counterfactuals as a function \hat{g} or a Kantorovich plan, the approach reduces parameter count, controls group geometry via bi-Lipschitz constraints, and enables density-preserving transformations with convex optimization in many setups. The authors develop several parameterizations (affine, PSD affine, diagonal, Gaussian, Gaussian mixtures) and derive closed-form/SDP formulations where applicable, showing favorable transport costs, distortion behavior, and validity on numerous datasets. Empirical results demonstrate robust performance, with dense and sparse OT maps delivering strong generalization, interpretability through surrogate models, and advantages in multiobjective optimization over pointwise baselines. The work advances scalable, interpretable, and fair group recourse by leveraging OT theory for counterfactual explanations.

Abstract

Group counterfactual explanations find a set of counterfactual instances to explain a group of input instances contrastively. However, existing methods either (i) optimize counterfactuals only for a fixed group and do not generalize to new group members, (ii) strictly rely on strong model assumptions (e.g., linearity) for tractability or/and (iii) poorly control the counterfactual group geometry distortion. We instead learn an explicit optimal transport map that sends any group instance to its counterfactual without re-optimization, minimizing the group's total transport cost. This enables generalization with fewer parameters, making it easier to interpret the common actionable recourse. For linear classifiers, we prove that functions representing group counterfactuals are derived via mathematical optimization, identifying the underlying convex optimization type (QP, QCQP, ...). Experiments show that they accurately generalize, preserve group geometry and incur only negligible additional transport cost compared to baseline methods. If model linearity cannot be exploited, our approach also significantly outperforms the baselines.
Paper Structure (53 sections, 16 theorems, 71 equations, 14 figures, 3 tables)

This paper contains 53 sections, 16 theorems, 71 equations, 14 figures, 3 tables.

Key Result

Proposition 3.3

Let $\hat{g}: \mathcal{X} \to \mathcal{X}$ (with $\mathcal{X} \subset \mathbb R^d$) be a fully differentiable $(K,k)$-bi-Lipschitz OT map with $K, k \geq 1$, and let $P$ and $Q$ be the input and target probability measures. Then for every $\mathbf{x} \in \mathcal{X}$:

Figures (14)

  • Figure 1: (a) Current solutions optimize instances individually. (b) Our approach learns a single recourse function for the subgroup, modeling geometric distortion via a bi-Lipschitz parameter $K$. (c) A proposed density-based approach that yields closed-form costs under specific parameterizations (see Section \ref{['sec:gaussian_gcfx']}).
  • Figure 2: Performance profile for the $W_2$ distance. The color legend is analogous in other figures.
  • Figure 3: Empirical lower and upper bi-Lipschitz bounds, marked by solid and dashed lines respectively.
  • Figure 4: Counterfactual validity lineplot.
  • Figure 5: Surrogate Bayesian network. In blue, prior variables. In green, counterfactual variables. $K$ in red. Greater arrow thickness denotes greater effect.
  • ...and 9 more figures

Theorems & Definitions (39)

  • Definition 2.1: Group counterfactual (one-to-one)
  • Definition 3.1: Functional group counterfactual
  • Definition 3.2: Probabilistic group counterfactual
  • Proposition 3.3: Density Preservation in OT Counterfactual Maps
  • proof
  • Proposition 3.4
  • proof
  • Proposition 3.5: Diagonal $\mathop{\mathrm{ \mathbf{A}}}\nolimits$ Affine Transform
  • proof
  • Definition 3.6: Gaussian group counterfactual
  • ...and 29 more