On Differentially Private Counting on Trees

Badih Ghazi, Pritish Kamath, Ravi Kumar, Pasin Manurangsi, Kewen Wu

TL;DR

This paper introduces a realistic error metric that blends multiplicative and additive approximation for differentially private (DP) counting over tree hierarchies (such as census geographies or product taxonomies). While pure differential privacy cannot beat an additive error linear in tree depth $d$, the authors prove that allowing both approximate-DP and a small multiplicative slack enables an exponential error reduction—slashing error from $O(\sqrt{d})$ down to $O(\log d)$.

What Problem Does This Paper Address?

In data analytics, counts are frequently aggregated over hierarchical structures (trees). For example, the US Census aggregates population counts across blocks, tracts, counties, and states; digital advertisers aggregate user interactions across categories and subcategories.

When computing these hierarchical sums under differential privacy (DP), traditional benchmarks measure utility strictly through additive error (such as $\ell_2$ or $\ell_\infty$ error). This formulation is often overly pessimistic: if an aggregate count is $10^6$, distinguishing an additive error of $10$ from $100$ is practically meaningless.

The authors investigate whether allowing a multiplicative error tolerance $\alpha$ (ignoring additive error up to $\alpha \times \text{true count}$) enables significantly better privacy-utility tradeoffs for tree aggregation across depth-$d$ trees.

Methods

The paper introduces $\alpha$-multiplicative root mean squared error ($\alpha$-mRMSE), which assesses error only after discounting a multiplicative slack of $\alpha \cdot z$ on a true count $z$: $$\text{RMSE}_\alpha(\tilde{z}, z) := \sqrt{\mathbb{E}\left[\left(\max\{|\tilde{z} - z| - \alpha \cdot z, 0\}\right)^2\right]}$$

To analyze and optimize this metric, the authors develop:

  • A Threshold-to-Classification Reduction: Estimating counts across a tree is reduced to classifying node weights against a geometrically decreasing ladder of thresholds. Nodes above the current threshold but below the previous one are sandwiched into tight multiplicative ranges.
  • Efficient Transition Node Finding via Sparse Vector Technique (SVT): Instead of naively querying all nodes across the tree (which risks paying differential privacy composition costs across all $d$ levels and union bounds over an exponential number of nodes), the algorithm searches for transition nodes—nodes whose count exceeds threshold $\tau$ but none of whose children do. Because the number of transition nodes is mathematically bounded, SVT together with a Truncated Laplace mechanism identifies them with minimal privacy budget loss.
  • Probabilistic Packing Arguments (Lower Bounds): For pure-DP lower bounds, standard packing arguments cannot easily handle high failure probabilities on individual nodes without union bounds. The authors circumvent this by designing a randomized-walk decoding procedure that decodes an input dataset with constant probability based on the aggregate behavior of correctly estimated nodes.
  • Factorization Norm Duals: For additive approximate-DP lower bounds, they characterize the workload matrix's factorization norm using an explicit dual formulation.

Datasets

Not discussed in the paper. (This is a purely theoretical paper; results are proven analytically without empirical experiments or datasets.)

Key Insights and Ideas

  • Pure-DP is Rigid: In pure differential privacy ($\varepsilon$-DP), admitting multiplicative error does not help. The baseline Laplace mechanism incurs $O(d/\varepsilon)$ error, and the authors prove an $\Omega((1-\alpha)^2 d/\varepsilon)$ lower bound holding for any $\alpha < 1$.
  • Approximate-DP Unlocks an Exponential Speedup: Under approximate-DP ($(\varepsilon, \delta)$-DP), additive error alone is fundamentally lower-bounded by $\Omega(\sqrt{d}/\varepsilon)$ (matching the standard Gaussian mechanism). However, once a non-zero multiplicative error $\alpha > 0$ is permitted, the necessary additive threshold plummets exponentially from $O(\sqrt{d})$ to $O(\log d)$.
  • Arity Doesn't Matter: The error upper and lower bounds depend only on the tree depth $d$, completely independent of the branching factor (arity $k$). This stems from the fact that node counts only correlate along shared ancestor-descendant paths.
  • The $\log(1/\delta)$ Barrier: While the Gaussian mechanism scales with $\sqrt{\log(1/\delta)}$, the authors' algorithm scales with $\log(1/\delta)$. They prove this gap is unavoidable for small $\delta$ (e.g., $\delta = 2^{-\Omega(d)}$), showing that one cannot simultaneously achieve sub-polynomial dependence on $d$ and $\sqrt{\log(1/\delta)}$ scaling.

Key Results

Setting Type of Error Prior / Baseline Error New Bound / Tightness
Pure-DP ($\delta = 0$) Additive-only ($\alpha = 0$) $O(d/\varepsilon)$ (Laplace) $\Omega(d/\varepsilon)$ (Theorem 28; tight)
Pure-DP ($\delta = 0$) Additive-Multiplicative ($0 < \alpha < 1$) $O(d/\varepsilon)$ (Laplace) $\Omega(d/\varepsilon)$ (Theorem 28; no gain from $\alpha$)
Approx-DP ($\delta > 0$) Additive-only ($\alpha = 0$) $O(\sqrt{d \log(1/\delta)}/\varepsilon)$ (Gaussian) $\Omega_{\varepsilon, \delta}(\sqrt{d})$ (Theorem 29; tight)
Approx-DP ($\delta > 0$) Additive-Multiplicative ($\alpha > 0$) $O(\sqrt{d \log(1/\delta)}/\varepsilon)$ $O\left(\frac{1}{\alpha^3} \left(\frac{1}{\varepsilon} \log\left(\frac{2d}{\delta}\right) + 1\right)\right)$ (Theorem 21)

Limitations and Future Work

  • Non-Negative Inputs Only: The algorithm critically relies on inputs $x_v \ge 0$, which ensures counts are monotonically non-decreasing as one moves up the tree toward the root. Extending these guarantees to datasets with negative contributions or deletions remains an open challenge.
  • Optimality in $d$ and $\alpha$: While the reduction from $\sqrt{d}$ to $\log d$ is substantial, the theoretical lower bounds do not rule out bounds scaling as slowly as $O(\log^*(d))$ or eliminating the depth dependency entirely. Similarly, tightening the polynomial dependence on $1/\alpha$ remains open.

Summary updated

BibTeX
@inproceedings{ghazi2023differentially,
  author = {Badih Ghazi and Pritish Kamath and Ravi Kumar and Pasin Manurangsi and Kewen Wu},
  title = {{On Differentially Private Counting on Trees}},
  booktitle = {ICALP},
  year = {2023},
  url = {https://openreview.net/forum?id=h8TOn8F0tO},
}
Figure