Rényi Differential Privacy of the Sampled Gaussian Mechanism
Ilya Mironov, Kunal Talwar, Li Zhang
Introduction and Definitions
The notion of differential privacy grounds a guarantee of individual privacy for input of a statistical procedure in non-determinism of the procedure’s output. The uncertainty, or randomness, can be achieved either explicitly, by injecting noise, or implicitly, by leveraging randomness intrinsic to the mechanism or its input. Developing a general framework that accounts for all sources of output stochasticity and distills them into a guarantee of differential privacy remains a significant open problem.
Following introduction of (pure) differential privacy , many of its relaxations, which we recall shortly, were motivated by the need to capture properties of the Gaussian additive noise and SGM.
The notion of approximate differential privacy, which includes an additive term, appeared in the work by Dwork et al. in order to support analysis of the Gaussian noise mechanism. Concentrated Differential Privacy (CDP) and its reformulation, zero-CDP, due to Bun and Steinke were developed to refine composition theorems using the Gaussian mechanism as their main motivating examples.
Another family of definitions and analytical techniques emerged as tools for handling the Sampled Gaussian mechanism. To track privacy loss budget over multiple applications of SGM, Abadi et al. developed a moments accountant, implemented a numerically stable and efficient algorithm for computing it, and analyzed the accountant’s asymptotic properties. A relaxation of CDP well-suited for analysis of SGM, called truncated CDP (tCDP), was introduced by Bun et al. . We compare these closely related notions in Section 4.
In this paper we revisit the moments accountant due to Abadi et al., restate it using the notion of Rényi differential privacy (RDP) , relax certain assumptions, and strengthen upper bounds. An open-source implementation of the RDP accountant for SGM is available from https://github.com/tensorflow/privacy.
We recall the definitions of Rényi divergence, Rényi differential privacy and the Sampled Gaussian mechanism.
Let and be two distributions on defined over the same probability space, and let and be their respective densities. The Rényi divergence of a finite order between and is defined as
Rényi divergence at orders are defined by continuity.
We refer the reader to van Erven and Harremoës for an introduction to the theory of Rényi divergence, including proof of its continuity and many other useful properties.
We say that a randomized mechanism satisfies -Rényi differential privacy (RDP) if for any two adjacent inputs it holds that
The notion of adjacency between input datasets is domain-specific and is usually taken to mean that the inputs differ in contributions of a single individual. In this work, we will use this definition and call two datasets to be adjacent if for some (or vice versa).
The SGM has been studied in several incomparable settings. Broadly speaking, there are three approaches for deriving privacy bounds on the SGM: (1) asymptotic analyses that target tight bounds for ; (2) approaches that lead to numerically accurate estimates; and (3) a closed-form analysis that captures the right dependency on the order . These results, along with our contributions are summarized in Table 1.
Reducing to a simpler case
We first reduce the problem of proving the RDP bound for the Sampled Gaussian mechanism to a particularly simple special case of a mixture of single-dimensional Gaussians.
under the assumption for any adjacent .
Let denote a set-valued random variable defined by taking a random subset of , where each element of is independently placed in with probability . Conditioned on , the mechanism samples from a Gaussian with mean . Thus
where the sum here denotes mixing of the distributions with the weights . Similarly,
Rényi divergence is quasi-convex , allowing us to bound
where we have used the translation invariance of Rényi divergence. Since the covariances are symmetric, we can, by applying a rotation, assume that for some constant . The two distributions at hand are then both product distributions that are identical in all coordinates except the first. By additivity of Rényi divergence for product distributions, we have that
For any , the noise can be obtained from by adding noise from , and the same operation allows us to to obtain from . Thus by the data processing inequality for Rényi divergence, we conclude
In the next section, we bound these simpler one-dimensional Rényi divergences between mixtures of Gaussian distributions.
RDP Analysis of Single-Dimensional SGM
Let denote the pdf of and let denote the pdf of . Let
We introduce the following notation used through the rest of this section. Define
In our first result (Section 3.1), we demonstrate that . In fact, we prove a more general statement about centrally-symmetric distributions, from which the case of and follows as a corollary.
To upper bound we pursue two complementary approaches. Section 3.2 derives a closed-form bound that is valid and reasonably tight within a wide range of parameters. Section 3.3 describes a numerically stable computational procedure for computing exactly (to within any desired precision).
Looking ahead, admits decomposition into a finite sum or a convergent series. By comparison, manipulating is a similar manner is considerably more difficult, since we have a composite term in the denominator. Fortunately, it is not necessary as we demonstrate that . In fact, we prove a more general statement, which may be of independent interest.
Let and be two differentiable distributions on such that there exists a differentiable mapping satisfying and . Then the following holds for all and :
We will repeatedly use the fact that . Furthermore, since the inverse of is , it is continuously differentiable and its Jacobian satisfies .
Let and . Then, substituting , we have
We proceed by arguing a stronger statement: the integrand of the right-hand side of (1) dominates the integrand of (2) pointwise. In other words, we prove the following lemma, from which the theorem claim follows:
For all , and any , :
where and .
Let and . Assume wlog (the claim is symmetric with respect to and ). Then the two sides become, respectively,
Dividing by and letting and , we need to compare
subject to . (The bound follows from and from .)
Collecting the terms on the left and the terms on the right we have
The left-hand side dominates, since the two expressions are equal for and the left expression is monotonically increasing in over :
which holds due to , in turn implied by monotonicity of in for . ∎
This concludes the proofs of the lemma and of the theorem. ∎
for any .
Let . Then, the pdf of is as required. The claim follows. ∎
Theorem 5 holds for any additive noise whose distribution is centrally symmetric, which also includes Laplace, sinh-normal , their discretized and multi-dimensional variants.
2 Closed-Form Bound
We write as an integral over the real line, break it into two parts (at to be chosen shortly) and bound them separately as follows:
We define , chosen to satisfy . For notational convenience we also introduce . Note that and . We repeatedly use the facts that everywhere and the ratio is monotonically decreasing in . It follows that for all the ratio and for the ratio . In particular, for the ratios and are confined to .
For any , and positive such that where :
Recall the following Lemma 15 in Bun et al. :
Let . By setting and we obtain, respectively,
The claim follows by simple addition and multiplication of both sides by . ∎
A useful fact that facilitates application of Lemma 8 is that for positive and
It implies that all terms in the claim of the lemma are non-negative.
Similarly to the argument in the previous section, we “double over” the integral, by using the symmetry between and :
Note that for and for . Furthermore, for .
Applying Lemma 8 and inequality (3), we bound :
as claimed (we use the identities elaborated in Section 3.3). ∎
Lemma 9 is unconditional, mildly behaved, and it yields an asymptotically right dependency of the bound on the parameters , , and (after taking the logarithm, it is non-tight by a factor close to 2). We next consider the integral to the right of that is responsible for the conditions on .
If , , and satisfy
where , then
We observe (similarly to [2, Lemma 16]) that for , it holds that
The inequality (6) follows from the Gaussian tail bound for . To apply the bound it is necessary to check that the lower limit of the integral . Recall that . Together, the definition of and condition (4) imply that
which, given that , guarantees that .
It is convenient to take the logarithm of both sides of Eq. (7) resulting in the following:
We will argue that the right-hand side of the above is less than . Subtracting the two quantities, we need to demonstrate that
The rest of the proof proceeds by case analysis.
Observing that , it suffices to verify that
From and we conclude that the first summand is positive. Since and , the second summand is larger than , by direct computation.
Case IIa: α≥2𝛼2\alpha\geq 2 and q(α−1)<1/3𝑞𝛼113q(\alpha-1)<1/3
The inequality holds since the first term is non-negative (), , , and .
Case IIb: α≥2𝛼2\alpha\geq 2 and q(α−1)≥1/3𝑞𝛼113q(\alpha-1)\geq 1/3
Continue Eq. (7), taking the logarithm of both sides:
The last inequality follows from Eq. (5) and by the fact that .
Our main theorem holds under the conditions of Lemmas 9 and 10:
If , , and satisfy
Recall that to state an RDP guarantee on SGM it is sufficient to bound . Applying the results of Lemmas 9 and 10,
(The last inequality due to for .)
Finally, since for , we conclude that SGM satisfies -RDP where as needed. ∎
3 Numerically Stable Computation
Naïvely, can be approximated as an integral using standard numerical libraries. It however leads to the problem of computing an integral over the whole real line of a quantity that can vary a lot. We sidestep this difficulty by expressing as a finite sum (or a convergent series), swap the order of the integration and summation operators, and compute the integrals analytically.
Applying the binomial expansion to (11), we have
Thus it suffices to compute for the expectation
Case II. Fractional α𝛼\alpha.
To rewrite (11) as a convergent series, consider two cases depending on how compares with . The inflection point is where the two quantities are equal:
Analogously to the case of integer , we compute the expectations of both series under , where the integrals are taken over the half lines and :
The computation done in the privacy accountant proceeds by plugging in these quantities into the series (12), and carrying out the summation to convergence.
Upper bounds (Theorem 11) and exact computations are compared in Figure 1.
Discussion
The notions of CDP, zCDP, Moments accountant and Rényi DP are closely related in that they control the moments of the privacy loss random variable. In this section, we clarify their differences.
For two adjacent datasets and , the privacy loss of a mechanism at an outcome is defined as
For continuous output spaces, the probability above is replaced by the probability density function. The various definitions deal with moment generating function of the privacy loss random variable. Define
Recalling the definition of Rényi divergence between distributions:
The following are equivalent definitions of CDP, zCDP, tCDP and RDP:
A mechanism satisfies -CDP if for all adjacent datasets and for all
A mechanism satisfies -zCDP if for all adjacent datasets ,
A shorthand for -zCDP is -zCDP. Thus a mechanism satisfies -zCDP if for all adjacent datasets ,
A mechanism satisfies -tCDP if for all adjacent datasets ,
A mechanism satisfies -RDP if for all adjacent datasets ,
While here we have stated the definitions in terms of , using (14), one can translate these to bounds on the Rényi divergence; in some cases that leads to cleaner looking definitions. Going down the list, the definitions get less restrictive and have more parameters. While zCDP suffices for many purposes, SGM is an important mechanism that does not satisfy zCDP, but satisfies RDP for a suitable range of .
While the above were proposed as standalone privacy definitions, the moments accountant was proposed as an accounting mechanism that tracks (the logarithm of) directly and converts the resulting bound to an -DP bound.