English

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

Artificial Intelligence 2025-07-14 v1 Machine Learning Logic in Computer Science

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. 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.

Keywords

Cite

@article{arxiv.2507.08454,
  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},
  journal= {arXiv preprint arXiv:2507.08454},
  year   = {2025}
}

Comments

20 pages, accepted to JELIA 2025

R2 v1 2026-07-01T03:56:17.800Z