Lune

SIGMOD2022Top-tier venue

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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

16 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Fast Shapley Value Computation in Data Assemblage Tasks as Cooperative Simple Games cites On Shapley Value in Data Assemblage Under Independent Utility
  • Efficient Sampling Approaches to Shapley Value Approximation cites Dynamic Shapley Value Computation
  • Dynamic Shapley Value Computation cites Efficient Sampling Approaches to Shapley Value Approximation
  • Understanding the Black Box: A Deep Empirical Dive into Shapley Value Approximations for Tabular Data cites Fast Shapley Value Computation in Data Assemblage Tasks as Cooperative Simple Games
  • Understanding the Black Box: A Deep Empirical Dive into Shapley Value Approximations for Tabular Data cites Efficient Sampling Approaches to Shapley Value Approximation
  • Understanding the Black Box: A Deep Empirical Dive into Shapley Value Approximations for Tabular Data cites Dynamic Shapley Value Computation
  • Understanding the Black Box: A Deep Empirical Dive into Shapley Value Approximations for Tabular Data cites On Shapley Value in Data Assemblage Under Independent Utility
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers16

  1. Efficient Sampling Approaches to Shapley Value ApproximationJiayao Zhang, Qiheng Sun, Jinfei Liu, Li Xiong et al.SIGMOD 2023 · 43 citations
  2. Dynamic Shapley Value ComputationJiayao Zhang, Haocheng Xia, Qiheng Sun, Jinfei Liu et al.ICDE 2023 · 20 citations
  3. Understanding the Black Box: A Deep Empirical Dive into Shapley Value Approximations for Tabular DataSuchit Gupte, John PaparrizosSIGMOD 2025 · 19 citations
  4. On Shapley Value in Data Assemblage Under Independent UtilityXuan Luo, Jian Pei, Zicun Cong, Cheng XuVLDB 2022 · 18 citations
  5. 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

  1. On the Tractability of SHAP ExplanationsGuy Van den Broeck, Anton Lykov, Maximilian Schleich, Dan SuciuAAAI 2021 · 485 citations

Related papers

  1. Banzhaf Values for Facts in Query AnsweringOmer Abramovich, Daniel Deutch, Nave Frost, Ahmet Kara et al.SIGMOD 2024 · 8 citations
  2. Advancing Fact Attribution for Query Answering: Aggregate Queries and Novel AlgorithmsOmer Abramovich, Daniel Deutch, Nave Frost, Ahmet Kara et al.VLDB 2025 · 4 citations
  3. Faster Approximation of Probabilistic and Distributional Values via Least SquaresWeida Li, Yaoliang YuICLR 2024 · 13 citations
  4. Regression-adjusted Monte Carlo Estimators for Shapley Values and Probabilistic ValuesR. Teal Witter, Yurong Liu, Christopher MuscoNeurIPS 2025 · 22 citations
  5. 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
Dusk over the sea between two cliffs drawn in fine vertical lines