Skip to main navigation Skip to search Skip to main content

Can You Tell the Difference? Contrastive Explanations for ABox Entailments - Code and Data

Dataset / Software

Description

This is the implementation used for the experiments for the following paper accepted at AAAI 2026:Patrick Koopmann, Yasir Mahmood, Axel-Cyrille Ngonga Ngomo, Balram Tiwari"Can You Tell the Difference? Contrastive Explanations for ABox Entailments"Abstract:We introduce the notion of contrastive ABox explanations to answer questions of the type “Why is a an instance of C, butb is not?”. While there are various approaches for explaining positive entailments (why is C(a) entailed by the knowledge base) as well as missing entailments (why is C(b) not entailed) in isolation, contrastive explanations consider both at the same time, which allows them to focus on the relevant commonalities and differences between a and b. We develop an appropriate notion of contrastive explanations for the special case of ABox reasoning with description logic ontologies, and analyze the computational complexity for different variants under different optimality criteria, considering lightweight as well as more expressive description logics. We implemented a first method for computing one variant of contrastive explanations, and evaluated it on generated problems for realistic knowledge bases.Description of the Dataset:The code implements a practical method for computing difference-minimal contrastive explanations, and the scripts used to evaluate this implementation. The Readme file gives instructions on how to compile and use the software. We also provide scripts to reproduce the experiments described in the paper, as well as detailed tables of the results.
Date made available13 Nov 2025
PublisherZenodo
Date of data production2025 -
  • Can You Tell the Difference? Contrastive Explanations for ABox Entailments

    Koopmann, P., Mahmood, Y., Ngomo, A. C. N. & Tiwari, B., 2026, Proceedings of the 40th Annual AAAI Conference on Artificial Intelligence: AAAI-26 Technical Tracks. Koenig, S., Jenkins, C. & Taylor, M. E. (eds.). AAAI, p. 19189-19197 9 p. (Proceedings of the AAAI Conference on Artificial Intelligence; vol. 40, no. 1).

    Research output: Chapter in Book / Report / Conference proceedingConference contributionAcademicpeer-review

Cite this