WorksComputer Science
Private Online Prediction from Experts with Small Losses
Abstract
We consider online prediction from experts, a fundamental problem in machine learning, under differential privacy constraints. Existing private algorithms achieve near-optimal regret , where is the time horizon. However, this bound becomes suboptimal when , the cumulative loss of the best expert, is significantly less than . In this work, we present the first differentially private algorithm with regret , 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 regret is inevitable for adaptively generated inputs, even when .
Introduction
Online prediction from experts (OPE) is a fundamental problem in machine learning. In this problem, the learner receives a stream of loss functions . In each round , the learner chooses an expert before seeing and suffers loss . The learner aims to minimize its total loss, which is compared to that of the best expert in hindsight, denoted by . 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 , which is nearly optimal because it matches the 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 regret becomes less meaningful when the loss of the best expert is small because the regret itself can be substantially greater than , rendering the learner’s loss considerably higher than . As an illustration, suppose . An algorithm with regret may incur a loss of , which is times larger than . In contrast, when the total loss is only . 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 to yields a regret bound of [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 . Consequently, it remains unclear whether an regret bound is achievable in the private setting.
Our contribution
In this work, we assume that 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 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 be chosen by an oblivious adversary. Given , there exists an -differentially private algorithm for OPE with expected regret
where .
Theorem 1.2. Let be chosen by an oblivious adversary. Given and , there exists an -differentially private algorithm for OPE with expected regret
where .
Comparison with previous results. When , our results recover the bounds obtained by Asi et al. [2] for the realizable setting. When grows, our algorithm yields a quadratic improvement over their regret bound. Compared to the regret obtained by Asi et al. [3, 4], our results are significantly better when is much smaller than .
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 regret even if . We additionally prove that it remains impossible under approximate DP by providing an lower bound, which also holds when .
Theorem 1.3. Let be sufficiently large and . Any adaptively -differentially private OPE algorithm with and must incur an expected regret when are chosen by an adaptive adversary, even if it is promised that .
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 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 under pure DP and 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 . However, these results are unfavorable when is much smaller than . Asi et al. [2] studied the realizable setting, where , and gave algorithms with regret. Their algorithms can be extended to the agnostic setting where . Nevertheless, the resulting regret bound is , which is far from optimal.
Preliminaries
Online prediction from experts can be formulated as a -round game played between a learner and an adversary. In this work, we assume an oblivious adversary who determines a sequence of loss functions in advance and releases them to the learner one by one, where every assigns each of the experts a loss in . In round , the learner chooses an expert before receiving and incurs loss . The performance of the learner is assessed by the expected regret, defined as
For ease of notation, we write to denote . Note that 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 samples such that
where is the learning rate. The following lemma provides an upper bound on its expected regret.
We then introduce the notion of differential privacy in the context of OPE.
Definition 2.2 (Differential Privacy [9, 8]). An algorithm is -differentially private if, for any pair of sequences and that differ in a single function, and for any subset of the output range, we have
When , we usually omit and say is -differentially private. This case is referred to as pure DP, while the case where 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 has sensitivity if for any pair of sequences and that differ in a single function. Given a threshold , there exists an -differentially private AboveThreshold that at each round receives a sensitivity-1 query and outputs , continuing until it either produces the first or has processed all queries. If there are at most queries, then with probability , the AboveThreshold mechanism is -accurate for
Namely, if the mechanism halts after rounds, we have for all with and for all with .
Every step of the multiplicative weights method is exactly the exponential mechanism with privacy parameter . 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 be defined as in Lemma 2.1. The process of sampling from is -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 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 ), 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, , i.e., the loss associated with the currently selected expert ). 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 . By advanced composition, this imposes an upper bound on the learning rate , which in turn yields an regret bound according to Lemma 2.1. This exceeds our desired regret whenever .
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 be the smallest such that the composition of -differentially private algorithms is -differentially private. We prove the privacy guarantee of Algorithm 1 in the following lemma.
Lemma 3.1. Algorithm 1 is -differentially private for .
Proof. We analyze the augmented transcript consisting of the initial expert , the outputs of all AboveThreshold instances, the 's, and the experts generated at the (at most ) 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 's, and the at most 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, '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 -differentially private. Let the two neighboring sequences and differ at round . 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 and .
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 and , learning rate , threshold , limit on updates
, , and
Sample uniformly from
Initiate an instance of AboveThreshold with privacy parameter and threshold
Observe and suffer loss
for do
if then
Define query
Feed to AboveThreshold and obtain outcome
if then
Sample from
if then
else
Sample with probability for
end
Initiate an instance of AboveThreshold with privacy parameter and threshold
else
end
else
end
Observe and suffer loss
end
query issued by this instance has sensitivity at most 1. By the privacy guarantee of AboveThreshold, the transcript generated by this instance is -differentially private. If this instance terminates, then conditioned on a common transcript through its termination, every subsequent AboveThreshold instance starts after round . Consequently, all subsequent instances receive identical query streams on and . 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 -differentially private.
We next analyze the privacy loss from generating the 's. Let and denote the 's generated on neighboring sequences and , respectively. Similarly, let 's and 's denote the -values computed on and , respectively. As above, all probabilities involving 's are understood to be conditioned on the relevant fixed common transcript prefix.
Along any common transcript path, the intervals corresponding to generated 's are disjoint. Hence, there is at most one index such that and differ at round . If such does not exist, then for every , which implies that the two -transcripts have identical conditional distributions.
Otherwise, we have for all and . Therefore,
Moreover, since , we have
where we use the fact that for . For every later , condition on an arbitrary common transcript prefix up to the generation of . The selected expert and the interval are then fixed and identical on the two neighboring sequences. Since this interval occurs after the differing round, we have . Thus, and have the same conditional distribution on the two executions. Therefore, by the chain rule, only contributes privacy loss, and the generation of the 's is -differentially private.
Finally, by Lemma 2.4, each of the at most resampling steps is -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 -differentially private.
Regret analysis
We proceed to analyze the regret. The following key lemma provides lower and upper bounds on the cumulative loss from round through round .
Lemma 3.2. With probability , we have
for all . The probability is taken solely over the randomness of the AboveThreshold instances.
Proof. By Theorem 2.3 and the union bound, with probability we have if and if for all , where . The lower bound follows directly from the fact that . For the upper bound, the inequality trivially holds if . When , we have and . Hence,
Next, we show that the number of updates is with high probability. As a consequence, the algorithm works normally (i.e., it won’t reach the update limit) if . By the composition theorems, this allows us to set , which minimizes the regret bound in Lemma 2.1.
Lemma 3.3. Let . Conditioned on the event in Lemma 3.2, we have
where is the value of when Algorithm 1 terminates.
Proof. Note that can increase by at most 1 in each round. Therefore, the condition is always met given that . In what follows, we will prove the result assuming because can only be smaller if we decrease .
Define a potential function
We have . Let be the largest index such that and let be the smallest positive integer such that . Then . Suppose an update happens at round (set for simplicity). Let denote the event that another update happens at some round . Let
By Lemma 3.2, we have for any . This implies . Thus, for any , we have
Note that
Rearranging this yields
Therefore,
As a consequence, the probability that can be bounded by the probability that the sum of Bernoulli random variables with mean is less than . By the Chernoff bound, this is at most given that . Thus, it suffices to set .
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 on the number of updates and the lower bound on are removed.
The AboveThreshold mechanisms are replaced by a delay function .
The learning process can start from an arbitrary round .
The update procedure at round is forced.
We first prove that the output distributions of Algorithm 2 and the multiplicative weights method are the same at round .
Lemma 3.4. For any and , the output distribution of Algorithm 2 at round satisfies
Proof. We prove by backward induction on . When , the conclusion holds since we sample exactly according to the desired distribution. Now consider and suppose that the result holds for all . Fix some . Define and
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 ’s in Algorithm 2 on the event . Let be the first index such that . Note that
Moreover, by the induction hypothesis, we have
for any since the learning process starting from can be seen as running Algorithm 2 with shifted by along the third dimension and . For simplicity, write and for . Note that only if for some . Therefore, we have
for and
As a consequence, we have
as desired. ∎
We leverage the fact that Algorithm 2 behaves similarly to Algorithm 1 before round when : 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 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 times that of the multiplicative weights mechanism. This leads to the following regret bound.
Lemma 3.5. Suppose , , and . The expected regret of Algorithm 1 is at most
Proof. Let . Since the regret cannot be larger than , 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 we have
By Lemma 3.2, there exists such that for all .
We first prove the result under the condition that . Fix a realization of the random coins used by the AboveThreshold mechanisms and let be the probability that Algorithm 1 outputs . Since , there is no restriction on the number of updates. Hence, this realization induces a delay function so that Algorithm 1 and Algorithm 2 (with this delay function and ) behave identically in the first rounds.
Let be as defined in Lemma 2.1 and consider any . By Lemma 3.4 with , Algorithm 2 outputs with probability . Since it produces with probability , we have . Now consider Algorithm 1. If it outputs , then the probability that it outputs is at most . As a consequence, we have
where the last inequality is due to the fact that for . Moreover, we have since we sample uniformly at random. Thus, for all .
By Lemma 2.1, the expected regret of Algorithm 1 with is
because .
Let be the probability that Algorithm 1 outputs with as in the lemma statement. Applying Lemma 3.3 with , we obtain . We can decompose as , where and are the probabilities of outputting conditioned on and , respectively. We can also write in the same way. For any , we have
since . Consequently,
Applying the triangle inequality leads to the desired result.
Choosing minimizes the regret bound in Lemma 3.5. However, we cannot do this directly since is unknown at the beginning. This issue can be circumvented by applying the standard doubling trick, which starts by assuming that 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 -differentially private OPE algorithm with experts must incur regret in the high-privacy regime where , even if . Now suppose is an adaptively -differentially private OPE algorithm with and regret at most . We create an algorithm that simulates , forwards ’s outputs as its own, and feeds the loss function to . This can be seen as an extension of the canonical “privacy amplification by subsampling” technique to the online setting. We prove that has privacy parameter and regret at most . Applying the lower bound in [3] to with yields . Rearranging this gives .
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 , extending the previous bound to the low-loss regime. Our result matches the non-private lower bound 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 regret is necessary for adaptive inputs, demonstrating that such an improvement cannot be made against an adaptive adversary.
When is large, our regret bounds are slightly worse than those in [3, 4] in certain parameter ranges. For example, suppose . Under pure DP, Asi et al. [3] gave an upper bound of . Our bound in Theorem 1.1 is larger than theirs by a factor of when this factor is greater than (when it is less than , our bound is better). Under approximate DP, Asi et al. [4] proved an upper bound of . The first term in our bound in Theorem 1.2 is larger than that in their bound by a factor of . 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
In this section, we show how to construct an algorithm without prior knowledge of . We first prove regret bounds when some estimate is given.
Theorem A.1. Let and . There exists an -differentially private algorithm for OPE with expected regret
whenever , where .
Proof. We run Algorithm 1 with , ,
and . One can verify that , , and . By Lemma 3.1 and basic composition, the overall algorithm is -differentially private. By Lemma 3.5 and the fact that , the expected regret is bounded by
Plugging in the value of yields the desired result. □
Theorem A.2. Let , , and . There exists an -differentially private algorithm for OPE with expected regret
whenever , where .
Proof. We run Algorithm 1 with , ,
and , where
.
$\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
.
.
Note that . By basic and advanced composition, we have
Applying Lemma 3.1 proves the privacy guarantee. Since , by Lemma 3.5 and the fact that , the expected regret is bounded by
Plugging in the value of 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 and employ an AboveThreshold mechanism to test if the current cumulative loss of the best expert exceeds . Once this happens, we double the value of 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 -differentially private OPE algorithm for every and has expected regret at most whenever , then Algorithm 3 is -differentially private and has expected regret at most
where and .
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 -differentially private. Consider two neighboring loss sequences that differ at round , 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 -differentially private. Conditioned on a common termination time for this instance, every subsequent instance starts strictly after round , and therefore receives identical query streams on the two neighboring sequences. By the chain rule, the entire sequence of termination times is -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 -differentially private. Applying basic composition to the termination-time transcript and the outputs of Alg, followed by post-processing, shows that Algorithm 3 is -differentially private.
We then prove utility. By Theorem 2.3 and the union bound, with probability all applications of AboveThreshold are -accurate. We first prove a regret bound conditioned on this event. Suppose at round . Before increasing the value of , we have
By our assumption, the algorithm Alg with incurs an expected regret of at most during . Moreover, we have
This implies that
Hence, whenever a new bucket is initiated, we have . Since the algorithm starts with , the total number of buckets is therefore at most . For the final bucket, if no is returned, the accuracy of AboveThreshold implies , so the same regret bound applies. Summing the regret over all buckets gives .
Since the regret can be at most , the unconditional expected regret is at most
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 . It is implemented as in Algorithm 4.
Note that in each round we always draw a random variable . Hence, we can fix the values of at the beginning. Additionally, we draw , where denotes the variable used by the -th AboveThreshold mechanism.
Now suppose that in Algorithm 1 we initiate the -th AboveThreshold mechanism at round . Then it will return for the first satisfying
As a consequence, we can define as this if such a exists, and as otherwise. Doing this for every tuple constructs the delay function .
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 be an online learner, be an adversary, and be a hidden bit that is unknown to both and . Define the privacy game played between and as follows. At each round , the adversary generates two loss functions and and the algorithm produces an output , both based on the interaction history up to round . After these choices are made, receives while observes . During the entire game, the adversary ensures that for all , where is a special round that is chosen adaptively by (i.e., the choice of can depend on the interaction history before round ). Let denote the view of in this privacy game, including the internal randomness of and produced by . Differential privacy against adaptive adversaries is defined as follows.
Definition C.1 (Differential Privacy against Adaptive Adversaries [3]). An OPE algorithm is adaptively -differentially private if for any adversary and any set of views, we have
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 be sufficiently large and . For any adaptively -differentially private OPE algorithm with and , there exists an adaptive adversary generating such that and
Remark. The above lemma can be obtained by setting and in Theorem 9 of [3]. While the theorem statement does not explicitly state that , 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 and , define a new algorithm as follows. It runs a copy of . At each round , it first draws . Then, it forwards that copy’s output as its own. After observing , it feeds to the copy.
We first establish the privacy guarantee of . In the proof, we write to denote that distributions and are -close, i.e., they satisfy the inequalities defining DP:
for any event .
Lemma C.4. Let and be defined as in Definition C.3. If is adaptively -differentially private, then is adaptively -differentially private.
Proof. Let be any adversary that interacts with . Write
for . Let be the distribution of . Introduce the following three auxiliary view distributions:
: the distribution of ’s view in an auxiliary privacy game where is set deterministically to 0, while all other sampling coins are drawn as usual.
: the distribution of ’s view in an auxiliary privacy game with where is set deterministically to 1, while all other sampling coins are drawn as usual.
: the distribution of ’s view in an auxiliary privacy game with where is set deterministically to 1, while all other sampling coins are drawn as usual.
Since is chosen based on the interaction history before round , while is sampled independently at round , we have
where the first term is due to the fact that receives whenever , regardless of the value of .
Now we derive privacy relations among , , and . We first consider and . Construct an adversary that simulates and at each round draws and generates
At round , it generates
It is easy to check that is a valid adversary in the privacy game with : it only generates different loss functions at round . For , the resulting interaction is exactly the branch defining . By the privacy guarantee of and the fact that the view of can be seen as a post-processing of ’s view, we have .
Next we compare with . Construct an adversary that performs the same simulation as at round . At round , it generates
For , the interaction is again the branch defining . For , the interaction becomes the branch defining . Therefore, we have . We can similarly prove that .
We now prove the final conclusion. For any measurable set , write , , and . By the pairwise -closeness of , , and , we have and . Hence,
where the second inequality follows because
By symmetry, . This proves the desired result.
Lemma C.5. Let and be defined as in Definition C.3. If has expected cumulative loss at most for any adaptively generated realizable input sequence, then has expected cumulative loss at most for any adaptively generated realizable input sequence.
Proof. Let be a realizable sequence generated by an adaptive adversary. There exists such that for all . By definition, . This implies that the sequence is also realizable. Therefore,
On the other hand, since is independent of and , we have
Summing over gives
Rearranging the inequality yields the desired conclusion. □
Theorem C.6. Let be sufficiently large and . For any adaptively -differentially private OPE algorithm with and , there exists an adaptive adversary generating such that and
Proof. Suppose is adaptively -DP and has expected cumulative loss at most on realizable input sequences. Consider in Definition C.3 with
Lemma C.4 establishes that is adaptively -differentially private. Since , we have
Moreover,
Therefore, is adaptively -differentially private. By Lemma C.2, must incur an expected cumulative loss of . Lemma C.5 then yields
□
References
- [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]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]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]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]Nicolo Cesa-Bianchi and Gábor Lugosi. Prediction, learning, and games. Cambridge University Press, 2006.
- [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]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]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]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]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]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]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]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]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]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]Marcus Hutter and Jan Poland. Adaptive online prediction by following the perturbed leader. Journal of Machine Learning Research, 6:639–660, 2005.DOI
- [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]Adam Kalai and Santosh Vempala. Efficient algorithms for online decision problems. Journal of Computer and System Sciences, 71(3):291–307, 2005.
- [19]Nick Littlestone and Manfred K Warmuth. The weighted majority algorithm. Information and Computation, 108(2):212–261, 1994.
- [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]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]Salil Vadhan and Tianhao Wang. Concurrent composition of differential privacy. In Theory of Cryptography: 19th International Conference, pages 582–604. Springer, 2021.
- [23]Volodimir G Vovk. Aggregating strategies. In Proceedings of the Third Annual Workshop on Computational Learning Theory, pages 371–383, 1990.