PriPL-Tree: Accurate Range Query for Arbitrary Distribution under Local Differential Privacy

Leixia Wang, Qingqing Ye, Haibo Hu, Xiaofeng Meng

TL;DR

Existing methods for answering range queries under Local Differential Privacy (LDP) almost universally assume that data is uniformly distributed within each bucket or tree node. PriPL-Tree breaks this assumption by combining hierarchical trees with continuous piecewise linear (PL) functions, capturing arbitrary data distributions with fewer nodes and shallower trees. This data-aware approach reduces mean squared error (MSE) by up to 66% on 1-D queries and 48% on multi-dimensional queries while cutting query response times down to roughly 50 microseconds.

What Problem Does This Paper Address?

Under Local Differential Privacy (LDP), individual users perturb their private values before transmitting them to an untrusted data collector. A common online analytical processing (OLAP) task is evaluating range queries (e.g., “How many users earn between \$50k and \$80k?”).

To answer these queries, existing systems build hierarchical trees or spatial grids, partition the attribute domain into subdomains, and estimate frequency per subdomain. When a query partially overlaps a subdomain, these systems assume that data is uniformly distributed across that subdomain.

However, real-world data is rarely uniform—it is often Gaussian, multi-modal, or skewed. Coarse subdomains introduce severe non-uniform estimation errors, while dividing the domain into ultra-fine bins dilutes user counts per bucket, causing aggregated LDP perturbation noise to explode.

Methods

PriPL-Tree balances non-uniform modeling error and LDP noise error via a three-phase workflow for 1-D data, and extends it to multi-dimensional data via adaptive grids:

  Phase 1: Private PL Fitting
  [α·N users + Square Wave] ──> Noisy Histogram ──> Continuous PL Fit (Slopes & Breakpoints)
                                                                │
  Phase 2: Tree Construction                                    ▼
  [(1-α)·N users + OUE]    ──> Path-based User Allocation ──> Pruned Binary Tree
                                                                │
  Phase 3: Refinement                                           ▼
  Post-processing          ──> Constrained Inference ──> Non-negative, Consistent PriPL-Tree
  1. Private Piecewise Linear Fitting (Phase 1):
  2. A fraction ($\alpha = 0.2$) of users run the Square Wave (SW) mechanism to construct an initial noisy histogram.
  3. The collector fits a continuous PL function by searching for breakpoints that minimize residual sum of squares (RSS) and deriving slope/intercept parameters in closed form.
  4. Tree Structure Construction & User Allocation (Phase 2):
  5. Each leaf node represents a fitted linear segment. Non-leaf nodes represent merged intervals.
  6. Non-leaf nodes are adaptively pruned to minimize expected query variance.
  7. The remaining $(1-\alpha)N$ users are allocated along root-to-leaf paths to estimate node frequencies using Optimal Unary Encoding (OUE).
  8. Consistency & Slope Refinement (Phase 3):
  9. Without contacting users, the collector performs a two-pass constrained inference (weighted averaging and root-to-leaf consistency) and clamps slopes to guarantee that all estimated frequencies are non-negative and mathematically consistent across the tree.
  10. Multi-Dimensional Extension (Adaptive 2-D Grids):
  11. For $m$-dimensional data, half the users build 1-D PriPL-Trees.
  12. The other half estimate $\binom{m}{2}$ adaptive 2-D grids. Partition boundaries are dense in high-frequency regions (reducing uniform bias) and sparse in low-frequency regions (preventing frequencies from being drowned out by LDP noise).
  13. A global consistency step aligns 2-D grid marginals with the 1-D PriPL-Tree histograms.

Datasets

The authors evaluated PriPL-Tree on 8 five-dimensional datasets:

  • Four Synthetic Datasets: Gaussian ($Gaussian(0,1)$), MixGaussian (mixture of two Gaussians), Cauchy ($Cauchy(0,1)$), and Zipf ($Zipf(1.1)$), with $N = 10^6$ users.
  • Four Real-World Benchmarks:
  • Adult (Census income, 32,561 users)
  • Loan (Lending Club loan records, 148,045 users)
  • Salary (San Francisco public employee salaries, 2,013,799 users)
  • Financial (PaySim synthetic mobile money transactions, 6,362,620 users)

Domains were bucketized into sizes of 1024 for 1-D tests and 256 for multi-dimensional experiments.

Key Insights and Ideas

  • Fewer Tree Levels = Less LDP Noise: In traditional hierarchical trees, large domains require deep trees. Because user privacy budgets must be partitioned across levels (or users split along paths), deeper trees leave fewer users per node, skyrocketing variance. Because a continuous PL function can model complex curves with very few segments, PriPL-Tree stays shallow regardless of domain size.
  • Tree Depth Driven by Distribution, Not Domain Size: Conventional tree depth scales with $\log(\text{domain size})$, whereas PriPL-Tree’s depth scales with the complexity/shape of the distribution.
  • Marginals Inform 2-D Grids: Rather than using uniform grid spacing, 1-D marginal distributions directly dictate 2-D grid partitions, placing fine cells where user density is high enough to withstand OUE noise.

Key Results

  • 1-D Range Queries: PriPL-Tree reduced MSE by 12.1% to 66.6% (averaging 37.4%) over state-of-the-art baselines (DHT, AHEAD, PrivNUD).
  • Multi-Dimensional Queries: PriPL-Tree combined with adaptive grids achieved an average of 47.9% lower MSE on real-world datasets and 23.7% lower MSE on synthetic datasets compared to competitors (HDG, AHEAD, PrivNUD, PRISM). On non-leptokurtic data (e.g., Gaussian, Loan, Salary), MSE dropped by an average of 56.7%.
  • Runtime: Tree construction averaged 27.2 seconds (faster than the competitor average of 29.8s). Query latency was roughly 50 microseconds, orders of magnitude faster than baseline approaches operating in the millisecond range.

Limitations and Future Work

  • Leptokurtic / Heavy-Tailed Data: On distributions with extreme spikes (such as Zipf or Financial), PriPL-Tree’s linear advantage diminishes. It essentially degenerates into a traditional hierarchical tree, matching PrivNUD rather than significantly beating it (yielding only a modest ~14.9% MSE improvement).
  • Extremes in User Count ($N$) and Domain Size ($d$): In very small domains, bucketization degrades the benefits of linear fitting. When user sample sizes are too small ($N \le 10^4$), LDP noise corrupts the initial PL parameter fitting; when user sizes are massive ($N \ge 10^8$), noise is so low that simple trees already perform well.
  • Future Directions: The authors suggest exploring automatic, data-aware machine learning models to guide partitioning and estimation without heuristic search.

Summary updated

BibTeX
@article{wang2024pripl,
  author = {Leixia Wang and Qingqing Ye and Haibo Hu and Xiaofeng Meng},
  title = {{PriPL-Tree: Accurate Range Query for Arbitrary Distribution under Local Differential Privacy}},
  journal = {Proc. VLDB Endow.},
  year = {2024},
  url = {https://openreview.net/forum?id=JiUFEs8FQp},
}
Figure