betaFeedback

WorksComputer Science

Private online learning and prediction for Littlestone classes

Abstract

We study mistake bounds for differentially private online learning and online prediction under oblivious realisable adversaries. Online learning requires the learner to release a hypothesis at each time step whereas in online prediction, the learner only needs to make predictions without releasing a hypothesis. Using a novel lower bound for private online learning and an upper bound for private prediction, we show that the sample complexity of these two problems are separated by a factor that grows with the time horizon for every class of finite Littlestone dimension dd. First, we prove that every (ε,δ)(ε,δ)-private online learner has a deterministic realisable stream of length TT on which the mistake bound is at least E[MT]=O(dεlog⁡2/3T)\mathbb E [M_T]= O\left(\frac dε\log^{2/3} T\right). In particular, this is the first non-trivial lower in the range 1/T<δ<1/log⁡T)1/T<δ<1/\log T) left open in earlier works[SR22,DSS24,LWY24]. Second, we prove that for every class of of Littlestone dimension dd, there exists an (ε,δ)(ε,δ)-jointly private predictor with at most 22cd2ε−2log⁡2(2/(εδ))2^{2^{cd^2}}ε^{-2}\log^2(2/(εδ)) expected mistakes, independently of TT, for some absolute constant c>0c>0. Thus, for every fixed class of finite Littlestone dimension when δ=Θ(1/log⁡T)δ=Θ(1/\log T), private learning requires O(log⁡2/3T)O\left(\log^{2/3} T\right) expected mistakes, whereas private prediction admits O(log⁡log⁡T2)O(\log\log T^2).

Introduction

In realisable online learning, given a hypothesis class H\mathcal{H}, a learner predicts the labels of a sequence of examples consistent with one unknown h∈Hh \in\mathcal{H}. It is well known that if the class H\mathcal{H} has Littlestone dimension Ldim⁡(H)=d\operatorname{Ldim}(\mathcal{H}) = d, then the Standard Optimal Algorithm makes at most dd mistakes on any stream, independently of the horizon TT [9]. Additionally, this bound is also known to be tight; thus Littlestone dimension tightly characterises the mistake bound for realisable online learning.

Private online learning Under differential privacy, there exist algorithms with mistake bounds logarithmic in TT for fixed privacy parameters [6, 12]. Whether this dependence on the horizon is necessary was posed as an open question in [13]. Subsequent lower bounds have shown that this logarithmic dependence may be necessary, but only for certain algorithms [5], hypothesis classes [4], or ranges of δ\delta, (δ≤ε/T\delta\le\varepsilon/T in [10]). This raises the following question:

Question. How many mistakes must an arbitrary private online learner make on a fixed hypothesis class for every value of δ\delta?

We make progress on this question in the range of δ\delta left open by prior work, up to order 1/log⁡T1/\log T. We prove a lower bound polynomial in log⁡T\log T, first for point functions on three elements and then for every class of finite Littlestone dimension at least two. Our argument starts with a simpler class, point functions on a three-element domain:

POINT⁡3={f1,f2,f3},fj:{1,2,3}→{0,1},fj(x)=1{x=j}.\operatorname{POINT}_3 = \{f_1,f_2,f_3\}, \qquad f_j:\{1,2,3\}\to\{0,1\}, \qquad f_j(x)=1\{x=j\}.
ResultPoint domainDP LearnerLower bound
[5]{1,2,3}\{1,2,3\}ConcentratedΩ(log⁡T)\Omega(\log T)
[4]{0,…,T}\{0,\ldots,T\}AllΩ(log⁡T)\Omega(\log T)
[10]{1,2,3}\{1,2,3\}AllΩ(log⁡log⁡T)\Omega(\log\log T)
Theorem A{1,2,3}\{1,2,3\}AllΩ((log⁡T)2/3)\Omega\left((\log T)^{2/3}\right)

Table 1. Lower bounds for expected total mistakes of private online learners on POINT3_3 at δ=1/(log⁡T)\delta=1/(\log T). [5, 10]’s results also extend to other Littlestone classes. [4] considers point functions on {0,…,T}\{0,\ldots,T\}, a domain that grows with TT. The [10] entry follows by setting T′=⌊εlog⁡T⌋T'=\lfloor\varepsilon\log T\rfloor, applying their theorem to the first T′T' rounds, and filling the remaining rounds with dummy points.

This class has Littlestone dimension one and a single mistake suffices without privacy. The main point is that f1f_1 and f2f_2 agree at point 3 but disagree at point 1; thus one mistake at 1 suffices. We first prove a lower bound for this problem with online DP in Theorem A and then extend this to every class of Littlestone dimension at least two in Theorem B.

Theorem A. For ε0=1/100\varepsilon_0=1/100 and 0≤δ≤1/40\le\delta\le1/4, every (ε0,δ)(\varepsilon_0,\delta)-differentially private online learner of POINT3_3 has a realisable stream of length TT on which

E[MT]=Ω(min⁡{(log⁡(2T))2/3,1δ}).\mathbb{E}[M_T]=\Omega\left(\min\left\{(\log(2T))^{2/3},\frac{1}{\delta}\right\}\right).

At δ=Θ(1/log⁡T)\delta=\Theta(1/\log T), Theorem A improves the Ω(log⁡log⁡T)\Omega(\log\log T) [10 see Table 1 caption] to Ω((log⁡T)2/3)\Omega\left((\log T)^{2/3}\right) for arbitrary private learners on POINT3_3. Table 1 compares our bound to existing bounds for this range of δ\delta. As shown in Figure 1, a gap remains to the O(log⁡T)O(\log T) upper bound [6, 10] for this range of δ\delta. For polynomially small δ\delta, the Ω(log⁡T)\Omega(\log T) lower bound of [10] is stronger and tight. When δ≥(log⁡T)−2/3\delta\ge(\log T)^{-2/3}, Theorem A matches the O(1/δ)O(1/\delta) upper bound using the name-and-shame variant of SOA [5].

Expected total mistakes for POINT3 at epsilon = 1/100

Figure 1. Expected total mistakes E[MT]\mathbb{E}[M_T] for POINT3_3 at ε=1/100\varepsilon= 1/100. Solid curves are upper bounds and dashed curves are lower bounds; grey shading marks the open gap.

General Littlestone Classes: Our next result gives a lower bound linear in dd, for every class with d≥2d\ge2, while retaining the polylogarithmic dependence on TT that we show for POINT3_3.

Theorem B. Let H\mathcal{H} have finite Littlestone dimension d≥2d\ge2. For 0<ε≤10<\varepsilon\le1, 0≤δ≤min⁡{ε2,1/4}0\le\delta\le\min\{\varepsilon^2,1/4\}, and T≥(d/ε)2T\ge(d/\varepsilon)^2, every (ε,δ)(\varepsilon,\delta)-differentially private online learner of H\mathcal{H} has a deterministic realisable stream of length TT on which

E[MT]=Ω(min⁡{dε(log⁡T)2/3,dδ}).\mathbb{E}[M_T]=\Omega\left(\min\left\{\frac{d}{\varepsilon}(\log T)^{2/3},\frac{d}{\delta}\right\}\right).

Intuitively, a shattered Littlestone tree supplies dd successive stages in the non-private setting, at each of which a learner can be forced to make a mistake. In our setting, the tree supplies Θ(d)\Theta(d) phases, each instantiating the hard construction underlying Theorem 1. Following a single path through the tree keeps the entire stream realisable, while the mistake contributions from successive phases add. The construction is visualised in Figure 3.

A shattered Littlestone tree with $d-1$ hard blocks along a root-to-leaf path

Figure 3. A shattered Littlestone tree with d−1d-1 hard blocks along a root-to-leaf path after the initial zero edge. Each block applies the POINT3_3 construction from Theorem 1 using the parent point xix_i as its informative point and x0x_0 as its shared dummy. The point ziz_i is the unused third point of this construction and never appears in the stream (as in Theorem 1). The informative label BB is the label of the edge.

For fixed dd and ε\varepsilon, this is, to our knowledge, the first lower bound polynomial in log⁡T\log T that applies to every such class and every private learner when δ=Θ(1/log⁡T)\delta=\Theta(1/\log T).

Private online prediction The lower bounds above show that private online learning can require a number of mistakes growing polynomially with log⁡T\log T. We next consider the slightly easier problem of private online prediction. Here, the algorithm observes xtx_t, releases only its prediction for xtx_t, and then observes yty_t. For point functions, [4] already gives a prediction mistake bound independent of the horizon TT and polylogarithmic in 1/δ1/\delta, but the corresponding question remains open for general classes.

Question. Does every class of finite Littlestone dimension admit an (ε,δ)(\varepsilon,\delta)-jointly private online predictor whose expected mistake bound is independent of TT and polylogarithmic in 1/δ1/\delta, on every fixed realisable stream?

We answer this question affirmatively. Intuitively, in online learning, the learner releases a hypothesis at every round. Its predictions at informative points are therefore visible even on rounds when it receives a dummy example. The learner receives informative examples only occasionally, but its released hypotheses reveal predictions at those points throughout the stream. This makes the prediction setting harder for the adversary. In the prediction setting, the privacy guarantee excludes the prediction at the round where the neighbouring streams differ. In online learning, the hypothesis released at that round does not depend on the current example, since it is released before that example is observed.

Below, we show that every class of finite Littlestone dimension admits an expected mistake bound independent of TT, with polylogarithmic dependence on 1/δ1/\delta.

Theorem C. Let H\mathcal{H} be nonempty with finite Littlestone dimension dd. For 0<ε≤10 < \varepsilon\le1 and 0<δ<1/100 < \delta< 1/10, there is an (ε,δ)(\varepsilon,\delta)-jointly differentially private online predictor such that, on every fixed realisable stream of length TT,

E[MT]≤22c(d+1)2ε2log⁡22εδ,\mathbb{E}[M_T] \le\frac{2^{2^{c(d+1)^2}}}{\varepsilon^2}\log^2\frac{2}{\varepsilon\delta},

where c>0c > 0 is an absolute constant.

For every fixed class of finite Littlestone dimension d≥2d \ge2, Theorems B and C separate private online learning from private online prediction. At fixed ε\varepsilon and δ=Θ(1/log⁡T)\delta= \Theta(1/\log T), the former requires Ω((log⁡T)2/3)\Omega((\log T)^{2/3}) expected mistakes on some stream, whereas the latter admits O((log⁡log⁡T)2)O((\log\log T)^2) expected mistakes on every realisable stream. The same separation also holds for POINT3_3 by Theorem A.

Problem setting and preliminaries

Setting Let H⊆{0,1}X\mathcal{H} \subseteq\{0,1\}^{\mathcal{X}} be a nonempty binary hypothesis class and let T≥1T \ge1 be the time horizon. Write Sr=(xr,yr)∈X×{0,1}S_r = (x_r,y_r) \in\mathcal{X} \times\{0,1\} for the labelled example at round rr, and S=(S1,…,ST)S = (S_1,\ldots,S_T) for the input stream. The stream SS is fixed independently of the algorithm’s randomness. This is the oblivious setting in online learning. In this work, we use replacement adjacency: two streams S,S′S,S' of the same length are neighbouring if they differ in at most one labelled example.

Definition 1 (Online learning game). For each round r=1,…,Tr = 1,\ldots,T:

  1. The randomised learner A\mathcal{A} releases a predictor hr:X→{0,1}h_r : \mathcal{X} \to\{0,1\}.

  2. The learner observes (xr,yr)(x_r,y_r).

The predictors released by the learner need not belong to H\mathcal{H}. We say the learner incurs a mistake when its prediction y^r=hr(xr)\hat{y}_r = h_r(x_r) is incorrect, i.e., when y^r≠yr\hat{y}_r \ne y_r.

Definition 2 (Differentially private online learning). Write A(S)=(h1,…,hT)\mathcal{A}(S) = (h_1,\ldots,h_T) for the learner’s complete output. For ε≥0\varepsilon\ge0 and 0≤δ<10 \le\delta< 1, the learner is (ε,δ)(\varepsilon,\delta)-DP if, for every pair of neighbouring streams S,S′S,S' and every measurable output event EE,

P[A(S)∈E]≤eεP[A(S′)∈E]+δ.\mathbb{P}\left[\mathcal{A}(S) \in E\right] \le e^\varepsilon\mathbb{P}\left[\mathcal{A}(S') \in E\right] + \delta.

We next consider the slightly weaker online prediction model.

Definition 3 (Online prediction game). For each round r=1,…,Tr = 1,\ldots,T:

  1. The predictor observes xrx_r and then releases a bit y^r\hat{y}_r.

  2. The predictor observes yry_r.

Definition 4 (Jointly differentially private online prediction). Let Y^(S)=(y^1,…,y^T)\widehat{Y}(S) = (\hat{y}_1,\ldots,\hat{y}_T) and write Y^−i(S)\widehat{Y}_{-i}(S) for this vector with coordinate ii removed. For ε≥0\varepsilon\ge0 and 0≤δ<10 \le\delta< 1, the predictor is (ε,δ)(\varepsilon,\delta)-jointly differentially private if, for every i∈{1,…,T}i \in\{1,\ldots,T\}, every pair of streams S,S′S,S' agreeing outside round ii, and every measurable output event EE,

P[Y^−i(S)∈E]≤eεP[Y^−i(S′)∈E]+δ.\mathbb{P}\left[\widehat{Y}_{-i}(S) \in E\right] \le e^\varepsilon\mathbb{P}\left[\widehat{Y}_{-i}(S') \in E\right] + \delta.

The stream is said to be realisable by H\mathcal{H} if there is a single f∈Hf \in\mathcal{H} such that f(xr)=yrf(x_r) = y_r for every rr. In either model, the total number of mistakes is MT=∑r=1T1{y^r≠yr}M_T = \sum_{r=1}^{T} 1\{\hat{y}_r \ne y_r\}, where 1{E}1\{E\} is the indicator of an event EE. On a fixed stream, the expectation E[MT]\mathbb{E}[M_T] is computed over the algorithm’s randomness. We write d=Ldim⁡(H)d = \operatorname{Ldim}(\mathcal{H}) (see Definition 6) and call H\mathcal{H} a Littlestone class when d<∞d < \infty. Our main lower bound argument uses the following simple class.

References

  1. [2][BDL26] Konstantina Bairaktari, Markus Engelund Dahl, and Kasper Green Larsen. The binary tree mechanism is optimal for differentially private continual counting. arXiv preprint, 2026.arxiv.org/abs/2607.00876
  2. [4][CLN+24] Edith Cohen, Xin Lyu, Jelani Nelson, Tamás Sarlós, and Uri Stemmer. Lower bounds for differential privacy under continual observation and online threshold queries. In Proceedings of Thirty Seventh Conference on Learning Theory. 2024.arxiv.org/abs/2403.00028
  3. [5][DSS24] Daniil Dmitriev, Kristóf Szabó, and Amartya Sanyal. On the growth of mistakes in differentially private online learning: A lower bound perspective. In Proceedings of the Thirty-Seventh Conference on Learning Theory. 2024.arxiv.org/abs/2402.16778
  4. [6][GL21] Noah Golowich and Roi Livni. Littlestone classes are privately online learnable. In Advances in Neural Information Processing Systems. 2021.arxiv.org/abs/2106.13513
  5. [7][HL26] Charlie Harrison and Ethan Leeman. Tight lower bounds for differentially private continual counting. arXiv preprint, 2026.arxiv.org/abs/2609.17650
  6. [8][KMM+23] Haim Kaplan, Yishay Mansour, Shay Moran, Kobbi Nissim, and Uri Stemmer. Black-box differential privacy for interactive ML. In Advances in Neural Information Processing Systems. 2023.DOI
  7. [9][Lit88] Nick Littlestone. Learning quickly when irrelevant attributes abound: A new linear-threshold algorithm. Machine Learning, 1988.
  8. [10][LWY24] Bo Li, Wei Wang, and Peng Ye. The limits of differential privacy in online learning. In Advances in Neural Information Processing Systems. 2024.arxiv.org/abs/2411.05483
  9. [11][LWY25] Bo Li, Wei Wang, and Peng Ye. Private online learning against an adaptive adversary: Realizable and agnostic settings. In Advances in Neural Information Processing Systems. 2025.
  10. [12][Lyu26] Xin Lyu. Private learning of Littlestone classes, revisited. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing. 2026.
  11. [13][SR22] Amartya Sanyal and Giorgia Ramponi. Open problem: Do you pay for privacy in online learning? In Proceedings of Thirty Fifth Conference on Learning Theory. 2022.

Paper details

vlnc:W_gtq7nnus
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

ChatGPT 5.6

View statement
Looking for related papers…
Contents