Subsampled Rényi Differential Privacy and Analytical Moments Accountant

Yu-Xiang Wang, Borja Balle, Shiva Kasiviswanathan

Introduction

Differential privacy (DP) is a mathematical definition of privacy proposed by Dwork et al. (2006b). Ever since its introduction, DP has been widely adopted and as of today, it has become the de facto standard of privacy definition in the academic world with also wide adoption in the industry (Erlingsson et al., 2014; Apple, 2017; Uber Security, 2017). DP provides provable protection against adversaries with arbitrary side information and computational power, allows clear quantification of privacy losses, and satisfies graceful composition over multiple access to the same data. Over the past decade, a large body of work has been developed to design basic algorithms and tools for achieving differential privacy, understanding the privacy-utility trade-offs in different data access setups, and on integrating differential privacy with machine learning and statistical inference. We refer the reader to (Dwork & Roth, 2013) for a more comprehensive overview.

Rényi Differential Privacy (RDP, see Definition 4) (Mironov, 2017) is a recent refinement of differential privacy (Dwork et al., 2006b). It offers a unified view of the ϵ\epsilon-differential privacy (pure DP), (ϵ,δ)(\epsilon,\delta)-differential privacy (approximate DP), and the related notion of Concentrated Differential Privacy (Dwork & Rothblum, 2016; Bun & Steinke, 2016). The RDP point of view on differential privacy is particularly useful when the dataset is accessed by a sequence of randomized mechanisms, as in this case a moments accountant technique can be used to effectively keep track of the usual (ϵ,δ)(\epsilon,\delta) DP parameters across the entire range {(ϵ(δ),δ)∣∀δ∈}\{(\epsilon(\delta),\delta)|\forall\delta\in\} (Abadi et al., 2016).

A prime use case for the moments accountant technique is the NoisySGD algorithm (Song et al., 2013; Bassily et al., 2014) for differentially private learning, which iteratively executes:

where θt\theta_{t} is the model parameter at ttth step, ηt\eta_{t} is the learning rate, fif_{i} is the loss function of data point ii, ∇\nabla is the standard gradient operator, I\mathcal{I} is an index set of size mm that we uniformly randomly drawn from {1,...,n}\{1,...,n\}, and Zt∼N(0,σ2I)Z_{t}\sim\mathcal{N}(0,\sigma^{2}I). Adding Gaussian noise (also known as the Gaussian mechanism) is a standard way of achieving (ϵ,δ)(\epsilon,\delta)-differential privacy (Dwork et al., 2006a; Dwork & Roth, 2013; Balle & Wang, 2018). Since in the NoisySGD case the randomized algorithm first chooses (subsamples) the mini-batch I\mathcal{I} randomly before adding the Gaussian noise, the overall scheme could be viewed as a subsampled Gaussian mechanism. Therefore, with the right setting of σ\sigma, each iteration of NoisySGD can be thought of as a private release of a stochastic gradient.

More generally, a subsampled randomized algorithm first takes a subsample of the dataset generated through some subsampling procedureThere are different subsampling methods, such as Poisson subsampling, sampling without replacement, sampling with replacement, etc., and then applies a known randomized mechanism M\mathcal{M} on the subsampled data points. It is important to exploit the randomness in subsampling because if M\mathcal{M} is (ϵ,δ)(\epsilon,\delta)-DP, then (informally) a subsampled mechanism obeys (O(γϵ),γδ)(O(\gamma\epsilon),\gamma\delta)-DP for some γ<1\gamma<1 related to the sampling procedure. This is often referred to as the “privacy amplification” lemmaInformally, this lemma states that, if a private algorithm is run on a random subset of a larger dataset (and the identity of that subset remains hidden), then this new algorithm provides better privacy protection (reflected through improved privacy parameters) to the entire dataset as a whole than the original algorithm did. — a key property that enables NoisySGD and variants to achieve optimal rates in convex problems (Bassily et al., 2014), and to work competitively in Bayesian learning (Wang et al., 2015) and deep learning (Abadi et al., 2016) settings. A side note is that privacy amplification is also the key underlying technical tool for characterizing the learnability in statistical learning (Wang et al., 2016) and achieving tight sample complexity bounds for simple function classes (Beimel et al., 2013; Bun et al., 2015).

While privacy amplification via subsampling is a very important tool for designing good private algorithms, computing the RDP parameters for a subsampled mechanism is a non-trivial task. A natural question, with wide ranging implications for designing successful differentially private algorithms is the following: Can we obtain good bounds for privacy parameters of a subsampled mechanism in terms of privacy parameters of the original mechanism? With the exception of the special case of the Gaussian mechanism under Poisson subsampling analyzed in (Abadi et al., 2016), there is no analytical formula available to generically convert the RDP parameters of a mechanism M\mathcal{M} to the RDP parameters of the subsampled mechanism.

In this paper, we tackle this central problem in private data analysis and provide the first general result in this area. Specifically, we analyze RDP amplification under a sampling without replacement procedure: subsample\mathsf{subsample}, which takes a data set of nn points and outputs a sample from the uniform distribution over all subsets of size m≤nm\leq n. Our contributions can be summarized as follows:

We provide a tight bound (Theorem 9) on the RDP parameter (ϵM∘subsample(α)\epsilon_{\mathcal{M}\circ\mathsf{subsample}}(\alpha)) for a subsampled mechanism (M∘subsample\mathcal{M}\circ\mathsf{subsample}) in terms of the RDP parameter (ϵM(α)\epsilon_{\mathcal{M}}(\alpha)) of the original mechanism (M\mathcal{M}) itself and the subsampling ratio γ:=m/n\gamma:=m/n. Here, α\alpha is the order of the Rényi divergence in the RDP definition (see Definition 4 and the following discussion). This is the first general result in this area that can be applied to any RDP mechanism. For example, in addition to providing RDP parameter bounds for the subsampled Gaussian mechanism case, our result enables analytic calculation of similar bounds for many more commonly used privacy mechanisms including subsampled Laplace mechanisms, subsampled randomized response mechanisms, subsampled “posterior sampling” algorithms under exponential family models (Geumlek et al., 2017), etc. Even for the subsampled Gaussian mechanism our bounds are tighter than those provided by Abadi et al. (2016) (albeit the subsampling procedure and the dataset neighboring relation they use are slightly different from ours).

Consider a mechanism M\mathcal{M} with RDP parameter ϵM(α)\epsilon_{\mathcal{M}}(\alpha). Interestingly, our bound on the RDP parameter of the subsampled mechanism indicates that as the order of RDP α\alpha increases, there is a phase transition point α∗\alpha^{*} satisfying γα∗eϵM(α∗)≈1\gamma\alpha^{*}e^{\epsilon_{\mathcal{M}}(\alpha^{*})}\approx 1. For α<α∗\alpha<\alpha^{*}, the subsampled mechanism has an RDP parameter ϵM∘subsample(α)=O(αγ2(eϵM(2)−1))\epsilon_{\mathcal{M}\circ\mathsf{subsample}}(\alpha)=O(\alpha\gamma^{2}(e^{\epsilon_{\mathcal{M}}(2)}-1)), while for α>α∗\alpha>\alpha^{*}, the RDP parameter ϵM∘subsample(α)\epsilon_{\mathcal{M}\circ\mathsf{subsample}}(\alpha) either quickly converges to ϵM(α)\epsilon_{\mathcal{M}}(\alpha) which does not depend on γ\gamma, or tapers off at O(γϵM(∞))O(\gamma\epsilon_{\mathcal{M}}(\infty)) which happens when eϵM(∞)−1≪1/γe^{\epsilon_{\mathcal{M}}(\infty)}-1\ll 1/\gamma. The subsampled Gaussian mechanism falls into the first category, while the subsampled Laplace mechanism falls into the second.

Our analysis reveals a new theoretical quantity of interest that has not been investigated before — a ternary version of the Pearson-Vajda divergence (formally defined in Appendix B). A privacy definition defined through this divergence seems naturally coupled with understanding the effects of subsampling, just like how Rényi differential privacy (RDP) (Mironov, 2017) seems naturally coupled with understanding the effects of composition.

From a computational efficiency perspective, we propose an efficient data structure to keep track of the Rényi differential privacy parameters in its symbolic form, and output the corresponding (ϵ,δ)(\epsilon,\delta)-differential privacy as needed using efficient numerical methods. This avoids the need to specify a discrete list of moments ahead of time as required in the moments accountant method of Abadi et al. (2016) (see the discussion in Section 3.3). Finally, our experiments confirm the improvements in privacy parameters that can be obtained by applying our bounds.

We end this introduction with a methodological remark. The main result of this paper is the bound in Theorem 9, which at first glance looks cumbersome. The remarks following the statement of the theorem in Section 3.1 discuss some of the asymptotic implications of this bound, as well as its meaning in several special cases. These provide intuitive explanations justifying the tightness of the bound. In practice, however, asymptotic bounds are of limited interest: concrete bounds with explicit, tight constants that can be efficiently computed are needed to provide the best possible privacy-utility trade-off in practical applications of differential privacy. Thus, our results should be interpreted under this point of view, which is summarized by the leitmotif “in differential privacy, constants matter”.

Background and Related Work

In this section, we review some background about differential privacy, some related privacy notions, and the technique of moments accountant.

Differential privacy and Privacy Loss Random Variable. We start with the definition of (ϵ,δ)(\epsilon,\delta)-differential privacy. We assume that X\mathcal{X} is the domain that the datapoints are drawn from. We call two datasets XX and X′X^{\prime} neighboring (adjacent) if they differ in at most one data point, meaning that we can obtain X′X^{\prime} by replacing one data point from XX by another arbitrary data point. We represent this as d(X,X′)≤1d(X,X^{\prime})\leq 1.

A randomized algorithm M:Xn→Θ\mathcal{M}:\mathcal{X}^{n}\to\Theta is (ϵ,δ)(\epsilon,\delta)-DP (differentially private) if for every pair of neighboring datasets X,X′∈XnX,X^{\prime}\in\mathcal{X}^{n} (i.e., that differs only by one datapoint), and every possible (measurable) output set E⊆ΘE\subseteq\Theta the following inequality holds: Pr⁡[M(X)∈E]≤eϵPr⁡[M(X′)∈E]+δ\Pr[\mathcal{M}(X)\in E]\leq e^{\epsilon}\Pr[\mathcal{M}(X^{\prime})\in E]+\delta.

The definition ensures that it is information-theoretically impossible for an adversary to infer whether the input dataset is XX or X′X^{\prime} beyond a certain confidence, hence offering a degree of plausible deniability to individuals in the dataset. Here, ϵ,δ\epsilon,\delta are what we call privacy loss parameters and the smaller they are, the stronger the privacy guarantee is. A helpful way to work with differential privacy is in terms of tail bounds on the privacy loss random variable. Let M(X)\mathcal{M}(X) and M(X′)\mathcal{M}(X^{\prime}) be the probability distribution induced by M\mathcal{M} on neighboring datasets XX and X′X^{\prime} respectively, the the privacy loss random variable is defined as: log⁡(M(X)(θ)/M(X′)(θ))\log(\mathcal{M}(X)(\theta)/\mathcal{M}(X^{\prime})(\theta)) where θ∼M(X)\theta\sim\mathcal{M}(X). Up to constant factors, (ϵ,δ)(\epsilon,\delta)-DP (Definition 1) is equivalent to requiring that the probability of the privacy loss random variable being greater than ϵ\epsilon is at most δ\delta for all neighboring datasets X,X′X,X^{\prime}.​For meaningful guarantees, δ\delta is typically taken to be “cryptographically” small. An important strength of differential privacy is the ability to reason about cumulative privacy loss under composition of multiple analyses on the same dataset.

Classical design of differentially private mechanisms takes these ϵ,δ\epsilon,\delta privacy parameters as inputs and then the algorithm carefully introduces some randomness to satisfy the privacy constraint (Definition 1), while simultaneously trying to achieve good utility (performance) bounds. However, this paradigm has shifted a bit recently as it has come to our realization that a more fine-grained analysis tailored for specific mechanisms could yield more favorable privacy-utility trade-offs and better privacy loss parameters under composition (See, e.g., Dwork & Rothblum, 2016; Abadi et al., 2016; Balle & Wang, 2018).

Stochastic Gradient Descent and Subsampling Lemma. A popular way of designing differentially private machine learning models is to use Stochastic Gradient Descent (SGD) with differentially private releases of (sometimes clipped) gradients evaluated on mini-batches of a dataset (Song et al., 2013; Bassily et al., 2014; Wang et al., 2015; Foulds et al., 2016; Abadi et al., 2016). Algorithmically, these methods are nearly the same and are all based on the NoisySGD idea presented in (1). They differ primarily in how they keep track of their privacy loss. Song et al. (2013) uses a sequence of disjoint mini-batches to ensure each data point is used only once in every data pass. The results in (Bassily et al., 2014; Wang et al., 2016; Foulds et al., 2016) make use of the privacy amplification lemma to take advantage of the randomness introduced by subsampling. The first privacy amplification lemma appeared in (Kasiviswanathan et al., 2011; Beimel et al., 2013), with many subsequent improvements in different settings. For the case of (ϵ,δ)(\epsilon,\delta)-DP, Balle et al. (2018) provide a unified account of privacy amplification techniques for different types of subsampling and dataset neighboring relations. In this paper, we work in the subsampling without replacement setup, which satisfies the following privacy amplification lemma for (ϵ,δ)(\epsilon,\delta)-DP.

Given a dataset XX of nn points, the procedure subsample\mathsf{subsample} selects a random sample from the uniform distribution over all subsets of XX of size mm. The ratio γ:=m/n\gamma:=m/n is defined as the sampling parameter of the subsample\mathsf{subsample} procedure.

If M\mathcal{M} is (ϵ,δ)(\epsilon,\delta)-DP, then M′\mathcal{M}^{\prime} that applies M∘subsample\mathcal{M}\circ\mathsf{subsample} obeys (ϵ′,δ′)(\epsilon^{\prime},\delta^{\prime})-DP with \epsilon^{\prime}=\log\big{(}1+\gamma(e^{\epsilon}-1)\big{)} and δ′=γδ\delta^{\prime}=\gamma\delta.

The work of Abadi et al. (2016) was the first to take advantage of the fact that M\mathcal{M} is a subsampled Gaussian mechanism and used a mechanism-specific way of doing the strong composition. Their technique, referred to as moments accountant, is described below.

Cumulant Generating Functions, Moments Accountant, and Rényi Differential Privacy. The moments accountant technique of Abadi et al. (2016) centers around the cumulant generating function (CGF, or the log of the moment generating function) of the privacy loss random variable:

After a change of measure, this is equivalent to:

Two random variables have identical CGFs then they are identically distributed (almost everywhere). In other words, this function characterizes the entire distribution of the privacy loss random variable.

Before explaining the details behind the moments accountant technique, we introduce the notion of Rényi differential privacy (RDP) (Mironov, 2017) as a generalization of differential privacy that uses the α\alpha-Rényi divergences between M(X)\mathcal{M}(X) and M(X′)\mathcal{M}(X^{\prime}).

We say that a mechanism M\mathcal{M} is (α,ϵ)(\alpha,\epsilon)-RDP with order α∈(1,∞)\alpha\in(1,\infty) if for all neighboring datasets X,X′X,X^{\prime}

As α→∞\alpha\rightarrow\infty RDP reduces to (ϵ,0)(\epsilon,0)-DP (pure DP), i.e., a randomized mechanism M\mathcal{M} is (ϵ,0)(\epsilon,0)-DP if and only if for any two adjacent inputs XX and X′X^{\prime} it satisfies D∞(M(X)∥M(X′))≤ϵD_{\infty}(\mathcal{M}(X)\|\mathcal{M}(X^{\prime}))\leq\epsilon. For α→1\alpha\rightarrow 1, the RDP notion reduces to Kullback-Leibler based privacy notion, which is equivalent to a bound on the expectation of the privacy loss random variable. For a detailed exposition of the guarantee and properties of Rényi differential privacy that mirror those of differential privacy, see Section III of Mironov (2017). Here, we highlight two key properties that are relevant for this paper.

If M1\mathcal{M}_{1} that takes dataset as input obeys (α,ϵ1)(\alpha,\epsilon_{1})-RDP, and M2\mathcal{M}_{2} that takes the dataset and the output of M1\mathcal{M}_{1} as input obeys (α,ϵ2)(\alpha,\epsilon_{2})-RDP, then their composition obeys (α,ϵ1+ϵ2)(\alpha,\epsilon_{1}+\epsilon_{2})-RDP.

If M\mathcal{M} obeys (α,ϵ)(\alpha,\epsilon)-RDP, then M\mathcal{M} obeys (ϵ+log⁡(1/δ)/(α−1),δ)(\epsilon+\log(1/\delta)/(\alpha-1),\delta)-DP for all 0<δ<10<\delta<1.

RDP Functional View. While RDP for each fixed α\alpha can be used as a standalone privacy measure, we emphasize its functional view in which ϵ\epsilon is a function of α\alpha for 1≤α≤∞1\leq\alpha\leq\infty, and this function is completely determined by M\mathcal{M}. This is denoted by ϵM(α)\epsilon_{\mathcal{M}}(\alpha), and with this notation, mechanism M\mathcal{M} satisfies (α,ϵM(α))(\alpha,\epsilon_{\mathcal{M}}(\alpha))-RDP in Definition 4. In other words,

Our goal is, given a mechanism M\mathcal{M} that satisfies (α,ϵ(α))(\alpha,\epsilon(\alpha))-RDP, to investigate the RDP parameter of the subsampled mechanism M∘subsample\mathcal{M}\circ\mathsf{subsample}, i.e., to get a bound on ϵM∘subsample(α)\epsilon_{\mathcal{M}\circ\mathsf{subsample}}(\alpha) such that the mechanism M∘subsample\mathcal{M}\circ\mathsf{subsample} satisfies (α,ϵM∘subsample(α))(\alpha,\epsilon_{\mathcal{M}\circ\mathsf{subsample}}(\alpha))-RDP.

Note that ϵM(α)\epsilon_{\mathcal{M}}(\alpha) is equivalent to a data-independent upper bound of the CGF (as defined in (2)),

up to a scaling transformation (with α=λ+1\alpha=\lambda+1) as noted by the following remark.

A randomized mechanism M\mathcal{M} obeys (λ+1,KM(λ)/λ)(\lambda+1,K_{\mathcal{M}}(\lambda)/\lambda)-RDP for all λ\lambda.

The idea of moments accountant (Abadi et al., 2016) is to essentially keep track of the evaluations of CGF at a list of fixed locations through Lemma 5 and then Lemma 6 allows one to find the smallest ϵ\epsilon given a desired δ\delta or vice versa using:

Using the convexity of CGF KM(λ)K_{\mathcal{M}}(\lambda) and monotonicity of KM(λ)/λK_{\mathcal{M}}(\lambda)/\lambda in λ\lambda (Van Erven & Harremos, 2014, Corollary 2, Theorem 3), we observe that the optimization problem in (4) is log-convex and the optimization problem (3) is unimodal/quasi-convex. Therefore, the optimization problem in (3) (similarly, in (4)) can be solved to an arbitrary accuracy τ\tau in time log⁡(λ∗/τ)\log(\lambda^{\ast}/\tau) using the bisection method, where λ∗\lambda^{\ast} is the optimal value for λ\lambda from (3) (similarly, (4)). The same result holds even if all we have is (possibly noisy) blackbox access to KM(⋅)K_{\mathcal{M}}(\cdot) or its derivative (see more details in Appendix G).

For other useful properties of the CGF and an elementary proof of its convexity and how it implies the monotonicity of the Rényi divergence, see Appendix H.

Other Related Work. A closely related notion to RDP is that of zero-concentrated differential privacy (zCDP) introduced in (Bun & Steinke, 2016) (see also (Dwork & Rothblum, 2016)). zCDP is related to CGF of the privacy loss random variable as we note here.

If randomized mechanism M\mathcal{M} obeys (ξ,ρ)(\xi,\rho)-zCDP for some parameters ξ,ρ\xi,\rho, then the CGF KM(λ)≤λξ+λ(λ+1)ρK_{\mathcal{M}}(\lambda)\leq\lambda\xi+\lambda(\lambda+1)\rho. On the other hand, if M\mathcal{M}’s privacy loss r.v. has CGF KM(λ)K_{\mathcal{M}}(\lambda), then M\mathcal{M} is also (ξ,ρ)(\xi,\rho)-zCDP for all (ξ,ρ)(\xi,\rho) such that the quadratic function λξ+λ(λ+1)ρ≥KM(λ)\lambda\xi+\lambda(\lambda+1)\rho\geq K_{\mathcal{M}}(\lambda).

In general, the RDP view of privacy is broader than the CDP view as it captures finer information. For CDP, subsampling does not improve the privacy parameters (Bun et al., 2018). A truncated variant of the zCDP has been very recently proposed by Bun et al. (2018) and they studied the effect of subsampling in tCDP. While this independent work attempts to solve a problem closely related to ours, they are not directly comparable in that they deal with the amplification properties of tCDP while we deal with that of Rényi DP (and therefore CDP without truncation). A simple consequence of this difference is that the popular subsampled Gaussian mechanism explained above, that is covered by our analysis, is not directly covered by the amplification properties of tCDP.

Our Results

In this section, we present first our main result, an amplification theorem for Rényi Differential Privacy via subsampling. We first provide the upper bound, and then discuss the optimality of this bound. Based on these bounds, in Section 3.3, we discuss an idea for implementing a data structure that can efficiently track privacy parameters under composition.

We start with our main theorem that bounds ϵM∘subsample(α)\epsilon_{\mathcal{M}\circ\mathsf{subsample}}(\alpha) for the mechanism M∘subsample\mathcal{M}\circ\mathsf{subsample} in terms of ϵM(α)\epsilon_{\mathcal{M}}(\alpha) of the mechanism M\mathcal{M} and sampling parameter γ\gamma used in the subsample\mathsf{subsample} procedure. Missing details from this Section are collected in Appendix B.

Given a dataset of nn points drawn from a domain X\mathcal{X} and a (randomized) mechanism M\mathcal{M} that takes an input from Xm\mathcal{X}^{m} for m≤nm\leq n, let the randomized algorithm M∘subsample\mathcal{M}\circ\mathsf{subsample} be defined as: (1) subsample\mathsf{subsample}: subsample without replacement mm datapoints of the dataset (sampling parameter γ=m/n\gamma=m/n), and (2) apply M\mathcal{M}: a randomized algorithm taking the subsampled dataset as the input. For all integers α≥2\alpha\geq 2, if M\mathcal{M} obeys (α,ϵ(α))(\alpha,\epsilon(\alpha))-RDP, then this new randomized algorithm M∘subsample\mathcal{M}\circ\mathsf{subsample} obeys (α,ϵ′(α))(\alpha,\epsilon^{\prime}(\alpha))-RDP where,

The bound in the above theorem might appear complicated, and this is partly because of our efforts to get a precise non-asymptotic bound (and not just a O(⋅)O(\cdot) bound) that can be implemented in a real system. Some additional practical considerations related to evaluating the bound in this theorem such as computational resources needed, numerical stability issues, etc., are discussed in Appendix G. The phase transition behavior of this bound, noted in the introduction, is probably most easily observed through Figure 1 (Section 4), where we empirically illustrates the behavior of this bound for the commonly used subsampled mechanisms. Now before discussing the proof idea, we mention few remarks about this result.

Generality. Our results cover any Rényi differentially private mechanism, including those based on any exponential family distribution (see Geumlek et al., 2017, and our exposition in Appendix I). As mentioned earlier, previously such a bound (even asymptotically) was only known for the special case of the subsampled Gaussian mechanism (Abadi et al., 2016).

Pure DP. In particular, Theorem 9 also covers pure-DP mechanisms (such as Laplace and randomized response mechanisms) with a bounded ϵ(∞)\epsilon(\infty). In this case, we can upper bound everything within the logarithm of Theorem 9 with a binomial expansion:

As α→∞\alpha\rightarrow\infty the expression converges to log⁡(1+γeϵ(∞)(eϵ(∞)−1))\log\left(1+\gamma e^{\epsilon(\infty)}(e^{\epsilon(\infty)}-1)\right) which gives quantitatively the same result as the privacy amplification result in Lemma 3 for the pure (ϵ,0)−(\epsilon,0)-DP, modulo an extra eϵ(∞)e^{\epsilon(\infty)} factor which becomes negligible as ϵ(∞)\epsilon(\infty) gets smaller.

Bound under Additional Assumptions. The bound in Theorem 9 could be strengthened under additional assumptions on the RDP guarantee. We defer a detailed discussion on this topic to Appendix B.5 (see Theorem 27), but note that a consequence of this is that one can replace e(j−1)ϵ(j)min⁡{2,(eϵ(∞)−1)j}e^{(j-1)\epsilon(j)}\min\{2,(e^{\epsilon(\infty)}-1)^{j}\} in the above bound with an exact evaluation given by the forward finite difference operator of some appropriately defined functional. Also we note that these additional assumptions hold for the Gaussian mechanism.

In particular, with subsampled Gaussian mechanism for functions with sensitivity 11 (i.e., ϵ(α)=α/(2σ2)\epsilon(\alpha)=\alpha/(2\sigma^{2})) the dominant part of the upper bound on ϵ′(α)\epsilon^{\prime}(\alpha) arises from the term min⁡{4(eϵ(2)−1),eϵ(2)min⁡{2,(eϵ(∞)−1)2}}\min\{4(e^{\epsilon(2)}-1),e^{\epsilon(2)}\min\{2,(e^{\epsilon(\infty)}-1)^{2}\}\}. Firstly, since the Gaussian mechanism does not have a bounded ϵ(∞)\epsilon(\infty) term, this term can be simplified as min⁡{4(eϵ(2)−1),2eϵ(2)}\min\{4(e^{\epsilon(2)}-1),2e^{\epsilon(2)}\}. Let us consider the regimes: (a) σ2\sigma^{2} “large”, (b) σ2\sigma^{2} “small”. When σ2\sigma^{2} is large, 4(eϵ(2)−1)=4(e1/σ2−1)≤8/σ24(e^{\epsilon(2)}-1)=4(e^{1/\sigma^{2}}-1)\leq 8/\sigma^{2} becomes the tight term in min⁡{4(eϵ(2)−1),2eϵ(2)}\min\{4(e^{\epsilon(2)}-1),2e^{\epsilon(2)}\}. In this case, for small α\alpha and γ\gamma, the overall ϵ′(α)\epsilon^{\prime}(\alpha) bound simplifies to O(γ2α/σ2)O(\gamma^{2}\alpha/\sigma^{2}) (matching the asymptotic bound given in Appendix C). When σ2\sigma^{2} is small, then the 2eϵ(2)=2e1/σ22e^{\epsilon(2)}=2e^{1/\sigma^{2}} becomes the tight term in min⁡{4(eϵ(2)−1),2eϵ(2)}\min\{4(e^{\epsilon(2)}-1),2e^{\epsilon(2)}\}. This (small σ2\sigma^{2}) is a regime that the results of Abadi et al. (2016) do not cover.

Integer to Real-valued α\alpha. The above calculations rely on a binomial expansion and thus only work for integer α\alpha’s. To apply it to any real-valued, we can use the relation between RDF and CGF mentioned in Remark 7, and the fact that CGF is a convex function (see Lemma 36 in Appendix H). The convexity of KM(⋅)K_{\mathcal{M}}(\cdot) implies that a piecewise linear interpolation yields a valid upper bound for all α∈(1,∞)\alpha\in(1,\infty).

Let ⌊⋅⌋\lfloor\cdot\rfloor and ⌈⋅⌉\lceil\cdot\rceil denotes the floor and ceiling operators. Then, KM(λ)≤(1−λ+⌊λ⌋)KM(⌊λ⌋)+(λ−⌊λ⌋)KM(⌈λ⌉){K_{\mathcal{M}}(\lambda)}\leq(1-\lambda+\lfloor\lambda\rfloor)K_{\mathcal{M}}(\lfloor\lambda\rfloor)+(\lambda-\lfloor\lambda\rfloor)K_{\mathcal{M}}(\lceil\lambda\rceil).

The bound on KM(λ)K_{\mathcal{M}}(\lambda) can be translated into a RDP parameter bound as noted in Remark 7.

Proof Idea The proof of this theorem is roughly split into three parts (see Appendix B.1). In the first part, we define a new family of privacy definitions called ternary-∣χ∣α|\chi|^{\alpha}-differential privacy (based on ternary version of Pearson-Vajda divergence) and show that it handles subsampling naturally (Proposition 16, Appendix B.1). In the second part, we bound the Rényi DP using the ternary-∣χ∣α|\chi|^{\alpha}-differential privacy and apply the subsampling lemma from the first part. In the third part, we propose a number of ways of converting the expression stated as ternary-∣χ∣α|\chi|^{\alpha}-differential privacy back to that of RDP (Lemmas 17, 18, 19, Appendix B.1). Each of these conversion strategies yield different coefficients in the sum inside the logarithm defining α′(ϵ)\alpha^{\prime}(\epsilon); our bound accounts for all these strategies at once by taking the minimum of these coefficients.

2 A lower bound of the RDP for subsampled mechanisms

We now discuss whether our bound in Theorem 9 can be improved. First, we provide a short answer: it cannot be improved in general.

Consider two datasets X,X′∈XnX,X^{\prime}\in\mathcal{X}^{n} where X′X^{\prime} contains nn data points that are identically xx and XX is different from X′X^{\prime} only in its last data point. By construction, subsample(X′)≡[x,x,...,x]\mathsf{subsample}(X^{\prime})\equiv[x,x,...,x], Pr⁡[subsample(X)=[x,x,...,x]]=1−γ\Pr[\mathsf{subsample}(X)=[x,x,...,x]]=1-\gamma and Pr⁡[subsample(X)=[x,x,...,x,x′]=γ\Pr[\mathsf{subsample}(X)=[x,x,...,x,x^{\prime}]=\gamma. In other words, M∘subsample(X′)=M([x,x,...,x]):=p\mathcal{M}\circ\mathsf{subsample}(X^{\prime})=\mathcal{M}([x,x,...,x]):=p and M∘subsample(X)=(1−γ)p+γM([x,x,...,x,x′]):=(1−γ)p+γq.\mathcal{M}\circ\mathsf{subsample}(X)=(1-\gamma)p+\gamma\mathcal{M}([x,x,...,x,x^{\prime}]):=(1-\gamma)p+\gamma q. It follows that

Let us compare the above lower bound to our upper bound in Theorem 9 in two regimes. When αγeϵ(α)≪1\alpha\gamma e^{\epsilon(\alpha)}\ll 1, such that α2γ2eϵ(2)<1\alpha^{2}\gamma^{2}e^{\epsilon(2)}<1 is the dominating factor in the summation, we can use the bounds x/(1+x)≤log⁡(1+x)≤xx/(1+x)\leq\log(1+x)\leq x to get that both the upper and lower bound are Θ(αγ2eϵ(2))\Theta(\alpha\gamma^{2}e^{\epsilon(2)}). In other words, they match up to a constant multiplicative factor. For other parameter configurations, note that γ/(1−γ)>γ\gamma/(1-\gamma)>\gamma, our bound in Theorem 9 (with the 2e(j−1)ϵ(j)2e^{(j-1)\epsilon(j)}) is tight up to an additive factor αα−1log⁡((1−γ)−1)+log⁡(2)α−1\frac{\alpha}{\alpha-1}\log((1-\gamma)^{-1})+\frac{\log(2)}{\alpha-1} which goes to as γ→0\gamma\rightarrow 0 and α→∞\alpha\rightarrow\infty. We provide explicit comparisons of the upper and lower bounds in the numerical experiments presented in Section 4.

The longer answer to this question of optimality is more intricate. The RDP bound can be substantially improved when we consider more fine-grained per-instance RDP in the same flavor as the per-instance (ϵ,δ)(\epsilon,\delta)-DP (Wang, 2018). The only difference from the standard RDP is that now ϵ\epsilon is parameterized by a pair of fixed adjacent datasets. This point is in illustrated in Appendix C, where we discuss an asymptotic approximation of the Rényi divergence for the subsampled Gaussian mechanism.

3 Analytical Moments Accountant

Our theoretical results above allow us to build an analytical moments accountant for composing differentially private mechanisms. This is a data structure that tracks the CGF function KM(⋅)K_{\mathcal{M}}(\cdot) of a (potentially adaptive) sequence of mechanisms M\mathcal{M} in symbolic form (or as an evaluation oracle). It supports subsampling before applying M\mathcal{M} and the KM(⋅)K_{\mathcal{M}}(\cdot) will be adjusted accordingly using the RDP amplification bound in Theorem 9. The data structure allows data analysts to query the smallest ϵ\epsilon from a given δ\delta (or vice versa) for (ϵ,δ)(\epsilon,\delta)-DP using (3) (or (4)).

Practically, our analytical moments accountant is better than the moment accountants proposed by Abadi et al. (2016) in several noteworthy ways: (1) our approach allows one to keep track the CGF’s of all λ≥1\lambda\geq 1 in symbolic form without paying infinite memory, whereas moments account (Abadi et al., 2016) requires a predefined list of λ\lambda’s and pays a memory proportional to the size of the list; (2) our approach completely avoids numerical integration used by moments account; and finally (3) our approach supports subsampling for generic RDP mechanisms while the moments accountant was built for supporting only Gaussian mechanisms. All of this translates into an efficient and accurate way for tracking ϵ\epsilon’s and δ\delta’s when composing differentially private mechanisms.

We design the data structure to be numerically stable, and efficient in both space and time. In particular, it tracks CGFs with O(1)O(1) time to compose a new mechanism and uses space only linear in the number of unique mechanisms applied (rather than the number of total mechanisms applied). Using the convexity of CGFs and the monotonicity of RDP, we are able to provide δ⇒ϵ\delta\Rightarrow\epsilon conversion to (ϵ,δ)(\epsilon,\delta)-DP to within accuracy τ\tau in oracle complexity O(log⁡(λ∗/τ))O(\log(\lambda^{\ast}/\tau)), where λ∗\lambda^{\ast} is the optimal value for λ\lambda. Similarly, for ϵ⇒δ\epsilon\Rightarrow\delta queries.

Note that for subsampled mechanisms the direct evaluation ϵM∘subsample(α)\epsilon_{\mathcal{M}\circ\mathsf{subsample}}(\alpha) of the upper bounds in Theorem 9 is already polynomial in α\alpha. To make the data structure truly scalable, we devise a number of ways to approximate the bounds that takes only O(log⁡(α))O(\log(\alpha)) evaluations of ϵM(⋅)\epsilon_{\mathcal{M}}(\cdot). More details about our analytical moments accountant and substantiations to the above claims are provided in Appendix G.

Experiments and Discussion

In this section, we present numerical experiments to demonstrate our upper and lower bounds of RDP for subsampled mechanisms and the usage of analytical moments accountant. In particular, we consider three popular randomized privacy mechanisms: (1) Gaussian mechanism (2) Laplace mechanism, and (3) randomized response mechanism, and investigate the amplification effect of subsampling with these mechanisms on RDP. The RDP of these three mechanisms are known in analytical forms (See, Mironov, 2017, Table II) :

Here σ2\sigma^{2} represents the variance of the Gaussian perturbation, 2b22b^{2} the variance of the Laplace perturbation, and pp the probability of replying truthfully in randomized response. We considered two groups of parameters σ,b,p\sigma,b,p for the three base mechanisms M\mathcal{M}.

We set σ=5\sigma=5, b=2b=2 and p=0.6p=0.6. These correspond to (0.22log⁡(1.25/δ),δ)(0.2\sqrt{2\log(1.25/\delta)},\delta)-DP, (0.5,0)(0.5,0)-DP, and approximately (0.41,0)(0.41,0)-DP for the Gaussian, Laplace, and Randomized response mechanisms, respectively, using the standard differential privacy calibration.

We set σ=1\sigma=1, b=0.5b=0.5 and p=0.9p=0.9. These correspond to (2log⁡(1.25/δ),δ)(\sqrt{2\log(1.25/\delta)},\delta)-DP, (2,0)(2,0)-DP, and approximately (2.2,0)(2.2,0)-DP for the Gaussian, Laplace, and Randomized response mechanisms, respectively, using the standard differential privacy calibration.

The subsampling ratio γ\gamma is taken to be 0.0010.001 for both regimes.

In Figure 1, we plot the upper and lower bounds (as well as asymptotic approximations whenever applicable) of RDP parameter ϵ′(α)\epsilon^{\prime}(\alpha) for the subsampled mechanism M∘subsample\mathcal{M}\circ\mathsf{subsample} as a function of α\alpha. As we can see, the upper and lower bounds match up to a multiplicative constant for all the three mechanisms. There is a phase transition in the subsampled Gaussian case as we expect in both the upper and lower bound, which occurs at about γαeϵ(α)<1\gamma\alpha e^{\epsilon(\alpha)}<1. Note that our upper bound (the blue curve) matches the lower bound up to a multiplicative constant throughout in all regimes. For subsampled Gaussian mechanism in Plots 1(a) and 1(d), the RDP parameter matches up to an (not visible in log scale) additive factor for large α\alpha. The RDP parameter for subsampled Laplace and subsampled randomized response (in the second and third column) are both linear in α\alpha at the beginning, then they flatten as ϵ(α)\epsilon(\alpha) approaches ϵ(∞)\epsilon(\infty).

For the Gaussian mechanism we also plot an asymptotic approximation obtained under the assumption that the size of the input dataset grows n→∞n\to\infty while the subsampling ratio γ=m/n\gamma=m/n is kept constant. In fact, we derive two asymptotic approximations: one in the case of “good” data and one for “bad” data. The approximations and the definitions of “good” and “bad” data can be found in Appendix C. The asymptotic Gaussian approximation with the “bad” data in Example 28 matches almost exactly with lower bound up to the phase transition point both in the high- and low-privacy regimes. The Gaussian approximation for the “good” data (with n=100/γn=100/\gamma) is smaller than the lower bound, especially in the low-privacy regime, highlighting that we could potentially gain a lot by performing a dataset-dependent analysis.

Not surprisingly, both our approach and strong composition give an k\sqrt{k} scaling while the naïve composition has an O(k)O(k) scaling throughout. An interesting observation for the subsampled Gaussian mechanism is that the RDP approach initially performs worse than the naïve composition and strong composition with the standard subsampling lemma. Our RDP lower bound certifies that this is not due to an artifact of our analysis but rather a fundamental limitation of the approach that uses RDP to obtain (ϵ,δ)(\epsilon,\delta)-DP guarantees. We believe this is a manifestation of the same phenomenon that leads to the sub-optimality of the classical analysis of the Gaussian mechanism (Balle & Wang, 2018), which also relies on the conversion of a bound on the CGF of the privacy loss into an (ϵ,δ)(\epsilon,\delta)-DP guarantee, and might be addressed using the necessary and sufficient condition for (ϵ,δ)(\epsilon,\delta)-DP in terms of tail probabilities of the privacy loss random variable given in (Balle & Wang, 2018, Theorem 5). Luckily, such an artifact does not affect the typical usage of RDP: as the number of rounds of composition continues to grow, we end up having about an order of magnitude smaller ϵ\epsilon than the baseline approaches in the high privacy regime (see Figure 2(a)) and five orders of magnitude smaller ϵ\epsilon in the low privacy regime (see Figure 2(d)).

The results for composing subsampled Laplace mechanisms and subsampled randomized response mechanisms are shown in Figures 2(b), 2(c), 2(e), and 2(f). Unlike the subsampled Gaussian case, the RDP-based approach achieves about the same or better ϵ\epsilon bound for all kk when compared to what can be obtained using a subsampling lemma and strong composition.

Conclusion

In this paper, we have studied the effect of subsampling (without replacement) in amplifying Rényi differential privacy (RDP). Specifically, we established a tight upper and lower bound for the RDP parameter for the randomized algorithm M∘subsample\mathcal{M}\circ\mathsf{subsample} that first subsamples the data set then applies M\mathcal{M} to the subsample, in terms of the RDP parameter of M\mathcal{M}. Our analysis also reveals interesting theoretical insight into the connection of subsampling to a linearized privacy random variable, higher order discrete differences of moment generating functions, as well as a ternary version of Pearson-Vajda divergence that appears fundamental in understanding and analyzing the effect of subsampling. In addition, we designed a data structure called analytical moments accountant which composes RDP for randomized algorithm (including subsampled ones) in symbolic forms and allows efficiently conversion of RDP to (ϵ,δ)(\epsilon,\delta)-DP for any δ\delta (or ϵ\epsilon) of choice. These results substantially expands the scope of the mechanisms with RDP guarantees to cover subsampled versions of Gaussian mechanism, Laplace mechanism, Randomized Responses, posterior sampling and so on, which facilitates flexible differentially private algorithm design. We compared our approach to the standard approaches that use subsampling lemma on (ϵ,δ)(\epsilon,\delta)-DP directly and then applies strong composition, and in our experiments we notice an order of magnitude improvement in the privacy parameters with our bounds when we compose the subsampled Gaussian mechanism over multiple rounds.

Future work includes applying this technique to more advanced mechanisms for differentially private training of neural networks, addressing the data-dependent per-instance RDP for subsampled mechanisms, connecting the problem more tightly with statistical procedures that uses subsampling/resampling as key components such as bootstrap and jackknife, as well as combining the new approach with subsampling-based sublinear algorithms for exploratory data analysis.

Acknowledgment

The authors thank Ilya Mironov and Kunal Talwar for helpful discussions and the clarification of their proof of Lemma 3 in (Abadi et al., 2016).

References

Appendix A Composition of Differentially Private Mechanisms

Composition theorems for differential privacy allow a modular design of privacy preserving mechanisms based on mechanisms for simpler sub tasks:

A mechanism that permits kk adaptive interactions with mechanisms that preserves (ϵ,δ)(\epsilon,\delta)-differential privacy (and does not access the database otherwise) ensures (kϵ,kδ)(k\epsilon,k\delta)-differential privacy.

A stronger composition is also possible as shown by Dwork et al. (2010).

Let ϵ,δ,δ∗>0\epsilon,\delta,\delta^{\ast}>0 and ϵ≤1\epsilon\leq 1. A mechanism that permits kk adaptive interactions with mechanisms that preserves (ϵ,δ)(\epsilon,\delta)-differential privacy ensures (ϵ2kln⁡(1/δ∗)+2kϵ2,kδ+δ∗)(\epsilon\sqrt{2k\ln(1/\delta^{\ast})}+2k\epsilon^{2},k\delta+\delta^{\ast})-differential privacy.

Kairouz et al. (2015) recently gave an optimal composition theorem for differential privacy, which provides an exact characterization of the best privacy parameters that can be guaranteed when composing a number of (ϵ,δ)(\epsilon,\delta)-differentially private mechanisms. Unfortunately, the resulting optimal composition bound is quite complex to state exactly, and indeed is even #P-complete to compute exactly when composing mechanisms with different (ϵi,δi)(\epsilon_{i},\delta_{i}) parameters (Murtagh & Vadhan, 2016).

Appendix B Proofs and Missing Details from Section 3.1

In this section, we fill in the missing details and proofs from Section 3.1. We first define a few quantities needed to establish our results.

Pearson-Vajda Divergence and the Moments of Linearized Privacy Random Variable. The Pearson-Vajda Divergence (or ∣χ∣α|\chi|^{\alpha}-divergence) of order α\alpha is defined as follows (Vajda, 1973):

This is closely related to the moment of the privacy random variable in that (p/q−1)(p/q-1) is the linearized version of log⁡(p/q)\log(p/q). More interestingly, the α\alphath moment of the privacy random variable is the α\alphath derivate of the MGF evaluated at :

while at least for the even order, the ∣χ∣α|\chi|^{\alpha}-divergence is the α\alphath order forward finite difference of the MGF evaluated at :

In the above expression, the α\alphath order forward difference operator Δ(α)\Delta^{(\alpha)} is defined recursively with

In this section, we present a sketch of the proof of our main theorem. The arguments are divided into three parts. In the first part, we define a new family of privacy definitions called ternary-∣χ∣α|\chi|^{\alpha}-differential privacy and show that it handles subsampling naturally. In the second part, we bound the Rényi DP using the ternary-∣χ∣α|\chi|^{\alpha}-differential privacy and apply their subsampling lemma. In the third part, we propose several different ways of converting the expression stated as ternary-∣χ∣α|\chi|^{\alpha}-differential privacy back to that of RDP, hence giving rise to the stated results in the remarks following Theorem 9.

Part 1: Ternary-∣χ∣α|\chi|^{\alpha}-divergence and Natural Subsampling. Ternary-∣χ∣α|\chi|^{\alpha}-divergence is a novel quantity that measures the discrepancy of three distributions instead of two. Let p,q,rp,q,r be three probability distributionsWe think of p,q,rp,q,r as the distributions M∘subsample(X),M∘subsample(X′),M∘subsample(X′′)\mathcal{M}\circ\mathsf{subsample}(X),\mathcal{M}\circ\mathsf{subsample}(X^{\prime}),\mathcal{M}\circ\mathsf{subsample}(X^{\prime\prime}), respectively, for mutually adjacent datasets X,X′,X′′X,X^{\prime},X^{\prime\prime}., we define

Using, this ternary-∣χ∣α|\chi|^{\alpha}-divergence notion, we define ζ\zeta-ternary-∣χ∣α|\chi|^{\alpha}-differential privacy as follows. Analogously with RDP where we considered ϵ\epsilon as a function of α\alpha, we consider ζ\zeta as a function of α\alpha.

We say that a randomized mechanism M\mathcal{M} is ζ\zeta-ternary-∣χ∣α|\chi|^{\alpha}-DP if for all α≥1\alpha\geq 1:

We say that a randomized mechanism M\mathcal{M} is ξ\xi-binary-∣χ∣α|\chi|^{\alpha}-DP if for all α≥1\alpha\geq 1:

As we described earlier, this notion of privacy shares many features of RDP and could have independent interest. It subsumes (ϵ,0)(\epsilon,0)-DP (for α→∞\alpha\rightarrow\infty) and implies an entire family of (ϵ(δ),δ)(\epsilon(\delta),\delta)-DP through Markov’s inequality. We provide additional details on this point in Appendix F.

For our ternary-∣χ∣α|\chi|^{\alpha}-differential privacy, what makes it stand out relative to Rényi DP is how it allows privacy amplification to occur in an extremely clean fashion, as the following proposition states:

Let a mechanism M\mathcal{M} obey ζ\zeta-ternary-∣χ∣α|\chi|^{\alpha}-DP, then the algorithm M∘subsample\mathcal{M}\circ\mathsf{subsample} obeys γζ\gamma\zeta-ternary-∣χ∣α|\chi|^{\alpha}-DP.

The entire proof is presented in Appendix B.2. The key idea involves using conditioning on subsampling events, constructing dummy random variables to match up each of these events, and the use of Jensen’s inequality to convert the intractable ternary-∣χ∣α|\chi|^{\alpha}-DP of a mixture distribution to that of three simple distributions that come from mutually adjacent datasets.

Part 2: Bounding RDP with Ternary-∣χ∣α|\chi|^{\alpha}-DP. We will now show that (a transformation of) the quantity of interest — RDP of the subsampled mechanism — can be expressed as a linear combination of a sequence of binary-∣χ∣α|\chi|^{\alpha}-DP parameters ξ(α)\xi(\alpha) for integer α=2,3,...\alpha=2,3,... through Newton’s series expansion of the moment generating function:

Note that pq−1\frac{p}{q}-1 is a special case of (p−q)/r(p-q)/r with q=rq=r, therefore,

The same holds if we write M′=M∘subsample\mathcal{M}^{\prime}=\mathcal{M}\circ\mathsf{subsample} and restrict the maximum on the left to p=M′(X)p=\mathcal{M}^{\prime}(X) and q=M′(X′)q=\mathcal{M}^{\prime}(X^{\prime}) with XX, X′X^{\prime} adjacent, and the maximum on the right to p=M′(X)p=\mathcal{M}^{\prime}(X), q=M′(X′)q=\mathcal{M}^{\prime}(X^{\prime}) and r=M′(X′)r=\mathcal{M}^{\prime}(X^{\prime}) with mutually adjacent XX, X′X^{\prime} and X′′X^{\prime\prime}. For the subsampled mechanism, the right-hand side of the above equation can be bounded by Proposition 16. Putting these together, we can bound (8) as

where mechanism M\mathcal{M} satisfies ζ\zeta-ternary-∣χ∣α|\chi|^{\alpha}-DP and p,qp,q denote the distributions M∘subsample(X),M∘subsample(X′)\mathcal{M}\circ\mathsf{subsample}(X),\mathcal{M}\circ\mathsf{subsample}(X^{\prime}), respectively, for adjacent datasets X,X′X,X^{\prime}. Using this result along with the definition of Rényi differential privacy (from Definition 4) implies the RDP parameter following bound,

The 4(eϵ(2)−1)4(e^{\epsilon(2)}-1) Term. To begin with, we show that the binary-∣χ∣α|\chi|^{\alpha}-DP and ternary-∣χ∣α|\chi|^{\alpha}-DP are equivalent up to a constant of 44.

If a randomized mechanism M\mathcal{M} is ξ\xi-binary-∣χ∣α|\chi|^{\alpha}-DP, then it is ζ\zeta-ternary-∣χ∣α|\chi|^{\alpha}-DP for some ζ\zeta satisfying ξ(α)α≤ζ(α)α≤4ξ(α)α\xi(\alpha)^{\alpha}\leq\zeta(\alpha)^{\alpha}\leq 4\xi(\alpha)^{\alpha}.

Using the bound from Lemma 17 relating the binary and ternary-∣χ∣α|\chi|^{\alpha}-DP, gives that ζ(2)≤4(eϵ(2)−1)\zeta(2)\leq 4(e^{\epsilon(2)}-1).

The e(j−1)ϵ(j)min⁡{2,(eϵ(∞)−1)j}e^{(j-1)\epsilon(j)}\min\{2,(e^{\epsilon(\infty)}-1)^{j}\} Term. Now, we provide a bound for j≥2j\geq 2. We start with the following simple lemma.

Let X,YX,Y be nonnegative random variables, for any j≥1j\geq 1

This “triangular inequality”-like result exploits the nonnegativity of X,YX,Y and captures the intrinsic cancellations of the 2j2^{j} terms of a Binomial expansion. If we do not have non-negativity, the standard expansion will have a 2j2^{j} factor rather than 22 (see e.g., Proposition 3.2 of Bobkov et al. (2016)).

An alternative bound that is tighter in cases when XX and YY is related to each other with a multiplicative bound. Note that this bound is only going to be useful when M\mathcal{M} has a bounded ϵ(∞)\epsilon(\infty), such as when M\mathcal{M} satisfies (ϵ,0)(\epsilon,0)-DP guarantee.

Let X,YX,Y be nonnegative random variables and with probability 11, e−εY≤X≤eεYe^{-\varepsilon}Y\leq X\leq e^{\varepsilon}Y. Then for any j≥1j\geq 1

Take X=p/rX=p/r and Y=q/rY=q/r. Applying Lemma 18 gives ζ(j)≤2e(j−1)ϵ(j)\zeta(j)\leq 2e^{(j-1)\epsilon(j)}. Using Lemma 19 instead with ε=ϵ(∞)\varepsilon=\epsilon(\infty) provided by the mechanism M\mathcal{M}, we have ζ(j)≤e(j−1)ϵ(j)(eϵ(∞)−1)j\zeta(j)\leq e^{(j-1)\epsilon(j)}(e^{\epsilon(\infty)}-1)^{j}. Using these bounds together, we get the overall bound of,

Note that at j=2j=2, e(j−1)ϵ(j)min⁡{2,(eϵ(∞)−1)j}e^{(j-1)\epsilon(j)}\min\{2,(e^{\epsilon(\infty)}-1)^{j}\} simplifies to eϵ(2)min⁡{2,(eϵ(∞)−1)2}e^{\epsilon(2)}\min\{2,(e^{\epsilon(\infty)}-1)^{2}\}.

In this section, we prove Proposition 16. The proof uses the following simple lemma.

and both are nonnegative in the first quadrant. ∎

Let a mechanism M\mathcal{M} obey ζ\zeta-ternary-∣χ∣α|\chi|^{\alpha}-DP, then the algorithm M∘subsample\mathcal{M}\circ\mathsf{subsample} obeys γζ\gamma\zeta-ternary-∣χ∣α|\chi|^{\alpha}-DP.

If three datasets X,X′,X′′X,X^{\prime},X^{\prime\prime} of size nn are mutually adjacent, they must differ on the same data point (w.l.o.g., let it be the nnth), and the remaining n−1n-1 data points are the same. Let p,q,rp,q,r denote the distributions M∘subsample(X),M∘subsample(X′),M∘subsample(X′′)\mathcal{M}\circ\mathsf{subsample}(X),\mathcal{M}\circ\mathsf{subsample}(X^{\prime}),\mathcal{M}\circ\mathsf{subsample}(X^{\prime\prime}), respectively.

Let EE be the event such that the subsample includes the nnth item (and EcE^{c} be complement event), we have

and by construction, p(⋅∣Ec)=q(⋅∣Ec)p(\cdot|E^{c})=q(\cdot|E^{c}).

Substituting the observation into the ternary-∣χ∣j|\chi|^{j}-divergence, we get γj\gamma^{j} to show up.

Note that p(⋅∣E),q(⋅∣E)p(\cdot|E),q(\cdot|E) and rr are mixture distributions with combinatorially many mixing components.

Let JJ be a random subset of size γn\gamma n chosen by the subsample\mathsf{subsample} operator. In addition, we define an auxiliary dummy variable i∼Unif(1,...,γn)i\sim\text{Unif}({1,...,\gamma n}). Let ii be independent to everything else, so it is clear that r(θ∣J)=r(θ∣J,i)r(\theta|J)=r(\theta|J,i). In other words,

Now, define functions gg and g′g^{\prime} on index set J,iJ,i such that:

The above definitions and the introduction of the dummy random variable ii may seem mysterious. Let us explain the rationale behind them. Note that mixture distributions p(θ∣E),q(θ∣E)p(\theta|E),q(\theta|E) have a different number of mixture components comparing to q(θ)q(\theta). q(θ)q(\theta) has (nγn){n\choose\gamma n} components while p(θ∣E)p(\theta|E) and q(θ∣E)q(\theta|E) only have (n−1γn−1){n-1\choose\gamma n-1} components due to the conditioning on the event EE that fixes the differing (say the nnth) datapoint in the sampled set.

The dummy random variable ii allows us to define a new σ\sigma-field to redundantly represent both subsampling over [n−1][n-1] and [n][n] under the same uniform probability measure while establishing a one-to-one mapping between pairs of events such that the corresponding index of the subsample differs by only one datapoint.

If a randomized mechanism M\mathcal{M} is ξ\xi-binary-∣χ∣α|\chi|^{\alpha}-DP, then it is ζ\zeta-ternary-∣χ∣α|\chi|^{\alpha}-DP for some ζ\zeta satisfying ξ(α)α≤ζ(α)α≤4ξ(α)α\xi(\alpha)^{\alpha}\leq\zeta(\alpha)^{\alpha}\leq 4\xi(\alpha)^{\alpha}.

The first inequality follows trivially by definition. We now prove the second. Let p,q,rp,q,r be three probability distributions. Consider four events:

Under the first event ∣p−q∣j/rj−1=(p−q)j/rj−1≤(p−r)j/rj−1|p-q|^{j}/r^{j-1}=(p-q)^{j}/r^{j-1}\leq(p-r)^{j}/r^{j-1}. Under the second event ∣p−q∣j/rj−1≤(p−q)j/qj|p-q|^{j}/r^{j-1}\leq(p-q)^{j}/q^{j}.Similarly, under the third and fourth event, ∣p−q∣j/rj−1|p-q|^{j}/r^{j-1} is bounded by (q−r)j/rj−1(q-r)^{j}/r^{j-1} and (q−p)j/pj−1(q-p)^{j}/p^{j-1} respectively. It then follows that:

Let X,YX,Y be nonnegative random variables, for any j≥1j\geq 1

Let X,YX,Y be nonnegative random variables and with probability 11, e−εY≤X≤eεYe^{-\varepsilon}Y\leq X\leq e^{\varepsilon}Y. Then for any j≥1j\geq 1

The multiplicative bound implies that: −Y(1−e−ε)≤X−Y≤Y(eε−1)-Y(1-e^{-\varepsilon})\leq X-Y\leq Y(e^{\varepsilon}-1), which gives that with probability 11

B.4 Proof of Corollary 10

Let ⌊⋅⌋\lfloor\cdot\rfloor and ⌈⋅⌉\lceil\cdot\rceil denotes the floor and ceiling operators

The result is a simple corollary of the convexity of the CGF. Specifically, take λ1=⌊λ⌋\lambda_{1}=\lfloor\lambda\rfloor, λ2=⌈λ⌉\lambda_{2}=\lceil\lambda\rceil and v:=λ−⌊λ⌋v:=\lambda-\lfloor\lambda\rfloor. Note that λ=(1−v)⌊λ⌋+v⌈λ⌉\lambda=(1-v)\lfloor\lambda\rfloor+v\lceil\lambda\rceil. The result follows from the definition of convexity. ∎

B.5 Improving the Bound in Theorem 9

We note that we can improve the bound in Theorem 9 under some additional assumptions on the RDP guarantee. We formalize this idea in this section. We use d(X,X′)≤1d(X,X^{\prime})\leq 1 to represent neighboring datasets. We start with some additional conditions on the mechanism M\mathcal{M} as defined below.

The tightness condition requires that the RDP function ϵM(⋅)\epsilon_{\mathcal{M}}(\cdot) to be attainable by two distributions induced by a pair of adjacent datasets and the self-consistency condition requires that the same pair of distributions attains the maximal ∣χ∣α|\chi|^{\alpha}-divergence for a given range of parameters. Self-consistency is a non-trivial condition in general but it is true in most popular cases such as the Gaussian mechanism, Laplace mechanism, etc., where we know the Rényi divergence analytically and the difference of two datasets are characterized by one numerical number, e.g., sensitivity. (See Appendix E for a discussion.)

as the llth order forward finite difference (see (7)) of the functional e(⋅−1)ϵ(⋅)e^{(\cdot-1)\epsilon(\cdot)} evaluated at .

Given a dataset of nn points drawn from a domain X\mathcal{X} and a (randomized) mechanism M\mathcal{M} that takes an input from Xm\mathcal{X}^{m} for m≤nm\leq n, let the randomized algorithm M∘subsample\mathcal{M}\circ\mathsf{subsample} be defined as: (1) subsample\mathsf{subsample}: subsample without replacement mm datapoints of the dataset (sampling parameter γ=m/n\gamma=m/n), and (2) apply M\mathcal{M}: a randomized algorithm taking the subsampled dataset as the input. If M\mathcal{M} obeys (α,ϵ(α))(\alpha,\epsilon(\alpha))-RDP and additionally the RDP guarantee is tight and (α+1)(\alpha+1)-self-consistent as per Definition 26, then for all integer α≥2\alpha\geq 2, this new randomized algorithm M∘subsample\mathcal{M}\circ\mathsf{subsample} obeys (α,ϵ′(α))(\alpha,\epsilon^{\prime}(\alpha))-RDP where,

Proof Idea. The proof is identical to that of Theorem 9 as laid out in Appendix B.1. The part where it differs is in Part 3, i.e., bounding ζ(j)j\zeta(j)^{j} using RDP. As a result of the assumptions in Definition 26, we know that there exist a pair of adjacent data sets, which give rise to a pair of distribution pp and qq, that simultaneously achieves the upper bound in the definition of both ξ(j)\xi(j) and ϵ(j)\epsilon(j) divergences for all jj of interest. For even jj, the χj\chi^{j}-divergence can be written in an analytical form as a Rényi divergence (Nielsen & Nock, 2014) using a binomial expansion. Using Lemma 17 along with this expansion, gives rise to the 4Δ(j)[e(⋅−1)ϵ(⋅)](0)=4B(ϵ,j)4\Delta^{(j)}[e^{(\cdot-1)\epsilon(\cdot)}](0)=4B(\epsilon,j) bound for even jj. For odd jj, we reduce it to the even jj case through the Cauchy-Schwartz inequality

where each of the term in the square root can now be bounded by the binomial expansion. Putting these together, one notices that one can replace e(j−1)ϵ(j)min⁡{2,(eϵ(∞)−1)j}e^{(j-1)\epsilon(j)}\min\{2,(e^{\epsilon(\infty)}-1)^{j}\} with a more exact evaluation given by 4B(ϵ,2⌊j/2⌋))⋅B(ϵ,2⌈j/2⌉)4\sqrt{B(\epsilon,2\lfloor j/2\rfloor))\cdot B(\epsilon,2\lceil j/2\rceil)} in the bound of Theorem 9. We use this bound only for j≥3j\geq 3 because for j=2j=2, as discussed in Appendix B.1, we have an alternative way of bounding ζ(2)\zeta(2) that does not require these additional assumptions.

Appendix C Asymptotic Approximation of Rényi Divergence for Subsampled Gaussian Mechanism

In this section, we present an asymptotic upper bound on the Rényi divergence for the subsampled Gaussian mechanism. The results from this section are also used in our numerical experiments detailed in Section 4.

Let X\mathcal{X} denote the input domain. Let f:X→Θf:\mathcal{X}\rightarrow\Theta be some statistical query. We consider a subsampled Gaussian mechanism which releases the answers to ff by adding Gaussian noise to the mean of a subsampled dataset. In this case, the output θ\theta of the subsampled Gaussian mechanism is a sample from N(μJ,σ2/∣J∣2)\mathcal{N}(\mu_{J},\sigma^{2}/|J|^{2}) where μJ\mu_{J} is short for μ(XJ):=1∣J∣∑i∈Jf(xi)\mu(X_{J}):=\frac{1}{|J|}\sum_{i\in J}f(x_{i}) and JJ is a random subset of size γn\gamma n. The distribution of JJ induces a discrete prior distribution of μJ\mu_{J}. Without loss of generality, we assume that f(xi)≤1/2f(x_{i})\leq 1/2, which implies that the global sensitivity of μ\mu is 1/∣J∣1/|J|. By the sampling without replacement version of the central limit theoremUnder boundedness of f(xi)f(x_{i}), the regularity conditions holds., ∣J∣(μ(XJ)−1n∑i=1nf(xi))\sqrt{|J|}(\mu(X_{J})-\frac{1}{n}\sum_{i=1}^{n}f(x_{i})) converges in distribution to N(0,1n∑i=1n(f(xi)−μ(X))2)\mathcal{N}(0,\frac{1}{n}\sum_{i=1}^{n}(f(x_{i})-\mu(X))^{2}). In other words, the distribution of θ\theta asymptotically converges to

This allows us to use the analytical formula of the Rényi divergence between two Gaussians (see Appendix I) as an asymptotic approximation of the Rényi divergence between the more complex mixture distributions. We disclaim that this is a truly asymptotic approximation and should only be true when ∣J∣,n→∞|J|,n\rightarrow\infty and γ=∣J∣/n→0\gamma=|J|/n\rightarrow 0, but it is nevertheless interesting as it allows us to understand the dependence of different parameters in the bound. One important observation is that the part of the variance due to the dataset can be either bigger or smaller than that of the added noise, and this could imply a vastly different Rényi divergence. We give examples here of two contrasting situations.

Let f(x1)=f(x2)=...=f(xn−1)=f(xn)=−1/2f(x_{1})=f(x_{2})=...=f(x_{n-1})=f(x_{n})=-1/2 for the elements in X′X^{\prime}, and for XX the only difference (from X′X^{\prime}) is that in XX we have f(xn)=1/2f(x_{n})=1/2. Then the two asymptotic distributions are p=N(−12+1n,n−1n2∣J∣+σ2∣J∣2)p=\mathcal{N}(-\frac{1}{2}+\frac{1}{n},\frac{n-1}{n^{2}|J|}+\frac{\sigma^{2}}{|J|^{2}}) and q=N(−12,σ2∣J∣2)q=\mathcal{N}(-\frac{1}{2},\frac{\sigma^{2}}{|J|^{2}}), and the corresponding Rényi divergence equals

Let nn be an odd number, and let X′X^{\prime} be such that f(xi)=1/2f(x_{i})=1/2 for i≤⌊n/2⌋i\leq\lfloor n/2\rfloor and f(xi)=−1/2f(x_{i})=-1/2 otherwise, and for XX the only difference (from X′X^{\prime}) is that in XX we have f(xn)=1/2f(x_{n})=1/2. The two asymptotic distributions are p=N(12n,σ2∣J∣2+14∣J∣−14n2∣J∣)p=\mathcal{N}(\frac{1}{2n},\frac{\sigma^{2}}{|J|^{2}}+\frac{1}{4|J|}-\frac{1}{4n^{2}|J|}) and q=N(−12n,σ2∣J∣2+14∣J∣−14n2∣J∣)q=\mathcal{N}(-\frac{1}{2n},\frac{\sigma^{2}}{|J|^{2}}+\frac{1}{4|J|}-\frac{1}{4n^{2}|J|}), and the corresponding Rényi divergence equals

The first example (a “bad” data case) is closely related to our construction in the proof of Proposition 11. For α≪σ2/γ\alpha\ll\sigma^{2}/\gamma, the example shows an O(αγ2/σ2)O(\alpha\gamma^{2}/\sigma^{2}) rate, matching our upper bound from Theorem 9 (see Remark “Bound under Additional Assumptions” in Section 3.1) in the small α\alpha, large σ\sigma regime. The second example corresponds to a “good” data case where the dataset has a variety of different datapoints, and as we can see, the variance of the asymptotic distribution that comes from subsampling the dataset dominates the noise from Gaussian mechanism and the per-instance RDP loss for this particular pair of XX and X′X^{\prime} can be γn\gamma n times smaller than the bad case.

Appendix D Discrete Difference Operators and Newton’s Series Expansion

In this section, we provide more details of the discrete calculus objects that we used in the proof, and also illustrate how the interesting identity (6) comes about.

The α\alphath order forward difference operator Δ(α)\Delta^{(\alpha)} can be constructed recursively by

for all α=1,2,3,...\alpha=1,2,3,... with Δ(1):=Id\Delta^{(1)}:=\text{Id}.

The forward difference operators are linear transformation of functions that can be thought of as a convolution (denoted by ⋆\star) with a linear combination of Dirac-delta functions (δdirac\delta_{\rm dirac}), which we call filters.

From the linear combination point of view, the first order forward difference operator is the linear combination of the (infinite) basis functions of Dirac-delta functions supported on all integers with coefficient sequence [...,0,−1,1,0,...][...,0,-1,1,0,...]. This sequence of coefficients uniquely defines the difference operators. For example, when α=2\alpha=2, the coefficients that construct operator Δ(α)\Delta^{(\alpha)} are

and when α=3\alpha=3 and α=4\alpha=4, we get

respectively. In general, these convolution operators can be constructed by Pascal’s triangle of the α\alphath order, or simply the binomial coefficients with alternating signs.

Newton Series Expansion. Newton series expansion is the discrete analogue of the continuous Taylor series expansion, with all derivatives replaced with discrete difference operators and all monomials replaced with falling factorials.

where (x)k(x)_{k} denotes the falling factorials x(x−1)(x−2)...(x−k+1)x(x-1)(x-2)...(x-k+1). For integer xx, it is clear that the Newton’s series expansion has a finite number of terms.

Appendix E On Tightness and Self-consistency Guarantees

When specifying a sequence of RDP guarantees for M\mathcal{M} in terms of sup⁡X,X′:d(X,X′)≤1Dα(M(X)∥M(X′))≤ϵ(α)\sup_{X,X^{\prime}:d(X,X^{\prime})\leq 1}D_{\alpha}(\mathcal{M}(X)\|\mathcal{M}(X^{\prime}))\leq\epsilon(\alpha) it really matters whether ϵ(α)\epsilon(\alpha) is the exact analytical form of some underlying pairs of distributions induced by a pair of adjacent datasets X,X′X,X^{\prime} or just a sequence of conservative estimates. If it is the latter, then it is unclear at which α\alpha the slacks are bigger and at which α\alpha the slacks are smaller. And the sequence of ϵ(⋅)\epsilon(\cdot) might not be realizable by any pairs distributions. For example, if we use a polynomial upper bound of ϵ(⋅)\epsilon(\cdot), we know from the theory of CGF that no distribution have a CGF of polynomial order higher than 22 and the only distribution that has polynomial order exactly two is the Gaussian distribution (Lukacs, 1970).

In this section, we provide an example proof that the analytical Rényi DP bound of the Gaussian mechanisms (defined in Section 2) are self-consistent. Again for simplicity, for the Gaussian mechanism, we assume that the sensitivity of function ff is 11.

For the Gaussian mechanism, ϵ(α)=α/(2σ2)\epsilon(\alpha)=\alpha/(2\sigma^{2}) is tight and self-consistent.

The Gaussian mechanism with variance σ2\sigma^{2} has a tight RDP parameter bound ϵ(α)=α2σ2\epsilon(\alpha)=\frac{\alpha}{2\sigma^{2}} (Gil et al., 2013). This is achieved by the distributions N(0,σ2)\mathcal{N}(0,\sigma^{2}) and N(1,σ2)\mathcal{N}(1,\sigma^{2}).

For self-consistency, it suffices to show that the ∣χ∣α|\chi|^{\alpha}-divergence’s maximum for every even α\alpha are also achieved by the same pair of distributions. Consider q=N(0,σ2)q=\mathcal{N}(0,\sigma^{2}) and p=N(μ,σ2)p=\mathcal{N}(\mu,\sigma^{2}) for 0≤μ≤10\leq\mu\leq 1

for μ>0\mu>0. In other words, the divergence is monotonically increasing in μ\mu. ∎

In general, verifying the self-consistency is not straightforward, but since ∣χ∣α|\chi|^{\alpha}-divergence is a proper ff-divergence, it is jointly convex in its arguments. When the set of distributions is a convex polytope, it suffices to check for this condition at all the vertices of the polytope.

When α=1\alpha=1, both the binary- and ternary-∣χ∣α|\chi|^{\alpha}-divergence reduces to the total variation distance. When α=2\alpha=2 the binary-∣χ∣α|\chi|^{\alpha}-divergence become the χ2\chi^{2}-distance.

The following lemma shows that we can convert binary-∣χ∣α|\chi|^{\alpha}-DP (and therefore, ternary-∣χ∣α|\chi|^{\alpha}-DP) to the more standard (ϵ,δ)(\epsilon,\delta)-DP using the tail bound of a privacy random variable.

If an algorithm is ξ\xi-binary-∣χ∣α|\chi|^{\alpha}-DP, then it is also \left(\epsilon,\Big{(}\frac{\xi(\alpha)}{e^{\epsilon}-1}\Big{)}^{\alpha}\right)-DP for all ϵ>0\epsilon>0 and equivalently, (log⁡ξ(α)−1+log⁡(1/δ)α,δ)(\log\xi(\alpha)-1+\frac{\log(1/\delta)}{\alpha},\delta) for all δ>0\delta>0.

The results follows from changing the variable from p/qp/q to elog⁡(p/q)e^{\log(p/q)}. ∎

The following lemma shows that we can bound the above by a quantity that depends on the Rényi divergence and the Pearson-Vajda divergence. It also generalizes Lemma 19 that we used in the proof of Theorem 9.

Let p,q,rp,q,r are three distributions. For all conjugate pair u,v≥1u,v\geq 1 such that 1/u+1/v=11/u+1/v=1, and all integer j≥2j\geq 2 we have that

The proof is a straightforward application of the Hölder’s inequality.

When we take v=∞v=\infty and u=1u=1, we recover the result from Lemma 19. When we take u=v=2u=v=2, this guarantees that juju is an even number and the above results becomes

Appendix G Analytical Moments Accountant and Numerically Stable Computation

In this section, we provide more details on the analytical moments accountant that we described briefly in Section 3.3. Recall that the analytical moments accountant is a data structure that one can attach to a dataset to keep track of the privacy loss over a sequence of differentially private data accesses. The data structure caches the CGF of the privacy random variables in symbolic form and permits efficient (ϵ,δ)(\epsilon,\delta)-DP calculations for any desired δ\delta or ϵ\epsilon. Here is how it works.

Let M1,M2,..,Mk\mathcal{M}_{1},\mathcal{M}_{2},..,\mathcal{M}_{k} be a sequence of (possibly adaptively chosen) randomized mechanisms that one applies to the dataset and the KM1,...,KMkK_{\mathcal{M}_{1}},...,K_{\mathcal{M}_{k}} be the corresponding CGF. The analytical moments accountant maintains K=KM1+...+KMkK=K_{\mathcal{M}_{1}}+...+K_{\mathcal{M}_{k}} in symbolic forms and it can evaluate K(λ)K(\lambda) at any λ>0\lambda>0. The two main usage of the analytical moments accountant are for keeping track of: (a) RDP parameter ϵ(α)\epsilon(\alpha) for all α\alpha, and (b) (ϵ(δ),δ)(\epsilon(\delta),\delta)-DP for all 0≤δ<10\leq\delta<1, for a heterogeneous sequence of adaptively chosen randomized mechanisms. The conversion to RDP is straightforward using the one-to-one relationship between CGF and RDP (see Remark 7) with the exception of RDP at α=1\alpha=1 (Kullback Leibler-privacy) and α=+∞\alpha=+\infty (pure DP), which we keep track of separately. The conversion to (ϵ,δ)(\epsilon,\delta)-DP is obtained by solving the univariate optimization problems described in (3) and (4).

In the remainder of the section, we will describe specific designs of this data structure and substantiate our claims described earlier in Section 3.3.

Space and Time Complexity for Tracking Mechanisms and for (ϵ,δ)(\epsilon,\delta)-DP Query. We start by analyzing the space and time complexity of basic operations of this data structure.

The analytical moments accountant takes O(1)O(1) time to compose a new mechanism. At any point in time after the analytical moments accountant has been declared and in operation, let the total number of unique mechanisms that it has seen so far be LL. Then the analytical moments accountant takes O(L)O(L) space . The CGF queries (at a given λ\lambda) takes time O(L)O(L). (ϵ,δ)(\epsilon,\delta)-DP query to accuracy τ\tau (in terms of absolute difference in the argument ∣λ−λ∗∣|\lambda-\lambda^{*}|) takes time O(L)O(L) and O(Llog⁡(λ∗)/τ)O(L\log(\lambda^{*})/\tau) CGF evaluation calls respectively, where λ∗\lambda^{\ast} is the corresponding minimizer in (3) or (4).

We keep track of a dictionary of λ\lambda functions where the (key,value)-pair is effectively (M,(KM,cM)\mathcal{M},(K_{\mathcal{M}},c_{\mathcal{M}})) where KMK_{\mathcal{M}} is a function that returns the CGF given any positive input, and cMc_{\mathcal{M}} is the coefficient denoting how many times M\mathcal{M} appeared. This naturally allows O(1)O(1) time to add a new mechanism and O(L)O(L) space.

Since CGFs composes by simply adding up the functions, the overall CGF is ∑i=1LcMiKMi\sum_{i=1}^{L}c_{\mathcal{M}_{i}}K_{\mathcal{M}_{i}}. Evaluating this function takes LL CGF queries. We think of the problems of solving for ϵ\epsilon given δ\delta and solving for δ\delta given ϵ\epsilon as zeroth order optimization problem using these queries. These problems are efficiently solvable due to the geometric properties of CGFs that we mention in Section 2 and Appendix H.

When solving for ϵ\epsilon given δ\delta, we keep doubling the candidate λmax⁡\lambda_{\max} and calculating 1/δ+KM(λmax⁡)(λmax⁡)−1/δ+KM(λmax⁡−1)(λmax⁡−1)\frac{1/\delta+K_{\mathcal{M}}(\lambda_{\max})}{(\lambda_{\max})}-\frac{1/\delta+K_{\mathcal{M}}(\lambda_{\max}-1)}{(\lambda_{\max}-1)} until we find that it is positive. This procedure is guaranteed to detect a bounded interval that guarantees to contain λ∗\lambda^{*} in O(log⁡λ∗)O(\log\lambda^{*}) time thanks to the monotonicity of RDP. Then we do bisection to find the optimal λ∗\lambda^{\ast}, using the unimodal property of the objective function. Note that λmax⁡≤2λ∗\lambda_{\max}\leq 2\lambda^{\ast}. This ensures that the oracle evaluation complexity to find a τ\tau-optimal solution (i.e., to within accuracy τ\tau) of λ∗\lambda^{\ast} is O(log⁡(λ∗/τ)O(\log(\lambda^{\ast}/\tau). We can solve for δ\delta given ϵ\epsilon using the same bisection algorithm with the same time complexity, by using the fact that (4) is a log-convex problem. ∎

The results are compared to a naïve implementation of the standard moments accountant that keeps track of an array of size λmax⁡\lambda_{\max} and handles δ⇒ϵ\delta\Rightarrow\epsilon queries without regarding the geometry of CGFs. The latter will take O(λmax⁡)O(\lambda_{\max}) time and space for tracking a new mechanism, and O(λmax⁡)O(\lambda_{\max}) time to find an 11-suboptimal solution. In addition, it does not allow a dynamic choice of λmax⁡\lambda_{\max}. The analytical moments accountant described here, despite its simplicity, is an exponential improvement over the naïve version, besides being more flexible and adaptive.

There are still several potential problems. First, the input could be an upper bound which may not be an actual CGF function of any random variable, therefore breaking the computational properties. Secondly, when we need to handle subsampled mechanisms, even just evaluating the RDP bound in Theorem 9 for once at α\alpha will cost O(α2)O(\alpha^{2}) (therefore O(λ2)O(\lambda^{2})). Lastly, the quantities in the bound of Theorem 9 could be exponentially large and dealing them naïvely will cause floating point numbers overflow or underflow. We address these problems below.

“Projecting” a CGF Upper Bound into a Feasible Set. Note that an upper bound of the CGF does not necessarily have the standard properties associated with CGF that we note in Appendix H, however, we can “project” it to another valid upper bound using the proposition below so that it satisfies the properties from Appendix H.

Let KˉM\bar{K}_{\mathcal{M}} be an upper bound of KMK_{\mathcal{M}}, there is a functional FF such that F[KˉM]≤KMF[\bar{K}_{\mathcal{M}}]\leq K_{\mathcal{M}} and F[KˉM]F[\bar{K}_{\mathcal{M}}] obeys that F[KˉM]F[\bar{K}_{\mathcal{M}}] is convex, monotonically increasing, evaluates to at , and 1λF[KˉM](λ)\frac{1}{\lambda}F[\bar{K}_{\mathcal{M}}](\lambda) is monotonically increasing on λ≥0\lambda\geq 0.

Clearly, this is the largest function that satisfy the shape constraints, and therefore must be an upper bound of the actual true CGF of interest. ∎

This ensures that if we replace KMK_{\mathcal{M}} with F[KˉM]F[\bar{K}_{\mathcal{M}}] for any upper bound KˉM\bar{K}_{\mathcal{M}}, the computational properties of \eqrefeq:epsfromdelta\eqref{eq:eps_from_delta} and \eqrefeq:deltafromeps\eqref{eq:delta_from_eps} remain unchanged.

Approximate Computation of Theorem 9. The evaluation of the RDP itself for a subsampled mechanism according to our bounds in Theorem 9 could still depend polynomially in α\alpha. We resolve this by only calculating the bound exactly up to a reasonable αthresh\alpha_{thresh} and then for α>αthresh\alpha>\alpha_{thresh}, we use an optimization based-upper bound.

Here, ζ(j)\zeta(j) is the smallest of the upper bounds that we have of the ternary ∣X∣j|\mathcal{X}|^{j}-privacy of order jj using RDP.

For any vector xx of length α+1\alpha+1 we can use the following approximation:

When exp⁡(x−max⁡(x))\exp(x-\max(x)) is dominated by a geometric series (which it often is for most mechanism M\mathcal{M} of interest), then we can further improve log⁡(α)\log(\alpha) by something independent to α\alpha.

The max⁡(x)\max(x) can be solved efficiently in O(log⁡(α))O(\log(\alpha)) time as the function can have at most two local minima. This observation follows from the fact that log⁡ζ(j)\log\zeta(j) (or any reasonable upper bound of it) is monotonically increasing, jlog⁡γj\log\gamma is monotonically decreasing, and that log⁡(αj)\log{\alpha\choose j} is unimodal. Furthermore, we use the Stirling approximation for log⁡(αj)\log{\alpha\choose j} when α\alpha is large.

Numerical Stability in Computing the bound in Theorem 9. Since log-sum-exp is involved, we use the standard numerically stable implementation of the log-sum-exp function via: log⁡(∑iexp⁡(xi))=max⁡jxj+log⁡(∑iexp⁡(xi−max⁡j(xj)))\log(\sum_{i}\exp(x_{i}))=\max_{j}x_{j}+\log(\sum_{i}\exp(x_{i}-\max_{j}(x_{j}))).

To the best of our knowledge, the numerical considerations and implementation details of the moments accountant have not been fully investigated before, and accurately computing the closed form expression of χj\chi^{j}-divergences using Rényi Divergences for large jj remains an open problem of independent interest.

Appendix H Properties of Cumulant Generating Functions and Rényi Divergence

In this section, we highlight some interesting properties of CGF, which in part enables our analytical moments accountant data structure described in Appendix G.

∂∂λKM(λ)\frac{\partial}{\partial\lambda}K_{\mathcal{M}}(\lambda) monotonically increases from the infimum to the supremum of the support of the random variable.

It is convex (and strictly convex for all distributions that is not a single point mass).

KM(0)=0K_{\mathcal{M}}(0)=0, e.g., it passes through the origin.

The CGF of a privacy loss random variable further obeys that KM(−1)=0K_{\mathcal{M}}(-1)=0.

These properties are used in establishing the computational properties of the analytical moments accountant as we have seen before.

We provide a first-principle proof of convexity (c), which is elementary and does not use a variational characterization of the Rényi divergence as in the Corollary 2 of Van Erven & Harremos (2014).

We use the definition of convex functions. By definition, for all λ≥0\lambda\geq 0, we have

Let λ1,λ2≥0\lambda_{1},\lambda_{2}\geq 0 and v∈v\in. Take λ=(1−v)λ1+vλ2)/2\lambda=(1-v)\lambda_{1}+v\lambda_{2})/2 and apply Hölder’s inequality with the exponents being the conjugate pair 1/(1−v)1/(1-v) and 1/v1/v:

Optimization problem (4) is log-convex. Optimization problem (3) is unimodal / quasi-convex.

The last inequality follows from the first order condition of a convex function

The corollary implies that optimization problems defined in (3) and (4) have unique minimizers and they can be solved efficiently using bisection or convex optimization to arbitrary precision even if all we have is (possibly noisy) blackbox access to KM(⋅)K_{\mathcal{M}}(\cdot) or its derivative.

Appendix I Rényi Divergence of Exponential Family Distributions and RDP

Exponential Family Distributions. Let θ\theta be a random variable whose distribution parameterized by ϕ\phi. It is an exponential family distribution if the probability density function can be written as

If we re-parameterize, we can rewrite the exponential family distribution as a natural exponential family

where the normalization constant AA is called the log-partition function.

Rényi Divergence of Two Natural Exponential Family Distributions. Let S\mathcal{S} be the natural parameter space, i.e., every η∈S\eta\in\mathcal{S} defines a valid distribution. Then for η1,η2∈S\eta_{1},\eta_{2}\in\mathcal{S}, the Rényi divergence between the two exponential family distribution pη1:=p(θ;η1)p_{\eta_{1}}:=p(\theta;\eta_{1}) and pη2:=p(θ;η2)p_{\eta_{2}}:=p(\theta;\eta_{2}) is:

If α∉{0,1}\alpha\notin\{0,1\} and αη1+(1−α)η2∈S\alpha\eta_{1}+(1-\alpha)\eta_{2}\in\mathcal{S},

If α∉{0,1}\alpha\notin\{0,1\} and αη1+(1−α)η1∉S\alpha\eta_{1}+(1-\alpha)\eta_{1}\notin\mathcal{S},

namely, the Kullback Liebler divergence of the two distributions and also the Bregman divergence with respect to convex function AA.

For example, the Rényi divergence between multivariate normal distributions N(μ1,Σ1),N(μ2,Σ2)\mathcal{N}(\mu_{1},\Sigma_{1}),\mathcal{N}(\mu_{2},\Sigma_{2}) equals (Gil et al., 2013)

Exponential Family Mechanisms and its Rényi-DP. Let the differentially private mechanism to release θ\theta be sampling from an exponential family. Let

denote the distribution induced by this differentially private mechanism on dataset XX, and similarly let

be the corresponding distribution when the dataset is X′X^{\prime}.

In this case, the privacy random variable log⁡(p/q)\log(p/q) has a specific form

Using this, it can be shown that the α\alpha-Rényi divergence between pp and qq is

A special case of the exponential family mechanisms of particular interest is the posterior sampling mechanisms where η(X)\eta(X) has a specific form (Geumlek et al., 2017).

To obtain RDP from the above closed-form Rényi divergence, it remains to maximize over two adjacent data sets X,X′X,X^{\prime}. We make a subset of the following three assumptions.

Bounded parameter difference: sup⁡X,X′:d(X,X′)≤1∥η(X)−η(X′)∥≤Δ\sup_{X,X^{\prime}:d(X,X^{\prime})\leq 1}\|\eta(X)-\eta(X^{\prime})\|\leq\Delta with respect a norm ∥⋅∥\|\cdot\|.

(B,κ)(B,\kappa)-Local Lipschitz: The log-partition function AA is (B,κ)(B,\kappa)-Local Lipschitz with respect to ∥⋅∥\|\cdot\| if for all data set XX and all η\eta such that ∥η−η(X)∥≤κ\|\eta-\eta(X)\|\leq\kappa, we have

(L,κ)(L,\kappa)-Local smoothness: The log-partition function AA is (L,κ)(L,\kappa)-smooth with respect to ∥⋅∥\|\cdot\| if for all data set XX and all η\eta such that ∥η−η(X)∥≤κ\|\eta-\eta(X)\|\leq\kappa, we have

The following proposition refines the results of (Geumlek et al., 2017, Lemma 3).

Let M\mathcal{M} is an exponential family mechanism that obeys Assumption (A)(B)(C) with parameter Δ,B,L,κ\Delta,B,L,\kappa with a common norm ∥⋅∥\|\cdot\|. If in addition, κ≥Δ\kappa\geq\Delta, then M\mathcal{M} obeys (α,ϵ(α))(\alpha,\epsilon(\alpha))-RDP for all α∈(1,κ/Δ+1]\alpha\in(1,\kappa/\Delta+1] with

We can view BB and LL as (nondecreasing) functions of κ\kappa. For any fixed α\alpha of interest, we can optimize over all feasible choice of κ\kappa:

In fact, as can be seen clearly from the proof, 2B(αΔ)Δ2B(\alpha\Delta)\Delta can be improved to [B((α−1)Δ)+B(Δ)]Δ[B((\alpha-1)\Delta)+B(\Delta)]\Delta.

Assumption (A) implies that ∥η(X)−η(X′)∥≤Δ\|\eta(X)-\eta(X^{\prime})\|\leq\Delta. Note that for all α≤κ/Δ\alpha\leq\kappa/\Delta, ∥αη(X)+(1−α)η(X′)−η(X)∥≤κ\|\alpha\eta(X)+(1-\alpha)\eta(X^{\prime})-\eta(X)\|\leq\kappa. Assumption (B) implies that

Substitute these into the definition of Dα(p∥q)D_{\alpha}(p\|q) we get that

Assumption (C) implies that for all α≤κ/Δ+1\alpha\leq\kappa/\Delta+1

where the last step uses Assumption (A). Assumption (C) also implies that

Substitute these into the definition of Dα(p∥q)D_{\alpha}(p\|q) we get that

which, together with (12), produces the bound as claimed. ∎