Computing Local Sensitivities of Counting Queries with Joins
Yuchao Tao, Xi He, Ashwin Machanavajjhala, Sudeepa Roy
Abstract
Local sensitivity of a query Q given a database instance D, i.e. how much the output Q(D) changes when a tuple is added to D or deleted from D, has many applications including query analysis, outlier detection, and in differential privacy. However, it is NP-hard to find local sensitivity of a conjunctive query in terms of the size of the query, even for the class of acyclic queries. Although the complexity is polynomial when the query size is fixed, the naive algorithms are not efficient for large databases and queries involving multiple joins. In this paper, we present a novel approach to compute local sensitivity of counting queries involving join operations by tracking and summarizing tuple sensitivities -the maximum change a tuple can cause in the query result when it is added or removed. We give algorithms for the sensitivity problem for full acyclic join queries using join trees, that run in polynomial time in both the size of the database and query for an interesting sub-class of queries, which we call 'doubly acyclic queries' that include path queries, and in polynomial time in combined complexity when the maximum degree in the join tree is bounded. Our algorithms can be extended to certain non-acyclic queries using generalized hypertree decompositions. We evaluate our approach experimentally, and show applications of our algorithms to obtain better results for differential privacy by orders of magnitude.
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.
21 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
- PrivLava: Synthesizing Relational Data with Foreign Keys under Differential Privacy cites R2T: Instance-optimal Truncation for Differentially Private Query Evaluation with Foreign Keys
- R2T: Instance-optimal Truncation for Differentially Private Query Evaluation with Foreign Keys cites Deep Learning with Differential Privacy
- R2T: Instance-optimal Truncation for Differentially Private Query Evaluation with Foreign Keys cites Residual Sensitivity for Differentially Private Multi-Way Joins
- Better than Composition: How to Answer Multiple Relational Queries under Differential Privacy cites R2T: Instance-optimal Truncation for Differentially Private Query Evaluation with Foreign Keys
- Better than Composition: How to Answer Multiple Relational Queries under Differential Privacy cites Deep Learning with Differential Privacy
Cited by top-tier papers21
- R2T: Instance-optimal Truncation for Differentially Private Query Evaluation with Foreign KeysWei Dong, Juanru Fang, Ke Yi, Yuchao Tao et al.SIGMOD 2022 · 41 citations
- Residual Sensitivity for Differentially Private Multi-Way JoinsWei Dong, Ke YiSIGMOD 2021 · 32 citations
- PrivLava: Synthesizing Relational Data with Foreign Keys under Differential PrivacyKuntai Cai, Xiaokui Xiao, Graham CormodeSIGMOD 2023 · 25 citations
- Local Dampening: Differential Privacy for Non-numeric Queries via Local SensitivityVictor A. E. de Farias, Felipe T. Brito, Cheryl J. Flynn, Javam C. Machado et al.VLDB 2021 · 20 citations
- Better than Composition: How to Answer Multiple Relational Queries under Differential PrivacyWei Dong, Dajun Sun, Ke YiSIGMOD 2023 · 16 citations
Builds on1
Related papers
- Faster approximate subgraph counts with privacyDung Nguyen, Mahantesh Halappanavar, Venkatesh Srinivasan, Anil VullikantiNeurIPS 2023 · 8 citations
- Differentially Oblivious Multi-way JoinZhiang Wu, Wei Dong, Xiao HuSIGMOD 2026
- A Branch-&-Bound Algorithm for Fractional Hypertree DecompositionZongyan He, Jeffrey Xu YuVLDB 2024 · 2 citations
- Acyclic Graph Pattern Counting under Local Differential PrivacyYihua Hu, Kuncan Wang, Wei DongSIGMOD 2026
- Differentially Private Range Subgraph CountingXian Chen, Ruobing Bai, Pan PengICML 2026
