Computing the Shapley Value of Facts in Query Answering
Daniel Deutch, Nave Frost, Benny Kimelfeld, Mikaël Monet
Abstract
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.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 1459a22c-2933-4e83-a07a-4fbca3f70e12Cited by top-tier papers16
- Efficient Sampling Approaches to Shapley Value ApproximationJiayao Zhang, Qiheng Sun, Jinfei Liu, Li Xiong et al.SIGMOD 2023 · 43 citations
- Dynamic Shapley Value ComputationJiayao Zhang, Haocheng Xia, Qiheng Sun, Jinfei Liu et al.ICDE 2023 · 20 citations
- Understanding the Black Box: A Deep Empirical Dive into Shapley Value Approximations for Tabular DataSuchit Gupte, John PaparrizosSIGMOD 2025 · 19 citations
- On Shapley Value in Data Assemblage Under Independent UtilityXuan Luo, Jian Pei, Zicun Cong, Cheng XuVLDB 2022 · 18 citations
- Fast Shapley Value Computation in Data Assemblage Tasks as Cooperative Simple GamesXuan Luo, Jian Pei, Cheng Xu, Wenjie Zhang et al.SIGMOD 2024 · 13 citations
Builds on1
Related papers
- Banzhaf Values for Facts in Query AnsweringOmer Abramovich, Daniel Deutch, Nave Frost, Ahmet Kara et al.SIGMOD 2024 · 8 citations
- Advancing Fact Attribution for Query Answering: Aggregate Queries and Novel AlgorithmsOmer Abramovich, Daniel Deutch, Nave Frost, Ahmet Kara et al.VLDB 2025 · 4 citations
- Faster Approximation of Probabilistic and Distributional Values via Least SquaresWeida Li, Yaoliang YuICLR 2024 · 13 citations
- Regression-adjusted Monte Carlo Estimators for Shapley Values and Probabilistic ValuesR. Teal Witter, Yurong Liu, Christopher MuscoNeurIPS 2025 · 22 citations
- The Tractability of SHAP-Score-Based Explanations for Classification over Deterministic and Decomposable Boolean CircuitsMarcelo Arenas, Pablo Barceló, Leopoldo E. Bertossi, Mikaël MonetAAAI 2021 · 37 citations
