Computing the Shapley Value of Facts in Query Answering
Not on the map. Why?
Abstract (arXiv)
The Shapley value is a game-theoretic notion for wealth distribution that is nowadays extensively used to explain complex data-intensive computation, for instance, in network analysis or machine learning. Recent theoretical works show that query evaluation over relational databases fits well in this explanation paradigm. Yet, these works fall short of providing practical solutions to the computational challenge inherent to the Shapley computation. We present in this paper two practically effective solutions for computing Shapley values in query answering. We start by establishing a tight theoretical connection to the extensively studied problem of query evaluation over probabilistic databases, which allows us to obtain a polynomial-time algorithm for the class of queries for which probability computation is tractable. We then propose a first practical solution for computing Shapley values that adopts tools from probabilistic query evaluation. In particular, we capture the dependence of query answers on input database facts using Boolean expressions (data provenance), and then transform it, via Knowledge Compilation, into a particular circuit form for which we devise an algorithm for computing the Shapley values. Our second practical solution is a faster yet inexact approach that transforms the provenance to a Conjunctive Normal Form and uses a heuristic to compute the Shapley values. Our experiments on TPC-H and IMDB demonstrate the practical effectiveness of our solutions.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). First posted on arXiv 16 Dec 2021.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 3; 2025: 7; 2026: 1.
11 papers.
- 2025SHAP Meets Tensor Networks: Provably Tractable Explanations with Parallelismcited by 8
- 2024Expected Shapley-Like Scores of Boolean Functions: Complexity and Applications to Probabilistic Databasescited by 6
- 2024Shapley Value Computation in Ontology-Mediated Query Answeringcited by 4
- 2025Shapley Revisited: Tractable Responsibility Measures for Query Answerscited by 4
- 2024A Comprehensive Study of Shapley Value in Data Analyticscited by 2
- 2025The Causal-Effect Score in Data Managementcited by 1
- 2025Causality-Based Scores Alignment in Explainable Data Managementcited by 1
- 2025Tractable Responsibility Measures for Ontology-Mediated Query Answeringcited by 1
- 2025Database Views as Explanations for Relational Deep Learningcited by 1
- 2025CQD-SHAP: Explainable Complex Query Answering via Shapley Valuescited by 0
- 2026RelShap: Relationally Consistent Shapley Explanationscited by 0
- 2026RelShap: Relationally Consistent Shapley Explanations11 Aug 2026
- 2025SHAP Meets Tensor Networks: Provably Tractable Explanations with Parallelism24 Oct 2025
- 2025CQD-SHAP: Explainable Complex Query Answering via Shapley Values17 Oct 2025
- 2025Database Views as Explanations for Relational Deep Learning11 Sep 2025
- 2025Tractable Responsibility Measures for Ontology-Mediated Query Answering31 Jul 2025
- 2025Shapley Revisited: Tractable Responsibility Measures for Query Answers28 Mar 2025
- 2025Causality-Based Scores Alignment in Explainable Data Management18 Mar 2025
- 2025The Causal-Effect Score in Data Management4 Feb 2025
- 2024A Comprehensive Study of Shapley Value in Data Analytics2 Dec 2024
- 2024Shapley Value Computation in Ontology-Mediated Query Answering29 Jul 2024
- 2024Expected Shapley-Like Scores of Boolean Functions: Complexity and Applications to Probabilistic Databases12 Jan 2024