Differentially Private Range Subgraph Counting

Xian Chen, Ruobing Bai, Pan Peng

Graph analysis often focuses on specific communities defined by vertex attributes—such as "users aged 20–30 in New York"—rather than the entire network. Counting subgraphs, like triangles or stars, within these induced subgraphs is crucial for identifying transaction patterns among high-risk financial entities or mapping social clusters. However, performing these analytics while preserving the privacy of individual relationships (edges) introduces significant challenges. To address this, recent research initiates the study of Differentially Private Range Subgraph Counting (DPRSC), providing the first efficient algorithms to privately count pattern graphs within multi-dimensional attribute ranges.

The Challenge of Privacy in Range Queries

Extracting accurate subgraph counts under Differential Privacy (DP) presents two major hurdles:

  1. High Sensitivity: Subgraph counting is inherently non-linear and notoriously sensitive. Adding or removing a single edge can drastically alter the count of a specific pattern (e.g., completing multiple triangles simultaneously). Under standard DP mechanisms, this high sensitivity requires injecting massive amounts of noise to hide the presence or absence of any single edge.
  2. The Range Query "Error Storm": When multi-dimensional attributes (like age, income, and location) are introduced, the number of possible range queries explodes. Naively adding noise to every possible query independently results in an accumulation of error that quickly destroys the utility of the data.

Methodology: The Geometric Bridge

To overcome these hurdles, the authors move away from counting directly on the graph and introduce a novel Subgraph Projection technique.

Every occurrence of a target pattern is mapped to a point in a $2d$-dimensional space based on the attributes of its vertices. This clever geometric bridge transforms a highly non-linear graph problem into a weighted orthogonal range counting problem. Once linearized into a point-counting problem, decades of spatial indexing research can be leveraged.

The authors organize these projected points into a multi-dimensional DP Range Tree. By adding Laplace noise to the weights of the tree nodes, a single query can be answered by summing a small number of noisy nodes. This significantly reduces the total noise compared to answering queries independently.

Furthermore, instead of relying on "Global Sensitivity" (the worst-case change in any theoretically possible graph), the algorithms utilize an approximation of Local Sensitivity. Because real-world graphs are typically sparse and lack vertices with massive, unbounded degrees, the local sensitivity of any single edge is naturally capped. This allows for much tighter privacy bounds and clearer signals.

Key Insights and Theoretical Bounds

A major theoretical contribution of the paper is establishing the "dimensionality tax." By reducing reconstruction attacks to DPRSC and leveraging discrepancy theory, the authors provide a lower bound proving that any DP algorithm for this problem must incur an additive error that grows exponentially with the number of attribute dimensions ($d$). This curse of dimensionality is an inevitable price for privacy in high-dimensional range queries.

However, the proposed algorithms achieve nearly optimal error relative to this dimension, providing matching upper and lower bounds that demonstrate theoretical tightness.

Empirical Results

The algorithms were evaluated on three real-world network datasets: CA-Netscience (co-authorship), Wiki-Squirrel (Wikipedia pages), and WormNet-v3 (protein-protein interactions), using synthetic attribute distributions to provide a conservative, worst-case evaluation.

  • Accuracy: The proposed algorithms (PDP_RSC and ADP_RSC) consistently outperformed baseline methods across all tested privacy levels ($\epsilon$). The error remained largely stable even as the number of queries increased, whereas baseline errors grew rapidly.
  • Efficiency: For large query sets, the range-tree-based approach provided a 3 to 4 order of magnitude speedup in total runtime compared to computing exact counts for every query.

Limitations and Future Directions

While this work establishes a strong foundation for DPRSC, a few limitations remain. The current model assumes that vertex attributes (like age or location) are public, protecting only the privacy of the edges. In many real-world scenarios, attributes are just as sensitive as the connections themselves. Future work could explore "Node-level DP," where both attributes and connections are protected.

Additionally, the current framework assumes a static graph. Extending these geometric projection and range tree techniques to dynamic settings—where edges and attributes evolve over time—remains a promising and necessary next step for real-time graph analytics.

Summary updated

BibTeX
@inproceedings{chen2026differentially,
  author = {Xian Chen and Ruobing Bai and Pan Peng},
  title = {{Differentially Private Range Subgraph Counting}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=QYpByrxSTg},
}
Figure