Littlestone Classes are Privately Online Learnable

Noah Golowich, Roi Livni

TL;DR

This paper bridges the gap between online learning and differential privacy by proving that any hypothesis class with a finite Littlestone dimension can be learned privately in an online setting. The authors provide the first non-trivial mistake bounds for private online classification, demonstrating that we can achieve logarithmic regret under an oblivious adversary without sacrificing user privacy.

What Problem Does This Paper Address?

Most classical machine learning assumes data is sampled independent and identically distributed (i.i.d.) from a static distribution. However, real-world data streams often shift over time due to demographic changes or adversarial manipulation. Online learning drops the i.i.d. assumption, evaluating a learner sequentially on arbitrary data.

While differential privacy (DP) has been thoroughly studied in the offline (i.i.d.) setting, doing so in the online setting introduces a massive challenge: the algorithm must continuously output predictions (hypotheses) that remain differentially private with respect to the entire sequence of data points seen so far. Prior to this work, it wasn't clear if non-trivial mistake bounds could be achieved for general online classification under such strict privacy constraints.

Methods

The authors introduce a new algorithm called DP-SOA (Differentially Private Standard Optimal Algorithm), which builds upon the non-private Standard Optimal Algorithm (SOA).

Key components include:

  • A Forest of Mistake Trees: The algorithm maintains multiple copies of the learning process across a forest of binary trees. Incoming data points are randomly routed to leaves and propagated upward. This structure acts as a "tournament" to isolate stable, accurate hypotheses.
  • HistSparse (Sparse Vector Technique): In a naive implementation, publishing a private hypothesis at every time step $t$ would rapidly deplete the privacy budget, leading to a poor mistake bound that scales with $\sqrt{T}$. To circumvent this, the authors adapt the Sparse Vector Technique. The algorithm only pays a privacy cost when the "frequent" stable hypothesis changes or drops below a certain frequency threshold. Most of the time, it simply confirms that the current hypothesis is still performing well, which is "free" from a privacy perspective.
  • Sampling Without Replacement Analysis: To prove global stability in a non-i.i.d. online setting, the authors utilize a variant of McDiarmid's concentration inequality specifically tailored for permutations and sampling without replacement.

Datasets

Not discussed in the paper. This is a purely theoretical paper focused on proving mathematical guarantees and complexity bounds; no empirical evaluations or datasets were used.

Key Insights and Ideas

  • The Unified Theory of Privacy and Online Learning: Recent machine learning theory established that a concept class is privately learnable in the offline setting if and only if it has a finite Littlestone dimension (a combinatorial measure of a class's online learnability). This paper completes the circle, showing that finiteness of the Littlestone dimension is also necessary and sufficient for private online learning.
  • Privacy is (Nearly) Free for Oblivious Streams: For an oblivious adversary (one that decides the data sequence ahead of time), privacy only introduces a logarithmic overhead in $T$, matching the optimal rate of non-private online learning.
  • Stability via Randomization: By randomly partitioning the input stream across a forest of trees, the algorithm forces a state where a single accurate hypothesis dominates frequently enough to be safely extracted via DP histogram mechanisms.

Key Results

The paper provides two primary quantitative bounds for the realizable setting (where a perfect hypothesis exists in the class $\mathcal{H}$):

  1. Oblivious Adversary: The expected number of mistakes scales as: $$\tilde{O}\left(\frac{2^{8 \cdot 2^d}}{\epsilon} \ln(T/\delta)\right)$$ Where $d$ is the Littlestone dimension, $T$ is the time horizon, and $(\epsilon, \delta)$ are the privacy parameters. Crucially, the dependence on $T$ is $O(\log T)$, which is structurally identical to the non-private case.

  2. Adaptive Adversary: If the adversary can alter future data points based on the learner's past predictions, the algorithm achieves a sublinear mistake bound of: $$\tilde{O}\left(\frac{2^{O(2^d)}\sqrt{T}\log(1/\delta)}{\epsilon}\right)$$

Limitations and Future Work

  • The Doubly-Exponential Curse: While the mistake bounds scale beautifully with time ($O(\log T)$), they scale doubly-exponentially with the Littlestone dimension ($2^{O(2^d)}$). In the offline batch setting, this was eventually improved to a polynomial dependence. The authors leave it as an open question whether a similar polynomial improvement is possible for online learning.
  • Adaptive Logarithmic Regret: For adaptive adversaries, the bound degrades to $O(\sqrt{T})$. It remains unknown if a logarithmic mistake bound is achievable under adaptive conditions.
  • Agnostic and Proper Learning: This work focuses entirely on the realizable setting and utilizes improper learning (the algorithm can output hypotheses outside of $\mathcal{H}$). Extending these tight bounds to the agnostic setting (where data can be noisy) and proper learning settings are open directions.

Summary updated

BibTeX
@inproceedings{golowich2021littlestone,
  author = {Noah Golowich and Roi Livni},
  title = {{Littlestone Classes are Privately Online Learnable}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=4bKbEP9b65v},
}
Figure