Introduction
In realisable online learning, given a hypothesis class H \mathcal{H} H , a learner predicts the labels of a sequence of examples consistent with one unknown h ∈ H h \in\mathcal{H} h ∈ H . It is well known that if the class H \mathcal{H} H has Littlestone dimension Ldim ( H ) = d \operatorname{Ldim}(\mathcal{H}) = d Ldim ( H ) = d , then the Standard Optimal Algorithm makes at most d d d mistakes on any stream, independently of the horizon T T T [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 T T T 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 δ ≤ ε / 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 T 1/\log T 1/ log T . We prove a lower bound polynomial in log T \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 = { f 1 , f 2 , f 3 } , f j : { 1 , 2 , 3 } → { 0 , 1 } , f j ( 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\}. POINT 3 = { f 1 , f 2 , f 3 } , f j : { 1 , 2 , 3 } → { 0 , 1 } , f j ( x ) = 1 { x = j } .
Table 1. Lower bounds for expected total mistakes of private online learners on POINT3 _3 3 at δ = 1 / ( log T ) \delta=1/(\log T) δ = 1/ ( log T ) . [5 , 10 ] ’s results also extend to other Littlestone classes. [4 ] considers point functions on { 0 , … , T } \{0,\ldots,T\} { 0 , … , T } , a domain that grows with T T T . The [10 ] entry follows by setting T ′ = ⌊ ε log T ⌋ T'=\lfloor\varepsilon\log T\rfloor T ′ = ⌊ ε log T ⌋ , applying their theorem to the first T ′ 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 f 1 f_1 f 1 and f 2 f_2 f 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 ε 0 = 1/100 and 0 ≤ δ ≤ 1 / 4 0\le\delta\le1/4 0 ≤ δ ≤ 1/4 , every ( ε 0 , δ ) (\varepsilon_0,\delta) ( ε 0 , δ ) -differentially private online learner of POINT3 _3 3 has a realisable stream of length T T T on which
E [ M T ] = Ω ( min { ( log ( 2 T ) ) 2 / 3 , 1 δ } ) . \mathbb{E}[M_T]=\Omega\left(\min\left\{(\log(2T))^{2/3},\frac{1}{\delta}\right\}\right). E [ M T ] = Ω ( min { ( log ( 2 T ) ) 2/3 , δ 1 } ) .
At δ = Θ ( 1 / log T ) \delta=\Theta(1/\log T) δ = Θ ( 1/ log T ) , Theorem A improves the Ω ( log log T ) \Omega(\log\log T) Ω ( log log T ) [10 see Table 1 caption] to Ω ( ( log T ) 2 / 3 ) \Omega\left((\log T)^{2/3}\right) Ω ( ( log T ) 2/3 ) for arbitrary private learners on POINT3 _3 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) O ( log T ) upper bound [6 , 10 ] for this range of δ \delta δ . For polynomially small δ \delta δ , the Ω ( log T ) \Omega(\log T) Ω ( log T ) lower bound of [10 ] is stronger and tight. When δ ≥ ( log T ) − 2 / 3 \delta\ge(\log T)^{-2/3} δ ≥ ( log T ) − 2/3 , Theorem A matches the O ( 1 / δ ) O(1/\delta) O ( 1/ δ ) upper bound using the name-and-shame variant of SOA [5 ] .
Figure 1. Expected total mistakes E [ M T ] \mathbb{E}[M_T] E [ M T ] for POINT3 _3 3 at ε = 1 / 100 \varepsilon= 1/100 ε = 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 d d d , for every class with d ≥ 2 d\ge2 d ≥ 2 , while retaining the polylogarithmic dependence on T T T that we show for POINT3 _3 3 .
Theorem B. Let H \mathcal{H} H have finite Littlestone dimension d ≥ 2 d\ge2 d ≥ 2 . For 0 < ε ≤ 1 0<\varepsilon\le1 0 < ε ≤ 1 , 0 ≤ δ ≤ min { ε 2 , 1 / 4 } 0\le\delta\le\min\{\varepsilon^2,1/4\} 0 ≤ δ ≤ min { ε 2 , 1/4 } , and T ≥ ( d / ε ) 2 T\ge(d/\varepsilon)^2 T ≥ ( d / ε ) 2 , every ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -differentially private online learner of H \mathcal{H} H has a deterministic realisable stream of length T T T on which
E [ M T ] = Ω ( 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). E [ M T ] = Ω ( min { ε d ( log T ) 2/3 , δ d } ) .
Intuitively, a shattered Littlestone tree supplies d d d 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) Θ ( 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 .
Figure 3. A shattered Littlestone tree with d − 1 d-1 d − 1 hard blocks along a root-to-leaf path after the initial zero edge. Each block applies the POINT3 _3 3 construction from Theorem 1 using the parent point x i x_i x i as its informative point and x 0 x_0 x 0 as its shared dummy. The point z i z_i z i is the unused third point of this construction and never appears in the stream (as in Theorem 1). The informative label B B B is the label of the edge.
For fixed d d d and ε \varepsilon ε , this is, to our knowledge, the first lower bound polynomial in log T \log T log T that applies to every such class and every private learner when δ = Θ ( 1 / log T ) \delta=\Theta(1/\log T) δ = Θ ( 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 log T . We next consider the slightly easier problem of private online prediction. Here, the algorithm observes x t x_t x t , releases only its prediction for x t x_t x t , and then observes y t y_t y t . For point functions, [4 ] already gives a prediction mistake bound independent of the horizon T T T and polylogarithmic in 1 / δ 1/\delta 1/ δ , 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 T T T and polylogarithmic in 1 / δ 1/\delta 1/ δ , 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 T T T , with polylogarithmic dependence on 1 / δ 1/\delta 1/ δ .
Theorem C. Let H \mathcal{H} H be nonempty with finite Littlestone dimension d d d . For 0 < ε ≤ 1 0 < \varepsilon\le1 0 < ε ≤ 1 and 0 < δ < 1 / 10 0 < \delta< 1/10 0 < δ < 1/10 , there is an ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -jointly differentially private online predictor such that, on every fixed realisable stream of length T T T ,
E [ M T ] ≤ 2 2 c ( d + 1 ) 2 ε 2 log 2 2 ε δ , \mathbb{E}[M_T] \le\frac{2^{2^{c(d+1)^2}}}{\varepsilon^2}\log^2\frac{2}{\varepsilon\delta}, E [ M T ] ≤ ε 2 2 2 c ( d + 1 ) 2 log 2 ε δ 2 , where c > 0 c > 0 c > 0 is an absolute constant.
For every fixed class of finite Littlestone dimension d ≥ 2 d \ge2 d ≥ 2 , Theorems B and C separate private online learning from private online prediction. At fixed ε \varepsilon ε and δ = Θ ( 1 / log T ) \delta= \Theta(1/\log T) δ = Θ ( 1/ log T ) , the former requires Ω ( ( log T ) 2 / 3 ) \Omega((\log T)^{2/3}) Ω (( log T ) 2/3 ) expected mistakes on some stream, whereas the latter admits O ( ( log log T ) 2 ) O((\log\log T)^2) O (( log log T ) 2 ) expected mistakes on every realisable stream. The same separation also holds for POINT3 _3 3 by Theorem A .
Problem setting and preliminaries
Setting Let H ⊆ { 0 , 1 } X \mathcal{H} \subseteq\{0,1\}^{\mathcal{X}} H ⊆ { 0 , 1 } X be a nonempty binary hypothesis class and let T ≥ 1 T \ge1 T ≥ 1 be the time horizon. Write S r = ( x r , y r ) ∈ X × { 0 , 1 } S_r = (x_r,y_r) \in\mathcal{X} \times\{0,1\} S r = ( x r , y r ) ∈ X × { 0 , 1 } for the labelled example at round r r r , and S = ( S 1 , … , S T ) S = (S_1,\ldots,S_T) S = ( S 1 , … , S T ) for the input stream. The stream S S S 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' 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 , … , T r = 1,\ldots,T r = 1 , … , T :
The randomised learner A \mathcal{A} A releases a predictor h r : X → { 0 , 1 } h_r : \mathcal{X} \to\{0,1\} h r : X → { 0 , 1 } .
The learner observes ( x r , y r ) (x_r,y_r) ( x r , y r ) .
The predictors released by the learner need not belong to H \mathcal{H} H . We say the learner incurs a mistake when its prediction y ^ r = h r ( x r ) \hat{y}_r = h_r(x_r) y ^ r = h r ( x r ) is incorrect, i.e., when y ^ r ≠ y r \hat{y}_r \ne y_r y ^ r = y r .
Definition 2 (Differentially private online learning). Write A ( S ) = ( h 1 , … , h T ) \mathcal{A}(S) = (h_1,\ldots,h_T) A ( S ) = ( h 1 , … , h T ) for the learner’s complete output. For ε ≥ 0 \varepsilon\ge0 ε ≥ 0 and 0 ≤ δ < 1 0 \le\delta< 1 0 ≤ δ < 1 , the learner is ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -DP if, for every pair of neighbouring streams S , S ′ S,S' S , S ′ and every measurable output event E E E ,
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. P [ A ( S ) ∈ E ] ≤ e ε P [ A ( S ′ ) ∈ E ] + δ .
We next consider the slightly weaker online prediction model.
Definition 3 (Online prediction game). For each round r = 1 , … , T r = 1,\ldots,T r = 1 , … , T :
The predictor observes x r x_r x r and then releases a bit y ^ r \hat{y}_r y ^ r .
The predictor observes y r y_r y 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) Y ( S ) = ( y ^ 1 , … , y ^ T ) and write Y ^ − i ( S ) \widehat{Y}_{-i}(S) Y − i ( S ) for this vector with coordinate i i i removed. For ε ≥ 0 \varepsilon\ge0 ε ≥ 0 and 0 ≤ δ < 1 0 \le\delta< 1 0 ≤ δ < 1 , the predictor is ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -jointly differentially private if, for every i ∈ { 1 , … , T } i \in\{1,\ldots,T\} i ∈ { 1 , … , T } , every pair of streams S , S ′ S,S' S , S ′ agreeing outside round i i i , and every measurable output event E E E ,
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. P [ Y − i ( S ) ∈ E ] ≤ e ε P [ Y − i ( S ′ ) ∈ E ] + δ .
The stream is said to be realisable by H \mathcal{H} H if there is a single f ∈ H f \in\mathcal{H} f ∈ H such that f ( x r ) = y r f(x_r) = y_r f ( x r ) = y r for every r r r . In either model, the total number of mistakes is M T = ∑ r = 1 T 1 { y ^ r ≠ y r } M_T = \sum_{r=1}^{T} 1\{\hat{y}_r \ne y_r\} M T = ∑ r = 1 T 1 { y ^ r = y r } , where 1 { E } 1\{E\} 1 { E } is the indicator of an event E E E . On a fixed stream, the expectation E [ M T ] \mathbb{E}[M_T] E [ M T ] is computed over the algorithm’s randomness. We write d = Ldim ( H ) d = \operatorname{Ldim}(\mathcal{H}) d = Ldim ( H ) (see Definition 6) and call H \mathcal{H} H a Littlestone class when d < ∞ d < \infty d < ∞ . Our main lower bound argument uses the following simple class.
Definition 5 (Three-point class). On the instance space { 1 , 2 , 3 } \{1,2,3\} { 1 , 2 , 3 } , let
POINT 3 = { f 1 , f 2 , f 3 } , f j : { 1 , 2 , 3 } → { 0 , 1 } , f j ( 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\}. POINT 3 = { f 1 , f 2 , f 3 } , f j : { 1 , 2 , 3 } → { 0 , 1 } , f j ( x ) = 1 { x = j } . The class POINT 3 \operatorname{POINT}_3 POINT 3 has Littlestone dimension one: both labels are possible at each point, but prescribing label one leaves only one hypothesis. The hypotheses f 1 f_1 f 1 , f 2 f_2 f 2 agree at point 3 and disagree at point 1. In our arguments, we choose a bit B ∈ { 0 , 1 } B \in\{0,1\} B ∈ { 0 , 1 } uniformly, independently of the learner’s randomness. Then we denote ( 3 , 0 ) (3,0) ( 3 , 0 ) as the dummy example and ( 1 , B ) (1,B) ( 1 , B ) is the informative example . Every stream consisting of these two examples is realisable: f 1 f_1 f 1 realises it when B = 1 B=1 B = 1 , and f 2 f_2 f 2 when B = 0 B=0 B = 0 . Finally, all logarithms are natural unless another base is specified. Terms involving 1 / δ 1/\delta 1/ δ are interpreted as + ∞ +\infty + ∞ when δ = 0 \delta=0 δ = 0 . Constants hidden by O O O , Ω \Omega Ω , and Θ \Theta Θ are absolute unless stated otherwise.
Technical ideas
Lower bound for private online learning. For POINT3 _3 3 , earlier work [5 ] used the concentration assumption that the learner with high probability predicts the same label at point 1 in an all-dummy stream. Then, the adversary inserts informative examples with the opposite label, which causes the learner to incur mistakes whenever it outputs its preferred label. Privacy constrains how these insertions change the output distribution. This allows the adversary to place informative examples where mistakes are likely. Our goal is to force mistakes without this concentration assumption.
We instead sample a uniformly random bit B B B at the beginning and use it as the label for every informative example. On the dummy stream, the prediction at point 1 is independent of B B B , even if the predictions keep changing (i.e. no concentration or similar prior). Therefore, the first insertion of ( 1 , B ) (1,B) ( 1 , B ) causes a mistake with probability 1 / 2 1/2 1/2 because the hypothesis is released before the example arrives. However, this also reveals B B B to the learner. The main challenge is therefore to control how much the learner’s predictions reveal about B B B before subsequent informative examples. Writing Y r = h r ( 1 ) Y_r = h_r(1) Y r = h r ( 1 ) , we track Var ( E [ B ∣ Y 1 : r ] ) \operatorname{Var}(\mathbb{E}[B \mid Y_{1:r}]) Var ( E [ B ∣ Y 1 : r ]) , the variance of the posterior probability that B = 1 B = 1 B = 1 . This measures the mean squared deviation of the posterior probability of B = 1 B = 1 B = 1 from its prior value of 1 / 2 1/2 1/2 . If this variance can be kept small during rounds where informative examples are shown, then the learner is forced to err on a constant fraction of these examples in expectation.
We construct the entire stream of length T T T in L = log 3 T L = \log_3 T L = log 3 T recursive stages agnostic of the learning algorithm. At each stage, we choose a uniformly random third of the remaining interval. If we choose the middle third, we insert an informative example at a uniformly random position in the first third with probability p p p . We then recurse inside the chosen third. This gives L p / 3 Lp/3 L p /3 informative examples in expectation.
We compare an insertion in the first third, which may affect middle-third predictions, with a counterfactual insertion in the last third, which cannot affect those predictions. See Figure 2 for a visualisation of the construction and the effect of the counterfactual insertion. Here we track a second variance: how the effect of an informative point insertion on the output distribution varies with the location of the insertion. Our proof accounts for two competing effects. First, as mentioned above, we continue the recursion inside a uniformly chosen third. By standard variance decomposition, the average variance over insertion locations within that third equals the original variance minus the variance between thirds. We use this decrease to control the information revealed about B B B . Second, new insertions can add to the variance, but privacy limits this increase. Accounting for both effects over the recursion controls how well the released predictions can identify B B B before subsequent informative examples. The posterior variance Var ( E [ B ∣ Y 1 : r ] ) \operatorname{Var}(\mathbb{E}[B \mid Y_{1:r}]) Var ( E [ B ∣ Y 1 : r ]) before a possible informative insertion is at most O ( p 2 + L p 3 + L p δ ) O(p^2 + Lp^3 + Lp\delta) O ( p 2 + L p 3 + L p δ ) . Choosing p p p as a sufficiently small constant times min { L − 1 / 3 , 1 / ( L δ ) } \min\{L^{-1/3}, 1/(L\delta)\} min { L − 1/3 , 1/ ( L δ )} keeps this variance small and yields Ω ( L p ) = Ω ( min { ( log T ) 2 / 3 , 1 / δ } ) \Omega(Lp) = \Omega\left(\min\{(\log T)^{2/3}, 1/\delta\}\right) Ω ( L p ) = Ω ( min {( log T ) 2/3 , 1/ δ } ) expected mistakes. We extend the lower bound to general Littlestone classes by roughly applying the same construction at nodes along a path down a shattered tree (see Figure 3 ).
Figure 2. In (a), we recurse inside a uniformly chosen third. If we choose the middle third, we insert an informative example at a uniformly random position in the first third with probability p p p ; otherwise, we make no insertion. In (b), we compare this insertion with a counterfactual insertion in the last third. The first may affect the middle-third predictions (vertical marks), whereas the counterfactual insertion cannot, since those predictions are made before the example arrives.
Upper bound for private prediction. For private prediction, we first construct a short private sequence of predictors that, with high probability, contains at least one with few mistakes on the full stream. The first difficulty is to bound the number of bad predictors in this list even when the hypothesis class is infinite. Using the idea of essential hypotheses [12 ] , we create multiple short lists of predictors with the useful property that predictors can be added to these lists online using only earlier mistakes. We then use a private selection mechanism to choose a frequently appearing predictor among these lists. A contradiction argument (Lemma 3) then shows that the number of bad predictors is bounded independently of T T T .
The next challenge is to use these candidates privately online. Each candidate can be computed from the observed prefix once its predecessor has made enough mistakes. However, switching immediately to a new candidate can be privacy-violating. Unlike online learning, in online prediction, only the prediction at the current point is released. Thus, on dummy examples where the old and new predictors agree, the learner can switch its internal predictor while continuing to give the same answer that it would have given before the switch.
We use a private replacement mechanism based on the Mirror mechanism [4 ] with increasing delays before each switch to implement this in a private manner. The key property is that, while the latest available candidate has made few mistakes, later candidates cannot change the current predictions. Since these mistakes are precisely what is needed to compute the next candidate, we can ignore that candidate until enough mistakes are made or for the rest of the game if this never happens. The resulting online predictor has a mistake bound Q Q Q , independent of T T T , that holds with probability at least 1 − δ 1-\delta 1 − δ . However, this bound alone only guarantees Q + δ T Q+\delta T Q + δ T expected mistakes. We therefore need one additional step to get the bound in expectation. We combine our predictor with a subsampled SOA algorithm [5 ] , whose expected mistakes are O ( d / δ ) O(d/\delta) O ( d / δ ) . Intuitively, this algorithm runs a competition between the two predictors and guarantees that the combined predictor competes with the better one in expectation, up to a constant factor and an additive term independent of T T T (Lemma 13 ). This removes the remaining dependence on T T T .
Related work
Private online learnability for every class of finite Littlestone dimension was first shown in [6 ] . Against oblivious adversaries, their realisable mistake bound has logarithmic dependence on T T T for fixed privacy parameters, but doubly-exponential dependence on the Littlestone dimension d d d . More recently, [12 ] obtained the high-probability bound O ~ ( d 9.5 log T log ( 1 / δ ) / ε ) \widetilde{O}(d^{9.5}\log T\log(1/\delta)/\varepsilon) O ( d 9.5 log T log ( 1/ δ ) / ε ) , also against oblivious adversaries. On POINT3 _3 3 at fixed ε \varepsilon ε , they give O ~ ( log T log ( 1 / δ ) ) \widetilde{O}(\log T\log(1/\delta)) O ( log T log ( 1/ δ )) .
In contrast to oblivious adversaries, adaptive adversaries may choose examples using the learner’s previous outputs. In this setting, [11 ] gives a mistake bound O ( ( 2 2 O ( d ) ( log T + log ( 1 / δ ) ) ) / ε ) O((2^{2^{O(d)}}(\log T+\log(1/\delta)))/\varepsilon) O (( 2 2 O ( d ) ( log T + log ( 1/ δ ))) / ε ) . For POINT3 _3 3 at fixed ε \varepsilon ε , this is O ( log ( T / δ ) ) O(\log(T/\delta)) O ( log ( T / δ )) , and hence O ( log T ) O(\log T) O ( log T ) whenever δ ≥ T − a \delta\ge T^{-a} δ ≥ T − a for fixed a > 0 a>0 a > 0 . The same work also establishes sublinear regret for general Littlestone classes in the agnostic setting, where the labels need not be realisable. Our work does not consider the agnostic or the adaptive setting but rather focuses on the oblivious setting with realisable streams.
Recent works on lower bounds for private counting have also used similar techniques to obtain polylogarithmic lower bounds. [7 ] used the same variance decomposition and recursion, while [2 ] used a related argument to accumulate noise along a tree. The main difference in this regard between our work and theirs is the probability event to which these arguments are applied. Importantly, continual counting with ℓ ∞ \ell_\infty ℓ ∞ error is known to be related to our problem of online learning via a reduction from private counters to private online learners for point functions [5 , 4 ] . Thus, online-learning lower bounds imply counting lower bounds, with weaker parameters. The counting lower bounds do not, however, directly imply our online-learning lower bound.
Online prediction under joint differential privacy releases only the answer to the current query, and does not require this answer to hide the current example. For general Littlestone classes, [8 ] gives the mistake bound O ~ ( d 2 ε − 2 log 2 ( 1 / δ ) log 2 ( T / β ) ) \widetilde{O}(d^{2}\varepsilon^{-2}\log^{2}(1/\delta)\log^{2}(T/\beta)) O ( d 2 ε − 2 log 2 ( 1/ δ ) log 2 ( T / β )) with probability at least 1 − β 1-\beta 1 − β . Their result allows adaptive inputs and satisfies the stronger challenge-privacy definition of that work. Our guarantee concerns oblivious streams and joint privacy, and removes the dependence on T T T . For point functions on any domain, [4 ] gives O ( ε − 2 log 2 ( 1 / δ ) ) O(\varepsilon^{-2}\log^{2}(1/\delta)) O ( ε − 2 log 2 ( 1/ δ )) prediction mistakes, independently of the horizon T T T . However, their result does not apply to every hypothesis class with finite Littlestone dimension. To the best of our knowledge, our result is the first horizon-independent guarantee with polylogarithmic dependence on 1 / δ 1/\delta 1/ δ for every class of finite Littlestone dimension.
Lower Bounds for Online Learning
Lower bound for POINT
We first prove the lower bound for POINT3 _3 3 . Our strategy is to place informative examples at randomly chosen positions in the stream and show that the learner errs on a constant fraction of them in expectation.
Theorem 1. For ε = 1 / 100 \varepsilon= 1/100 ε = 1/100 , 0 ≤ δ ≤ 1 / 4 0 \le\delta\le1/4 0 ≤ δ ≤ 1/4 , and every ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -differentially private online learner of POINT3 _3 3 , there is a realisable stream of length T T T on which
E [ M T ] ≥ c min { ( log 2 T ) 2 / 3 , 1 δ } . \mathbb{E}[M_T] \ge c \min\left\{(\log2T)^{2/3}, \frac{1}{\delta}\right\}. E [ M T ] ≥ c min { ( log 2 T ) 2/3 , δ 1 } . where c > 0 c > 0 c > 0 is an absolute constant.
Proof of Theorem 1. For T = 1 , 2 T = 1, 2 T = 1 , 2 , use ( 1 , B ) (1,B) ( 1 , B ) at the first round, where B B B is a fair bit, and leave any remaining round dummy. The expected number of mistakes at the first round is 1 / 2 1/2 1/2 , so some fixed choice of B B B gives the claimed bound after decreasing c c c if necessary. We henceforth assume T ≥ 3 T \ge3 T ≥ 3 .
We first describe the adversary’s strategy for a parameter p ∈ ( 0 , 1 ] p \in(0,1] p ∈ ( 0 , 1 ] . The adversary initialises a stream of length T T T consisting entirely of dummy examples ( 3 , 0 ) (3,0) ( 3 , 0 ) and samples a bit B ∈ { 0 , 1 } B \in\{0,1\} B ∈ { 0 , 1 } uniformly at random. Then, starting from the dummy stream, the adversary proceeds in L = ⌊ log 3 T ⌋ L = \lfloor\log_3 T \rfloor L = ⌊ log 3 T ⌋ stages, starting with the interval A 0 = ( 0 , 3 L ] A_0 = (0,3^L] A 0 = ( 0 , 3 L ] and leaving all later rounds dummy. In each stage, the adversary partitions the remaining interval into three equal parts and chooses one of the thirds uniformly at random. If the middle third is chosen, then with probability p p p , the adversary replaces a uniformly chosen dummy example in the first third with an informative example ( 1 , B ) (1,B) ( 1 , B ) ; otherwise, it does nothing. The adversary then proceeds to the next stage by restricting to the chosen interval and repeating the process. See Figure 2 (a) for an illustration and Algorithm 1 for a formal description.
The expected number of informative examples in the stream is L p / 3 Lp/3 L p /3 . The online learner releases a hypothesis h r h_r h r at each round r ∈ { 1 , … , T } r \in\{1,\ldots,T\} r ∈ { 1 , … , T } ; let Y r = h r ( 1 ) Y_r = h_r(1) Y r = h r ( 1 ) .
For each t t t , consider running the online learner on the stream constructed by the adversary after the first t t t stages above with no subsequent insertions. Conditional on the adversary’s choices of thirds through stage t t t ,1 define V t ( r ) = E [ ( E [ 2 B − 1 ∣ Y 1 , … , Y r ] ) 2 ] V_t(r) = \mathbb{E}\left[\left(\mathbb{E}[2B-1 \mid Y_1,\ldots,Y_r]\right)^2\right] V t ( r ) = E [ ( E [ 2 B − 1 ∣ Y 1 , … , Y r ] ) 2 ] , with V t ( 0 ) = 0 V_t(0) = 0 V t ( 0 ) = 0 , to measure how much the learner’s outputs through round r r r reveal about B B B . Let A t = ( a t , b t ] A_t = (a_t,b_t] A t = ( a t , b t ] be the interval remaining after t t t stages, and define
I t = V t ( a t ) + 2 ( V t ( b t ) − V t ( a t ) ) . I_t = V_t(a_t) + 2\left(V_t(b_t)-V_t(a_t)\right). I t = V t ( a t ) + 2 ( V t ( b t ) − V t ( a t ) ) .
Here E [ I t ] \mathbb{E}[I_t] E [ I t ] averages over the adversary’s choices of thirds. The following lemma shows that, if E [ I t ] \mathbb{E}[I_t] E [ I t ] is small, the learner makes mistakes on a constant fraction of the informative examples inserted at stage t + 1 t+1 t + 1 , in expectation.
Lemma 1. The expected number of mistakes contributed by stage t + 1 t+1 t + 1 is at least p 6 ( 1 − E [ I t ] ) \frac{p}{6}\left(1-\sqrt{\mathbb{E}[I_t]}\right) 6 p ( 1 − E [ I t ] ) .
An immediate consequence of Lemma 1 is that, if E [ I t ] ≤ 1 / 4 \mathbb{E}[I_t] \le1/4 E [ I t ] ≤ 1/4 for every 0 ≤ t < L 0 \le t < L 0 ≤ t < L , the expected number of mistakes on informative examples is at least L p / 12 Lp/12 L p /12 . We next show that
E [ I t ] ≤ C ( p 2 + t p 3 + t p δ ) (1) \mathbb{E}[I_t] \le C\left(p^2 + tp^3 + tp\delta\right) \tag*{(1)} E [ I t ] ≤ C ( p 2 + t p 3 + tp δ ) (1)
for a universal constant C C C . Then, choosing p = c 0 min { L − 1 / 3 , 1 / ( δ L ) } p = c_0 \min\left\{L^{-1/3}, 1/(\delta L)\right\} p = c 0 min { L − 1/3 , 1/ ( δ L ) } for a sufficiently small c 0 > 0 c_0 > 0 c 0 > 0 ensures that E [ I t ] ≤ 1 / 4 \mathbb{E}[I_t] \le1/4 E [ I t ] ≤ 1/4 for every 0 ≤ t < L 0 \le t < L 0 ≤ t < L and
E [ M T ] ≥ L p 12 = Ω ( min { L 2 / 3 , 1 / δ } ) . \mathbb{E}[M_T] \ge\frac{Lp}{12} = \Omega\left(\min\left\{L^{2/3}, 1/\delta\right\}\right). E [ M T ] ≥ 12 L p = Ω ( min { L 2/3 , 1/ δ } ) .
It remains to prove (1).
So far, we have not used the fact that the online learner is differentially private. Fix the adversary’s choice of the thirds through stage t t t and b ∈ { 0 , 1 } b \in\{0,1\} b ∈ { 0 , 1 } . Let P ∅ b P_{\varnothing}^{b} P ∅ b denote the distribution of Y = ( Y 1 , … , Y T ) Y=(Y_1,\ldots,Y_T) Y = ( Y 1 , … , Y T ) , conditional on B = b B=b B = b , when the learner runs on the stream constructed through stage t t t , with no further insertions. For s ∈ A t s \in A_t s ∈ A t where A t : = ( a t , b t ] A_t := (a_t,b_t] A t := ( a t , b t ] , let P s b P_s^b P s b denote the corresponding distribution after additionally replacing the dummy example at round s s s with ( 1 , b ) (1,b) ( 1 , b ) , leaving all other entries unchanged. For each fixed realisation of the earlier insertions, the streams defining P ∅ b P_{\varnothing}^{b} P ∅ b and P s b P_s^b P s b differ only at round s s s . For every y y y with P ∅ b ( y ) > 0 P_{\varnothing}^{b}(y)>0 P ∅ b ( y ) > 0 , define ℓ s b ( y ) \ell_s^b(y) ℓ s b ( y ) to be P s b ( y ) / P ∅ b ( y ) P_s^b(y)/P_{\varnothing}^{b}(y) P s b ( y ) / P ∅ b ( y ) clipped to [ e − ε , e ε ] [e^{-\varepsilon},e^\varepsilon] [ e − ε , e ε ] . Differential privacy gives
∥ P s b − P ∅ b ℓ s b ∥ 1 ≤ 2 δ . \left\|P_s^b-P_{\varnothing}^{b}\ell_s^b\right\|_1 \le2\delta. P s b − P ∅ b ℓ s b 1 ≤ 2 δ .
We now define two quantities W t W_t W t and D t D_t D t to measure the variance of this ratio within one stage A t A_t A t and the difference between the average ratios of the first and last thirds of A t A_t A t , respectively:
W t = E [ Var s ∈ A t ( ℓ s B ) ] , D t = E [ ( ℓ ‾ A t 1 B − ℓ ‾ A t 3 B ) 2 ] . W_t=\mathbb{E}\left[\operatorname{Var}_{s\in A_t}(\ell_s^B)\right],\qquad
D_t=\mathbb{E}\left[\left(\overline{\ell}_{A_t^1}^{B}-\overline{\ell}_{A_t^3}^{B}\right)^2\right]. W t = E [ Var s ∈ A t ( ℓ s B ) ] , D t = E [ ( ℓ A t 1 B − ℓ A t 3 B ) 2 ] .
Here the expectation is over the joint distribution of ( B , Y ) (B,Y) ( B , Y ) and ℓ ‾ A t 1 B , ℓ ‾ A t 3 B \overline{\ell}_{A_t^1}^{B},\overline{\ell}_{A_t^3}^{B} ℓ A t 1 B , ℓ A t 3 B are the averages of ℓ s B \ell_s^B ℓ s B over s ∈ A t 1 s\in A_t^1 s ∈ A t 1 and s ∈ A t 3 s\in A_t^3 s ∈ A t 3 , respectively. Compare an insertion in the first third with a hypothetical insertion in the last third, as illustrated in Figure 2 (b). The latter cannot affect predictions in the middle third, since the learner has not yet received that example. The quantity D t D_t D t measures the squared difference between the effects of these two insertions.
Suppose the middle third is chosen, so b t + 1 b_{t+1} b t + 1 is its right endpoint. For any two round indices a t ≤ u ≤ v ≤ b t + 1 a_t \le u \le v \le b_{t+1} a t ≤ u ≤ v ≤ b t + 1 , comparing the reduction in the best expected squared error for estimating 2 B − 1 2B-1 2 B − 1 before and after the insertion gives
V t + 1 ( v ) − V t + 1 ( u ) ≤ 2 ( V t ( v ) − V t ( u ) ) + 8 p 2 D t + 16 p δ . V_{t+1}(v)-V_{t+1}(u) \le2\left(V_t(v)-V_t(u)\right)+8p^2D_t+16p\delta. V t + 1 ( v ) − V t + 1 ( u ) ≤ 2 ( V t ( v ) − V t ( u ) ) + 8 p 2 D t + 16 p δ .
Inserting with probability p p p multiplies the first-versus-last difference by p p p , giving p 2 D t p^2D_t p 2 D t after squaring. The p δ p\delta p δ term accounts for clipping. Averaging over the three choices and using the definition of I t I_t I t gives the first inequality in Lemma 2.
On the other hand, a large D t D_t D t means that a substantial part of the variance in W t W_t W t comes from the differences between the thirds. Restricting to within a third removes this between-third variation, and therefore reduces the variance within a third. Variance decomposition gives
1 3 ∑ j = 1 3 E [ Var s ∈ A t j ( ℓ s B ) ] ≤ W t − D t 6 . \frac{1}{3}\sum_{j=1}^{3}\mathbb{E}\left[\operatorname{Var}_{s\in A_t^j}(\ell_s^B)\right]\le W_t-\frac{D_t}{6}. 3 1 j = 1 ∑ 3 E [ Var s ∈ A t j ( ℓ s B ) ] ≤ W t − 6 D t .
We must also account for the possible insertion when the middle third is chosen. Using privacy again and convexity of variance, the increase is at most p p p times the variance of the ratios on the insertion branch, plus the clipping error δ \delta δ . These ratios lie in [ e − ε , e ε ] \left[e^{-\varepsilon},e^\varepsilon\right] [ e − ε , e ε ] , so their variance is at most ( e ε − e − ε ) 2 / 4 (e^\varepsilon-e^{-\varepsilon})^2/4 ( e ε − e − ε ) 2 /4 . Averaging over the three choices gives
E [ W t + 1 ∣ J ≤ t ] − 1 3 ∑ j = 1 3 E [ Var s ∈ A t j ( ℓ s B ) ] ≤ p 3 ⋅ ( e ε − e − ε ) 2 4 + δ 3 ≤ p + δ 3 . \mathbb{E}\left[W_{t+1}\mid J_{\le t}\right]-\frac{1}{3}\sum_{j=1}^{3}\mathbb{E}\left[\operatorname{Var}_{s\in A_t^j}(\ell_s^B)\right]\le\frac{p}{3}\cdot\frac{(e^\varepsilon-e^{-\varepsilon})^2}{4}+\frac{\delta}{3}\le\frac{p+\delta}{3}. E [ W t + 1 ∣ J ≤ t ] − 3 1 j = 1 ∑ 3 E [ Var s ∈ A t j ( ℓ s B ) ] ≤ 3 p ⋅ 4 ( e ε − e − ε ) 2 + 3 δ ≤ 3 p + δ .
where the last inequality uses ( e ε − e − ε ) 2 ≤ 4 (e^\varepsilon-e^{-\varepsilon})^2\le4 ( e ε − e − ε ) 2 ≤ 4 . Combining these bounds gives the second inequality in the following lemma. See the proof of Lemma 2 for the full details.
Lemma 2. For every 0 ≤ t < L 0\le t<L 0 ≤ t < L
E [ I t + 1 ∣ J ≤ t ] ≤ I t + 20 p 2 D t + 20 p δ (2) \mathbb{E}\left[I_{t+1}\mid J_{\le t}\right]\le I_t+20p^2D_t+20p\delta \tag*{(2)} E [ I t + 1 ∣ J ≤ t ] ≤ I t + 20 p 2 D t + 20 p δ (2) E [ W t + 1 ∣ J ≤ t ] ≤ W t − D t 6 + p + δ 3 . (3) \mathbb{E}\left[W_{t+1}\mid J_{\le t}\right]\le W_t-\frac{D_t}{6}+\frac{p+\delta}{3}. \tag*{(3)} E [ W t + 1 ∣ J ≤ t ] ≤ W t − 6 D t + 3 p + δ . (3) where J ≤ t J_{\le t} J ≤ t denotes the adversary's choices of thirds through stage t t t .
Now multiplying (3) above by 120 p 2 120p^2 120 p 2 , adding it to (2), and taking an expectation on both sides gives
E [ I t + 1 ] ≤ E [ I t ] + 120 p 2 ( E [ W t ] − E [ W t + 1 ] ) + 40 p 3 + 60 p δ \mathbb{E}[I_{t+1}]\le\mathbb{E}[I_t]+120p^2\left(\mathbb{E}[W_t]-\mathbb{E}[W_{t+1}]\right)+40p^3+60p\delta E [ I t + 1 ] ≤ E [ I t ] + 120 p 2 ( E [ W t ] − E [ W t + 1 ] ) + 40 p 3 + 60 p δ
Summing this inequality for t = 0 , … , m − 1 t=0,\ldots,m-1 t = 0 , … , m − 1 , where 1 ≤ m ≤ L 1\le m\le L 1 ≤ m ≤ L , and using I 0 = 0 I_0=0 I 0 = 0 , W 0 ≤ 1 W_0\le1 W 0 ≤ 1 , and W m ≥ 0 W_m\ge0 W m ≥ 0 , gives
E [ I m ] ≤ 120 p 2 + 40 m p 3 + 60 m p δ ≤ 120 ( p 2 + m p 3 + m p δ ) . \mathbb{E}[I_m]\le120p^2+40mp^3+60mp\delta\le120\left(p^2+mp^3+mp\delta\right). E [ I m ] ≤ 120 p 2 + 40 m p 3 + 60 m p δ ≤ 120 ( p 2 + m p 3 + m p δ ) .
This completes the proof of (1) with C = 120 C=120 C = 120 and hence of Theorem 1.
Lower bound for general Littlestone classes
We now extend the lower bound to general Littlestone classes. The main idea is to apply the two-label construction at successive nodes of a shattered tree, following [5 , 10 ] .
Theorem 2. Let H ⊆ { 0 , 1 } X \mathcal{H} \subseteq\{0,1\}^{\mathcal{X}} H ⊆ { 0 , 1 } X have finite Littlestone dimension d ≥ 2 d \ge2 d ≥ 2 , and let T ≥ 1 T \ge1 T ≥ 1 . Suppose that 0 < ε ≤ 1 0 < \varepsilon\le1 0 < ε ≤ 1 and 0 ≤ δ ≤ min { ε 2 , 1 / 4 } 0 \le\delta\le\min\{\varepsilon^2,1/4\} 0 ≤ δ ≤ min { ε 2 , 1/4 } . For every ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -differentially private online learner of H \mathcal{H} H , there is a deterministic realisable stream of length T T T on which
E [ M T ] ≥ c min { T , d ε [ log ( 2 + ε T d ) ] 2 / 3 , d δ } . \mathbb{E}[M_T] \ge c \min\left\{T,\frac{d}{\varepsilon}\left[\log\left(2+\frac{\varepsilon T}{d}\right)\right]^{2/3},\frac{d}{\delta}\right\}. E [ M T ] ≥ c min { T , ε d [ log ( 2 + d εT ) ] 2/3 , δ d } . where c > 0 c > 0 c > 0 is an absolute constant.
Proof sketch. We give the proof in the regime T ≥ ( d / ε ) 2 T \ge(d/\varepsilon)^2 T ≥ ( d / ε ) 2 , δ ≤ ε ( log T ) 2 / 3 \delta\le\frac{\varepsilon}{(\log T)^{2/3}} δ ≤ ( l o g T ) 2/3 ε . The full proof, covering all parameter ranges, is given in § 6 .
Take a depth-d d d tree shattered by H \mathcal{H} H and follow the zero (left) edge at its root x 0 x_0 x 0 . The remaining subtree has depth d − 1 d-1 d − 1 , and every hypothesis realising one of its paths agrees on ( x 0 , 0 ) (x_0,0) ( x 0 , 0 ) . We use this as the dummy example throughout. Divide the horizon into k = d − 1 k=d-1 k = d − 1 phases of length n = ⌊ T / k ⌋ n=\lfloor T/k\rfloor n = ⌊ T / k ⌋ , leaving any unused rounds dummy. See Figure 3 for an illustration.
We use the following consequence of § 2.1 ; see Lemma 5 for the extension to general ε \varepsilon ε . When n ≥ max { 2 , ε − 2 } n \ge\max\{2,\varepsilon^{-2}\} n ≥ max { 2 , ε − 2 } and δ ≤ ε / ( log n ) 2 / 3 \delta\le\varepsilon/(\log n)^{2/3} δ ≤ ε / ( log n ) 2/3 , for any informative point x ≠ x 0 x \ne x_0 x = x 0 , every ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -private online learner has a deterministic stream of length n n n consisting only of the dummy example and ( x , b ) (x,b) ( x , b ) for one fixed bit b b b , on which its expected mistakes on informative examples are at least
c 0 ε ( log n ) 2 / 3 . \frac{c_0}{\varepsilon}(\log n)^{2/3}. ε c 0 ( log n ) 2/3 .
Our choices of n n n and the parameter regime above satisfy these conditions. At the current node x x x , both labels are available. Fix the input from earlier phases and temporarily fill all later rounds with dummy examples. The original learner induces an ( ε , δ ) (\varepsilon, \delta) ( ε , δ ) -private learner on the current phase: replacing one example in the phase replaces only one example in the full stream. We fix only the input prefix and average over the learner’s randomness. Apply the preceding bound at x x x to choose a hard phase and its label b b b , then follow the edge labelled b b b . Repeat for all k k k phases. Figure 3 illustrates these phases along a path in the shattered tree.
The phases are chosen using the learner’s distribution, so the entire stream is fixed before the learner runs. Their labels follow one path in the shattered tree, making the stream realisable. Moreover, replacing the temporary dummy suffix with later phases cannot change earlier predictions. Adding the expected mistakes over the phases gives
E [ M T ] ≥ c 0 k ε ( log n ) 2 / 3 ≥ c 1 d ε ( log T ) 2 / 3 , \mathbb{E}[M_T] \ge\frac{c_0 k}{\varepsilon}(\log n)^{2/3} \ge\frac{c_1 d}{\varepsilon}(\log T)^{2/3}, E [ M T ] ≥ ε c 0 k ( log n ) 2/3 ≥ ε c 1 d ( log T ) 2/3 ,
where the last inequality uses k ≥ d / 2 k \ge d/2 k ≥ d /2 and n ≥ T n \ge\sqrt{T} n ≥ T . This implies the stated bound in the parameter regime considered.
Private predictor for Littlestone classes
Let H ⊆ { 0 , 1 } X \mathcal{H} \subseteq\{0,1\}^{\mathcal{X}} H ⊆ { 0 , 1 } X be nonempty with Littlestone dimension d < ∞ d < \infty d < ∞ . Fix 0 < ε ≤ 1 0 < \varepsilon\le1 0 < ε ≤ 1 and 0 < δ < 1 / 10 0 < \delta< 1/10 0 < δ < 1/10 . In this section, we consider the online prediction setting with joint DP, as described in § 1.1 . Let S = ( ( x t , y t ) ) t = 1 T S=((x_t,y_t))_{t=1}^{T} S = (( x t , y t ) ) t = 1 T be a fixed labelled stream and M ( U ; S 1 : r ) M(U;S_{1:r}) M ( U ; S 1 : r ) be the mistakes of a prediction sequence U U U on its first r r r rounds. Our main result of this section is the following.
Theorem 3. There is an ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -JDP online predictor satisfying
E [ M ( A ; S ) ] ≤ 2 2 c ( d + 1 ) 2 ε 2 log 2 2 ε δ \mathbb{E}[M(\mathcal{A};S)] \le\frac{2^{2^{c(d+1)^2}}}{\varepsilon^2}\log^2\frac{2}{\varepsilon\delta} E [ M ( A ; S )] ≤ ε 2 2 2 c ( d + 1 ) 2 log 2 ε δ 2 on every fixed realisable stream of any length, where c > 0 c > 0 c > 0 is an absolute constant.
Proof. If d = 0 d = 0 d = 0 , a fixed hypothesis in H \mathcal{H} H predicts without mistakes. Assume d ≥ 1 d \ge1 d ≥ 1 , and consider a realisable stream S S S .
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. In online prediction, only the prediction at the current point is released. Thus, on dummy examples where the old and new predictors agree, the learner can change its internal predictor while continuing to give the same answer. Changes in its predictions at informative points are not visible through these outputs. We use this freedom to delay the effect of a new candidate on the released predictions. Additionally, to bound the mistakes from these delays, we also need to bound how many candidates are used.
The proof proceeds in three steps. First, we construct a short private sequence of candidates containing one with few mistakes on the whole stream, with high probability. Both the length of the sequence and the mistake bound are independent of T T T . Each new candidate can be computed from a bounded number of mistakes of the preceding candidates.
Second, we use these candidates for private online prediction. Simply switching when a new candidate is computed may reveal when its predecessor made mistakes. Our replacement rule returns the common prediction when the old and new predictors agree, and privately delays the use of the new candidate on disagreement rounds. We choose the delays so that a candidate cannot affect the predictions before it can be computed. The resulting mistake bound depends on the number of candidates and the delays, both independent of T T T . In the third step, we convert this high-probability guarantee into an expected mistake bound.
Step 1: construct a private sequence containing a good candidate. We adapt the essential-hypothesis construction of [12 ] to obtain the following guarantee.
Lemma 3. The offline algorithm in Algorithm 2, run with privacy parameters ( ε / 4 , δ / 8 ) (\varepsilon/4,\delta/8) ( ε /4 , δ /8 ) and failure probability β = δ \beta=\delta β = δ , is ( ε / 4 , δ / 8 ) (\varepsilon/4,\delta/8) ( ε /4 , δ /8 ) -differentially private and returns binary functions h 0 , … , h N h_0,\ldots,h_N h 0 , … , h N . Then, on every fixed realisable stream,
P [ min 0 ≤ j ≤ N M ( h j ; S ) < K ] ≥ 1 − δ , \mathbb{P}\left[\min_{0\le j\le N} M(h_j;S)<K\right]\ge1-\delta, P [ 0 ≤ j ≤ N min M ( h j ; S ) < K ] ≥ 1 − δ , where h 0 h_0 h 0 is public and N , K N,K N , K are positive integers satisfying N ≤ 2 O ( d 2 ) N\le2^{O(d^2)} N ≤ 2 O ( d 2 ) , K ≤ 2 O ( d 2 ) ε log 2 ε δ K\le\frac{2^{O(d^2)}}{\varepsilon}\log\frac{2}{\varepsilon\delta} K ≤ ε 2 O ( d 2 ) log ε δ 2 .
We explain the construction and its mistake guarantee here, using the lemmas proved in § 7.1 . For a function h h h , let B K ( h , S ) B_K(h,S) B K ( h , S ) contain the first K K K labelled examples on which h h h makes a mistake, or all such examples if there are fewer. Call the batch full when it contains K K K records.
To compute h j + 1 h_{j+1} h j + 1 , the algorithm only needs B K ( h 0 , S ) , … , B K ( h j , S ) B_K(h_0,S),\ldots,B_K(h_j,S) B K ( h 0 , S ) , … , B K ( h j , S ) . Thus, once B K ( h j , S ) B_K(h_j,S) B K ( h j , S ) becomes full, we can compute the next candidate using the observed examples and the state from the preceding batches.
For a nonempty class G ⊆ H G\subseteq\mathcal{H} G ⊆ H and an integer p ≥ 1 p\ge1 p ≥ 1 , let C p ( G ) C_p(G) C p ( G ) be its set of essential hypotheses (Definition 9) and let ρ p ( G ) ∈ { 0 , … , d } \rho_p(G)\in\{0,\ldots,d\} ρ p ( G ) ∈ { 0 , … , d } be its decomposition dimension (Definition 8). These notions are due to [12 ] .
The important property is that each of these essential hypotheses agrees with some function in G G G on any given set of at most p p p instances and ∣ C p ( G ) ∣ ≤ p d 2 d 2 |C_p(G)|\le p^{d2^{d^2}} ∣ C p ( G ) ∣ ≤ p d 2 d 2 . The main property of decomposition dimension is that, if ∅ ≠ F ⊆ G \varnothing\ne F\subseteq G ∅ = F ⊆ G and p ′ ∈ { p , 2 p } p'\in\{p,2p\} p ′ ∈ { p , 2 p } , then ρ p ′ ( F ) ≤ ρ p ( G ) \rho_{p'}(F)\le\rho_p(G) ρ p ′ ( F ) ≤ ρ p ( G ) , and if equality holds, then C p ′ ( F ) ⊆ C p ( G ) C_{p'}(F)\subseteq C_p(G) C p ′ ( F ) ⊆ C p ( G ) . Thus restricting the class cannot increase its decomposition dimension, even when p p p is doubled, and if the dimension is unchanged, its essential hypotheses can only shrink.
With the parameters specified before Algorithm 2, the algorithm maintains k k k groups of labelled examples from S S S . Figure 4 illustrates how a mistake batch updates their stored samples and candidate lists. Starting with a public function h 0 h_0 h 0 , it constructs the next candidate h j h_j h j by forming the mistake batch B K ( h j − 1 , S ) B_K(h_{j-1},S) B K ( h j − 1 , S ) and assigning each example independently to a uniformly chosen group. Each group stores a uniformly chosen sample of up to n n n of the examples it receives, along with all its earlier samples. The stored samples define the class G i ⊆ H G_i\subseteq\mathcal{H} G i ⊆ H for group i i i : a hypothesis belongs to G i G_i G i if it makes at most a ℓ n a_\ell n a ℓ n mistakes on every stored sample, where a ℓ = 1 8 − ℓ 32 ( d + 1 ) a_\ell=\frac{1}{8}-\frac{\ell}{32(d+1)} a ℓ = 8 1 − 32 ( d + 1 ) ℓ , 0 ≤ ℓ ≤ d 0\le\ell\le d 0 ≤ ℓ ≤ d .
Figure 4. S i S_i S i collects group i i i ’s retained samples. Each mistake batch contributes one coloured oval (denoted A A A ) of ≤ n \le n ≤ n points. err A ( h ) \operatorname{err}_A(h) err A ( h ) is the mistake count on A A A , divided by n n n . The list C p ( G i ) C_p(G_i) C p ( G i ) contains the essential hypotheses of G i G_i G i .
The realising hypothesis remains in every G i G_i G i , so these classes are nonempty. Initially ℓ = 0 \ell=0 ℓ = 0 , and group i i i 's candidate list is C p ( G i ) C_p(G_i) C p ( G i ) . We select a hypothesis using the number of lists in which it appears. The highlighted copies of h j h_j h j in Figure 4 represent the same function appearing in different groups' lists. Changing one group's data can change its entire list, but changes each such count by at most one. A private sparse selection algorithm (Fact 3) uses these counts to choose a hypothesis appearing in many lists or return ⊥ \perp ⊥ .
If it returns a hypothesis, this becomes h j h_j h j . If it returns ⊥ \perp ⊥ and ℓ < d \ell<d ℓ < d , the algorithm increments ℓ \ell ℓ and retries using the same stored samples. Then, we show in Lemmas 6 and 7 that with probability at least 1 − δ 1-\delta 1 − δ , for every successfully selected function h j h_j h j , at least k / 2 k/2 k /2 groups contain h j h_j h j in their lists when it is selected and store full samples of n n n examples from every full mistake batch processed during the run.
Condition on this event and suppose, towards a contradiction, that every candidate makes at least K K K mistakes. Every batch is then full. On the same event, Lemma 9 ensures that the algorithm makes N N N successful selections whenever every mistake batch is full. Thus, under our assumption, it produces h 1 , … , h N h_1,\ldots,h_N h 1 , … , h N . We obtain a contradiction by counting the distinct pairs ( i , h ) (i,h) ( i , h ) for which h h h appears in group i i i ’s list at some point during the run. Denote their number by P P P .
Upper bound on P P P . Let s s s be the uniform upper bound on candidate-list sizes fixed by the algorithm’s parameters. The bound ∣ C p ( G ) ∣ ≤ p 2 d 2 |C_p(G)| \le p^{2d^2} ∣ C p ( G ) ∣ ≤ p 2 d 2 , together with the parameter choices before Algorithm 2, gives s = 2 O ( d 2 ) s = 2^{O(d^2)} s = 2 O ( d 2 ) . Consider one group and follow its candidate list as the algorithm runs. Using the properties of essential hypotheses and decomposition dimension, Lemma 8 shows that the group’s decomposition dimension cannot increase and, whenever it stays unchanged, the new candidate list is a subset of the previous list. Therefore, all functions appearing during a period of constant dimension already belong to its first list, and there can be at most s s s of them. New functions can enter only when the decomposition dimension decreases. Since this dimension starts at most d d d and never becomes negative, there are at most d d d decreases, and hence at most d + 1 d+1 d + 1 such periods. Therefore, at most ( d + 1 ) s (d+1)s ( d + 1 ) s distinct functions can appear in this group’s lists over the entire run. Summing over the k k k groups gives P ≤ k ( d + 1 ) s P \le k(d+1)s P ≤ k ( d + 1 ) s .
Lower bound on P P P . Consider one of the first N − 1 N-1 N − 1 selected functions, say h j h_j h j . The return arrow in Figure 4 represents its next batch, B K ( h j , S ) B_K(h_j,S) B K ( h j , S ) , consisting entirely of examples on which h j h_j h j is wrong. As established above, at least k / 2 k/2 k /2 groups whose lists contained h j h_j h j when it was selected store a full sample of n n n examples from this batch. This sample prevents h j h_j h j from ever appearing in any of those groups’ lists again. Indeed, suppose that h j h_j h j later belonged to C p ( G i ) C_p(G_i) C p ( G i ) for one such group. Since p p p is chosen to be at least n n n , the stated property of essential hypotheses gives a function g ∈ G i g \in G_i g ∈ G i agreeing with h j h_j h j on every instance in the stored sample. The function g g g would therefore make n n n mistakes on that sample, contradicting the requirement that it make at most a ℓ n < n a_\ell n < n a ℓ n < n mistakes. Because the sample is retained and the threshold can only decrease, this argument applies at every later stage. Each of the first N − 1 N-1 N − 1 selections thus removes at least k / 2 k/2 k /2 pairs counted in P P P , and no pair can be removed again at a later selection. Hence P ≥ ( N − 1 ) k / 2 P \ge(N-1)k/2 P ≥ ( N − 1 ) k /2 .
Combining the two bounds gives
( N − 1 ) k 2 ≤ P ≤ k ( d + 1 ) s , (N-1)\frac{k}{2} \le P \le k(d+1)s, ( N − 1 ) 2 k ≤ P ≤ k ( d + 1 ) s ,
which contradicts the choice N = 2 ( d + 1 ) s + 2 N = 2(d+1)s+2 N = 2 ( d + 1 ) s + 2 . Thus, with probability at least 1 − δ 1-\delta 1 − δ , some candidate makes fewer than K K K mistakes. The privacy guarantee along with specific parameter choices are proved in § 7.1 .
Step 2: using the candidates online. The candidates can be computed as their preceding mistake batches become full. However, the private candidate sequence does not protect the rounds when this happens. We therefore need a prediction rule in which a candidate cannot affect the output before the batches needed to compute it become full.
We use a private replacement algorithm Rep (Definition 10), based on the Mirror mechanism of [4 ] . Given two sequences of binary predictions U , V U,V U , V , it returns their common prediction whenever they agree. On disagreement rounds, it initially follows U U U . We test privately whether V V V is correct sufficiently often on the initial disagreements, and use Mirror to delay when an accepted candidate may affect the predictions.
Write W = Rep ( U , V , D ) W=\operatorname{Rep}(U,V,D) W = Rep ( U , V , D ) , where D D D controls the delay. Lemma 11 gives the following two properties with probability one:
(i) If V V V makes less than K K K mistakes on S 1 : r S_{1:r} S 1 : r , then W W W makes at most M ( W ; S 1 : r ) ≤ K + 2 D M(W;S_{1:r}) \leq K+2D M ( W ; S 1 : r ) ≤ K + 2 D .
(ii) If U U U made at most D / 4 D/4 D /4 mistakes before round t t t , then no replacement occurs and W t = U t W_t=U_t W t = U t .
The first property bounds the mistakes of the combined predictor when the new candidate is good. The second prevents a new candidate from changing the output while the preceding predictor has made few mistakes.
Choose D 0 > 4 K D_0>4K D 0 > 4 K and set D j = 9 j D 0 D_j=9^jD_0 D j = 9 j D 0 . First suppose that all candidates h 1 , … , h N h_1,\ldots,h_N h 1 , … , h N are available, and define A 0 = h 0 A_0=h_0 A 0 = h 0 and A j = Rep ( A j − 1 , h j , D j ) A_j=\operatorname{Rep}(A_{j-1},h_j,D_j) A j = Rep ( A j − 1 , h j , D j ) for 1 ≤ j ≤ N 1\leq j\leq N 1 ≤ j ≤ N . The difficulty is that computing the next candidate depends on mistakes of h j h_j h j , whereas replacement depends on mistakes of A j A_j A j . The first property connects these two mistake counts. The increasing delays then allow us to apply the second property and show that later candidates cannot change the predictions before they can be computed.
Computing the predictions online. Suppose 0 ≤ m < N 0\leq m<N 0 ≤ m < N where h m h_m h m has fewer than K K K mistakes before round t t t . The first property above gives M ( A m ; S 1 : s − 1 ) ≤ K + 2 D m M(A_m;S_{1:s-1})\leq K+2D_m M ( A m ; S 1 : s − 1 ) ≤ K + 2 D m for every s ≤ t s\leq t s ≤ t . Since D m ≥ D 0 ≥ 4 K D_m\geq D_0\geq4K D m ≥ D 0 ≥ 4 K , we have K + 2 D m ≤ D m / 4 + 2 D m = D m + 1 / 4 K+2D_m\leq D_m/4+2D_m=D_{m+1}/4 K + 2 D m ≤ D m /4 + 2 D m = D m + 1 /4 . The second property therefore shows that A m + 1 A_{m+1} A m + 1 has the same predictions as A m A_m A m on every round through t t t .
Their mistake counts are therefore equal until t t t . If m + 1 < N m+1<N m + 1 < N , then, for every s ≤ t s\leq t s ≤ t , M ( A m + 1 ; S 1 : s − 1 ) = M ( A m ; S 1 : s − 1 ) ≤ D m + 1 / 4 ≤ D m + 2 / 4 M(A_{m+1};S_{1:s-1})=M(A_m;S_{1:s-1})\leq D_{m+1}/4\leq D_{m+2}/4 M ( A m + 1 ; S 1 : s − 1 ) = M ( A m ; S 1 : s − 1 ) ≤ D m + 1 /4 ≤ D m + 2 /4 . Then using the second property again shows that A m + 2 A_{m+2} A m + 2 has the same predictions as A m + 1 A_{m+1} A m + 1 on every round through t t t . Repeating this argument shows that, whenever M ( h m ; S 1 : t − 1 ) < K M(h_m;S_{1:t-1})<K M ( h m ; S 1 : t − 1 ) < K , the predictors A m , … , A N A_m,\ldots,A_N A m , … , A N agree on every round through t t t . Algorithm 3 uses this agreement property to implement A N A_N A N online. It computes successive candidates as their preceding mistake batches become full and predicts using A m A_m A m , where h m h_m h m is the last candidate computed. We denote this online predictor by A A A .
Mistake bound for A A A By Lemma 3, with probability at least 1 − δ 1-\delta 1 − δ , some candidate h j h_j h j makes fewer than K K K mistakes on the whole stream. Using the first property, we then have that A j A_j A j makes at most K + 2 D j K+2D_j K + 2 D j mistakes. Since M ( h j ; S ) < K M(h_j;S)<K M ( h j ; S ) < K , using the above argument we have that A j , … , A N A_j,\ldots,A_N A j , … , A N predict identically on the whole stream. The online predictor A A A therefore makes at most B : = K + 2 ⋅ 9 N D 0 B:=K+2\cdot9^N D_0 B := K + 2 ⋅ 9 N D 0 mistakes. Substituting N ≤ 2 O ( d 2 ) N\leq2^{O(d^2)} N ≤ 2 O ( d 2 ) and K ≤ 2 O ( d 2 ) ε log 2 ε δ K\leq\frac{2^{O(d^2)}}{\varepsilon}\log\frac{2}{\varepsilon\delta} K ≤ ε 2 O ( d 2 ) log ε δ 2 from Lemma 3 into B B B , and using the replacement mechanism’s parameter choice, gives
P [ M ( A ; S ) ≤ B ] ≥ 1 − δ , B ≤ 2 2 O ( d 2 ) ε 2 log 2 2 ε δ . (4) \mathbb{P}\left[M(A;S)\leq B\right]\geq1-\delta,\qquad B\leq\frac{2^{2^{O(d^2)}}}{\varepsilon^2}\log^2\frac{2}{\varepsilon\delta}. \tag*{(4)} P [ M ( A ; S ) ≤ B ] ≥ 1 − δ , B ≤ ε 2 2 2 O ( d 2 ) log 2 ε δ 2 . (4)
The additional factor ε − 1 log ( 2 / ( ε δ ) ) \varepsilon^{-1}\log(2/(\varepsilon\delta)) ε − 1 log ( 2/ ( ε δ )) arises from the choice of D 0 D_0 D 0 used to obtain the replacement mechanism’s privacy and delay guarantees.
Privacy guarantee of A A A . We first analyse the predictor A N A_N A N defined using the entire candidate sequence. Lemma 3 gives an ( ε / 4 , δ / 8 ) (\varepsilon/4,\delta/8) ( ε /4 , δ /8 ) -differentially private candidate sequence. Each of the N N N replacement mechanisms is ( ε / ( 4 N ) , δ / ( 8 N ) ) (\varepsilon/(4N),\delta/(8N)) ( ε / ( 4 N ) , δ / ( 8 N )) -jointly differentially private on its input stream ( U t , V t , y t ) t = 1 T (U_t,V_t,y_t)_{t=1}^{T} ( U t , V t , y t ) t = 1 T . The composition argument in Lemma 12 therefore gives ( ε / 2 , δ / 4 ) (\varepsilon/2,\delta/4) ( ε /2 , δ /4 ) -joint differential privacy for A N A_N A N . The online predictor A A A has exactly the same predictions as A N A_N A N on every stream. Thus the same privacy guarantee holds for A A A , independently of the event used to prove the mistake bound.
Step 3: an expected mistake bound independent of T T T . The high-probability guarantee from Step 2 leaves an event of probability at most δ \delta δ on which A A A may make as many as T T T mistakes. It therefore only gives E M ( A ; S ) ≤ B + δ T \mathop{\mathrm{EM}}(A;S) \le B+\delta T EM ( A ; S ) ≤ B + δ T . We remove this dependence on T T T by combining A A A with another private predictor whose expected mistakes are bounded, albeit by a worse quantity.
This other predictor is the Name and Shame SOA algorithm of [5 ] , which we denote by F F F and run independently of A A A . It predicts using SOA on the examples retained so far and, after each prediction, retains the new labelled example with probability δ / 4 \delta/4 δ /4 . It is easy to see (Fact 5) that F F F is ( 0 , δ / 4 ) (0,\delta/4) ( 0 , δ /4 ) -jointly DP and satisfies E M ( F ; S ) ≤ 4 d / δ \mathop{\mathrm{EM}}(F;S) \le4d/\delta EM ( F ; S ) ≤ 4 d / δ .
Our second technical ingredient is a private comparison rule that combines the two predictors to get a best-of-both-worlds type mistake bound. The algorithm (Algorithm 4) returns their common prediction when they agree; otherwise, it favours the predictor that was correct on more of the previous disagreement rounds. Let C = Combine D ( A , F ) C=\operatorname{Combine}_D(A,F) C = Combine D ( A , F ) , where D = ⌈ C ε − 2 log ( 2 / δ ) ⌉ D=\lceil C\varepsilon^{-2}\log(2/\delta)\rceil D = ⌈ C ε − 2 log ( 2/ δ )⌉ for a sufficiently large absolute constant C C C . Lemma 13 shows E M ( C ; S ) ≤ 3 E min { M ( A ; S ) , M ( F ; S ) } + 2 D \mathop{\mathrm{EM}}(C;S) \le3\mathbb{E}\min\{M(A;S),M(F;S)\}+2D EM ( C ; S ) ≤ 3 E min { M ( A ; S ) , M ( F ; S )} + 2 D .
Let E = { M ( A ; S ) ≤ B } E=\{M(A;S)\le B\} E = { M ( A ; S ) ≤ B } . On E E E , the minimum in this bound is at most B B B ; on E c E^{\mathrm{c}} E c , it is at most M ( F ; S ) M(F;S) M ( F ; S ) . Since the stream is fixed and F F F runs independently of A A A , the event E E E is independent of M ( F ; S ) M(F;S) M ( F ; S ) . Therefore,
E M ( C ; S ) ≤ 3 B + 3 P ( E c ) E M ( F ; S ) + 2 D ≤ 3 B + 3 δ ⋅ 4 d δ + 2 D = 3 B + 12 d + 2 D . \mathop{\mathrm{EM}}(C;S) \le3B+3\mathbb{P}(E^{\mathrm{c}})\mathop{\mathrm{EM}}(F;S)+2D \le3B+3\delta\cdot\frac{4d}{\delta}+2D=3B+12d+2D. EM ( C ; S ) ≤ 3 B + 3 P ( E c ) EM ( F ; S ) + 2 D ≤ 3 B + 3 δ ⋅ δ 4 d + 2 D = 3 B + 12 d + 2 D .
Substituting the bound on B B B from Step 2 and our choice of D D D gives E M ( C ; S ) ≤ 2 2 c ( d + 1 ) 2 ε 2 log 2 2 ε δ \mathop{\mathrm{EM}}(C;S) \le\frac{2^{2^{c(d+1)^2}}}{\varepsilon^2}\log^2\frac{2}{\varepsilon\delta} EM ( C ; S ) ≤ ε 2 2 2 c ( d + 1 ) 2 log 2 ε δ 2 for an absolute constant c c c . Finally, Lemma 14 in § 7.3 proves that C C C is ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -jointly differentially private, completing the proof. □
Open problems and discussion
In this work, we proved two main results for Differentially Private Online Learning. The first result Theorem 2 shows a lower bound of Ω ( d log 2 / 3 T ) \Omega(d\log^{2/3}T) Ω ( d log 2/3 T ) for private online learning of a hypothesis class H \mathcal{H} H with d = Ldim ( H ) ≥ 2 d=\operatorname{Ldim}(\mathcal{H})\ge2 d = Ldim ( H ) ≥ 2 , for fixed 0 < ε ≤ 1 0<\varepsilon\le1 0 < ε ≤ 1 , δ = O ( 1 / log T ) \delta=O(1/\log T) δ = O ( 1/ log T ) , and sufficiently large T T T . The primary ingredient of this proof is a similar lower bound for the POINT 3 \operatorname{POINT}_3 POINT 3 class, which was left open in previous works [5 , 10 ] . This leaves several questions open. At δ = Θ ( 1 / log T ) \delta=\Theta(1/\log T) δ = Θ ( 1/ log T ) , the first is to close the gap between the O ( log T ) O(\log T) O ( log T ) upper bound [11 ] and our Ω ( ( log T ) 2 / 3 ) \Omega((\log T)^{2/3}) Ω (( log T ) 2/3 ) lower bound for fixed d , ε d,\varepsilon d , ε . Our lower bound construction is agnostic of the algorithm of the online learner unlike those of previous works [5 , 10 ] . One interesting direction is to see if the lower bound can be improved by using a construction that is adaptive to the algorithm of the online learner.
Our second result Theorem 3 shows an upper bound that is independent of T T T in the private prediction setting. In this work, we did not optimise the dependence on the Littlestone dimension. It is perhaps possible to achieve a dependence that is polynomial in the Littlestone dimension. Extension to the agnostic setting as well as learning under stochastic adversaries under smooth distributions is also an interesting direction for future work.
Proof of the lower bound for POINT
Theorem 1. For ε = 1 / 100 \varepsilon= 1/100 ε = 1/100 , 0 ≤ δ ≤ 1 / 4 0 \le\delta\le1/4 0 ≤ δ ≤ 1/4 , and every ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -differentially private online learner of POINT3 _3 3 , there is a realisable stream of length T T T on which
E [ M T ] ≥ c min { ( log ( 2 T ) ) 2 / 3 , 1 δ } . \mathbb{E}[M_T] \ge c\min\left\{(\log(2T))^{2/3},\frac{1}{\delta}\right\}. E [ M T ] ≥ c min { ( log ( 2 T ) ) 2/3 , δ 1 } . where c > 0 c > 0 c > 0 is an absolute constant.
We use the notation of Section 2.1: r r r indexes the learner’s rounds, t t t counts completed stages of the adversary, and Y r = h r ( 1 ) Y_r = h_r(1) Y r = h r ( 1 ) . Write Y ≤ r = ( Y 1 , … , Y r ) Y_{\le r} = (Y_1,\ldots,Y_r) Y ≤ r = ( Y 1 , … , Y r ) . Algorithm 1 below gives the construction when T T T is a power of three but the result easily extends to arbitrary T T T . Apply the construction to the first 3 L 3^L 3 L rounds, where L = ⌊ log 3 T ⌋ L = \lfloor\log_3 T\rfloor L = ⌊ log 3 T ⌋ , and leave the remaining rounds dummy.
Algorithm 1 Adversary for POINT₃
Require: $T \ge 3$ a power of three, $p \in (0,1]$.
1: Draw $B$ uniformly from $\{0,1\}$; set $S_r \leftarrow (3,0)$ for all $r$; set $A_0 \leftarrow (0,T]$ and $L \leftarrow \log_3 T$.
2: for $t = 0,\ldots,L-1$ do
3: Partition $A_t$ into three equal consecutive subintervals $A_t^1$, $A_t^2$, $A_t^3$.
4: Draw $J_{t+1}$ uniformly from $\{1,2,3\}$.
5: if $J_{t+1} = 2$ then
6: Draw a round $s$ uniformly from $A_t^1$.
7: With probability $p$, replace $S_s$ by $(1,B)$.
8: end if
9: Set $A_{t+1} \leftarrow A_t^{J_{t+1}}$.
10: end for
11: return $(S_1,\ldots,S_T)$.
Lemma 1. The expected number of mistakes contributed by stage t + 1 t+1 t + 1 is at least p 6 ( 1 − E [ I t ] ) \frac{p}{6}\left(1-\sqrt{\mathbb{E}[I_t]}\right) 6 p ( 1 − E [ I t ] ) .
Proof of Lemma 1. Fix J ≤ t J_{\le t} J ≤ t , and condition on an informative example being inserted at a round s ∈ A t 1 s \in A_t^1 s ∈ A t 1 at stage t + 1 t+1 t + 1 . The predictions through round s s s have the distribution used to define V t ( s ) V_t(s) V t ( s ) : the learner predicts before receiving the example at s s s , and every example inserted at a later stage occurs after s s s . Write m s = E [ 2 B − 1 ∣ Y ≤ s ] m_s = \mathbb{E}[2B-1 \mid Y_{\le s}] m s = E [ 2 B − 1 ∣ Y ≤ s ] . Given these predictions, the probability of incorrectly predicting B B B is at least ( 1 − ∣ m s ∣ ) / 2 (1-|m_s|)/2 ( 1 − ∣ m s ∣ ) /2 . Consequently,
P ( Y s ≠ B ) ≥ 1 − E ∣ m s ∣ 2 ≥ 1 − V t ( s ) 2 ≥ 1 − I t 2 . \mathbb{P}(Y_s \ne B) \ge\frac{1-\mathbb{E}|m_s|}{2} \ge\frac{1-\sqrt{V_t(s)}}{2} \ge\frac{1-\sqrt{I_t}}{2}. P ( Y s = B ) ≥ 2 1 − E ∣ m s ∣ ≥ 2 1 − V t ( s ) ≥ 2 1 − I t .
The last two inequalities use Cauchy–Schwarz and V t ( s ) ≤ V t ( b t ) ≤ I t V_t(s) \le V_t(b_t) \le I_t V t ( s ) ≤ V t ( b t ) ≤ I t . An informative example is inserted at this stage with probability p / 3 p/3 p /3 . Averaging over its location and over J ≤ t J_{\le t} J ≤ t , and using concavity of the square root, gives the desired bound:
p 6 ( 1 − E I t ) ≥ p 6 ( 1 − E I t ) . \frac{p}{6}\left(1-\mathbb{E}\sqrt{I_t}\right) \ge\frac{p}{6}\left(1-\sqrt{\mathbb{E}I_t}\right). 6 p ( 1 − E I t ) ≥ 6 p ( 1 − E I t ) .
Lemma 2. For every 0 ≤ t < L 0 \le t < L 0 ≤ t < L
E [ I t + 1 ∣ J ≤ t ] ≤ I t + 20 p 2 D t + 20 p δ . (5) \mathbb{E}[I_{t+1}\mid J_{\le t}] \le I_t + 20p^2D_t + 20p\delta. \tag*{(5)} E [ I t + 1 ∣ J ≤ t ] ≤ I t + 20 p 2 D t + 20 p δ . (5) E [ W t + 1 ∣ J ≤ t ] ≤ W t − D t 6 + p + δ 3 . (6) \mathbb{E}[W_{t+1}\mid J_{\le t}] \le W_t - \frac{D_t}{6} + \frac{p+\delta}{3}. \tag*{(6)} E [ W t + 1 ∣ J ≤ t ] ≤ W t − 6 D t + 3 p + δ . (6) where J ≤ t J_{\le t} J ≤ t denotes the adversary’s choices of thirds through stage t t t .
Proof of Lemma 2. Fix J ≤ t J \le t J ≤ t and write
A t = ( a t , b t ] , A t 1 = ( a t , c 1 ] , A t 2 = ( c 1 , c 2 ] , A t 3 = ( c 2 , b t ] . A_t=(a_t,b_t],\quad A_t^1=(a_t,c_1],\quad A_t^2=(c_1,c_2],\quad A_t^3=(c_2,b_t]. A t = ( a t , b t ] , A t 1 = ( a t , c 1 ] , A t 2 = ( c 1 , c 2 ] , A t 3 = ( c 2 , b t ] .
Recall the distributions P ∅ b P_{\varnothing}^b P ∅ b and P s b P_s^b P s b defined in § 2.1 . Let Q Q Q and Q s Q_s Q s be their joint distributions with the fair bit B B B , so Q ( B = b , Y = y ) = 1 2 P ∅ b ( y ) Q(B=b,Y=y)=\frac{1}{2}P_{\varnothing}^b(y) Q ( B = b , Y = y ) = 2 1 P ∅ b ( y ) and Q s ( B = b , Y = y ) = 1 2 P s b ( y ) Q_s(B=b,Y=y)=\frac{1}{2}P_s^b(y) Q s ( B = b , Y = y ) = 2 1 P s b ( y ) . For j ∈ { 1 , 2 , 3 } j\in\{1,2,3\} j ∈ { 1 , 2 , 3 } , let R j = ∣ A t j ∣ − 1 ∑ s ∈ A t j Q s R_j=|A_t^j|^{-1}\sum_{s\in A_t^j}Q_s R j = ∣ A t j ∣ − 1 ∑ s ∈ A t j Q s be the joint distribution after inserting an informative example at a uniformly chosen round in the j j j th third.
We first bound the error introduced by clipping the likelihood ratios. Conditional on B B B and the earlier insertions, adding an example at s s s changes one labelled example. Averaging the privacy inequalities over this randomness shows that they also hold for Q s Q_s Q s and Q Q Q . Clipping their ratio to [ e − ε , e ε ] [e^{-\varepsilon},e^\varepsilon] [ e − ε , e ε ] therefore gives
∥ Q s − Q s ℓ s B ∥ 1 ≤ 2 δ , \lVert Q_s-Q_s^{\ell_s^B}\rVert_1\le2\delta, ∥ Q s − Q s ℓ s B ∥ 1 ≤ 2 δ ,
∥ R j − Q ℓ ‾ A t j B ∥ 1 ≤ 2 δ . (7) \lVert R_j-Q^{\overline{\ell}_{A_t^j}^B}\rVert_1\le2\delta. \tag*{(7)} ∥ R j − Q ℓ A t j B ∥ 1 ≤ 2 δ . (7)
Here Q ℓ ‾ A t j B Q^{\overline{\ell}_{A_t^j}^B} Q ℓ A t j B denotes the measure with density ℓ ‾ A t j B \overline{\ell}_{A_t^j}^B ℓ A t j B relative to Q Q Q . Indeed, the mass above e ε Q e^\varepsilon Q e ε Q is at most δ \delta δ , and the deficit below e − ε Q e^{-\varepsilon}Q e − ε Q is at most e − ε δ e^{-\varepsilon}\delta e − ε δ . Throughout, using ε = 1 / 100 \varepsilon=1/100 ε = 1/100 gives ∣ ℓ s B − 1 ∣ ≤ 1 / 8 |\ell_s^B-1|\le1/8 ∣ ℓ s B − 1∣ ≤ 1/8 and e ε ≤ 5 / 4 e^\varepsilon\le5/4 e ε ≤ 5/4 .
Bounding the increase in I t I_t I t . Let V t + ( r ) V_t^+(r) V t + ( r ) be V t ( r ) V_t(r) V t ( r ) computed under P = ( 1 − p ) Q + p R 1 P=(1-p)Q+pR_1 P = ( 1 − p ) Q + p R 1 , the distribution when the middle third is chosen. We show that, for 0 ≤ u ≤ v ≤ c 2 0\le u\le v\le c_2 0 ≤ u ≤ v ≤ c 2 ,
V t + ( v ) − V t + ( u ) ≤ 2 ( V t ( v ) − V t ( u ) ) + 8 p 2 D t + 16 p δ . (8) V_t^+(v)-V_t^+(u)\le2\bigl(V_t(v)-V_t(u)\bigr)+8p^2D_t+16p\delta. \tag*{(8)} V t + ( v ) − V t + ( u ) ≤ 2 ( V t ( v ) − V t ( u ) ) + 8 p 2 D t + 16 p δ . (8)
The increment V t + ( v ) − V t + ( u ) V_t^+(v)-V_t^+(u) V t + ( v ) − V t + ( u ) is the reduction in the minimum expected squared error for estimating 2 B − 1 2B-1 2 B − 1 when we observe predictions through round v v v , rather than only through round u u u . Write
Z = 2 B − 1 , m r = E Q [ Z ∣ Y ≤ r ] , f = E P [ Z ∣ Y ≤ v ] , Z=2B-1,\qquad m_r=\mathbb{E}_Q[Z\mid Y_{\le r}],\qquad f=\mathbb{E}_P[Z\mid Y_{\le v}], Z = 2 B − 1 , m r = E Q [ Z ∣ Y ≤ r ] , f = E P [ Z ∣ Y ≤ v ] ,
choosing values in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] on histories of probability zero. Let H = ( Z − m u ) 2 − ( Z − f ) 2 H=(Z-m_u)^2-(Z-f)^2 H = ( Z − m u ) 2 − ( Z − f ) 2 be the improvement in squared error when we replace m u m_u m u by f f f . Since m u m_u m u is an available estimate at round u u u , while f f f is the best estimate at round v v v under P P P ,
V t + ( v ) − V t + ( u ) ≤ E P H . V_t^+(v)-V_t^+(u)\le\mathbb{E}_P H. V t + ( v ) − V t + ( u ) ≤ E P H .
We compare this improvement with the one under Q Q Q . An insertion in the last third cannot affect predictions through round v ≤ c 2 v\le c_2 v ≤ c 2 . Since H H H depends only on B B B and these predictions, E R 3 H = E Q H \mathbb{E}_{R_3}H=\mathbb{E}_QH E R 3 H = E Q H . Also, ∣ H ∣ ≤ 4 |H|\le4 ∣ H ∣ ≤ 4 , so applying (5) to R 1 R_1 R 1 and R 3 R_3 R 3 gives
E P H = E Q H + p ( E R 1 H − E R 3 H ) ≤ E Q H + p E Q [ ( ℓ ‾ A t 1 B − ℓ ‾ A t 3 B ) H ] + 16 p δ . \begin{aligned}
\mathbb{E}_P H=\mathbb{E}_QH+p\bigl(\mathbb{E}_{R_1}H-\mathbb{E}_{R_3}H\bigr) \\
&\le\mathbb{E}_QH+p\mathbb{E}_Q\left[\left(\overline{\ell}_{A_t^1}^B-\overline{\ell}_{A_t^3}^B\right)H\right]+16p\delta.
\end{aligned} E P H = E Q H + p ( E R 1 H − E R 3 H ) ≤ E Q H + p E Q [ ( ℓ A t 1 B − ℓ A t 3 B ) H ] + 16 p δ .
Each clipping bound contributes at most p ⋅ 4 ⋅ 2 δ p\cdot4\cdot2\delta p ⋅ 4 ⋅ 2 δ .
Moreover, ∣ H ∣ ≤ 4 ∣ f − m u ∣ |H|\le4|f-m_u| ∣ H ∣ ≤ 4∣ f − m u ∣ . Using 4 p ∣ a b ∣ ≤ 8 p 2 a 2 + b 2 / 2 4p|ab|\le8p^2a^2+b^2/2 4 p ∣ ab ∣ ≤ 8 p 2 a 2 + b 2 /2 and the definition of D t D_t D t , we get
p E Q [ ( ℓ ‾ A t 1 B − ℓ ‾ A t 3 B ) H ] ≤ 8 p 2 D t + 1 2 E Q [ ( f − m u ) 2 ] . p\mathbb{E}_Q\left[\left(\overline{\ell}_{A_t^1}^B-\overline{\ell}_{A_t^3}^B\right)H\right]\le8p^2D_t+\frac{1}{2}\mathbb{E}_Q\left[(f-m_u)^2\right]. p E Q [ ( ℓ A t 1 B − ℓ A t 3 B ) H ] ≤ 8 p 2 D t + 2 1 E Q [ ( f − m u ) 2 ] .
The last term is cancelled by the squared-error comparison under Q Q Q . Indeed, conditioning on Y ≤ v Y_{\le v} Y ≤ v and using 2 a b ≤ 2 a 2 + b 2 / 2 2ab\le2a^2+b^2/2 2 ab ≤ 2 a 2 + b 2 /2 gives
E Q H = E Q [ 2 ( m v − m u ) ( f − m u ) − ( f − m u ) 2 ] \mathbb{E}_QH=\mathbb{E}_Q\left[2(m_v-m_u)(f-m_u)-(f-m_u)^2\right] E Q H = E Q [ 2 ( m v − m u ) ( f − m u ) − ( f − m u ) 2 ]
≤ 2 E Q [ ( m v − m u ) 2 ] − 1 2 E Q [ ( f − m u ) 2 ] . \le2\mathbb{E}_Q\left[(m_v-m_u)^2\right]-\frac{1}{2}\mathbb{E}_Q\left[(f-m_u)^2\right]. ≤ 2 E Q [ ( m v − m u ) 2 ] − 2 1 E Q [ ( f − m u ) 2 ] .
Combining the bounds therefore yields
V t + ( v ) − V t + ( u ) ≤ 2 E Q [ ( m v − m u ) 2 ] + 8 p 2 D t + 16 p δ . V_t^+(v)-V_t^+(u)\le2\mathbb{E}_Q\left[(m_v-m_u)^2\right]+8p^2D_t+16p\delta. V t + ( v ) − V t + ( u ) ≤ 2 E Q [ ( m v − m u ) 2 ] + 8 p 2 D t + 16 p δ .
Since m r = E Q [ Z ∣ Y ≤ r ] m_r=\mathbb{E}_Q[Z\mid Y_{\le r}] m r = E Q [ Z ∣ Y ≤ r ] and m u m_u m u is determined by Y ≤ u Y_{\le u} Y ≤ u , for u ≤ v u\le v u ≤ v we have
E Q [ m v m u ] = E Q [ Z m u ] = E Q [ m u 2 ] . \mathbb{E}_Q[m_vm_u]=\mathbb{E}_Q[Zm_u]=\mathbb{E}_Q[m_u^2]. E Q [ m v m u ] = E Q [ Z m u ] = E Q [ m u 2 ] .
The first equality conditions on Y ≤ v Y_{\le v} Y ≤ v , and the second on Y ≤ u Y_{\le u} Y ≤ u . Expanding the square therefore gives
E Q [ ( m v − m u ) 2 ] = E Q [ m v 2 ] + E Q [ m u 2 ] − 2 E Q [ m v m u ] = E Q [ m v 2 ] − E Q [ m u 2 ] = V t ( v ) − V t ( u ) . \mathbb{E}_Q[(m_v-m_u)^2]=\mathbb{E}_Q[m_v^2]+\mathbb{E}_Q[m_u^2]-2\mathbb{E}_Q[m_vm_u]=\mathbb{E}_Q[m_v^2]-\mathbb{E}_Q[m_u^2]=V_t(v)-V_t(u). E Q [( m v − m u ) 2 ] = E Q [ m v 2 ] + E Q [ m u 2 ] − 2 E Q [ m v m u ] = E Q [ m v 2 ] − E Q [ m u 2 ] = V t ( v ) − V t ( u ) .
This proves (6).
Choosing the first or last third leaves the stream distribution unchanged. In the middle case, the insertion occurs after round a t a_t a t , so V t + ( a t ) = V t ( a t ) V_t^+(a_t)=V_t(a_t) V t + ( a t ) = V t ( a t ) , and
I t + 1 = V t ( a t ) + ( V t + ( c 1 ) − V t + ( a t ) ) + 2 ( V t + ( c 2 ) − V t + ( c 1 ) ) . I_{t+1}=V_t(a_t)+(V_t^+(c_1)-V_t^+(a_t))+2(V_t^+(c_2)-V_t^+(c_1)). I t + 1 = V t ( a t ) + ( V t + ( c 1 ) − V t + ( a t )) + 2 ( V t + ( c 2 ) − V t + ( c 1 )) .
Apply (6) to the increments across the first and middle thirds. Averaging this bound with I t + 1 = 2 V t ( c 1 ) − V t ( a t ) I_{t+1}=2V_t(c_1)-V_t(a_t) I t + 1 = 2 V t ( c 1 ) − V t ( a t ) in the first case and I t + 1 = 2 V t ( b t ) − V t ( c 2 ) I_{t+1}=2V_t(b_t)-V_t(c_2) I t + 1 = 2 V t ( b t ) − V t ( c 2 ) in the last case gives
E [ I t + 1 ∣ J ≤ t ] ≤ V t ( a t ) + 5 3 ( V t ( c 2 ) − V t ( a t ) ) + 2 3 ( V t ( b t ) − V t ( c 2 ) ) + 8 p 2 D t + 16 p δ ≤ I t + 8 p 2 D t + 16 p δ ≤ I t + 20 p 2 D t + 20 p δ . \begin{aligned}
\mathbb{E}[I_{t+1}\mid J_{\le t}]\le V_t(a_t)+\frac{5}{3}(V_t(c_2)-V_t(a_t))+\frac{2}{3}(V_t(b_t)-V_t(c_2))+8p^2D_t+16p\delta\\
&\le I_t+8p^2D_t+16p\delta\le I_t+20p^2D_t+20p\delta.
\end{aligned} E [ I t + 1 ∣ J ≤ t ] ≤ V t ( a t ) + 3 5 ( V t ( c 2 ) − V t ( a t )) + 3 2 ( V t ( b t ) − V t ( c 2 )) + 8 p 2 D t + 16 p δ ≤ I t + 8 p 2 D t + 16 p δ ≤ I t + 20 p 2 D t + 20 p δ .
The second inequality uses the nonnegativity of both increments and the definition of I t I_t I t .
Bounding the change in $W_t. For nonempty S ⊆ A t S\subseteq A_t S ⊆ A t , write W ( S ) = E Q [ Var s ∈ S ( ℓ s B ) ] W(S)=\mathbb{E}_Q[\operatorname{Var}_{s\in S}(\ell_s^B)] W ( S ) = E Q [ Var s ∈ S ( ℓ s B )] , so that W ( A t ) = W t W(A_t)=W_t W ( A t ) = W t . Let ℓ A t B \ell_{A_t}^B ℓ A t B denote the average over the whole interval. Variance decomposition across the three thirds gives
W t = 1 3 ∑ j = 1 3 W ( A t j ) + 1 3 ∑ j = 1 3 E Q [ ( ℓ A t j B − ℓ A t B ) 2 ] ≥ 1 3 ∑ j = 1 3 W ( A t j ) + D t 6 . W_t=\frac{1}{3}\sum_{j=1}^{3}W(A_t^j)+\frac{1}{3}\sum_{j=1}^{3}\mathbb{E}_Q[(\ell_{A_t^j}^B-\ell_{A_t}^B)^2]\ge\frac{1}{3}\sum_{j=1}^{3}W(A_t^j)+\frac{D_t}{6}. W t = 3 1 j = 1 ∑ 3 W ( A t j ) + 3 1 j = 1 ∑ 3 E Q [( ℓ A t j B − ℓ A t B ) 2 ] ≥ 3 1 j = 1 ∑ 3 W ( A t j ) + 6 D t .
The stream distribution stays the same when the first or last third is chosen. When the middle third is chosen, the possible insertion changes it to P P P . Let W + ( A t 2 ) W^+(A_t^2) W + ( A t 2 ) be the corresponding variance. We show that
W + ( A t 2 ) ≤ W ( A t 2 ) + p + δ . (9) W^+(A_t^2)\le W(A_t^2)+p+\delta. \tag*{(9)} W + ( A t 2 ) ≤ W ( A t 2 ) + p + δ . (9)
For s ∈ A t 2 s\in A_t^2 s ∈ A t 2 , let R 1 , s R_{1,s} R 1 , s be the distribution obtained from R 1 R_1 R 1 by additionally inserting ( 1 , B ) (1,B) ( 1 , B ) at s s s , and let ℓ s ⋆ \ell_s^\star ℓ s ⋆ be its ratio relative to R 1 R_1 R 1 , clipped to [ e − ε , e ε ] [e^{-\varepsilon},e^\varepsilon] [ e − ε , e ε ] . The comparison distribution relative to P P P is P s + = ( 1 − p ) Q s + p R 1 , s P_s^+=(1-p)Q_s+pR_{1,s} P s + = ( 1 − p ) Q s + p R 1 , s . Clipping each component ratio and then taking their mixture gives the ratio
u s = ( 1 − p ) Q ℓ s B + p R 1 ℓ s ⋆ P = ( 1 − θ ) ℓ s B + θ ℓ s ⋆ , u_s=\frac{(1-p)Q\ell_s^B+pR_1\ell_s^\star}{P}=(1-\theta)\ell_s^B+\theta\ell_s^\star, u s = P ( 1 − p ) Q ℓ s B + p R 1 ℓ s ⋆ = ( 1 − θ ) ℓ s B + θ ℓ s ⋆ ,
where θ = p R 1 P \theta=\frac{pR_1}{P} θ = P p R 1 . The weight θ \theta θ depends on B B B and the released predictions, but not on the candidate insertion round s s s . Convexity of variance therefore gives
E P [ Var s ∈ A t 2 ( u s ) ] ≤ ( 1 − p ) W ( A t 2 ) + p E R 1 [ Var s ∈ A t 2 ( ℓ s ⋆ ) ] ≤ W ( A t 2 ) + p . \mathbb{E}_P\left[\operatorname{Var}_{s\in A_t^2}(u_s)\right]\le(1-p)W(A_t^2)+p\mathbb{E}_{R_1}\left[\operatorname{Var}_{s\in A_t^2}(\ell_s^\star)\right]\le W(A_t^2)+p. E P [ Var s ∈ A t 2 ( u s ) ] ≤ ( 1 − p ) W ( A t 2 ) + p E R 1 [ Var s ∈ A t 2 ( ℓ s ⋆ ) ] ≤ W ( A t 2 ) + p .
The last inequality follows from the bounds on the clipped ratios. Let ℓ s + \ell_s^+ ℓ s + be the actual clipped ratio P s + / P P_s^+/P P s + / P . Applying (5) to both component comparisons gives ∥ P s + − P u s ∥ 1 ≤ 2 δ \lVert P_s^+-Pu_s\rVert_1\le2\delta ∥ P s + − P u s ∥ 1 ≤ 2 δ . Since u s u_s u s already lies in the clipping interval, projecting P s + / P P_s^+/P P s + / P onto that interval cannot increase its distance from u s u_s u s , so E P ∣ ℓ s + − u s ∣ ≤ 2 δ \mathbb{E}_P|\ell_s^+ - u_s| \le2\delta E P ∣ ℓ s + − u s ∣ ≤ 2 δ . For any two families u s , v s ∈ [ 7 / 8 , 9 / 8 ] u_s,v_s \in[7/8,9/8] u s , v s ∈ [ 7/8 , 9/8 ] ,
∣ Var s ( u s ) − Var s ( v s ) ∣ ≤ 1 2 E s ∣ u s − v s ∣ . \left|\operatorname{Var}_s(u_s)-\operatorname{Var}_s(v_s)\right| \le\frac{1}{2}\mathbb{E}_s|u_s-v_s|. ∣ Var s ( u s ) − Var s ( v s ) ∣ ≤ 2 1 E s ∣ u s − v s ∣.
Applying this inequality with v s = ℓ s + v_s=\ell_s^+ v s = ℓ s + , and averaging over P P P , proves (7). Combining the variance decomposition with (7) yields
E [ W t + 1 ∣ J ≤ t ] = W ( A t 1 ) + W + ( A t 2 ) + W ( A t 3 ) 3 ≤ W t − D t 6 + p + δ 3 . \mathbb{E}[W_{t+1}\mid J_{\le t}] = \frac{W(A_t^1)+W^+(A_t^2)+W(A_t^3)}{3} \le W_t-\frac{D_t}{6}+\frac{p+\delta}{3}. E [ W t + 1 ∣ J ≤ t ] = 3 W ( A t 1 ) + W + ( A t 2 ) + W ( A t 3 ) ≤ W t − 6 D t + 3 p + δ .
Proof of the lower bound for general Littlestone classes
Definition 6 (Littlestone dimension). Consider a complete binary tree whose internal nodes are labelled by points of X \mathcal{X} X , with the two edges leaving each node labelled zero and one. The tree is shattered by H \mathcal{H} H if every root-to-leaf path is realised by some f ∈ H f\in\mathcal{H} f ∈ H : at each node on the path, f f f assigns the label of the edge followed by that path. The depth is the number of internal nodes on each root-to-leaf path. The Littlestone dimension Ldim ( H ) \operatorname{Ldim}(\mathcal{H}) Ldim ( H ) is the largest depth of a tree shattered by H \mathcal{H} H , or infinity if such depths are unbounded.
Without privacy, a class of Littlestone dimension d d d admits a learner making at most d d d mistakes on every realisable stream [9 ] . In this section, we extend the informative-mistake bound of Theorem 1 to general ε \varepsilon ε and apply it at successive nodes of a shattered tree.
Lemma 4. Fix distinct points x 0 , x x_0,x x 0 , x , let N ≥ 1 N\ge1 N ≥ 1 , and suppose that 0 ≤ δ ′ ≤ 1 / 4 0\le\delta' \le1/4 0 ≤ δ ′ ≤ 1/4 . For every ( ε 0 , δ ′ ) (\varepsilon_0,\delta') ( ε 0 , δ ′ ) -private online learner, where ε 0 = 1 / 100 \varepsilon_0=1/100 ε 0 = 1/100 , there is a distribution over streams of length N N N consisting only of ( x 0 , 0 ) (x_0,0) ( x 0 , 0 ) and ( x , B ) (x,B) ( x , B ) , with B B B a fair bit. If K K K counts informative examples and X X X counts mistakes on those examples, then, writing μ = E K \mu=\mathbb{E}K μ = E K ,
a min { ( log ( 2 N ) ) 2 / 3 , 1 δ ′ } ≤ μ ≤ A min { ( log ( 2 N ) ) 2 / 3 , 1 δ ′ } , (10) a\min\left\{(\log(2N))^{2/3},\frac{1}{\delta'}\right\}\le\mu\le A\min\left\{(\log(2N))^{2/3},\frac{1}{\delta'}\right\}, \tag*{(10)} a min { ( log ( 2 N ) ) 2/3 , δ ′ 1 } ≤ μ ≤ A min { ( log ( 2 N ) ) 2/3 , δ ′ 1 } , (10) E X ≥ μ / 4 , \mathbb{E}X\ge\mu/4, E X ≥ μ /4 , where a , A > 0 a,A>0 a , A > 0 are absolute constants.
Proof. Use the construction from Section 2.1, with ( x 0 , 0 ) (x_0,0) ( x 0 , 0 ) as the dummy example and ( x , B ) (x,B) ( x , B ) as the informative example. For N ≥ 3 N\ge3 N ≥ 3 , set L = ⌊ log 3 N ⌋ L=\lfloor\log_3 N\rfloor L = ⌊ log 3 N ⌋ and apply Algorithm 1 to the first 3 L 3^L 3 L rounds, leaving the remaining rounds dummy. Choose p = a 0 min { L − 1 / 3 , 1 / ( δ ′ L ) } p=a_0\min\{L^{-1/3},1/(\delta'L)\} p = a 0 min { L − 1/3 , 1/ ( δ ′ L )} for a sufficiently small absolute constant a 0 > 0 a_0>0 a 0 > 0 . The proof of Theorem 1 gives E I t ≤ 1 / 4 \mathbb{E}I_t\le1/4 E I t ≤ 1/4 for every t < L t<L t < L . Thus μ = L p / 3 \mu=Lp/3 μ = L p /3 , and Lemma 1 gives E X ≥ L p / 12 = μ / 4 \mathbb{E}X\ge Lp/12=\mu/4 E X ≥ L p /12 = μ /4 . Comparing L L L with log ( 2 N ) \log(2N) log ( 2 N ) proves the bounds on μ \mu μ .
For N = 1 , 2 N=1,2 N = 1 , 2 , use one informative example with a fair label at the first round and fill any remaining round with the dummy example. Then μ = 1 \mu=1 μ = 1 and E X = 1 / 2 \mathbb{E}X=1/2 E X = 1/2 , giving the same bounds after adjusting the constants a , A a,A a , A .
We recall two properties of differential privacy under replacement adjacency.
Fact 1 (Group privacy). Let M \mathcal{M} M be ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -differentially private and let q ≥ 1 q\ge1 q ≥ 1 be an integer. If S , S ′ S,S' S , S ′ differ in at most q q q positions, then, for every measurable output event E E E ,
P [ M ( S ) ∈ E ] ≤ e ε q P [ M ( S ′ ) ∈ E ] + δ ∑ j = 0 q − 1 e j ε . \mathbb{P}[\mathcal{M}(S)\in E]\le e^{\varepsilon q}\mathbb{P}[\mathcal{M}(S')\in E]+\delta\sum_{j=0}^{q-1}e^{j\varepsilon}. P [ M ( S ) ∈ E ] ≤ e εq P [ M ( S ′ ) ∈ E ] + δ j = 0 ∑ q − 1 e j ε .
Proposition 1. Fix z ⋆ ∈ X × { 0 , 1 } z_\star\in\mathcal{X} \times\{0,1\} z ⋆ ∈ X × { 0 , 1 } and γ ∈ [ 0 , 1 ] \gamma\in[0,1] γ ∈ [ 0 , 1 ] . Given an ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -private online learner, independently retain each input example with probability γ \gamma γ and otherwise feed z ⋆ z_\star z ⋆ to the learner, without removing the round. Releasing the learner’s predictors gives a ( log ( 1 + γ ( e ε − 1 ) ) , γ δ ) (\log(1+\gamma(e^\varepsilon-1)),\gamma\delta) ( log ( 1 + γ ( e ε − 1 )) , γ δ ) -private online learner.
Proof. Fix neighbouring streams and all retention decisions except at the changed round. For an output event E E E , let a , b , u a,b,u a , b , u be its probabilities when that round contains the first stream’s example, the second stream’s example, or z ⋆ z_\star z ⋆ , respectively. Privacy gives a ≤ e ε min { b , u } + δ a \le e^\varepsilon\min\{b,u\}+\delta a ≤ e ε min { b , u } + δ . Since min { b , u } ≤ b \min\{b,u\}\le b min { b , u } ≤ b and min { b , u } ≤ ( 1 − γ ) u + γ b \min\{b,u\}\le(1-\gamma)u+\gamma b min { b , u } ≤ ( 1 − γ ) u + γ b , we obtain
( 1 − γ ) u + γ a ≤ [ 1 + γ ( e ε − 1 ) ] [ ( 1 − γ ) u + γ b ] + γ δ . (1-\gamma)u+\gamma a \le[1+\gamma(e^\varepsilon-1)]\bigl[(1-\gamma)u+\gamma b\bigr]+\gamma\delta. ( 1 − γ ) u + γ a ≤ [ 1 + γ ( e ε − 1 )] [ ( 1 − γ ) u + γ b ] + γ δ .
Averaging over the remaining retention decisions proves the claim.
Lemma 5. Fix distinct points x 0 , x x_0,x x 0 , x , let n ≥ 1 n\ge1 n ≥ 1 , and suppose that 0 < ε ≤ 1 0<\varepsilon\le1 0 < ε ≤ 1 and 0 ≤ δ ≤ min { ε 2 , 1 / 4 } 0\le\delta\le\min\{\varepsilon^2,1/4\} 0 ≤ δ ≤ min { ε 2 , 1/4 } . For every ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -private online learner, there are a bit b b b and a deterministic stream of length n n n consisting only of ( x 0 , 0 ) (x_0,0) ( x 0 , 0 ) and ( x , b ) (x,b) ( x , b ) such that the number X X X of mistakes on informative examples satisfies
E X ≥ c min { n , 1 ε [ log ( 2 + ε n ) ] 2 / 3 , 1 δ } . (11) \mathbb{E}X \ge c\min\left\{n,\frac{1}{\varepsilon}[\log(2+\varepsilon n)]^{2/3},\frac{1}{\delta}\right\}. \tag*{(11)} E X ≥ c min { n , ε 1 [ log ( 2 + ε n ) ] 2/3 , δ 1 } . (11) In particular, if n ≥ max { 2 , ε − 2 } n\ge\max\{2,\varepsilon^{-2}\} n ≥ max { 2 , ε − 2 } and δ ≤ ε / ( log n ) 2 / 3 \delta\le\varepsilon/(\log n)^{2/3} δ ≤ ε / ( log n ) 2/3 , then the same stream satisfies
E X ≥ c ′ ε ( log n ) 2 / 3 . (12) \mathbb{E}X \ge\frac{c'}{\varepsilon}(\log n)^{2/3}. \tag*{(12)} E X ≥ ε c ′ ( log n ) 2/3 . (12) Here c , c ′ > 0 c,c'>0 c , c ′ > 0 are absolute constants.
Proof. Write ε 0 = 1 / 100 \varepsilon_0=1/100 ε 0 = 1/100 and first suppose that ε ≤ ε 0 \varepsilon\le\varepsilon_0 ε ≤ ε 0 and n ≥ 1 / ε n\ge1/\varepsilon n ≥ 1/ ε . We replace each auxiliary example with q q q copies. Starting these copies at a uniformly chosen position lets us compare the mistakes on later copies with the auxiliary mistake at the first copy. Choose q = ⌊ ε 0 / ε ⌋ q=\lfloor\varepsilon_0/\varepsilon\rfloor q = ⌊ ε 0 / ε ⌋ , w = 16 q w=16q w = 16 q , N = ⌊ n 2 w ⌋ N=\left\lfloor\frac{n}{2w}\right\rfloor N = ⌊ 2 w n ⌋ . Each round of the auxiliary learner uses a block of 2 w 2w 2 w rounds of the original learner. Independently in each block, choose U U U uniformly from { 1 , … , w } \{1,\ldots,w\} { 1 , … , w } and feed dummy examples before position U U U . Release the original learner’s predictor at U U U as the auxiliary predictor. Then receive the auxiliary example and place q q q copies at positions U , … , U + q − 1 U,\ldots,U+q-1 U , … , U + q − 1 . All other positions in the block and any rounds after the N N N blocks are dummy.
For fixed offsets, replacing one auxiliary example changes at most q q q original examples. Group privacy gives ( ε 0 , δ q ) (\varepsilon_0,\delta_q) ( ε 0 , δ q ) -privacy, where
δ q = δ ∑ j = 0 q − 1 e j ε ≤ e ε 0 q δ ≤ e ε 0 ε 0 2 < 10 − 3 . \delta_q=\delta\sum_{j=0}^{q-1}e^{j\varepsilon}\le e^{\varepsilon_0}q\delta\le e^{\varepsilon_0}\varepsilon_0^2<10^{-3}. δ q = δ j = 0 ∑ q − 1 e j ε ≤ e ε 0 q δ ≤ e ε 0 ε 0 2 < 1 0 − 3 .
The same guarantee holds after averaging over the offsets. Apply Lemma 4 with δ ′ = δ q \delta'=\delta_q δ ′ = δ q , and let μ \mu μ be its expected informative count.
We next compare mistakes on the copies with the auxiliary mistake. Fix the preceding input and an informative label, and let α \alpha α be the auxiliary mistake probability. Since the prediction at U U U precedes the first copy, α \alpha α is also the mistake probability at a uniformly chosen position U U U when the whole block is dummy. For 0 ≤ j < q 0\le j<q 0 ≤ j < q , the windows { 1 , … , w } \{1,\ldots,w\} { 1 , … , w } and { 1 + j , … , w + j } \{1+j,\ldots,w+j\} { 1 + j , … , w + j } differ by j j j positions at each end. Since each error probability lies in [ 0 , 1 ] [0,1] [ 0 , 1 ] , shifting the window reduces its average by at most j / w j/w j / w . Group privacy therefore bounds the mistake probability on the copy at U + j U+j U + j , averaged over U U U , from below by
e − q ε ( α − j / w ) − δ q . e^{-q\varepsilon}(\alpha-j/w)-\delta_q. e − q ε ( α − j / w ) − δ q .
Summing over the copies and informative auxiliary examples, and using the auxiliary mistake bound μ / 4 \mu/4 μ /4 , gives
E X ≥ q μ [ e − ε 0 ( 1 4 − 1 32 ) − δ q ] ≥ q μ 5 . \mathbb{E}X \ge q\mu\left[e^{-\varepsilon_0}\left(\frac{1}{4}-\frac{1}{32}\right)-\delta_q\right]\ge\frac{q\mu}{5}. E X ≥ q μ [ e − ε 0 ( 4 1 − 32 1 ) − δ q ] ≥ 5 q μ .
where we used ( q − 1 ) / ( 2 w ) ≤ 1 / 32 (q-1)/(2w)\le1/32 ( q − 1 ) / ( 2 w ) ≤ 1/32 . Since q = Θ ( 1 / ε ) q=\Theta(1/\varepsilon) q = Θ ( 1/ ε ) and N = Θ ( ε n ) N=\Theta(\varepsilon n) N = Θ ( ε n ) , (8) and δ q ≤ e ε 0 q δ \delta_q\le e^{\varepsilon_0q}\delta δ q ≤ e ε 0 q δ give (9). For n < 1 / ε n<1/\varepsilon n < 1/ ε , repeat ( x , B ) (x,B) ( x , B ) for all n n n rounds, where B B B is a fair bit. Comparing with the all-dummy stream by group privacy, using n ε < 1 n\varepsilon<1 n ε < 1 and n δ ≤ ε 0 n\delta\le\varepsilon_0 n δ ≤ ε 0 , gives
E X ≥ n ( e − 1 / 2 − e ε 0 ) ≥ n / 8. \mathbb{E}X\ge n\left(e^{-1}/2-e\varepsilon_0\right)\ge n/8. E X ≥ n ( e − 1 /2 − e ε 0 ) ≥ n /8.
Averaging over B B B gives a deterministic stream. For ε 0 ≤ ε ≤ 1 \varepsilon_0\le\varepsilon\le1 ε 0 ≤ ε ≤ 1 , apply Proposition 1 with r = ( e ε 0 − 1 ) / ( e ε − 1 ) r=(e^{\varepsilon_0}-1)/(e^\varepsilon-1) r = ( e ε 0 − 1 ) / ( e ε − 1 ) . The auxiliary learner is ( ε 0 , r δ ) (\varepsilon_0,r\delta) ( ε 0 , r δ ) -private. As the prediction is done before deciding whether to retain, expected mistakes on retained informative examples equal r r r times the auxiliary informative mistakes. Lemma 4 therefore gives
E X = Ω ( min { r ( log ( 2 n ) ) 2 / 3 , 1 / δ } ) . \mathbb{E}X=\Omega\left(\min\left\{r(\log(2n))^{2/3},1/\delta\right\}\right). E X = Ω ( min { r ( log ( 2 n ) ) 2/3 , 1/ δ } ) .
Since r = Θ ( 1 / ε ) r=\Theta(1/\varepsilon) r = Θ ( 1/ ε ) on this range and log ( 2 + ε n ) ≤ 2 log ( 2 n ) \log(2+\varepsilon n)\le2\log(2n) log ( 2 + ε n ) ≤ 2 log ( 2 n ) , this proves (9).
All input choices can be made before running the original learner, and every resulting stream uses only the dummy example and informative examples with one fixed label. Averaging over these choices therefore gives a deterministic stream with the same lower bound on expected informative mistakes.
Finally, suppose that n ≥ max { 2 , ε − 2 } n\ge\max\{2,\varepsilon^{-2}\} n ≥ max { 2 , ε − 2 } and δ ≤ ε / ( log n ) 2 / 3 \delta\le\varepsilon/(\log n)^{2/3} δ ≤ ε / ( log n ) 2/3 . Then ε n ≥ n \varepsilon n\ge\sqrt n ε n ≥ n , so log ( 2 + ε n ) ≥ 1 2 log n \log(2+\varepsilon n)\ge\frac{1}{2}\log n log ( 2 + ε n ) ≥ 2 1 log n . Also, ( log n ) 2 / 3 ≤ n ≤ ε n (\log n)^{2/3}\le\sqrt n\le\varepsilon n ( log n ) 2/3 ≤ n ≤ ε n and 1 / δ ≥ ε − 1 ( log n ) 2 / 3 1/\delta\ge\varepsilon^{-1}(\log n)^{2/3} 1/ δ ≥ ε − 1 ( log n ) 2/3 . Thus each term in the minimum in (9) is at least 2 − 2 / 3 ε − 1 ( log n ) 2 / 3 2^{-2/3}\varepsilon^{-1}(\log n)^{2/3} 2 − 2/3 ε − 1 ( log n ) 2/3 , which proves (10). □
Theorem 2. Let H ⊆ { 0 , 1 } X \mathcal{H}\subseteq\{0,1\}^{\mathcal{X}} H ⊆ { 0 , 1 } X have finite Littlestone dimension d ≥ 2 d\ge2 d ≥ 2 , and let T ≥ 1 T\ge1 T ≥ 1 . Suppose that 0 < ε ≤ 1 0<\varepsilon\le1 0 < ε ≤ 1 and 0 ≤ δ ≤ min { ε 2 , 1 / 4 } 0\le\delta\le\min\{\varepsilon^2,1/4\} 0 ≤ δ ≤ min { ε 2 , 1/4 } . For every ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -differentially private online learner of H \mathcal{H} H , there is a deterministic realisable stream of length T T T on which
E [ M T ] ≥ c min { T , d ε [ log ( 2 + ε T d ) ] 2 / 3 , d δ } , \mathbb{E}[M_T]\ge c\min\left\{T,\frac{d}{\varepsilon}\left[\log\left(2+\frac{\varepsilon T}{d}\right)\right]^{2/3},\frac{d}{\delta}\right\}, E [ M T ] ≥ c min { T , ε d [ log ( 2 + d εT ) ] 2/3 , δ d } , where c > 0 c>0 c > 0 is an absolute constant.
Full proof of Theorem 2. Take a depth-d d d tree shattered by H \mathcal{H} H and follow the zero (left) edge at its root x 0 x_0 x 0 . The remaining subtree has depth d − 1 d-1 d − 1 , and is shattered by the hypotheses assigning label zero to x 0 x_0 x 0 . Use ( x 0 , 0 ) (x_0,0) ( x 0 , 0 ) as the dummy example throughout. Divide the horizon into k = min { d − 1 , T } k=\min\{d-1,T\} k = min { d − 1 , T } phases of length n = ⌊ T / k ⌋ n=\lfloor T/k\rfloor n = ⌊ T / k ⌋ , leaving any unused rounds dummy.
At the current node x ≠ x 0 x\ne x_0 x = x 0 , both labels are available. Fix the input from earlier phases and temporarily fill all later rounds with dummy examples. Restricting the original learner’s output to the current phase defines an ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -private learner on that phase: replacing one example in the phase replaces only one example in the full stream. We fix only the input prefix and average over the learner’s randomness. Apply Lemma 5 at x x x to choose a deterministic hard phase and its label b b b , then follow the edge labelled b b b . Repeat for all k k k phases. These choices use the learner’s distribution, so the entire stream is fixed before the learner runs. The labels follow one path in the shattered tree, making the stream realisable. Moreover, replacing the temporary dummy suffix with later phases cannot change earlier predictions. Adding the expected mistakes over the phases gives
E [ M T ] ≥ c 2 k min { n , 1 ε [ log ( 2 + ε n ) ] 2 / 3 , 1 δ } . \mathbb{E}[M_T] \ge c_2 k \min\left\{n,\frac{1}{\varepsilon}[\log(2+\varepsilon n)]^{2/3},\frac{1}{\delta}\right\}. E [ M T ] ≥ c 2 k min { n , ε 1 [ log ( 2 + ε n ) ] 2/3 , δ 1 } .
If T < d T<d T < d , then k = T k=T k = T and n = 1 n=1 n = 1 , giving the required Ω ( T ) \Omega(T) Ω ( T ) bound. Otherwise, k = d − 1 k=d-1 k = d − 1 , so
d 2 ≤ k ≤ d , T 2 k ≤ n ≤ T k . \frac{d}{2}\le k\le d,\qquad\frac{T}{2k}\le n\le\frac{T}{k}. 2 d ≤ k ≤ d , 2 k T ≤ n ≤ k T .
In particular, k n ≥ T / 2 kn\ge T/2 k n ≥ T /2 and k / δ ≥ d / ( 2 δ ) k/\delta\ge d/(2\delta) k / δ ≥ d / ( 2 δ ) . For the logarithmic term, n ≥ T / ( 2 d ) n\ge T/(2d) n ≥ T / ( 2 d ) gives log ( 2 + ε n ) ≥ 1 2 log ( 2 + ε T / d ) \log(2+\varepsilon n)\ge\frac{1}{2}\log(2+\varepsilon T/d) log ( 2 + ε n ) ≥ 2 1 log ( 2 + εT / d ) . Comparing the three terms proves the stated bound.
Proof of the private prediction bound
As in § 3 , let H \mathcal{H} H be nonempty with d = Ldim ( H ) < ∞ d=\operatorname{Ldim}(\mathcal{H})<\infty d = Ldim ( H ) < ∞ , and fix 0 < ε ≤ 1 0<\varepsilon\le1 0 < ε ≤ 1 and 0 < δ < 1 / 10 0<\delta<1/10 0 < δ < 1/10 .
Theorem 3. There is an ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -JDP online predictor satisfying
E [ M ( A ; S ) ] ≤ 2 2 c ( d + 1 ) 2 ε 2 log 2 2 ε δ \mathbb{E}[M(\mathcal{A};S)]\le\frac{2^{2^{c(d+1)^2}}}{\varepsilon^2}\log^2\frac{2}{\varepsilon\delta} E [ M ( A ; S )] ≤ ε 2 2 2 c ( d + 1 ) 2 log 2 ε δ 2 on every fixed realisable stream of any length, where c > 0 c>0 c > 0 is an absolute constant.
If d = 0 d=0 d = 0 , a fixed hypothesis in H \mathcal{H} H predicts without mistakes. For d ≥ 1 d\ge1 d ≥ 1 , we give the details of the three-step proof in § 3 .
Constructing a private candidate sequence
In this subsection, ε \varepsilon ε , δ \delta δ and β \beta β denote the privacy parameters and failure probability supplied to the offline algorithm. For Lemma 3, substitute ( ε / 4 , δ / 8 ) (\varepsilon/4,\delta/8) ( ε /4 , δ /8 ) for the privacy parameters and β = δ \beta=\delta β = δ . We assume d ≥ 1 d\ge1 d ≥ 1 , 0 < ε ≤ 1 0<\varepsilon\le1 0 < ε ≤ 1 , and 0 < δ , β < 1 / 10 0<\delta,\beta<1/10 0 < δ , β < 1/10 .
Recall that B K ( h , S ) B_K(h,S) B K ( h , S ) consists of the first K K K examples on which h h h makes a mistake, or all such examples if there are fewer than K K K .
B K ( h , S ) = { ( t , x t , y t ) : h ( x t ) ≠ y t , ∑ r = 1 t 1 { h ( x r ) ≠ y r } ≤ K } . B_K(h,S)=\left\{(t,x_t,y_t):h(x_t)\ne y_t,\ \sum_{r=1}^{t}\mathbf{1}\{h(x_r)\ne y_r\}\le K\right\}. B K ( h , S ) = { ( t , x t , y t ) : h ( x t ) = y t , r = 1 ∑ t 1 { h ( x r ) = y r } ≤ K } .
We recall irreducibility, decomposition dimension, and essential hypotheses from [12 Definitions 4.1–4.3] . Here, the ambient bound d = Ldim ( H ) d=\operatorname{Ldim}(\mathcal{H}) d = Ldim ( H ) is fixed and p ≥ 1 p\ge1 p ≥ 1 is an integer. For a sequence Q Q Q of labelled examples, let G ∣ Q G|_Q G ∣ Q denote the functions in G G G consistent with Q Q Q . Set Ldim ( ∅ ) = − 1 \operatorname{Ldim}(\varnothing)=-1 Ldim ( ∅ ) = − 1 and
SOA G ( x ) = { 0 , Ldim ( G ∣ ( x , 0 ) ) = Ldim ( G ) , 1 , otherwise . \operatorname{SOA}_G(x)=
\begin{cases}
0, & \operatorname{Ldim}(G|_{(x,0)})=\operatorname{Ldim}(G),\\
1, & \text{otherwise}.
\end{cases} SOA G ( x ) = { 0 , 1 , Ldim ( G ∣ ( x , 0 ) ) = Ldim ( G ) , otherwise .
Definition 7 (Irreducibility). A class G G G is k k k -irreducible if, for every x 1 , … , x k ∈ X x_1,\ldots,x_k\in\mathcal{X} x 1 , … , x k ∈ X ,
Ldim ( G | ( ( x j , SOA G ( x j ) ) ) j = 1 k ) = Ldim ( G ) . \operatorname{Ldim}\left(G\middle| \left((x_j,\operatorname{SOA}_G(x_j))\right)_{j=1}^{k}\right)=\operatorname{Ldim}(G). Ldim ( G ( ( x j , SOA G ( x j )) ) j = 1 k ) = Ldim ( G ) .
Definition 8 (Decomposition dimension). A decomposition tree for ∅ ≠ G ⊆ H \varnothing\ne G \subseteq\mathcal{H} ∅ = G ⊆ H is a finite binary tree whose internal nodes query instances and whose two outgoing edges are labelled zero and one. Let G v G_v G v contain the functions consistent with the path to node v v v , and write q v = Ldim ( G v ) q_v = \operatorname{Ldim}(G_v) q v = Ldim ( G v ) . The tree is ( p , d ) (p,d) ( p , d ) -valid if every node satisfies depth ( v ) ≤ p ( 2 d − q v + 1 − 1 ) \operatorname{depth}(v) \le p(2^{d-q_v+1}-1) depth ( v ) ≤ p ( 2 d − q v + 1 − 1 ) and every leaf also satisfies
depth ( v ) ≤ p ( 2 d − q v − 1 ) , G v is p 2 d − q v -irreducible . \operatorname{depth}(v) \le p(2^{d-q_v}-1), \qquad G_v\text{ is }p2^{d-q_v}\text{-irreducible}. depth ( v ) ≤ p ( 2 d − q v − 1 ) , G v is p 2 d − q v -irreducible . Define the decomposition dimension by
ρ p ( G ) = min T : ( p , d ) -valid max v ∈ Leaves ( T ) Ldim ( G v ) . \rho_p(G)=\min_{T:(p,d)\text{-valid}}\max_{v\in\operatorname{Leaves}(T)}\operatorname{Ldim}(G_v). ρ p ( G ) = T : ( p , d ) -valid min v ∈ Leaves ( T ) max Ldim ( G v ) . A tree attaining this minimum is optimal .
Definition 9 (Essential hypotheses). Let Opt p , d ( G ) \operatorname{Opt}_{p,d}(G) Opt p , d ( G ) be the optimal decomposition trees. The set of essential hypotheses is
C p ( G ) = ⋂ T ∈ Opt p , d ( G ) { SOA G v : v ∈ Leaves ( T ) , Ldim ( G v ) = ρ p ( G ) } . C_p(G)=\bigcap_{T\in\operatorname{Opt}_{p,d}(G)}\{\operatorname{SOA}_{G_v}:v\in\operatorname{Leaves}(T),\operatorname{Ldim}(G_v)=\rho_p(G)\}. C p ( G ) = T ∈ Opt p , d ( G ) ⋂ { SOA G v : v ∈ Leaves ( T ) , Ldim ( G v ) = ρ p ( G )} . Set C p ( ∅ ) = ∅ C_p(\varnothing)=\varnothing C p ( ∅ ) = ∅ .
We write ρ p ( G ) \rho_p(G) ρ p ( G ) for the decomposition dimension denoted by DDim p , d ( G ) \operatorname{DDim}_{p,d}(G) DDim p , d ( G ) in [12 ] . The following fact collects the properties used in § 3 ; see [12 Section 4] for details.
Fact 2. For each nonempty G ⊆ H G\subseteq\mathcal{H} G ⊆ H and integer p ≥ 1 p\ge1 p ≥ 1 , the essential hypotheses C p ( G ) C_p(G) C p ( G ) and decomposition dimension ρ p ( G ) ∈ { 0 , … , d } \rho_p(G)\in\{0,\ldots,d\} ρ p ( G ) ∈ { 0 , … , d } satisfy:
( P 1 ) (P1) ( P 1 ) ∣ C p ( G ) ∣ ≤ p d 2 d |C_p(G)|\le p^{d2^d} ∣ C p ( G ) ∣ ≤ p d 2 d .
( P 2 ) (P2) ( P 2 ) If h ∈ C p ( G ) h\in C_p(G) h ∈ C p ( G ) , then on any set of at most p p p instances, some g ∈ G g\in G g ∈ G agrees with h h h .
( P 3 ) (P3) ( P 3 ) If ∅ ≠ F ⊆ G \varnothing\ne F\subseteq G ∅ = F ⊆ G and p ′ ∈ { p , 2 p } p'\in\{p,2p\} p ′ ∈ { p , 2 p } , then ρ p ′ ( F ) ≤ ρ p ( G ) \rho_{p'}(F)\le\rho_p(G) ρ p ′ ( F ) ≤ ρ p ( G ) . Equality implies C p ′ ( F ) ⊆ C p ( G ) C_{p'}(F)\subseteq C_p(G) C p ′ ( F ) ⊆ C p ( G ) . Moreover, if ∅ ≠ F ⊆ ⋂ i G i \varnothing\ne F\subseteq\bigcap_i G_i ∅ = F ⊆ ⋂ i G i and ρ 2 p ( F ) = ρ p ( G i ) \rho_{2p}(F)=\rho_p(G_i) ρ 2 p ( F ) = ρ p ( G i ) for every i i i , then ⋂ i C p ( G i ) ≠ ∅ \bigcap_i C_p(G_i)\ne\varnothing ⋂ i C p ( G i ) = ∅ .
( P 4 ) (P4) ( P 4 ) If ρ p ( G ) = 0 \rho_p(G)=0 ρ p ( G ) = 0 , then G G G is finite and C p ( G ) = G C_p(G)=G C p ( G ) = G .
It is important to note that elements of C p ( G ) C_p(G) C p ( G ) need not belong to G G G . We also use the following private selection guarantee that follows from the private sparse sampling algorithm in [12 Lemma 3.1] .
Fact 3. Given k k k lists C 1 , … , C k C_1,\ldots,C_k C 1 , … , C k , each of size at most s s s , there is a mechanism Select a , b \operatorname{Select}_{a,b} Select a , b that is ( a , b ) (a,b) ( a , b ) -differentially private under replacement of one list. With probability at least 1 − β ′ 1-\beta' 1 − β ′ , its output satisfies both of the following:
A returned function belongs to at least 3 k / 5 3k/5 3 k /5 lists.
If some function belongs to at least 9 k / 10 9k/10 9 k /10 lists, the output is not ⊥ \bot ⊥ .
It suffices that k ≥ ( C / a ) log ( k ( s + 1 ) / ( β ′ b ) ) k\ge(C/a)\log(k(s+1)/(\beta' b)) k ≥ ( C / a ) log ( k ( s + 1 ) / ( β ′ b )) .
The algorithm for constructing the candidate sequence stores samples in k k k groups and uses their candidate lists. Let C 0 , C 1 C_0,C_1 C 0 , C 1 be sufficiently large absolute constants. Set
n = ⌈ C 0 ( d + 1 ) 6 ⌉ , s = ( 2 d 2 n ) d 2 d 2 , N = 2 ( d + 1 ) s + 2 , k = ⌈ C 1 N 2 ( n + ε − 1 ) log 100 N n ε δ β ⌉ , K = 2 k n , ε 0 = ε 8 N ( N + d + 1 ) , δ 0 = δ 8 e N ( N + d + 1 ) . \begin{aligned}
n&=\left\lceil C_0(d+1)^6\right\rceil,\qquad
s=\left(2^{d_2}n\right)^d2^{d^2},\qquad
N=2(d+1)s+2,\\
k&=\left\lceil C_1N^2\left(n+\varepsilon^{-1}\right)\log\frac{100Nn}{\varepsilon\delta\beta}\right\rceil,\qquad
K=2kn,\\
\varepsilon_0&=\frac{\varepsilon}{8N(N+d+1)},\qquad
\delta_0=\frac{\delta}{8eN(N+d+1)}.
\end{aligned} n k ε 0 = ⌈ C 0 ( d + 1 ) 6 ⌉ , s = ( 2 d 2 n ) d 2 d 2 , N = 2 ( d + 1 ) s + 2 , = ⌈ C 1 N 2 ( n + ε − 1 ) log ε δ β 100 N n ⌉ , K = 2 k n , = 8 N ( N + d + 1 ) ε , δ 0 = 8 e N ( N + d + 1 ) δ .
Here n n n is the sample size, s s s bounds each list size, and K K K is the mistake-batch size. Each selection call uses privacy parameters ( ε 0 , δ 0 ) (\varepsilon_0,\delta_0) ( ε 0 , δ 0 ) . At level 0 ≤ ℓ ≤ d 0 \le\ell\le d 0 ≤ ℓ ≤ d , use the error threshold a ℓ = 1 / 8 − ℓ / ( 32 ( d + 1 ) ) a_\ell= 1/8 - \ell/(32(d+1)) a ℓ = 1/8 − ℓ / ( 32 ( d + 1 )) and list parameter p ℓ = 2 ℓ n p_\ell= 2^\ell n p ℓ = 2 ℓ n . For a stored sample A A A and a full batch B B B , define
err A ( h ) = 1 n ∑ ( t , x , y ) ∈ A 1 { h ( x ) ≠ y } , err B ( h ) = 1 K ∑ ( t , x , y ) ∈ B 1 { h ( x ) ≠ y } . \operatorname{err}_A(h) = \frac{1}{n}\sum_{(t,x,y)\in A} \mathbf{1}\{h(x) \ne y\}, \qquad\operatorname{err}_B(h) = \frac{1}{K}\sum_{(t,x,y)\in B} \mathbf{1}\{h(x) \ne y\}. err A ( h ) = n 1 ( t , x , y ) ∈ A ∑ 1 { h ( x ) = y } , err B ( h ) = K 1 ( t , x , y ) ∈ B ∑ 1 { h ( x ) = y } .
The sample error is divided by n n n even when A A A has fewer than n n n records. Fix a public function h 0 h_0 h 0 . Let S i S_i S i collect the samples retained by group i i i , and write
G i ℓ = { h ∈ H : err A ( h ) ≤ a ℓ for every A ∈ S i } . G_i^\ell= \{h \in\mathcal{H} : \operatorname{err}_A(h) \le a_\ell\text{ for every } A \in S_i\}. G i ℓ = { h ∈ H : err A ( h ) ≤ a ℓ for every A ∈ S i } .
These classes are defined using the current sample collections. The counter ℓ \ell ℓ records the total number of unsuccessful selections and is not reset between batches. Each batch uses fresh assignment and sampling randomness.
Algorithm 2 A private sequence of candidates
Require: The complete stream S S S .
Ensure: Functions h 0 , … , h N h_0,\ldots,h_N h 0 , … , h N .
ℓ ← 0 \ell\leftarrow0 ℓ ← 0 ; S i ← ∅ S_i \leftarrow\varnothing S i ← ∅ for each i ∈ [ k ] i \in[k] i ∈ [ k ] .
for j = 1 , … , N j = 1,\ldots,N j = 1 , … , N do
B j ← B K ( h j − 1 , S ) B_j \leftarrow B_K(h_{j-1},S) B j ← B K ( h j − 1 , S ) .
Assign each record of B j B_j B j independently and uniformly to a group, obtaining B j , 1 , … , B j , k B_{j,1},\ldots,B_{j,k} B j , 1 , … , B j , k .
For each i i i , append a uniform min { n , ∣ B j , i ∣ } \min\{n,|B_{j,i}|\} min { n , ∣ B j , i ∣ } -subset of B j , i B_{j,i} B j , i to S i S_i S i .
loop
z ← Select ε 0 , δ 0 ( C p ℓ ( G 1 ℓ ) , … , C p ℓ ( G k ℓ ) ) z \leftarrow\operatorname{Select}_{\varepsilon_0,\delta_0}(C_{p_\ell}(G_1^\ell),\ldots,C_{p_\ell}(G_k^\ell)) z ← Select ε 0 , δ 0 ( C p ℓ ( G 1 ℓ ) , … , C p ℓ ( G k ℓ )) .
if z ≠ ⊥ z \ne\bot z = ⊥ then h j ← z h_j \leftarrow z h j ← z ; exit the loop.
if ℓ = d \ell= d ℓ = d then return ( h 0 , … , h j − 1 ) (h_0,\ldots,h_{j-1}) ( h 0 , … , h j − 1 ) , padded with h 0 h_0 h 0 to length N + 1 N+1 N + 1 .
ℓ ← ℓ + 1 \ell\leftarrow\ell+ 1 ℓ ← ℓ + 1 .
return h 0 , … , h N h_0,\ldots,h_N h 0 , … , h N .
On a realisable stream, the realising hypothesis belongs to every G i ℓ G_i^\ell G i ℓ , so these classes are nonempty. There are at most N + d + 1 N+d+1 N + d + 1 calls to Select: at most N N N succeed, while each failure increases ℓ \ell ℓ or stops the algorithm when ℓ = d \ell=d ℓ = d .
Lemma 6. With probability at least 1 − β / 2 1-\beta/2 1 − β /2 , there is one set I ⊆ [ k ] I \subseteq[k] I ⊆ [ k ] , with ∣ I ∣ ≥ 0.99 k |I| \ge0.99k ∣ I ∣ ≥ 0.99 k , such that the following holds for every full batch B j B_j B j . Every group i ∈ I i \in I i ∈ I receives at least n n n records, and its stored sample A A A satisfies
sup h ∈ H ∣ err A ( h ) − err B j ( h ) ∣ ≤ 1 64 ( d + 1 ) . \sup_{h\in\mathcal{H}}\left|\operatorname{err}_A(h)-\operatorname{err}_{B_j}(h)\right| \le\frac{1}{64(d+1)}. h ∈ H sup err A ( h ) − err B j ( h ) ≤ 64 ( d + 1 ) 1 .
Proof of Lemma 6. Condition on the past before a full batch B j B_j B j is processed. Call a group unsuccessful for B j B_j B j if it receives fewer than n n n records or its stored sample fails the error bound in the lemma. A group receives 2 n 2n 2 n records in expectation. Conditional on receiving at least n n n , its stored sample is a uniformly chosen n n n -element subset of B j B_j B j . Since VC ( H ) ≤ d \operatorname{VC}(\mathcal{H}) \le d VC ( H ) ≤ d , a Chernoff bound and uniform convergence for sampling without replacement bound the probability that a group is unsuccessful by 1 / ( 1000 N ) 1/(1000N) 1/ ( 1000 N ) , provided
n ≥ C ( d + 1 ) 2 ( d log ( d + 1 ) + log ( 1000 N ) ) . n \ge C(d+1)^2\bigl(d\log(d+1)+\log(1000N)\bigr). n ≥ C ( d + 1 ) 2 ( d log ( d + 1 ) + log ( 1000 N ) ) .
Our choice of n n n satisfies this inequality. Let Z j Z_j Z j count the unsuccessful groups, so E [ Z j ∣ p a s t ] ≤ k / ( 1000 N ) \mathbb{E}[Z_j \mid\mathrm{past}] \le k/(1000N) E [ Z j ∣ past ] ≤ k / ( 1000 N ) . To bound Z j Z_j Z j , use the following equivalent sampling rule. Give each record an independent uniform random number in [ 0 , 1 ] [0,1] [ 0 , 1 ] , and retain the n n n smallest numbers within each group. Changing one record’s assignment or random number changes Z j Z_j Z j by at most two. Bounded differences over the K = 2 k n K=2kn K = 2 k n independent record choices gives
P [ Z j > k 100 N | p a s t ] ≤ exp ( − c k N 2 n ) ≤ β 2 N . \mathbb{P}\left[Z_j > \frac{k}{100N} \,\middle|\, \mathrm{past}\right] \le\exp\left(-\frac{ck}{N^2n}\right) \le\frac{\beta}{2N}. P [ Z j > 100 N k past ] ≤ exp ( − N 2 n c k ) ≤ 2 N β .
where the last inequality follows from the choice of k k k .
A union bound over at most N N N batches shows that, with probability at least 1 − β / 2 1-\beta/2 1 − β /2 , every full batch has at most k / ( 100 N ) k/(100N) k / ( 100 N ) unsuccessful groups. Let I I I contain the groups that are successful in every full batch. Then ∣ I ∣ ≥ 0.99 k |I| \ge0.99k ∣ I ∣ ≥ 0.99 k .
Lemma 7. With probability at least 1 − β / 2 1-\beta/2 1 − β /2 , every call to Select in Algorithm 2 satisfies the following: a returned function belongs to at least 3 k / 5 3k/5 3 k /5 input lists, and if the output is ⊥ \bot ⊥ , no function belongs to 9 k / 10 9k/10 9 k /10 input lists.
Proof of Lemma 7. Every input list has size at most s s s , because ℓ ≤ d \ell\le d ℓ ≤ d . Apply Fact 3 to each call with failure probability β / ( 2 ( N + d + 1 ) ) \beta/(2(N+d+1)) β / ( 2 ( N + d + 1 )) . Its required inequality is
k ≥ C ε 0 log 2 k ( s + 1 ) ( N + d + 1 ) β δ 0 , k \ge\frac{C}{\varepsilon_0}\log\frac{2k(s+1)(N+d+1)}{\beta\delta_0}, k ≥ ε 0 C log β δ 0 2 k ( s + 1 ) ( N + d + 1 ) ,
which holds for sufficiently large C 1 C_1 C 1 .
Apply the guarantee conditional on the preceding calls. A union bound over at most N + d + 1 N+d+1 N + d + 1 calls proves the lemma.
Lemma 8. On every realisable stream and for every run of Algorithm 2, each group’s decomposition dimension is nonincreasing. If it is unchanged between two consecutive list constructions, the new list is contained in the previous list. Every list has size at most s s s .
Proof of Lemma 8. Each update replaces a group’s class by a nonempty subclass and either preserves or doubles p ℓ p_\ell p ℓ . The comparison property in Fact 2 therefore shows that the decomposition dimension cannot increase. When it is unchanged, the new list is contained in the previous one. Since p ℓ ≤ 2 d n p_\ell\le2^dn p ℓ ≤ 2 d n , the size bound in the same fact gives ∣ C p ℓ ( G i ℓ ) ∣ ≤ p ℓ 2 d 2 ≤ s |C_{p_\ell}(G_i^\ell)| \le p_\ell2^{d^2} \le s ∣ C p ℓ ( G i ℓ ) ∣ ≤ p ℓ 2 d 2 ≤ s .
Lemma 9. Fix a realisable stream and random choices for which both guarantees in Lemmas 6 and 7 hold. If every batch processed by Algorithm 2 is full, the algorithm makes N N N successful selections, producing h 1 , … , h N h_1,\ldots,h_N h 1 , … , h N .
Proof of Lemma 9. Let I I I be the set from Lemma 6. For i , i ′ ∈ I i,i' \in I i , i ′ ∈ I and ℓ < d \ell<d ℓ < d , take h ∈ G i ℓ + 1 h \in G_i^{\ell+1} h ∈ G i ℓ + 1 . If A ′ A' A ′ is a sample stored by group i ′ i' i ′ , let A A A be the sample stored by group i i i from the same batch B B B . The sampling guarantee gives
err A ′ ( h ) ≤ err B ( h ) + 1 64 ( d + 1 ) ≤ err A ( h ) + 1 32 ( d + 1 ) ≤ a ℓ + 1 + 1 32 ( d + 1 ) = a ℓ . \operatorname{err}_{A'}(h) \le\operatorname{err}_B(h)+\frac{1}{64(d+1)} \le\operatorname{err}_A(h)+\frac{1}{32(d+1)} \le a_{\ell+1}+\frac{1}{32(d+1)}=a_\ell. err A ′ ( h ) ≤ err B ( h ) + 64 ( d + 1 ) 1 ≤ err A ( h ) + 32 ( d + 1 ) 1 ≤ a ℓ + 1 + 32 ( d + 1 ) 1 = a ℓ .
Hence G i ℓ + 1 ⊆ G i ′ ℓ G_i^{\ell+1} \subseteq G_{i'}^\ell G i ℓ + 1 ⊆ G i ′ ℓ for every i , i ′ ∈ I i,i' \in I i , i ′ ∈ I with the current stored samples. If selection fails while ℓ < d \ell<d ℓ < d , write
R = max i ∈ I p ℓ ( G i ℓ ) , R ′ = max i ∈ I p 2 ℓ ( G i ℓ + 1 ) . R=\max_{i\in I} p_{\ell}(G_i^\ell), \qquad R'=\max_{i\in I} p_{2\ell}(G_i^{\ell+1}). R = i ∈ I max p ℓ ( G i ℓ ) , R ′ = i ∈ I max p 2 ℓ ( G i ℓ + 1 ) .
By Fact 2 and the preceding inclusions, R ′ ≤ min i ∈ I p ℓ ( G i ℓ ) ≤ R R' \le\min_{i\in I} p_{\ell}(G_i^\ell) \le R R ′ ≤ min i ∈ I p ℓ ( G i ℓ ) ≤ R . If R ′ = R R'=R R ′ = R , choose a group attaining R ′ R' R ′ . Its new class is contained in every old class and has the same decomposition dimension as all of them. By the common-function property in Fact 2, some function belongs to every C p ℓ ( G i ℓ ) C_{p\ell}(G_i^\ell) C p ℓ ( G i ℓ ) , i ∈ I i \in I i ∈ I . It belongs to at least 0.99 k 0.99k 0.99 k lists, contradicting Lemma 7. Therefore R ′ < R R' < R R ′ < R .
The maximum decomposition dimension over I I I initially is at most d d d , and each unsuccessful selection with ℓ < d \ell< d ℓ < d decreases it by at least one. Adding samples cannot increase it either, by Lemma 8. Thus, if ℓ \ell ℓ reaches d d d , every group in I I I has decomposition dimension zero. Its list then equals its class, by Fact 2, and contains the realising hypothesis. It belongs to at least 0.99 k 0.99k 0.99 k lists, so selection cannot fail when ℓ = d \ell= d ℓ = d .
Thus the algorithm completes N N N successful selections.
Lemma 10. Algorithm 2 is ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -differentially private under replacement of one record of S S S .
Proof of Lemma 10. Use the equivalent sampling rule from the proof of Lemma 6. Independently for each batch number j j j and original timestamp t t t , draw a group assignment and a uniform random number. Fix these choices and average only over the randomness of Select.
Let S , S ′ S,S' S , S ′ differ at one timestamp. Compare a selection call on the two streams after the same preceding selection answers. The preceding candidates and the count ℓ \ell ℓ of unsuccessful selections are then the same. For a fixed candidate, changing one stream record changes its first-K K K -mistake batch at at most two timestamps: the changed timestamp itself, and possibly one other timestamp entering or leaving the batch.
Common records receive the same group assignments and sampling numbers. Thus at most two groups’ samples differ in each batch. Across at most N N N batches, the stored samples differ in at most 2 N 2N 2 N groups. By Fact 3 and group privacy (Fact 1), each selection call is ( 2 N ε 0 , 2 N e 2 N ε 0 δ 0 ) (2N\varepsilon_0,2Ne^{2N\varepsilon_0}\delta_0) ( 2 N ε 0 , 2 N e 2 N ε 0 δ 0 ) -differentially private with respect to the original stream. Composing over at most N + d + 1 N+d+1 N + d + 1 calls gives parameters
( 2 N ( N + d + 1 ) ε 0 , 2 N ( N + d + 1 ) e 2 N ε 0 δ 0 ) . \left(2N(N+d+1)\varepsilon_0,\;2N(N+d+1)e^{2N\varepsilon_0}\delta_0\right). ( 2 N ( N + d + 1 ) ε 0 , 2 N ( N + d + 1 ) e 2 N ε 0 δ 0 ) .
By the choices of ε 0 , δ 0 \varepsilon_0,\delta_0 ε 0 , δ 0 , these are at most ( ε / 4 , δ / 4 ) (\varepsilon/4,\delta/4) ( ε /4 , δ /4 ) . Averaging over the assignment and sampling randomness preserves privacy and the final returned sequence is a post-processing of the selection answers.
:::
We restate Lemma 3 with the target parameters of Section 3.
Lemma 3. The offline algorithm in Algorithm 2 , run with privacy parameters ( ε / 4 , δ / 8 ) (\varepsilon/4,\delta/8) ( ε /4 , δ /8 ) and failure probability β = δ \beta=\delta β = δ , is ( ε / 4 , δ / 8 ) (\varepsilon/4,\delta/8) ( ε /4 , δ /8 ) -differentially private and returns binary functions h 0 , … , h N h_0,\ldots,h_N h 0 , … , h N . Then, on every fixed realisable stream,
P [ min 0 ≤ j ≤ N M ( h j ; S ) < K ] ≥ 1 − δ . \mathbb{P}\left[\min_{0\le j\le N} M(h_j;S) < K\right] \ge1-\delta. P [ 0 ≤ j ≤ N min M ( h j ; S ) < K ] ≥ 1 − δ . where h 0 h_0 h 0 is public and N , K N,K N , K are positive integers satisfying N ≤ 2 O ( d 2 ) N \le2^{O(d^2)} N ≤ 2 O ( d 2 ) , K ≤ 2 O ( d 2 ) ε log 2 ε δ K \le\frac{2^{O(d^2)}}{\varepsilon}\log\frac{2}{\varepsilon\delta} K ≤ ε 2 O ( d 2 ) log ε δ 2 .
Proof of Lemma 3. By Lemmas 6 and 7 and a union bound, both guarantees hold with probability at least 1 − β 1-\beta 1 − β . Condition on this event and let I I I be the set in Lemma 6. Every selected function belongs to at least 3 k / 5 − k / 100 ≥ k / 2 3k/5-k/100 \ge k/2 3 k /5 − k /100 ≥ k /2 lists of groups in I I I .
If every candidate made at least K K K mistakes, every batch would be full, and Lemma 9 would give N N N successful selections. The counting argument in Step 1 of Section 3 then gives ( N − 1 ) k / 2 ≤ k ( d + 1 ) s (N-1)k/2 \le k(d+1)s ( N − 1 ) k /2 ≤ k ( d + 1 ) s , contradicting N = 2 ( d + 1 ) s + 2 N=2(d+1)s+2 N = 2 ( d + 1 ) s + 2 . Thus some candidate has fewer than K K K mistakes. The parameter choices give
s , N ≤ 2 O ( d 2 ) , K ≤ 2 O ( d 2 ) ε log 2 ε δ β . s,N \le2^{O(d^2)}, \qquad K \le\frac{2^{O(d^2)}}{\varepsilon}\log\frac{2}{\varepsilon\delta\beta}. s , N ≤ 2 O ( d 2 ) , K ≤ ε 2 O ( d 2 ) log ε δ β 2 . Each h j h_j h j is computed using only B K ( h 0 , S ) , … , B K ( h j − 1 , S ) B_K(h_0,S),\ldots,B_K(h_{j-1},S) B K ( h 0 , S ) , … , B K ( h j − 1 , S ) . Together with Lemma 10, substituting ( ε / 4 , δ / 8 ) (\varepsilon/4,\delta/8) ( ε /4 , δ /8 ) and β = δ \beta=\delta β = δ proves the lemma.
Using the candidates online
For the remainder of this section, we use the notation and parameter assumptions of § 3 . The candidates from Step 1 can be computed as their preceding mistake batches become full. To use them privately, we delay when a new candidate can affect the predictions.
We use the private delay mechanism Mirror of [4 Lemmas 23–24] . A round is active when its input bit is 1.
Fact 4. For 0 < a ≤ 1 0 < a \le1 0 < a ≤ 1 , 0 < b < 1 / 10 0 < b < 1/10 0 < b < 1/10 and an integer D ≥ 1 D \ge1 D ≥ 1 , there is an ( a , b ) (a,b) ( a , b ) -jointly private mechanism Mirror( a , b , D ) (a,b,D) ( a , b , D ) that receives an activity bit and returns ⊥ \perp ⊥ or ⊤ \top ⊤ on each round. For every value of its randomness, it returns ⊥ \perp ⊥ on every inactive round and on the first D D D active rounds. It returns ⊤ \top ⊤ on every active round after the first D + C a − 2 log 2 ( 2 / b ) D + Ca^{-2}\log^2(2/b) D + C a − 2 log 2 ( 2/ b ) active rounds, for an absolute constant C C C .
Definition 10 (Replacement mechanism). Let 0 < a ≤ 1 0 < a \le1 0 < a ≤ 1 , 0 < b < 1 / 10 0 < b < 1/10 0 < b < 1/10 , and let D D D be an integer with D ≥ C a − 2 log 2 ( 4 / b ) D \ge Ca^{-2}\log^2(4/b) D ≥ C a − 2 log 2 ( 4/ b ) for a sufficiently large absolute constant C C C . Given two fixed prediction sequences U = ( u t ) U = (u_t) U = ( u t ) and V = ( v t ) V = (v_t) V = ( v t ) , run Mirror( a / 2 , b / 2 , D ) (a/2,b/2,D) ( a /2 , b /2 , D ) from Fact 4 on the bits Δ t = 1 { u t ≠ v t } \Delta_t = 1\{u_t \ne v_t\} Δ t = 1 { u t = v t } . Write μ t \mu_t μ t for its response at round t t t .
Let c c c count the rounds on which v t = y t v_t = y_t v t = y t among the first D D D disagreements, or among all disagreements if there are fewer than D D D . Independently of Mirror, draw ξ \xi ξ from the Laplace distribution of scale 4 / a 4/a 4/ a , conditioned on ∣ ξ ∣ ≤ D / 8 |\xi| \le D/8 ∣ ξ ∣ ≤ D /8 , and set acc = 1 { c + ξ ≥ D / 2 } \operatorname{acc} = 1\{c + \xi\ge D/2\} acc = 1 { c + ξ ≥ D /2 } . Define Rep( U , V , D , a , b ) (U,V,D,a,b) ( U , V , D , a , b ) by
W t = { v t , if μ t = ⊤ and acc = 1 , u t , otherwise. W_t =
\begin{cases}
v_t, & \text{if } \mu_t = \top\text{ and } \operatorname{acc} = 1,\\
u_t, & \text{otherwise.}
\end{cases} W t = { v t , u t , if μ t = ⊤ and acc = 1 , otherwise. Mirror returns ⊥ \perp ⊥ on the first D D D disagreement rounds, so the acceptance decision is used only after all labels entering c c c have arrived. Thus the replacement is online whenever U , V U,V U , V are. Both predictors receive the original examples and labels, and neither receives the replacement’s outputs.
For the parameters in the main proof, choose a sufficiently large absolute constant C C C and set
D 0 = ⌈ C ( K + N 2 ε 2 log 2 ( 32 N δ ) ) ⌉ , D j = 9 j D 0 , 1 ≤ j ≤ N , (13) D_0 = \left\lceil C\left(K + \frac{N^2}{\varepsilon^2}\log^2\left(\frac{32N}{\delta}\right)\right)\right\rceil,\qquad D_j = 9^jD_0,\quad1 \le j \le N, \tag*{(13)} D 0 = ⌈ C ( K + ε 2 N 2 log 2 ( δ 32 N ) ) ⌉ , D j = 9 j D 0 , 1 ≤ j ≤ N , (13)
and a = ε / ( 4 N ) a = \varepsilon/(4N) a = ε / ( 4 N ) , b = δ / ( 8 N ) b = \delta/(8N) b = δ / ( 8 N ) . Then D 0 > 4 K D_0 > 4K D 0 > 4 K , and every D ≥ D 0 D \ge D_0 D ≥ D 0 satisfies the lower bound in Definition 10. The notation Rep( U , V , D ) (U,V,D) ( U , V , D ) in the main text suppresses a , b a,b a , b .
Lemma 11. For every integer D ≥ D 0 D \ge D_0 D ≥ D 0 , every fixed pair of prediction sequences U , V U,V U , V , and every value of the replacement mechanism’s randomness, its output W = Rep ( U , V , D , a , b ) W = \operatorname{Rep}(U,V,D,a,b) W = Rep ( U , V , D , a , b ) from Definition 10 satisfies:
(i) If M ( V ; S 1 : r ) < K M(V;S_{1:r}) < K M ( V ; S 1 : r ) < K , then M ( W ; S 1 : r ) ≤ K + 2 D M(W;S_{1:r}) \le K + 2D M ( W ; S 1 : r ) ≤ K + 2 D .
(ii) If M ( U ; S 1 : t − 1 ) ≤ D / 4 M(U;S_{1:t-1}) \le D/4 M ( U ; S 1 : t − 1 ) ≤ D /4 , then W t = U t W_t = U_t W t = U t .
Proof. At a disagreement round, exactly one of U U U and V V V is correct. In particular, every round counted by c c c is a mistake of U U U .
For (i), a mistake on a round where Δ t = 0 \Delta_t = 0 Δ t = 0 is also a mistake of V V V . The first 2 D 2D 2 D disagreement rounds contribute at most 2 D 2D 2 D additional mistakes. If the prefix contains no further disagreements, this already proves the bound.
Otherwise, among the first D D D disagreement rounds, fewer than K ≤ D / 4 K \le D/4 K ≤ D /4 are mistakes of V V V . Consequently c > 3 D / 4 c > 3D/4 c > 3 D /4 and c + ξ > 5 D / 8 > D / 2 c + \xi> 5D/8 > D/2 c + ξ > 5 D /8 > D /2 , so acc = 1 \operatorname{acc} = 1 acc = 1 . By Fact 4, the choice D ≥ C a − 2 log 2 ( 4 / b ) D \ge Ca^{-2}\log^2(4/b) D ≥ C a − 2 log 2 ( 4/ b ) , with a sufficiently large constant, ensures that μ t = ⊤ \mu_t = \top μ t = ⊤ on every disagreement round after the first 2 D 2D 2 D . The replacement then predicts v t v_t v t , and any further mistake is a mistake of V V V . Therefore M ( W ; S 1 : r ) ≤ M ( V ; S 1 : r ) + 2 D < K + 2 D M(W; S_{1:r}) \le M(V; S_{1:r}) + 2D < K + 2D M ( W ; S 1 : r ) ≤ M ( V ; S 1 : r ) + 2 D < K + 2 D .
For (ii), if Δ t = 0 \Delta_t = 0 Δ t = 0 , the two predictors agree and the replacement returns their common bit. If at most D D D disagreement rounds have occurred up to and including round t t t , then μ t = ⊥ \mu_t = \bot μ t = ⊥ , so the replacement returns u t u_t u t . Otherwise, the first D D D disagreement rounds all lie in S 1 : t − 1 S_{1:t-1} S 1 : t − 1 . Since U U U has made at most D / 4 D/4 D /4 mistakes on that prefix, c ≤ D / 4 c \le D/4 c ≤ D /4 . The noise satisfies ∣ ξ ∣ ≤ D / 8 |\xi| \le D/8 ∣ ξ ∣ ≤ D /8 , and hence c + ξ ≤ 3 D / 8 < D / 2 c + \xi\le3D/8 < D/2 c + ξ ≤ 3 D /8 < D /2 . Thus acc = 0 \operatorname{acc} = 0 acc = 0 , and again the prediction is u t u_t u t .
Run Algorithm 2 with privacy parameters ( ε / 4 , δ / 8 ) (\varepsilon/4, \delta/8) ( ε /4 , δ /8 ) and failure probability β = δ \beta= \delta β = δ . First suppose that all candidates are available and define
A 0 = h 0 , A j = Rep ( A j − 1 , h j , D j , a , b ) , 1 ≤ j ≤ N . A_0 = h_0,\qquad A_j = \operatorname{Rep}(A_{j-1}, h_j, D_j, a, b),\qquad1 \le j \le N. A 0 = h 0 , A j = Rep ( A j − 1 , h j , D j , a , b ) , 1 ≤ j ≤ N .
Each replacement uses independent randomness, also independent of the candidate procedure. Write A j , t A_{j,t} A j , t for the prediction of A j A_j A j at round t t t , and use the same random choices in the online implementation.
Claim 1. Let 0 ≤ m < N 0 \le m < N 0 ≤ m < N . If B K ( h m , S 1 : t − 1 ) B_K(h_m,S_{1:t-1}) B K ( h m , S 1 : t − 1 ) is not full, then A m , A m + 1 , … , A N A_m,A_{m+1},\ldots,A_N A m , A m + 1 , … , A N agree on every round through t t t . This holds for every stream and every value of the randomness.
Proof. For 0 ≤ j ≤ N 0 \le j \le N 0 ≤ j ≤ N and any prefix with M ( h j ; S 1 : r ) < K M(h_j;S_{1:r}) < K M ( h j ; S 1 : r ) < K , we have
M ( A j ; S 1 : r ) ≤ K + 2 D j . (14) M(A_j;S_{1:r}) \le K + 2D_j. \tag*{(14)} M ( A j ; S 1 : r ) ≤ K + 2 D j . (14)
For j = 0 j = 0 j = 0 this follows from A 0 = h 0 A_0 = h_0 A 0 = h 0 . For j ≥ 1 j \ge1 j ≥ 1 it is Lemma 11(i), since D j ≥ D 0 ≥ 4 K D_j \ge D_0 \ge4K D j ≥ D 0 ≥ 4 K .
Fix m , t m,t m , t as in the claim. Since the batch is not full, M ( h m ; S 1 : s − 1 ) < K M(h_m;S_{1:s-1}) < K M ( h m ; S 1 : s − 1 ) < K for every s ≤ t s \le t s ≤ t . We prove by induction on j = m + 1 , … , N j = m+1,\ldots,N j = m + 1 , … , N that A j A_j A j and A j − 1 A_{j-1} A j − 1 agree at every round s ≤ t s \le t s ≤ t .
For j = m + 1 j = m+1 j = m + 1 , (12) and 4 K ≤ D 0 ≤ D m 4K \le D_0 \le D_m 4 K ≤ D 0 ≤ D m give M ( A m ; S 1 : s − 1 ) ≤ K + 2 D m ≤ D m + 1 / 4 M(A_m;S_{1:s-1}) \le K + 2D_m \le D_{m+1}/4 M ( A m ; S 1 : s − 1 ) ≤ K + 2 D m ≤ D m + 1 /4 . Lemma 11(ii) now shows agreement at round s s s .
For j > m + 1 j > m+1 j > m + 1 , the induction hypothesis says that A j − 1 A_{j-1} A j − 1 and A m A_m A m agree through t t t , so A j − 1 A_{j-1} A j − 1 makes at most D m + 1 / 4 ≤ D j / 4 D_{m+1}/4 \le D_j/4 D m + 1 /4 ≤ D j /4 mistakes before round s s s . Lemma 11(ii) completes the induction.
We store the observed examples and the predictions of each A j A_j A j . When a new candidate h j h_j h j becomes available, we run its replacement rule on the earlier examples, using the stored predictions of A j − 1 A_{j-1} A j − 1 and the random choices fixed above. This determines how A j A_j A j would have predicted on those rounds and allows it to continue on the next round. To compute successive candidates, Algorithm 2 keeps its stored samples and its current value of ℓ \ell ℓ .
Algorithm 3 Using the candidates online
1: m ← 0; A₀ ← h₀.
2: for t = 1, . . . , T do
3: while m < N and M(hₘ; S₁:t−1) ≥ K do
4: Obtain hₘ₊₁ from Algorithm 2, resuming it if needed.
5: Run the replacement defining Aₘ₊₁ on S₁:t−1 as described above.
6: m ← m + 1.
7: Receive xₜ; compute A₀,t, . . . , Aₘ,t in order and predict Aₘ,t.
8: Receive yₜ and update all initialised replacements.
All batches count mistakes on the entire stored prefix, including rounds before the candidate was computed.
At the end of the while loop, either m = N m=N m = N or the batch of h m h_m h m is not full. Claim 1 therefore shows that the current prediction equals that of A N A_N A N , and that reconstructing a replacement preserves its earlier predictions. All computations use only previous labels and the current instance. Denote this online predictor by A \mathcal{A} A .
The high-probability mistake bound (4) follows from Step 2 of § 3 , using the parameter choice in (13) . We now prove the privacy guarantee.
Lemma 12. A \mathcal{A} A is ( ε / 2 , δ / 4 ) (\varepsilon/2,\delta/4) ( ε /2 , δ /4 ) -jointly differentially private.
Proof. Fix neighbouring streams that differ at round i i i . Reveal all candidate functions and acceptance bits, and each Mirror response sequence with coordinate i i i omitted.
We use the following composition argument because each replacement receives predictions from the preceding one. Suppose earlier mechanisms have released some functions or bits and some sequences of answers with coordinate i i i omitted. Fix these outputs. A later mechanism forms its input at round t t t from the original record at t t t , the released functions or bits, and the earlier mechanisms’ answers at that same round. Its inputs outside i i i are therefore fixed and identical on the two streams. The input at i i i can have different conditional distributions. If the later mechanism’s privacy inequality holds for every pair of possible inputs at i i i , it also holds after averaging over those conditional distributions. Adaptive composition then adds the privacy parameters. For a jointly private sequence, omit output i i i . The omitted answer may enter the later mechanism at round i i i , but it cannot be copied directly to another round.
For one replacement rule, regard ( u t , v t , y t ) t = 1 T (u_t,v_t,y_t)_{t=1}^{T} ( u t , v t , y t ) t = 1 T as its input stream. Replacing one record changes the number of labels favouring the second predictor among the first D D D disagreements by at most two. The untruncated Laplace noise of scale 4 / a 4/a 4/ a therefore makes the acceptance decision ( a / 2 , 0 ) (a/2,0) ( a /2 , 0 ) -differentially private. Truncating this noise to [ − D / 8 , D / 8 ] [-D/8,D/8] [ − D /8 , D /8 ] changes its distribution in total variation by q = exp ( − a D / 32 ) q=\exp(-aD/32) q = exp ( − a D /32 ) . The truncated decision is consequently ( a / 2 , ( 1 + e a / 2 ) q ) \left(a/2,\left(1+e^{a/2}\right)q\right) ( a /2 , ( 1 + e a /2 ) q ) -differentially private. For D ≥ C a − 2 log 2 ( 4 / b ) D\ge Ca^{-2}\log^2(4/b) D ≥ C a − 2 log 2 ( 4/ b ) with a sufficiently large constant, ( 1 + e a / 2 ) q ≤ b / 2 \left(1+e^{a/2}\right)q\le b/2 ( 1 + e a /2 ) q ≤ b /2 . Mirror independently contributes ( a / 2 , b / 2 ) (a/2,b/2) ( a /2 , b /2 ) -joint privacy.
We apply this argument to the definition of A N A_N A N with all candidates available. First obtain the candidate sequence, which is ( ε / 4 , δ / 8 ) (\varepsilon/4,\delta/8) ( ε /4 , δ /8 ) -differentially private by Lemma 10. For each j = 1 , … , N j=1,\ldots,N j = 1 , … , N , process the acceptance test and Mirror instance of its replacement rule. Their input at round t t t is ( A j − 1 , t , h j ( x t ) , y t ) (A_{j-1,t},h_j(x_t),y_t) ( A j − 1 , t , h j ( x t ) , y t ) . Once the candidates and earlier acceptance decisions are fixed, the first component is determined by x t x_t x t and the earlier round-t t t Mirror responses. Thus the composition argument applies and each replacement adds ( a , b ) (a,b) ( a , b ) . The predictions outside i i i are determined by these releases and the unchanged instances, so their privacy parameters are ( ε / 4 , δ / 8 ) + N ( a , b ) = ( ε / 2 , δ / 4 ) (\varepsilon/4,\delta/8)+N(a,b)=(\varepsilon/2,\delta/4) ( ε /4 , δ /8 ) + N ( a , b ) = ( ε /2 , δ /4 ) . The online predictor A \mathcal{A} A has exactly the same predictions as A N A_N A N on every stream when they use the same random choices, by Claim 1 and the implementation above. It therefore has the same privacy guarantee. □ \square □
An expected mistake bound independent of T T T
To remove the δ T \delta T δ T term in E M ( A ; S ) ≤ B + δ T EM(\mathcal{A};S)\le B+\delta T E M ( A ; S ) ≤ B + δ T , we combine A \mathcal{A} A with an independent subsampled SOA predictor, as in Step 3.
Fact 5. Fix 0 < γ ≤ 1 0<\gamma\le1 0 < γ ≤ 1 and start with an empty retained sample R R R . On round t t t , predict SOA H ∣ R ( x t ) \operatorname{SOA}_{\mathcal{H}|R}(x_t) SOA H ∣ R ( x t ) ; after observing y t y_t y t , retain ( x t , y t ) (x_t,y_t) ( x t , y t ) independently with probability γ \gamma γ . If no hypothesis is consistent with R R R , use a fixed public function. This predictor is ( 0 , γ ) (0,\gamma) ( 0 , γ ) -jointly differentially private and has at most d / γ d/\gamma d / γ expected mistakes on every realisable stream.
This is the subsampled-SOA argument of [5 discussion following Theorem 1] .
Run the Name and Shame SOA predictor F \mathcal{F} F from Fact 5 independently of A \mathcal{A} A , retaining each labelled example with probability δ / 4 \delta/4 δ /4 . It is ( 0 , δ / 4 ) (0,\delta/4) ( 0 , δ /4 ) -jointly differentially private and satisfies EM ( F ; S ) ≤ 4 d / δ \operatorname{EM}(\mathcal{F};S) \le4d/\delta EM ( F ; S ) ≤ 4 d / δ .
We combine A \mathcal{A} A and F \mathcal{F} F using Algorithm 4, with D = ⌈ C ε − 2 log ( 2 / δ ) ⌉ D=\lceil C\varepsilon^{-2}\log(2/\delta)\rceil D = ⌈ C ε − 2 log ( 2/ δ )⌉ for a sufficiently large absolute constant C C C . Write C = Combine D ( A , F ) C=\operatorname{Combine}_{D}(\mathcal{A},\mathcal{F}) C = Combine D ( A , F ) for the resulting predictor.
Table 4.
Each choice uses a fresh uniform draw, independent across rounds and of both predictors. When their predictions agree, the rule returns their common bit. The same rule defines Combine D ( U , V ) \operatorname{Combine}_{D}(U,V) Combine D ( U , V ) for arbitrary binary prediction sequences U = ( u t ) U=(u_t) U = ( u t ) and V = ( v t ) V=(v_t) V = ( v t ) , with u t , v t u_t,v_t u t , v t supplied before predicting and y t y_t y t afterwards. When these sequences are generated by predictors, both receive the true labels but never the comparison rule’s outputs.
Lemma 13. For the chosen D D D , Combine D \operatorname{Combine}_{D} Combine D is ( ε / 2 , δ / 2 ) (\varepsilon/2,\delta/2) ( ε /2 , δ /2 ) -jointly private on streams of triples ( u t , v t , y t ) (u_t,v_t,y_t) ( u t , v t , y t ) , receiving u t , v t u_t,v_t u t , v t before predicting and y t y_t y t afterwards. For every fixed pair of prediction sequences U , V U,V U , V and labels,
EM ( Combine D ( U , V ) ; S ) ≤ 3 min { M ( U ; S ) , M ( V ; S ) } + 2 D , \operatorname{EM}(\operatorname{Combine}_{D}(U,V);S) \le3\min\{M(U;S),M(V;S)\}+2D, EM ( Combine D ( U , V ) ; S ) ≤ 3 min { M ( U ; S ) , M ( V ; S )} + 2 D , where the expectation is over the comparison rule’s randomness.
Proof. Fix U , V U,V U , V and the labels, and let m m m be the total number of mistakes of either prediction sequence. Rounds on which this sequence is wrong contribute at most m m m mistakes. On the k k k -th disagreement round on which it is correct, its counter is k − 1 k-1 k − 1 and the other counter is at most m m m . The probability of a mistake is therefore at most min { 1 , ( D + m ) 2 / k 2 } \min\{1,(D+m)^2/k^2\} min { 1 , ( D + m ) 2 / k 2 } . Thus
EM ( Combine D ( U , V ) ; S ) ≤ m + ∑ k ≥ 1 min { 1 , ( D + m ) 2 k 2 } ≤ 3 m + 2 D , \operatorname{EM}(\operatorname{Combine}_{D}(U,V);S) \le m+\sum_{k\ge1}\min\left\{1,\frac{(D+m)^2}{k^2}\right\}\le3m+2D, EM ( Combine D ( U , V ) ; S ) ≤ m + k ≥ 1 ∑ min { 1 , k 2 ( D + m ) 2 } ≤ 3 m + 2 D ,
where the last inequality follows by splitting the sum at D + m D+m D + m and using ∑ k > D + m k − 2 ≤ 1 / ( D + m ) \sum_{k>D+m}k^{-2}\le1/(D+m) ∑ k > D + m k − 2 ≤ 1/ ( D + m ) . Choosing the sequence with fewer mistakes proves the mistake bound.
For privacy, fix two neighbouring streams of triples that differ at round i i i . Let P , Q P,Q P , Q be the laws of their outputs with coordinate i i i omitted. Changing one triple changes each counter by at most one, and all later updates agree. Since the counters depend only on the input triples, the outputs are independent on each fixed stream. Only disagreement rounds after i i i contribute to privacy loss. On such a round, write a = D + c 1 a=D+c_1 a = D + c 1 , b = D + c 2 b=D+c_2 b = D + c 2 , and use a ′ , b ′ a',b' a ′ , b ′ for the neighbouring stream. The probabilities of choosing the first predictor are p = a 2 / ( a 2 + b 2 ) p=a^2/(a^2+b^2) p = a 2 / ( a 2 + b 2 ) and q = ( a ′ ) 2 / ( ( a ′ ) 2 + ( b ′ ) 2 ) q=(a')^2/((a')^2+(b')^2) q = ( a ′ ) 2 / (( a ′ ) 2 + ( b ′ ) 2 ) . We have a , b , a ′ , b ′ ≥ D a,b,a',b' \ge D a , b , a ′ , b ′ ≥ D and ∣ a − a ′ ∣ , ∣ b − b ′ ∣ ≤ 1 |a-a'|,|b-b'| \le1 ∣ a − a ′ ∣ , ∣ b − b ′ ∣ ≤ 1 . Each squared count, and their sum, changes in logarithm by at most 2 / D 2/D 2/ D . Hence ∣ log p q ∣ ≤ 4 D \left|\log\frac{p}{q}\right| \le\frac{4}{D} log q p ≤ D 4 , ∣ log 1 − p 1 − q ∣ ≤ 4 D \left|\log\frac{1-p}{1-q}\right| \le\frac{4}{D} log 1 − q 1 − p ≤ D 4 . Also,
( p − q ) 2 q ( 1 − q ) = ( ( a b ′ − b a ′ ) ( a b ′ + b a ′ ) ( a 2 + b 2 ) a ′ b ′ ) 2 ≤ 64 ( a + b ) 2 . \frac{(p-q)^2}{q(1-q)}=\left(\frac{(ab'-ba')(ab'+ba')}{(a^2+b^2)a'b'}\right)^2\le\frac{64}{(a+b)^2}. q ( 1 − q ) ( p − q ) 2 = ( ( a 2 + b 2 ) a ′ b ′ ( a b ′ − b a ′ ) ( a b ′ + b a ′ ) ) 2 ≤ ( a + b ) 2 64 .
using ∣ a b ′ − b a ′ ∣ ≤ a + b |ab'-ba'| \le a+b ∣ a b ′ − b a ′ ∣ ≤ a + b , a / a ′ + b / b ′ ≤ 4 a/a'+b/b' \le4 a / a ′ + b / b ′ ≤ 4 , and a 2 + b 2 ≥ ( a + b ) 2 / 2 a^2+b^2 \ge(a+b)^2/2 a 2 + b 2 ≥ ( a + b ) 2 /2 . Let Z t Z_t Z t be the log-likelihood ratio of this round’s output under the first stream. If n n n disagreements precede this round, then a + b = 2 D + n a+b=2D+n a + b = 2 D + n . The inequalities log x ≤ x − 1 \log x \le x-1 log x ≤ x − 1 and x ( log x ) 2 ≤ ( x − 1 ) 2 x(\log x)^2 \le(x-1)^2 x ( log x ) 2 ≤ ( x − 1 ) 2 for x > 0 x>0 x > 0 give ∣ Z t ∣ ≤ 4 D |Z_t| \le\frac{4}{D} ∣ Z t ∣ ≤ D 4 , E [ Z t ] ≤ 64 ( 2 D + n ) 2 \mathbb{E}[Z_t] \le\frac{64}{(2D+n)^2} E [ Z t ] ≤ ( 2 D + n ) 2 64 , E [ Z t 2 ] ≤ 64 ( 2 D + n ) 2 \mathbb{E}[Z_t^2] \le\frac{64}{(2D+n)^2} E [ Z t 2 ] ≤ ( 2 D + n ) 2 64 . Distinct disagreement rounds have distinct values of n n n , and because ∑ n ≥ 0 ( 2 D + n ) − 2 ≤ 1 / D \sum_{n\ge0}(2D+n)^{-2}\le1/D ∑ n ≥ 0 ( 2 D + n ) − 2 ≤ 1/ D , the full log-likelihood ratio L = ∑ t Z t L=\sum_t Z_t L = ∑ t Z t satisfies E [ L ] ≤ 64 D \mathbb{E}[L]\le\frac{64}{D} E [ L ] ≤ D 64 , Var ( L ) ≤ 64 D \operatorname{Var}(L)\le\frac{64}{D} Var ( L ) ≤ D 64 , ∣ Z t − E [ Z t ] ∣ ≤ 8 D |Z_t-\mathbb{E}[Z_t]|\le\frac{8}{D} ∣ Z t − E [ Z t ] ∣ ≤ D 8 . Bernstein’s inequality, with λ = log ( 2 / δ ) \lambda=\log(2/\delta) λ = log ( 2/ δ ) , gives
P [ L > 64 D + 128 λ D + 16 λ 3 D ] ≤ δ 2 . \mathbb{P}\left[L>\frac{64}{D}+\sqrt{\frac{128\lambda}{D}}+\frac{16\lambda}{3D}\right]\le\frac{\delta}{2}. P [ L > D 64 + D 128 λ + 3 D 16 λ ] ≤ 2 δ .
For the chosen D D D , the threshold is at most ε / 2 \varepsilon/2 ε /2 when C C C is sufficiently large. Therefore, every output event E E E satisfies P ( E ) ≤ e ε / 2 Q ( E ) + δ / 2 P(E)\le e^{\varepsilon/2}Q(E)+\delta/2 P ( E ) ≤ e ε /2 Q ( E ) + δ /2 . Exchanging the two streams proves ( ε / 2 , δ / 2 ) (\varepsilon/2,\delta/2) ( ε /2 , δ /2 ) -joint privacy.
The expected mistake bound for C \mathcal{C} C was proved in Step 3 of Section 3. We finish by proving privacy.
Lemma 14. The predictor C \mathcal{C} C in Algorithm 4 is ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -jointly differentially private.
Proof. Fix neighbouring labelled streams differing at round i i i . By Lemma 12 and Fact 5, the two underlying prediction sequences, with coordinate i i i removed, together satisfy ( ε / 2 , δ / 2 ) (\varepsilon/2,\delta/2) ( ε /2 , δ /2 ) privacy. Conditional on these outputs, every comparison triple outside i i i is fixed and identical on the neighbouring streams. The guarantee of Lemma 13 holds for every two choices of the missing triple, and hence for their conditional distributions. The composition argument in the proof of Lemma 12 therefore adds ( ε / 2 , δ / 2 ) (\varepsilon/2,\delta/2) ( ε /2 , δ /2 ) , giving ( ε , δ ) (\varepsilon,\delta) ( ε , δ ) -joint privacy for the final predictor.
Acknowledgement
The authors acknowledge Daniil Dmitriev, Vikrant Singhal, and Prathamesh Dharangutte for discussions in various stages of this work. The author claims all responsibility for the content of this paper.
Repeated interactions withAI (ChatGPT 5.6) along with prior incomplete results from the authors were used to derive an initial weaker version of Theorem 1 with log T \sqrt{\log T} log T dependence. The current results used AI for completing algebraic arguments, drawing tikz figures, checking for missing definitions, reading and understanding prior work, particularly [12 , 4 ] , and for proof reading proofs.