The Complexity of Why-Provenance for Datalog Queries
Not on the map. Why?
Abstract (arXiv)
Explaining why a database query result is obtained is an essential task towards the goal of Explainable AI, especially nowadays where expressive database query languages such as Datalog play a critical role in the development of ontology-based applications. A standard way of explaining a query result is the so-called why-provenance, which essentially provides information about the witnesses to a query result in the form of subsets of the input database that are sufficient to derive that result. To our surprise, despite the fact that the notion of why-provenance for Datalog queries has been around for decades and intensively studied, its computational complexity remains unexplored. The goal of this work is to fill this apparent gap in the why-provenance literature. Towards this end, we pinpoint the data complexity of why-provenance for Datalog queries and key subclasses thereof. The takeaway of our work is that why-provenance for recursive queries, even if the recursion is limited to be linear, is an intractable problem, whereas for non-recursive queries is highly tractable. Having said that, we experimentally confirm, by exploiting SAT solvers, that making why-provenance for (recursive) Datalog queries work in practice is not an unrealistic goal.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 6 of its 39 references that are in the map. First posted on arXiv 22 Mar 2023.
Builds on
6 of 39 references.
References · 6
- 2019Anti-Money Laundering in Bitcoin: Experimenting with Graph Convolutional Networks for Financial Forensicscited by 158
- 2021Convergence of Datalog over (Pre-) Semiringscited by 5
- 2018PUG: A Framework and Practical Implementation for Why & Why-Not Provenance (extended version)cited by 3
- 2021Propositional Encodings of Acyclicity and Reachability by using Vertex Eliminationcited by 3
- 2022Revisiting Semiring Provenance for Datalogcited by 2
- 2022Rewriting the Infinite Chasecited by 1
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.