Uniformity Testing under User-Level Local Privacy

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

Abstract: We initiate the study of distribution testing under 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 than 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 considers distribution 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.

Introduction

Most research in Local Differential Privacy (LDP) operates at the item-level, where every single data point is treated as a private unit. However, in real-world distributed systems, a single user often generates a stream of data—such as a sequence of app interactions or a history of emoji usage. Applying item-level LDP to a batch of $m$ samples from one user causes the privacy cost (the $\varepsilon$ parameter) to accumulate, typically requiring the addition of massive amounts of noise that destroy data utility.

User-level LDP shifts this paradigm: the privacy guarantee must protect the entire set of $m$ samples as a single unit. This paper specifically addresses uniformity testing within this framework: 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$.

Methodology

The authors introduce several protocols tailored to different system constraints, such as the availability of shared randomness ("public coins") and whether the protocol is "symmetric" (where every user runs identical code).

1. Domain Compression (Public-Coin)

In the public-coin setting, the protocol utilizes a hashing technique to "squash" the large domain $k$ down to a domain of size 2 (a binary outcome). The system then leverages existing user-level coin-learning algorithms to determine if the resulting distribution is fair.

2. Hadamard-based Testing (Private-Coin)

To avoid the requirement for shared randomness, the authors utilize the properties of Hadamard matrices to partition the domain. This allows for effective testing in the more restrictive private-coin setting.

3. The "From Many Bits, One" Lemma

A significant technical challenge in user-level LDP is utilizing $m$ samples without exhausting the privacy budget. The authors developed a lemma demonstrating that $m$ samples can be thresholded into a single bit of information. This bit preserves sufficient bias from the original distribution for testing purposes while maintaining low sensitivity, thereby minimizing the required noise.

4. Symmetric Bandit Testing

To ensure the protocol is symmetric—meaning the server does not need to assign specific roles to specific users—users randomly choose which part of the distribution to monitor. This effectively transforms the testing problem into a multi-armed bandit style mean-testing problem.

Key Results and Insights

The most significant finding is the linear benefit of $m$: the number of users $n$ required for testing decreases linearly as the number of samples per user $m$ increases. Specifically, the sample complexity is roughly $O(k^{1.5} / (m \alpha^2 \varepsilon^2))$. This confirms that collecting more data from existing users is a mathematically viable alternative to recruiting a larger user base.

  • 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, scaled by the $1/m$ factor.
  • The Symmetry Tax: The authors demonstrate that making a protocol both private-coin and symmetric requires a logarithmic increase in communication; users must send approximately $\log k$ bits rather than a single bit to maintain efficiency.

Conclusion and Future Work

This work establishes the first sample-optimal bounds for uniformity testing under user-level LDP, proving that thresholding techniques can effectively filter privacy noise in batch settings. While these results are robust for discrete distributions, several avenues for future research remain:

  • Heterogeneity: The current model assumes all users' samples originate from the same distribution, whereas real-world users often have diverse preferences.
  • Unbalanced Data: Future work could explore settings where $m$ varies between users.
  • Complex Tasks: Extending these techniques to 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},
}
Figure