The Limits of Differential Privacy in Online Learning

Bo Li, Wei Wang, Peng Ye

Abstract

In the field of online learning, algorithms are typically evaluated by their mistake bounds—the total number of errors made as data arrives sequentially. While non-private learners can achieve finite mistake bounds for many hypothesis classes, the introduction of Differential Privacy (DP) fundamentally alters this landscape. This paper investigates the inherent "privacy tax" in online learning, proving that any private learner must incur an infinite, growing number of mistakes for nearly all non-trivial hypothesis classes. By establishing a universal lower bound of $\Omega(\log T)$ and identifying a sharp divergence between pure and approximate DP under adaptive adversaries, this work clarifies the theoretical boundaries of private sequential decision-making.

Introduction

Differential Privacy (DP) has become the gold standard for protecting individual data in machine learning. However, applying DP to online learning—where a model must make predictions on the fly and update itself continuously—presents unique challenges. In a non-private setting, if a concept is learnable, an algorithm can often achieve a finite mistake bound. Once the algorithm has seen enough representative examples, it ceases to make errors entirely.

A recent study by Bo Li, Wei Wang, and Peng Ye from HKUST, titled "The Limits of Differential Privacy in Online Learning," demonstrates that this "finite mistake" ideal is impossible under the constraints of privacy. The research reveals that privacy requirements force a transition from finite error totals to an ever-growing tally of mistakes, typically scaling logarithmically with time $T$.

The Problem: Finite vs. Infinite Mistakes

The complexity of online learning is traditionally measured by the Littlestone dimension (LD). For any hypothesis class $H$ with a finite LD, there exists a non-private algorithm that makes at most $\text{LD}(H)$ mistakes over an infinite horizon.

The authors address two critical questions regarding the intersection of privacy and online learning:

  1. The Inevitability of Growth: Is a growing number of mistakes an inescapable consequence of privacy for all hypothesis classes?
  2. The DP Hierarchy: How do different flavors of privacy—specifically pure $\epsilon$-DP and approximate $(\epsilon, \delta)$-DP—affect learnability when facing adaptive adversaries who can adjust their strategy based on the learner's previous predictions?

Methodology

The authors utilize a combination of combinatorial proofs and algorithmic reductions to establish their bounds:

  • Packing Arguments: To derive lower bounds, the researchers constructed sequences of data that are "close" in terms of privacy (differing by only a few entries) but require distinct predictions. They prove that a DP algorithm, which must remain statistically similar across similar inputs, is mathematically forced to err on several of these sequences.
  • Smoothed Binary Search: A novel "distinguishing" algorithm was developed to prove the $\Omega(\log T)$ bound. By running a learner multiple times and employing a randomized binary search, the authors could amplify the subtle biases inherent in a private learner to demonstrate inevitable error accumulation.
  • Adversarial Construction: To explore the limits of pure DP, they designed an adaptive adversary using a multiplicative weight update rule. This adversary effectively "traps" the learner, forcing a choice between a privacy violation or a prediction error.
  • Reductions to Online Prediction from Experts (OPE): For upper bounds, the authors demonstrated how online learning problems could be reduced to OPE using probabilistic representations of hypothesis classes.

Key Insights and Results

1. The Universal Lower Bound

The paper establishes that for any private online learner, the expected number of mistakes is at least $\Omega(\text{LD}(H) \log T)$. This represents a fundamental shift from the non-private case. The authors show that this applies to any hypothesis class containing at least one "non-complementary" pair of hypotheses (functions that are not simply exact opposites). Since almost all practical hypothesis classes meet this criterion, the $\log T$ mistake growth is a near-universal law of private online learning.

2. The Pure vs. Approximate DP Gap

One of the most significant findings is the "hard" separation between pure and approximate DP in the presence of adaptive adversaries. In offline (PAC) learning, these two DP variants often behave similarly. However, in the online setting, the authors prove that certain classes (like POINT functions over an infinite domain) are learnable under approximate DP but completely unlearnable under pure DP when the adversary is adaptive.

3. Privacy as "Forced Forgetting"

The results suggest that privacy acts as a form of algorithmic "forced forgetting." To prevent the leakage of specific individual data points, the algorithm is barred from perfectly committing certain patterns to its internal state. In a sequential setting, this inability to "memorize" perfectly manifests as a recurring need to re-learn, leading to a mistake count that never plateaus.

Conclusion and Future Work

This research provides a definitive answer to the cost of privacy in sequential learning, showing that the $\Omega(\log T)$ mistake bound is optimal for approximate DP against oblivious adversaries. However, several avenues for future research remain:

  • The $\delta$ Parameter: Current lower bounds assume $\delta < 1/T$. It remains to be seen if these limits hold when $\delta$ is larger (e.g., $1/\text{poly}(T)$).
  • Stochastic Settings: The current study focuses on adversarial data. If data is generated by a benign, stochastic process, it is possible that private learners could still achieve finite mistake bounds.
  • Refining Pure DP Bounds: While the authors established an upper bound for pure DP involving a $\log^2 T$ factor, they hypothesize this can be tightened to $\log T$ to match the lower bound.

By defining these limits, the work of Li, Wang, and Ye provides a rigorous framework for understanding the trade-offs between data utility and individual privacy in dynamic, real-world systems.

Summary updated

BibTeX
@inproceedings{li2024limits,
  author = {Bo Li and Wei Wang and Peng Ye},
  title = {{The Limits of Differential Privacy in Online Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=Cqr6E81iB7},
}
Figure