Near-Optimal Algorithms for Differentially Private Online Learning in a Stochastic Environment

Bingshan Hu, Zhiming Huang, Nishant A. Mehta, Nidhi Hegde

This paper, recently updated in May 2024, tackles a critical intersection in machine learning: how to learn effectively from a stream of data while mathematically guaranteeing the privacy of the individuals contributing that data. Specifically, it provides near-optimal, "anytime" algorithms for differentially private (DP) online learning in both bandit and full-information settings.

TL;DR

The authors present the first "anytime" algorithms for differentially private stochastic bandits and full-information learning that achieve optimal or near-optimal regret. By employing a "lazy and forgetful" epoch-based updating scheme, they bridge the gap between privacy and performance without requiring prior knowledge of the learning horizon.

What Problem Does This Paper Address?

Online learning, exemplified by the Multi-Armed Bandit (MAB) problem, involves a fundamental trade-off between exploration (trying new actions) and exploitation (choosing the best-known action). In sensitive applications like personalized medicine or search advertising, the rewards (e.g., a patient's reaction or a user's click) can leak private information.

Differential Privacy (DP) offers a rigorous way to protect this data, but it usually introduces noise that degrades performance, measured as "regret" (the difference between the algorithm's cumulative reward and that of the best possible fixed action). Previous DP algorithms were often "batch-based," requiring the total number of rounds ($T$) to be known in advance, or they suffered from suboptimal regret bounds. This paper seeks to create algorithms that are both anytime (work for any $T$) and optimal in their regret-privacy trade-off.

Methods

The authors introduce a unified design template characterized by three key features:

  1. Geometrically Increasing Epochs: Instead of updating every round, the algorithms operate in epochs that double in length (the "doubling trick").
  2. Lazy Updating: The algorithm only updates its internal model (like the empirical mean of an arm) at the end of an epoch.
  3. Forgetting: Crucially, to satisfy DP, the algorithms only use observations from the current epoch to calculate the next update, effectively "forgetting" the past. This prevents the privacy budget from being exhausted by repeated lookups of the same data.

Using this template, they develop:

  • Anytime-Lazy-UCB: A variant of the Upper Confidence Bound algorithm that adds Laplace noise to empirical means and includes an extra exploration bonus to "cancel out" the impact of that noise.
  • Lazy-DP-TS: A Thompson Sampling-based algorithm. Interestingly, it maintains optimism by shifting the posterior distribution to the right, ensuring it explores sufficiently despite the privacy-preserving noise.
  • RNM-FTNL: For the full-information setting, they use the "Report Noisy Max" (RNM) mechanism combined with "Follow the Noisy Leader" (FTNL).

Datasets

The paper relies on synthetic stochastic environments to validate its theoretical findings. The rewards are drawn from Bernoulli distributions.

  • Setting 1 (Diverse Gaps): Five arms with mean rewards $\{0.75, 0.625, 0.5, 0.375, 0.25\}$.
  • Setting 2 (Identical Suboptimal Arms): Five arms where one is optimal (0.5) and the other four are identical suboptimal arms (0.4).

Key Insights and Ideas

  • The "Forgetting" Paradox: In standard learning, more data is always better. In DP online learning, discarding old data is a feature, not a bug. Because epoch lengths grow geometrically, the "fresh" data in the current epoch eventually becomes large enough to dominate the privacy noise, leading to optimal regret rates.
  • Optimism via Shifting: For Thompson Sampling, simply adding noise to the data isn't enough to guarantee performance. The authors found that explicitly shifting the posterior distribution is necessary to maintain the "Optimism in the Face of Uncertainty" principle required for low regret.
  • Full-Information Complexity: The paper highlights that the full-information setting (where you see rewards for all actions) was surprisingly less understood than the bandit setting under DP. They provide the first instance-dependent lower bounds for this scenario.

Key Results

  • Bandit Optimality: Anytime-Lazy-UCB and Lazy-DP-TS achieve the optimal instance-dependent regret bound of $O(\sum_{j:\Delta_j>0} \frac{\ln(T)}{\min\{\Delta_j, \epsilon\}})$, where $\epsilon$ is the privacy parameter.
  • Full-Information Near-Optimality: RNM-FTNL matches the authors' new lower bounds for full information up to a small $\log(T)$ factor.
  • Empirical Superiority: In numerical experiments, Lazy-DP-TS consistently outperformed previous state-of-the-art DP algorithms, showing better practical utility across different privacy levels.
Cumulative regret comparison across different privacy parameters ($\epsilon$). The plots show that Lazy-DP-TS (blue) and AdaP-KLUCB (orange) generally achieve the lowest regret, significantly outperforming the Anytime-Lazy-UCB (purple) and DP-SE (green) baselines.

Limitations and Future Work

  • The $\log(T)$ Gap: There remains a small gap between the upper and lower bounds in the full-information setting. The authors conjecture that the $\log(T)$ factor in their upper bound might be removable.
  • Privacy "For Free": A promising future direction is investigating whether the inherent randomness in Thompson Sampling's posterior sampling can provide differential privacy "for free," potentially removing the need for added Laplace noise.
  • Beyond Bernoulli: While the principles are general, the current tight analysis is focused on Bernoulli rewards; extending this to more complex distributions is a natural next step.

Summary updated

BibTeX
@misc{hu2021near,
  author = {Bingshan Hu and Zhiming Huang and Nishant A. Mehta and Nidhi Hegde},
  title = {{Near-Optimal Algorithms for Differentially Private Online Learning in a Stochastic Environment}},
  year = {2021},
  eprint = {2102.07929},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.07929},
}
Figure