This work investigates several fundamental tasks, including MaxSum, MinSum, MaxSelect, and MinSelect, in the continual release model under differential privacy. Previous research has demonstrated that any algorithm for these tasks must admit a large purely additive error. We show that the error can be substantially reduced if a relative error term is allowed, provided that the input stream is generated non-adaptively. However, when input data records can be selected adaptively, we prove that a large error is inevitable for the task of selecting an attribute with a small cumulative sum, whereas small error bounds remain achievable for other tasks. This reveals a significant separation between non-adaptive and adaptive streams. We also complement our algorithms with nearly matching lower bounds.
Keywords:
Machine Learning, ICML
1 Introduction
In today’s data-driven world, the demand for privacy-preserving algorithms has become increasingly critical. As organizations gather and analyze vast amounts of personal data, ensuring individual privacy while still gaining valuable information poses a significant challenge. Differential privacy (DP) (Dwork et al., 2006b; Dwork et al., 2006a) has emerged as a leading framework for addressing this challenge, providing a rigorous mathematical definition of privacy that enables the release of useful information without compromising individual privacy.
Most research on differential privacy has focused on the batch model, in which a mechanism aggregates all input data and produces a single output. While this model effectively ensures privacy for static datasets, it fails to capture dynamic environments with continuously generated data. The continual release model (Dwork et al., 2010a; Chan et al., 2011) was proposed to overcome this limitation. In this model, data records arrive as a stream, and the mechanism is required to periodically update its output as new records are received, with privacy constraints being imposed on outputs over all time-steps.
The central challenge in the continual release model is that a single input record can influence outputs across multiple time-steps, enlarging the chance of privacy leakage. A substantial gap between the batch and continual release models was confirmed by Jain et al. (2023), who demonstrated that for certain fundamental tasks, transitioning from the batch model to the continual release model results in an unavoidable exponential increase in error.
The above hardness results hold for purely additive error. Motivated by the recent trend of studying differentially private algorithms with relative error guarantees, this work attempts to circumvent the barrier by incorporating an additional relative error term. In practice, relative error could be more meaningful than additive error since it scales with the magnitude of the true answer. When the true answer is extremely small, it could be completely overwhelmed by an additive error, leading to noninformative results. When the true answer is large, an additive error can be much smaller than it, rendering an overkill. In contrast, a relative error consistently offers an accurate estimate of the magnitude.
In many scenarios, input data records may depend on the algorithm’s previous answers. For example, consider a platform that publishes real-time traffic conditions in a city. Drivers may decide their routes based on this information, thus affecting future traffic. This adaptive setting can be formalized by assuming an adversary who selects input records based on the algorithm’s previous outputs. In this context, achieving accuracy is more challenging than in the non-adaptive setting, where the input stream is predetermined. However, Jain et al. (2023) established their upper bounds in the adaptive setting and their lower bounds in the non-adaptive setting. Therefore, their results do not reveal any difference between these two settings. They raised the question if it is possible to find a problem that distinguishes between non-adaptive and adaptive streams.
1.1 Results
In our setup, the input is a stream consisting of T vectors in [0,1]d, which can be seen as T records with d attributes. The algorithm is required to estimate some statistics about the sum of the first t vectors after receiving the t-th vector for every t∈[T]. In particular, we study the problems of approximately releasing and selecting the maximum across all attributes, denoted by MaxSum and MaxSelect. We also consider analogous problems for the minimum, referred to as MinSum and MinSelect. The formal definitions of these problems are provided in Section 2.2.
Improved algorithms with relative error
We propose algorithms for these tasks (except MinSelect with adaptive inputs) that achieve polylog(d,T) additive error when a constant relative error is allowed, significantly improving over the optimal purely additive error established by Jain et al. (2023). As a direct implication, our algorithms exhibit much better performance in the sparse setting where the true answer is polylog(d,T).
Our algorithms and analysis assume the input range is [0,1]. This can be generalized to [0,M] for any M>0, in which case the final error bound scales by a factor of M. However, if negative inputs are allowed, our upper bound no longer apply. In fact, by adapting the proof strategy of Jain et al. (2023), one can show that the additive error cannot be improved even when relative error is considered. A more detailed explanation is provided in Appendix D.
Nearly tight lower bounds
Alongside our algorithms, we provide nearly matching lower bounds. As a consequence, our results characterize the error for all these tasks up to poly-logarithmic factors. The error bounds for all tasks are summarized in Table 1.
Separation between non-adaptive and adaptive streams
While a polylog(d,T) error is attainable for MinSelect with non-adaptive inputs, we prove that including a relative error does not yield improvements for adaptively selected input records—the best achievable error remains nearly the same as the purely additive error proved in (Jain et al., 2023). This highlights a strong separation between non-adaptive and adaptive streams in private continual release.
Table 1: Nearly tight error bounds for tasks considered in this work. For readability, we omit polylog(d,T,1/ε,1/δ,1/γ) terms. For MaxSum, MinSum, and MaxSelect, the bounds hold for both non-adaptive and adaptive streams. Also note that in order to cover all ranges of parameters, our results are combined with the additive-only upper bounds (Jain et al., 2023).
Task
Pure DP
Approximate DP
Source
MaxSum and MinSum
min{γε1,εd,εT,T}
min{γε1,εd,ε2/3T1/3,T}
Thm. A.1, B.2
MaxSelect
min{γε1,εd,εT,T}
min{γε1,εd,ε2/3T1/3,T}
Thm. A.2, B.4
MinSelect (non-adaptive)
min{γε1,εd,εT,T}
min{γε1,εd,ε2/3T1/3,T}
Thm. 3.1, B.4
MinSelect (adaptive)
min{εd,εT,T}
min{εd,ε2/3T1/3,T}
Thm. 4.3
1.2 Technical Overview
Our algorithms for MaxSum, MinSum, and MaxSelect are based on a simple framework that updates the current answer once its error exceeds a certain threshold. We utilize the AboveThreshold mechanism to monitor if the error of the current output is within an acceptable range. If so, we keep the output unchanged, which incurs no privacy cost. Otherwise, we launch a batch algorithm on the received data to update the answer. Since the actual value increases by roughly 1+γ after each update, we only need to perform around log1+γT≈logT/γ updates, leading to a polylog(d,T) error due to composition theorems.
Our algorithm for MinSelect follows a similar approach but requires a completely different utility analysis. After each update, we may switch to a new attribute with a smaller cumulative sum. Hence, we cannot guarantee that the minimum sum will increase by a multiplicative factor of 1+γ after each update. This property makes it essentially different from other problems. To bound the number of updates, we exploit the fact that the stream is non-adaptive. Intuitively, an adversary attempting to attack the algorithm should increase the values for many coordinates because which coordinate will be chosen by the algorithm is unknown in advance. Thus, the minimum sum must increase by 1+γ after a certain number of updates. This can be formally proved by a potential analysis inspired by an argument in (Asi et al., 2023a). We show that the number of updates is at most polylog(d,T), which yields a polylog(d,T) error.
Our lower bounds for the non-adaptive setting leverage the sequential embedding construction proposed by Jain et al. (2023). The key observation is that we can construct an input stream so that the sum along every coordinate is small. This makes the relative error term negligible compared to the additive error. Consequently, a lower bound for purely additive error translates to a lower bound on the additive error in our setup.
For MinSelect against an adaptive adversary, we establish a lower bound through a reduction from the problem of privately identifying the signs of consensus columns in a matrix. We transform the rows of the matrix into a stream of records so that the signs of consensus columns can be identified by locating attributes with zero sum, which can be solved by running an algorithm for MinSelect. Once such an attribute is found, we start to place 1’s at this attribute (this operation makes the stream adaptively generated) and compel the algorithm to find a new attribute with zero sum. By repeating this procedure, we can determine the signs of most consensus columns. Therefore, existing hardness results for this problem imply lower bounds for MinSelect in the adaptive setting.
1.3 Related Work
The exploration of differentially private mechanisms in the continual release model began with the work of Dwork et al. (2010a) and Chan et al. (2011). They considered the fundamental problem of computing the sum of binary bits and proposed the celebrated binary tree mechanism whose error is only larger than that in the batch model by polylog(T). Furthermore, an error of Ω(logT) is shown to be inevitable (Dwork et al., 2010a), indicating that the continual release model is inherently more challenging than the batch model, in which an O(1) error is attainable. A more pronounced separation was later discovered by Jain et al. (2023), who proved that for MaxSum and MaxSelect, the (purely additive) error in the continual release model can be exponentially larger than that in the batch model.
The aforementioned results focus solely on purely additive error. There has been a recent trend in the development of algorithms with relative accuracy guarantees. For various problems, such as frequency moments estimation and query release, it has been demonstrated that incorporating a relative error term can lead to substantial improvements (Epasto et al., 2023; Ghazi et al., 2023; Ghazi et al., 2025; Aamand et al., 2026).
The concept of differential privacy with adaptive input streams was formally defined by Jain et al. (2023), although it was also implicitly referenced in earlier works (e.g., (Smith and Thakurta, 2013)). It has been shown that non-adaptive and adaptive streams are equivalent under pure differential privacy, whereas a private algorithm in the non-adaptive setting may become non-private in the adaptive setting under approximate differential privacy (Denisov et al., 2022). In terms of utility, significant gaps between the two settings have been observed in private online learning (Asi et al., 2023b; Li et al., 2024). To our knowledge, such gaps have not yet been identified in the context of private continual release of statistics.
1.4 Organization
In Section 2, we provide the necessary background on differential privacy and define the problems we study. In Section 3, we present our algorithm for MinSelect in the non-adaptive setting and briefly analyze its accuracy. We establish our lower bound for MinSelect in the adaptive setting in Section 4. Together, the results from these two sections emphasize our key finding—the separation between non-adaptive and adaptive streams. Algorithms and lower bounds for other problems, as well as proofs omitted from Sections 3 and 4, are deferred to the appendices.
2 Preliminaries
2.1 Differential Privacy
We start with the standard definition of differential privacy. Two datasets (or sequences) S0=(x1,…,xT) and S1=(x1′,…,xT′) of size T over domain X are considered neighboring if they differ in at most one entry, i.e., there exists j∈[T] such that xi=xi′ for all i∈[T]∖{j}. Differential privacy requires an algorithm’s output distributions to be similar when running on neighboring datasets.
Definition 2.1 (Differential Privacy (Dwork et al., 2006b; Dwork et al., 2006a)).
A randomized algorithm M is (ε,δ)-differentially private if for any pair of neighboring datasets S0,S1∈XT and any set O of outputs, we have
Pr[M(S0)∈O]≤eεPr[M(S1)∈O]+δ.
When δ=0, we often omit δ and say M is ε-differentially private. The case that δ>0 is referred to as approximate DP and the case that δ=0 is referred to as pure DP.
The above definition only applies to static datasets and does not capture the scenarios where data records can be adversarially generated. We next define differential privacy in the presence of adaptive inputs. Let M be a mechanism, Adv be an adversary, and b∈{0,1} be a global parameter that is unknown to both M and Adv. The privacy game played between M and Adv is defined as follows. At every round t∈[T], the adversary Adv generates two data points xt(0) and xt(1). The mechanism M receives xt(b) and presents an output at to Adv. The adversary Adv has to ensure that xt(0)=xt(1) for all t∈[T]∖{t~}, where t~ is a special round that is adaptively chosen by Adv (i.e., the choice can depend on the interaction before round t~). For privacy, we require that it is hard for Adv to infer the value of b. Let ViewM,Adv(b) denote the view of Adv in this privacy game, which contains the internal randomness of Adv and (a1,…,aT) sent by M. Differential privacy in the adaptive setting is defined as below.
Definition 2.2 (Differential Privacy with Adaptive Inputs (Jain et al., 2023)).
A randomized algorithm M is (ε,δ)-differentially private in the adaptive continual observation model if for any adversary Adv and any set O of views, we have
Pr[ViewM,Adv(0)∈O]≤eεPr[ViewM,Adv(1)∈O]+δ.
Differential privacy enjoys the composition property, which allows us to design a complex private mechanism by combining multiple simple building blocks. Let M1,…,Mk be k mechanisms with independent randomness, denote by Comp(M1,…,Mk) a mechanism that interacts with Adv as follows. At round t, the adversary Adv generates xt(0) and xt(1). Then all mechanisms receive xt(b) and respond (a1,t,…,ak,t) to Adv. During each round, the responses a1,t,…,ak,t can be produced in arbitrary order and each response may depend on the previous ones. The following composition theorems ensure that Comp(M1,…,Mk) is private as long as every Mi is private (Dwork et al., 2006b; Dwork et al., 2010b; Steinke, 2022; Vadhan and Wang, 2021; Lyu, 2022; Henzinger et al., 2026).
Theorem 2.3 (Basic Composition).
Let M1,…,Mk be k randomized mechanisms with privacy parameters (ε1,δ1),…,(εk,δk). Then Comp(M1,…,Mk) is (ε,δ)-differentially private for ε=∑i=1kεi and δ=∑i=1kδi.
Theorem 2.4 (Advanced Composition).
Let M1,…,Mk be k randomized mechanisms with privacy parameters (ε1,δ1),…,(εk,δk). Then Comp(M1,…,Mk) is (ε,δ)-differentially private for any δ>∑j=1kδj and ε=21∑j=1kεj2+2ln(1/δ′)∑j=1kεj2, where δ′=δ−∑j=1kδj.
The following property of differential privacy, known as group privacy, quantifies the closeness between the output distributions obtained by running a private algorithm on two datasets that differ in multiple entries.
Lemma 2.5 (Group Privacy).
If M is an (ε,δ)-differentially private mechanism, then for any two datasets S0 and S1 that differ in k entries and any event O, we have
Pr[M(S0)∈O]≤ekεPr[M(S1)∈O]+eε−1ekε−1⋅δ.
We then introduce some basic mechanisms for achieving differential privacy. The first is the Laplace mechanism.
Definition 2.6 (Sensitivity).
A function f:Xn→R has sensitivity Δ if ∣f(S0)−f(S1)∣≤Δ for any neighboring datasets S0 and S1.
Theorem 2.7 (Laplace Mechanism (Dwork et al., 2006b)).
Suppose f has sensitivity Δ. The mechanism that outputs f(S)+Lap(Δ/ε) is ε-differentially private. Moreover, we have Pr[∣Lap(Δ/ε)∣≤Δln(1/β)/ε]≥1−β.
The AboveThreshold mechanism, as depicted in Algorithm 1, allows for privately identifying the first query whose value exceeds a predefined threshold.
Theorem 2.8 (Properties of AboveThreshold (Dwork et al., 2009; Dwork and Roth, 2014)).
The AboveThreshold mechanism (Algorithm 1) is an ε-differentially private algorithm that at round t receives a data point xt∈X and a sensitivity-1 query qt (may be chosen adaptively), and outputs σt∈{⊤,⊥}. Moreover, suppose there are at most k queries, then with probability 1−β the AboveThreshold mechanism is α-accurate for
α=ε8(lnk+ln(2/β)).
Namely, we have qt(x1,…,xt)≥τ−α for all t with σt=⊤, and qt(x1,…,xt)≤τ+α for all t with σt=⊥.
Let H be a finite set and ℓ:Xn×H→R be a score function. We say ℓ has sensitivity Δ if ℓ(⋅,h) has sensitivity Δ for any h∈H. Given a dataset S, the exponential mechanism outputs h with probability
∑f∈Hexp(−ε⋅ℓ(S,f)/2Δ)exp(−ε⋅ℓ(S,h)/2Δ).
As stated below, with high probability the exponential mechanism produces an h∈H with low score.
Theorem 2.9 (Exponential Mechanism (McSherry and Talwar, 2007)).
The exponential mechanism is ε-differentially private. Moreover, with probability 1−β it outputs an h such that
ℓ(S,h)≤f∈Hminℓ(S,f)+ε2Δln(∣H∣/β).
2.2 Problem Statement
Let (x1,…,xT) be a stream of length T, where every xi∈[0,1]d. Given a function f:Rd→R, we require an algorithm to accurately release f(∑s=1txs) at every round t∈[T] while preserving (ε,δ)-differential privacy.
We consider both estimation and selection tasks. For estimation, we say an algorithm is (γ,α,β)-accurate for estimating f if with probability at least 1−β, for every t∈[T] the output at satisfies
(1−γ)⋅f(s=1∑txs)−α≤at≤(1+γ)⋅f(s=1∑txs)+α.
In particular, we are interested in the cases that f(x)=maxi∈[d]x[i] and f(x)=mini∈[d]x[i], where x[i] denotes the value at the i-th coordinate of vector x. These two tasks are represented by MaxSum and MinSum.
We also study their selection variants. We say an algorithm is (γ,α,β)-accurate for MaxSelect if with probability at least 1−β, for every t∈[T] the output at∈[d] satisfies
(1−γ)⋅i∈[d]maxs=1∑txs[i]−α≤s=1∑txs[at].
Similarly, we say an algorithm is (γ,α,β)-accurate for MinSelect if with probability at least 1−β, for every t∈[T] the output at∈[d] satisfies
s=1∑txs[at]≤(1+γ)⋅i∈[d]mins=1∑txs[i]+α.
3 Algorithm for MinSelect
In this section, we consider MinSelect with non-adaptive input streams. At each round, the mechanism is required to output an attribute with a cumulative sum that is not too larger than the minimum. In the batch model, this problem can be solved by the exponential mechanism.
We briefly describe our approach. At the beginning, we initialize the output by sampling uniformly from [d]. At each round t∈[T], we check if the output remains accurate using the AboveThreshold mechanism. Once the current output becomes inaccurate, we launch an exponential mechanism to update it.
The final error bound depends on the privacy parameter of the exponential mechanism and the AboveThreshold mechanism, which, by the composition property of DP, is determined by the number of times the output is updated. If the output is updated frequently, we should set a small privacy parameter for the exponential mechanism and the AboveThreshold mechanism, leading to a large error. In contrast, if the output is updated rarely, we can use a larger privacy parameter, which results in a smaller error.
Therefore, the central challenge is to bound the number of updates. For other tasks (i.e., MaxSum, MinSum, and MaxSelect), this can be easily done by leveraging the fact that the true answer is multiplied by 1+Θ(γ) after each update. Since the sum is at most T, the number of updates cannot exceed O(log1+Θ(γ)T)=O(logT/γ). However, this simple argument becomes invalid for MinSelect since it is possible that we switch to a new coordinate with an even smaller sum after an update.
To fix this issue, we will prove that with high probability, the minimum sum still grows by a fraction of Θ(γ) after polylog(d,T) updates. As a result, the total number of updates is at most O(logT/γ)⋅polylog(d,T) and we obtain a polylog(d,T)/γ error bound. Due to some reasons that will be explained later, we should gradually decrease the privacy parameter as the minimum sum grows. This is ensured by decreasing the privacy parameter after every K=polylog(d,T) updates. We illustrate the detailed implementation in Algorithm 2 and state the final results in the following theorem.
Theorem 3.1.
Let d,T∈N, ε,γ,β∈(0,1), and δ∈[0,1/2). In the non-adaptive continual release model, Algorithm 2 is (ε,δ)-differentially private and (γ,α,β)-accurate for MinSelect, where
α=O(γlog(dT/γβ)⋅εlog(dT/β)) if δ=0.
α=O(γlog(dT/γβ)log(1/δ)⋅εlog(dT/β)) if δ>0.
Algorithm 2 Privately Releasing MinSelect
Input: time horizon T∈N, privacy parameters ε,δ, relative error parameter γ, failure probability β, data stream (x1,…,xT), where xi∈[0,1]d.
Feed qt to AboveThreshold and obtain outcome σt.
if σt=⊤ then
Define ℓt(j)≡∑s=1txs[j] for j∈[d].
Set at←k with probability ∑j∈[d]exp(−εiℓt(j)/2)exp(−εiℓt(k)/2).
i′←i′+1 and i←⌈i′/K⌉.
Initiate an instance of AboveThreshold with privacy parameter εi and threshold 0.
else
at←at−1.
end if
end for
Here, we only present the core idea of our analysis and defer the formal proof to Appendix C.1. Based on the value of i in Algorithm 2, we can divide the algorithm into several stages. Suppose that we enter the i-th stage at some round t1, define a potential
Φt=j∈[d]∑exp(−εiℓt(j)/2)
for t≥t1, where ℓt is as in Algorithm 2. Since the stream is generated non-adaptively, the potential at every round is fixed until we move forward to the next stage.
Let M=minj∈[d]ℓt1(j) and t2 be a time-step such that minj∈[d]ℓt2(j)≈(1+γ/2)M+α/2. We will prove that the number of updates before t2 is at most K=polylog(d,T) with high probability. Therefore, after every K updates, the minimum sum is increased by a multiplicative factor of 1+γ/2 (and an additive factor of α/2). The total number of updates can then be bounded by polylog(d,T).
Suppose that the algorithm has made an update at round t∈[t1,t2]. Let t′∈[t1+1,t2] be some round such that Φt′≈Φt/e. The probability that it will make the next update before round t′ is at most (we assume that the AboveThreshold mechanism has zero error for simplicity, which will be handled by adjusting the coefficients in the formal proof)
We can prove that P is bounded by some constant that is strictly less than 1. Intuitively, the output distribution of the exponential mechanism at round t should concentrate on those j’s with ℓt(j)≤(1+γ/2)M+α/2. If P is very close to 1, we must have ℓt′(j)>(1+γ)M+α for most of them. However, this will cause a dramatic drop in potential, contradicting that Φt′≈Φt/e. As a consequence, the number of updates during [t+1,t′] can be bounded by a geometric random variable with mean
P+P2+⋯=P/(1−P)=O(1).
We now consider the entire time interval [t1,t2]. It is not difficult to see from the definition that Φt1≤dexp(−εiM/2) and Φt2≥exp(−εi((1+γ/2)M+α/2)/2). As a consequence, we can split the time interval [t1+1,t2] into r phases such that the potential drops by e during each phase, where r=ln(Φt1/Φt2)≤lnd+εi(γM+α)/4.
In our formal proof, we show that our choice of εi satisfies εi(γM+α)=polylog(d,T). Therefore, we have r=polylog(d,T). By standard concentration arguments, the number of updates before round t2 is at most K=polylog(d,T). Since M (the minimum sum among all attributes) grows gradually, we must decrease εi accordingly to ensure that εi(γM+α)=polylog(d,T) always holds.
4 Adaptive Lower Bound for MinSelect
In this section, we prove our lower bound for MinSelect in the adaptive setting. Our approach is to show that we can solve the problem of privately determining the signs of consensus columns in a matrix by interacting with a private algorithm for MinSelect. This problem was also used by Talwar et al. (2015) and Asi et al. (2023b) to prove lower bounds for other problems.
The following result says that any (ε,δ)-differentially private algorithm solving this problem requires Ω~(d/ε) samples. Note that the version used by Talwar et al. (2015) and Asi et al. (2023b) is stated for ε=1. Here we extend it to other values of ε and provide a proof in Appendix C.2 for completeness. In this paper, when the input is a matrix, differential privacy is defined by viewing each row of the matrix as an input item.
Lemma 4.1.
Let d be sufficiently large and ε≤0.1. For some n=Θ(εlogdd), suppose that A is an algorithm that takes as input a matrix X∈{−1,1}n×d and outputs a d-dimensional vector. Denote by W the set of indices of consensus columns in X. If
APrj∈W∑I[A(X)[j]=X1,j]≥3d/4≥2/3
given that ∣W∣≥0.999d. Then A is not (ε,δ)-differentially private for δ=o(1/n3).
For pure DP, we will use the following lemma, which can be proved by the classical packing argument (Hardt and Talwar, 2010). We enclose a proof in Appendix C.3 for completeness.
Lemma 4.2.
Let A be an ε-differentially private algorithm that takes as input a matrix X∈{−1,1}n×d and outputs a d-dimensional vector such that
APrj∈[d]∑I[A(X)[j]=X1,j]≥4d/5≥2/3
given that all columns in X are consensus columns. Then n=Ω(d/ε).
We illustrate the idea of our proof for sufficiently large T. Let A be an algorithm for MinSelect against an adaptive adversary. We show that we can use A to solve the problem of identifying the signs of the columns.
Given an input matrix X, we create a new matrix by converting each of its columns into two columns. If an entry in X is −1, we place a pair (0,1) in the same row of the two corresponding columns. If it is 1, we put a (1,0) instead. By doing so, every consensus column in X is converted into two consensus columns, and the index of the all-zero column reflects the sign of the original column.
We then send the rows of the new matrix as data records to A. Now each column becomes an attribute in the data stream. Let α denote the additive error of A. Since there is an all-zero column, algorithm A will output the index of an attribute whose sum is at most α. After that, we start to put 1’s at this attribute. This increases the sum along this attribute and forces A to change its output to other attributes.
If α is less than the number of rows of the matrix, then A will never select an attribute associated with an all-one column as long as there is an unselected all-zero attribute. Under the condition that most columns in X are consensus columns, we can identify the signs of a large fraction of them by repeating the above procedure. As a consequence, a lower bound on the sample complexity of identifying the signs of columns yields a lower bound on α.
Applying a case analysis that was also used in (Jain et al., 2023), we can prove the following lower bound that covers all ranges of parameters. It holds for any γ≥0 and matches the additive-only upper bound from (Jain et al., 2023).
Theorem 4.3.
Let T,d∈N be sufficiently large. Any (ε,δ)-differentially private mechanism M solving MinSelect in the adaptive continual release model with relative error γ and success probability 2/3 must incur an additive error of
α=Ω(min{d/ε,T/ε,T}) if δ=0.
α=Ω~(min{εd,ε2/3T1/3,T}) if δ>0 and δ=o(ε/T3).
Proof.
To begin with, note that the lower bound must be a non-decreasing function of d. This is because any algorithm for MinSelect with dimension d∗>d can be used to solve MinSelect with dimension d by padding each input record with d∗−d ones. If the output falls in the extra d∗−d coordinates, we can simply output one of the d coordinates, as this can only make the sum smaller.
We then prove that α=Ω(T) when εT≤2. Let S be a sequence with T/4(0,1)’s followed by 3T/4 zero vectors and S′ be a sequence with T/4(1,0)’s followed by 3T/4 zero vectors. Let aT and aT′ be the outputs of M at round T when running on S and S′, respectively. Suppose α≤T/9, we have Pr[aT=1]≥2/3, which implies Pr[aT′=1]≤e⋅Pr[aT=1]+2δ/ε<2/3. However, we also have Pr[aT′=1]=Pr[aT′=2]≥2/3, a contradiction. Thus, we can conclude that α>T/9=Ω(T).
From now on, we assume ε>2/T. We first focus on the case that δ>0. Consider the matrix X∈{−1,1}n×d/2 in Lemma 4.1, where n=Θ(εlogdd). Suppose d≤O((εT)2/3), we have T≥2nd/5. For any t∈[n], create xt∈{0,1}d as follows:
xt[2j−1]=2Xt,j+1 for all j∈[d/2].
xt[2j]=2−Xt,j+1 for all j∈[d/2].
We construct an algorithm A that takes X as input and privately estimates the signs of consensus columns in X by interacting with M. It first feeds (x1,…,xn) to M. Then, for every r∈[2d/5−1] it streams (xrn+1,…,xrn+n)=(earn,…,earn) to M, where arn is the output of M at round rn and earn is the arn-th standard basis vector in Rd (i.e., earn is a d-dimensional vector with 1 in the arn-th coordinate and 0 elsewhere). Finally, it outputs a vector such that
A(X)[j]=2I[2j∈{an,…,a(2d/5)n}]−1
for every j∈[d/2].
We show that A is (ε,δ)-differentially private. Let X0 and X1 be two matrices that differ in one row. Consider an adversary Adv that generates two sequences (x1(0),…,xn(0)) and (x1(1),…,xn(1)) from X0 and X1 using the aforementioned construction, respectively. At round t∈[n], the vector xt(b) is sent to M, where b∈{0,1} is unknown to Adv. Then, for every r∈[2d/5−1] and i∈[n] the adversary sends earn to M at round t=rn+i, where arn is the output of M at round rn. Observe that A(Xb) can be seen as a post-processing of ViewM,Adv(b). The fact that M is (ε,δ)-differentially private for adaptive streams implies that A is (ε,δ)-differentially private.
Let W be the set of consensus columns in X and assume that ∣W∣≥0.999d/2. Note that for each consensus column j∈W, either x1[2j−1]=⋯=xn[2j−1]=0 or x1[2j]=⋯=xn[2j]=0. Since 0.999d/2>2d/5, by our construction, there exists k∗∈[d] such that x1[k∗]=⋯=xT′[k∗]=0, where T′=2nd/5≤T. As a consequence, with probability 2/3 the mechanism M selects at such that
s=1∑txs[at]≤(1+γ)⋅0+α=α
for every t∈[T′].
We will prove by contradiction that α≥n. Indeed, if α<n, by our construction we know that an,a2n,…,a(2d/5)n are distinct since
t=1∑r′nxt[arn]≥n>α
for any r<r′. Let Sb={k∈[d]:x1[k]=⋯=xn[k]=b} for b∈{0,1}, we have 0.999d/2≤∣Sb∣≤d/2. Note that {an,a2n,…,a(2d/5)n}∩S1=∅. Therefore,
If X1,j=−1, we have 2j−1∈S0. This implies 2j∈S1. Since {an,a2n,…,a(2d/5)n}∩S1=∅, it must be the case that 2j∈/{an,a2n,…,a(2d/5)n}. Therefore, we always have A(X)[j]=−1=X1,j. The error of A can then be bounded by
This contradicts Lemma 4.1, which suggests that the above cannot exceed 3/4⋅(d/2)=0.375d. Hence, we have α≥n=Ω(εlogdd).
When d≥Ω((εT)2/3), by the fact that the lower bound is non-decreasing, we have
α=Ω(εlog((εT)2/3)(εT)2/3)=Ω~(ε2/3T1/3).
Now, we move on to the case that δ=0. Similarly, consider a matrix X∈{−1,1}n×d/2 whose columns are all consensus columns, where n=⌈α+1⌉. Suppose d≤εT. If T<2nd/5, we have α=Ω(T/d)=Ω(T/ε). Otherwise, we can construct an algorithm A in the same way and use the same argument to show that
By Lemma 4.2, we have α=Ω(d/ε). The Ω(T/ε) bound for d>εT follows by the fact that the lower bound is non-decreasing in d and setting d=⌊εT⌋. ∎
5 Conclusion
This paper investigates four fundamental tasks (MaxSum, MinSum, MaxSelect, and MinSelect) in the continual release model under differential privacy. In contrast to the purely additive error guarantees considered by previous research, we study algorithms with both relative and additive error.
We develop algorithms with poly-logarithmic additive error for MaxSum, MinSum, and MaxSelect with adaptive streams, and for MinSelect with non-adaptive streams, significantly improving existing purely additive error bounds. In addition, we provide nearly matching lower bounds, showing the optimality of our proposed algorithms. For MinSelect with adaptive streams, we prove that incorporating a relative error cannot reduce the additive error. This demonstrates a notable separation between non-adaptive and adaptive streams in private continual release.
There remain poly-logarithmic gaps between our upper and lower bounds. Closing these gaps is a direct future direction. Another research direction is to explore if similar improvements can be made by involving a relative error for other tasks in differentially private continual release.
Acknowledgements
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 16207922, 16207423, 16203824 and 16211123.
Impact Statement
This paper presents work whose goal is to advance the field of machine learning. There are many potential societal consequences of our work, none of which we feel must be specifically highlighted here.
References
A. Aamand, J. Y. Chen, and S. Silwal Skirting additive error barriers for private turnstile streams. In The 14th International Conference on Learning Representations, Cited by: §1.3.
H. Asi, V. Feldman, T. Koren, and K. Talwar Near-optimal algorithms for private online optimization in the realizable regime. In Proceedings of the 40th International Conference on Machine Learning, Vol. 202, pp. 1107–1120. Cited by: §1.2.
H. Asi, V. Feldman, T. Koren, and K. Talwar Private online prediction from experts: separations and faster rates. In Proceedings of the 36th Conference on Learning Theory, Vol. 195, pp. 674–699. Cited by: Lemma C.1, §1.3, §4, §4.
T. H. Chan, E. Shi, and D. Song Private and continual release of statistics. ACM Transactions on Information and System Security 14 (3), pp. 1–24. Cited by: §1.3, §1.
H. Chernoff A measure of asymptotic efficiency for tests of a hypothesis based on the sum of observations. The Annals of Mathematical Statistics, pp. 493–507. Cited by: §C.1.
S. Denisov, H. B. McMahan, J. Rush, A. Smith, and A. Guha Thakurta Improved differential privacy for SGD via optimal private linear operators on adaptive streams. In Advances in Neural Information Processing Systems, Vol. 35, pp. 5910–5924. Cited by: §1.3.
C. Dwork, K. Kenthapadi, F. McSherry, I. Mironov, and M. 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, pp. 486–503. Cited by: §1, Definition 2.1.
C. Dwork, F. McSherry, K. Nissim, and A. Smith Calibrating noise to sensitivity in private data analysis. In Proceedings of the 3rd Conference on Theory of Cryptography, pp. 265–284. Cited by: §1, §2.1, Definition 2.1, Theorem 2.7.
C. Dwork, M. Naor, T. Pitassi, and G. N. Rothblum Differential privacy under continual observation. In Proceedings of the 42nd Annual ACM Symposium on Theory of Computing, pp. 715–724. Cited by: §1.3, §1.
C. Dwork, M. Naor, O. Reingold, G. N. Rothblum, and S. 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, pp. 381–390. Cited by: Theorem 2.8.
C. Dwork and A. Roth The algorithmic foundations of differential privacy. Foundations and Trends® in Theoretical Computer Science 9 (3–4), pp. 211–407. Cited by: Theorem 2.8.
C. Dwork, G. N. Rothblum, and S. Vadhan Boosting and differential privacy. In Proceedings of the 51st Annual IEEE Symposium on Foundations of Computer Science, pp. 51–60. Cited by: §2.1.
A. Epasto, J. Mao, A. M. Medina, V. Mirrokni, S. Vassilvitskii, and P. Zhong Differentially private continual releases of streaming frequency moment estimations. In 14th Innovations in Theoretical Computer Science Conference, pp. 48:1–48:24. Cited by: §1.3.
B. Ghazi, C. Guzmán, P. Kamath, A. Knop, R. Kumar, P. Manurangsi, and S. Sachdeva PREM: privately answering statistical queries with relative error. In Proceedings of 38th Conference on Learning Theory, Vol. 291, pp. 2460–2460. Cited by: §1.3.
B. Ghazi, P. Kamath, R. Kumar, P. Manurangsi, and K. Wu On differentially private counting on trees. In 50th International Colloquium on Automata, Languages, and Programming, pp. 66:1–66:18. Cited by: §1.3.
M. Hardt and K. Talwar On the geometry of differential privacy. In Proceedings of the 42nd Annual ACM Symposium on Theory of Computing, pp. 705–714. Cited by: Lemma B.1, §4.
M. Henzinger, R. Safavi, and S. Vadhan Concurrent composition for differentially private continual mechanisms. Proceedings of the ACM on Management of Data 4 (2), pp. 1–26. Cited by: §2.1.
P. Jain, S. Raskhodnikova, S. Sivakumar, and A. Smith The price of differential privacy under continual observation. In Proceedings of the 40th International Conference on Machine Learning, Vol. 202, pp. 14654–14678. Cited by: §B.1, §B.1, §B.2, §B.2, Lemma B.3, Appendix D, §1.1, §1.1, §1.1, §1.2, §1.3, §1.3, Table 1, Table 1, §1, §1, Definition 2.2, §4, footnote 1.
B. Li, W. Wang, and P. Ye The limits of differential privacy in online learning. In Advances in Neural Information Processing Systems, Vol. 37, pp. 65328–65360. Cited by: §1.3.
X. Lyu and K. Talwar Fingerprinting codes meet geometry: improved lower bounds for private query release and adaptive data analysis. In Proceedings of the 57th Annual ACM Symposium on Theory of Computing, pp. 2374–2385. Cited by: Lemma B.1.
X. Lyu Composition theorems for interactive differential privacy. In Advances in Neural Information Processing Systems, Vol. 35, pp. 9700–9712. Cited by: §2.1.
F. McSherry and K. Talwar Mechanism design via differential privacy. In Proceedings of the 48th Annual IEEE Symposium on Foundations of Computer Science, pp. 94–103. Cited by: Theorem 2.9.
A. Smith and A. Thakurta (Nearly) optimal algorithms for private online learning in full-information and bandit settings. In Advances in Neural Information Processing Systems, Vol. 26, pp. 2733–2741. Cited by: §1.3.
T. Steinke Composition of differential privacy & privacy amplification by subsampling. External Links: 2210.00597, Link Cited by: §2.1.
K. Talwar, A. Guha Thakurta, and L. Zhang Nearly optimal private lasso. In Advances in Neural Information Processing Systems, Vol. 28, pp. 3025–3033. Cited by: Lemma C.1, §4, §4.
S. Vadhan and T. Wang Concurrent composition of differential privacy. In Theory of Cryptography: 19th International Conference, pp. 582–604. Cited by: §2.1.
Appendix A Algorithms
A.1 Algorithm for MaxSum and MinSum
We provide a general algorithm that privately and continually estimates any function f of the cumulative sums that is non-negative, monotone, and has bounded sensitivity. As a direct consequence, this solves MaxSum and MinSum.
The algorithm keeps the output unchanged until its error is larger than our desired bound. This is achieved by the AboveThreshold mechanism. Once the output becomes invalid, we update it by adding Laplace noise to the correct answer. In addition, we decrease the privacy parameter (εi’s) used in the Laplace mechanism and the AboveThreshold mechanism after each update. This helps us save a factor of logT in the final error. Note that the error remains poly-logarithmic even if we use a consistent privacy parameter throughout the execution. This is in contrast to Algorithm 2, in which a decreasing privacy parameter is necessary for achieving a poly-logarithmic error.
We describe the details in Algorithm 3. The final error bound is stated in Theorem A.1.
Algorithm 3 Privately Releasing f
Input: time horizon T∈N, privacy parameters ε,δ, relative error parameter γ, failure probability β, function f:R≥0d→R≥0, data stream (x1,…,xT), where xi∈[0,1]d.
Output: stream (a1,…,aT)∈R≥0T.
if δ=0 then
α←εγ40⋅8(lnT+ln(4T/β)).
else
α←ϵ64(lnT+ln(4T/β))⋅γ42ln(1/δ).
end if
εj←α6⋅8(lnT+ln(4T/β)) for j≤⌈1/γ⌉ and εj←α2⋅(1+γ/3)j−⌈1/γ⌉−18(lnT+ln(4T/β)) for j>⌈1/γ⌉.
αj←εj8(lnT+ln(4T/β)) for all j.
a0←(1+γ)⋅f(0)+α.
i←1.
Initiate an instance of AboveThreshold with privacy parameter ε1 and threshold 0.
for t=1,…,T do
Define query qt≡(1−γ)⋅f(∑s=1txs)−α−at−1+αi.
Feed qt to AboveThreshold and obtain outcome σt.
if σt=⊤ then
at←(1+2γ/3)⋅f(∑s=1txs)+2α/3+Lap(2/εi).
i←i+1.
Initiate an instance of AboveThreshold with privacy parameter εi and threshold 0.
else
at←at−1.
end if
end for
Theorem A.1.
Let d,T∈N, ε,γ,β∈(0,1), δ∈[0,1/2), and f:R≥0d→R≥0 be a function such that 0≤f(x+y)−f(x)≤1 for any x∈R≥0d and y∈[0,1]d. In the adaptive continual release model, Algorithm 3 is (ε,δ)-differentially private and (γ,α,β)-accurate for estimating f, where
α=O(εγlog(T/β)) if δ=0.
α=O(εlog(T/β)⋅γlog(1/δ)) if δ>0.
Proof.
We start by proving the privacy of Algorithm 3. The entire algorithm is composed of a series of AboveThreshold algorithms and Laplace mechanisms, where the i-th execution of each is εi-differentially private. By basic and advanced composition theorems, it suffices to verify ∑i=1Tεi≤ε/2 for δ=0 and 21∑i=1Tεi2+2ln(1/δ)∑i=1Tεi2≤ε/2 for δ>0. For the former, we have
We then prove the utility. By Theorem 2.8, with probability 1−β/2T the i-th execution of AboveThreshold is αi-accurate. By Theorem 2.7, with probability 1−β/2T the i-th Laplace mechanism has error no more than 2ln(2T/β)/εi. From now on, we condition on the event that all the above happen. By the union bound, this holds with probability 1−β.
Let t1<t2<⋯ be the time-steps at which AboveThreshold responses ⊤. For i≤⌈1/γ⌉, we have 2ln(2T/β)/εi≤α/3. Therefore,
Our algorithm for MaxSelect is similar to Algorithm 3, with the Laplace mechanism replaced by the exponential mechanism. We illustrate the details in Algorithm 4 and the results in Theorem A.2.
Algorithm 4 Privately Releasing MaxSelect
Input: time horizon T∈N, privacy parameters ε,δ, relative error parameter γ, failure probability β, data stream (x1,…,xT), where xi∈[0,1]d.
Output: stream (a1,…,aT)∈[d]T.
if δ=0 then
α←εγ768(lnT+ln(4dT/β)).
else
α←γ224ln(1/δ)⋅ε48(lnT+ln(4dT/β)).
end if
εj←α48(lnT+ln(4dT/β)) for j≤⌈3/γ⌉ and εj←α⋅(1+γ/3)j−⌈3/γ⌉−148(lnT+ln(4dT/β)) for j>⌈3/γ⌉.
αj←εj8(lnT+ln(4T/β)) for all j.
a0←1.
i←1.
Initiate an instance of AboveThreshold with privacy parameter ε1 and threshold 0.
Feed qt to AboveThreshold and obtain outcome σt.
if σt=⊤ then
Define ℓt(j)≡−∑s=1txs[j] for j∈[d].
Set at←k with probability ∑j∈[d]exp(−εiℓt(j)/2)exp(−εiℓt(k)/2).
i←i+1.
Initiate an instance of AboveThreshold with privacy parameter εi and threshold 0.
else
at←at−1.
end if
end for
Theorem A.2.
Let d,T∈N, ε,γ,β∈(0,1), and δ∈[0,1/2). In the adaptive continual release model, Algorithm 4 is (ε,δ)-differentially private and (γ,α,β)-accurate for MaxSelect, where
α=O(εγlog(dT/β)) if δ=0.
α=O(εlog(dT/β)⋅γlog(1/δ)) if δ>0.
Proof.
The proof strategy is similar to the proof of Theorem A.1. For privacy, by basic and advanced composition theorems, it suffices to verify ∑i=1Tεi≤ε/2 for δ=0 or 21∑i=1Tεi2+2ln(1/δ)∑i=1Tεi2≤ε/2 for δ>0. For the former, we have
We next prove the utility guarantee. By Theorem 2.8, with probability 1−β/2T the i-th execution of AboveThreshold is αi-accurate. By Theorem 2.9, with probability 1−β/2T the i-th exponential mechanism has error no more than 2ln(2dT/β). From now on, we condition on the event that all the above happen. By the union bound, this holds with probability 1−β.
Let t1<t2<⋯ be the time-steps in which AboveThreshold responses ⊤. For i≤⌈3/γ⌉, we have 2ln(2dT/β)/εi≤α/3. Therefore,
s=1∑tixs[ati]≥j∈[d]maxs=1∑tixs[j]−α/3.
Moreover, σti=⊤ implies qti≥−αi, which yields
B.1 Non-Adaptive Lower Bound for MaxSum and MinSum
Following the proof strategy of Jain et al. (2023), we show that an algorithm for MaxSum or MinSum can be used to release one-way marginals. We will make use of the following hardness result.
Lemma B.1 ((Hardt and Talwar, 2010; Lyu and Talwar, 2025)).
Let d be sufficiently large and X={0,1}d. Suppose A is an algorithm that takes as input a dataset S=(x1,…,xn)∈Xn and outputs a d-dimensional vector such that
APr[A(S)[j]−i=1∑nxi[j]≤n/100for all j∈[d]]≥2/3.
Then:
For some n=Θ(d/ε), algorithm A cannot be ε-differentially private.
For some n=Θ(d/ε), algorithm A cannot be (ε,o(1/n))-differentially private.
Theorem B.2.
Let d,T∈N be sufficiently large. Any (ε,δ)-differentially private mechanism M solving MaxSum or MinSum in the non-adaptive continual release model with relative error γ and success probability 2/3 must incur an additive error of
α=Ω(min{εγ1,εd,εT,T}) if δ=0.
α=Ω(min{ε1/γ,εd,ε2/3T1/3,T}) if δ>0 and δ=o(ε/T).
Proof.
Assume γ≤1/1000. Similar to the argument used in (Jain et al., 2023), we can prove that α=Ω(T) when εT≤2. Note that the lower bound should be a non-decreasing function of d, since an algorithm for d-dimensional data can be used to solve the problem for d∗-dimensional data (d∗<d) by padding each input vector with d−d∗ zeros. Therefore, it suffices to consider d=1. Let S be a sequence with T0’s and S′ be another sequence with 3T/40’s followed by T/41’s. Let aT and aT′ be the output of M at round T on S and S′, respectively. Suppose α≤T/9, we have Pr[aT≤T/9]≥2/3. By group privacy, we have Pr[aT′>T/9]≤e⋅Pr[aT>T/9]+2δ/ε<2/3 for sufficiently large T. But by the utility of M, we also have Pr[aT′>T/9]>Pr[aT′>(1−γ)T/4−α]≥2/3, a contradiction. Thus, we have α>T/9=Ω(T).
From now on, we assume that ε>2/T. We first consider MaxSum. Let S=(x1,…,xn) be a dataset, where xi∈{0,1}d. Let ei be the i-th standard basis vector in Rd and ei=1−ei. We construct a stream (y1,…,yT′) for T′=2nd as follows:
yt=xt for t∈[n].
yn+2n(i−1)+1=⋯=yn+2n(i−1)+n=ei for all i∈[d].
yn+2n(i−1)+n+1=⋯=yn+2ni=ei for all i∈[d−1].
Note that at round t=n+2n(i−1)+n (i∈[d]), we have
s=1∑tys[i]=k=1∑nxk[i]+in
and
s=1∑tys[j]=k=1∑nxk[j]+(i−1)n
for all j=i. Thus,
s=1∑tys[i]≥s=1∑tys[j]
for all j=i. If T≥T′ and we run M on (y1,…,yT′), then with probability 2/3, the output at should satisfy
Hence, at−in is an estimate of ∑k=1nxk[i] with absolute error
γ(i+1)n+α≤γ(d+1)n+α.
Suppose d≤⌊1/1000γ⌋. The above error is at most γ(1/1000γ+1)n+α≤n/500+α.
For the case that δ=0, we take n=Θ(d/ε) as in Lemma B.1. When d≤O(εT), we have T≥2nd=T′. Hence, we can use M to construct an (ε,δ)-differentially private algorithm to release the one-way marginals with error n/500+α. This implies α≥n/100−n/500=Ω(d/ε) because otherwise it will contradict Lemma B.1. When d≥Ω(εT), taking d∗=Θ(εT) gives α=Ω(d∗/ε)=Ω(T/ε) since the lower bound is non-decreasing in d.
The case that δ>0 is similar. We set n=Θ(d/ε). When d≤O((εT)2/3), we have T≥2nd=T′. By the same argument we have α=Ω(d/ε). When d≥Ω((εT)2/3), taking d∗=Θ((εT)2/3) yields α=Ω(d∗/ε)=Ω(T1/3/ε2/3).
It remains to prove the lower bound for d>⌊1/1000γ⌋. We can again take d∗=⌊1/1000γ⌋, which gives
α=Ω(min{d∗/ε,T/ε})=Ω(min{1/εγ,T/ε})
for δ=0 and
α=Ω(min{d∗/ε,T1/3/ε2/3})=Ω(min{1/εγ,T1/3/ε2/3})
for δ>0. Summarizing all cases yield our desired lower bound.
The proof for MinSum is analogous. We just flip the construction of the input stream, i.e., we set
yt=xt for t∈[n].
yn+2n(i−1)+1=⋯=yn+2n(i−1)+n=ei for all i∈[d].
yn+2n(i−1)+n+1=⋯=yn+2ni=ei for all i∈[d−1].
We can similarly show that at−(i−1)n is an estimate of ∑k=1nxk[i] with error γdn+α for t=n+2n(i−1)+n. The result then follows by an identical argument. ∎
B.2 Non-Adaptive Lower Bound for MaxSelect and MinSelect
Our proof is based on the construction of Jain et al. (2023). The idea is to show that an algorithm for MaxSelect or MinSelect in the continual release model can be used to simultaneously solve multiple instances of the same problem in the batch model. Therefore, the desired lower bound can be proved by leveraging the following lemma.
Lemma B.3 ((Jain et al., 2023)).
Let X={0,1}d, where d=d′k. Suppose M is an (ε,δ)-differentially private algorithm that takes as input a dataset S={x1,…,xn}∈Xn and outputs a k-dimensional vector such that
M(S)[i]∈{(i−1)d′+1,…,id′} for all i∈[k]
and
MPr[l=1∑nxl[M(S)[i]]≥l=1∑nxl[(i−1)d′+j]−α for all i,j∈[k]×[d′]]≥2/3
for some α≤n/20. Then, we have the following:
α=Ω(εklogd′) if δ=0.
α=Ω(εklog(1/δ)logd′) if δ>0 and δ=o(1/n2).
Theorem B.4.
Let d,T∈N be sufficiently large. Any (ε,δ)-differentially private algorithm M solving MaxSelect or MinSelect in the non-adaptive continual release model with relative error γ and success probability 2/3 must incur an additive error of
α=Ω~(min{εγ1,εd,εTlog(1/γ),εTlogd,T}) if δ=0.
α=Ω~(min{ε1/γ,εd,ε2/3T1/3log2/3(1/γ),ε2/3T1/3log2/3d,T}) if δ>0 and δ=o(ε/T2).
Proof.
Similar to the argument made in the proof of Theorem 4.3, we can show that the lower bound should be a non-decreasing function of d and α=Ω(T) when εT≤2 for both MaxSelect and MinSelect. Thus, we assume ε>2/T in the remainder of the proof.
Assume γ≤1/100. We consider MaxSelect first. Let S=(x1,…,xn), where xi∈{0,1}d, d=d′k for some k, and n=⌈50α⌉. For i∈[k], define vi as the vector with vi[j]=1 for j∈[(i−1)d′+1,id′] and vi[j]=0 for j∈/[(i−1)d′+1,id′]. Let vi=1−vi. Construct a stream (y1,…,yT′) for T′=n+4n(k−1)+2n as follows:
yt=xt for t∈[n].
yn+4n(i−1)+1=⋯=yn+4n(i−1)+2n=vi for i∈[k].
yn+4n(i−1)+2n=⋯=yn+4ni=vi for i∈[k−1].
Note that at round t=n+4n(i−1)+2n (i∈[k]), we have
If T′>T, we have α=Ω(T/k). Otherwise, by Lemma B.3, we have α=Ω(εklogd′) for δ=0 and α=Ω(εklogd′) for δ>0. We have to select a k to maximize Ω(min{T/k,klogd′/ε}) for δ=0 and Ω(min{T/k,klogd′/ε}) for δ>0. This optimization problem was discussed in (Jain et al., 2023), resulting in
α=Ω~(min{εd,εTlogd,T})
for δ=0 and
α=Ω~(min{εd,ε2/3T1/3log2/3d,T})
for δ>0. When d>1/100γ, the lower bound can be obtained by setting d=1/100γ in the above results since it is non-decreasing in d. Summarizing all cases yields our final lower bound.
For the proof for MinSelect, we again flip the construction by setting
yt=1−xt for t∈[n].
yn+4n(i−1)+1=⋯=yn+4n(i−1)+2n=vi for i∈[k].
yn+4n(i−1)+2n=⋯=yn+4ni=vi for i∈[k−1].
We can similarly show that at∈[(i−1)d′+1,id′] and
We then prove the utility guarantee. By Theorem 2.8, with probability 1−β/4T the i′-th execution of AboveThreshold is αi=α⌈i′/K⌉-accurate. By Theorem 2.9, with probability 1−β/4T the i′-th execution of the exponential mechanism has error no more than 2ln(4dT/β)/εi=2ln(4dT/β)/ε⌈i′/K⌉. In what follows we condition on the event that all the above happen. By the union bound, this holds with probability 1−β/2.
Let t1<t2<⋯ be the time-steps at which AboveThreshold returns ⊤. We will prove that with probability 1−β/4, it holds that
j∈[d]mins=1∑tiKxs[j]≥iα/4
for all i≤⌈4/γ⌉ if tiK exists.
Note that the above holds for i=0 (define t0=0). Now, suppose it holds for some i<⌈4/γ⌉. Let t~ be the last time-step at which
j∈[d]mins=1∑t~xs[j]<(i+1)α/4.
Our goal is to show t(i+1)K>t~ if t(i+1)K exists. This clearly holds if t~≤tiK. Now suppose t~>tiK. We will show that with probability 1−β/(4⋅⌈4/γ⌉), in the time interval [tiK+1,t~] the number of times AboveThreshold responses ⊤ is less than K. As a consequence, we have t(i+1)K>t~ if t(i+1)K exists.
Define the potential function at round t as Φt=∑j∈[d]exp(−εi+1ℓt(j)/2), we have
ΦtiK≤dexp(−εi+1(iα/4)/2)=dexp(−εi+1⋅iα/8)
and
Φt~>exp(−εi+1((i+1)α/4)/2)=exp(−εi+1(i+1)α/8).
As a consequence, we have ΦtiK/Φt~<dexp(εi+1α/8). Let sk∈[tiK+1,t~] be the last time-step such that Φsk≥ΦtiK/ek for k=1,…,r, where r≤lnd+εi+1α/8≤lnd+8(lnT+ln(8dT/β)). Assume at round t∈[sk−1+1,sk] (define s0=tiK for simplicity) AboveThreshold returns σt=⊤, the probability that σt′=⊤ for some t′∈[t+1,sk] is at most the probability that we choose some j∈[d] at round t such that
Therefore, the probability that AboveThreshold returns at least K⊤’s during [tiK+1,t~] can be bounded by the probability that the sum of K−1 Bernoulli random variables with mean 1/5 is less than r. By the Chernoff bound (Chernoff, 1952), setting K−1≥10r+40ln(4⋅⌈4/γ⌉/β) ensures that this probability is at most β/(4⋅⌈4/γ⌉). Our desired conclusion follows by induction and the union bound.
Further condition on the previous result, we then use a similar argument to prove that
j∈[d]mins=1∑tiKxs[j]≥α/γ⋅(1+γ/3)i−⌈4/γ⌉
for i≥⌈4/γ⌉ (if tiK exists) with probability 1−β/4. We have shown that this holds for i=⌈4/γ⌉. Now, assume it holds for some i≥⌈4/γ⌉ and let t~ be the last time-step at which
Again let sk∈[tiK+1,t~] be the last time-step such that Φsk≥ΦtiK/ek for k=1,…,r, where r≤lnd+εi+1α(1+γ/3)i−⌈4/γ⌉/6≤lnd+8(lnT+ln(8dT/β)). Assume at round t∈[sk−1+1,sk]AboveThreshold returns σt=⊤, the probability that σt′=⊤ for some t′∈[t+1,sk] is at most
Thus, the probability that AboveThreshold returns at least K⊤’s during [tiK+1,t~] is bounded by β/(4⋅lnT/ln(1+γ/3)) given that K−1≥10r+40ln(4⋅(lnT/ln(1+γ/3)/β). The result follows by an induction argument, the union bound, and the fact that
i−⌈4/γ⌉≤log1+γ/3T=ln(1+γ/3)lnT.
We now prove the final conclusion. For round t such that σt=⊥, by we have qt≤αi. Thus,
Given a matrix X, denote by X(i) the matrix obtained by removing the i-th row of X. A column of X is called a consensus column if all entries in this column are the same. When we say an algorithm that takes as input a matrix is differentially private, we view each row of the matrix as an item. The following lemma provides a lower bound on the sample complexity of identifying the signs of a large portion of columns under approximate DP.
Lemma C.1 ((Talwar et al., 2015; Asi et al., 2023b)).
Let p=1000m2 and n=m/logm for sufficiently large m. There exists a matrix X∈{−1,1}(n+1)×p such that:
Let Wi be the set of indices of consensus columns in X(i). Then ∣Wi∣≥0.999p.
Any algorithm A:{−1,1}n×p→{−1,1}p such that PrA[∑j∈WiI[A(X(i))[j]=X1,j]≥3p/4]≥2/3 for all i∈[n+1] is not (1,o(1/n2))-differentially private.
We use the above lemma to prove Lemma 4.1.
Proof of Lemma 4.1.
Let X′∈{−1,+1}(n′+1)×p be the matrix in Lemma C.1 with p=d. We have n′=Θ(d/logd). Let k=⌊1/ε⌋. For every i∈[n′+1], we construct a matrix X(i)∈{−1,+1}n×d by concatenating k copies of X(i)′. Consider an algorithm B:{−1,+1}n′×d→{−1,1}d that first concatenates k copies of the input matrix and then runs A on the resulting matrix. Note that X(i)′ and X(i) have the same set of consensus columns Wi. We have
By Lemma C.1, B is not (1,o(1/n2))-differentially private. Now, suppose A is (ε,δ)-differentially private for δ=o(1/n3). Group privacy implies that B is (kε,eε−1ekε−1δ)-differentially private. However, we have kε≤1 and eε−1ekε−1δ=O(kδ)=o(1/n2), a contradiction. ∎
C.3 Proof of Lemma 4.2
Proof of Lemma 4.2.
By standard constructions of error correcting codes, there exists m=2Θ(d) vectors v1,…,vm in {−1,1}d such that
dis(vi,vj)=k∈[d]∑I[vi[k]=vj[k]]≥9d/20.
For every i∈[m], construct a matrix Xi∈{−1,1}n×d by stacking n copies of vi. Thus, all columns in Xi are consensus columns. By the utility guarantee of A, it holds with probability at least 2/3 that dis(A(Xi),vi)≤d/5, which further implies that
where the second inequality uses the group privacy property of pure DP. Rearranging the above gives n≥ln(2m/3)/ε=Ω(d/ε). ∎
Appendix D Discussion on Negative Inputs
If the inputs can take values in [−1,1], we can show that the additive error lower bound proved by Jain et al. (2023) continues to hold even when relative error is permitted. In their construction, the following operation is performed repeatedly:
Append multiple copies of some vector vi∈[0,1]d.
Append the same number of copies of vi=1−vi.
This operation increases the cumulative sum along every attribute. However, when inputs can be negative, we can instead use vi=−vi. This modification ensures that the quantity of interest remains small over time. Hence, the relative error term is always negligible and their additive error bound still applies.