Robust and Differentially Private Mean Estimation

Xiyang Liu, Weihao Kong, Sham Kakade, Sewoong Oh

Introduction

When releasing database statistics on a collection of entries from individuals, we would ideally like to make it impossible to reverse-engineer each individual’s potentially sensitive information. Privacy-preserving techniques add just enough randomness tailored to the statistical task to guarantee protection. At the same time, it is becoming increasingly common to apply such techniques to databases collected from multiple sources, not all of which can be trusted. Emerging data access frameworks, such as federated analyses across users’ devices or data silos , make it easier to temper with such collected datasets, leaving private statistical analyses vulnerable to a malicious corruption of a fraction of the data.

Differential privacy has emerged as a widely accepted de facto measure of privacy, which is now a standard in releasing the statistics of the U.S. Census data statistics and also deployed in real-world commercial systems . A statistical analysis is said to be differentially private (DP) if the likelihood of the (randomized) outcome does not change significantly when a single arbitrary entry is added/removed (formally defined in §1.2). This provides a strong privacy guarantee: even a powerful adversary who knows all the other entries in the database cannot confidently identify whether a particular individual is participating in the database based on the outcome of the analysis. This ensures plausible deniability, central to protecting an individual’s privacy.

In this paper, we focus on one of the most canonical problems in statistics: estimating the mean of a distribution from i.i.d. samples. For distributions with unbounded support, such as sub-Gaussian and heavy-tailed distributions, fundamental trade-offs between accuracy, sample size, and privacy have only recently been identified and efficient private estimators proposed. However, these approaches are brittle when a fraction of the data is corrupted, posing a real threat, referred to as data poisoning attacks . In defense of such attacks, robust (but not necessarily private) statistics has emerged as a popular setting of recent algorithmic and mathematical breakthroughs .

One might be misled into thinking that privacy ensures robustness since DP guarantees that a single outlier cannot change the estimation too much. This intuition is true only in a low dimension; each sample has to be an obvious outlier to significantly change the mean. However, in a high dimension, each corrupted data point can look perfectly uncorrupted but still shift the mean significant when colluding together (e.g., see Fig. 1). Focusing on the canonical problem of mean estimation, we introduce novel algorithms that achieve robustness and privacy simultaneously even when a fraction of data is corrupted arbitrarily. For such algorithms, there is a fundamental question of interest: do we need more samples to make private mean estimation also robust against adversarial corruption?

Algorithm 2 is (ε,δ)(\varepsilon,\delta)-DP. When α\alpha fraction of the data is arbitrarily corrupted from nn samples from a dd-dimensional sub-Gaussian distribution with mean μ\mu and an identity sub-Gaussian parameter, if n=Ω~(d/α2+(d+d1/2log⁡(1/δ))/(αε))n=\widetilde{\Omega}(d/\alpha^{2}+(d+d^{1/2}\log(1/\delta))/(\alpha\varepsilon)) then Algorithm 2 achieves ∥μ^−μ∥2=O(αlog⁡(1/α))\|\hat{\mu}-\mu\|_{2}=O(\alpha\sqrt{\log(1/\alpha)}) w.h.p.

PRIME is (ε,δ)(\varepsilon,\delta)-DP and under the assumption of Thm.1, if n=Ω~(d/α2+(d3/2log⁡(1/δ))/(αε))n=\widetilde{\Omega}(d/\alpha^{2}+(d^{3/2}\log(1/\delta))/(\alpha\varepsilon)), achieves ∥μ^−μ∥2=O(αlog⁡(1/α))\|\hat{\mu}-\mu\|_{2}=O(\alpha\sqrt{\log(1/\alpha)}) w.h.p.

Heavy-tailed distributions. When samples are drawn from a distribution with a bounded covariance, parameters of Algorithm 2 can be modified to nearly match the optimal sample complexity of (non-robust) private mean estimation in Table 2. This algorithm also matches the fundamental limit on the accuracy of (non-private) robust estimation, which in this case is Ω(α1/2)\Omega(\alpha^{1/2}).

The proposed PRIME-ht for covariance bounded distributions achieve computational efficiency at the cost of an extra factor of d1/2d^{1/2} in sample size. This bottleneck is also due to DP PCA, and it remains open whether this gap can be closed by an efficient estimator.

PRIME-ht is (ε,δ)(\varepsilon,\delta)-DP and if n=Ω~((d3/2log⁡(1/δ))/(αε))n=\widetilde{\Omega}((d^{3/2}\log(1/\delta))/(\alpha\varepsilon)) achieves ∥μ^−μ∥2=O(α1/2)\|\hat{\mu}-\mu\|_{2}=O(\alpha^{1/2}) w.h.p. under the assumptions of Thm. 3.

We introduce PRIME which simultaneously achieves (ε,δ)(\varepsilon,\delta)-DP and robustness against α\alpha-fraction of corruption. A major challenge in making a standard filter-based robust estimation algorithm (e.g., ) private is the high sensitivity of the filtered set that we pass from one iteration to the next. We propose a new framework which makes private only the statistics of the set, hence significantly reducing the sensitivity. Our major innovation is a tight analysis of the end-to-end sensitivity of this multiple interactive accesses to the database. This is critical in achieving robustness while preserving privacy and is also of independent interest in making general iterative filtering algorithms private.

The classical filter approach (see, e.g. ) needs to access the database O(d)O(d) times, which brings an extra O(d)O(\sqrt{d}) factor in the sample complexity due to DP composition. In order to reduce the iteration complexity, following the approach in , we propose filtering multiple directions simultaneously using a new score based on the matrix multiplicative weights (MMW). In order to privatize the MMW filter, our major innovation is a novel adaptive filtering algorithm DPthreshold(⋅\cdot) that outputs a single private threshold which guarantees sufficient progress at every iteration. This brings the number of database accesses from O(d)O(d) to O((log⁡d)2)O((\log d)^{2}).

One downside of PRIME is that it requires an extra d1/2d^{1/2} factor in the sample complexity, compared to known lower bounds for (non-robust) DP mean estimation. To investigate whether this is also necessary, we propose a sample optimal exponential time robust mean estimation algorithm in §4 and prove that there is no extra statistical cost to jointly requiring privacy and robustness. Our major technical innovations is in using resilience property of the dataset to not only find robust mean (which is the typical use case of resilience) but also bound sensitivity of that robust mean.

2 Preliminary on differential privacy (DP)

DP is a formal metric for measuring privacy leakage when a dataset is accessed with a query .

Let z∼Lap(b)z\sim{\rm Lap}(b) be a random vector with entries i.i.d. sampled from Laplace distribution with pdf (1/2b)e−∣z∣/b(1/2b)e^{-|z|/b}. Let z∼N(μ,Σ)z\sim{\cal N}(\mu,\Sigma) denote a Gaussian random vector with mean μ\mu and covariance Σ\Sigma.

We use these output perturbation mechanisms along with the exponential mechanism as building blocks. Appendix A provides detailed survey of privacy and robust estimation.

3 Problem formulation

Similarly, we consider the same problem for heavy-tailed distributions with a bounded covariance. We present the assumption and main results for covariance bounded distributions in Appendix B.

Outline. We present PRIME for sub-Gaussian distribution in §2, and present theoretical analysis in §3. We then introduce an exponential time algorithm with near optimal guarantee in §4. Due to space constraints, analogous results for heavy-tailed distributions are presented in Appendix B.

PRIME: efficient algorithm for robust and DP mean estimation

In order to describe the proposed algorithm PRIME, we need to first describe a standard (non-private) iterative filtering algorithm for robust mean estimation.

Non-private robust mean estimation approaches recursively apply the following filter, whose framework is first proposed in . Given a dataset S={xi}i=1nS=\{x_{i}\}_{i=1}^{n}, the current set S0⊆[n]S_{0}\subseteq[n] of data points is updated starting with S1=[n]S_{1}=[n]. At each step, the following filter (Algorithm 1 in ) attempts to detect the corrupted data points and remove them.

Compute the top eigenvector vt←arg max⁡v:∥v∥2=1v⊤Cov(St−1)vv_{t}\leftarrow\argmax_{v:\|v\|_{2}=1}v^{\top}{\rm Cov}(S_{t-1})v of the covariance of the current data set {xi}i∈St−1\{x_{i}\}_{i\in S_{t-1}} ;

Compute scores for all data points j∈St−1j\in S_{t-1}: τj←(vt⊤(xj−Mean(St−1)))2\tau_{j}\leftarrow\left(v_{t}^{\top}\left(x_{j}-{\rm Mean}(S_{t-1})\right)\right)^{2} ;

Draw a random threshold: Zt←Unif()Z_{t}\leftarrow{\rm Unif}() ;

Remove outliers from St−1S_{t-1} defined as {i∈St−1 : τi\{i\in S_{t-1}\,:\,\tau_{i} is in the largest 2α2\alpha-tail of {τj}j∈St−1\{\tau_{j}\}_{j\in S_{t-1}} and τi≥Zt τmax}\tau_{i}\geq Z_{t}\,\tau_{\rm max}\}, where τmax=max⁡j∈St−1τj\tau_{\rm max}=\max_{j\in S_{t-1}}\tau_{j}

This is repeated until the empirical covariance is sufficiently small and the empirical mean μ^\hat{\mu} is output. At a high level, the correctness of this algorithm relies on the key observation that the α\alpha-fraction of adversarial corruption can not significantly change the mean of the dataset without introducing large eigenvalues in the empirical covariance. Therefore, the algorithm finds top eigenvector of the empirical covariance in step 11, and tries to correct the empirical covariance by removing corrupted data points. Each data point is assigned a score in step 2 which indicates the “badness” of the data points, and a threshold ZtZ_{t} in step 3 is carefully designed such that step 4 guarantees to remove more corrupted data points than good data points (in expectation). This guarantees the following bound achieving the near-optimal sample complexity shown in the second row of Table 1. A formal description of this algorithm is in Algorithm 4 in Appendix C.

Under assumption 1, the above filtering algorithm achieves accuracy ∥μ^−μ∥2≤O(αlog⁡(1/α))\|\hat{\mu}-\mu\|_{2}\leq O(\alpha\sqrt{\log(1/\alpha)}) w.p. 0.90.9 if n≥Ω~(d/α2)n\geq\widetilde{\Omega}(d/\alpha^{2}) .

Challenges in making robust mean estimation private. To get a DP and robust mean, a naive attempt is to apply a standard output perturbation mechanism to μ^\hat{\mu}. However, this is obviously challenging since the end-to-end sensitivity is intractable. The standard recipe to circumvent this is to make the current “state” StS_{t} private at every iteration. Once St−1S_{t-1} is private (hence, public knowledge), making the next “state” StS_{t} private is simpler. We only need to analyze the sensitivity of a single step and apply some output perturbation mechanism with (εt,δt)(\varepsilon_{t},\delta_{t}). End-to-end privacy is guaranteed by accounting for all these (εt,δt)(\varepsilon_{t},\delta_{t})’s using the advanced composition . This recipe has been quite successful, for example, in training neural networks with (stochastic) gradient descent , where the current state can be the optimization variable xt\mathbf{x}_{t}. However, for the above (non-private) filtering algorithm, this standard recipe fails, since the state StS_{t} is a set and has large sensitivity. Changing a single data point in StS_{t} can significantly alter which (and how many) samples are filtered out.

2 A new framework for private iterative filtering

Instead of making the (highly sensitive) StS_{t} itself private, we propose a new framework which makes private only the statistics of StS_{t}: the mean μt\mu_{t} and the top principal direction vtv_{t}. There are two versions of this algorithm, which output the exactly same μ^\hat{\mu} with the exactly same privacy guarantees, but are written from two different perspectives. We present here the interactive version from the perspective of an analyst accessing the dataset via DP queries (qrange,qsize,qmean,qnormq_{\rm range},q_{\rm size},q_{\rm mean},q_{\rm norm} and qPCAq_{\rm PCA}), because this version makes clear the inner operations of each private mechanisms, hence making (i)(i) the sensitivity analysis transparent, (ii)(ii) checking the correctness of privacy guarantees easy, and (iii)(iii) tracking privacy accountant simple. In practice, one should implement the centralized version (Algorithm 7 in Appendix D), which is significantly more efficient.

We give a high-level explanation of each step of Algorithm 1 here and give the formal definitions of all the queries in Appendix D. First, qrangeq_{\rm range} returns (the parameters of) a hypercube xˉ+[−B/2,B/2]d\bar{x}+[-B/2,B/2]^{d} that is guaranteed to include all uncorrupted samples while preserving privacy. This is achieved by running dd coordinate-wise private histograms and selecting xˉj\bar{x}_{j} as the center of the largest bin for the jj-th coordinate. Since covariance is I{\bf I}, qrangeq_{\rm range} returns a fixed B=8σlog⁡(dn/ζ)B=8\sigma\sqrt{\log(dn/\zeta)}. Such an adaptive estimate of the support is critical in tightly bounding the sensitivity of all subsequent queries, which operate on the clipped dataset; all data points are projected as Pxˉ+[−B/2,B/2]d(x)=arg⁡min⁡y∈xˉ+[−B/2,B/2]d∥y−x∥2{\cal P}_{\bar{x}+[-B/2,B/2]^{d}}(x)=\arg\min_{y\in\bar{x}+[-B/2,B/2]^{d}}\|y-x\|_{2} in all the queries that follow. With clipping, a single data point can now change at most by BdB\sqrt{d}.

The subsequent steps perform the non-private filtering algorithm of §2.1, but with private statistics μt\mu_{t} and vtv_{t}. As the set StS_{t} changes over time, we lower bound its size (which we choose to be ∣St∣>n/2|S_{t}|>n/2) to upper bound the sensitivity of other queries qmean,qnormq_{\rm mean},q_{\rm norm} and qPCAq_{\rm PCA}.

Recall that two datasets are neighboring, i.e., S∼S′{\cal S}\sim{\cal S}^{\prime}, iff d△(S,S′)≤1d_{\triangle}({\cal S},{\cal S}^{\prime})\leq 1. This lemma implies that if two datasets are neighboring, then they are still neighboring after filtering with the same parameters, no matter how many times we filter them. Hence, this lemma allows us to use the standard output-perturbation mechanisms with (ε1,δ1)(\varepsilon_{1},\delta_{1})-DP. Advanced composition ensures that end-to-end guarantee of 4T4T such queries is (0.99ε,0.99δ)(0.99\varepsilon,0.99\delta)-DP. Together with (0.01ε,0.01δ)(0.01\varepsilon,0.01\delta)-DP budget used in qrangeq_{\rm range}, this satisfied the target privacy. Analyzing the utility of this algorithm, we get the following guarantee.

Algorithm 1 is (ε,δ)(\varepsilon,\delta)-DP. Under Assumption 1, there exists a universal constant c∈(0,0.1)c\in(0,0.1) such that if α≤c\alpha\leq c and n=Ω~((d/α2)+d2(log⁡(1/δ))3/2/(εα))n=\widetilde{\Omega}\left((d/\alpha^{2})+{d^{2}(\log(1/\delta))^{3/2}}/({\varepsilon\alpha})\right) then Algorithm 1 achieves ∥μ^−μ∥2≤O(αlog⁡(1/α))\|\hat{\mu}-\mu\|_{2}\leq O(\alpha\sqrt{\log(1/\alpha)}) with probability 0.90.9.

The first term O(d/α2)O(d/\alpha^{2}) in the sample complexity is optimal (cf. Table 1), but there is a factor of dd gap in the second term. This is due to the fact that we need to run O(d)O(d) iterations in the worst-case. Such numerous accesses to the database result in large noise to be added at each iteration, requiring large sample size to combat that extra noise. We introduce PRIME to reduce the number of iterations to O((log⁡d)2)O((\log d)^{2}) and significantly reduce the sample complexity.

3 PRIME: novel robust and private mean estimator

Algorithm 1 (specifically Filter(⋅\cdot) in Algorithm 1) accesses the database O(d)O(d) times. This is necessary for two reasons. First, the filter checks only one direction vtv_{t} at each iteration. In the worst case, the corrupted samples can be scattered in Ω(d)\Omega(d) orthogonal directions such that the filter needs to be repeated O(d)O(d) times. Secondly, even if the corrupted samples are clustered together in one direction, the filter still needs to be repeated O(d)O(d) times. This is because we had to use a large (random) threshold of dB2Zt=O(d)dB^{2}Z_{t}=O(d) to make the threshold data-independent so that we can keep the sensitivity of Filter(⋅\cdot) low, which results in slow progress. We propose filtering multiple directions simultaneously using a new score {τi}\{\tau_{i}\} based on the matrix multiplicative weights. Central to this approach is a novel adaptive filtering algorithm DPthreshold(⋅\cdot) that guarantees sufficient decrease in the total score at every iteration.

for some choice of α(s)>0\alpha^{(s)}>0. If we set the number of iterations to one, a choice of α(s)=∞\alpha^{(s)}=\infty recovers the previous score that relied on the top singular vector from §2.1 and a choice of α(s)=0\alpha^{(s)}=0 gives a simple norm based score τi=∥xi∥22\tau_{i}=\|x_{i}\|^{2}_{2}. An appropriate choice of α(s)\alpha^{(s)} smoothly interpolates between these two extremes, which ensures that O(log⁡d)O(\log d) iterations are sufficient for the spectral norm of the covariance to decrease strictly by a constant factor. This guarantees that after O(log⁡d)O(\log d) epochs, we sufficiently decrease the covariance to ensure that the empirical mean is accurate enough. Critical in achieving this gain is our carefully designed filtering algorithm DPthreshold that uses the privately computed MMW-based scores using Gaussian mechanism on the covariance matrices as shown in Algorithm 11 in Appendix E.

Novelty. The corresponding non-private filtering of [36, Algorithm 9] for robust mean estimation takes advantage of an adaptive threshold, but filters out each sample independently resulting in a prohibitively large sensitivity; the coupling between each sample and the randomness used to filter it can change widely between two neighboring datasets. On the other hand, Algorithm 1 (i.e., Filter(⋅\cdot) in Algorithm 6) takes advantage of jointly filtering all points above a single threshold B2dZtB^{2}dZ_{t} with a single randomness Zt∼UnifZ_{t}\sim{\rm Unif}, but the non-adaptive (and hence large) choice of the range B2dB^{2}d results in a large number of iterations because each filtering only decrease the score by little. To sufficiently reduce the total score while maintaining a small sensitivity, we introduce a filter with a single and adaptive threshold.

Algorithm. Our goal here is to privately find a single scalar ρ\rho such that when a randomized filter is applied on the scores {τi}\{\tau_{i}\} with a (random) threshold ρZ\rho Z (with ZZ drawn uniform in $),wefilteroutenoughsamplestomakeprogressineachiterationwhileensuringthatwedonotremovetoomanyuncorruptedsamples.Thisisaslightgeneralizationofthenon−privatealgorithminSection2.1,whichsimplyset), we filter out enough samples to make progress in each iteration while ensuring that we do not remove too many uncorrupted samples. This is a slight generalization of the non-private algorithm in Section 2.1, which simply set\rho=\max_{j\in S_{t}}\tau_{j}$. While this guarantees the filter removes more corrupted samples than good samples, it does not make sufficient progress in reducing the total score of the samples.

Ideally, we want the thresholding to decrease the total score by a constant multiplicative factor, which will in the end allow the algorithm to terminate within logarithmic iterations. To this end, we propose a new scheme of using the largest ρ\rho such that the following inequality holds:

We use a private histogram of the scores to approximate this threshold. Similar to , we use geometrically increasing bin sizes such that we use only O(log⁡B2d)O(\log B^{2}d) bins while achieving a preferred multiplicative error in our quantization. At each epoch ss and iteration tt, we run DPthreshold sketched in the following to approximate ρ\rho followed by a random filter. Step 3 replaces the non-private condition in Eq. (1). A complete description is provided in Algorithm 11.

Privately compute scores for all data points i∈St(s): τi←(xi−μt)⊤Ut(s)(xi−μt)i\in S_{t}^{(s)}:\,\tau_{i}\leftarrow(x_{i}-\mu_{t})^{\top}U_{t}^{(s)}(x_{i}-\mu_{t}) ;

Analyses of PRIME

Building on the framework of Algorithm 1, PRIME (Algorithm 9) replaces the score with the MMW-based score presented in §2.3.1 and the filter with the adaptive DPthreshold. This reduces the number of iterations to T=O((log⁡d)2)T=O((\log d)^{2}) achieving the following bound.

PRIME is (ε,δ)(\varepsilon,\delta)-differentially private. Under Assumption 1 there exists a universal constant c∈(0,0.1)c\in(0,0.1) such that if α≤c\alpha\leq c and n=Ω~((d/α2)+(d3/2/(εα))log⁡(1/δ))n=\widetilde{\Omega}((d/\alpha^{2})+(d^{3/2}/(\varepsilon\alpha))\log(1/\delta)), then PRIME achieves ∥μ^−μ∥2=O(αlog⁡(1/α))\|\hat{\mu}-\mu\|_{2}=O(\alpha\sqrt{\log(1/\alpha)}) with probability 0.90.9.

A proof is provided in Appendix F. The notation Ω~(⋅)\widetilde{\Omega}(\cdot) hides logarithmic terms in dd, RR, and 1/α1/\alpha. To achieve an error of O(αlog⁡(1/α))O(\alpha\sqrt{\log(1/\alpha)}), the first term Ω~(d/α2log⁡(1/α))\widetilde{\Omega}(d/\alpha^{2}\log(1/\alpha)) is necessary even if there is no corruption. The accuracy of O(αlog⁡(1/α))O(\alpha\sqrt{\log(1/\alpha)}) matches the lower bound shown in for any polynomial time statistical query algorithm, and it nearly matches the information theoretical lower bound on robust estimation of Ω(α)\Omega(\alpha). On the other hand, the second term of Ω~(d3/2/(εαlog⁡(1/α)))\widetilde{\Omega}(d^{3/2}/(\varepsilon\alpha\log(1/\alpha))) has an extra factor of d1/2d^{1/2} compared to the optimal one achieved by exponential time Algorithm 2. It is an open question if this gap can be closed by a polynomial time algorithm.

The bottleneck is the private matrix multiplicative weights. Such spectral analyses are crucial in filter-based robust estimators. Even for a special case of privately computing the top principal component, the best polynomial time algorithm requires O(d3/2)O(d^{3/2}) samples , and this sample complexity is also necessary as shown in [39, Corollary 25].

To boost the success probability to 1−ζ1-\zeta for some small ζ>0\zeta>0, we need an extra log⁡(1/ζ)\log(1/\zeta) factor in the sample complexity to make sure the dataset satisfies the regularity condition with probability ζ/2\zeta/2. Then we can run PRIME log⁡(1/ζ)\log(1/\zeta) times and choose the output of a run that satisfies n(s)>n(1−10α)n^{(s)}>n(1-10\alpha) and λ(s)≤Cαlog⁡(1/α)\lambda^{(s)}\leq C\alpha\log(1/\alpha) at termination.

Numerical experiments support our theoretical claims. The left figure with (α,ε,δ,n)=(0.05,20,0.01,106)(\alpha,\varepsilon,\delta,n)=(0.05,20,0.01,10^{6}) is in the large α\alpha regime where the DP Mean error is dominates by αd\alpha\sqrt{d} and PRIME error by αlog⁡(1/α)\alpha\sqrt{\log(1/\alpha)}. Hence, PRIME error is constant whereas DP Mean error increases with the dimension dd. The second figure with (α,ε,δ,n)=(0.001,20,0.01,106)(\alpha,\varepsilon,\delta,n)=(0.001,20,0.01,10^{6}) is in the small α\alpha regime when DP Mean error consists of αd+d/n\alpha\sqrt{d}+\sqrt{d/n} and PRIME is dominated by d/n\sqrt{d/n}. Both increase with the dimension dd, and the gap can be made large by increasing α\alpha. The right figure with (α,δ,d,n)=(0.1,0.01,10,106)(\alpha,\delta,d,n)=(0.1,0.01,10,10^{6}) is when DP Mean error is dominated by αd\alpha\sqrt{d} and PRIME by αlog⁡(1/α)\alpha\sqrt{\log(1/\alpha)} when ε>cd1.5/(αn)\varepsilon>cd^{1.5}/(\alpha n). Below this threshold, which happens in this example around ε=0.05\varepsilon=0.05, the added noise in the private mechanism starts to dominate with decreasing ε\varepsilon. Both algorithms have respective thresholds below which the error increases with decreasing ε\varepsilon. This threshold is larger for PRIME because it uses the privacy budget to perform multiple operations and hence the noise added to the final output is larger compared to DP Mean. Below this threshold, which can be easily determined based on the known parameters (ε,δ,n,α)(\varepsilon,\delta,n,\alpha), we should either collect more data (which will decrease the threshold) or give up filtering and spend all privacy budget on qrangeq_{\rm range} and the empirical mean (which will reduce the error). Details of the experiments are in Appendix L.

Exponential time algorithm with near-optimal sample complexity

Novelty. An existing exponential time algorithm for robust and private mean estimation in strictly requires the uncorrupted samples to be drawn from a Gaussian distribution. We also provide a similar algorithm based on private Tukey median in Appendix I and its analysis in Appendix J. In this section, we introduce a novel estimator that achieves near-optimal guarantees for more general sub-Gaussian distributions (and also covariance bounded distributions) but takes an exponential run-time. Its innovation is in leveraging on the resilience property of well-behaved distributions not only to estimate the mean robustly (which is the standard use of the property) but also to adaptively bound the sensitivity of the estimator, thus achieving optimal privacy-accuracy tradeoff.

Algorithm. As data is corrupted, we define R(S)R(S) as a surrogate for resilience of the uncorrupted part of the set. If SS indeed consists of a 1−α1-\alpha fraction of independent samples from the promised class of distributions, the goodness score R(S)R(S) will be close to the resilience property of the good data.

For μ(S)=(1/∣S∣)∑i∈Sxi\mu(S)=(1/|S|)\sum_{i\in S}x_{i}, let us define

Algorithm 2 first checks if the resilience matches that of the promised distribution. The data is pre-processed with qrangeq_{\rm range} to ensure we can check R(S)R(S) privately. Once resilience is cleared, we can safely use the exponential mechanism based on the score function d(μ^,S)d(\hat{\mu},S) in Definition 4.3 to select an approximate robust mean μ^\hat{\mu} privately. The choice of the sensitivity critically relies on the fact that resilient datasets have small sensitivity of O((1/n)log⁡(1/α))O((1/n)\sqrt{\log(1/\alpha)}). Without the resilience check, the sensitivity is O(d1/2/n)O(d^{1/2}/n) resulting in an extra factor of d\sqrt{d} in the sample complexity.

We propose the score function d(μ^,S)d(\hat{\mu},S) in the following definition, which is a robust estimator of the distance between the mean and the candidate μ^\hat{\mu}.

Analysis. For any direction vv, the truncated mean estimator μ(Mv)\mu({\cal M}^{v}) provides a robust estimation of the true mean along the direction vv, thus the distance can be simply defined by taking the maximum over all directions vv. We show the sensitivity of this simple estimator is bounded by the resilience property σ\sigma divided by nn, which is O((1/n)log⁡(1/α))O((1/n)\sqrt{\log(1/\alpha)}) once the resilience check is passed. This leads to the following near-optimal sample complexity. We provide a proof in Appendix H.2.

Algorithm 2 is (ε,δ)(\varepsilon,\delta)-DP. Under Assumption 1, this algorithm achieves ∥μ^−μ∥2=O(αlog⁡(1/α))\|\hat{\mu}-\mu\|_{2}=O(\alpha\sqrt{\log(1/\alpha)}) with probability 1−ζ1-\zeta if

Run-time. Computing R(S)R(S) exactly can take O(deΘ(n))O(de^{\Theta(n)}) operations. The exponential mechanism implemented with α\alpha-covering for μ^\hat{\mu} and a constant covering for vv can take O(nd(log⁡(dn/ζ)/α)d)O(nd(\sqrt{\log(dn/\zeta)}/\alpha)^{d}) operations.

Conclusion

There are several directions for improving our results further and applying the framework to solve other problems. PRIME provides a new design principle for private and robust estimation. This can be more broadly applied to fundamental statistical analyses such as robust covariance estimation robust PCA , and robust linear regression .

PRIME could be improved in a few directions. First, the sample complexity of Ω~((d/(α2log⁡(1/α)))+(d3/2/(εαlog⁡(1/α)))log⁡(1/δ))\widetilde{\Omega}((d/(\alpha^{2}\log(1/\alpha)))+(d^{3/2}/(\varepsilon\alpha\log(1/\alpha)))\log(1/\delta)) in Theorem 6 is suboptimal in the second term. Improving the d3/2d^{3/2} factor requires bypassing differentially private singular value decomposition, which seems to be a challenging task. However, it might be possible to separate the log⁡(1/δ)\log(1/\delta) factor from the rest of the terms and get an additive error of the form Ω~((d/(α2log⁡(1/α)))+(d3/2/(εαlog⁡(1/α)))+(1/ε)log⁡(1/δ))\widetilde{\Omega}((d/(\alpha^{2}\log(1/\alpha)))+(d^{3/2}/(\varepsilon\alpha\log(1/\alpha)))+(1/\varepsilon)\log(1/\delta)). This requires using Laplace mechanism in private MMW (line 10 Algortihm 10). Secondly, the time complexity of PRIME is dominated by computation time of the matrix exponential in (line 10 Algortihm 10). Total number of operations scale as O~(d3+nd2)\widetilde{O}(d^{3}+nd^{2}). One might hope to achieve O~(nd)\widetilde{O}(nd) time complexity using approximate computations of τj\tau_{j}’s using techniques from . This does not improve the sample complexity, as the number of times the dataset is accessed remains the same. Finally, for (non-robust) private mean estimation, CoinPress provides a practical improvement in the small sample regime by progressively refining the search space . The same principle could be applied to PRIME to design a robust version of CoinPress. One important question remains open; how are differential privacy and robust statistics fundamentally related? We believe our exponential time algorithm hints on a fundamental connection between robust statistics of a data projected onto one-dimensional subspace and sensitivity of resulting score function for the exponential mechanism. It is an interesting direction to pursue this connection further to design novel algorithms that bridge privacy and robustness.

Acknowledgement

Sham Kakade acknowledges funding from the National Science Foundation under award CCF-1703574. Sewoong Oh acknowledges funding from Google faculty research award, NSF grants IIS-1929955, CCF-1705007, CNS-2002664, CCF 2019844 as a part of Institute for Foundation of Machine Learning, and CNS-2112471 as a part of Institute for Future Edge Networks and Distributed Intelligence.

References

Appendix

In an attempt to design efficient algorithms for robust and private mean estimation, proposed an algorithm with a mis-calculated sensitivity, which can result in violating the privacy guarantee. This can be corrected by pre-processing with our approach of checking the resilience (as in Algorithm 2), but this requires a run-time exponential in the dimension.

However, under α\alpha-corruption, shows that achieving an error better than O(α1/2)O(\alpha^{1/2}) under kk-th moment bound is as computationally hard as the small-set expansion problem, even without requiring DP. Hence, under the assumption of P≠NP{\rm P}\neq{\rm NP}, no polynomial-time algorithm exists that can outperform our PRIME-ht even if we have stronger assumptions of kk-th moment bound. On the other hand, there exists an exponential time algorithm for non-private robust mean estimation that achieves ∥μ−μ^∥2=O(α(k−1)/k)\|\mu-\hat{\mu}\|_{2}=O(\alpha^{(k-1)/k}) . Combining it with the bound of , an interesting open question is whether there is an (exponential time) algorithm that achieves ∥μ−μ^∥2=O(α(k−1)/k)\|\mu-\hat{\mu}\|_{2}=O(\alpha^{(k-1)/k}) with sample complexity n=O~((d/α2(k−1)/k)+(dlog⁡1/2(1/δ)/(εα)))n=\widetilde{O}((d/\alpha^{2(k-1)/k})+(d\log^{1/2}(1/\delta)/(\varepsilon\alpha))) under α\alpha-corruption and (ε,δ)(\varepsilon,\delta)-DP.

Robust estimation. Designing robust estimators under the presence of outliers has been considered by statistics community since 1960s . Recently, give the first polynomial time algorithm for mean and covariance estimation with no (or very weak) dependency on the dimensionality in the estimation error. Since then, there has been a flurry of research on robust estimation problems, including mean estimation , covariance estimation , linear regression and sparse regression , principal component analysis , mixture models and list-decodable learning . See for a survey of recent work.

One line of work that is particularly related to our algorithm PRIME is , which leverage the ideas from matrix multiplicative weight and fast SDP solver to achieve faster, sometimes nearly linear time, algorithms for mean and covariance estimation. In PRIME, we use a matrix multiplicative weight approach similar to to reduce the iteration complexity to logarithmic, which enables us to achieve the d3/2d^{3/2} dependency in the sample complexity.

The concept of resilience is introduced in as a sufficient condition such that learning in the presence of adversarial corruption is information-theoretically possible. The idea of resilience is later generalized in for a wider range of adversarial corruption models. While there exists simple exponential time robust estimation algorithm under resilience condition, it is challenging to achieve differential privacy due to high sensitivity. We propose a novel approach to leverage the resilience property in our exponential time algorithm for sub-gaussian and heavy-tailed distributions.

Appendix B Main results under heavy-tailed distributions

We consider distributions with bounded covariance as defined as follows.

Under these assumptions, Algorithm 2 achieves near optimal guarantees but takes exponential time. The dominant term in the sample complexity Ω~(d/(εα))\widetilde{\Omega}(d/(\varepsilon\alpha)) cannot be improved as it matches that of the optimal non-robust private estimation . The accuracy O(α)O(\sqrt{\alpha}) cannot be improved as it matches that of the optimal non-private robust estimation . We provide a proof in Appendix H.1.

Algorithm 2 is (ε,δ)(\varepsilon,\delta)-differentially private. Under Assumption 2, if

this algorithm achieves ∥μ^−μ∥2=O(α)\|\hat{\mu}-\mu\|_{2}=O(\sqrt{\alpha}) with probability 0.90.9.

PRIME-ht is (ε,δ)(\varepsilon,\delta)-differentially private. Under Assumption 2 there exists a universal constant c∈(0,0.1)c\in(0,0.1) such that if α≤c\alpha\leq c, and n=Ω~((d3/2/(εα))log⁡(1/δ))n=\widetilde{\Omega}((d^{3/2}/(\varepsilon\alpha))\log(1/\delta)), then PRIME-ht achieves ∥μ^−μ∥2=O(α1/2)\|\hat{\mu}-\mu\|_{2}=O(\alpha^{1/2}) with probability 0.90.9. The notation Ω~(⋅)\widetilde{\Omega}(\cdot) hides logarithmic terms in dd, and 1/α1/\alpha.

Remark 1. To boost the success probability to 1−ζ1-\zeta for some small ζ>0\zeta>0, we will randomly split the data into O(log⁡(1/ζ))O(\log(1/\zeta)) subsets of equal sizes, and run Algorithm 3 to obtain a mean estimation from each of the subset. Then we can apply multivariate “mean-of-means” type estimator to get ∥μ^−μ∥2=O(α1/2)\|\hat{\mu}-\mu\|_{2}=O(\alpha^{1/2}) with probability 1−ζ1-\zeta. This is efficient as we only have O(log⁡1/ζ)O(\log 1/\zeta) trials and run-time of mean-of-means is dominated by the time it takes to find all pairwise distances, which is only O(d (log(1/ζ))2)O(d\,({\rm log}(1/\zeta))^{2}). There are (log(1/ζ))2({\rm log}(1/\zeta))^{2} pairs, and for each pair we compute the distance between means in dd operations.

Appendix C Background on (non-private) robust mean estimation

The following tie-breaking rule is not essential for robust estimation, but is critical for proving differential privacy, as shown later in Appendix F.1.

Given a set of scalar values {τi=⟨V,(xi−μ)(xi−μ)⊤⟩}i∈S′\{\tau_{i}=\langle V,(x_{i}-\mu)(x_{i}-\mu)^{\top}\rangle\}_{i\in S^{\prime}} for a subset S′⊆[n]S^{\prime}\subseteq[n], define the sorted list π\pi of S′S^{\prime} such that τπ(i)≥τπ(i+1)\tau_{\pi(i)}\geq\tau_{\pi(i+1)} for all i∈[∣S′∣−1]i\in[|S^{\prime}|-1]. When there is a tie such that τi=τj\tau_{i}=\tau_{j}, it is broken by π−1(i)≤π−1(j)⇔xi,1≥xj,1\pi^{-1}(i)\leq\pi^{-1}(j)\Leftrightarrow x_{i,1}\geq x_{j,1}. Further ties are broken by comparing the remaining entries of xix_{i} and xjx_{j}, in an increasing order of the coordinate. If xi=xjx_{i}=x_{j} ,then the tie is broken arbitrarily. We define Tα={π(1),…,π(⌈nα⌉)}{\cal T}_{\alpha}=\{\pi(1),\ldots,\pi(\lceil n\alpha\rceil)\} to be the set of largest ⌈nα⌉\lceil n\alpha\rceil valued samples.

With this definition of α\alpha-tail, we can now provide a complete description of the robust mean estimation that achieves the guarantee provided in Proposition 2.1.

Appendix D A new framework for private iterative filtering

We provide complete descriptions of all algorithms used in private iterative filtering. We present the interactive version first, followed by the centralized version.

Adaptive estimation of the range of the dataset is essential in computing private statistics of data. We use the following algorithm proposed in . It computes a private histogram of a set of 1-dimensional points and select the largest bin as the one potentially containing the mean of the data. Note that BB does not need not be chosen adaptively to include all the uncorrupted data with a high probability.

The following guarantee (and the algorithm description) is used in the analysis (and the implementation) of the query qrangeq_{\rm range}.

p^k=1n∑Xi∈Bk1\hat{p}_{k}=\frac{1}{n}\sum_{X_{i}\in B_{k}}1

This is an intermediate result in the proof of Lemma 2.3 in . Note that, conceptually, we are applying the private histogram algorithm to an infinite number of bins in the intervals {⋯ ,(−4σ,−2σ],(−2σ,0],(0,2σ],(2σ,4σ],(4σ,6σ]⋯ }\{\cdots,(-4\sigma,-2\sigma],(-2\sigma,0],(0,2\sigma],(2\sigma,4\sigma],(4\sigma,6\sigma]\cdots\} each of length 2σ2\sigma. This is possible because the algorithm only changes the bins that are occupied by at least on sample. Practically, we only need to add noise to those bins that are occupied, and hence we limit the range from Rmin(j)R_{\rm min}^{(j)} to Rmax(j)R_{\rm max}^{(j)} without loss of generality and without any changes to the privacy guarantee of the algorithm.

D.2 Centralized version of the algorithm

In practice, one should run the centralized version of the private iterative filtering, in order to avoid multiple redundant computations of the interactive version. The main difference is that the redundant filtering repeated every time a query is called in the interactive version is now merged into a single run. The resulting estimation and the privacy loss are exactly the same.

First, qrangeq_{\rm range} introduced in , returns a hypercube xˉ+[−B,B]d\bar{x}+[-B,B]^{d} that is guaranteed to include all uncorrupted samples, while preserving privacy. It is followed by a private filtering DPfilter in Algorithm 8.

D.3 The analysis of private iterative filtering (Algorithms 1 and 7) and a proof of Theorem 5

qrangeq_{\rm range}, introduced in , returns a hypercube xˉ+[−B,B]d\bar{x}+[-B,B]^{d} that is guaranteed to include all uncorrupted samples, while preserving privacy. In the following lemma, we show that qrangeq_{\rm range} is also robust to adversarial corruption. Such adaptive bounding of the support is critical in privacy analysis of the subsequent steps. We clip all data points by projecting all the points with Pxˉ+[−B/2,B/2]d(x)=arg⁡min⁡y∈xˉ+[−B/2,B/2]d∥y−x∥2{\cal P}_{\bar{x}+[-B/2,B/2]^{d}}(x)=\arg\min_{y\in\bar{x}+[-B/2,B/2]^{d}}\|y-x\|_{2} to lie inside the hypercube and pass them to DPfilter for filtering. The algorithm and a proof are provided in §D.3.1.

qrange(S,ε,δ)q_{\rm range}(S,\varepsilon,\delta) (Algorithm 5) is (ε,δ)(\varepsilon,\delta)-differentially private. Under Assumption 1, qrange(S,ε,δ)q_{\rm range}(S,\varepsilon,\delta) returns (xˉ,B)(\bar{x},B) such that if n=Ω((dlog⁡(1/δ)log⁡(d/(ζδ))/ε))n=\Omega\left((\sqrt{d\log(1/\delta)}\log(d/(\zeta\delta))/\varepsilon)\right) and α<0.1\alpha<0.1, then all uncorrupted samples in SS are in xˉ+[−B,B]d\bar{x}+[-B,B]^{d} with probability 1−ζ1-\zeta.

In DPfilter, we make only the mean μt\mu_{t} and the top principal direction vtv_{t} private to decrease sensitivity. The analysis is now more challenging since (μt,vt)(\mu_{t},v_{t}) depends on all past iterates {(μj,vj)}j=1t−1\{(\mu_{j},v_{j})\}_{j=1}^{t-1} and internal randomness {Zj}j=1t−1\{Z_{j}\}_{j=1}^{t-1}. To decrease the sensitivity, we modify the filter in line 8 to use the maximum support dB2dB^{2} (which is data independent) instead of the maximum contribution max⁡i(vt⊤(xi−μt))2\max_{i}(v_{t}^{\top}(x_{i}-\mu_{t}))^{2} (which is data dependent and sensitive). While one data point can significantly change max⁡i(vt⊤(xi−μt))2\max_{i}(v_{t}^{\top}(x_{i}-\mu_{t}))^{2} and the output of one step of the filter in Algorithm 4, the sensitivity of the proposed filter is bounded conditioned on all past {(μj,vj)}j=1t−1\{(\mu_{j},v_{j})\}_{j=1}^{t-1}, as we show in the following lemma. This follows from the fact that conditioned on (μj,vj)(\mu_{j},v_{j}), the proposed filter is a contraction. We provide a proof in Appendix D.3.3 and Appendix D.3.4. Putting together Lemmas D.2 and D.3, we get the desired result in Theorem 5.

DPfilter(S,α,T,ε,δ)(S,\alpha,T,\varepsilon,\delta) is (ε,δ)(\varepsilon,\delta)-differentially private. Under the hypotheses of Theorem 5, DPfilter(S,α,T=Θ~(B2d),ε,δ)(S,\alpha,T=\widetilde{\Theta}(B^{2}d),\varepsilon,\delta) achieves ∥μ^−μ∥2=O(αlog⁡(1/α))\|\hat{\mu}-\mu\|_{2}=O(\alpha\sqrt{\log(1/\alpha)}) with probability 0.90.9, if n=Ω~(d/α2+B3d2log⁡(1/δ)/(εα))n=\widetilde{\Omega}(d/\alpha^{2}+B^{3}d^{2}\log(1/\delta)/(\varepsilon\alpha)) and BB is large enough such that the original uncorrupted samples are inside the hypercube xˉ+[−B/2,B/2]d\bar{x}+[-B/2,B/2]^{d}.

Differential privacy guarantee. To achieve (ε0,δ0)(\varepsilon_{0},\delta_{0}) end-to-end target privacy guarantee, Algorithm 7 separates the privacy budget into two. The (0.01ε0,0.01δ00.01\varepsilon_{0},0.01\delta_{0})-DP guarantee of qrangeq_{\rm range} follows from Lemma D.2. The (0.99ε0,0.99δ00.99\varepsilon_{0},0.99\delta_{0})-DP guarantee of DPfilter follows from Lemma D.3.

Accuracy. From Lemma D.2 qrangeq_{\rm range} is guaranteed to return a hypercube that includes all clean data in the dataset. It follows from Lemma D.3 that when n=Ω~(d/α2+d2log⁡(1/δ)/(εα))n=\widetilde{\Omega}(d/\alpha^{2}+d^{2}\log(1/\delta)/(\varepsilon\alpha)), we have ∥μ−μ^∥2=O(αlog⁡(1/α))\|\mu-\hat{\mu}\|_{2}=O(\alpha\sqrt{\log(1/\alpha)}).

Assuming that n=Ω(dlog⁡(1/δ)εβlog⁡(d/ζδ))n=\Omega\left(\frac{\sqrt{d\log(1/\delta)}}{\varepsilon\beta}\log(d/\zeta\delta)\right), we have that with probability 1−ζ1-\zeta, max⁡j,l(∣hj,l−h^j,l∣)≤0.01+α\max_{j,l}(|{h}_{j,l}-\hat{h}_{j,l}|)\leq 0.01+\alpha. Using the assumption that α≤0.1\alpha\leq 0.1, since min⁡(hj,k−1,hj,k,hj,k+1)−0.11≥0.31≥0.04+0.11≥max⁡l≠k−1,k,k+1hj,l+0.11\min(h_{j,k-1},h_{j,k},h_{j,k+1})-0.11\geq 0.31\geq 0.04+0.11\geq\max_{l\neq k-1,k,k+1}h_{j,l}+0.11. This implies that with probability 1−ζ1-\zeta, the algorithm choose the bin from k−1,k,k+1k-1,k,k+1, which means the estimate ∣xˉj−μ∣≤4σ|\bar{x}_{j}-\mu|\leq 4\sigma. By the tail bound of sub-Gaussian distribution and a union bound over n,dn,d, we have that with probability 1−ζ1-\zeta, for all xi∈Dx_{i}\in\mathcal{D} and j∈[d]j\in[d], xi,j∈[xˉj−8σlog⁡(nd/ζ),xˉj+8σlog⁡(nd/ζ)]x_{i,j}\in[\bar{x}_{j}-8\sigma\sqrt{\log(nd/\zeta)},\bar{x}_{j}+8\sigma\sqrt{\log(nd/\zeta)}].

Proof of Lemma 2.2. We only need to show that one step of the proposed filter is a contraction. To this end, we only need to show contraction for two datasets at distance 1, i.e., d△(D,D′)=1d_{\triangle}({\cal D},{\cal D^{\prime}})=1. For fixed (μ,v)(\mu,v) and ZZ, we apply filter to set of scalars (v⊤(D−μ))2(v^{\top}({\cal D}-\mu))^{2} and (v⊤(D′−μ))2(v^{\top}({\cal D^{\prime}}-\mu))^{2}, whose distance is also one. If the entries that are different (say a∈Da\in{\cal D} and a′∈D′a^{\prime}\in{\cal D^{\prime}}) are both below the subset of the top 2nα2n\alpha points (as in Definition C.1), then the same set of points will be removed for both and the distance is preserved d△(S(D),S(D′))=1d_{\triangle}(S({\cal D}),S({\cal D}^{\prime}))=1. If they are both above the top 2nα2n\alpha subset, then either both are removed, one of them is removed, or both remain. The rest of the points that are removed coincide in both sets. Hence, d△(S(D),S(D′))≤1d_{\triangle}(S({\cal D}),S({\cal D}^{\prime}))\leq 1. If aa is below and a′a^{\prime} is above the top 2nα2n\alpha subset of respective datasets, then either a′a^{\prime} is not removed (in which case d△(S(D),S(D′))=1d_{\triangle}(S({\cal D}),S({\cal D}^{\prime}))=1) or a′a^{\prime} is removed (in which case S(D)=S(D′)∪{a}S({\cal D})=S({\cal D}^{\prime})\cup\{a\} and the distance remains one).

Note that when there are ties, it is critical to resolve them in a consistent manner in both datasets D{\cal D} and D′{\cal D^{\prime}}. The tie breaking rule of Definition C.1 is critical in sorting those samples with the same score τi\tau_{i}’s in a consistent manner.

Proof of Lemma F.1. The analysis of contraction of the filtering step in DPMMWfilter is analogous to that of private iterative filtering in Lemma 2.2.

We explicitly write out how many times we access the database and how much privacy is lost each time in an interactive version of DPfilter in Algorithm 1, which performs the same operations as DPfilter. In order to apply Lemma G.13, we cap ε\varepsilon at 0.9 in initializing ε1\varepsilon_{1}. We call qmeanq_{\rm mean}, qPCAq_{\rm PCA}, qnormq_{\rm norm} and qsizeq_{\rm size} TT times, each with (ε1,δ1)(\varepsilon_{1},\delta_{1}) guarantee. In total this accounts for (ε,δ)(\varepsilon,\delta) privacy loss, using Lemma G.13 and our choice of ε1\varepsilon_{1} and δ1\delta_{1}.

The following theorem analyzing DPfilter implies the desired Lemma D.3 when the good set is α\alpha-subgaussian good, which follows from G.3 and the assumption that n=Ω~(d/α2)n=\widetilde{\Omega}(d/\alpha^{2}).

To prove this theorem, we use the following lemma to first show that we do not remove too many uncorrupted samples. The upper bound on the accuracy follows immediately from Lemma G.7 and the stopping criteria of the algorithm.

If n≳B2d3/2ε1αlog⁡1/αlog⁡(1/δ)n\gtrsim\frac{B^{2}d^{3/2}}{\varepsilon_{1}\alpha\log 1/\alpha}\log(1/\delta), λt≥(C−0.01)⋅αlog⁡1/α\lambda_{t}\geq(C-0.01)\cdot\alpha\log 1/\alpha and ∣St∩Sgood∣≥(1−10α)n|S_{t}\cap S_{\rm good}|\geq(1-10\alpha)n, then there exists constant C>0C>0 such that for each iteration tt, with probability 1−O(1/d)1-O(1/d), we have Eq. (4) holds. If this condition holds, we have

Now we bound the number of iterations under the conditions of Lemma D.5. Let Wt=∣St∖St−1∣/nW_{t}=|S_{t}\setminus S_{t-1}|/n. Since Eq. (5), we have

Let TT be the stopping time. We know ∑t=1TWt≤10α\sum_{t=1}^{T}W_{t}\leq 10\alpha. By Wald’s equation, we have

Assuming we have ∥M(St−1)−I∥2≥Cαlog⁡1/α\|M(S_{t-1})-I\|_{2}\geq C\alpha\log 1/\alpha for some C>0C>0 sufficiently large, it suffices to show

Lemma G.6 shows that the magnitude of the largest eigenvalue of M(St−1)−IM(S_{t-1})-{\mathbf{I}} is positive since the magnitudes negative eigenvalues are all less than cαlog⁡1/αc\alpha\log 1/\alpha. So we have

where the first inequality follows from Lemma D.6, and the second inequality follows from our choice of large constant CC. The next lemma regularity conditions for τi\tau_{i}’s for each iteration is satisfied.

If n≳B2d3/2ε1αlog⁡1/αlog⁡(1/δ)n\gtrsim\frac{B^{2}d^{3/2}}{\varepsilon_{1}\alpha\log 1/\alpha}\log(1/\delta), then there exists a large constant C>0C>0 such that, with probability 1−O(1/d)1-O(1/d), we have

Thus, by combining with Lemma D.5, we have

By our choice of sample complexity nn, with probability 1−O(1/dB2)1-O(1/dB^{2}), we have ∥μ(St−1)−μt∥22≲αlog⁡1/α\|\mu(S_{t-1})-\mu_{t}\|_{2}^{2}\lesssim\alpha\log 1/\alpha, vt⊤(M(St−1)−I)vt≳∥M(St−1)−I∥2−αlog⁡1/αv_{t}^{\top}\left(M(S_{t-1})-\mathbf{I}\right)v_{t}\gtrsim\|M(S_{t-1})-\mathbf{I}\|_{2}-\alpha\log 1/\alpha (Lemma D.6), and ∥M(St−1)−I∥2≥Cαlog⁡1/α\|M(S_{t-1})-\mathbf{I}\|_{2}\geq C\alpha\log 1/\alpha simultaneously hold before stopping.

We first consider the upper bound of the good points.

where the (a)(a) is implied by the fact that for any vector x,y,zx,y,z, we have (x−y)(x−y)⊤⪯2(x−z)(x−z)⊤+2(y−z)(y−z)⊤(x-y)(x-y)^{\top}\preceq 2(x-z)(x-z)^{\top}+2(y-z)(y-z)^{\top}, (b)(b) follows from Lemma G.7 and cc follows from our choice of large constant CC.

Since ∣Sbad∩T2α∣≤αn|S_{\rm bad}\cap{\cal T}_{2\alpha}|\leq\alpha n, we know ∣Sgood∩T2α∣≥αn|S_{\rm good}\cap{\cal T}_{2\alpha}|\geq\alpha n, so we have for i∉T2αi\notin{\cal T}_{2\alpha},

where (a)(a) follows from Lemma G.6, and (b)(b) follows from Lemma G.7, and (c)(c) follows from our choice of large constant CC.

where the last inequality follows from Lemma G.6, which shows that the magnitude of the largest eigenvalue of M(St−1)−IM(S_{t-1})-{\mathbf{I}} must be positive. ∎

Appendix E PRIME: efficient algorithm for private and robust mean estimation

We provide our main algorithms, Algorithm 9 and Algorithm 10, in Appendix E.1 and the corresponding proof in Appendix F. We provide our novel DPthreshold and its anlysis in Appendix E.2.

We define SgoodS_{\rm good} as the original set of nn clean samples (as defined in Assumption 1 and 2) and SbadS_{\rm bad} as the set of corrupted samples that replace αn\alpha n of the clean samples. The (rescaled) covariance is denoted by M(S(s))≜(1/n)∑i∈S(s)(xi−μ(S(s)))(xi−μ(S(s)))⊤M(S^{(s)})\triangleq(1/n)\sum_{i\in S^{(s)}}(x_{i}-\mu(S^{(s)}))(x_{i}-\mu(S^{(s)}))^{\top}, where μ(S(s))≜(1/∣S(s)∣)∑i∈S(s)xi\mu(S^{(s)})\triangleq(1/|S^{(s)}|)\sum_{i\in S^{(s)}}x_{i} denotes the mean.

E.2 Algorithm and analysis of DPthreshold

Algorithm DPthreshold(μ,U,α,ε,δ,S\mu,U,\alpha,\varepsilon,\delta,S) running on a dataset {τi=(xi−μ)⊤U(xi−μ)}i∈S\{\tau_{i}=(x_{i}-\mu)^{\top}U(x_{i}-\mu)\}_{i\in S} is (ε,δ)(\varepsilon,\delta)-DP. Define ψ≜1n∑i∈S(τi−1)\psi\triangleq\frac{1}{n}\sum_{i\in S}(\tau_{i}-1). If τi\tau_{i}’s satisfy

and n≥Ω~(B2dlog⁡(1/δ)εα)n\geq\widetilde{\Omega}\left(\frac{B^{2}d\sqrt{\log(1/\delta)}}{\varepsilon\alpha}\right), then DPthreshold outputs a threshold ρ\rho such that with probability 1−O(1/log⁡3d)1-O(1/\log^{3}d),

E.3 Proof of Lemma E.1

1. Threshold ρ\rho sufficiently reduces the total score.

Let ρ\rho be the threshold picked by the algorithm. Let τ^i\hat{\tau}_{i} denote the minimum value of the interval of the bin that τi\tau_{i} belongs to. It holds that

2. Threshold ρ\rho removes more bad data points than good data points.

Define C2C_{2} to be the threshold such that 1n∑τi>C2(τi−C2)=(2/3)ψ\frac{1}{n}\sum_{\tau_{i}>C_{2}}(\tau_{i}-C_{2})=(2/3)\psi. Suppose 2b≤C2≤2b+12^{b}\leq C_{2}\leq 2^{b+1}, 1n∑τ^i≥2b−1(τ^i−2b−1)≥(1/3)ψ\frac{1}{n}\sum_{\hat{\tau}_{i}\geq 2^{b-1}}(\hat{\tau}_{i}-2^{b-1})\geq(1/3)\psi because ∀τi≥C2\forall\tau_{i}\geq C_{2}, (τ^i−2b−1)≥12(τi−C2)(\hat{\tau}_{i}-2^{b-1})\geq\frac{1}{2}(\tau_{i}-C_{2}). Trivially C2≥1C_{2}\geq 1 due to the fact that 1n∑τi≥1τi−1≥ψ\frac{1}{n}\sum_{\tau_{i}\geq 1}\tau_{i}-1\geq\psi. Then we have the threshold picked by the algorithm ρ≥2b−1\rho\geq 2^{b-1}, which implies ρ≥14C2\rho\geq\frac{1}{4}C_{2}. Suppose ρ<C2\rho<C_{2}, since ρ≥14C2\rho\geq\frac{1}{4}C_{2}, we have

where (a) holds by Lemma E.3, and (b) holds since ρ≤C2\rho\leq C_{2}. If ρ≥C2\rho\geq C_{2}, the statement of the Lemma E.3 directly implies Equation (13).

Since ∣Sgood∩T2α∣≥αn|S_{\rm good}\cap{\cal T}_{2\alpha}|\geq\alpha n, it holds

Assuming that the conditions in Lemma E.2 holds, and for any CC such that

First we show an upper bound on Sgood∩T2αS_{\rm good}\cap{\cal T}_{2\alpha}:

Then we show an lower bound on Sbad∩T2αS_{\rm bad}\cap{\cal T}_{2\alpha}:

Combing the lower bound and the upper bound yields the desired statement ∎

Appendix F The analysis of PRIME and the proof of Theorem 6

Let (ε0,δ0)(\varepsilon_{0},\delta_{0}) be the end-to-end target privacy guarantee. The (0.01ε0,0.01δ00.01\varepsilon_{0},0.01\delta_{0})-DP guarantee of qrangeq_{\rm range} follows from Lemma D.2. We are left to show that DPMMWfilter in Algorithm 10 satisfy (0.99ε0,0.99δ0)(0.99\varepsilon_{0},0.99\delta_{0})-DP. To this end, we explicitly write out how many times we access the database and how much privacy is lost each time in an interactive version of DPMMWfilter in Algorithm 13, which performs the same operations as DPMMWfilter.

In order to apply Lemma G.13, we cap ε\varepsilon at 0.9 in initializing ε2\varepsilon_{2}. We call qspectralq_{\rm spectral} and qsizeq_{\rm size} T1T_{1} times, each with (ε1,δ1)(\varepsilon_{1},\delta_{1}) guarantee. In total this accounts for (0.5ε,0.5δ)(0.5\varepsilon,0.5\delta) privacy loss. The rest of the mechanisms are called 5T1T25T_{1}T_{2} times (qspectral(⋅)q_{\rm spectral}(\cdot) and qMMW(⋅)q_{\rm MMW}(\cdot) each call two DP mechanisms internally), each with (ε2,δ2)(\varepsilon_{2},\delta_{2}) guarantee. In total this accounts for (0.5ε,0.5δ)(0.5\varepsilon,0.5\delta) privacy loss. Altogether, this is within the privacy budget of (ε=0.99ε0,δ=0.99δ0)(\varepsilon=0.99\varepsilon_{0},\delta=0.99\delta_{0}).

This is a powerful tool for designing private mechanisms, as it guarantees that we can safely simulate the filtering process with privatized parameters and preserve the neighborhood of the dataset; if Dn∼Dn′{\cal D}_{n}\sim{\cal D}^{\prime}_{n} are neighboring (i.e., dΔ(Dn,Dn′)≤1d_{\Delta}({\cal D}_{n},{\cal D}_{n}^{\prime})\leq 1) then so are the filtered pair S(Dn)S({\cal D}_{n}) and S(Dn′)S({\cal D}_{n}^{\prime}) (i.e., dΔ(S(Dn),S(Dn′))≤1d_{\Delta}(S({\cal D}_{n}),S({\cal D}_{n}^{\prime}))\leq 1). Note that in all the interactive mechanisms in Algorithm 12, the noise we need to add is proportional to the set sensitivity of Filter(⋅)(\cdot) defined as Δset≜max⁡Dn∼Dn′dΔ(S(Dn),S(Dn′))\Delta_{\rm set}\triangleq\max_{{\cal D}_{n}\sim{\cal D}^{\prime}_{n}}d_{\Delta}(S({\cal D}_{n}),S({\cal D}_{n}^{\prime})). If the repeated application of the Filter(⋅)(\cdot) is not a contraction in dΔ(⋅,⋅)d_{\Delta}(\cdot,\cdot), this results in a sensitivity blow-up. Fortunately, the above lemma ensures contraction of the filtering, proving that Δset=1\Delta_{\rm set}=1. Hence, it is sufficient for us to prove privacy for two neighboring filtered sets S∼S′S\sim S^{\prime} (as opposed to proving privacy for two neighboring original datasets before filtering Dn∼Dn′{\cal D}_{n}\sim{\cal D}_{n}^{\prime}).

In qspectralq_{\rm spectral}, λ\lambda satisfy (ε,0)(\varepsilon,0)-DP as the L1L_{1} sensitivity is Δ1=(1/n)B2d\Delta_{1}=(1/n)B^{2}d (Definition 1.2) and we add Lap(Δ1/ε){\rm Lap}(\Delta_{1}/\varepsilon). The release of μ\mu also satisfy (ε,δ)(\varepsilon,\delta)-DP as the L2L_{2} sensitivity is Δ2=2Bd/n\Delta_{2}=2B\sqrt{d}/n, assuming ∣S∣≥n/2|S|\geq n/2 as ensured by the stopping criteria, and we add N(0,Δ2(2log⁡(1.25/δ))/ε)2I){\cal N}(0,\Delta_{2}(2\log(1.25/\delta))/\varepsilon)^{2}{\mathbf{I}}). Note that in the outer loop call of qspectralq_{\rm spectral}, we only release μ\mu once in the end, and hence we count qspectralq_{\rm spectral} as one access. On the other hand, in the inner loop, we use both μ\mu and λ\lambda from qspectralq_{\rm spectral} so we count it as two accesses.

In qMMWq_{\rm MMW}, Σ\Sigma is (ε,δ)(\varepsilon,\delta)-DP as the L2L_{2} sensitivity is Δ2=B2d/n\Delta_{2}=B^{2}d/n, and we add N(0,Δ2(2log⁡(1.25/δ))/ε)2I){\cal N}(0,\Delta_{2}(2\log(1.25/\delta))/\varepsilon)^{2}{\mathbf{I}}). ψ\psi is (ε,0)(\varepsilon,0)-DP as the L1L_{1} sensitivity is Δ1=2B2d/n\Delta_{1}=2B^{2}d/n and we add Lap(Δ1/ε){\rm Lap}(\Delta_{1}/\varepsilon). This is made formal in the following theorem with a proof. in Appendix F.1.1. This algorithm is identical to the MOD-SULQ algorithm introduced in and analyzed in [18, Theorem 5], up to the choice of the noise variance. But a tighter analysis improves over the MOD-SULQ analysis from by a factor of dd in the variance of added Gaussian noise as noted in .

with Zi,j∼N(0,( (1/(nε))2log⁡(1.25/δ) )2)Z_{i,j}\sim{\cal N}(0,(\,(1/(n\varepsilon))\sqrt{2\log(1.25/\delta)}\,)^{2}) for i≥ji\geq j and Zi,j=Zj,iZ_{i,j}=Z_{j,i} for i<ji<j.

In q1Dfilterq_{\rm 1Dfilter}, the (ε,δ)(\varepsilon,\delta) differential privacy follows from that of DPthreshold proved in Lemma E.1.

For any fixed unit vector ∥v∥2=1\|v\|_{2}=1, we have

where Φ\Phi is CDF of standard Gaussian. According to Gaussian mechanism, if β=(1/(nε))2log⁡(1.25/δ)\beta=(1/(n\varepsilon))\sqrt{2\log(1.25/\delta)}, we have Φ(1n−nεβ2)≤δ\Phi\left(\frac{1}{n}-n\varepsilon\beta^{2}\right)\leq\delta.

F.2 Proof of part 2 of Theorem 6 on accuracy

The accuracy of PRIME follows from the fact that qrangeq_{\rm range} returns a hypercube that contains all the clean data with high probability (Lemma D.2) and that DPMMWfilter achieves the desired accuracy (Theorem 11) if the original uncorrupted dataset SgoodS_{\rm good} is α\alpha-subgaussian good. SgoodS_{\rm good} is α\alpha-subgaussian good if we have n=Ω~(d/α2)n=\widetilde{\Omega}(d/\alpha^{2}) as shown in Lemma G.3. We present the proof of Theorem 11 below.

Moreover, each epoch runs for at most O(log⁡d)O(\log d) iterations.

In s=O(log⁡0.98((Cαlog⁡(1/α))/∥M(S(1))−I∥2))s=O(\log_{0.98}((C\alpha\log(1/\alpha))/\|M(S^{(1)})-{\mathbf{I}}\|_{2})) epochs, following Lemma F.3 guarantees that we find a candidate set S(s)S^{(s)} of samples with ∥M(S(s)−I∥2≤Cαlog⁡(1/α)\|M(S^{(s)}-{\mathbf{I}}\|_{2}\leq C\alpha\log(1/\alpha). We provide proof of Lemma F.3 in the Appendix F.3.

F.3 Proof of Lemma F.3

Lemma F.3 is a combination of Lemma F.4 and Lemma F.5. We state the technical lemmas and subsequently provide the proofs.

For an epoch ss and for all t=0,1,⋯ ,T2=O(log⁡d)t=0,1,\cdots,T_{2}=O(\log d) if Lemma F.4 holds, n(s)>3n/4n^{(s)}>3n/4, and n≳B2(log⁡B)d3/2log⁡(1/δ)εαn\gtrsim\frac{B^{2}(\log B)d^{3/2}\log(1/\delta)}{\varepsilon\alpha}, then we have ∥M(S(s+1))−I∥2≤0.98∥M(S(s))−I∥2\|M(S^{(s+1)})-{\mathbf{I}}\|_{2}\leq 0.98\|M(S^{(s)})-{\mathbf{I}}\|_{2} with probability 1−O(1/log⁡2d)1-O(1/\log^{2}d).

To prove that we make progress for each iteration, we first show our dataset satisfies regularity conditions in Eqs. (14) and (15) that we need for DPthreshold. Following Lemma F.6 implies with probability 1−1/(log⁡3d)1-1/(\log^{3}d), our scores satisfies the regularity conditions needed in Lemma E.1.

For each epoch ss and iteration tt, under the hypotheses of Lemma F.4, with probability 1−O(1/log⁡3d)1-O(1/\log^{3}d), we have

where ψ≜1n∑i∈St(s)(τi−1)\psi\triangleq\frac{1}{n}\sum_{i\in S_{t}^{(s)}}(\tau_{i}-1).

Then by Lemma E.1 our DPthreshold gives us a threshold ρ\rho such that

Conditioned on the hypotheses and the claims of Lemma E.1, according to our filter rule from Algorithm 10, we have

where (a)(a) follows from our assumption on λt\lambda_{t} and stopping criteria. Rearranging the terms completes the proof. ∎

First of all, Lemma G.9, Lemma G.10 and Lemma G.11 gives us following Lemma F.7, which basically shows with enough samples, we can make sure the noises added for privacy guarantees are small enough with probability 1−O(1/log⁡3d)1-O(1/\log^{3}d).

For α∈(0,0.5)\alpha\in(0,0.5), if n≳B2(log⁡B)d3/2log⁡(1/δ)εαn\gtrsim\frac{B^{2}(\log B)d^{3/2}\log(1/\delta)}{\varepsilon\alpha} and n(s)>3n/4n^{(s)}>3n/4 then we have with probability 1−O(1/log⁡3d)1-O(1/\log^{3}d), following conditions simultaneously hold:

∥μt(s)−μ(St(s))∥22≤0.001αlog⁡1/α\|\mu_{t}^{(s)}-\mu(S_{t}^{(s)})\|_{2}^{2}\leq 0.001\alpha\log 1/\alpha

∣ψt(s)−⟨M(St(s))−I,Ut(s)⟩∣≤0.001αlog⁡1/α|\psi_{t}^{(s)}-\left\langle M(S_{t}^{(s)})-{\mathbf{I}},U_{t}^{(s)}\right\rangle|\leq 0.001\alpha\log 1/\alpha

∣λt(s)−∥M(St(s))−I∥2∣≤0.001αlog⁡1/α\left|\lambda_{t}^{(s)}-\|M(S_{t}^{(s)})-{\mathbf{I}}\|_{2}\right|\leq 0.001\alpha\log 1/\alpha

∣λ(s)−∥M(S(s))−I∥2∣≤0.001αlog⁡1/α\left|\lambda^{(s)}-\|M(S^{(s)})-{\mathbf{I}}\|_{2}\right|\leq 0.001\alpha\log 1/\alpha

∥M(St+1(s))−Σt(s)∥2≤0.001αlog⁡1/α\left\|M(S_{t+1}^{(s)})-\Sigma_{t}^{(s)}\right\|_{2}\leq 0.001\alpha\log 1/\alpha

∥μ(s)−μ(S(s))∥22≤0.001αlog⁡1/α\|\mu^{(s)}-\mu(S^{(s)})\|_{2}^{2}\leq 0.001\alpha\log 1/\alpha

Now under above conditions, since λ1(s)>Cαlog⁡1/α\lambda_{1}^{(s)}>C\alpha\log 1/\alpha, we have ∥M(St(s))−I∥2>0.5(C−0.002)αlog⁡1/α\|M(S_{t}^{(s)})-{\mathbf{I}}\|_{2}>0.5(C-0.002)\alpha\log 1/\alpha. Using the fact that μ(St(s))=(1/n)∑i∈St(s)xi\mu(S^{(s)}_{t})=(1/n)\sum_{i\in S_{t}^{(s)}}x_{i}, we also have

Thus, from the first and the second claims in Lemma F.7, we have

For an epoch ss and an iteration tt, since αn≤Sgood∩T2α∩St(s)≤2αn\alpha n\leq S_{\rm good}\cap{\cal T}_{2\alpha}\cap S_{t}^{(s)}\leq 2\alpha n, we have

where (a)(a) follows from the fact that for any vector x,y,zx,y,z, we have (x−y)(x−y)⊤⪯2(x−z)(x−z)⊤+2(y−z)(y−z)⊤(x-y)(x-y)^{\top}\preceq 2(x-z)(x-z)^{\top}+2(y-z)(y-z)^{\top}, (b)(b) follows from Lemma G.4, (c)(c) follows from Lemma G.7, (d)(d) follows from our choice of large constant CC, and in the last inequality we used Eq. (16).

where (a)(a) follows from Lemma G.4, (b)(b) follows from Lemma G.5 and Lemma G.7 and (c)(c) follows from our choice of large constant CC.

Under the conditions of Lemma F.7, we have picked nn large enough such that with probability 1−O(1/log⁡3d)1-O(1/\log^{3}d), we have

Since λ1(s)>Cαlog⁡1/α\lambda_{1}^{(s)}>C\alpha\log 1/\alpha, we have ∥M(St+1(s))−I∥2>0.5(C−0.002)αlog⁡1/α\|M(S_{t+1}^{(s)})-{\mathbf{I}}\|_{2}>0.5(C-0.002)\alpha\log 1/\alpha. Combining the above inequality and the fifth claim of Lemma F.7 together, we have

By Lemma G.1, we have M(St+1(s))−I⪯M(S1(s))−IM(S_{t+1}^{(s)})-{\mathbf{I}}\preceq M(S_{1}^{(s)})-{\mathbf{I}}. By our choice of α(s)\alpha^{(s)}, we have α(s)(M(St+1(s))−I)⪯1100I\alpha^{(s)}\left(M(S_{t+1}^{(s)})-{\mathbf{I}}\right)\preceq\frac{1}{100}{\mathbf{I}} and α(s)(Σt+1(s)−I)⪯1100I\alpha^{(s)}\left(\Sigma_{t+1}^{(s)}-{\mathbf{I}}\right)\preceq\frac{1}{100}{\mathbf{I}}. Therefore, by Lemma G.14, we have

where (a)(a) follows from our choice of α(s)\alpha^{(s)} and CC. By Lemma G.6, M(St+1(s))−I⪰−c1αlog⁡1/α⋅IM(S_{t+1}^{(s)})-{\mathbf{I}}\succeq-c_{1}\alpha\log 1/\alpha\cdot I for t=1,2,⋯ ,T2t=1,2,\cdots,T_{2}, we have

By Lemma G.6, we have M(St+1(s))−I⪰−c1αlog⁡1/α  IM(S_{t+1}^{(s)})-{\mathbf{I}}\succeq-c_{1}\alpha\log 1/\alpha\;{\mathbf{I}}. Also, we know M(St+1(s))−I⪯M(S1(s))−IM(S_{t+1}^{(s)})-{\mathbf{I}}\preceq M(S_{1}^{(s)})-{\mathbf{I}}. Then we have

where the last inequality follows from our assumption that λ0(s)>Cαlog⁡1/α\lambda_{0}^{(s)}>C\alpha\log 1/\alpha, and conditions of Lemma F.7 hold and we have ∥M(St+1(s))−I∥2>0.5(C−0.002)αlog⁡1/α\|M(S_{t+1}^{(s)})-{\mathbf{I}}\|_{2}>0.5(C-0.002)\alpha\log 1/\alpha. ∎

Appendix G Technical lemmas

If S′⊂SS^{\prime}\subset S, then M(S′)⪯M(S)M(S^{\prime})\preceq M(S).

∥μ(S)−μ∥2≲αlog⁡1/α\|\mu(S)-\mu\|_{2}\lesssim\alpha\sqrt{\log 1/\alpha} and ∥1∣S∣∑i∈S(Xi−μ(S))(Xi−μ(S))⊤−I∥2≲αlog⁡1/α\left\|\frac{1}{|S|}\sum_{i\in S}\left(X_{i}-\mu(S)\right)\left(X_{i}-\mu(S)\right)^{\top}-{\mathbf{I}}\right\|_{2}\lesssim\alpha\log 1/\alpha.

for any subset T⊂ST\subset S so that ∣T∣=2α∣S∣|T|=2\alpha|S|, we have

A set of i.i.d. samples from an identity covariance sub-Gaussian distribution of size n=Ω(d+log⁡1/δα2log⁡1/α)n=\Omega\left(\frac{d+\log 1/\delta}{\alpha^{2}\log 1/\alpha}\right) is α\alpha-subgaussian good with respect to μ\mu with probability 1−δ1-\delta.

For any subset T⊂ST\subset S such that ∣T∣≥(1−2α)∣S∣|T|\geq(1-2\alpha)|S|, we have

For any subset T⊂ST\subset S such that ∣T∣≥(1−2α)∣S∣|T|\geq(1-2\alpha)|S|, we have

G.2 Auxiliary Lemmas on Laplace and Gaussian mechanism

Let ε∈(0,1)\varepsilon\in(0,1) be arbitrary. For c2≥2ln⁡(1.25/δ)c^{2}\geq 2\ln(1.25/\delta), the Gaussian Mechanism with parameter σ2≥c2Δ2f/ε\sigma^{2}\geq c^{2}\Delta_{2}f/\varepsilon is (ε,δ)(\varepsilon,\delta)-differentially private.

For ε≤0.9\varepsilon\leq 0.9, an end-to-end guarantee of (ε,δ)(\varepsilon,\delta)-differential privacy is satisfied if a dataset is accessed kk times, each with a (ε/22klog⁡(2/δ),δ/2k)(\varepsilon/2\sqrt{2k\log(2/\delta)},\delta/2k)-differential private mechanism.

G.3 Analysis of ‖M⁡(St(s))−𝐈‖2\|M(S_{t}^{(s)})-\mathbf{I}\|_{2} shrinking

For any symmetric matrix A=∑i=1dλivivi⊤A=\sum_{i=1}^{d}\lambda_{i}v_{i}v_{i}^{\top}, we let ∣A∣|A| denote ∣A∣=∑i=1d∣λi∣vivi⊤|A|=\sum_{i=1}^{d}|\lambda_{i}|v_{i}v_{i}^{\top}.

and α\alpha satisfies α(Σt+1−I)⪯I\alpha(\Sigma_{t+1}-{\mathbf{I}})\preceq I for all k∈[T]k\in[T], then for all U⪰0U\succeq 0, \Tr(U)=1\Tr(U)=1, it holds that

Rearranging terms, and taking a supremum over UU, we obtain that

Appendix H Exponential time DP robust mean estimation of sub-Gaussian and heavy tailed distributions (Algorithm 2)

In this section, we give a self-contained proof of the privacy and utility of our exponential time robust mean estimation algorithm for sub-Gaussian and heavy tailed distributions. The proof relies on the resilience property of the uncorrupted data as shown in the following lemmas.

for all sets T′T^{\prime} of size at least α∣S∣\alpha|S|.

Let SgoodS_{\rm good} be a set of i.i.d. points from a sub-Gaussian distribution D\cal{D} with a parameter Id{\mathbf{I}}_{d}. Given that ∣Sgood∣=Ω((d+log⁡(1/ζ))/(α2log⁡1/α) )|S_{\rm good}|=\Omega((d+\log(1/\zeta))/(\alpha^{2}\log 1/\alpha)\,), SgoodS_{\rm good} is (αlog⁡(1/α),α)(\alpha\sqrt{\log(1/\alpha)},\alpha)-resilient around its mean μ\mu with probability 1−ζ1-\zeta.

Let SgoodS_{\rm good} be a set of i.i.d. samples drawn from distribution D\cal{D} whose mean and covariance are μ,Σ\mu,\Sigma respectively, and that Σ⪯I\Sigma\preceq I. Given that ∣S∣=Ω(d/(ζα))|S|=\Omega(d/(\zeta\alpha)), there exists a constant cζc_{\zeta} that only depends on ζ\zeta such that SgoodS_{\rm good} is (cζα,α)(c_{\zeta}\sqrt{\alpha},\alpha)-resilient around μ\mu with probability 1−ζ1-\zeta.

Lemma K.1 ensures that qrange−htq_{\rm range-ht} returns samples in a bounded support of Euclidean distance dB/2\sqrt{d}B/2 with B=50/αB=50/\sqrt{\alpha} where (1−2α)n(1-2\alpha)n samples are uncorrupted (αn\alpha n is corrupted by adversary and αn\alpha n can be corrupted by the pre-processing step). For a (cζ3α,3α)(c_{\zeta}\sqrt{3\alpha},3\alpha)-resilient dataset, we first show that R(S)R(S) is robust against corruption.

Let SS be the set of 2α2\alpha-corrupted data. Given that n=Ω(d/(ζα))n=\Omega(d/(\zeta\alpha)), with probability 1−ζ1-\zeta, R(S)≤cζ3αR(S)\leq c_{\zeta}\sqrt{3\alpha}.

This follows immediately by selecting S′S^{\prime} to be the uncorrupted (1−2α)(1-2\alpha) fraction of the dataset and applying (cζ3α,3αc_{\zeta}\sqrt{3\alpha},3\alpha)-resilience. After pre-processing, we have that ∥xi−xˉ∥2≤Bd/2\|x_{i}-\bar{x}\|_{2}\leq B\sqrt{d}/2, and then clearly R(⋅)R(\cdot) has sensitivity ΔR≤Bd/n\Delta_{R}\leq B\sqrt{d}/n.

Given that R^(S)=R(S)+Lap(3Bdnε)\hat{R}(S)=R(S)+{\rm Lap}(\frac{3B\sqrt{d}}{n\varepsilon}), R^(S)\hat{R}(S) is (ε/3,0)(\varepsilon/3,0)-differentially private. Further, with probability 1−δ/31-\delta/3, ∣R^(S)−R(S)∣≤3Bdlog⁡(3/δ)nε|\hat{R}(S)-R(S)|\leq\frac{3B\sqrt{d}\log(3/\delta)}{n\varepsilon}.

In the algorithm, we first compute R^(S)\hat{R}(S). If R^(S)≥2cζα\hat{R}(S)\geq 2c_{\zeta}\sqrt{\alpha}, we stop and output ∅\emptyset. Otherwise, we use exponential mechanism with score function d(μ^,S)d(\hat{\mu},S) to find an estimate μ^\hat{\mu}. We prove the privacy guarantee of our algorithm as follows.

Algorithm 2 is (ε,δ)(\varepsilon,\delta)-differentially private if n≥6Bdlog⁡(3/δ)/(cζεα)n\geq 6B\sqrt{d}\log(3/\delta)/(c_{\zeta}\varepsilon\sqrt{\alpha}).

We consider neighboring datasets SS, S′S^{\prime} under the following two scenario

Given that R(S)≤3cζαR(S)\leq 3c_{\zeta}\sqrt{\alpha}, for any neighboring dataset S′S^{\prime}, ∣d(μ^,S)−d(μ^,S′)∣≤12cζ/(nα)|d(\hat{\mu},S)-d(\hat{\mu},S^{\prime})|\leq 12c_{\zeta}/(n\sqrt{\alpha}).

For an 2α2\alpha-corrupted dataset SS, Algorithm 2 achieves ∥μ^−μ∗∥2≤cζα\|\hat{\mu}-\mu^{*}\|_{2}\leq c_{\zeta}\sqrt{\alpha} with probability 1−ζ1-\zeta, if n=Ω(d/(αζ)+(dlog⁡(d/α1.5)+log⁡(1/ζ)/(εα))n=\Omega(d/(\alpha\zeta)+(d\log(d/\alpha^{1.5})+\log(1/\zeta)/(\varepsilon\alpha)).

We use the following lemma showing that d(μ^,S)d(\hat{\mu},S) is a good approximation of ∥μ^−μ∗∥2\|\hat{\mu}-\mu^{*}\|_{2}.

Let SS be the set of 2α2\alpha-corrupted data. Given that n=Ω(d/(ζα))n=\Omega(d/(\zeta\alpha)), with probability 1−ζ1-\zeta,

This implies that the exponential mechanism achieves the following bounds.

where AA denotes the normalizing factor for the exponential mechanism and Vol(r,d){\rm Vol}(r,d) is the volume of a ball of radius rr in dd dimensions. It follows that

for n=Ω((dlog⁡(d/α1.5)+log⁡(1/ζ))/(εα))n=\Omega((d\log(d/\alpha^{1.5})+\log(1/\zeta))/(\varepsilon\alpha)).

Since R(S)≤3cζαR(S)\leq 3c_{\zeta}\sqrt{\alpha}, define SgoodS_{\rm good} as the minimizing subset in Definition 4.2 such that

By this definition of SgoodS_{\rm good} and Lemma H.1,

This implies the sensitivity of d(μ,S)d(\mu,S) is bounded by 6cζ/(αn)6c_{\zeta}/(\sqrt{\alpha}n):

First we show ∣v⊤(μ(Mv)−μ∗)∣≤7cζα|v^{\top}\left(\mu({\cal M}^{v})-\mu^{*}\right)|\leq 7c_{\zeta}\sqrt{\alpha}. Notice that ∣Sgood∩Tv∣≤3α∣S∣|S_{\rm good}\cap{\cal T}^{v}|\leq 3\alpha|S|, and ∣Sgood∩Bv∣≤3α∣S∣|S_{\rm good}\cap{\cal B}^{v}|\leq 3\alpha|S|. By the (cζ3α,3αc_{\zeta}\sqrt{3\alpha},3\alpha)-resilience property, we have ∣v⊤(μ(Sgood∩Tv)−μ∗)∣≤cζ3/α|v^{\top}(\mu(S_{\rm good}\cap{\cal T}^{v})-\mu^{*})|\leq c_{\zeta}\sqrt{3/\alpha}, and ∣v⊤(μ(Sgood∩Bv)−μ∗)∣≤cζ3/α|v^{\top}(\mu(S_{\rm good}\cap{\cal B}^{v})-\mu^{*})|\leq c_{\zeta}\sqrt{3/\alpha}. Since ∣Sgood∩Mv∣≥(1−8α)∣Sgood∣|S_{\rm good}\cap{\cal M}^{v}|\geq(1-8\alpha)|S_{\rm good}|, by the (cζ8α,8α)(c_{\zeta}\sqrt{8\alpha},8\alpha)-resilience property,

Since Tv{\cal T}^{v}, Bv{\cal B}^{v} are the largest and smallest 3αn3\alpha n points respectively and ∣Sbad∣≤2αn|S_{\rm bad}|\leq 2\alpha n, we get

Combining Sgood∩MvS_{\rm good}\cap{\cal M}^{v} and Sbad∩MvS_{\rm bad}\cap{\cal M}^{v} we get

where (a)(a) holds by the definition of the distance :

H.2 Case of sub-Gaussian distributions and a proof of Theorem 7

Th proof is analogous to the previous section, we only state the lemmas that differ. qrangeq_{\rm range} returns a hypercube xˉ+[−B/2,B/2]d\bar{x}+[-B/2,B/2]^{d} that includes all uncorrupted data points with a high probability.

Let SS be the set of α\alpha-corrupted data. Given that n=Ω(d+log⁡(1/ζ)α2log⁡1/α)n=\Omega(\frac{d+\log(1/\zeta)}{\alpha^{2}\log 1/\alpha}), with probability 1−ζ1-\zeta, R(S)≤3 αlog⁡(1/3α)R(S)\leq 3\,\alpha\sqrt{\log(1/3\alpha)}.

Algorithm 2 is (ε,δ)(\varepsilon,\delta)-differentially private if n≥3Bdlog⁡(3/δ)/(εαlog⁡(1/α))n\geq 3B\sqrt{d}\log(3/\delta)/(\varepsilon\alpha\sqrt{\log(1/\alpha)}).

Given that R(S)≤3αlog⁡(1/α)R(S)\leq 3\alpha\sqrt{\log(1/\alpha)}, for any neighboring dataset S′S^{\prime}, ∣d(μ^,S)−d(μ^,S′)∣≤12log⁡1/α/n|d(\hat{\mu},S)-d(\hat{\mu},S^{\prime})|\leq 12\sqrt{\log 1/\alpha}/n.

Let SS be the set of α\alpha-corrupted data. Given that n=Ω(d+log⁡(1/ζ)α2log⁡1/α)n=\Omega(\frac{d+\log(1/\zeta)}{\alpha^{2}\log 1/\alpha}), with probability 1−ζ1-\zeta,

This implies the following utility bound.

For an α\alpha-corrupted dataset SS, Algorithm 2 achieves ∥μ^−μ∗∥2≤αlog⁡1/α\|\hat{\mu}-\mu^{*}\|_{2}\leq\alpha\sqrt{\log 1/\alpha} with probability 1−ζ1-\zeta, if n=Ω((d+log⁡(1/ζ))/(α2log⁡(1/α))+(dlog⁡(dlog⁡(dn/ζ)/α)+log⁡(1/ζ)/(εα))n=\Omega((d+\log(1/\zeta))/(\alpha^{2}\log(1/\alpha))+(d\log(d\sqrt{\log(dn/\zeta)}/\alpha)+\log(1/\zeta)/(\varepsilon\alpha)).

Appendix I Background on exponential time approaches for Gaussian distributions

In this section, we provide a background on exponential time algorithms that achieve optimal guarantees but only applies to and heavily relies on the assumption that samples are drawn from a Gaussian distribution. In §4, we introduce a novel exponential time approach that seamlessly generalizes to both sub-Gaussian and covariance-bounded distributions.

We introduce Algorithm 14, achieving the optimal sample complexity of O~(d/min⁡{αε,α2})\widetilde{O}(d/\min\{\alpha\varepsilon,\alpha^{2}\}) (Theorem 12). The main idea is to find an approximate Tukey median (which is known to be a robust estimate of the mean ), using the exponential mechanism of to preserve privacy.

For a dataset of nn i.i.d. samples from a dd-dimensional Gaussian distribution N(μ,Id){\cal N}(\mu,{\mathbf{I}}_{d}), an adversary corrupts an α∈(0,1/4)\alpha\in(0,1/4) fraction of the samples as defined in Assumption 1. Then, any μ^\hat{\mu} in the Tukey median set of a corrupted dataset SS satisfies ∥μ^−μ∥2=O(α)\|\hat{\mu}-\mu\|_{2}=O(\alpha) with probability at least 1−ζ1-\zeta if n=Ω((1/α2)(d+log⁡(1/ζ)))n=\Omega((1/\alpha^{2})(d+\log(1/\zeta))).

where Δu=max⁡μ^,S∼S′∣u(S,μ^)−u(S′,μ^)∣\Delta_{u}=\max_{\hat{\mu},S\sim S^{\prime}}|u(S,\hat{\mu})-u(S^{\prime},\hat{\mu})| is the sensitivity of uu (from Definition 1.2) and ZSZ_{S} ensures normalization to one. This mechanism is (ε,0)(\varepsilon,0)-differentially private, since eε2Δu∣u(S,μ^)−u(S′,μ^)∣≤eε/2e^{\frac{\varepsilon}{2\Delta_{u}}|u(S,\hat{\mu})-u(S^{\prime},\hat{\mu})|}\leq e^{{\varepsilon}/{2}} and e−ε/2≤ZS/ZS′≤eε/2e^{-\varepsilon/2}\leq Z_{S}/Z_{S^{\prime}}\leq e^{\varepsilon/2}.

The sampled μ^\hat{\mu} from the distribution (19) is (ε,0)(\varepsilon,0)-differentially private.

Under the hypotheses of Corollary I.1, there exists a universal constant c>0c>0 such that if μ∈[−R,R]d\mu\in[-R,R]^{d}, α≤min⁡{c,R}\alpha\leq\min\{c,R\} and n=Ω((1/α2)(d+log⁡(1/ζ))+(1/αε)dlog⁡(dR/ζα))n=\Omega((1/\alpha^{2})(d+\log(1/\zeta))+(1/\alpha\varepsilon)d\log(dR/\zeta\alpha)), then Algorithm 14 is (ε,0)(\varepsilon,0)-differentially private and achieves ∥μ^−μ∥2=O(α)\|\hat{\mu}-\mu\|_{2}=O(\alpha) with probability 1−ζ1-\zeta.

Appendix J Proof of Theorem 12 on the accuracy of the exponential mechanism for Tukey median

First, the (ε,0)(\varepsilon,0)-differential privacy guarantee of private Tukey median follows as a corollary of Proposition I.2, by noting that sensitivity of n DTukey(Dn,x)n\,D_{\rm Tukey}({\cal D}_{n},x) is one, where Dn{\cal D}_{n} is a dataset of size nn. This follows from the fact that for any fixed xx and vv, ∣{z∈Dn:(v⊤(x−z))≥0}∣|\{z\in{\cal D}_{n}:(v^{\top}(x-z))\geq 0\}| is the number of samples on one side of the hyperplane, which can change at most by one if we change one sample in D{\cal D}.

Note that this is the standard definition of Tukey depth. First we show that for nn large enough, the Tueky depth for the empirical distribution is close to that of the true distribution. We provide proofs of the following lemmas later in this section.

The proof of Lemma J.1can be found in §J.1. This allows us to use the known Tukey depths of a Gaussian distribution to bound the Tukey depths of the corrupted empirical one. We use this to show that there is a strict separation between the Tueky depth of a point in S1={x:∥x−μ∥≤α}S_{1}=\{x:\|x-\mu\|\leq\alpha\} and a point in S2={x:∥x−μ∥≥10α}S_{2}=\{x:\|x-\mu\|\geq 10\alpha\}. The proof of Lemma J.2 can be found in §J.2.

Define p=N(μ,I)p=\mathcal{N}(\mu,I), and assume α<0.01\alpha<0.01. Given that n=Ω(α−2(d+log⁡(1/δ)))n=\Omega(\alpha^{-2}(d+\log(1/\delta))), with probability 1−δ1-\delta,

This implies that most of the probability mass of the exponential mechanism is concentrated inside a ball of radius O(α)O(\alpha) around the true mean μ\mu. Hence, with high probability, the exponential mechanism outputs an approximate mean that is O(α)O(\alpha) close to the true one. The following lemma finishes the proof the the desired claim, whose proof can be found in §J.3.

by letting t=v⊤xt=v^{\top}x. We conclude the proof since

J.2 Proof of Lemma J.2

Then Lemma J.1 implies that with probability 1−δ1-\delta

where (a) holds since ∥x−μ∥≥20α\|x-\mu\|\geq 20\alpha, and it is easy to verify that (b) holds for α≤0.01\alpha\leq 0.01. The second claim holds since

where (a)(a) holds by setting n=Ω(α−2(d+log⁡(1/δ)))n=\Omega(\alpha^{-2}(d+\log(1/\delta))).

J.3 Proof of Lemma J.3

using the fact that μ∈[−R,R]d\mu\in[-R,R]^{d} and that R≥αR\geq\alpha, and

where CC is an absolute constant. If we set n=Ω(dlog⁡(dB/δα)αε)n=\Omega(\frac{d\log(dB/\delta\alpha)}{\alpha\varepsilon}), we get that

which implies that with probability at least 1−δ1-\delta, ∥x−μ∥≤5α\|x-\mu\|\leq 5\alpha.

Appendix K The algorithmic details and the analysis of PRIME-ht for covariance bounded distributions

We provide the algorithm and the analysis for the range estimation query qrange−htq_{\rm range-ht}, and then prove the result on analyzing PRIME-ht.

qrange−htq_{\rm range-ht} is (ε,δ)(\varepsilon,\delta)-differentially private. Under Assumption 2 and for α∈(0,0.01)\alpha\in(0,0.01), if n=Ω((1/α)log⁡(1/ζ)+(dlog⁡(1/δ)log⁡(1/ζ)log⁡(d/δ)/ε))n=\Omega((1/\alpha)\log(1/\zeta)+(\sqrt{d\log(1/\delta)}\log(1/\zeta)\log(d/\delta)/\varepsilon)), qrange−htq_{\rm range-ht} returns a ball BdB/2(xˉ){\cal B}_{\sqrt{d}B/2}(\bar{x}) of radius dB/2\sqrt{d}B/2 centered at xˉ\bar{x} that includes (1−2α)n(1-2\alpha)n uncorrupted samples where B=50/αB=50/\sqrt{\alpha} with probability 1−ζ1-\zeta.

We first show that applying the private histogram to each coordinate provides a robust estimate of the range, but with a constant probability 0.9.

Under the α\alpha-corruption model of Assumption 2, if n=Ω(dlog⁡(1/δ)log⁡(d/δ)/ε)n=\Omega(\sqrt{d\log(1/\delta)}\log(d/\delta)/\varepsilon), for α∈(0,0.01)\alpha\in(0,0.01), qrangeq_{\rm range} in Algorithm 5 with a choice of σ=40\sigma=40 and B=120B=120 returns intervals {Ij}j=1d\{I_{j}\}_{j=1}^{d} of size ∣Ij∣=240|I_{j}|=240 such that μj∈Ij\mu_{j}\in I_{j} with probability 0.9 for each j∈[d]j\in[d].

Following [54, Algorithm 2], we partition the dataset into m=200log⁡(2/ζ)m=200\log(2/\zeta) subsets of an equal size n/mn/m and apply the median-of-means approach. Applying Lemma K.2, it is ensured (e.g., by [54, Lemma A.4]) that more than half of the partitions satisfy that the center of the interval is within 240 away from μ\mu, with probability 1−ζ1-\zeta. Therefore the median of those mm centers is within 240240 from the true mean in each coordinate. This requires the total sample size larger only by a factor of log⁡(d/ζ)\log(d/\zeta).

To choose a radius dB/2\sqrt{d}B/2 ball around this estimated mean that includes 1−α1-\alpha fraction of the points, we choose B=25/αB=25/\sqrt{\alpha}. Since ∥μ^−μ∥2≤120d≪dB/2\|\hat{\mu}-\mu\|_{2}\leq 120\sqrt{d}\ll\sqrt{d}B/2 for α≤0.01\alpha\leq 0.01, this implies that we can choose dB/2\sqrt{d}B/2-ball around the estimated mean with B=50/αB=50/\sqrt{\alpha}.

K.2 Proof of Theorem 9

The proof of the privacy guarantee of Algorithm 16 follows analogously from the proof of the privacy of PRIME and is omitted here. The accuracy guarantee follows form the following theorem and Lemma K.1.

Moreover, each epoch runs for at most O(log⁡d)O(\log d) iterations.

Algorithm 16 is a similar matrix multiplicative weights based filter algorithm for distributions with bounded covariance. Similarly, we first state following Lemma K.3 and prove Theorem 13 given Lemma K.3

Lemma K.3 is a combination of Lemma K.4, Lemma K.5 and Lemma K.6. We state the technical lemmas and subsequently provide the proofs.

For each epoch ss and iteration tt, under the hypotheses of Lemma K.3 then with probability 1−O(1/log⁡3d)1-O(1/\log^{3}d), we have

where ψ≜1n∑i∈St(s)τi\psi\triangleq\frac{1}{n}\sum_{i\in S_{t}^{(s)}}\tau_{i}.

For epoch ss, suppose for t=0,1,⋯ ,T2t=0,1,\cdots,T_{2} where T2=O(log⁡d)T_{2}=O(\log d), if Lemma K.5 holds, n≳B2(log⁡B)d3/2log⁡(1/δ)εαn\gtrsim\frac{B^{2}(\log B)d^{3/2}\log(1/\delta)}{\varepsilon\alpha}, and n(s)>3n/4n^{(s)}>3n/4, then we have ∥M(S(s+1))∥2≤0.98∥M(S(s))∥2\|M(S^{(s+1)})\|_{2}\leq 0.98\|M(S^{(s)})\|_{2} with probability 1−O(1/log⁡2d)1-O(1/\log^{2}d).

By Lemma G.9, Lemma G.10 and Lemma G.11, we can pick n=Ω~(B2d3/2log⁡ε)n=\widetilde{\Omega}\left(\frac{B^{2}d^{3/2}\log}{\varepsilon}\right) such that with probability 1−O(1/log⁡3d)1-O(1/\log^{3}d), following conditions simultaneously hold:

∥μt(s)−μ(St(s))∥22≤0.001\|\mu_{t}^{(s)}-\mu(S_{t}^{(s)})\|_{2}^{2}\leq 0.001

∣ψt(s)−⟨M(St(s)),Ut(s)⟩∣≤0.001|\psi_{t}^{(s)}-\left\langle M(S_{t}^{(s)}),U_{t}^{(s)}\right\rangle|\leq 0.001

∣λt(s)−∥M(St(s))∥2∣≤0.001\left|\lambda_{t}^{(s)}-\|M(S_{t}^{(s)})\|_{2}\right|\leq 0.001

∣λ(s)−∥M(S(s))∥2∣≤0.001\left|\lambda^{(s)}-\|M(S^{(s)})\|_{2}\right|\leq 0.001

∥M(St+1(s))−Σt(s)∥2≤0.001\left\|M(S_{t+1}^{(s)})-\Sigma_{t}^{(s)}\right\|_{2}\leq 0.001

∥μ(s)−μ(S(s))∥22≤0.001\|\mu^{(s)}-\mu(S^{(s)})\|_{2}^{2}\leq 0.001 .

where (a)(a) follows from the fact that for any vector x,y,zx,y,z, we have (x−y)(x−y)⊤⪯2(x−z)(x−z)⊤+2(y−z)(y−z)⊤(x-y)(x-y)^{\top}\preceq 2(x-z)(x-z)^{\top}+2(y-z)(y-z)^{\top}, (b)(b) follows from α\alpha-goodness of SgoodS_{\rm good}, (c)(c) follows from Lemma K.11 and (d)(d) follows from our choice of large constant CC and sample complexity nn.

Lemma K.4 implies with probability 1−O(1/log⁡3d)1-O(1/\log^{3}d), our scores satisfies the condition in Eq. (20). Then by Lemma K.7 our DPthreshold-ht gives us a threshold ρ\rho such that

According to our filter rule from Algorithm 17, we have

At the same time, Lemma K.7 gives us a ρ\rho such that with probability 1−O(log⁡3d)1-O(\log^{3}d), we have

where (a)(a) follows from our assumption that ψt(s)>15.5λt(s)>216.5C\psi_{t}^{(s)}>\frac{1}{5.5}\lambda_{t}^{(s)}>\frac{2}{16.5}C.

We pick nn large enough such that with probability 1−O(log⁡3d)1-O(\log^{3}d),

By Lemma G.1, we have M(St(s))⪯M(S1(s))M(S_{t}^{(s)})\preceq M(S_{1}^{(s)}). by our choice of α(s)\alpha^{(s)}, we have α(s)M(St+1(s))⪯1100I\alpha^{(s)}M(S_{t+1}^{(s)})\preceq\frac{1}{100}{\mathbf{I}} and α(s)Σt(s)⪯1100I\alpha^{(s)}\Sigma_{t}^{(s)}\preceq\frac{1}{100}{\mathbf{I}}. Therefore, by Lemma G.14 we have

where (a)(a) follows from our choice of α(s)\alpha^{(s)}, CC, and nn.

Algorithm DPthreshold-ht(μ,U,α,ε,δ,S\mu,U,\alpha,\varepsilon,\delta,S) running on a dataset {τi=(xi−μ)⊤U(xi−μ)}i∈S\{\tau_{i}=(x_{i}-\mu)^{\top}U(x_{i}-\mu)\}_{i\in S} is (ε,δ)(\varepsilon,\delta)-DP. Define ψ≜1n∑i∈Sτi\psi\triangleq\frac{1}{n}\sum_{i\in S}\tau_{i}. If τi\tau_{i}’s satisfy

Let ρ\rho be the threshold picked by the algorithm. Let τ^i\hat{\tau}_{i} denote the minimum value of the interval of the bin that τi\tau_{i} belongs to. It holds that

Define C2C_{2} to be the threshold such that 1n∑τi>C2(τi−C2)=(2/3)ψ\frac{1}{n}\sum_{\tau_{i}>C_{2}}(\tau_{i}-C_{2})=(2/3)\psi. Suppose 2b≤C2≤2b+12^{b}\leq C_{2}\leq 2^{b+1}, we have ∑τ^i≥2b−1(τ^i−2b−1)≥(1/3)ψ\sum_{\hat{\tau}_{i}\geq 2^{b-1}}(\hat{\tau}_{i}-2^{b-1})\geq(1/3)\psi because ∀τi≥C2\forall\tau_{i}\geq C_{2}, (τ^i−2b−1)≥12(τi−C2)(\hat{\tau}_{i}-2^{b-1})\geq\frac{1}{2}(\tau_{i}-C_{2}). Then the threshold picked by the algorithm ρ≥2b−1\rho\geq 2^{b-1}, which implies ρ≥14C2\rho\geq\frac{1}{4}C_{2}. Suppose ρ<C2\rho<C_{2}, since ρ≥14C2\rho\geq\frac{1}{4}C_{2}

where (a) holds by Lemma K.8, and (b) holds since ρ≤C2\rho\leq C_{2}. If ρ≥C2\rho\geq C_{2}, the statement of the Lemma K.8 directly implies Equation (21).

Assuming that the condition in Eq.(20) holds, then for any CC such that

First we show an upper bound on SgoodS_{\rm good}:

Then we show an lower bound on SbadS_{\rm bad}:

Combing the lower bound and the upper bound yields the desired statement ∎

∥1∣S∣∑i∈S(Xi−μ(S))(Xi−μ(S))⊤∥2≤1\left\|\frac{1}{|S|}\sum_{i\in S}\left(X_{i}-\mu(S)\right)\left(X_{i}-\mu(S)\right)^{\top}\right\|_{2}\leq 1.

Let SS be an α\alpha-corrupted bounded covariance dataset under Assumption 2. If SgoodS_{\rm good} is α\alpha-good with respect to μ\mu, then for any T⊂ST\subset S such that ∣T∩Sgood∣≥(1−α)∣S∣|T\cap S_{\rm good}|\geq(1-\alpha)|S|, we have

Appendix L Experiments

We evaluate PRIME and compare with a DP mean estimator of on synthetic dataset in Figure 1 and Figure 2, which consists of samples from (1−α)N(0,I)+αN(μbad,I)(1-\alpha){\cal N}(0,\mathbf{I})+\alpha{\cal N}(\mu_{\rm bad},\mathbf{I}). The main focus of this evaluation is to compare the estimation error and demonstrate the robustness of PRIME under differential privacy guarantees. Our choice of experimental settings and hyper parameters are as follows: 1≤d≤1001\leq d\leq 100, μbad=(1.5,1.5,⋯ ,1.5)d\mu_{\rm bad}=(1.5,1.5,\cdots,1.5)_{d}, 0.001≤ε≤1000.001\leq\varepsilon\leq 100, 0.01≤α≤0.10.01\leq\alpha\leq 0.1 , C=1C=1.

Figure 2 shows additional experiments including the regime where we do not have enough number of samples. When n≤cd1.5/αεn\leq cd^{1.5}/\alpha\varepsilon, the utility guarantee (Theorem 5) does not hold. The noise we add on the final output becomes large as nn decreases and dominates the estimation error. The DP Mean has lower error compared to PRIME when nn is small because PRIME spends some privacy budget to perform operations other than those in DP Mean in the Algorithm 10. In practice, we can check whether there are enough number of samples based on known parameters (ε,δ,n,α)(\varepsilon,\delta,n,\alpha), and choose to use DP Mean (or adjust how the privacy budget is distributed in PRIME).

Our implementation is based on Python with basic Numpy library. We run on a 2018 Macbook Pro machine. For each choice of dd in our settings, it takes less than 22 minutes and PRIME stops after at most 33 epochs. We have attached our code as supplementary materials.