Calibrated Explanations: with Uncertainty Information and Counterfactuals

Helena Lofstrom, Tuwe Lofstrom, Ulf Johansson, Cecilia Sonstrod
5/3/2023
cs.AIcs.LG

No official code found. Best implementation: Moffran/calibrated_explanations (78 stars, BSD-3-Clause, last commit 2026-04-28).

Abstract

While local explanations for AI models can offer insights into individual predictions, such as feature importance, they are plagued by issues like instability. The unreliability of feature weights, often skewed due to poorly calibrated ML models, deepens these challenges. Moreover, the critical aspect of feature importance uncertainty remains mostly unaddressed in Explainable AI (XAI). The novel feature importance explanation method presented in this paper, called Calibrated Explanations (CE), is designed to tackle these issues head-on. Built on the foundation of Venn-Abers, CE not only calibrates the underlying model but also delivers reliable feature importance explanations with an exact definition of the feature weights. CE goes beyond conventional solutions by addressing output uncertainty. It accomplishes this by providing uncertainty quantification for both feature weights and the model's probability estimates. Additionally, CE is model-agnostic, featuring easily comprehensible conditional rules and the ability to generate counterfactual explanations with embedded uncertainty quantification. Results from an evaluation with 25 benchmark datasets underscore the efficacy of CE, making it stand as a fast, reliable, stable, and robust solution.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Repository for the explanation method Calibrated Explanations (CE)

7814Python, MakefileMay 1, 20235 months agoBSD-3-Clause

Similar Papers

Cite this paper

@article{lofstrom2023calibrated,
  title  = {Calibrated Explanations: with Uncertainty Information and Counterfactuals},
  author = {Helena Lofstrom and Tuwe Lofstrom and Ulf Johansson and Cecilia Sonstrod},
  year   = {2023},
  eprint = {2305.02305},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.02305v3}
}

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/2305.02305.svg)](https://codeofpaper.com/paper/2305.02305)

Discussion