Private Adaptive Gradient Methods for Convex Optimization

Hilal Asi, John Duchi, Alireza Fallah, Omid Javidbakht, Kunal Talwar

Introduction

While the success of stochastic gradient methods for solving empirical risk minimization has motivated their adoption across much of machine learning, increasing privacy risks in data-intensive tasks have made applying them more challenging [DMNS06]: gradients can leak users’ data, intermediate models can compromise individuals, and even final trained models may be non-private without substantial care. This motivates a growing line of work developing private variants of stochastic gradient descent (SGD), where algorithms guarantee differential privacy by perturbing individual gradients with random noise [DJW13, ST13a, ACGMMTZ16, DJW18, BFTT19, FKT20]. Yet these noise addition procedures typically fail to reflect the geometry underlying the optimization problem, which in non-private cases is essential: for high-dimensional problems with sparse parameters, mirror descent and its variants [BT03, NJLS09] are essential, while in the large-scale stochastic settings prevalent in deep learning, AdaGrad and other adaptive variants [DHS11] provide stronger theoretical and practical performance. Even more, methods that do not adapt (or do not leverage geometry) can be provably sub-optimal, in that there exist problems where their convergence is much slower than adaptive variants that reflect appropriate geometry [LD19].

To address these challenges, we introduce Pagan (Private AdaGrad with Adaptive Noise), a new differentially private variant of stochastic gradient descent and AdaGrad. Our main contributions center on a few ideas. Standard methods for privatizing adaptive algorithms that add isometric (typically Gaussian) noise to gradients necessarily reflect the worst-case behavior of functions to be optimized and eliminate the geometric structure one might leverage for improved convergence. By carefully adapting noise to the actual gradients at hand, we can both achieve convergence rates that reflect the observed magnitude of the gradients—similar to the approach of [BHR07] in the non-private case—which can yield marked improvements over the typical guarantees that depend on worst-case magnitudes. (Think, for example, of a standard normal variable: its second moment is 1, while its maximum value is unbounded.) Moreover, we propose a new private adaptive optimization algorithm that analogizes AdaGrad, showing that under certain natural distributional assumptions for the problems—similar to those that separate AdaGrad from non-adaptive methods [LD19]—our private versions of adaptive methods significantly outperform the standard non-adaptive private algorithms. Additionally, we prove several lower bounds that both highlight the importance of geometry in the problems and demonstrate the tightness of the bounds our algorithms achieve. Finally, we provide several experiments on real-world and synthetic datasets that support our theoretical results, demonstrating the improvements of our private adaptive algorithm (Pagan) over DP-SGD and other private adaptive methods.

In more recent work, Yu et al. [YZCL21] use PCA to decompose gradients into two orthogonal subspaces, allowing separate learning rate treatments in the subspaces, and achieve promising empirical results, but they provide no provable convergence bounds. Also related to the current paper is Pichapati et al.’s AdaClip algorithm [PSYRK20]; they obtain parallels to Bartlett et al.’s non-private convergence guarantees [BHR07] for private SGD. In contrast to our analysis here, their analysis applies to smooth non-convex functions, while our focus on convex optimization allows more complete convergence guarantees and associated optimality results.

Preliminaries and notation

We suppress dependence on S\mathcal{S} and simply write f(x)f(x) when the dataset is clear from context. We use the standard definitions of differential privacy [DMNS06, DKMMN06]:

A randomized algorithm MM is (ε,δ)(\varepsilon,\delta)-differentially private if for all neighboring datasets S,S′∈Zn\mathcal{S},\mathcal{S}^{\prime}\in\mathcal{Z}^{n} and all measurable OO in the output space of MM,

If δ=0\delta=0, then MM is ε\varepsilon-differentially private.

It will also be useful to discuss the tail properties of random variables and vectors:

We also frequently use different norms and geometries, so it is useful to recall Lipschitz continuity:

A convex function Φ\Phi is GG-Lipschitz over an open set W\mathcal{W} if and only if ∥Φ′(w)∥∗≤G\|\Phi^{\prime}(w)\|_{*}\leq G for any w∈Ww\in\mathcal{W} and Φ′(w)∈∂Φ(w)\Phi^{\prime}(w)\in\partial\Phi(w), where ∥y∥∗=sup⁡{x⊤y∣∥x∥≤1}\left\|{y}\right\|_{*}=\sup\{x^{\top}y\mid\left\|{x}\right\|\leq 1\} is the dual norm of ∥⋅∥\left\|{\cdot}\right\| [HUL93].

Private Adaptive Gradient Methods

In this section, we study and develop Pasan and Pagan, differentially private versions of Stochastic Gradient Descent (SGD) with adaptive stepsize (Algorithm 1) and Adagrad [DHS11] (Algorithm 2). The challenge in making these algorithms private is that adding isometric Gaussian noise—as is standard in the differentially private optimization literature—completely eliminates the geometrical properties that are crucial for the performance of adaptive gradient methods. We thus add noise that adapts to gradient geometry while maintaining privacy. More precisely, our private versions of adaptive optimization algorithms proceed as follows: to privatize the gradients, we first project them to an ellipsoid capturing their geometry, then adding non-isometric Gaussian noise whose covariance corresponds to the positive definite matrix AA that defines the ellipsoid. Finally, we apply the adaptive algorithm’s step with the private gradients. We present our private versions of SGD with adaptive stepsizes and Adagrad in Algorithms 1 and 2, respectively.

Before analyzing the utility of these algorithms, we provide their privacy guarantees in the following lemma (see Appendix B.1 for its proof).

There exist constants εˉ\bar{\varepsilon} and cc such that, for any ε≤εˉ\varepsilon\leq\bar{\varepsilon}, and with T=cn2/b2T=c{n^{2}}/{b^{2}}, Algorithm 1 and Algorithm 2 are (ε,δ)(\varepsilon,\delta)-differentially private.

The moments of the Lipschitz constant GG will be central to our convergence analyses, and to that end, for p≥1p\geq 1 we define the shorthand

The quantity Gp(C)G_{p}(C) are the ppth moments of the gradients in the Mahalanobis norm ∥⋅∥C\left\|{\cdot}\right\|_{C}; they are the key to our stronger convergence guarantees and govern the error in projecting our gradients. In most standard analyses of private optimization (and stochastic optimization more broadly), one takes C=IC=I and p=∞p=\infty, corresponding to the assumption that F(⋅,z)F(\cdot,z) is GG-Lipschitz for all zz and that subgradients F′(x,z)F^{\prime}(x,z) are uniformly bounded in both xx and zz. Even when this is the case—which may be unrealistic—we always have Gp(C)≤G∞(C)G_{p}(C)\leq G_{\infty}(C), and in realistic settings there is often a significant gap; by depending instead on appropriate moments pp, we shall see it is often possible to achieve far better convergence guarantees than would be possible by relying on uniformly bounded moments. (See also Barber and Duchi’s discussion of these issues in the context of mean estimation [BD14].)

As this bound shows, while G∞G_{\infty} is infinite in this example, GpG_{p} is finite. As a result, our analysis extends to settings in which the stochastic gradients are not uniformly bounded. ◊\Diamond

While we defined Gp(C)G_{p}(C) by taking expectation with respect to the original distribution PP, we mainly focus on empirical risk minimization and thus require the empirical Lipschitz constant for a given dataset S\mathcal{S}:

A calculation using Chebyshev’s inequality and that pp-norms are increasing immediately gives the next lemma:

Let S\mathcal{S} be a dataset with nn points sampled from distribution PP. Then with probability at least 1−1/n1-1/n, we have

It is possible to get bounds of the form G^p(S;C)≲Gkp(C)\hat{G}_{p}(\mathcal{S};C)\lesssim G_{kp}(C) with probability at least 1−1/nk1-1/n^{k} using Khintchine’s inequalities, but this is secondary for us.

Given these moment bounds, we can characterize the convergence of both algorithms, defering proofs to Appendix B.

Let S∈Zn\mathcal{S}\in\mathcal{Z}^{n} and C≻0C\succ 0 be diagonal, p≥1p\geq 1, and assume that G^p(S;C)≤G2p(C)\hat{G}_{p}(\mathcal{S};C)\leq G_{2p}(C). Consider running Pasan (Algorithm 1) with α=diam2(X)\alpha=\textup{diam}_{2}(\mathcal{X}), T=cn2/b2T=cn^{2}/b^{2}, Ak=1B2CA_{k}=\frac{1}{B^{2}}C, whereWe provide the general statement of this theorem for positive BB in Appendix B.4

and cc is the constant in Lemma 3.1. Then

where the expectation is taken over the internal randomness of the algorithm.

To gain intuition for these bounds, note that for large enough pp, the bound from Theorem 1 is approximately

2 Convergence of Pagan

Having established our bounds for Pasan, we now proceed to present our results for Pagan (Algorithm 2). In the non-private setting, adaptive gradient methods such as Adagrad are superior to SGD for constraint sets such as X=d\mathcal{X}=^{d} where diam∞(X)≪diam2(X)\textup{diam}_{\infty}(\mathcal{X})\ll\textup{diam}_{2}(\mathcal{X}). Following this, our bounds in this section will depend on diam∞(X)\textup{diam}_{\infty}(\mathcal{X}).

Let S∈Zn\mathcal{S}\in\mathcal{Z}^{n} and C≻0C\succ 0 be diagonal, p≥1p\geq 1, and assume that G^p(S;C)≤G2p(C)\hat{G}_{p}(\mathcal{S};C)\leq G_{2p}(C). Consider running Pagan (Algorithm 2) with α=diam∞(X)\alpha=\textup{diam}_{\infty}(\mathcal{X}), T=cn2/b2T=cn^{2}/b^{2}, Ak=1B2CA_{k}=\frac{1}{B^{2}}C, where

and cc is the constant in Lemma 3.1. Then

where the expectation is taken over the internal randomness of the algorithm.

To gain intuition, we again consider the large pp case, where Theorem 2 simplifies to roughly

In analogy with Theorem 1, the first term Rada(T)R_{\textup{ada}}(T) is the standard error for non-private Adagrad after TT iterations [DHS11]—and hence unimprovable [LD19]—while the second is the privacy cost. In some cases, we may have diam∞(X)=diam2(X)/d\textup{diam}_{\infty}(\mathcal{X})=\textup{diam}_{2}(\mathcal{X})/\sqrt{d}, so private Adagrad can offer significant improvements over SGD whenever the matrix CC has polynomially decaying diagonal.

To clarify the advantages and scalings we expect, we may consider an extremely stylized example with sub-Gaussian distributions. Assume now—in the context of Example A1—that we are optimizing the random linear function F(x;Z)=⟨x,Z⟩F(x;Z)=\langle x,Z\rangle, where ZZ has independent σj2\sigma_{j}^{2}-sub-Gaussian compoments. In this case, by assuming that p=log⁡dp=\log d and taking Cjj=σj−4/3C_{jj}=\sigma_{j}^{-4/3} and b=1b=1, Theorem 2 guarantees that Pagan (Algorithm 2) has convergence

On the other hand, for Pasan (Algorithm 1), with p=log⁡dp=\log d, b=1b=1, the choice Cjj=σj−1C_{jj}=\sigma_{j}^{-1} optimizes the bound of Theorem 1 and yields

Comparing these results, two differences are salient: diam∞(X)\textup{diam}_{\infty}(\mathcal{X}) replaces diam2(X)\textup{diam}_{2}(\mathcal{X}) in Eq. (7), which can be an improvement by as much as d\sqrt{d}, while (∑j=1dσj2/3)3/2(\sum_{j=1}^{d}\sigma_{j}^{2/3})^{3/2} replaces ∑j=1dσj\sum_{j=1}^{d}\sigma_{j}, and Hölder’s inequality gives

Depending on gradient moments, there are situations in which Pagan offers significant improvements; these evidently depend on the expected magnitudes of the gradients and noise, as the σj\sigma_{j} terms evidence. As a special case, consider X=[−1,+1]d\mathcal{X}=[-1,+1]^{d} and assume {σj}j=1d\{\sigma_{j}\}_{j=1}^{d} decrease quickly, e.g. σj=1/j3/2\sigma_{j}=1/j^{3/2}. In such a setting, the upper bound of Pagan is roughly poly(log⁡d)nε\frac{\mathsf{poly}(\log d)}{n\varepsilon} while Pasan achieves dnε\frac{\sqrt{d}}{n\varepsilon}.

Some approaches to unknown moments

As the results of the previous section demonstrate, bounding the gradient moments allows us to establish tighter convergence guarantees; it behooves us to estimate them with accuracy sufficient to achieve (minimax) optimal bounds.

The results of Section 3 suggest optimal choices for CC under sub-Gaussian assumptions on the vectors zz, where in our stylized cases of σj\sigma_{j}-sub-Gaussian entries, Cj=σj−4/3C_{j}=\sigma_{j}^{-4/3} minimizes our bounds. Unfortunately, it is hard in general to estimate σj\sigma_{j} even without privacy [Duc19]. Therefore, we make the following bounded moments ratio assumption, which relates higher moments to lower moments to allow estimation of moment-based parameters (even with privacy).

When zz satisfies Def. 4.1, we can provide a private procedure (Algorithm 3) that provides good approximation to the second moment of coordinates of zjz_{j}—and hence higher-order moments—allowing the application of a minimax optimal Pagan algorithm. We defer the proof to Appendix C.

and max⁡1≤j≤dσj=1\max_{1\leq j\leq d}\sigma_{j}=1. Then Algorithm 3 is (ε,δ)(\varepsilon,\delta)-DP and outputs σ^\hat{\sigma} such that with probability 1−β1-\beta,

Moreover, when condition (8) holds, Pagan (Alg. 2) with C^j=(rσ^j)−4/3/4\hat{C}_{j}=(r\hat{\sigma}_{j})^{-4/3}/4, p=log⁡dp=\log d and b=1b=1 has convergence

Lower bounds for private optimization

As one of our foci here is for data with varying norms, we prove lower bounds for sub-Gaussian data—the strongest setting for our upper bounds. In particular, we shall consider linear functionals F(x;z)=zTxF(x;z)=z^{T}x, where the entries zjz_{j} of zz satisfy ∣zj∣≤σj|z_{j}|\leq\sigma_{j} for a prescribed σj\sigma_{j}; this is sufficient for the data ZZ to be σj24\frac{\sigma_{j}^{2}}{4}-sub-Gaussian [Ver19]. Moreover, our upper bounds are conditional on the observed sample S\mathcal{S}, and so we focus on this setting in our lower bounds, where ∣gj∣≤σj|g_{j}|\leq\sigma_{j} for all subgradients g∈∂F(x;z)g\in\partial F(x;z) and j∈[d]j\in[d].

The starting point for our lower bounds for stochastic optimization over X∞\mathcal{X}_{\infty} is the following lower bound for the problem of estimating the sign of the mean of a dataset. This will then imply our main lower bound for private optimization. We defer the proof of this result to Appendix D.1.

where zˉ=1n∑i=1nzi\bar{z}=\frac{1}{n}\sum_{i=1}^{n}z_{i} is the mean of the dataset. Letting xS⋆∈argminx∈X∞f(x;S)x^{\star}_{\mathcal{S}}\in\mathop{\rm argmin}_{x\in\mathcal{X}_{\infty}}f(x;\mathcal{S}), we have the following result.

Proof For a given dataset S\mathcal{S}, the minimizer xj⋆=sign(zˉj)x^{\star}_{j}=\mathop{\rm sign}(\bar{z}_{j}). Therefore for every xx we have

As sign(M(S))\mathop{\rm sign}(M(\mathcal{S})) is (ε,δ)(\varepsilon,\delta)-DP by post-processing, the claim follows from Proposition 1 by taking expectations. ∎

Recalling the upper bounds that Pagan achieves in Section 3.2, Theorem 4 establishes the tightness of these bounds to within logarithmic factors.

The following bound follows by appropriate re-scaling of the data points in Theorem 5.3 in [BST14]

Using Proposition 2, we can establish the tight lower bounds—to within logarithmic factors—for Pasan (Section 3). We defer the proof to Appendix D.3.

Experiments

We conclude the paper with several experiments to demonstrate the performance of Pagan and Pasan algorithms. We perform experiments both on synthetic data, where we may control all aspects of the experiment, and a real-world example training large-scale private language models.

If our Pagan algorithm indeed captures the aspects of AdaGrad and other adaptive methods, we expect it to outperform other private stochastic optimization methods at the least in those scenarios where AdaGrad improves upon stochastic gradient methods—as basic sanity check. To that end, in our first collection of experiments, we compare Pagan against standard implementations of private AdaGrad and SGD methods. We also compare our method against Projected DP-SGD (PDP-SGD) [ZWB20], which projects the noisy gradients into the (low-dimensional) subspace of the top kk eigenvectors of the second moment of gradients.

We compare several algorithms in this experiment: non-private AdaGrad; the naive implementations of private SGD (Pasan, Alg. 1) and AdaGrad (Pagan, Alg. 2), with Ak=IA_{k}=I; Pagan with the optimal diagonal matrix scaling AkA_{k} we derive in Section 3.2; and Zhou et al.’s PDP-SGD with ranks k=20k=20 and k=50k=50. In our experiments, we use the parameters n=5000n=5000, d=100d=100, σj=j−3/2\sigma_{j}=j^{-3/2}, τ=0.01\tau=0.01, and the batch size for all methods is b=70b=70. As optimization methods are sensitive to stepsize choice even non-privately [AD19], we run each method with different values of initial stepsize in {0.005,0.01,0.05,0.1,0.15,0.2,0.4,0.5,1.0}\{0.005,0.01,0.05,0.1,0.15,0.2,0.4,0.5,1.0\} to find the best stepsize value. Then we run each method T=30T=30 times and report the median of the loss as a function of the iterate with 95% confidence intervals.

Figure 1 demonstrates the results of this experiment. Each plot shows the loss of the methods against iteration count in various privacy regimes. In the high-privacy setting (Figure 1(a)), the performance of all private methods is worse than the non-private algorithms, though Pagan (Alg. 2) seems to be outperforming other algorithms. As we increase the privacy parameter—reducing privacy preserved—we see that Pagan quickly starts to enjoy faster convergence, resembling non-private AdaGrad. different for non-private methods). In contrast, the standard implementation of private AdaGrad—even in the moderate privacy regime with ε=4\varepsilon=4—appears to obtain the slower convergence of SGD rather than the adaptive methods. This is consistent with the predictions our theory makes: the isometric Gaussian noise addition that standard private stochastic gradient methods (e.g. Pasan and variants) employ eliminates the geometric properties of gradients (e.g., sparsity) that adaptive methods can—indeed, must [LD19]—leverage for improved convergence.

2 Training Private Language Models on WikiText-2

We use Abadi et al.’s moments accountant analysis [ACGMMTZ16] to track the privacy losses of each of the methods. In each experiment, for Pagan and Pasan we use gradients trained for one epoch on a held-out dataset (a subset of the WikiText 103 dataset [MXBS17] which does not intersect with WikiText-2) to estimate moment bounds and gradient norms, as in Section 4; these choices—while not private—reflect the common practice that we may have access to public data that provides a reasonable proxy for the actual moments on our data. Moreover, our convergence guarantees in Section 3 are robust in the typical sense of stochastic gradient methods [NJLS09], in that mis-specifying the moments by a multiplicative constant factor yields only constant factor degradation in convergence rate guarantees, so we view this as an acceptable tradeoff in practice. It is worth noting that we ignore the model trained over the public data and use that one epoch solely for estimating the second moment of gradients.

In our experiments, we evaluate the performance of the trained models with validation- and test-set perplexity. While we propose adaptive algorithms, we still require hyperparameter tuning, and thus perform a hyper-parameter search over three algorithm-specific constants: a multiplier α∈{0.1,0.2,0.4,0.8,1.0,10.0,50.0}\alpha\in\{0.1,0.2,0.4,0.8,1.0,10.0,50.0\} for step-size, mini-batch size b=250b=250, and projection threshold B∈{0.05,0.1,0.5,1.0}B\in\{0.05,0.1,0.5,1.0\}. Each run of these algorithms takes << 4 hours on a standard workstation without any accelerators. We trained the LSTM model above with Pagan and Pasan and compare its performance with DP-SGD [ACGMMTZ16]. We also include completely non-private SGD and AdaGrad for reference. We do not include PDP-SGD [ZWB20] in this experiment as, for our N=2.1⋅106N=2.1\cdot 10^{6} parameter model, computing the low-rank subspace for gradient projection that PDP-SGD requires is quite challenging. Indeed, computing the gradient covariance matrix Zhou et al. [ZWB20] recommend is certainly infeasible. While power iteration or Oja’s method can make computing a kk-dimensional projection matrix feasible, the additional memory footprint of this kNkN-sized matrix (compared to the original model size NN) can be prohibitive, restricting us to smaller models or very small kk. For such small values (k=50k=50), our experiments show that PDP-SGD achieves significantly worse error than the algorithms we consider hence we do not include it in the plots. On the other hand, our (diagonal) approach, like diagonal AdaGrad, only requires an additional memory of size NN.

For each of the privacy levels ε∈{0.5,1,3}\varepsilon\in\{0.5,1,3\} we consider, we present the performance of each algorithm in terms of best validation set and test-set perplexity in Figure 2 and Table 1.

We highlight a few messages present in Figure 2. First, Pagan consistently outperforms the non-adaptive methods—though all allow the same hyperparameter tuning—at all privacy levels, excepting the non-private ε=+∞\varepsilon=+\infty, where Pagan without clipping is just AdaGrad and its performance is comparable to the non-private stochastic gradient method. Certainly, there remain non-negligible gaps between the performance of the private methods and non-private methods, but we hope that this is a step at least toward effective large-scale private optimization and modeling.

Acknowledgement

The authors like to thank Vitaly Feldman and Jalaj Upadhyay for helpful discussions in the process of preparing this paper and Daniel Levy for comments on an earlier draft. Part of this work was done while HA and AF were interning at Apple.

References

Appendix A Convergence of SGD and AdaGrad with biased gradients estimates

For the sake of our analysis, we find it helpful to first study the convergence of SGD and AdaGrad when the stochastic estimates of the subgradients may be biased and noisy (Algorithms 4 and 5.)

Consider the biased SGD method (Algorithm 4) with a non-increasing sequence of stepsizes {αk}k=0T−1\{\alpha_{k}\}_{k=0}^{T-1}. Then for any x⋆∈argminXfx^{\star}\in\mathop{\rm argmin}_{\mathcal{X}}f, we have

Proof We first consider the progress of a single step of the gradient-projected stochastic gradient method. We have

where the error random variable EkE_{k} is given by

Using that ⟨f′(xk),xk−x⋆⟩≤f(xk)−f(x⋆)\langle f^{\prime}(x^{k}),x^{k}-x^{\star}\rangle\leq f(x^{k})-f(x^{\star}) then yields

Summing for k=0,…,T−1k=0,\ldots,T-1, by rearranging the terms and using that the stepsizes are non-increasing, we obtain

Taking expectations from both sides, we have

where the second equality comes from the fact that the two other expectations are zero and the last inequality follows from the Holder’s inequality. ∎ Remark This result holds in the case that αk\alpha_{k}’s are adaptive and depend on observed gradients.

Next theorem states the convergence of biased Adagrad (Algorithm 5).

Consider the biased Adagrad method (Algorithm 5). Then for any x⋆∈argminXfx^{\star}\in\mathop{\rm argmin}_{\mathcal{X}}f, we have

Proof Recall that xk+1x^{k+1} is the projection of xk−Hk−1g^kx^{k}-H_{k}^{-1}\hat{g}^{k} into X\mathcal{X} with respect to ∥.∥Hk\|.\|_{\mathcal{H}_{k}}. Hence, since x⋆∈Xx^{\star}\in\mathcal{X} and projections are non-expansive, we have

Now, expanding the right hand side yields

Now the claim follows using standard techniques for Adagrad (as for example Corollary 4.3.8 in [Duc18]). ∎

Appendix B Proofs of Section 3

The proof mainly follows from Theorem 1 in [ACGMMTZ16] where the authors provide a tight privacy bound for mini-batch SGD with bounded gradient using the Moments Accountant technique. Here we do not have the bounded gradient assumption. However, recall that we have

B.2 The proof deferred from Example A1

Note that ∇F(x;z)=∇g(x)+Z\nabla F(x;z)=\nabla g(x)+Z, and hence we could take G(Z,C)=sup⁡x∈X∥∇g(x)∥C+∥Z∥CG(Z,C)=\sup_{x\in\mathcal{X}}\|\nabla g(x)\|_{C}+\|Z\|_{C}. As a result, by Minkowski inequality, we have

B.3 Intermediate Results

Before discussing the proofs of Theorems 1 and 2, we need to state a few intermediate results which will be used in our analysis.

Here, we first bound the bias term. To do so, we use the following lemma:

We will find this lemma useful in our proofs. Another useful lemma that we will use it is the following:

Proof We proceed by induction. The base case that n=1n=1 is immediate. Now, let us assume the result holds through index n−1n-1, and we wish to prove it for index nn. The concavity of ⋅\sqrt{\cdot} guarantees that b+a≤b+12ba\sqrt{b+a}\leq\sqrt{b}+\frac{1}{2\sqrt{b}}a, and so

where the first inequality follows from the inductive hypothesis and the second one uses the concavity of ⋅\sqrt{\cdot}. ∎

B.4 Proof of Theorem 1

We first state a more general version of the theorem here:

Let S\mathcal{S} be a dataset with nn points sampled from distribution PP. Let CC also be a diagonal and positive definite matrix. Consider running Algorithm 1 with T=cn2/b2T=cn^{2}/b^{2}, Ak=C/B2A_{k}=C/B^{2} where B>0B>0 is a positive real number and cc is given by Lemma 3.1. Then, with probability 1−1/n1-1/n, we have

where the expectation is taken over the internal randomness of the algorithm.

Proof Let x⋆∈argminx∈Xf(x;S)x^{\star}\in\mathop{\rm argmin}_{x\in\mathcal{X}}f(x;\mathcal{S}). Also, for simplicity, we suppress the dependence of ff on S\mathcal{S} throughout the proof. First, by Lemma 3.2, we know that with probability at least 1−1/n1-1/n, we have

We consider the setting that this bound holds. Now, note that by Theorem 6 we have

Using Lemma B.1, we immediately obtain the following bound

Next, we substitute the value of αk\alpha_{k} and use Lemma B.2 to obtain

where the last inequality follows from the fact that x+y≤2(x+y)\sqrt{x+y}\leq\sqrt{2}\left(\sqrt{x}+\sqrt{y}\right) for nonnegative real numbers xx and yy. Plugging (17) into (16) completes the proof. ∎

B.5 Proof of Theorem 2

We first state the more general version of theorem:

Let S\mathcal{S} be a dataset with nn points sampled from distribution PP. Let CC also be a diagonal and positive definite matrix. Consider running Algorithm 1 with T=cn2/b2T=cn^{2}/b^{2} Ak=C/B2A_{k}=C/B^{2} where B>0B>0 is a positive real number and cc is given by Lemma 3.1. Then, with probability 1−1/n1-1/n, we have

where the expectation is taken over the internal randomness of the algorithm.

Proof Similar to the proof of Theorem 1, we choose x⋆∈argminx∈Xf(x;S)x^{\star}\in\mathop{\rm argmin}_{x\in\mathcal{X}}f(x;\mathcal{S}). We suppress the dependence of ff on S\mathcal{S} throughout this proof as well. Again, we focus on the case that the bound

which we know its probability is at least 1−1/n1-1/n.

Similar to the proof of Theorem 1, and by using Lemma B.1, we could bound the second term with

Now, it just suffices to bound the first term. Note that

Appendix C Proof of Theorem 3

We begin with the following lemma, which upper bounds the bias from truncation.

Thus, if Y=∣min⁡(zj2,Δ2)−zj2∣Y=|\min(z_{j}^{2},\Delta^{2})-z_{j}^{2}| then P(Y≥tr2σj2)≤2e−tP(Y\geq tr^{2}\sigma_{j}^{2})\leq 2e^{-t} hence

where the last inequality follows since Δ=4rσjlog⁡r\Delta=4r\sigma_{j}\log r. ∎

The following lemma demonstrates that the random variable Yi=min⁡(zi,j2,Δ2)Y_{i}=\min(z_{i,j}^{2},\Delta^{2}) quickly concentrates around its mean.

Let ZZ be a random vector satisfying Definition 4.1. Then with probability at least 1−β1-\beta,

Setting t=r2σj22log⁡(2/β)nt=r^{2}\sigma_{j}^{2}\frac{2\sqrt{\log(2/\beta)}}{\sqrt{n}} yields the result. ∎

Given Lemmas C.1 and C.2, we are now ready to finish the proof of Theorem 3.

First, privacy follows immediately, as each iteration tt is (ε/T,δ/T)(\varepsilon/T,\delta/T)-DP (using standard properties of the Gaussian mechanism [DR14]), so basic composition implies that the final output is (ε,δ)(\varepsilon,\delta)-DP. We now proceed to prove the claim about utility. Let ρt2\rho_{t}^{2} be the truncation value at iterate tt, i.e., ρt=4rlog⁡r/2t−1\rho_{t}=4r\log r/2^{t-1}. First, note that Lemma C.2 implies that with probability 1−β/21-\beta/2 for every j∈[d]j\in[d]

where the last inequality follows since n≥400r4log⁡(8d/β)n\geq 400r^{4}\log(8d/\beta). Moreover, for σj\sigma_{j} such that ρt≥4rσjlog⁡r\rho_{t}\geq 4r\sigma_{j}\log r, Lemma C.1 implies that

Let us now prove that if σj=2−k\sigma_{j}=2^{-k} then its value will be set at most at iterate t=kt=k. Indeed at iterate t=kt=k we have ρt=4r2−klog⁡r≥4rσjlog⁡r\rho_{t}=4r2^{-k}\log r\geq 4r\sigma_{j}\log r hence we have that using the triangle inequality and standard concentration resutls for Gaussian distributions that with probability 1−β/21-\beta/2

where the last inequality follows since nε≥1000r2Tdlog⁡2rlog⁡(T/δ)log⁡(4d/β)n\varepsilon\geq 1000r^{2}T\sqrt{d}\log^{2}r\log(T/\delta)\log(4d/\beta). Thus, in this case we get that σ^k,j2≥σj2/2≥2−k−1\hat{\sigma}_{k,j}^{2}\geq\sigma_{j}^{2}/2\geq 2^{-k-1} hence the value of coordinate jj will best set at most at iterate kk hence σ^j≥σj/2\hat{\sigma}_{j}\geq\sigma_{j}/2.

On the other hand, we now assume that σj=2−k\sigma_{j}=2^{-k} and show that the value of σ^j\hat{\sigma}_{j} cannot be set before the iterate t=k−3t=k-3 and hence σ^j≤2−k+3≤8σj\hat{\sigma}_{j}\leq 2^{-k+3}\leq 8\sigma_{j}. The above arguments show that at iterate tt we have σ^t,j2≤3/2σj2+110⋅22k≤2−2k+1+110⋅22k≤2−2k+2\hat{\sigma}_{t,j}^{2}\leq 3/2\sigma_{j}^{2}+\frac{1}{10\cdot 2^{2k}}\leq 2^{-2k+1}+\frac{1}{10\cdot 2^{2k}}\leq 2^{-2k+2} hence the first part of the claim follows.

To prove the second part, first note that zjz_{j} is rσjr\sigma_{j}-sub-Gaussian, hence using Theorem 2, it is enough to show that G2p(C^)≤O(G2p(C))G_{2p}(\hat{C})\leq O(G_{2p}(C)) and that ∑j=1dC^j−1/2≤O(1)⋅∑j=1dCj−1/2\sum_{j=1}^{d}\hat{C}_{j}^{-1/2}\leq O(1)\cdot\sum_{j=1}^{d}C_{j}^{-1/2} where C=(rσj)−4/3C=(r\sigma_{j})^{-4/3} is the optimal choice of CC as in the bound (6). The first condition immediately follows from the definition of G2pG_{2p} since C^j≤Cj\hat{C}_{j}\leq C_{j} for all j∈[d]j\in[d]. The latter condition follows immediately since 12max⁡(σj,1/d2)≤σ^j\frac{1}{2}\max(\sigma_{j},1/d^{2})\leq\hat{\sigma}_{j}, implying

Appendix D Proofs of Section 5 (Lower bounds)

Let MM be (ε,δ)(\varepsilon,\delta)-DP and S=(z1,…,zn)\mathcal{S}=(z_{1},\dots,z_{n}) where zi∈Z={−σ,σ}dz_{i}\in\mathcal{Z}=\{-\sigma,\sigma\}^{d}. Then

We are now ready to complete the proof of Proposition 1 using bucketing-based techniques. First, we assume without loss of generality that σj≤1\sigma_{j}\leq 1 for all 1≤j≤d1\leq j\leq d (otherwise we can divide by max⁡1≤j≤dσj\max_{1\leq j\leq d}\sigma_{j}). Now, we define buckets of coordinates B0,…,BKB_{0},\dots,B_{K} such that

For i=Ki=K, we set BK={j:σj≤2−K}B_{K}=\{j:\sigma_{j}\leq 2^{-K}\}. We let σmax⁡(Bi)=max⁡j∈Biσj\sigma_{\max}(B_{i})=\max_{j\in B_{i}}\sigma_{j} denote the maximal value of σj\sigma_{j} inside BiB_{i}. Similarly, we define σmin⁡(Bi)=min⁡j∈Biσj\sigma_{\min}(B_{i})=\min_{j\in B_{i}}\sigma_{j}. Focusing now on the ii’th bucket, since σj≥σmin⁡(Bi)\sigma_{j}\geq\sigma_{\min}(B_{i}) for all j∈Bij\in B_{i}, Lemma D.1 now implies (as dlog⁡2d≤(nε)2d\log^{2}d\leq(n\varepsilon)^{2}) the lower bound

To finish the proof of the theorem, it is now enough to prove that

where the second inequality follows since the maximum cannot be achieved for i=Ki=K given our choice of K=10log⁡dK=10\log d, and the last inequality follows since σmax⁡(Bi)≤2σmin⁡(Bi)\sigma_{\max}(B_{i})\leq 2\sigma_{\min}(B_{i}) for all i≤K−1i\leq K-1. This proves the claim.

D.2 Proof of Lemma D.1

Instead of proving lower bounds on the error of private mechanisms, it is more convenient for this result to prove lower bounds on the sample complexity required to achieve a certain error. Given a mechanism MM and data S∈Zn\mathcal{S}\in\mathcal{Z}^{n}, define the error of the mechanism to be:

The error of a mechanism for datasets of size nn is Err(M,n)=sup⁡S∈ZnErr(M,S)\mathsf{Err}(M,n)=\sup_{\mathcal{S}\in\mathcal{Z}^{n}}\mathsf{Err}(M,\mathcal{S}).

We let n⋆(α,ε)n^{\star}(\alpha,\varepsilon) denote the minimal nn such that there is an (ε,δ)(\varepsilon,\delta)-DP (with δ=n−ω(1)\delta=n^{-\omega(1)}) mechansim MM such that Err(M,n⋆(α,ε))≤α\mathsf{Err}(M,n^{\star}(\alpha,\varepsilon))\leq\alpha. We prove the following lower bound on the sample complexity.

If ∥z∥∞≤1\left\|{z}\right\|_{\infty}\leq 1 then

To prove this result, we first state the following lower bound for constant α\alpha and ε\varepsilon which follows from Theorem 3.2 in [TTZ15].

We now prove a lower bound on the sample complexity for small values of α\alpha and ε\varepsilon which implies Proposition 3.

Let ε0≤0.1\varepsilon_{0}\leq 0.1. For α≤α0/2\alpha\leq\alpha_{0}/2 and ε≤ε0/2\varepsilon\leq\varepsilon_{0}/2,

Proof Assume there exists an (ε,δ)(\varepsilon,\delta)-DP mechanism MM such that Err(M,n)≤α\mathsf{Err}(M,n)\leq\alpha. Then we now show that there is M′M^{\prime} that is (ε0,2ε0εδ)(\varepsilon_{0},\frac{2\varepsilon_{0}}{\varepsilon}\delta)-DP with n′=Θ(αεα0ε0n)n^{\prime}=\Theta(\frac{\alpha\varepsilon}{\alpha_{0}\varepsilon_{0}}n) such that Err(M′,n′)≤α0\mathsf{Err}(M^{\prime},n^{\prime})\leq\alpha_{0}. This proves the claim. Let us now show how to define M′M^{\prime} given MM. Let k=⌊log⁡(1+ε0)/ε⌋k=\left\lfloor{\log(1+\varepsilon_{0})/\varepsilon}\right\rfloor. For S′∈Zn′\mathcal{S}^{\prime}\in\mathcal{Z}^{n^{\prime}}, we define S\mathcal{S} to have kk copies of S′\mathcal{S}^{\prime} and (n−kn′)/2(n-kn^{\prime})/2 users which have zi=(σ,…,σ)z_{i}=(\sigma,\dots,\sigma) and (n−kn′)/2(n-kn^{\prime})/2 users which have zi=(−σ,…,−σ)z_{i}=(-\sigma,\dots,-\sigma). Then we simply define M′(S′)=M(S)M^{\prime}(\mathcal{S}^{\prime})=M(\mathcal{S}). Notice that now we have

Therefore for a given S′\mathcal{S}^{\prime} we have that:

Thus if n′≥2nαkα0n^{\prime}\geq\frac{2n\alpha}{k\alpha_{0}} then

Thus it remains to argue for the privacy of M′M^{\prime}. By group privacy, M′M^{\prime} is (kε,ekε−1eε−1δ)(k\varepsilon,\frac{e^{k\varepsilon}-1}{e^{\varepsilon}-1}\delta)-DP, hence our choice of kk implies that kε≤ε0k\varepsilon\leq\varepsilon_{0} and ekε−1eε−1δ≤2ε0εδ\frac{e^{k\varepsilon}-1}{e^{\varepsilon}-1}\delta\leq\frac{2\varepsilon_{0}}{\varepsilon}\delta. ∎

D.3 Proof of Theorem 5

We assume without loss of generality that σj≤1\sigma_{j}\leq 1 for all 1≤j≤d1\leq j\leq d (otherwise we can divide by max⁡1≤j≤dσj\max_{1\leq j\leq d}\sigma_{j}). We follow the bucketing-based technique we had in the proof of Proposition 1. We define buckets of coordinates B0,…,BKB_{0},\dots,B_{K} such that

For i=Ki=K, we set BK={j:σj≤2−K}B_{K}=\{j:\sigma_{j}\leq 2^{-K}\}. We let σmax⁡(Bi)=max⁡j∈Biσj\sigma_{\max}(B_{i})=\max_{j\in B_{i}}\sigma_{j} denote the maximal value of σj\sigma_{j} inside BiB_{i}. Similarly, we define σmin⁡(Bi)=min⁡j∈Biσj\sigma_{\min}(B_{i})=\min_{j\in B_{i}}\sigma_{j}. Focusing now on the ii’th bucket, since σj≥σmin⁡(Bi)\sigma_{j}\geq\sigma_{\min}(B_{i}) for all j∈Bij\in B_{i}, Proposition 2 now implies the lower bound

Since d≤(nε)2d\leq(n\varepsilon)^{2}, taking the maximum over buckets, we get that the error of any mechanism is lower bounded by:

To finish the proof, we only need to show now that

where the second inequality follows since the maximum cannot be achieved for i=Ki=K given our choice of K=10log⁡dK=10\log d, and the last inequality follows since σmax⁡(Bi)≤2σmin⁡(Bi)\sigma_{\max}(B_{i})\leq 2\sigma_{\min}(B_{i}) for all i≤K−1i\leq K-1. The claim follows.