Why this and not that? A Logic-based Framework for Contrastive Explanations

Tobias Geibinger, Reijo Jaakkola, Antti Kuusisto, Xinghan Liu, Miikka Vilander
7/11/2025
cs.AIcs.LGcs.LO

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

We define several canonical problems related to contrastive explanations, each answering a question of the form ''Why P but not Q?''. The problems compute causes for both P and Q, explicitly comparing their differences.

Show full abstract

We investigate the basic properties of our definitions in the setting of propositional logic. We show, inter alia, that our framework captures a cardinality-minimal version of existing contrastive explanations in the literature. Furthermore, we provide an extensive analysis of the computational complexities of the problems. We also implement the problems for CNF-formulas using answer set programming and present several examples demonstrating how they work in practice.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{geibinger2025this,
  title  = {Why this and not that? A Logic-based Framework for Contrastive Explanations},
  author = {Tobias Geibinger and Reijo Jaakkola and Antti Kuusisto and Xinghan Liu and Miikka Vilander},
  year   = {2025},
  eprint = {2507.08454},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.08454v1}
}

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

Discussion