User-Level Differential Privacy With Few Examples Per User

Badih Ghazi, Pritish Kamath, Ravi Kumar, Pasin Manurangsi, Raghu Meka, Chiyuan Zhang

Abstract

Differential privacy (DP) is typically applied at the item level, protecting individual data points. However, real-world applications often require user-level privacy, where all data contributed by a single individual must be protected. While previous research has addressed user-level DP in "example-rich" scenarios, this paper explores the "example-scarce" regime where each user contributes only a small number of samples ($m$). We present a generic framework to transform item-level DP algorithms into user-level ones, demonstrating that $m$ examples per user can lead to a $\sqrt{m}$ reduction in the total number of users required for statistical tasks. Our findings provide near-optimal bounds for PAC learning and various distribution estimation tasks under both approximate and pure differential privacy.

Introduction

Differential privacy has become the gold standard for privacy-preserving data analysis. Most theoretical work focuses on item-level privacy, which ensures that the presence or absence of a single record in a dataset does not significantly affect the output. In practice, however, a single user often contributes multiple records—such as multiple photos in a gallery or several sentences in a text corpus. To protect these individuals, we must employ user-level privacy, which guarantees that an adversary cannot determine whether an entire user's data was included in the training set.

A significant challenge arises when users contribute only a few examples ($m$ is small). In this "example-scarce" regime, it is difficult to maintain high utility while providing strong privacy guarantees. This paper, presented at NeurIPS 2023, bridges this gap by providing a mathematical framework for leveraging multiple examples per user to improve the efficiency of user-level DP algorithms.

The Challenge of the Example-Scarce Regime

Previous research into user-level DP often assumed that each user provided enough data to solve a learning task independently. In contrast, this work focuses on scenarios where $m$ is small, and the algorithm must aggregate data across many users to succeed. The core question is: how much does having $m$ examples per user reduce the total number of users ($n$) needed to achieve a specific utility target?

In standard item-level DP, the sensitivity of a function is often bounded by the influence of a single point. In user-level DP, a single user can change $m$ points simultaneously, potentially increasing sensitivity by a factor of $m$. A naive approach would simply increase the noise added to the output, but this destroys utility. The authors seek a more sophisticated way to exploit the statistical properties of these $m$ examples.

Methodological Framework

The authors propose two primary strategies depending on the privacy definition used:

1. Approximate-DP $(\epsilon, \delta)$ and Sample Perfect Generalization

For approximate differential privacy, the authors introduce a transformation based on the concept of Sample Perfect Generalization. They prove that any algorithm satisfying item-level DP inherently possesses a stability property: its output distribution does not change significantly if one user's set of $m$ examples is replaced by another set drawn from the same underlying distribution.

To operationalize this, they use a Propose-Test-Release (PTR) framework:

  • Propose: Suggest that the item-level algorithm is safe to run on the user-level data.
  • Test: Check if the specific input dataset is "far" from any dataset that would violate the privacy guarantee.
  • Release: If the test passes, the algorithm's output is released; otherwise, a null symbol is returned.

2. Pure-DP $(\epsilon, 0)$ and User-Level Clipping

For pure differential privacy, the authors adapt the Exponential Mechanism. The primary innovation here is user-level clipping. In item-level algorithms, errors are often summed across all samples, leading to high sensitivity. By capping (clipping) the influence of any single user on the scoring function, the authors maintain low sensitivity while preserving the signal from the data. This allows for high-utility learning even under the strict requirements of pure-DP.

Key Theoretical Results

The $\sqrt{m}$ Scaling Law

A central contribution of this work is the formalization of the $\sqrt{m}$ reduction. For approximate-DP, the authors show that if an item-level algorithm requires $n$ users, the user-level equivalent requires approximately $n/\sqrt{m}$ users. This provides a generic explanation for why multiple examples per user improve privacy-utility trade-offs across diverse tasks.

PAC Learning and Distribution Estimation

The paper provides rigorous bounds for several fundamental tasks:

  • PAC Learning: The authors prove the user complexity is $\tilde{\Theta}\left(\frac{d}{\epsilon} + \frac{d}{\epsilon \alpha m}\right)$, where $d$ is the dimension and $\alpha$ is the accuracy. This bound is shown to be near-optimal.
  • Distribution Learning: The work provides the first explicit user-level pure-DP bounds for learning Discrete, Product, and Gaussian distributions. These bounds often match the performance of more complex approximate-DP algorithms, simplifying the landscape of private distribution estimation.

Discussion and Limitations

While this paper provides a robust theoretical foundation for user-level DP with few examples, several challenges remain. The generic transformation for approximate-DP is a feasibility result; the resulting algorithms are often computationally inefficient (non-polynomial time). Future work is needed to develop task-specific, efficient versions of these transformations.

Additionally, the current dependence on the privacy parameter $\epsilon$ in the generic transformation may not be perfectly tight, and the authors suggest it could potentially be improved from $1/\epsilon^2$ to $1/\epsilon$. Finally, extending these results from the central model to the Local DP model—where data is privatized on the user's device—remains an important open frontier for privacy research.

Summary updated

BibTeX
@inproceedings{ghazi2023user,
  author = {Badih Ghazi and Pritish Kamath and Ravi Kumar and Pasin Manurangsi and Raghu Meka and Chiyuan Zhang},
  title = {{User-Level Differential Privacy With Few Examples Per User}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=PITeSdYQkv},
}
Figure