Abstract
Releasing the result size of conjunctive queries and graph pattern queries under differential privacy (DP) has received considerable attention in the literature, but existing solutions do not offer any optimality guarantees. We provide the first DP mechanism for this problem with a fairly strong notion of optimality, which can be considered as a natural relaxation of instance-optimality to a constant.
Introduction
Differential Privacy (DP) has become the gold standard for protecting individual privacy when releasing aggregate statistics from databases. However, applying DP to complex queries—specifically Conjunctive Queries (CQs) such as joins and graph pattern counting—remains a significant challenge. The standard approach to DP involves adding noise calibrated to the Global Sensitivity of a query, which represents the maximum possible change any single individual's data can cause to the result across all possible databases.
For CQs, Global Sensitivity is often massive or even unbounded, leading to noise levels that render the query results useless. While researchers have proposed alternatives like Smooth Sensitivity (which adapts noise to the specific dataset) and Elastic Sensitivity (a computationally efficient heuristic), a gap remains: how can we achieve dataset-specific noise that is both mathematically optimal and computationally efficient?
The Sensitivity Dilemma
To understand the contribution of this work, one must consider the trade-offs between existing sensitivity measures:
- Global Sensitivity: Simple to compute but overly pessimistic, leading to excessive noise for joins.
- Smooth Sensitivity (SS): Provides much higher utility by looking at the local neighborhood of a dataset, but computing it for CQs is generally NP-hard and takes exponential time.
- Elastic Sensitivity (ES): A fast heuristic used in systems like Chorus, but it lacks formal optimality guarantees and can sometimes add even more noise than Global Sensitivity.
This paper introduces a mechanism that bridges this gap, providing the first polynomial-time DP mechanism for CQs that offers a strong mathematical guarantee of optimality.
Residual Sensitivity and Neighborhood Optimality
Because true "instance optimality" (adding the absolute minimum noise for a specific dataset) is theoretically impossible under DP, the authors target Neighborhood Optimality. A mechanism is $O(1)$-neighborhood optimal if its error is within a constant factor of the best possible error any DP mechanism could achieve on that dataset and its immediate neighbors.
To achieve this, the authors build upon Residual Sensitivity (RS). Their approach involves several key technical extensions:
- Handling Self-Joins: Previous RS methods struggled with queries where a table is joined with itself (e.g., finding paths in a social network). The authors extended RS to handle these cases, where a single physical row change can impact multiple logical parts of a query.
- Handling Predicates: The mechanism now supports CQs with predicates (e.g., $x < y$), which are vital for graph motif counting to avoid redundant counting of nodes.
- Theoretical Bridging: The authors prove that Smooth Sensitivity is $O(1)$-neighborhood optimal for CQs. They then demonstrate that their extended Residual Sensitivity is a constant-factor approximation of Smooth Sensitivity. Since RS can be computed in polynomial time via "residual queries" (sub-queries that bound the ripple effect of a single tuple change), it provides a tractable path to near-optimal privacy.
Experimental Evaluation
The authors evaluated their mechanism using five real-world directed graph datasets from the SNAP (Stanford Network Analysis Project) collection, focusing on arXiv collaboration networks (CondMat, AstroPh, HepPh, HepTh, and GrQc).
Key Results
- Utility: The noise added by Residual Sensitivity was found to be nearly identical to the computationally expensive Smooth Sensitivity, typically within 2%.
- Efficiency: RS achieved these utility gains while running 4.8x to 145x faster than SS.
- Superiority over Heuristics: Compared to Elastic Sensitivity (ES), the improvements were dramatic. For complex queries like 4-paths, ES required up to 896,000x more noise than RS on the AstroPh dataset, highlighting the failure of existing heuristics for complex joins.
Limitations and Future Directions
While the mechanism is highly effective for "full" CQs, the authors note that non-full CQs (queries that project out certain variables) present a harder challenge. They prove that $O(1)$-neighborhood optimality is impossible for non-full CQs unless the neighborhood size is significantly expanded.
Future research directions include achieving logarithmic-neighborhood optimality for high-probability error bounds and developing efficient methods for answering multiple CQs simultaneously without the rapid accuracy degradation typically caused by standard DP composition theorems. This work represents a major step forward in making private data analysis both practical and theoretically sound for the complex relational queries that drive modern data science.
Summary updated