On Differentially Private U Statistics

Kamalika Chaudhuri, Po-Ling Loh, Shourya Pandey, Purnamrita Sarkar

Accurately estimating statistical properties while maintaining Differential Privacy (DP) is a cornerstone of modern data analysis. While the field has developed robust tools for privately estimating simple means, U-statistics—which underpin everything from variance calculations to hypothesis tests and network analysis—have proven much trickier to privatize without losing significant accuracy.

This paper introduces a novel algorithm that uses "local Hájek projections" to privately estimate U-statistics with nearly optimal error rates. By surgically reweighting data points based on their local influence rather than applying "black-box" noise, the authors achieve major utility gains, particularly for "degenerate" statistics common in hypothesis testing.

The Challenge of Privatizing U-Statistics

In statistics, a U-statistic is a generalization of the sample mean. Instead of averaging individual data points, it averages a function $h$ (called a kernel) over all possible subsets of data of a certain size $k$. For example, estimating the variance of a population or counting the number of triangles in a social network relies on U-statistics.

The challenge arises when applying differential privacy. Standard DP techniques often treat the statistic as a "black box" and add noise based on its global sensitivity (the maximum possible change one person's data can cause). However, because a single data point in a U-statistic appears in many different subsets, its influence is heavily amplified.

Existing "off-the-shelf" private mean estimators are suboptimal here. They often add too much noise, leading to a constant-factor inflation of error. Worse, in "degenerate" settings—where the first-order variation of the statistic is zero, which is common when testing a null hypothesis—standard tools produce an error of $\Theta(1/n)$, even though an error of $O(1/n^2)$ is theoretically possible without privacy constraints.

A Surgical Approach: Local Hájek Projections

To resolve this, the authors propose a new algorithm called PrivateMeanLocalHájek. The core innovation is the shift from global clipping to local Hájek projections.

  1. Local Projections: Instead of looking at the global statistic, the algorithm calculates a "local" version for each data point $X_i$. This projection essentially asks: "Given this specific data point, what is the expected value of the kernel over all other points?"
  2. Thresholding and Reweighting: The algorithm identifies "bad" data points whose local projections are too far from the empirical mean. Instead of simply discarding them (which would bias the result), it uses a smooth weighting scheme to down-weight their contribution. This is a more precise, "surgical" clipping that preserves more of the original signal.
  3. Smoothed Sensitivity: The authors use the Smoothed Sensitivity framework to add noise. Because the reweighting scheme makes the statistic inherently less sensitive to any single point, they can add significantly less noise than a standard Laplace mechanism would require.
  4. Subsampling: Calculating U-statistics over all $\binom{n}{k}$ subsets is computationally expensive ($O(n^k)$). The authors provide a version of the algorithm that works on a random subsample of subsets, bringing the complexity down to $O(n^2)$ while maintaining theoretical guarantees.

Key Results and Near-Optimality

By treating the local Hájek projection as the "degree" of a node in a hypergraph of data points, the authors successfully adapt techniques from private graph analysis to general statistics.

Comparison of private error bounds for different algorithms across non-degenerate and degenerate settings.

As shown in the theoretical bounds above, the proposed main algorithm achieves near-optimality:

  • Non-degenerate statistics: The algorithm's error matches theoretical lower bounds up to logarithmic factors, achieving an optimal non-private error profile.
  • Degenerate statistics: The authors show that for degenerate U-statistics, local projections are naturally more tightly concentrated. The algorithm exploits this to achieve a much lower private error ($\tilde{O}(n^{-3/2})$) than naive methods, successfully preserving the optimal non-private variance profile.

Applications

While primarily a theoretical statistics paper, the authors demonstrate the power of their approach in two key applications:

  • Uniformity Testing: Distinguishing if a discrete distribution is uniform or "far-from-uniform." Their private uniformity tester is quadratically better in terms of the domain size compared to previous state-of-the-art methods.
  • Sparse Geometric Graphs: Estimating edge density in random networks. In sparse settings where traditional methods fail because the required DP noise overpowers the signal, this new approach remains highly effective.

Limitations and Future Work

While a significant leap forward, the paper notes a few open challenges. First, the current results for degenerate statistics primarily apply to bounded kernels; extending these guarantees to sub-Gaussian kernels (which can have infinite range) remains a challenging next step. Second, while the $O(n^2)$ subsampled version is a massive improvement over $O(n^k)$, it may still be computationally prohibitive for extremely large datasets (e.g., billions of nodes) where linear-time algorithms are strictly required. Finally, exploring statistics that are degenerate to higher orders (beyond order 1) remains an open research path.

Summary updated

BibTeX
@inproceedings{chaudhuri2024differentially,
  author = {Kamalika Chaudhuri and Po-Ling Loh and Shourya Pandey and Purnamrita Sarkar},
  title = {{On Differentially Private U Statistics}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=zApFYcLg6K},
}
Figure