Banzhaf Values for Facts in Query Answering
Omer Abramovich, Daniel Deutch, Nave Frost, Ahmet Kara, Dan Olteanu
Abstract
Quantifying the contribution of database facts to query answers has been studied as means of explanation. The Banzhaf value, originally developed in Game Theory, is a natural measure of fact contribution, yet its efficient computation for select-project-join-union queries is challenging. In this paper, we introduce three algorithms to compute the Banzhaf value of database facts: an exact algorithm, an anytime deterministic approximation algorithm with relative error guarantees, and an algorithm for ranking and top-k. They have three key building blocks: compilation of query lineage into an equivalent function that allows efficient Banzhaf value computation; dynamic programming computation of the Banzhaf values of variables in a Boolean function using the Banzhaf values for constituent functions; and a mechanism to compute efficiently lower and upper bounds on Banzhaf values for any positive DNF function.
We complement the algorithms with a dichotomy for the Banzhaf-based ranking problem: given two facts, deciding whether the Banzhaf value of one is greater than of the other is tractable for hierarchical queries and intractable for non-hierarchical queries.
We show experimentally that our algorithms significantly outperform exact and approximate algorithms from prior work, most times up to two orders of magnitude. Our algorithms can also cover challenging problem instances that are beyond reach for prior work.
- Exact Banzhaf Computation. We introduce ExaBan, an algorithm that computes the exact Banzhaf scores for the contributions of facts in the answers to positive relational queries (Select-Project-Join-Union
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.
4 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- SHAP Meets Tensor Networks: Provably Tractable Explanations with Parallelism cites Computing the Shapley Value of Facts in Query Answering
- Advancing Fact Attribution for Query Answering: Aggregate Queries and Novel Algorithms cites Computing the Shapley Value of Facts in Query Answering
- Query-Guided Analysis and Mitigation of Data Verification Errors cites Computing the Shapley Value of Facts in Query Answering
Cited by top-tier papers4
- SHAP Meets Tensor Networks: Provably Tractable Explanations with ParallelismReda Marzouk, Shahaf Bassan, Guy KatzNeurIPS 2025 · 9 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
- From Decision Trees to Boolean Logic: A Fast and Unified SHAP AlgorithmAlexander Nadel, Ron WettensteinAAAI 2026 · 1 citation
- Query-Guided Analysis and Mitigation of Data Verification ErrorsRan Schreiber, Yael AmsterdamerICDE 2026
Builds on2
Related papers
- Efficient Banzhaf-Based Data Valuation for k-Nearest Neighbors ClassificationGuangyi Zhang, Lutz Oettershagen, Lixu Wang, Aristides GionisVLDB 2026 · 1 citation
- Regression-adjusted Monte Carlo Estimators for Shapley Values and Probabilistic ValuesR. Teal Witter, Yurong Liu, Christopher MuscoNeurIPS 2025 · 22 citations
- Faster Approximation of Probabilistic and Distributional Values via Least SquaresWeida Li, Yaoliang YuICLR 2024 · 13 citations
- Game-theoretic Counterfactual Explanation for Graph Neural NetworksChirag Chhablani, Sarthak Jain, Akshay Channesh, Ian A. Kash et al.WWW 2024 · 14 citations
- TreeGrad-Ranker: Feature Ranking via O(L)-Time Gradients for Decision TreesWeida Li, Yaoliang Yu, Bryan Kian Hsiang LowICLR 2026 · 5 citations
