Uniformity Testing Under User-Level Local Privacy

Clément L. Canonne, Abigail Gentle, Vikrant Singhal

This paper, titled "Uniformity Testing under User-Level Local Privacy," presents a significant step forward in making differential privacy more practical for real-world distributed systems. It explores how to test statistical properties of data when users contribute multiple data points at once, rather than just a single observation.

TL;DR

The authors provide the first sample-optimal algorithms for uniformity testing under user-level local differential privacy (LDP). Their key finding is a "linear speedup": having one user provide $m$ samples is nearly as effective as having $m$ separate users provide one sample each, even when the privacy guarantee must cover the entire batch of $m$ points.

What Problem Does This Paper Address?

Most research in Local Differential Privacy (LDP) operates at the item-level. In this standard model, every single data point is treated as a private unit. However, in the real world, a single user often generates a stream of data—think of the various emojis you use in a day or the sequence of apps you open.

If we use item-level LDP for a batch of $m$ samples from one user, the privacy "cost" (the $\varepsilon$ parameter) typically adds up, forcing us to add massive amounts of noise that destroy the utility of the data. User-level LDP shifts the goalpost: the privacy guarantee must protect the entire set of $m$ samples as a single unit.

The authors specifically tackle uniformity testing: given $n$ users each holding $m$ samples, can a central server determine if the underlying distribution is uniform across a domain of size $k$, or if it is significantly "biased" (at least $\alpha$ distance away from uniform)?

Graphical representation of the user-level LDP model, where each user processes a batch of $m$ samples into a single private message $z_i$.

Methods

The paper introduces several protocols depending on whether the system uses "public coins" (shared randomness between users and the server) or "private coins" (no shared randomness), and whether the protocol is "symmetric" (every user runs the exact same code).

  1. Domain Compression (Public-Coin): For the public-coin setting, the authors use a hashing technique to "squash" the large domain $k$ down to a domain of size 2 (essentially a coin flip). They then use existing user-level coin-learning algorithms to see if the resulting "coin" is fair.
  2. Hadamard-based Testing (Private-Coin): This is the paper's core technical contribution. To avoid needing shared randomness, they use properties of Hadamard matrices to partition the domain.
  3. The "From Many Bits, One" Lemma: A crucial technical hurdle is how to use $m$ samples without blowing up the privacy budget. The authors developed a lemma showing that you can threshold the $m$ samples into a single bit of information. This single bit preserves enough "bias" from the original distribution to be useful for testing while keeping the "sensitivity" (and thus the required noise) very low.
  4. Symmetric Bandit Testing: To make the protocol symmetric (so the server doesn't have to assign specific roles to specific users), they have users randomly choose which part of the distribution to "monitor," effectively turning the problem into a multi-armed bandit style mean-testing problem.

Datasets

This is a theoretical paper focused on establishing mathematical upper and lower bounds. As such, no empirical datasets were used for training or evaluation. The results are proven for any discrete distribution over a domain of size $k$.

Key Insights and Ideas

  • The Linear Benefit of $m$: The most important "aha moment" is that the sample complexity $n$ (number of users) decreases linearly with $m$ (samples per user). Specifically, the number of users needed is roughly $O(k^{1.5} / (m \alpha^2 \varepsilon^2))$. This confirms that collecting more data from existing users is a viable alternative to recruiting more users.
  • Thresholding as a Privacy Filter: By reducing $m$ samples to a single bit via a simple threshold (e.g., "did I see this category more than $m/2$ times?"), you create a very stable input for the Differential Privacy mechanism. This prevents the "composition explosion" that usually happens when processing multiple items.
  • The Symmetry Tax: The authors show that making a protocol "private-coin" and "symmetric" (the most practical but most restrictive setting) requires a logarithmic increase in communication—users must send about $\log k$ bits rather than just 1 bit to maintain efficiency.

Key Results

  • Public-Coin Asymmetric: Achieves a sample complexity of $n = O(\frac{k}{m \alpha^2 \varepsilon^2})$.
  • Private-Coin Symmetric: Achieves a sample complexity of $n = \tilde{O}(\frac{k^{3/2}}{m \alpha^2 \varepsilon^2})$. This matches the best-known bounds for the $m=1$ case, but with the $m$ factor in the denominator.
  • Lower Bounds: The authors prove that for symmetric, private-coin protocols, you cannot achieve constant communication per user without sacrificing accuracy (Proposition 1.3).

Limitations and Future Work

  • Homogeneity Assumption: The paper assumes all users' samples come from the exact same distribution. In reality, different users might have different underlying preferences (heterogeneity).
  • Fixed $m$: The current proofs assume every user has exactly $m$ samples. Future work could explore "unbalanced" settings where some users have much more data than others.
  • Beyond Uniformity: While uniformity testing is a fundamental building block, extending these user-level techniques to more complex tasks like independence testing or property estimation remains an open challenge.

Summary updated

Abstract

We initiate the study of distribution testing under \emph{user-level} local differential privacy, where each of $n$ users contributes $m$ samples from the unknown underlying distribution. This setting, albeit very natural, is significantly more challenging that the usual locally private setting, as for the same parameter $\varepsilon$ the privacy guarantee must now apply to a full batch of $m$ data points. While some recent work consider distribution \emph{learning} in this user-level setting, nothing was known for even the most fundamental testing task, uniformity testing (and its generalization, identity testing). We address this gap, by providing (nearly) sample-optimal user-level LDP algorithms for uniformity and identity testing. Motivated by practical considerations, our main focus is on the private-coin, symmetric setting, which does not require users to share a common random seed nor to have been assigned a globally unique identifier.
BibTeX
@inproceedings{canonne2026uniformity,
  author = {Clément L. Canonne and Abigail Gentle and Vikrant Singhal},
  title = {{Uniformity Testing Under User-Level Local Privacy}},
  booktitle = {ITCS},
  year = {2026},
  doi = {10.4230/lipics.itcs.2026.33},
}

Loading related content...

Figure