Advancing Fact Attribution for Query Answering: Aggregate Queries and Novel Algorithms
Omer Abramovich, Daniel Deutch, Nave Frost, Ahmet Kara, Dan Olteanu
Abstract
In this paper, we introduce a novel approach to computing the contribution of input tuples to the result of the query, quantified by the Banzhaf and Shapley values. In contrast to prior algorithmic work that focuses on Select-Project-Join-Union queries, ours is the first practical approach for queries with aggregates. It relies on two novel optimizations that are essential for its practicality and significantly improve the runtime performance already for queries without aggregates. The first optimization exploits the observation that many input tuples have the same contribution to the query result, so it is enough to compute the contribution of one of them. The second optimization uses the gradient of the query lineage to compute the contributions of all tuples with the same complexity as for one of them. Experiments with a million instances over 3 databases show that our approach achieves up to 3 orders of magnitude runtime improvements over the state-of-the-art for queries without aggregates, and that it is practical for aggregate queries.
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 8601001c-b854-4142-9f7c-bbf4c66d78d2Cited by top-tier papers1
Ask how each one uses itBuilds on3
- Computing the Shapley Value of Facts in Query AnsweringDaniel Deutch, Nave Frost, Benny Kimelfeld, Mikaël MonetSIGMOD 2022 · 31 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
- Banzhaf Values for Facts in Query AnsweringOmer Abramovich, Daniel Deutch, Nave Frost, Ahmet Kara et al.SIGMOD 2024 · 8 citations
Related papers
- TreeGrad-Ranker: Feature Ranking via O(L)-Time Gradients for Decision TreesWeida Li, Yaoliang Yu, Bryan Kian Hsiang LowICLR 2026 · 5 citations
- Tab-Shapley: Identifying Top-k Tabular Data Quality InsightsManisha Padala, Lokesh Nagalapatti, Atharv Tyagi, Ramasuri Narayanam et al.AAAI 2025 · 1 citation
- Efficient Banzhaf-Based Data Valuation for k-Nearest Neighbors ClassificationGuangyi Zhang, Lutz Oettershagen, Lixu Wang, Aristides GionisVLDB 2026 · 1 citation
- Aggregated Deletion Propagation for Counting Conjunctive Query AnswersXiao Hu, Shouzhuo Sun, Shweta Patwa, Debmalya Panigrahi et al.VLDB 2021 · 7 citations
- Shapley Value Approximation Based on k-Additive GamesGuilherme Dean Pelegrina, Patrick Kolpaczki, Eyke HüllermeierAAAI 2026
