alphaFeedback

WorksComputer Science

Private Online Prediction from Experts with Small Losses

AI contributions
Not recorded for this paper
View details

Abstract

We consider online prediction from experts, a fundamental problem in machine learning, under differential privacy constraints. Existing private algorithms achieve near-optimal regret O~(T)\tilde{O}(\sqrt{T}), where TT is the time horizon. However, this bound becomes suboptimal when L⋆L^\star, the cumulative loss of the best expert, is significantly less than TT. In this work, we present the first differentially private algorithm with regret O~(L⋆)\tilde{O}(\sqrt{L^\star}), offering a substantial improvement in the low-loss regime. Our regret bound matches the non-private lower bound up to poly-logarithmic factors for constant privacy parameters, demonstrating that privacy incurs only a small cost in this setting. Our result assumes that the input sequence is oblivious, i.e., it is fixed in advance and independent of the algorithm's outputs. We also prove that an Ω~(T)\tildeΩ(\sqrt{T}) regret is inevitable for adaptively generated inputs, even when L⋆=0L^\star = 0.

Introduction

Online prediction from experts (OPE) is a fundamental problem in machine learning. In this problem, the learner receives a stream of TT loss functions ℓ1,…,ℓT\ell_1,\ldots,\ell_T. In each round tt, the learner chooses an expert it∈[N]i_t \in[N] before seeing ℓt\ell_t and suffers loss ℓt(it)\ell_t(i_t). The learner aims to minimize its total loss, which is compared to that of the best expert in hindsight, denoted by L⋆L^\star. The difference between these two quantities is called the regret, which measures the learner’s performance for this problem.

A critical concern when deploying machine learning algorithms on sensitive data (e.g., financial or medical records) is privacy leakage. To address this, differential privacy (DP) [9, 8] has emerged as the de facto standard for formalizing the privacy guarantee provided by an algorithm. Informally, an algorithm is said to be differentially private if changing a single input data point alters its output distribution only negligibly. As a result, such a change in an individual’s information is unlikely to be detected, thereby protecting personal privacy.

Given the importance of OPE, studying it under DP has received significant attention. Previous work [3, 4] has developed algorithms that achieve regret O~(T)\widetilde{O}(\sqrt{T}), which is nearly optimal because it matches the Ω(Tlog⁡N+log⁡N)\Omega(\sqrt{T\log N}+\log N) lower bound [6]—a bound that holds even without any privacy constraints. These results suggest that the cost of privacy in OPE is negligible in the worst case.

In many practical settings—such as financial forecasting, weather prediction, or personalized recommendations—domain experts are specifically selected for their accuracy, so their cumulative loss tends to be low over time. However, the O~(T)\widetilde{O}(\sqrt{T}) regret becomes less meaningful when the loss of the best expert L⋆L^\star is small because the regret itself can be substantially greater than L⋆L^\star, rendering the learner’s loss considerably higher than L⋆L^\star. As an illustration, suppose L⋆=T1/4L^\star=T^{1/4}. An algorithm with regret T\sqrt{T} may incur a loss of T\sqrt{T}, which is T1/4T^{1/4} times larger than L⋆L^\star. In contrast, when L⋆=T3/4L^\star=T^{3/4} the total loss is only (1+o(1))L⋆(1+o(1))L^\star. Thus, worst-case regret bounds are not suitable for OPE with small losses.

In the non-private setting, a natural remedy is to run the multiplicative weights method with a larger learning rate: increasing the learning rate from log⁡N/T\sqrt{\log N/T} to log⁡N/L⋆\sqrt{\log N/L^\star} yields a regret bound of O(L⋆log⁡N+log⁡N)O(\sqrt{L^\star\log N}+\log N) [19, 13]. Unfortunately, such a strategy cannot be directly applied under DP. This is because a large learning rate amplifies the algorithm’s sensitivity to individual data points, thereby violating privacy constraints. Indeed, all existing private OPE algorithms impose a strict upper bound on the learning rate to ensure DP, which prevents them from adapting to small L⋆L^\star. Consequently, it remains unclear whether an O~(L⋆)\widetilde{O}(\sqrt{L^\star}) regret bound is achievable in the private setting.

Our contribution

In this work, we assume that ℓ1,…,ℓT\ell_1,\ldots,\ell_T are chosen by an oblivious adversary. That is, they are fixed in advance and independent of the outputs of the learner.

We propose the first differentially private algorithm that attains regret O~(L⋆)\widetilde{O}(\sqrt{L^\star}) for OPE. This nearly matches the optimal regret without privacy constraints, suggesting that the cost of privacy remains small in the low-loss regime. The results are formally stated in the theorems below.

Theorem 1.1. Let ℓ1,…,ℓT\ell_1,\ldots,\ell_T be chosen by an oblivious adversary. Given ε≤1\varepsilon\leq1, there exists an ε\varepsilon-differentially private algorithm for OPE with expected regret

O((log⁡Nlog⁡T+log⁡Nε)⋅L⋆+(1+ln⁡(1+L⋆))⋅ι1).O\left(\left(\sqrt{\frac{\log N\log T+\log N}{\varepsilon}}\right)\cdot\sqrt{L^\star}+(1+\ln(1+L^\star))\cdot\iota_1\right).

where ι1=O(log⁡2N/ε+log⁡Nlog⁡T/ε)\iota_1=O(\log^2 N/\varepsilon+\log N\log T/\varepsilon).

Theorem 1.2. Let ℓ1,…,ℓT\ell_1,\ldots,\ell_T be chosen by an oblivious adversary. Given ε≤1\varepsilon\leq1 and 0<δ≤1/20<\delta\leq1/2, there exists an (ε,δ)(\varepsilon,\delta)-differentially private algorithm for OPE with expected regret

O(L⋆log⁡Nlog⁡Tε+log⁡N⋅min⁡((L⋆log⁡(1/δ))1/3ε2/3,L⋆ε)+(1+ln⁡(1+L⋆))⋅ι2).O\left(\sqrt{\frac{L^\star\log N\log T}{\varepsilon}}+\log N\cdot\min\left(\frac{(L^\star\log(1/\delta))^{1/3}}{\varepsilon^{2/3}},\sqrt{\frac{L^\star}{\varepsilon}}\right)+(1+\ln(1+L^\star))\cdot\iota_2\right).

where ι2=O(log⁡3/2Nlog⁡(min⁡(1/δ,N))ε+log⁡Nlog⁡Tε)\iota_2=O\left(\frac{\log^{3/2}N\sqrt{\log(\min(1/\delta,N))}}{\varepsilon}+\frac{\log N\log T}{\varepsilon}\right).

Comparison with previous results. When L⋆=0L^\star=0, our results recover the bounds obtained by Asi et al. [2] for the realizable setting. When L⋆L^\star grows, our algorithm yields a quadratic improvement over their O~(L⋆)\widetilde{O}(L^\star) regret bound. Compared to the O~(T)\widetilde{O}(\sqrt{T}) regret obtained by Asi et al. [3, 4], our results are significantly better when L⋆L^\star is much smaller than TT.

As shown by Asi et al. [3], the above improvement cannot be achieved against an adaptive adversary under pure DP: any OPE algorithm must incur an Ω(T)\Omega(T) regret even if L⋆=0L^\star=0. We additionally prove that it remains impossible under approximate DP by providing an Ω~(T)\widetilde{\Omega}(\sqrt{T}) lower bound, which also holds when L⋆=0L^\star=0.

Theorem 1.3. Let TT be sufficiently large and N≥2TN\geq2T. Any adaptively (ε,δ)(\varepsilon,\delta)-differentially private OPE algorithm with ε≤1\varepsilon\leq1 and δ≤1/T3\delta\leq1/T^3 must incur an Ω(min⁡(T,T/(εlog⁡T)))\Omega(\min(T,\sqrt{T}/(\varepsilon\log T))) expected regret when ℓ1,…,ℓT\ell_1,\ldots,\ell_T are chosen by an adaptive adversary, even if it is promised that L⋆=0L^\star=0.

Related work

In the non-private setting, the OPE problem has been extensively studied. The multiplicative weights algorithm [19, 23] was shown to achieve a data-dependent regret bound of O(L⋆log⁡N+log⁡N)O(\sqrt{L^\star\log N}+\log N) with an appropriately tuned learning rate [13]. There are also other methods with the same regret bound, such as follow-the-perturbed-leader [15, 18, 16]. It was formally proved by Cesa-Bianchi et al. [6] that such a bound is asymptotically optimal.

The private version of OPE was first considered by Dwork et al. [11]. It is a folklore result that the multiplicative weights method preserves differential privacy, which follows from the exponential mechanism [20] and advanced composition [12]. A series of subsequent works [21, 17, 1, 2, 3, 4] further investigated the problem. In the oblivious adversarial setting considered in this paper, Asi et al. [3] proposed algorithms with regret O~(T)\widetilde{O}(\sqrt{T}) under pure DP and O(Tlog⁡N)+O~(T1/3)O(\sqrt{T\log N})+\widetilde{O}(T^{1/3}) under approximate DP, demonstrating that the cost of privacy is negligible. The bound for approximate DP was later refined by Asi et al. [4], who further optimized the dependence on the privacy parameter ε\varepsilon. However, these results are unfavorable when L⋆L^\star is much smaller than TT. Asi et al. [2] studied the realizable setting, where L⋆=0L^\star= 0, and gave algorithms with O~(1)\widetilde{O}(1) regret. Their algorithms can be extended to the agnostic setting where L⋆>0L^\star> 0. Nevertheless, the resulting regret bound is O~(L⋆)\widetilde{O}(L^\star), which is far from optimal.

Preliminaries

Online prediction from experts can be formulated as a TT-round game played between a learner and an adversary. In this work, we assume an oblivious adversary who determines a sequence of loss functions ℓ1,…,ℓT\ell_1,\ldots,\ell_T in advance and releases them to the learner one by one, where every ℓt:[N]→[0,1]\ell_t : [N] \to[0,1] assigns each of the NN experts a loss in [0,1][0,1]. In round tt, the learner chooses an expert it∈[N]i_t \in[N] before receiving ℓt\ell_t and incurs loss ℓt(it)\ell_t(i_t). The performance of the learner is assessed by the expected regret, defined as

E[∑t=1Tℓt(it)−min⁡i∈[N]∑t=1Tℓt(i)].\mathbb{E}\left[\sum_{t=1}^{T}\ell_t(i_t)-\min_{i\in[N]}\sum_{t=1}^{T}\ell_t(i)\right].

For ease of notation, we write L⋆L^\star to denote min⁡i∈[N]∑t=1Tℓt(i)\min_{i\in[N]}\sum_{t=1}^{T}\ell_t(i). Note that L⋆L^\star is determined in advance because the adversary is oblivious. However, it is unknown to the learner until the end.

One common approach to solving OPE is the celebrated multiplicative weights method, which in each round tt samples iti_t such that

Pr⁡[it=i]=e−η∑s=1t−1ℓs(i)∑i′∈[N]e−η∑s=1t−1ℓs(i′).\Pr[i_t=i]=\frac{e^{-\eta\sum_{s=1}^{t-1}\ell_s(i)}}{\sum_{i'\in[N]}e^{-\eta\sum_{s=1}^{t-1}\ell_s(i')}}.

where η\eta is the learning rate. The following lemma provides an upper bound on its expected regret.

Lemma 2.1 ([13, 5]). For 0<η≤10<\eta\leq1, we have

∑t=1T∑i∈[N]Pt(i)ℓt(i)−L⋆=O(log⁡Nη+ηL⋆).\sum_{t=1}^{T}\sum_{i\in[N]}P_t(i)\ell_t(i)-L^\star=O\left(\frac{\log N}{\eta}+\eta L^\star\right).

where

Pt(i)=e−η∑s=1t−1ℓs(i)∑i′∈[N]e−η∑s=1t−1ℓs(i′).P_t(i)=\frac{e^{-\eta\sum_{s=1}^{t-1}\ell_s(i)}}{\sum_{i'\in[N]}e^{-\eta\sum_{s=1}^{t-1}\ell_s(i')}}.

We then introduce the notion of differential privacy in the context of OPE.

Definition 2.2 (Differential Privacy [9, 8]). An algorithm AA is (ε,δ)(\varepsilon,\delta)-differentially private if, for any pair of sequences S=(ℓ1,…,ℓT)S=(\ell_1,\ldots,\ell_T) and S′=(ℓ1′,…,ℓT′)S'=(\ell'_1,\ldots,\ell'_T) that differ in a single function, and for any subset OO of the output range, we have

Pr⁡[A(S)∈O]≤eεPr⁡[A(S′)∈O]+δ.\Pr[A(S)\in O]\leq e^\varepsilon\Pr[A(S')\in O]+\delta.

When δ=0\delta=0, we usually omit δ\delta and say AA is ε\varepsilon-differentially private. This case is referred to as pure DP, while the case where δ>0\delta>0 is referred to as approximate DP.

A key ingredient in our design is the AboveThreshold mechanism, which receives a sequence of queries and privately identifies the first one that exceeds a prespecified threshold.

Theorem 2.3 (AboveThreshold [10, 7]). We say a query qq has sensitivity 11 if ∣q(S)−q(S′)∣≤1|q(S)-q(S')|\leq1 for any pair of sequences SS and S′S' that differ in a single function. Given a threshold τ\tau, there exists an ε\varepsilon-differentially private AboveThreshold that at each round tt receives a sensitivity-1 query qtq_t and outputs σt∈{⊤,⊥}\sigma_t\in\{\top,\bot\}, continuing until it either produces the first ⊤\top or has processed all queries. If there are at most TT queries, then with probability 1−β1-\beta, the AboveThreshold mechanism is α\alpha-accurate for

α=8(ln⁡T+ln⁡(2/β))ε.\alpha=\frac{8(\ln T+\ln(2/\beta))}{\varepsilon}.

Namely, if the mechanism halts after kk rounds, we have qt≥τ−αq_t\geq\tau-\alpha for all t∈[k]t\in[k] with σt=⊤\sigma_t=\top and qt≤τ+αq_t\leq\tau+\alpha for all t∈[k]t\in[k] with σt=⊥\sigma_t=\bot.

Every step of the multiplicative weights method is exactly the exponential mechanism with privacy parameter ε=2η\varepsilon= 2\eta. This property, combined with advanced composition, has been widely used in the literature to develop private OPE algorithms.

Lemma 2.4 (Exponential Mechanism [20]). Let PtP_t be defined as in Lemma 2.1. The process of sampling iti_t from PtP_t is 2η2\eta-differentially private.

Algorithm and analysis

In this section, we present our algorithm and analyze its privacy and regret guarantees.

Our algorithm is built on the shrinking dartboard algorithm [14], which was also leveraged by Asi et al. [3] to develop algorithms with O~(T)\widetilde{O}(\sqrt{T}) regret. The key insight is that the marginal distribution of the multiplicative weights method changes only slightly between consecutive rounds. Consequently, it suffices to update the output with only a small probability after each round. By reducing the number of updates, one can allocate a larger privacy budget for each update (i.e., use a larger learning rate η\eta), thereby achieving smaller regret.

However, the shrinking dartboard algorithm is not inherently private because the probability of making an update depends on the underlying data (specifically, ℓt(it)\ell_t(i_t), i.e., the loss associated with the currently selected expert iti_t). Asi et al. [3, 4] addressed this by forcing the algorithm to perform an additional update at each round with a probability independent of the data. However, to satisfy even approximate DP, this probability must be at least Ω~(T−1/3)\widetilde{\Omega}(T^{-1/3}). By advanced composition, this imposes an O~(1/T1/3)\widetilde{O}(1/T^{1/3}) upper bound on the learning rate η\eta, which in turn yields an O~(T1/3)\widetilde{O}(T^{1/3}) regret bound according to Lemma 2.1. This exceeds our desired O~(L⋆)\widetilde{O}(\sqrt{L^\star}) regret whenever L⋆<T2/3L^\star< T^{2/3}.

We address this by delaying the update until the currently selected expert has incurred a sufficiently large loss, and then making an update with a probability that depends on the cumulative loss accumulated during the delay. Our key consideration here is that, while such a probability is data-dependent, performing an update with this probability preserves privacy. Moreover, the delay before an update can be implemented using the AboveThreshold mechanism, which is also differentially private. In addition, we impose a lower bound on the probability of updating and an upper bound on the number of updates, which are crucial for satisfying DP in the worst case. The overall algorithm is described in Algorithm 1. We formally prove its privacy guarantee in § 3.1 and regret bound in § 3.2.

Privacy analysis

Let Comp⁡δ(k,ε0)\operatorname{Comp}_{\delta}(k,\varepsilon_0) be the smallest ε\varepsilon such that the composition of kk ε0\varepsilon_0-differentially private algorithms is (ε,δ)(\varepsilon,\delta)-differentially private. We prove the privacy guarantee of Algorithm 1 in the following lemma.

Lemma 3.1. Algorithm 1 is (ε,δ)(\varepsilon,\delta)-differentially private for ε=ε1+max⁡(η,ε2)+Comp⁡δ(V,2η)\varepsilon= \varepsilon_1 + \max(\eta,\varepsilon_2) + \operatorname{Comp}_{\delta}(V,2\eta).

Proof. We analyze the augmented transcript consisting of the initial expert i1i_1, the outputs of all AboveThreshold instances, the ZuZ_u's, and the experts generated at the (at most VV) resampling steps. The learner’s output sequence is a post-processing of this transcript.

We view the algorithm as the concurrent composition of three types of interactive mechanisms: the collection of AboveThreshold instances, the mechanism generating the ZuZ_u's, and the at most VV resampling mechanisms. Throughout the proof, when comparing two neighboring input sequences, we consider an arbitrary common prefix of the interaction transcript. Thus, all previously generated AboveThreshold outputs, ZuZ_u's, resampled experts, and the resulting termination time are fixed and identical on the two executions.

We first show that the collection of AboveThreshold instances is ε1\varepsilon_1-differentially private. Let the two neighboring sequences SS and S′S' differ at round t~\tilde{t}. Along any fixed common interaction transcript, there is at most one AboveThreshold instance whose query stream contains the differing loss. All earlier instances receive identical query streams and therefore have identical output distributions on SS and S′S'.

Consider the potentially affected instance. Conditioned on the common transcript up to its launch, its starting time and selected expert are fixed and identical on the two executions. Hence, every Algorithm 1: Private online prediction from experts

Input: privacy parameters ε1\varepsilon_1 and ε2\varepsilon_2, learning rate η\eta, threshold τ\tau, limit on updates VV

  1. u←1u \leftarrow1, v←0v \leftarrow0, and t0←1t_0 \leftarrow1

  2. Sample i1i_1 uniformly from [N][N]

  3. Initiate an instance of AboveThreshold with privacy parameter ε1\varepsilon_1 and threshold τ\tau

  4. Observe ℓ1\ell_1 and suffer loss ℓ1(i1)\ell_1(i_1)

  5. for t=2,…,Tt = 2,\ldots,T do

    1. if v<Vv < V then

      1. Define query qt≡∑s=tu−1t−1ℓs(it−1)q_t \equiv\sum_{s=t_{u-1}}^{t-1}\ell_s(i_{t-1})

      2. Feed qtq_t to AboveThreshold and obtain outcome σt\sigma_t

      3. if σt=⊤\sigma_t = \top then

        1. ru←max⁡(1/(eε2−1),∑s=tu−1t−1ℓs(it−1))r_u \leftarrow\max(1/(e^{\varepsilon_2}-1),\sum_{s=t_{u-1}}^{t-1}\ell_s(i_{t-1}))

        2. Sample ZuZ_u from Ber⁡(e−ηru)\operatorname{Ber}(e^{-\eta r_u})

        3. if Zu=1Z_u = 1 then

          1. it←it−1i_t \leftarrow i_{t-1}

        4. else

          1. Sample it←ii_t \leftarrow i with probability e−η∑s=1t−1ℓs(i)∑i′∈[N]e−η∑s=1t−1ℓs(i′)\dfrac{e^{-\eta\sum_{s=1}^{t-1}\ell_s(i)}}{\sum_{i'\in[N]}e^{-\eta\sum_{s=1}^{t-1}\ell_s(i')}} for i∈[N]i \in[N]

        5. v←v+1v \leftarrow v + 1

        6. end

        7. tu←tt_u \leftarrow t

        8. u←u+1u \leftarrow u + 1

        9. Initiate an instance of AboveThreshold with privacy parameter ε1\varepsilon_1 and threshold τ\tau

      4. else

        1. it←it−1i_t \leftarrow i_{t-1}

      5. end

    2. else

      1. it←it−1i_t \leftarrow i_{t-1}

    3. end

    4. Observe ℓt\ell_t and suffer loss ℓt(it)\ell_t(i_t)

  6. end

query issued by this instance has sensitivity at most 1. By the privacy guarantee of AboveThreshold, the transcript generated by this instance is ε1\varepsilon_1-differentially private. If this instance terminates, then conditioned on a common transcript through its termination, every subsequent AboveThreshold instance starts after round t~\tilde{t}. Consequently, all subsequent instances receive identical query streams on SS and S′S'. If the affected instance never terminates, there are no subsequent instances. Applying the chain rule to the conditional output distributions therefore shows that the collection of all AboveThreshold instances, viewed as one interactive mechanism, is ε1\varepsilon_1-differentially private.

We next analyze the privacy loss from generating the ZuZ_u's. Let Z1,Z2,…Z_1,Z_2,\ldots and Z1′,Z2′,…Z'_1,Z'_2,\ldots denote the ZuZ_u's generated on neighboring sequences SS and S′S', respectively. Similarly, let rur_u's and ru′r'_u's denote the rur_u-values computed on SS and S′S', respectively. As above, all probabilities involving ZuZ_u's are understood to be conditioned on the relevant fixed common transcript prefix.

Along any common transcript path, the intervals [tu−1,tu−1][t_{u-1},t_u-1] corresponding to generated ZuZ_u's are disjoint. Hence, there is at most one index jj such that SS and S′S' differ at round t~∈[tj−1,tj−1]\tilde{t}\in[t_{j-1},t_j-1]. If such jj does not exist, then ru=ru′r_u=r'_u for every ZuZ_u, which implies that the two ZuZ_u-transcripts have identical conditional distributions.

Otherwise, we have ru=ru′r_u=r'_u for all u<ju<j and ∣rj−rj′∣≤1|r_j-r'_j|\le1. Therefore,

Pr⁡[Zj=1]Pr⁡[Zj′=1]=e−ηrje−ηrj′≤eη.\frac{\Pr[Z_j=1]}{\Pr[Z'_j=1]}=\frac{e^{-\eta r_j}}{e^{-\eta r'_j}}\le e^\eta.

Moreover, since min⁡(rj,rj′)≥1/(eε2−1)\min(r_j,r'_j) \ge1/(e^{\varepsilon_2}-1), we have

Pr⁡[Zj=0]Pr⁡[Zj′=0]=1−e−ηrj1−e−ηrj′≤min⁡(rj,rj′)+∣rj−rj′∣min⁡(rj,rj′)≤eε2,\frac{\Pr[Z_j=0]}{\Pr[Z'_j=0]}=\frac{1-e^{-\eta r_j}}{1-e^{-\eta r'_j}}\le\frac{\min(r_j,r'_j)+|r_j-r'_j|}{\min(r_j,r'_j)}\le e^{\varepsilon_2},

where we use the fact that 1−e−y1−e−x≤yx\frac{1-e^{-y}}{1-e^{-x}}\le\frac{y}{x} for 0<x≤y0<x\le y. For every later u>ju>j, condition on an arbitrary common transcript prefix up to the generation of ZuZ_u. The selected expert and the interval [tu−1,tu−1][t_{u-1},t_u-1] are then fixed and identical on the two neighboring sequences. Since this interval occurs after the differing round, we have ru=ru′r_u=r'_u. Thus, ZuZ_u and Zu′Z'_u have the same conditional distribution on the two executions. Therefore, by the chain rule, only ZjZ_j contributes privacy loss, and the generation of the ZuZ_u's is max⁡(η,ε2)\max(\eta,\varepsilon_2)-differentially private.

Finally, by Lemma 2.4, each of the at most VV resampling steps is 2η2\eta-differentially private conditioned on an arbitrary common transcript prefix. By the concurrent composition theorem [22], the adaptive interleaving of these mechanisms has the same composition guarantee as their non-interactive composition. Hence the augmented transcript, and therefore the learner’s output sequence by post-processing, is (ε,δ)(\varepsilon,\delta)-differentially private. □\square

Regret analysis

We proceed to analyze the regret. The following key lemma provides lower and upper bounds on the cumulative loss from round tu−1t_{u-1} through round tu−1t_u-1.

Lemma 3.2. With probability 1−β11-\beta_1, we have

τ−8(ln⁡T+ln⁡(2T/β1))ε1≤∑s=tu−1tu−1ℓs(itu−1)≤max⁡(τ+8(ln⁡T+ln⁡(2T/β1))ε1,0)+1\tau-\frac{8(\ln T+\ln(2T/\beta_1))}{\varepsilon_1}\le\sum_{s=t_{u-1}}^{t_u-1}\ell_s(i_{t_{u-1}})\le\max\left(\tau+\frac{8(\ln T+\ln(2T/\beta_1))}{\varepsilon_1},0\right)+1

for all u≥1u\ge1. The probability is taken solely over the randomness of the AboveThreshold instances.

Proof. By Theorem 2.3 and the union bound, with probability 1−β11-\beta_1 we have qt≥τ−αq_t\ge\tau-\alpha if σt=⊤\sigma_t=\top and qt≤τ+αq_t\le\tau+\alpha if σt=⊥\sigma_t=\bot for all t∈[T]t\in[T], where α=8(ln⁡T+ln⁡(2T/β1))/ε1\alpha=8(\ln T+\ln(2T/\beta_1))/\varepsilon_1. The lower bound follows directly from the fact that σtu=⊤\sigma_{t_u}=\top. For the upper bound, the inequality trivially holds if tu−1=tu−1t_{u-1}=t_u-1. When tu−1<tu−1t_{u-1}<t_u-1, we have σtu−1=⊥\sigma_{t_{u-1}}=\bot and itu−2=itu−1i_{t_{u-2}}=i_{t_{u-1}}. Hence,

∑s=tu−1tu−1ℓs(itu−1)≤∑s=tu−1tu−2ℓs(itu−2)+1≤τ+α+1.\sum_{s=t_{u-1}}^{t_u-1}\ell_s(i_{t_{u-1}})\le\sum_{s=t_{u-1}}^{t_u-2}\ell_s(i_{t_{u-2}})+1\le\tau+\alpha+1.

□\square

Next, we show that the number of updates is O~(ηL⋆)\widetilde{O}(\eta L^\star) with high probability. As a consequence, the algorithm works normally (i.e., it won’t reach the update limit) if V=O~(ηL⋆)V=\widetilde{O}(\eta L^\star). By the composition theorems, this allows us to set η=Θ~(1/L⋆)\eta=\widetilde{\Theta}(1/\sqrt{L^\star}), which minimizes the regret bound in Lemma 2.1.

Lemma 3.3. Let τ≥8(ln⁡T+ln⁡(2T/β1))ε1+1eε2−1\tau\ge\frac{8(\ln T+\ln(2T/\beta_1))}{\varepsilon_1}+\frac{1}{e^{\varepsilon_2}-1}. Conditioned on the event in Lemma 3.2, we have

Pr⁡[vT<71(ln⁡N+ηL⋆+1)+280ln⁡(1/β2)]≥1−β2,\Pr[v_T<71(\ln N+\eta L^\star+1)+280\ln(1/\beta_2)]\ge1-\beta_2,

where vTv_T is the value of vv when Algorithm 1 terminates.

Proof. Note that vv can increase by at most 1 in each round. Therefore, the condition v<Vv<V is always met given that V≥TV\ge T. In what follows, we will prove the result assuming V≥TV\ge T because vTv_T can only be smaller if we decrease VV.

Define a potential function

Φt=∑i=1Ne−η∑s=1t−1ℓs(i).\Phi_t=\sum_{i=1}^{N}e^{-\eta\sum_{s=1}^{t-1}\ell_s(i)}.

We have N=Φ1≥⋯≥ΦT+1≥e−ηL⋆N=\Phi_1\ge\cdots\ge\Phi_{T+1}\ge e^{-\eta L^\star}. Let sj∈[T]s_j\in[T] be the largest index such that Φsj≥Φ1/ej\Phi_{s_j}\ge\Phi_1/e^j and let mm be the smallest positive integer such that sm=Ts_m=T. Then m≤ln⁡(Φ1/ΦT+1)+1≤ln⁡N+ηL⋆+1m\le\ln(\Phi_1/\Phi_{T+1})+1\le\ln N+\eta L^\star+1. Suppose an update happens at round t∈[sj−1+1,sj]t \in[s_{j-1}+1,s_j] (set s0=0s_0=0 for simplicity). Let EE denote the event that another update happens at some round t′∈[t+1,sj]t' \in[t+1,s_j]. Let

S={i∈[N]:∑s=tsj−1ℓs(i)≤2/η}.S=\left\{i\in[N]:\sum_{s=t}^{s_{j-1}}\ell_s(i)\le2/\eta\right\}.

By Lemma 3.2, we have ∑s=tu−1tu−1ℓs(itu−1)≥1/(eϵ2−1)\sum_{s=t_{u-1}}^{t_u-1}\ell_s(i_{t_{u-1}})\ge1/(e^{\epsilon^2}-1) for any u≥1u\ge1. This implies ru=∑s=tu−1tu−1ℓs(itu−1)r_u=\sum_{s=t_{u-1}}^{t_u-1}\ell_s(i_{t_{u-1}}). Thus, for any i∈Si\in S, we have

Pr⁡[E∣it=i]≤1−e−η∑s=tsj−1ℓs(i)≤1−e−2.\Pr[E\mid i_t=i]\le1-e^{-\eta\sum_{s=t}^{s_{j-1}}\ell_s(i)}\le1-e^{-2}.

Note that

Φsj=∑i∈Se−η∑s=1sj−1ℓs(i)+∑i∉Se−η∑s=1sj−1ℓs(i)≤∑i∈Se−η∑s=1t−1ℓs(i)+e−2∑i∉Se−η∑s=1t−1ℓs(i)=ΦtPr⁡[it∈S]+e−2ΦtPr⁡[it∉S]=Φt(1−Pr⁡[it∉S])+e−2ΦtPr⁡[it∉S].\begin{aligned} \Phi_{s_j} &=\sum_{i\in S}e^{-\eta\sum_{s=1}^{s_{j-1}}\ell_s(i)} +\sum_{i\notin S}e^{-\eta\sum_{s=1}^{s_{j-1}}\ell_s(i)}\\ &\le\sum_{i\in S}e^{-\eta\sum_{s=1}^{t-1}\ell_s(i)} +e^{-2}\sum_{i\notin S}e^{-\eta\sum_{s=1}^{t-1}\ell_s(i)}\\ &=\Phi_t\Pr[i_t\in S]+e^{-2}\Phi_t\Pr[i_t\notin S]\\ &=\Phi_t(1-\Pr[i_t\notin S])+e^{-2}\Phi_t\Pr[i_t\notin S]. \end{aligned}

Rearranging this yields

Pr⁡[it∉S]≤1−Φsj/Φt1−e−2≤1−e−11−e−2.\Pr[i_t\notin S]\le\frac{1-\Phi_{s_j}/\Phi_t}{1-e^{-2}}\le\frac{1-e^{-1}}{1-e^{-2}}.

Therefore,

Pr⁡[E]≤Pr⁡[it∈S]⋅Pr⁡[E∣it∈S]+Pr⁡[it∉S]=(1−Pr⁡[it∉S])⋅(1−e−2)+Pr⁡[it∉S]≤1−e−2+1−e−11−e−2⋅e−2<0.97.\begin{aligned} \Pr[E] &\le\Pr[i_t\in S]\cdot\Pr[E\mid i_t\in S]+\Pr[i_t\notin S]\\ &=(1-\Pr[i_t\notin S])\cdot(1-e^{-2})+\Pr[i_t\notin S]\\ &\le1-e^{-2}+\frac{1-e^{-1}}{1-e^{-2}}\cdot e^{-2}\\ &<0.97. \end{aligned}

As a consequence, the probability that vT≥n+mv_T\ge n+m can be bounded by the probability that the sum of nn Bernoulli random variables with mean 0.030.03 is less than mm. By the Chernoff bound, this is at most exp⁡(−0.03n/8)\exp(-0.03n/8) given that 0.03n≥2m0.03n\ge2m. Thus, it suffices to set n=70m+280ln⁡(1/β2)n=70m+280\ln(1/\beta_2).

The most challenging task in our proof is to compare the output distribution of Algorithm 1 with that of the multiplicative weights method. To this end, we introduce Algorithm 2, which makes the following modifications to Algorithm 1:

  • The limit VV on the number of updates and the lower bound on rur_u are removed.

  • The AboveThreshold mechanisms are replaced by a delay function dd.

  • The learning process can start from an arbitrary round TsT_s.

  • The update procedure at round TeT_e is forced.

We first prove that the output distributions of Algorithm 2 and the multiplicative weights method are the same at round TeT_e.

Lemma 3.4. For any Ts∈[Te]T_s\in[T_e] and d:Z3→Nd:\mathbb{Z}^3\to\mathbb{N}, the output distribution of Algorithm 2 at round TeT_e satisfies

Pr⁡[iTe=i]=e−η∑s=1Te−1ℓs(i)∑i′∈[N]e−η∑s=1Te−1ℓs(i′).\Pr[i_{T_e}=i]=\frac{e^{-\eta\sum_{s=1}^{T_e-1}\ell_s(i)}}{\sum_{i'\in[N]}e^{-\eta\sum_{s=1}^{T_e-1}\ell_s(i')}}.

Proof. We prove by backward induction on TsT_s. When Ts=TeT_s=T_e, the conclusion holds since we sample iTei_{T_e} exactly according to the desired distribution. Now consider Ts=t′∈[Te−1]T_s=t'\in[T_e-1] and suppose that the result holds for all Ts≥t′+1T_s\ge t'+1. Fix some it′=k∈[N]i_{t'}=k\in[N]. Define t0=t′t_0=t' and

tj=min⁡(Te,max⁡(tj−1+1,d(tj−1,it′,j))).t_j=\min\left(T_e,\max(t_{j-1}+1,d(t_{j-1},i_{t'},j))\right).
Algorithm 2: An auxiliary algorithm
Input: starting point $T_s$, ending point $T_e$, learning rate $\eta$, delay function $d : \mathbb{Z}^{3} \to \mathbb{N}$
1  $u \leftarrow 1$ and $t_0 \leftarrow T_s$
2  Sample $i_{T_s} \leftarrow i$ with probability $\frac{e^{-\eta\sum_{s=1}^{T_s-1}\ell_s(i)}}{\sum_{j\in[N]}e^{-\eta\sum_{s=1}^{T_s-1}\ell_s(j)}}$ for $i\in[N]$
3  Observe $\ell_{T_s}$ and suffer loss $\ell_{T_s}(i_{T_s})$
4  for $t=T_s+1,\ldots,T_e$ do
5    if $t\ge d(t_{u-1},i_{t_{u-1}},u)$ or $t=T_e$ then
6      $r_u\leftarrow\sum_{s=t_{u-1}}^{t-1}\ell_s(i_{t-1})$
7      Sample $Z_u$ from $\operatorname{Ber}(e^{-\eta r_u})$
8      if $Z_u=1$ then
9        $i_t\leftarrow i_{t-1}$
10     else
11       Sample $i_t\leftarrow i$ with probability $\frac{e^{-\eta\sum_{s=1}^{t-1}\ell_s(i)}}{\sum_{j\in[N]}e^{-\eta\sum_{s=1}^{t-1}\ell_s(j)}}$ for $i\in[N]$
12     end
13     $t_u\leftarrow t$
14     $u\leftarrow u+1$
15   else
16     $i_t\leftarrow i_{t-1}$
17   end
18   Observe $\ell_t$ and suffer loss $\ell_t(i_t)$
19 end

These are exactly the tut_u’s in Algorithm 2 on the event it′=⋯=iTe−1=ki_{t'}=\cdots=i_{T_e-1}=k. Let mm be the first index such that tm=Tet_m=T_e. Note that

Pr⁡[Z1=⋯=Zm=1∣it′=k]=e−η∑s=t′Te−1ℓs(k).\Pr[Z_1=\cdots=Z_m=1\mid i_{t'}=k]=e^{-\eta\sum_{s=t'}^{T_e-1}\ell_s(k)}.

Moreover, by the induction hypothesis, we have

Pr⁡[iTe=i∣Z1=⋯=Zj−1=1,Zj=0,it′=k]=e−η∑s=t′Te−1ℓs(i)∑i′∈[N]e−η∑s=t′Te−1ℓs(i′)\Pr[i_{T_e}=i\mid Z_1=\cdots=Z_{j-1}=1,Z_j=0,i_{t'}=k] = \frac{e^{-\eta\sum_{s=t'}^{T_e-1}\ell_s(i)}}{\sum_{i'\in[N]}e^{-\eta\sum_{s=t'}^{T_e-1}\ell_s(i')}}

for any j∈[m]j\in[m] since the learning process starting from tjt_j can be seen as running Algorithm 2 with dd shifted by jj along the third dimension and Ts=tjT_s=t_j. For simplicity, write wt(i)=e−η∑s=1t−1ℓs(i)w_t(i)=e^{-\eta\sum_{s=1}^{t-1}\ell_s(i)} and Φt=∑i∈[N]wt(i)\Phi_t=\sum_{i\in[N]}w_t(i) for t∈[Te]t\in[T_e]. Note that iTe≠it′i_{T_e}\ne i_{t'} only if Zj=0Z_j=0 for some jj. Therefore, we have

Pr⁡[iTe=i∣it′=k]=(1−e−η∑s=t′Te−1ℓs(k))⋅wTe(i)ΦTe\Pr[i_{T_e}=i\mid i_{t'}=k] = \left(1-e^{-\eta\sum_{s=t'}^{T_e-1}\ell_s(k)}\right)\cdot\frac{w_{T_e}(i)}{\Phi_{T_e}}

for i≠ki\ne k and

Pr⁡[iTe=k∣it′=k]=e−η∑s=t′Te−1ℓs(k)+(1−e−η∑s=t′Te−1ℓs(k))wTe(k)ΦTe.\Pr[i_{T_e}=k\mid i_{t'}=k] = e^{-\eta\sum_{s=t'}^{T_e-1}\ell_s(k)} + \left(1-e^{-\eta\sum_{s=t'}^{T_e-1}\ell_s(k)}\right)\frac{w_{T_e}(k)}{\Phi_{T_e}}.

As a consequence, we have

Pr⁡[iTe=i]=∑k∈[N]Pr⁡[iTe=i∣it′=k]⋅Pr⁡[it′=k]=∑k∈[N](1−e−η∑s=t′Te−1ℓs(k))⋅wTe(i)ΦTe⋅wt′(k)Φt′+e−η∑s=t′Te−1ℓs(i)⋅wt′(i)Φt′=wTe(i)ΦTe⋅Φt′−ΦTeΦt′+wTe(i)Φt′=wTe(i)ΦTe\begin{aligned} \Pr[i_{T_e}=i] = \sum_{k\in[N]}\Pr[i_{T_e}=i\mid i_{t'}=k]\cdot\Pr[i_{t'}=k] \\ &= \sum_{k\in[N]} \left(1-e^{-\eta\sum_{s=t'}^{T_e-1}\ell_s(k)}\right)\cdot\frac{w_{T_e}(i)}{\Phi_{T_e}}\cdot\frac{w_{t'}(k)}{\Phi_{t'}} + e^{-\eta\sum_{s=t'}^{T_e-1}\ell_s(i)}\cdot\frac{w_{t'}(i)}{\Phi_{t'}} \\ &= \frac{w_{T_e}(i)}{\Phi_{T_e}}\cdot\frac{\Phi_{t'}-\Phi_{T_e}}{\Phi_{t'}} + \frac{w_{T_e}(i)}{\Phi_{t'}} \\ &= \frac{w_{T_e}(i)}{\Phi_{T_e}} \end{aligned}

as desired. ∎

We leverage the fact that Algorithm 2 behaves similarly to Algorithm 1 before round TeT_e when Ts=1T_s = 1: Lemma 3.2 and Lemma 3.3 suggest that the first modification has little impact, while the second modification can be seen as fixing the random coins used by the AboveThreshold mechanisms (see Appendix § 8 for a more detailed explanation). By analyzing their behavior at round TeT_e and applying the above lemma, we can argue that with high probability, the output distribution of Algorithm 1 at each round is pointwise at most eO(η(τ+log⁡T/ε1))≈1+O(ητ+ηlog⁡T/ε1)e^{O(\eta(\tau+\log T/\varepsilon_1))} \approx1 + O(\eta\tau+ \eta\log T/\varepsilon_1) times that of the multiplicative weights mechanism. This leads to the following regret bound.

Lemma 3.5. Suppose τ≥8(ln⁡T+2ln⁡(2T))ε2−1+1ε2−1≥1\tau\ge\frac{8(\ln T+2\ln(2T))}{\varepsilon^2-1}+\frac{1}{\varepsilon^2-1}\ge1, 0<ητ≤10 < \eta\tau\le1, and V≥71(ln⁡N+ηL⋆+1)+280ln⁡TV \ge71(\ln N+\eta L^\star+1)+280\ln T. The expected regret of Algorithm 1 is at most

O(log⁡Nη+ητL⋆).O\left(\frac{\log N}{\eta}+\eta\tau L^\star\right).

Proof. Let β1=1/T\beta_1 = 1/T. Since the regret cannot be larger than TT, it suffices to prove the desired conclusion conditioned on the event in Lemma 3.2. As argued in the proof of Lemma 3.3, for any u≥1u \ge1 we have

ru=∑s=tu−1tu−1ℓs(itu−1).r_u=\sum_{s=t_{u-1}}^{t_u-1}\ell_s(i_{t_{u-1}}).

By Lemma 3.2, there exists Δ=τ+O(log⁡T/ε1)+1=O(τ)\Delta=\tau+O(\log T/\varepsilon_1)+1=O(\tau) such that ru≤Δr_u\le\Delta for all u≥1u\ge1.

We first prove the result under the condition that V≥TV\ge T. Fix a realization of the random coins used by the AboveThreshold mechanisms and let Q^t(i)\widehat Q_t(i) be the probability that Algorithm 1 outputs it=ii_t=i. Since V≥TV\ge T, there is no restriction on the number of updates. Hence, this realization induces a delay function dd so that Algorithm 1 and Algorithm 2 (with this delay function dd and Ts=1T_s=1) behave identically in the first t−1t-1 rounds.

Let PtP_t be as defined in Lemma 2.1 and consider any i∈[N]i\in[N]. By Lemma 3.4 with 1=Ts<Te=t1=T_s<T_e=t, Algorithm 2 outputs it=ii_t=i with probability Pt(i)P_t(i). Since it produces it−1=ii_{t-1}=i with probability Q^t−1(i)\widehat Q_{t-1}(i), we have Pt(i)≥Q^t−1(i)⋅e−ηΔP_t(i)\ge\widehat Q_{t-1}(i)\cdot e^{-\eta\Delta}. Now consider Algorithm 1. If it outputs it−1≠ii_{t-1}\ne i, then the probability that it outputs it=ii_t=i is at most (1−e−ηΔ)Pt(i)(1-e^{-\eta\Delta})P_t(i). As a consequence, we have

Q^t(i)≤Q^t−1(i)+(1−Q^t−1(i))⋅(1−e−ηΔ)Pt(i)≤eηΔPt(i)+(1−e−ηΔ)Pt(i)≤e2ηΔPt(i),\begin{aligned} \widehat Q_t(i)&\le\widehat Q_{t-1}(i)+(1-\widehat Q_{t-1}(i))\cdot(1-e^{-\eta\Delta})P_t(i)\\ &\le e^{\eta\Delta}P_t(i)+(1-e^{-\eta\Delta})P_t(i)\\ &\le e^{2\eta\Delta}P_t(i), \end{aligned}

where the last inequality is due to the fact that 1+x−1/x≤x21+x-1/x\le x^2 for x≥1x\ge1. Moreover, we have Q^1(i)=P1(i)\widehat Q_1(i)=P_1(i) since we sample i1i_1 uniformly at random. Thus, Q^t(i)≤e2ηΔPt(i)\widehat Q_t(i)\le e^{2\eta\Delta}P_t(i) for all t∈[T]t\in[T].

By Lemma 2.1, the expected regret of Algorithm 1 with V≥TV\ge T is

∑t=1T∑i∈[N]Q^t(i)ℓt(i)−L⋆≤e2ηΔ∑t=1T∑i∈[N]Pt(i)ℓt(i)−L⋆=e2ηΔ⋅O(log⁡Nη+ηL⋆)+(e2ηΔ−1)L⋆=O(log⁡Nη+ητL⋆)\begin{aligned} \sum_{t=1}^{T}\sum_{i\in[N]}\widehat Q_t(i)\ell_t(i)-L^\star \le e^{2\eta\Delta}\sum_{t=1}^{T}\sum_{i\in[N]}P_t(i)\ell_t(i)-L^\star\\ &= e^{2\eta\Delta}\cdot O\left(\frac{\log N}{\eta}+\eta L^\star\right)+(e^{2\eta\Delta}-1)L^\star\\ &=O\left(\frac{\log N}{\eta}+\eta\tau L^\star\right) \end{aligned}

because ηΔ=O(ητ)=O(1)\eta\Delta=O(\eta\tau)=O(1).

Let Qt(i)Q_t(i) be the probability that Algorithm 1 outputs it=ii_t=i with VV as in the lemma statement. Applying Lemma 3.3 with β2=1/T\beta_2=1/T, we obtain Pr⁡[vT<V]≥1−1/T\Pr[v_T<V]\ge1-1/T. We can decompose Qt(i)Q_t(i) as Pr⁡[vT<V]Qt0(i)+Pr⁡[vT≥V]Qt1(i)\Pr[v_T<V]Q_t^0(i)+\Pr[v_T\ge V]Q_t^1(i), where Qt0(i)Q_t^0(i) and Qt1(i)Q_t^1(i) are the probabilities of outputting it=ii_t=i conditioned on vT<Vv_T<V and vT≥Vv_T\ge V, respectively. We can also write Q^t(i)=Pr⁡[vT<V]Q^t0(i)+Pr⁡[vT≥V]Q^t1(i)\widehat Q_t(i)=\Pr[v_T<V]\widehat Q_t^0(i)+\Pr[v_T\ge V]\widehat Q_t^1(i) in the same way. For any t∈[T]t\in[T], we have

∑i∈[N]∣Qt(i)−Q^t(i)∣≤∑i∈[N]Pr⁡[vT<V]∣Qt0(i)−Q^t0(i)∣+Pr⁡[vT≥V]∣Qt1(i)−Q^t1(i)∣\sum_{i\in[N]}|Q_t(i)-\widehat Q_t(i)| \le\sum_{i\in[N]}\Pr[v_T<V]\left|Q_t^0(i)-\widehat Q_t^0(i)\right| +\Pr[v_T\ge V]\left|Q_t^1(i)-\widehat Q_t^1(i)\right|
≤2Pr⁡[vT≥V]≤2T\begin{aligned} \le2\Pr[v_T\ge V] \\ &\le\frac{2}{T} \end{aligned}

since Qt0(i)=Q^t0(i)Q_t^0(i)=\widehat{Q}_t^0(i). Consequently,

∑t=1T∑i∈[N]Qt(i)ℓt(i)−∑t=1T∑i∈[N]Q^t(i)ℓt(i)≤∑t=1T∑i∈[N]∣Qt(i)−Q^t(i)∣≤2.\sum_{t=1}^{T}\sum_{i\in[N]} Q_t(i)\ell_t(i)-\sum_{t=1}^{T}\sum_{i\in[N]} \widehat{Q}_t(i)\ell_t(i)\leq\sum_{t=1}^{T}\sum_{i\in[N]}\lvert Q_t(i)-\widehat{Q}_t(i)\rvert\leq2.

Applying the triangle inequality leads to the desired result.

Choosing η=Θ~(1/L⋆)\eta=\widetilde{\Theta}(1/\sqrt{L^\star}) minimizes the regret bound in Lemma 3.5. However, we cannot do this directly since L⋆L^\star is unknown at the beginning. This issue can be circumvented by applying the standard doubling trick, which starts by assuming that L⋆L^\star is small and doubles the estimated value once the estimate becomes inaccurate. We defer the detailed implementation to Appendix § 7.

Lower bound for adaptive adversaries

In this section, we briefly discuss how we establish the lower bound for adaptive inputs. We utilize a lower bound in [3], which states that every adaptively (ε,δ)(\varepsilon,\delta)-differentially private OPE algorithm with N≥2TN\geq2T experts must incur Ω(T)\Omega(T) regret in the high-privacy regime where ε=O~(1/T)\varepsilon=\widetilde{O}(1/\sqrt{T}), even if L⋆=0L^\star=0. Now suppose A\mathcal{A} is an adaptively (ε,δ)(\varepsilon,\delta)-differentially private OPE algorithm with ε≤1\varepsilon\leq1 and regret at most RA(T)R_{\mathcal{A}}(T). We create an algorithm Aq\mathcal{A}_q that simulates A\mathcal{A}, forwards A\mathcal{A}’s outputs as its own, and feeds the loss function Ber⁡(q)ℓt\operatorname{Ber}(q)\ell_t to A\mathcal{A}. This can be seen as an extension of the canonical “privacy amplification by subsampling” technique to the online setting. We prove that Aq\mathcal{A}_q has privacy parameter O(qε)O(q\varepsilon) and regret at most RA(T)/qR_{\mathcal{A}}(T)/q. Applying the lower bound in [3] to Aq\mathcal{A}_q with q=Θ~(min⁡(1/T,1/(εT)))q=\widetilde{\Theta}(\min(1/\sqrt{T},1/(\varepsilon T))) yields RA(T)/q=Ω(T)R_{\mathcal{A}}(T)/q=\Omega(T). Rearranging this gives RA(T)=Ω(qT)=Ω~(min⁡(T,T/ε))R_{\mathcal{A}}(T)=\Omega(qT)=\widetilde{\Omega}(\min(\sqrt{T},\sqrt{T}/\varepsilon)).

The main technical challenge lies in proving the privacy amplification result in the adaptive setting, which requires a more sophisticated analysis than in the oblivious setting. We defer the formal proof to Appendix § 9.

Discussion and future work

In this work, we propose the first differentially private algorithm for OPE that achieves a data-dependent regret bound of O~(L⋆)\widetilde{O}(\sqrt{L^\star}), extending the previous O~(T)\widetilde{O}(\sqrt{T}) bound to the low-loss regime. Our result matches the non-private lower bound Ω(L⋆log⁡N+log⁡N)\Omega(\sqrt{L^\star\log N}+\log N) up to poly-logarithmic factors for constant privacy parameters, suggesting that the cost of privacy is mild for OPE with small losses. Our algorithm works against any oblivious adversary. We also show that Ω~(T)\widetilde{\Omega}(\sqrt{T}) regret is necessary for adaptive inputs, demonstrating that such an improvement cannot be made against an adaptive adversary.

When L⋆L^\star is large, our regret bounds are slightly worse than those in [3, 4] in certain parameter ranges. For example, suppose L⋆=Θ(T)L^\star=\Theta(T). Under pure DP, Asi et al. [3] gave an upper bound of O(Tlog⁡N/ε)O(\sqrt{T}\log N/\varepsilon). Our bound in Theorem 1.1 is larger than theirs by a factor of εlog⁡T/log⁡N\sqrt{\varepsilon\log T/\log N} when this factor is greater than 11 (when it is less than 11, our bound is better). Under approximate DP, Asi et al. [4] proved an upper bound of O(Tlog⁡N+T1/3log⁡Nlog⁡(T/δ)/ε2/3)O(\sqrt{T\log N}+T^{1/3}\log N\log(T/\delta)/\varepsilon^{2/3}). The first term in our bound in Theorem 1.2 is larger than that in their bound by a factor of O(log⁡T/ε)O(\sqrt{\log T/\varepsilon}). An interesting future direction is to investigate whether our bounds can be further improved to match these results.

Acknowledgments and Disclosure of Funding

The research was supported in part by an NSFC grant 62432008, RGC RIF grant R6021-20, an RGC TRS grant T43-513/23N-2, RGC CRF grants C7004-22G, C1029-22G and C6015-23G, NSFC/RGC grant CRS_HKUST601/24 and RGC GRF grants 16207423, 16203824 and 16216725.

Algorithm without prior knowledge of L⋆L^\star

In this section, we show how to construct an algorithm without prior knowledge of L⋆L^\star. We first prove regret bounds when some estimate L′≥L⋆L' \ge L^\star is given.

Theorem A.1. Let ε≤1\varepsilon\le1 and L′>0L' > 0. There exists an ε\varepsilon-differentially private algorithm for OPE with expected regret

O((log⁡N+log⁡Nlog⁡T)⋅L′ε)+ι1O\left(\left(\log N+\sqrt{\log N\log T}\right)\cdot\sqrt{\frac{L'}{\varepsilon}}\right)+\iota_1

whenever L′≥L⋆L' \ge L^\star, where ι1=O(log⁡2N/ε+log⁡Nlog⁡T/ε)\iota_1=O(\log^2 N/\varepsilon+\log N\log T/\varepsilon).

Proof. We run Algorithm 1 with ε1=ε2=ε/3\varepsilon_1=\varepsilon_2=\varepsilon/3, τ=8(ln⁡T+2ln⁡(2T))/ε1+1/(eε2−1)\tau=8(\ln T+2\ln(2T))/\varepsilon_1+1/(e^{\varepsilon_2}-1),

η=min⁡(ε1278ln⁡N+1296,ε5040ln⁡T,ε1278L′,εln⁡NL′ln⁡T),\eta=\min\left(\frac{\varepsilon}{1278\ln N+1296},\frac{\varepsilon}{5040\ln T},\sqrt{\frac{\varepsilon}{1278L'}},\sqrt{\frac{\varepsilon\ln N}{L'\ln T}}\right),

and V=⌈71(ln⁡N+ηL′+1)+280ln⁡T⌉V=\lceil71(\ln N+\eta L'+1)+280\ln T\rceil. One can verify that η≤ε/3\eta\le\varepsilon/3, 2ηV≤ε/32\eta V\le\varepsilon/3, and ητ≤1\eta\tau\le1. By Lemma 3.1 and basic composition, the overall algorithm is ε\varepsilon-differentially private. By Lemma 3.5 and the fact that L⋆≤L′L^\star\le L', the expected regret is bounded by

O(log⁡Nη+log⁡Tη⋅ηL′).O\left(\frac{\log N}{\eta}+\frac{\log T}{\eta}\cdot\eta L'\right).

Plugging in the value of η\eta yields the desired result. □

Theorem A.2. Let ε≤1\varepsilon\le1, 0<δ≤1/20<\delta\le1/2, and L′>0L'>0. There exists an (ε,δ)(\varepsilon,\delta)-differentially private algorithm for OPE with expected regret

O(L′log⁡Nlog⁡Tε+log⁡N⋅min⁡((L′log⁡(1/δ))1/3ε2/3,L′ε))+ι2O\left(\sqrt{\frac{L'\log N\log T}{\varepsilon}}+\log N\cdot\min\left(\frac{(L'\log(1/\delta))^{1/3}}{\varepsilon^{2/3}},\sqrt{\frac{L'}{\varepsilon}}\right)\right)+\iota_2

whenever L′≥L⋆L'\ge L^\star, where ι2=O(log⁡3/2Nlog⁡(min⁡(1/δ,N))ε+log⁡Nlog⁡Tε)\iota_2=O\left(\frac{\log^{3/2}N\sqrt{\log(\min(1/\delta,N))}}{\varepsilon}+\frac{\log N\log T}{\varepsilon}\right).

Proof. We run Algorithm 1 with ε1=ε2=ε/3\varepsilon_1=\varepsilon_2=\varepsilon/3, τ=8(ln⁡T+2ln⁡(2T))/ε1+1/(eε2−1)\tau=8(\ln T+2\ln(2T))/\varepsilon_1+1/(e^{\varepsilon_2}-1),

η=min⁡(η1,η2,η3,η4,1/τ),\eta=\min(\eta_1,\eta_2,\eta_3,\eta_4,1/\tau),

and V=⌈71(ln⁡N+ηL′+1)+280ln⁡T⌉V=\lceil71(\ln N+\eta L'+1)+280\ln T\rceil, where

  • η1=max⁡(ε18⋅⌈71ln⁡N+72⌉,ε362⋅⌈71ln⁡N+72⌉ln⁡(3/δ))\eta_1=\max\left(\frac{\varepsilon}{18\cdot\lceil71\ln N+72\rceil},\frac{\varepsilon}{36\sqrt{2\cdot\lceil71\ln N+72\rceil\ln(3/\delta)}}\right).

  • $\eta_2=\max\left(\frac{\varepsilon}{18\cdot\lceil280\ln T\rceil},\frac{\varepsilon}{36\sqrt{2\cdot\lceil280\ln T\rceil\ln(3/\delta)}}\right) \ldots

  • η3=max⁡(ε/(1278L′),ε2/3/(184032L′ln⁡(3/δ))1/3)\eta_3 = \max\left(\sqrt{\varepsilon/(1278L')}, \varepsilon^{2/3}/(184032L'\ln(3/\delta))^{1/3}\right).

  • η4=εln⁡N/(L′ln⁡T)\eta_4 = \sqrt{\varepsilon\ln N/(L'\ln T)}.

Note that ⌈71(ln⁡N+ηL′+1)+280ln⁡T⌉≤⌈71ln⁡N+72⌉+⌊71ηL′⌋+⌈280ln⁡T⌉\lceil71(\ln N+\eta L'+1)+280\ln T\rceil\le\lceil71\ln N+72\rceil+\lfloor71\eta L'\rfloor+\lceil280\ln T\rceil. By basic and advanced composition, we have

Comp⁡δ(V,2η)≤Comp⁡δ/3(⌈71ln⁡N+72⌉,2η)+Comp⁡δ/3(⌊71ηL′⌋,2η)+Comp⁡δ/3(⌈280ln⁡T⌉,2η)≤ε/9+ε/9+ε/9=ε/3.\begin{aligned} \operatorname{Comp}_{\delta}(V,2\eta) &\le\operatorname{Comp}_{\delta/3}(\lceil71\ln N+72\rceil,2\eta)+\operatorname{Comp}_{\delta/3}(\lfloor71\eta L'\rfloor,2\eta)+\operatorname{Comp}_{\delta/3}(\lceil280\ln T\rceil,2\eta)\\ &\le\varepsilon/9+\varepsilon/9+\varepsilon/9\\ &=\varepsilon/3. \end{aligned}

Applying Lemma 3.1 proves the privacy guarantee. Since η≤1\eta\le1, by Lemma 3.5 and the fact that L⋆≤L′L^\star\le L', the expected regret is bounded by

O(log⁡Nη+log⁡Tε⋅ηL′).O\left(\frac{\log N}{\eta}+\frac{\log T}{\varepsilon}\cdot\eta L'\right).

Plugging in the value of η\eta yields the desired result.

Algorithm 3: Algorithm without prior knowledge of L^\star
1  k ← 1, b_1 ← 1, and α ← 16(ln T + 2 ln(2T))/ε
2  Initiate an instance of AboveThreshold with privacy parameter ε/2 and threshold 4α
3  Initiate an instance of Alg with L′ = 6α
4  for t = 1, . . . , T do
5      Obtain i_t from Alg
6      Observe ℓ_t and suffer loss ℓ_t(i_t)
7      Define query q_t ≡ min_{i∈[N]} ∑_{s=b_k}^{t} ℓ_s(i)
8      Feed q_t to AboveThreshold and obtain outcome σ_t
9      if σ_t = ⊤ then
10         k ← k + 1
11         b_k ← t + 1
12         Terminate the existing instance of Alg and initiate a new one with L′ = 3 · 2^kα
13         Initiate an instance of AboveThreshold with privacy parameter ε/2 and threshold (3 · 2^k − 2)α
14     end
15 end

The overall algorithm works as follows. We start with L′=6αL'=6\alpha and employ an AboveThreshold mechanism to test if the current cumulative loss of the best expert exceeds L′L'. Once this happens, we double the value of L′L' and initiate new instances of both the learning algorithm and the AboveThreshold mechanism. This procedure is formalized in Algorithm 3 and the regret guarantee is established in the lemma below. Applying this framework to the two preceding theorems yields our main results in § 1.1.

Lemma A.3. If Alg is an (ε/2,δ)(\varepsilon/2,\delta)-differentially private OPE algorithm for every L′>0L'>0 and has expected regret at most R(L⋆)R(L^\star) whenever L′≥L⋆L'\ge L^\star, then Algorithm 3 is (ε,δ)(\varepsilon,\delta)-differentially private and has expected regret at most

1+∑k=1KR(3⋅2kα),1+\sum_{k=1}^{K}R(3\cdot2^k\alpha),

where α=16(ln⁡T+2ln⁡(2T))ε\alpha=\frac{16(\ln T+2\ln(2T))}{\varepsilon} and K=⌊log⁡2(max⁡(4L⋆/(3α),2))⌋K=\left\lfloor\log_2\left(\max(4L^\star/(3\alpha),2)\right)\right\rfloor.

Proof. We first prove the privacy guarantee. Consider the augmented transcript consisting of the termination times of all AboveThreshold instances together with the outputs of all instances of Alg. We first claim that the sequence of AboveThreshold termination times is ε/2\varepsilon/2-differentially private. Consider two neighboring loss sequences that differ at round t~\tilde{t}, and condition on an arbitrary common prefix of the termination-time transcript. There is at most one AboveThreshold instance whose queries contain the differing loss. All earlier instances receive identical query streams. For the affected instance, every query has sensitivity at most 1, so its termination time is ε/2\varepsilon/2-differentially private. Conditioned on a common termination time for this instance, every subsequent instance starts strictly after round t~\tilde{t}, and therefore receives identical query streams on the two neighboring sequences. By the chain rule, the entire sequence of termination times is ε/2\varepsilon/2-differentially private.

Now fix any sequence of termination times. This also fixes a partition of the loss sequence into disjoint subsequences. The instances of Alg are run independently on these disjoint subsequences, and at most one of them receives the differing loss. By parallel composition, their joint output is (ε/2,δ)(\varepsilon/2,\delta)-differentially private. Applying basic composition to the termination-time transcript and the outputs of Alg, followed by post-processing, shows that Algorithm 3 is (ε,δ)(\varepsilon,\delta)-differentially private.

We then prove utility. By Theorem 2.3 and the union bound, with probability 1−1/T1-1/T all applications of AboveThreshold are α\alpha-accurate. We first prove a regret bound conditioned on this event. Suppose σt=⊤\sigma_t=\top at round tt. Before increasing the value of kk, we have

(3⋅2k−3)α≤qt≤qt−1+1≤(3⋅2k−1)α+1<3⋅2kα.(3\cdot2^k-3)\alpha\le q_t \le q_{t-1}+1 \le(3\cdot2^k-1)\alpha+1 < 3\cdot2^k\alpha.

By our assumption, the algorithm Alg with L′=3⋅2kαL'=3\cdot2^k\alpha incurs an expected regret of at most R(3⋅2kα)R(3\cdot2^k\alpha) during [bk,t]=[bk,bk+1−1][b_k,t]=[b_k,b_{k+1}-1]. Moreover, we have

L⋆=min⁡i∈[N]∑t=1Tℓt(i)≥qt≥(3⋅2k−3)α≥3⋅2k−1α.L^\star=\min_{i\in[N]}\sum_{t=1}^{T}\ell_t(i)\ge q_t\ge(3\cdot2^k-3)\alpha\ge3\cdot2^{k-1}\alpha.

This implies that

3⋅2k+1α≤4L⋆.3\cdot2^{k+1}\alpha\le4L^\star.

Hence, whenever a new bucket k+1k+1 is initiated, we have k+1≤Kk+1\le K. Since the algorithm starts with k=1k=1, the total number of buckets is therefore at most KK. For the final bucket, if no ⊤\top is returned, the accuracy of AboveThreshold implies qT≤(3⋅2k−1)α<3⋅2kαq_T\le(3\cdot2^k-1)\alpha<3\cdot2^k\alpha, so the same regret bound applies. Summing the regret over all buckets gives ∑k=1KR(3⋅2kα)\sum_{k=1}^{K}R(3\cdot2^k\alpha).

Since the regret can be at most TT, the unconditional expected regret is at most

(1−1/T)∑k=1KR(3⋅2kα)+1/T⋅T≤1+∑k=1KR(3⋅2kα).(1-1/T)\sum_{k=1}^{K}R(3\cdot2^k\alpha)+1/T\cdot T\le1+\sum_{k=1}^{K}R(3\cdot2^k\alpha).

Construction of the delay function

In this section, we show how to construct the delay function when the randomness of the AboveThreshold mechanisms is fixed. Consider an AboveThreshold mechanism that is initiated at round ss. It is implemented as in Algorithm 4.

Note that in each round t∈[T]t\in[T] we always draw a random variable νt\nu_t. Hence, we can fix the values of ν1,…,νT\nu_1,\ldots,\nu_T at the beginning. Additionally, we draw ξ1,…,ξT\xi_1,\ldots,\xi_T, where ξu\xi_u denotes the variable ξ\xi used by the uu-th AboveThreshold mechanism.

Now suppose that in Algorithm 1 we initiate the uu-th AboveThreshold mechanism at round tu−1t_{u-1}. Then it will return σt=⊤\sigma_t=\top for the first tt satisfying

∑s=tu−1t−1ℓs(itu−1)+νt≥τ+ξu.\sum_{s=t_{u-1}}^{t-1}\ell_s(i_{t_{u-1}})+\nu_t\ge\tau+\xi_u.

As a consequence, we can define d(tu−1,itu−1,u)d(t_{u-1},i_{t_{u-1}},u) as this tt if such a tt exists, and as T+1T+1 otherwise. Doing this for every tuple (tu−1,itu−1,u)∈[T]×[N]×[T](t_{u-1},i_{t_{u-1}},u)\in[T]\times[N]\times[T] constructs the delay function dd.

Algorithm 4: AboveThreshold
Input: privacy parameter $\varepsilon$, threshold $\tau$
1 $\xi \leftarrow \operatorname{Lap}(2/\varepsilon)$
2 **for** $t=s+1,\ldots,T$ **do**
3 $\nu_t \leftarrow \operatorname{Lap}(4/\varepsilon)$
4 Receive $q_t$
5 **if** $q_t+\nu_t \ge \tau+\xi$ **then**
6 $\sigma_t \leftarrow \top$
7 **Halt.**
8 **else**
9 $\sigma_t \leftarrow \bot$
10 **end**
11 **end**

Lower bound for adaptive adversaries

Before presenting the proof, we first formally define differential privacy against an adaptive adversary. Let A\mathcal{A} be an online learner, D\mathcal{D} be an adversary, and b∈{0,1}b \in\{0,1\} be a hidden bit that is unknown to both A\mathcal{A} and D\mathcal{D}. Define the privacy game played between A\mathcal{A} and D\mathcal{D} as follows. At each round t∈[T]t \in[T], the adversary D\mathcal{D} generates two loss functions ℓt0\ell_t^0 and ℓt1\ell_t^1 and the algorithm produces an output iti_t, both based on the interaction history up to round t−1t-1. After these choices are made, A\mathcal{A} receives ℓtb\ell_t^b while D\mathcal{D} observes iti_t. During the entire game, the adversary D\mathcal{D} ensures that ℓt0=ℓt1\ell_t^0=\ell_t^1 for all t∈[T]∖{t~}t \in[T]\setminus\{\tilde{t}\}, where t~\tilde{t} is a special round that is chosen adaptively by D\mathcal{D} (i.e., the choice of t~\tilde{t} can depend on the interaction history before round t~\tilde{t}). Let View⁡A,D(b)\operatorname{View}_{\mathcal{A},\mathcal{D}}(b) denote the view of D\mathcal{D} in this privacy game, including the internal randomness of D\mathcal{D} and (i1,…,iT)(i_1,\ldots,i_T) produced by A\mathcal{A}. Differential privacy against adaptive adversaries is defined as follows.

Definition C.1 (Differential Privacy against Adaptive Adversaries [3]). An OPE algorithm A\mathcal{A} is adaptively (ε,δ)(\varepsilon,\delta)-differentially private if for any adversary D\mathcal{D} and any set OO of views, we have

Pr⁡[View⁡A,D(0)∈O]≤eεPr⁡[View⁡A,D(1)∈O]+δ.\Pr[\operatorname{View}_{\mathcal{A},\mathcal{D}}(0)\in O]\le e^\varepsilon\Pr[\operatorname{View}_{\mathcal{A},\mathcal{D}}(1)\in O]+\delta.

Our proof is based on the following lower bound from [3] that holds in the high-privacy regime.

Lemma C.2 (High-Privacy Lower Bound [3]). Let TT be sufficiently large and N≥2TN\ge2T. For any adaptively (ε,δ)(\varepsilon,\delta)-differentially private OPE algorithm with ε≤1/(Tln⁡T)\varepsilon\le1/(\sqrt{T}\ln T) and δ≤T−3\delta\le T^{-3}, there exists an adaptive adversary generating ℓ1,…,ℓT\ell_1,\ldots,\ell_T such that L⋆=0L^\star=0 and

E[∑t=1Tℓt(it)]=Ω(T).\mathbb{E}\left[\sum_{t=1}^{T}\ell_t(i_t)\right]=\Omega(T).

Remark. The above lemma can be obtained by setting ε≤1/(Tln⁡T)\varepsilon\le1/(\sqrt{T}\ln T) and δ≤T−3\delta\le T^{-3} in Theorem 9 of [3]. While the theorem statement does not explicitly state that L⋆=0L^\star=0, the proof actually constructs a realizable input sequence.

Our idea can be seen as extending the privacy amplification technique to the online setting.

Definition C.3 (Poisson Sampling). Given an OPE algorithm A\mathcal{A} and 0<q≤10<q\le1, define a new algorithm Aq\mathcal{A}_q as follows. It runs a copy of A\mathcal{A}. At each round tt, it first draws Zt∼Ber⁡(q)Z_t\sim\operatorname{Ber}(q). Then, it forwards that copy’s output iti_t as its own. After observing ℓt\ell_t, it feeds ℓ~t=Ztℓt\widetilde{\ell}_t=Z_t\ell_t to the copy.

We first establish the privacy guarantee of Aq\mathcal{A}_q. In the proof, we write P≈(ε,δ)QP\approx_{(\varepsilon,\delta)}Q to denote that distributions PP and QQ are (ε,δ)(\varepsilon,\delta)-close, i.e., they satisfy the inequalities defining DP:

P(O)≤eεQ(O)+δandQ(O)≤eεP(O)+δP(O)\le e^\varepsilon Q(O)+\delta\qquad\text{and}\qquad Q(O)\le e^\varepsilon P(O)+\delta

for any event OO.

Lemma C.4. Let A\mathcal{A} and Aq\mathcal{A}_q be defined as in Definition C.3. If A\mathcal{A} is adaptively (ε,δ)(\varepsilon,\delta)-differentially private, then Aq\mathcal{A}_q is adaptively (ln⁡(1+q(eε−1)),qδ)(\ln(1+q(e^\varepsilon-1)),q\delta)-differentially private.

Proof. Let D\mathcal{D} be any adversary that interacts with Aq\mathcal{A}_q. Write

Vb=View⁡Aq,D(b)V_b = \operatorname{View}_{\mathcal{A}_q,\mathcal{D}}(b)

for b∈{0,1}b \in\{0,1\}. Let PbP_b be the distribution of VbV_b. Introduce the following three auxiliary view distributions:

  • P−P^{-}: the distribution of D\mathcal{D}’s view in an auxiliary privacy game where Zt~Z_{\tilde{t}} is set deterministically to 0, while all other sampling coins are drawn as usual.

  • P0+P_0^{+}: the distribution of D\mathcal{D}’s view in an auxiliary privacy game with b=0b=0 where Zt~Z_{\tilde{t}} is set deterministically to 1, while all other sampling coins are drawn as usual.

  • P1+P_1^{+}: the distribution of D\mathcal{D}’s view in an auxiliary privacy game with b=1b=1 where Zt~Z_{\tilde{t}} is set deterministically to 1, while all other sampling coins are drawn as usual.

Since t~\tilde{t} is chosen based on the interaction history before round t~\tilde{t}, while Zt~Z_{\tilde{t}} is sampled independently at round t~\tilde{t}, we have

Pb=(1−q)P−+qPb+.P_b = (1-q)P^{-} + qP_b^{+}.

where the first term is due to the fact that A\mathcal{A} receives ℓ~t~=Zt~ℓt~b=0\tilde{\ell}_{\tilde{t}} = Z_{\tilde{t}}\ell_{\tilde{t}}^b = 0 whenever Zt~=0Z_{\tilde{t}}=0, regardless of the value of bb.

Now we derive privacy relations among P−P^{-}, P0+P_0^{+}, and P1+P_1^{+}. We first consider P0+P_0^{+} and P1+P_1^{+}. Construct an adversary D+\mathcal{D}^{+} that simulates D\mathcal{D} and at each round t≠t~t \ne\tilde{t} draws Zt∼Ber⁡(q)Z_t \sim\operatorname{Ber}(q) and generates

(ℓ~t0,ℓ~t1)=(Ztℓt0,Ztℓt1).(\tilde{\ell}_t^0,\tilde{\ell}_t^1)=(Z_t\ell_t^0,Z_t\ell_t^1).

At round t~\tilde{t}, it generates

(ℓ~t~0,ℓ~t~1)=(ℓt~0,ℓt~1).(\tilde{\ell}_{\tilde{t}}^0,\tilde{\ell}_{\tilde{t}}^1)=(\ell_{\tilde{t}}^0,\ell_{\tilde{t}}^1).

It is easy to check that D+\mathcal{D}^{+} is a valid adversary in the privacy game with A\mathcal{A}: it only generates different loss functions at round t~\tilde{t}. For b∈{0,1}b \in\{0,1\}, the resulting interaction is exactly the branch defining Pb+P_b^{+}. By the privacy guarantee of A\mathcal{A} and the fact that the view of D\mathcal{D} can be seen as a post-processing of D+\mathcal{D}^{+}’s view, we have P0+≈(ε,δ)P1+P_0^{+} \approx_{(\varepsilon,\delta)} P_1^{+}.

Next we compare P0+P_0^{+} with P−P^{-}. Construct an adversary D−\mathcal{D}^{-} that performs the same simulation as D+\mathcal{D}^{+} at round t≠t~t \ne\tilde{t}. At round t~\tilde{t}, it generates

(ℓ~t~0,ℓ~t~1)=(ℓt~0,0).(\tilde{\ell}_{\tilde{t}}^0,\tilde{\ell}_{\tilde{t}}^1)=(\ell_{\tilde{t}}^0,0).

For b=0b=0, the interaction is again the branch defining P0+P_0^{+}. For b=1b=1, the interaction becomes the branch defining P−P^{-}. Therefore, we have P0+≈(ε,δ)P−P_0^{+} \approx_{(\varepsilon,\delta)} P^{-}. We can similarly prove that P1+≈(ε,δ)P−P_1^{+} \approx_{(\varepsilon,\delta)} P^{-}.

We now prove the final conclusion. For any measurable set OO, write x=P0+(O)x=P_0^{+}(O), y=P1+(O)y=P_1^{+}(O), and z=P−(O)z=P^{-}(O). By the pairwise (ε,δ)(\varepsilon,\delta)-closeness of P0+P_0^{+}, P1+P_1^{+}, and P−P^{-}, we have x≤eεy+δx \le e^\varepsilon y+\delta and x≤eεz+δx \le e^\varepsilon z+\delta. Hence,

P0(O)=(1−q)z+qx≤(1−q)z+qeεmin⁡(y,z)+qδ≤(1+q(eε−1))((1−q)z+qy)+qδ=(1+q(eε−1))P1(O)+qδ,\begin{aligned} P_0(O) &= (1-q)z+qx \\ &\le(1-q)z+qe^\varepsilon\min(y,z)+q\delta\\ &\le(1+q(e^\varepsilon-1))((1-q)z+qy)+q\delta\\ &= (1+q(e^\varepsilon-1))P_1(O)+q\delta, \end{aligned}

where the second inequality follows because

(1+q(eε−1))((1−q)z+qy)−((1−q)z+qeεmin⁡(y,z))≥q(1−q)(eε−1)(z−min⁡(y,z))+q(1+q(eε−1))(y−min⁡(y,z))≥0.\begin{aligned} &(1+q(e^\varepsilon-1))((1-q)z+qy)-((1-q)z+qe^\varepsilon\min(y,z)) \\ &\ge q(1-q)(e^\varepsilon-1)(z-\min(y,z)) \\ &\quad+q(1+q(e^\varepsilon-1))(y-\min(y,z)) \\ &\ge0. \end{aligned}

By symmetry, P1(O)≤(1+q(eε−1))P0(O)+qδP_1(O) \le(1+q(e^\varepsilon-1))P_0(O)+q\delta. This proves the desired result.

Lemma C.5. Let A\mathcal{A} and Aq\mathcal{A}_q be defined as in Definition C.3. If A\mathcal{A} has expected cumulative loss at most RA(T)R_{\mathcal{A}}(T) for any adaptively generated realizable input sequence, then Aq\mathcal{A}_q has expected cumulative loss at most RA(T)/qR_{\mathcal{A}}(T)/q for any adaptively generated realizable input sequence.

Proof. Let ℓ1,…,ℓT\ell_1,\ldots,\ell_T be a realizable sequence generated by an adaptive adversary. There exists i⋆∈[N]i^\star\in[N] such that ℓt(i⋆)=0\ell_t(i^\star)=0 for all t∈[T]t \in[T]. By definition, ℓ~t(i⋆)=Ztℓt(i⋆)=0\widetilde{\ell}_t(i^\star)=Z_t\ell_t(i^\star)=0. This implies that the sequence ℓ~1,…,ℓ~T\widetilde{\ell}_1,\ldots,\widetilde{\ell}_T is also realizable. Therefore,

E[∑t=1TZtℓt(it)]=E[∑t=1Tℓ~t(it)]≤RA(T).\mathbb{E}\left[\sum_{t=1}^{T} Z_t\ell_t(i_t)\right]=\mathbb{E}\left[\sum_{t=1}^{T}\widetilde{\ell}_t(i_t)\right]\le R_A(T).

On the other hand, since ZtZ_t is independent of iti_t and ℓt\ell_t, we have

E[Ztℓt(it)]=E[Zt]E[ℓt(it)]=qE[ℓt(it)].(1)\mathbb{E}\left[Z_t\ell_t(i_t)\right]=\mathbb{E}[Z_t]\mathbb{E}[\ell_t(i_t)]=q\mathbb{E}[\ell_t(i_t)]. \tag*{(1)}

Summing over tt gives

qE[∑t=1Tℓt(it)]=E[∑t=1TZtℓt(it)]≤RA(T).q\mathbb{E}\left[\sum_{t=1}^{T}\ell_t(i_t)\right]=\mathbb{E}\left[\sum_{t=1}^{T}Z_t\ell_t(i_t)\right]\le R_A(T).

Rearranging the inequality yields the desired conclusion. □

Theorem C.6. Let TT be sufficiently large and N≥2TN\ge2T. For any adaptively (ε,δ)(\varepsilon,\delta)-differentially private OPE algorithm with ε≤1\varepsilon\le1 and δ≤T−3\delta\le T^{-3}, there exists an adaptive adversary generating ℓ1,…,ℓT\ell_1,\ldots,\ell_T such that L⋆=0L^\star=0 and

E[∑t=1Tℓt(it)]=Ω(min⁡{T,Tεlog⁡T}).\mathbb{E}\left[\sum_{t=1}^{T}\ell_t(i_t)\right]=\Omega\left(\min\left\{T,\frac{\sqrt{T}}{\varepsilon\log T}\right\}\right).

Proof. Suppose A\mathcal{A} is adaptively (ε,δ)(\varepsilon,\delta)-DP and has expected cumulative loss at most RA(T)R_{\mathcal{A}}(T) on realizable input sequences. Consider Aq\mathcal{A}_q in Definition C.3 with

q=min⁡{1,12εTln⁡T}.q=\min\left\{1,\frac{1}{2\varepsilon\sqrt{T}\ln T}\right\}.

Lemma C.4 establishes that Aq\mathcal{A}_q is adaptively (ln⁡(1+q(eε−1)),qδ)(\ln(1+q(e^\varepsilon-1)),q\delta)-differentially private. Since ε≤1\varepsilon\le1, we have

ln⁡(1+q(eε−1))≤2qε≤1Tln⁡T.\ln(1+q(e^\varepsilon-1))\le2q\varepsilon\le\frac{1}{\sqrt{T}\ln T}.

Moreover,

qδ≤δ≤T−3.q\delta\le\delta\le T^{-3}.

Therefore, Aq\mathcal{A}_q is adaptively (1/(Tln⁡T),T−3)(1/(\sqrt{T}\ln T),T^{-3})-differentially private. By Lemma C.2, Aq\mathcal{A}_q must incur an expected cumulative loss of Ω(T)\Omega(T). Lemma C.5 then yields

RA(T)=Ω(qT)=Ω(min⁡{T,Tεlog⁡T}).R_{\mathcal{A}}(T)=\Omega(qT)=\Omega\left(\min\left\{T,\frac{\sqrt{T}}{\varepsilon\log T}\right\}\right).

□

References

  1. [1]Naman Agarwal and Karan Singh. The price of differential privacy for online learning. In Proceedings of the 34th International Conference on Machine Learning, volume 70, pages 32–40, 2017.arxiv.org/abs/1701.07953
  2. [2]Hilal Asi, Vitaly Feldman, Tomer Koren, and Kunal Talwar. Near-optimal algorithms for private online optimization in the realizable regime. In Proceedings of the 40th International Conference on Machine Learning, volume 202, pages 1107–1120, 2023.arxiv.org/abs/2302.14154
  3. [3]Hilal Asi, Vitaly Feldman, Tomer Koren, and Kunal Talwar. Private online prediction from experts: Separations and faster rates. In Proceedings of the 36th Conference on Learning Theory, volume 195, pages 674–699, 2023.arxiv.org/abs/2210.13537
  4. [4]Hilal Asi, Tomer Koren, Daogao Liu, and Kunal Talwar. Private online learning via lazy algorithms. In Advances in Neural Information Processing Systems, volume 37, pages 112158–112183, 2024.arxiv.org/abs/2406.03620
  5. [5]Nicolo Cesa-Bianchi and Gábor Lugosi. Prediction, learning, and games. Cambridge University Press, 2006.
  6. [6]Nicolo Cesa-Bianchi, Yoav Freund, David Haussler, David P Helmbold, Robert E Schapire, and Manfred K Warmuth. How to use expert advice. Journal of the ACM, 44(3):427–485, 1997.
  7. [7]Cynthia Dwork and Aaron Roth. The algorithmic foundations of differential privacy. Foundations and Trends® in Theoretical Computer Science, 9(3–4):211–407, 2014.
  8. [8]Cynthia Dwork, Krishnaram Kenthapadi, Frank McSherry, Ilya Mironov, and Moni Naor. Our data, ourselves: Privacy via distributed noise generation. In Proceedings of the 25th Annual International Conference on the Theory and Applications of Cryptographic Techniques, pages 486–503, 2006.
  9. [9]Cynthia Dwork, Frank McSherry, Kobbi Nissim, and Adam Smith. Calibrating noise to sensitivity in private data analysis. In Proceedings of the 3rd Conference on Theory of Cryptography, pages 265–284, 2006.
  10. [10]Cynthia Dwork, Moni Naor, Omer Reingold, Guy N Rothblum, and Salil Vadhan. On the complexity of differentially private data release: Efficient algorithms and hardness results. In Proceedings of the 41st Annual ACM Symposium on Theory of Computing, pages 381–390, 2009.
  11. [11]Cynthia Dwork, Moni Naor, Toniann Pitassi, and Guy N Rothblum. Differential privacy under continual observation. In Proceedings of the 42nd Annual ACM Symposium on Theory of Computing, pages 715–724, 2010.DOI
  12. [12]Cynthia Dwork, Guy N Rothblum, and Salil Vadhan. Boosting and differential privacy. In Proceedings of the 51st Annual IEEE Symposium on Foundations of Computer Science, pages 51–60, 2010.DOI
  13. [13]Yoav Freund and Robert E Schapire. A decision-theoretic generalization of on-line learning and an application to boosting. Journal of Computer and System Sciences, 55(1):119–139, 1997.DOI
  14. [14]Sascha Geulen, Berthold Vöcking, and Melanie Winkler. Regret minimization for online buffering problems using the weighted majority algorithm. In Proceedings of the 23rd Conference on Learning Theory, pages 132–143, 2010.
  15. [15]James Hannan. Approximation to Bayes risk in repeated play. In Contributions to the Theory of Games, Volume III, volume 39 of Annals of Mathematics Studies, pages 97–139. Princeton University Press, 1957.
  16. [16]Marcus Hutter and Jan Poland. Adaptive online prediction by following the perturbed leader. Journal of Machine Learning Research, 6:639–660, 2005.DOI
  17. [17]Prateek Jain and Abhradeep Guha Thakurta. (Near) dimension independent risk bounds for differentially private learning. In Proceedings of the 31st International Conference on Machine Learning, volume 32, pages 476–484, 2014.
  18. [18]Adam Kalai and Santosh Vempala. Efficient algorithms for online decision problems. Journal of Computer and System Sciences, 71(3):291–307, 2005.
  19. [19]Nick Littlestone and Manfred K Warmuth. The weighted majority algorithm. Information and Computation, 108(2):212–261, 1994.
  20. [20]Frank McSherry and Kunal Talwar. Mechanism design via differential privacy. In Proceedings of the 48th Annual IEEE Symposium on Foundations of Computer Science, pages 94–103, 2007.
  21. [21]Adam Smith and Abhradeep Thakurta. (Nearly) optimal algorithms for private online learning in full-information and bandit settings. In Advances in Neural Information Processing Systems, volume 26, pages 2733–2741, 2013.
  22. [22]Salil Vadhan and Tianhao Wang. Concurrent composition of differential privacy. In Theory of Cryptography: 19th International Conference, pages 582–604. Springer, 2021.
  23. [23]Volodimir G Vovk. Aggregating strategies. In Proceedings of the Third Annual Workshop on Computational Learning Theory, pages 371–383, 1990.

Paper details

vlnc:W_zjq3d3rh

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

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

CC BY 4.0

Original source

  • Computer Science

Not recorded for this paper · View statement →

Looking for related papers…
Contents