Private Online Prediction from Experts with Small Losses

Bo Li, Peng YeNeurIPS 2026

TL;DR

Imagine trying to pick the best stockbroker day after day without leaking your sensitive financial data—and one of those brokers happens to be nearly psychic, making very few mistakes over the year. Previously, adding privacy guarantees meant your algorithm would still stumble around with high error rates, completely blind to how good your best option actually was. This paper introduces the first differentially private online learning algorithm whose error scales with the mistakes of the best expert rather than the total number of days, proving you don't have to sacrifice sharp accuracy for privacy when good experts exist.

What Problem Does This Paper Address?

Online Prediction from Experts (OPE) is a classic machine learning setup: over $T$ rounds, you pick one of $N$ experts, observe everybody's losses, and suffer the loss of the expert you chose. Your goal is to minimize regret—the gap between your cumulative loss and the cumulative loss of the single best expert in hindsight, denoted as $L^\star$.

When the underlying data is sensitive (like medical records), we require Differential Privacy (DP), ensuring that changing a single round's data barely alters the algorithm's behavior. Existing private OPE algorithms achieve a regret of $\tilde{O}(\sqrt{T})$ (where $\tilde{O}$ hides logarithmic factors). While optimal in the worst case, $\sqrt{T}$ is pretty underwhelming in practical scenarios where domain experts are genuinely accurate and $L^\star$ is tiny. For instance, if $L^\star = T^{1/4}$, suffering $\sqrt{T}$ regret means your algorithm does vastly worse than the best expert.

Without privacy, you can easily hit $\tilde{O}(\sqrt{L^\star})$ regret by cranking up the learning rate of the classic Multiplicative Weights algorithm. Under DP, however, a high learning rate makes the algorithm hyper-sensitive to single data points, blowing your privacy budget. Until now, it was an open question whether private algorithms could adapt to small losses and achieve $\tilde{O}(\sqrt{L^\star})$ regret.

Methods

To save privacy budget, you want to switch experts as rarely as possible; fewer updates allow you to spend more privacy budget (a higher learning rate) per update. The authors build upon a standard non-private technique called the shrinking dartboard algorithm, modifying it to be private without ruining its low-loss adaptability:

  • Delaying Updates via AboveThreshold: Instead of randomly updating at every step—a trick prior private works used, which creates a hard $\tilde{O}(T^{1/3})$ regret floor—the algorithm sticks with its current expert until that expert accumulates a noticeable chunk of loss. It tracks this privately using AboveThreshold, a classic DP mechanism that noisy-checks when a running sum crosses a set limit.
  • Data-Dependent Resampling: Once the loss threshold is crossed, the algorithm flips a biased coin to decide whether to pick a new expert via Multiplicative Weights (which naturally acts as the DP Exponential Mechanism). Crucially, the coin's probability depends on the accumulated loss during the delay, bounded carefully alongside a hard cap on total updates to ensure worst-case privacy.
  • The Doubling Trick: Because $L^\star$ isn't known at the start of the game, the authors wrap their method in a standard doubling trick—guessing $L^\star$ is small and doubling the estimate whenever reality proves otherwise.

For their impossibility result, they adapt "privacy amplification by subsampling" to the online setting, wrapping a hypothetical algorithm in a simulator that randomly zeroes out losses to show how adaptive adversaries can exploit it.

Datasets

Not discussed in the paper. (This is a purely theoretical work proving mathematical regret and privacy bounds.)

Key Insights and Ideas

  • Waiting for failure preserves privacy: In DP, updating your mind costs privacy budget. By refusing to even consider switching experts until your current pick has visibly messed up (measured privately via AboveThreshold), the total number of updates naturally shrinks to $\tilde{O}(\eta L^\star)$. Fewer updates let you safely use an aggressive learning rate $\eta \approx 1/\sqrt{L^\star}$.
  • Data-dependent probabilities don't have to leak secrets: Making an update probability depend directly on sensitive losses usually breaks privacy. The authors show that if you enforce a minimum loss threshold before flipping that coin, the ratio of probabilities on neighboring datasets stays tightly bounded, keeping the step private.
  • A sharp divide between oblivious and adaptive worlds: Everything works beautifully if the sequence of losses is oblivious (fixed in advance). However, if the environment is adaptive (reacting to your past choices), the advantage vanishes completely. Even if a literally perfect expert exists ($L^\star = 0$), an adaptive adversary can force any private algorithm into high regret.

Key Results

  • Pure and Approximate DP Upper Bounds: Against an oblivious adversary, the proposed algorithms achieve an expected regret of $\tilde{O}(\sqrt{L^\star / \varepsilon})$ under both pure ($\varepsilon$-DP) and approximate ($(\varepsilon, \delta)$-DP) privacy. For constant privacy parameters, this matches the non-private theoretical limit of $\Omega(\sqrt{L^\star \log N} + \log N)$ up to poly-logarithmic factors, and quadratically improves upon prior low-loss private bounds of $\tilde{O}(L^\star)$.
  • Adaptive Lower Bound: Against an adaptive adversary, any $(\varepsilon, \delta)$-DP algorithm (with $\varepsilon \le 1$, $\delta \le 1/T^3$, and $N \ge 2T$) must suffer $\Omega(\min(T, \frac{\sqrt{T}}{\varepsilon \log T}))$ expected regret—even when promised $L^\star = 0$.

Limitations and Future Work

  • Oblivious Assumption: The $\tilde{O}(\sqrt{L^\star})$ speedup strictly requires inputs to be independent of the learner's actions (though the authors prove this limitation is mathematically unavoidable).
  • Slight Suboptimality When Losses Are Huge: When $L^\star$ is large—scaling linearly with $T$, i.e., $\Theta(T)$—these new bounds are slightly looser than the best specialized worst-case DP algorithms by logarithmic/privacy factors (e.g., an extra factor of $O(\sqrt{\log T / \varepsilon})$ in the leading term under approximate DP). Tightening the algorithm to get the absolute best of both regimes simultaneously remains an open problem for future work.

Summary updated

Abstract

We consider online prediction from experts, a fundamental problem in machine learning, under differential privacy constraints. Existing private algorithms achieve near-optimal regret $\tilde{O}(\sqrt{T})$, where $T$ is the time horizon. However, this bound becomes suboptimal when $L^\star$, the cumulative loss of the best expert, is significantly less than $T$. In this work, we present the first differentially private algorithm with regret $\tilde{O}(\sqrt{L^\star})$, offering a substantial improvement in the low-loss regime. Our regret bound matches the non-private lower bound up to poly-logarithmic factors for constant privacy parameters, demonstrating that privacy incurs only a small cost in this setting. Our result assumes that the input sequence is oblivious, i.e., it is fixed in advance and independent of the algorithm's outputs. We also prove that an $\tilde{\Omega}(\sqrt{T})$ regret is inevitable for adaptively generated inputs, even when $L^\star = 0$.
BibTeX
@inproceedings{li2026private,
  author = {Bo Li and Peng Ye},
  title = {{Private Online Prediction from Experts with Small Losses}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=oAwj0VxrNb},
}
Figure