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 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 dbfa2ed2-b942-493b-a0dd-5da26bef6414Cited 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
