Privately Learning Thresholds: Closing the Exponential Gap

Haim Kaplan, Katrina Ligett, Yishay Mansour, Moni Naor, Uri Stemmer

Abstract

We study the sample complexity of learning threshold functions under the constraint of differential privacy. It is assumed that each labeled example in the training data is the information of one individual and we would like to come up with a generalizing hypothesis $h$ while guaranteeing differential privacy for the individuals. Intuitively, this means that any single labeled example in the training data should not have a significant effect on the choice of the hypothesis. This problem has received much attention recently; unlike the non-private case, where the sample complexity is independent of the domain size and just depends on the desired accuracy and confidence, for private learning the sample complexity must depend on the domain size $X$ (even for approximate differential privacy). Alon et al. (STOC 2019) showed a lower bound of $\Omega(\log^*|X|)$ on the sample complexity and Bun et al. (FOCS 2015) presented an approximate-private learner with sample complexity $\tilde{O}\left(2^{\log^*|X|}\right)$. In this work we reduce this gap significantly, almost settling the sample complexity. We first present a new upper bound (algorithm) of $\tilde{O}\left(\left(\log^*|X|\right)^2\right)$ on the sample complexity and then present an improved version with sample complexity $\tilde{O}\left(\left(\log^*|X|\right)^{1.5}\right)$. Our algorithm is constructed for the related interior point problem, where the goal is to find a point between the largest and smallest input elements. It is based on selecting an input-dependent hash function and using it to embed the database into a domain whose size is reduced logarithmically; this results in a new database, an interior point of which can be used to generate an interior point of the original database in a differentially private manner.

Introduction

In the realm of machine learning, learning a one-dimensional threshold function—such as determining if a person's age exceeds a certain limit—is a foundational task. In a non-private setting, the number of samples required to learn such a function is independent of the domain size (e.g., the range of possible ages), depending only on the desired accuracy and confidence levels.

However, the landscape shifts dramatically when we introduce the constraint of Differential Privacy (DP). Differential privacy ensures that the inclusion or exclusion of any single individual's data does not significantly alter the outcome of the learning process. For thresholds, this requirement introduces a necessary dependence on the domain size $|X|$. For years, a significant "exponential gap" existed between the known lower bound of $\Omega(\log^* |X|)$ and the best available upper bound of $\tilde{O}(2^{\log^* |X|})$. This paper addresses this theoretical mystery, providing a new algorithm that nearly settles the sample complexity.

The Interior Point Problem

To solve the threshold learning problem, the authors focus on a related challenge: the Interior Point Problem. Given a set of numbers from a totally ordered domain, the goal is to find any value that lies between the smallest and largest elements in the set. This problem is mathematically equivalent to learning thresholds; a private solution for one yields a private solution for the other.

The TreeLog Algorithm

The core contribution of this work is the TreeLog algorithm, a recursive domain-shrinking method designed to find interior points privately. The algorithm operates through several key stages:

  1. Tree Embedding: The domain $X$ is represented as a binary tree.
  2. Path Selection: An input-dependent path $\pi$ is selected from the root to a leaf, typically based on where the majority of data points are clustered.
  3. Domain Shrinking: The algorithm creates a new, significantly smaller database by recording the "level" in the tree where data points deviate from the selected path. This process effectively reduces a domain of size $|X|$ to a domain of size $\log |X|$.
  4. Recursion: This reduction is applied recursively. Because each step applies a logarithmic reduction, it takes approximately $\log^* |X|$ iterations to reach a domain of constant size.
  5. Privacy Innovation: A major technical hurdle in DP is that every intermediate step usually requires its own privacy budget. The authors' breakthrough insight is proving that they can use a non-private path for embedding, provided they can demonstrate that the resulting distribution of the embedded databases remains stable across neighboring datasets. This allows for a much more efficient use of the privacy budget.

Key Results and Insights

The paper provides a significant leap forward in the theoretical understanding of private learning:

  • Closing the Gap: The authors first establish an upper bound of $\tilde{O}((\log^* |X|)^2)$ and then further refine it to $\tilde{O}((\log^* |X|)^{1.5})$. This effectively eliminates the exponential gap that had persisted for years, bringing the upper bound remarkably close to the $\Omega(\log^* |X|)$ lower bound.
  • Efficiency: The TreeLog algorithm is not just a theoretical construct; it is computationally efficient, running in polynomial time.
  • The Power of $\log^*$: The appearance of the iterated logarithm ($\log^*$) is a natural consequence of the recursive logarithmic domain reduction.
  • Broad Implications: By solving the Interior Point Problem, the paper also provides tight bounds for related tasks, including distribution learning under Kolmogorov distance and private query release for thresholds.

Limitations and Future Work

While this work represents a major milestone, a few questions remain. A small polynomial gap (an exponent of 1.5 vs 1) still exists between the current upper and lower bounds. Future research may aim to find the absolute optimal constant. Additionally, this work is focused on one-dimensional thresholds. Extending these tight "log-star" bounds to higher-dimensional geometric shapes or more complex hypothesis classes remains a significant challenge for the field. Finally, these techniques are specific to approximate differential privacy ($(\varepsilon, \delta)$-DP); the sample complexity for pure differential privacy ($(\varepsilon, 0)$-DP) is known to be much higher, at $\Theta(\log |X|)$.

Summary updated

BibTeX
@inproceedings{kaplan2020privately,
  author = {Haim Kaplan and Katrina Ligett and Yishay Mansour and Moni Naor and Uri Stemmer},
  title = {{Privately Learning Thresholds: Closing the Exponential Gap}},
  booktitle = {Conference on Learning Theory},
  year = {2020},
  url = {https://openreview.net/forum?id=InBaRVD_tAi},
}
Figure