Optimal Accounting of Differential Privacy via Characteristic Function

Yuqing Zhu, Jinshuo Dong, Yu-Xiang Wang

Introduction

Differential privacy (DP) (Dwork et al., 2006) is one of the most promising approaches towards addressing the privacy challenges in the era of artificial intelligence and big data. Recently, DP is going through an exciting transformation from a theoretical construct into a practical technology (see, e.g., Apple, Differential Privacy Team, 2017; Erlingsson et al., 2014; Dajani et al., 2017), which demands constant-tight privacy accounting tools that use the privacy budget with optimal efficiency.

Much of the progress in the recent theory and practice of DP has been driven by Renyi Differential Privacy (RDP) (Mironov, 2017), e.g., it is the major technical component behind the first practical method for deep learning with differential privacy (Abadi et al., 2016). More broadly, RDP is among several recent work in differential privacy that conducts fine-grained mechanism specific analysis (Bun and Steinke, 2016; Abadi et al., 2016; Mironov, 2017; Balle and Wang, 2018; Wang et al., 2019; Dong et al., 2021; Sommer et al., 2019; Koskela et al., 2020). At the heart of these breakthroughs is the idea of using a function to describe the privacy guarantee of a randomized procedure, thus produces significantly more favorable privacy-utility tradeoff and tighter bounds under composition. (See Table 1 for a summary their pros and cons).

Note that no single approach dominates others in all dimensions. Renyi DP could be undefined for certain privacy loss distributions, and cannot be used to provide the optimal (ϵ,δ)(\epsilon,\delta)-DP computation in general (discussed in Section 3). Privacy profiles and ff-DP are unwieldy under composition; and the method of (Koskela et al., 2020) is limited to mechanisms with univariate output where log⁡(p/q)\log(p/q) admits a density; or those with discrete outputs. Usually, for a new mechanism, we would be lucky to have any one of these functional descriptions. The need to derive these manually for each new mechanism is clearly limiting the creativity of researchers and practitioners in DP.

In addition, there are some unresolved foundational issues related to the PLD formalism. As is repeatedly articulated by the authors, the PLD formalism is defined for each pair of neighboring datasets separately, thus, strictly speaking, does not imply DP unless we can certify that the pair of neighboring datasets is the worst-case. This is challenging because such a pair of datasets might not exist and it is unclear how we can define a partial ordering of two privacy loss distributions.

In this paper, we provide a unified treatment to these functional representations and resolve the aforementioned subtle issues related to the PLD formalism. Our contributions are summarized below.

We formalize and generalize the notion of “worst-case” pair distributions discussed in (Sommer et al., 2019) to a “dominating pair” and prove several basic properties of the dominating pairs including finding such pairs from any privacy-profiles, adaptive composition and amplification by sampling. These results substantially broaden the applicability of PLD formalism (Sommer et al., 2019) in deriving worst-case DP guarantees.

We propose a lossless representation of the privacy loss RV by its characteristic function (ϕ\phi-function) and derive optimal conversion formula to (and from) privacy-profile, tradeoff-function (ff-DP) and the distribution function of the privacy loss RV. Many of these conversion rules correspond naturally to the classical Fourier / Laplace transforms (and their inverses) from the signal processing literature.

We design an Analytical Fourier Accountant (AFA, extending the Fourier accountant of (Koskela et al., 2020, 2021)) which represents the complex logarithm of the ϕ\phi function symbolically. AFA can be viewed as an extension of the (analytical) moments-accountant (Abadi et al., 2016; Wang et al., 2019) to complex α\alpha, thus allowing straightforward composition. Computing δ\delta as a function of ϵ\epsilon for (ϵ,δ)(\epsilon,\delta)-DP boils down to a numerical integral which we use a Gaussian quadrature-based method to solve efficiently and accurately.

Experimentally, we demonstrate that our approach provides substantially tighter privacy guarantees over compositions than RDP on both basic mechanisms and their subsampled counterparts. Our results essentially match the results from (Dong et al., 2021) and (Koskela et al., 2021) but neither rely on central-limit-theorem type asymptotic approximation nor require choosing appropriate discretization a priori as in the FFT-based Fourier Accountant.

Related work: The paper builds upon the existing work on RDP-based privacy accounting (Abadi et al., 2016; Mironov, 2017; Wang et al., 2019) as well as ff-DP (Dong et al., 2021). Our main theoretical contribution is to substantially broaden the applicability of the PLD formalism (Sommer et al., 2019) by proposing the notion of dominating pairs and providing general recipes for constructing these dominating pairs. The closest to algorithmic contribution is the work of Koskela et al. (2020, 2021), who propose Fourier accountant and an FFT-based approximation scheme, the characteristic function view can be seen as an analytical version of their Fourier accountant (hence the name AFA). AFA is more generally applicable, and allows more flexible use of existing methods for numerical integral. The recent work of Gopi et al. (2021) improves the FFT accountant substantially. It is complementary to us in that it does not address the foundational issues of the PLD formalism, nor do they propose an analytical representation that allows a more modular design of the privacy accountant. Notably, we can use any blackbox numerical integration tool, e.g., Gaussian quadrature, and set the desired error bound on-the-fly, while an FFT-accountant requires setting the parameters at initialization. Finally, Canonne et al. (2020) considered ϕ\phi function and its numerical / computational properties but the discussion is restricted to the discrete Gaussian mechanism.

Privacy accounting is closely related to the classical advanced composition of (ϵ,δ)(\epsilon,\delta)-DP (Dwork et al., 2010); Kairouz et al. (2015) provides the optimal kk-fold composition of an (ϵ,δ)(\epsilon,\delta)-DP mechanism and Murtagh and Vadhan (2016) shows that computing the tightest possible bound for the composition of kk heterogeneous mechanisms is #P\#P-hard. The recent line of work (that we are building upon) challenges the basic primitive of composing (ϵi,δi)(\epsilon_{i},\delta_{i})-DP by composing certain functional descriptions of the mechanisms themselves, which sometimes avoids the computational hardness (but not always) and results in even stronger composition than the best (ϵ,δ)(\epsilon,\delta)-DP type composition would allow (Bun and Steinke, 2016).

Notations and preliminary

In this section, we review the standard definition of differential privacy, its RDP relaxation, introduce the characteristic function and draw connections with RDP.

Differential privacy and its equivalent definitions. With these notations clarified, we can now formally define differential privacy.

A randomized algorithm M\mathcal{M} is (ϵ,δ)(\epsilon,\delta)-DP if for every pair of neighboring datasets D,D′D,D^{\prime}, and every possible output set S⊆OS\subseteq\mathcal{O} the following inequality holds:

We can alternatively interpret DP from the views of a divergence metric of two probability distributions, a hypothesis testing view of a binary-classifier, as well as the distribution of the log-odds ratio. Let us first define these quantities formally.

Let ϕ\phi be a classifier to distinguish two distributions PP and QQ using a sample. αϕ\alpha_{\phi} be its Type I error (false positive rate) and βϕ\beta_{\phi} be its Type II error (false negative rate). The tradeoff function TP,Q(α):→T_{P,Q}(\alpha):\rightarrow is defined to be TP,Q(α):=inf⁡ϕ{βϕ  ∣  αϕ≤α}.T_{P,Q}(\alpha):=\inf_{\phi}\{\beta_{\phi}\;|\;\alpha_{\phi}\leq\alpha\}.

The privacy loss random variable of for a pair of neighboring dataset D,D′D,D^{\prime} under mechanism M\mathcal{M} is defined as LP,Q:=log⁡M(D)(o)M(D′)(o) where o∼M(D);L_{P,Q}:=\log\frac{\mathcal{M}(D)(o)}{\mathcal{M}(D^{\prime})(o)}\text{ where }o\sim\mathcal{M}(D); similarly, we have LQ,P:=log⁡M(D′)(o)M(D)(o) where o∼M(D′).L_{Q,P}:=\log\frac{\mathcal{M}(D^{\prime})(o)}{\mathcal{M}(D)(o)}\text{ where }o\sim\mathcal{M}(D^{\prime}).

These quantities can be used to equivalently define differential privacy (Wasserman and Zhou, 2010; Barthe and Olmedo, 2013; Kairouz et al., 2015; Balle and Wang, 2018; Balle et al., 2018; Dong et al., 2021).

The following statements about a randomized algorithm M\mathcal{M} are equivalent to Definition 1

sup⁡D≃D′Heϵ(M(D)∥M(D′))≤δ.\sup_{D\simeq D^{\prime}}H_{e^{\epsilon}}(\mathcal{M}(D)\|\mathcal{M}(D^{\prime}))\leq\delta.

sup⁡D≃D′TM(D),M(D′)(α)≥max⁡{0,1−δ−eϵα,e−ϵ(1−δ−α).\sup_{D\simeq D^{\prime}}T_{\mathcal{M}(D),\mathcal{M}(D^{\prime})}(\alpha)\geq\max\{0,1-\delta-e^{\epsilon}\alpha,e^{-\epsilon}(1-\delta-\alpha).

Pr⁡o∼M(D)[LP,Q>ϵ]−eϵPr⁡o∼M(D′)[LQ,P<−ϵ]≤δ\Pr_{o\sim\mathcal{M}(D)}[L_{P,Q}>\epsilon]-e^{\epsilon}\Pr_{o\sim\mathcal{M}(D^{\prime})}[L_{Q,P}<-\epsilon]\leq\delta for all neighboring D,D′D,D^{\prime}.

We highlight that in all these definitions, it is required for the bound to cover all pairs of neighboring datasets D,D′D,D^{\prime}.

Mechanism-specific analysis / Functional representation of DP guarantee. Each of these equivalent interpretations could be used to provide more-fine-grained description of a differential privacy mechanism M\mathcal{M}. For instance, the privacy profile δM(ϵ)\delta_{\mathcal{M}}(\epsilon) upper bounds the HS-divergence for all ϵ\epsilon and the ff-DP lowerbounds the tradeoff function for all Type I error α\alpha (see Table 1). In addition, Sommer et al. (2019) proposes the PLD formalism, which represents the privacy loss RV by its density function. The PLD formalism can be viewed as another functional representation, but it is qualitatively different from privacy profile and ff-DP. We will expand further on PLD in Section 3.

Renyi Differential Privacy and Moments Accountant. Renyi differenital privacy (RDP) (Mironov, 2017) is another generalization of pure-DP via Renyi divergence (denoted by Dα(P∣∣Q)\mathcal{D}_{\alpha}(P||Q)).

We say a randomized algorithm M\mathcal{M} is (α,ϵ(α))(\alpha,\epsilon(\alpha))-RDP with order α≥1\alpha\geq 1 if for neighboring datasets D,D′D,D^{\prime},

(ϵ,α)(\epsilon,\alpha)-RDP implies (ϵ(α)+log⁡(1/δ)α−1,δ)(\epsilon(\alpha)+\frac{\log(1/\delta)}{\alpha-1},\delta)-DP, thus by viewing RDP as a function ϵM(⋅)\epsilon_{\mathcal{M}}(\cdot), we can find the best ϵ\epsilon parameter by optimizing over α\alpha. Tighter conversion formula had been proposed recently (Balle et al., 2020; Asoodeh et al., 2021), which we discuss in Appendix.

The main advantage of RDP is that it composes naturally over multiple adaptively chosen mechanisms via a straightforward rule ϵM1×M2≤ϵM1+ϵM2\epsilon_{\mathcal{M}_{1}\times\mathcal{M}_{2}}\leq\epsilon_{\mathcal{M}_{1}}+\epsilon_{\mathcal{M}_{2}}. It recovers the advanced composition when converting to (ϵ,δ)(\epsilon,\delta)-DP and yields substantial additional savings. These properties, together with the privacy-amplification by sampling, makes RDP the natural choice for privacy accounting in various algorithms of differentially private deep learning. The related algorithm that keeps track of the moment generating function of LP,Q(o)L_{P,Q}(o) is called “moments accountant” (Abadi et al., 2016; Wang et al., 2019).

Motivation of our research

In this section, we discuss a number of limitations of Renyi DP and PLD formalism that, in part, motivated our research.

1𝑒p=\frac{e}{1+e}. Pane (a) shows the RDP function of RR and GM, clearly, RR also satisfies the same RDP of the Gaussian mechanism for all α\alpha. Pane (b) in the middle compares the ff-DP of the two mechanisms, as well as the ff-DP implied by the optimal conversion from RDP. Pane (c) shows the privacy profile of the two mechanisms, together with Pane (a), it demonstrates that the optimal ff-DP and (ϵ,δ)(\epsilon,\delta)-DP of GM cannot be achieved by a conversion from RDP. The limits of RDP. Let us first ask “is the RDP function a lossless description?” In particular, does it capture all information in the privacy-profile? Because if it is the case, then we could use RDP for composition, and then find the exact optimal (ϵ,δ)(\epsilon,\delta)-DP by converting from RDP.

The answer is unfortunately “no”. The reasons are twofolds. First, there are mechanisms with non-trivial (ϵ,δ)(\epsilon,\delta)-DP where RDP parameters partially or entirely do not exist. We give two concrete examples in Appendix A.

The second, and a more troubling issue is that even in the cases when RDP parameters exist everywhere and hence appears to be characterizing, it does not lead to a tight conversion to (ϵ,δ)(\epsilon,\delta)-DP. Gaussian mechanism is such a candidate where its PLD is completely captured by its Renyi divergences. However, in Figure 1 we demonstrate that we cannot, in general, convert the RDP of Gaussian mechanism into an (ϵ,δ)(\epsilon,\delta)-DP that matches the optimal accounting one can achieve through either the privacy profile or ff-DP directly. Specifically, by an example due to (Dong et al., 2021, Proposition B.7), we know that a randomized response mechanism (RR) satisfies 11-zCDP, thus the same RDP as that of a Gaussian mechanism (GM) with σ=1\sigma=1. If the RDP conversion is tight, then it will have to apply to RR too, but that will lead to a contradiction with the tradeoff function of RR. More explicitly, when we further convert the ff-DP in Figure 1 to (ϵ,δ)(\epsilon,\delta)-DP, this example shows that while both RR and GM satisfy an RDP with ϵ(α)=α2\epsilon(\alpha)=\frac{\alpha}{2}, GM obeys (0.277,0.3)(0.277,0.3)-DP but RR does not satisfy (ϵ,0.3)(\epsilon,0.3)-DP with ϵ<0.471\epsilon<0.471.

This example certifies that the conversion rule we used (based on an extension of (Balle et al., 2020)) cannot be improved and that RDP is a lossy representation even for the Gaussian mechanism.

Trouble with Worst-Cases in the PLD formalism. Recent developments in the PLD formalism show great promises in computing tight (ϵ,δ\epsilon,\delta)-DP with stable numerical algorithms and provable error bounds (Koskela et al., 2020, 2021). However, as we discussed earlier, PLD is specified for each pair of input datasets separately. To use PLD, the original authors (quoting verbatim) “require the privacy analyst interested in applying our results (PLD formalism) to provide worst-case distributions.” (Sommer et al., 2019, Section 2). In a subsequent work (Meiser and Mohammadi, 2018), a subset of the authors further derive the worst-case pair of distributions for basic mechanisms such as Gaussian mechanism and Laplace mechanism (Meiser and Mohammadi, 2018).

While these are valid arguments, the line of work on PLD formalism does not formally define the worst-case pair of distributions, nor do they provide general recipes for “privacy analysts” to determine which pair of inputs is the worst-case. The issue is more prominent when we consider mechanism-specific analysis, because the pairs of datasets that attain the argmax might be different in different regions of the privacy profile (see an example in Appendix A).

Moreover, in most typical use cases of the privacy accounting tools, the mechanism under consideration is constructed through the composition of a sequence of simpler mechanisms. Even if for each mechanism, we know the worst-case pair distributions, the composition of the individual PLDs may not correspond to the worst-case PLD of the composed mechanism This is an issue we will address later, which shows that it is OK even if it does not.. For this reason, it is unclear how to use PLD for deriving worst-case DP bound under composition except in highly specialized cases (e.g., Gaussian mechanisms and their compositions).

Summary. To reiterate, RDP is lossy when converting to (ϵ,δ)(\epsilon,\delta)-DP and the PLD formalism cannot be used to handle the composition generically due to issues regarding worst-case distributions. The remainder of the paper will be dedicated to addressing this dilemma.

Main results

In this section, we develop a comprehensive solution towards tighter and more flexible mechanism-specific privacy accounting for (ϵ,δ)(\epsilon,\delta)-DP with a data-structure that allows natural composition.

We first patch the PLD formalism by generalizing the idea of worst-case pair (which may not exist) to a dominating pair of distributions and prove a number of useful properties.

We say that (P,Q)(P,Q) is a dominating pair of distributions for M\mathcal{M} (under neighboring relation ≃\simeq) if for all α≥0\alpha\geq 0Note that α≥1\alpha\geq 1 corresponds to the typical range of (ϵ,δ)(\epsilon,\delta)-DP, but the region for α<1\alpha<1 is important for composition and lossless conversions to other representations.

Unless otherwise specified, all subsequent results we present hold for any definitions of neighbors (including asymmetric ones such as add-only and remove-only, which will be useful later).

A dominating pair of distributions always exists: one can trivially take PP and QQ that have disjoint supports. What is somewhat surprising is the following

Any mechanism has a tightly dominating pair of distributions.

Proposition 8 is the direct consequence of the following result which fully characterizes what hockey-stick divergences and privacy profiles look like.

Moreover, one can explicitly construct such PP and QQ: PP has CDF 1+H∗(x−1)1+H^{*}(x-1) in [0,1)[0,1) and Q=Uniform()Q=\textup{Uniform}().

The proof, presented in Appendix C, makes use of the Fenchel duality of the privacy profile with respect to a tradeoff function and a characterization of the tradeoff function due to Dong et al. (2021, Proposition 2.2).

What makes the specific construction in Lemma 9 (hence Proposition 8) appealing is that even if the output space is complex, the resulting dominating pair of distributions are of univariate random variables defined on $$. This resolves a limitation of Koskela et al. (2020) that requires the mechanism to have either univariate or discrete outputs.

So far, we have shown the existence of a tightly dominating pairs for all mechanisms (Proposition 8), and provided a recipe for constructing such a dominating pair for any valid upper bounds of the privacy profile (Lemma 9 and Corollary 25 in Appendix C). Next we will provide two general primitives on how to construct dominating pairs for more complex mechanisms created by composition and privacy amplification by sampling.

If (P,Q)(P,Q) dominates M\mathcal{M} and (P′,Q′)(P^{\prime},Q^{\prime}) dominates M′\mathcal{M}^{\prime}M′\mathcal{M}^{\prime} can be adaptively chosen in that it could depend on the output of M\mathcal{M}, which requires sup⁡o∈Range(M)Hα(M′(D,o)∥M′(D′,o))≤Hα(P′∥Q′)\sup_{o\in\textrm{Range}(\mathcal{M})}H_{\alpha}(\mathcal{M}^{\prime}(D,o)\|\mathcal{M}^{\prime}(D^{\prime},o))\leq H_{\alpha}(P^{\prime}\|Q^{\prime}) for any value of oo. , then (P×P′,Q×Q′)(P\times P^{\prime},Q\times Q^{\prime}) dominates the composed mechanism (M,M′)(\mathcal{M},\mathcal{M}^{\prime}).

By induction, this theorem implies that if we construct the PLD using a dominating pair of distributions for each individual mechanism, then the composed PLD can be used to obtain a valid worst-case DP of the composed mechanism.

Next we present how we can construct a dominating pair of distributions (and datasets) for mechanisms under “privacy-amplification by sampling”. This is a powerful primitive that is used widely in differentially private ERM (Bassily et al., 2014), Bayesian learning (Wang et al., 2015) and deep learning (Abadi et al., 2016). We consider the following two schemes.

Denoted by SPoissonγS_{\textbf{Poisson}}^{\gamma}. SPoissonγS_{\textbf{Poisson}}^{\gamma} takes a dataset of arbitrary size and return a dataset by including each data point with probability 0≤γ≤10\leq\gamma\leq 1 i.i.d. at random.

Denoted by SSubsetγS_{\textbf{Subset}}^{\gamma}. SSubsetγS_{\textbf{Subset}}^{\gamma} takes a dataset with size nn or n−1n-1 and return a subset of size m<nm<n uniformly at random. We define γ:=m/n\gamma:=m/n as a short-hand. Note that here n,mn,m are public and γ:=m/n\gamma:=m/n even if (n−1)(n-1) is the sample size.

Somewhat unconventionally, the following theorem not only considers add/remove neighboring relation but also treat them separately, which turns out to be crucial in retaining a tight dominating pair with a closed-form expressionSee the appendix for a construction of dominating pairs of subsampled mechanisms under “Add/Remove” or “Replace” neighbors and more detailed discussion on the advantage of treating “Add” and “Remove” separately.. Our choice of choosing α≥0\alpha\geq 0 in Definition 7 ensures that for any mechanism (P,Q)(P,Q) dominates for add neighbors iff (Q,P)(Q,P) dominates for removal neighbors. {restatable}[]theoremamp Let M\mathcal{M} be a randomized algorithm.

If (P,Q)(P,Q) dominates M\mathcal{M} for add neighbors then (P,(1−γ)P+γQ)(P,(1-\gamma)P+\gamma Q) dominates M∘SPoisson\mathcal{M}\circ S_{\textbf{{Poisson}}} for add neighbors and ((1−γ)Q+γP,Q)((1-\gamma)Q+\gamma P,Q) dominates M∘SPoisson\mathcal{M}\circ S_{\textbf{Poisson}} for removal neighbors.

If (P,Q)(P,Q) dominates M\mathcal{M} for replacing neighbors, then (P,(1−γ)P+γQ)(P,(1-\gamma)P+\gamma Q) dominates M∘SSubset\mathcal{M}\circ S_{\textbf{{Subset}}} for add neighbors and ((1−γ)P+γQ,P)((1-\gamma)P+\gamma Q,P) dominates M∘SSubset\mathcal{M}\circ S_{\textbf{{Subset}}} for removal neighbors.

We can obtain the results for the standard "add/remove" for a kk-fold composition of subsampled mechanism by a pointwise maximum of the two:

where (P1,Q1)(P_{1},Q_{1}) is the “remove only” version of dominating pair and (P2,Q2)(P_{2},Q_{2}) is the “add only” version of dominating pair. Existing literature that uses PLD for Poisson-sampled mechanisms while taking (γP+(1−γ)Q,Q)(\gamma P+(1-\gamma)Q,Q) as an input are essentially providing privacy guarantees only for the “remove only” neighboring relationship. To the best of our knowledge, this is the first time a dominating pair of distributions under privacy-amplification by sampling is proven generically with an arbitrary base-mechanism M\mathcal{M} under the privacy-profile. The result, together with Theorem 10, allows PLD formalism to be applied to a broader family of mechanisms as well as their subsampled versions under adaptive composition.

2 Characteristic function representation

Having strengthened the foundation of the PLD formalism with “dominating distribution pairs” and two of its basic primitives, we can now put away RDP and its lossy (ϵ,δ)(\epsilon,\delta)-DP conversion, then conduct mechanism-specific accounting under (ϵ,δ)(\epsilon,\delta)-DP directly. Existing computational tools however, either require asymptotic approximation (Dong et al., 2021; Sommer et al., 2019), repeated convolution (Dong et al., 2021) or an a priori discretization of the output space (Koskela et al., 2021). This prompts us to ask:

“Can we compose mechanisms (with known dominating pairs) naturally just like in RDP? ”

To achieve this goal, we propose using the characteristic function of the privacy loss RV.

Let (P,Q)(P,Q) be a dominating pair of M\mathcal{M}, and p,qp,q be the probability density (or mass) function of P,QP,Q. The two characteristic functions that describes the PLD are

PLDs are probability measures on the real line, and these ϕ\phi-functions are Fourier transforms of these measures. We provide ϕ\phi-functions for basic mechanisms (see Table 2) and the discrete mechanisms with closed-form expression. For other intricate and continuous mechanisms (e.g., subsample variants), we provide efficient discretization methods with error analysis in Section E.

Moreover, the adaptive composition over multiple heterogeneous mechanisms remains as straightforward as that of the RDP.

Lossless conversion rules. The ϕ\phi-function can be losslessly converted back and forth with other representation such as the privacy-profile, tradeoff function, moment-generating function as well as the distribution function of the privacy loss RV. The conversion rule with prominent interest is the conversion to (ϵ,δ)(\epsilon,\delta)-DP. Specifically, for finding δ\delta as a function of ϵ\epsilon (i.e., privacy profile), we invoke the fourth equivalent definition of (ϵ,δ)(\epsilon,\delta)-DP in Lemma 5, which depends on the cumulative distribution function (CDF) of the privacy loss random variables LP,QL_{P,Q} and LQ,PL_{Q,P}. In Appendix B, we establish that these CDFs can be evaluated through an integration of ϕ\phi-functions via Levy’s formula.

The lossless conversions to other quantities are summarized in Figure 2 and we provide more details in Appendix B. Moreover, most of the conversion formula correspond to well-known transforms such as the Fourier transform, Laplace transform and its double-sided variant. Except for those involve RDP and hence Laplace transform, numerical algorithms for implementing these transforms are often available.

3 Analytical Fourier Accountant and numerical algorithms

We now propose our analytical Fourier Accoutant (AFA) in Algorithm 1, which is a combination of the lossless conversion rules and the analytical composition rule (Proposition 12). Given a sequence of mechanisms (can be varied) applied to the same dataset, the data structure tracks the log⁡\log characteristic function of each mechanism in a symbolic form. When there is a δ(ϵ)\delta(\epsilon) query, the accountant first constructs two analytical CDFs (with respect to the privacy loss RV LP,QL_{P,Q} and LQ,PL_{Q,P}) using Theorem 17 in Appendix B. Then the conversion to (ϵ,δ)(\epsilon,\delta)-DP is obtained using Lemma 5. For computing ϵ\epsilon given δ\delta, we use bisection to solve δM(ϵ)=δ\delta_{\mathcal{M}}(\epsilon)=\delta.

AFA vs FFT. Comparing to the FFT-accountant approach (Koskela et al., 2020, 2021; Koskela and Honkela, 2021), our approach decouples representation and numerical computation. We do not make any approximation when tracking the mechanisms, and use numerical computation only when converting to (ϵ,δ)(\epsilon,\delta)-DP. This avoids the need for setting appropriate discretization parameters of FFT ahead of time before knowing which sequence M1,...,MK\mathcal{M}_{1},...,\mathcal{M}_{K} we will receive.

Gaussian quadrature For fast and numerically stable evaluation of the CDF, we propose to use Gaussian quadrature which adaptively selects the intervals between interpolation points, rather than the FFT approach which requires equally spaced discretization. When we apply this approach to efficiently evaluate integral in computing CDFs, where the numerical error is often negligible, i.e., O(10−13)O(10^{-13}) for CDFs in our experiments, even if we only sample a few hundreds points. We defer a more detailed error analysis to Section E.

Experiments

In this section, we conduct numerical experiments to illustrate the behaviors of our analytical Fourier Accountant. We will have three sets of experiments.

(Gaussian mechanism) We compare the privacy cost over compositions between RDP accountant and AFA accountant on Gaussian mechanism.

(Compositions of discrete and continuous mechanisms) We evaluate the Fourier accountant variants and RDP accountant on heterogeneous mechanisms.

(Compositions over Poisson Subsample mechanisms) Comparison of our AFA with discretization-based ϕ\phi-function to the Fourier accountant (FA) and the RDP accountant.

In Exp1, we compare our AFA method to the RDP-based accoutant(Mironov, 2017) and the exact accountant from the analytical Gaussian mechanism (Balle and Wang, 2018). In Figure 3(a), we evaluate ϵ\epsilon with a fixed δ=10−4\delta=10^{-4} and use σ∈{50,100}\sigma\in\{50,100\}.

Observation: In Figure 3(a), our ϕ\phi function-based AFA exactly matches the result from the analytical Gaussian mechanism and strictly outperforms the RDP accountant in different privacy regimes.

Unlike the FA, our AFA allows an analytical composition over discrete and continuous mechanisms without sampling discretisation points over the privacy loss distribution, therefore achieves an exact privacy accountant. In Figure 3(b), we plot the δ(ϵ)\delta(\epsilon) over kk compositions given by FA and the moments accountant with RDP. We use n=105n=10^{5} discretisations points and L=10L=10 for FA. Our numerical result matches FA as n=105n=10^{5} is already a very accurate estimation as stated in (Koskela and Honkela, 2021).

There are cases when the closed-form ϕ\phi-functions do not exist. In Exp 3, we consider this problem by analyzing the Poisson Subsample Gaussian mechanism using our discretization-based approach (Algorithm 2) and “Double quadrature” in Appendix E. We discuss the dominating distribution, the construction on ϕ\phi-function, and its discretization in Appendix E. Figure 3(c) shows a comparsion of our AFA to the Fourier accountant method (Koskela et al., 2021) and the moments accountant method (Zhu and Wang, 2019). The sampling probability is γ=0.01\gamma=0.01, the noise scale is σ=2.0\sigma=2.0 and we evaluate ϵ\epsilon with δ=10−5\delta=10^{-5}. We use the tighter conversion rule from Balle et al. (2020) to convert the RDP back to (ϵ,δ)(\epsilon,\delta)-DP. The numerical issues induced by Gaussian quadrature are at most O(10−14)O(10^{-14}). Our lower and upper bounds of δ(ϵ)\delta(\epsilon) shown in Figure 3(c) already incorporate the error induced by discretization and ignoring the tail integral. We emphasize that the lower and upper bounds can match the bounds from FA by increasing sample points nn. Moreover, “Double quadrature” is our proposed efficient approximation method. We only unevenly sample 700700 points for each ϕ\phi-function and the result of the “Double quadrature” lines between our lower and upper bounds and matches the result from FA. Lastly, all Fourier accountant-based approaches improve over the RDP-based accountant.

Runtime and space analysis of AFA We first compare the time complexity and memory when we have analytical expressions of ϕ\phi-functions. In Exp 2, each mechanism admits an analytical ϕ\phi-function and can be represented in O(1)O(1) memory and evaluated in O(1)O(1) time. Therefore, the memory cost is O(#O(\# unique mechanisms). We analyze the runtime by decomposing it into the “composition” and “conversion to δ(ϵ)\delta(\epsilon)” separately.

Let kk denote the number of compositions. Regarding the runtime in the conversion to δ(ϵ)\delta(\epsilon) query, we apply Gaussian quadrature to compute the CDF, which requires O(1δerr1/α)O(\frac{1}{\delta_{err}^{1/\alpha}}) runtime complexity for the α\alphath order differentiable functions. The following composition runtime for Koskela and Honkela (2021) and Gopi et al. (2021) denote the runtime for discretization and convolution via FFT for a homogeneous composition of a mechanism for kk rounds. We use nn to denote the size of grid discretization in the FFT approximation.

Of course, this is by no means a fair discussion because the FFT approach computes the entire (discretized) PLD of the composed mechanisms together while AFA computes just one point. In terms of the approximation error, our method is the only approach that adapts to the structures of the ϕ\phi functions being integrated and achieves a faster convergence rate.

For the cases when the analytical expressions of ϕ\phi-functions do not exist (see EXP3), we need to approximate the ϕ\phi function too. Thus one single evaluation calls require O(n)O(n), and our method is slower than Koskela and Honkela (2021); Gopi et al. (2021), because we do not use FFT. The space and time complexity of the adaptive discretization approach via double quadrature is unclear, though very fast in practice.

Conclusion

In this paper, we studied the problem of privacy accounting with mechanism-specific analysis. We introduced the notion of dominating pair distributions, showed that each mechanism’s privacy profile is characterized by a tight dominating pair, and derived a number of useful algebra of dominating pairs including adaptive composition and amplification by sampling. These results strengthen the foundation of the PLD formalism and make it more widely applicable. Algorithmically, we proposed an analytical Fourier accountant that represents the characteristic functions of a dominating pair symbolically, which features RDP-like natural composition and allows us to leverage off-the-shelf numerical tools. Our experiments demonstrate the merits of AFA and suggest that it can flexibly and efficiently fit into every DP application.

This work also leaves several open questions. Among those

As Lemma 9 demonstrates, the construction of the domaining pair is severely constrained when trade-off functions are not clear. For example, characterizing high-dimension discrete Gaussian mechanism remains a tricky open problem.

Moreover, there are cases where our approach requires much more quadrature points: We apply Gaussian quadrature to compute the CDF of the privacy loss RV through integration over ϕ\phi-functions. If the composed ϕ\phi functions have large values at the tail of integral (e.g., near ∞\infty), we need to sample more quadrature points. We hope to solve this issue using numerical tools in the next step.

Acknowledgments

The work was partially supported by NSF CAREER Award # 2048091, Google Research Scholar Award and a gift from NEC Labs. The authors thank the anonymous reviewers for catching a subtle issue in defining dominating pairs for α≥1\alpha\geq 1 only in an earlier version of the paper. In the hindsight, defining α≥0\alpha\geq 0 is more natural and elegant. We thank Antti Koskela and Thomas Steinke for helpful discussion. We also thank Salil Vadhan for sharing a shorter alternative proof of the composition theorem based on a deep result due to Blackwell.

References

Appendix A Limits of RDP and the PLD formalism

In Section 3 we omitted a few examples when we talk about the limitation of Renyi Differential Privacy (RDP) in describing common mechanisms. Specifically, we commented that there are mechanisms where RDP either does not exist or does not exist for most order α\alpha that implies stronger privacy guarantees.

In smooth sensitivity-based query release [Nissim et al., 2007], one perturbs the output with a noise with a data-dependent variance. Consider, for example, P=N(0,σ12),Q=N(0,σ22)P=\mathcal{N}(0,\sigma_{1}^{2}),Q=\mathcal{N}(0,\sigma_{2}^{2}), then the Renyi-divergence Dα(P∥Q)D_{\alpha}(P\|Q) is undefined for all α\alpha such that ασ22+(1−α)σ12<0\alpha\sigma_{2}^{2}+(1-\alpha)\sigma_{1}^{2}<0. Specifically, if σ12=2,σ22=1\sigma_{1}^{2}=2,\sigma_{2}^{2}=1, then Dα(P∥Q)=+∞D_{\alpha}(P\|Q)=+\infty for all α≥2\alpha\geq 2.

These examples demonstrate the deficiency of RDP in analyzing flexible algorithm design tools such as the proposed-test-release [Dwork and Lei, 2009]), which typically introduces a heavier-tailed privacy-loss distributions for which the moment generating function is not defined.

On the contrary, the privacy-profile is well-defined in both examples and imply nontrivial (ϵ,δ)(\epsilon,\delta)-DP. The characteristic function exists no matter how heavy-tailed the distribution of the privacy loss random variable is so it naturally handles the second example. In Section D.2, we describe how we can handle a probability mass at +inf⁡+\inf in our approach.

We also omitted an example for which there are no single pair of neighboring datasets that attain the argmax might be different in different regions of the privacy profile.

Appendix B Conversion rules between functional representations

In this section we give the details of conversions between various functional representations of the privacy loss distribution (of a dominating pair of distributions). These conversions are summarized in Figure 2 and repeated here.

Before we proceed to the details of all these arrows, we would like to emphasize a important distinction:

These conversions rules are not about converting between different DP definitions, but rather converting between different representations of the privacy loss r.v. under the same DP definition — in our case, (ϵ,δ)(\epsilon,\delta)-DP.

More precisely, we mean that the conversion from RDP to DP (leftmost grey arrow in the figure, which we will talk about in details in Section F) is qualitatively different from the conversion from Renyi divergence to Hockey-Stick divergence (red arrow labeled “Post’s inversion formula”).

Modulo some detailssuch as the symmetry of P=M(D)P=M(D) and Q=M(D′)Q=M(D^{\prime}) and the domains of α\alpha and ε\varepsilon., a conversion from RDP to DP is about finding function δ(⋅)\delta(\cdot) that upper bounds the Hockey-stick divergence for all pairs of neighboring datasets using an RDP function ϵ(⋅)\epsilon(\cdot).

In contrast, a conversion from Renyi divergence to hockey-stick divergence is about a given pair of P,QP,Q, and the input function ϵ(α)\epsilon(\alpha) is expected to be the exact Renyi-divergence of order α\alpha. The goal of the divergence-to-divergence conversion rule is to find a different divergence of the same pair of distribuiton P,QP,Q, i.e.

Both conversions aim to compute a function δ\delta from a function ϵ\epsilon. The seemingly harmless distinction of inequalities and identities is actually the devil in the details. It has two major consequences

When applied to privacy, divergence conversion requires a dominating pair of distributions as a prerequisite, which may or may not be a tight dominating pair. In the figure, results that require a dominating pair are enclosed in the light yellow region labeled “When a dominating pair (P,Q)(P,Q) is available”.

DP conversion is lossy even when converting the statement “standard randomized response is 1-zCDP” to (ε,δ)(\varepsilon,\delta)-DP, as demonstrated by Figure 1. On the other hand, divergence conversion is generically lossless (under some regularity condition), though numerical issues often arise since the inverse Laplace transform is involved Epstein and Schotland .

In alignment with the focus of this paper, in this section we focus on the light yellow region assuming (P,Q)(P,Q) is a dominating pair. DP conversion is discussed in more detail in Appendix F.

We recall some definitions. Let P,QP,Q be two probability distributions on the same measurable space. For α>0\alpha>0, their hockey-stick divergence is defined as

For α>1\alpha>1, their Renyi divergence is defined as

Let FF and GG be the CDFs of the privacy loss random variables. Namely,

The corresponding densities (if exist) will be F′F^{\prime} and G′G^{\prime}. The corresponding characteristic functions (ch.f.) are the Fourier transforms of the two measures, i.e.

Trade-off functions are T[P,Q]T[P,Q] and T[Q,P]T[Q,P], which map the type I error to the corresponding minimal type II error in testing problems PP vs QQ and QQ vs PP respectively.

From these definitions we see that all five functional representations actually require two functions for each pair of distributions. Below we summarize how one determines the other.

Hα(Q∥P)=αHα−1(P∥Q)−α+1H_{\alpha}(Q\|P)=\alpha H_{\alpha^{-1}}(P\|Q)-\alpha+1, which is stated as Lemma 45 in Appendix G.

For α∈(0,1)\alpha\in(0,1), Dα(Q∥P)=α1−αD1−α(P∥Q).\mathcal{D}_{\alpha}(Q\|P)=\frac{\alpha}{1-\alpha}\mathcal{D}_{1-\alpha}(P\|Q). See Proposition 2 of Van Erven and Harremos .

Using the above formula, ϕ′\phi^{\prime} can be obtained by the following process: ϕ→Levy’s formulaF→G→ϕ′\phi\xrightarrow{\text{Levy's formula}}F\to G\to\phi^{\prime}.

If T[P,Q]=fT[P,Q]=f then T[Q,P]=f−1T[Q,P]=f^{-1}. See Lemma A.2 of Dong et al.

We now consider the conversion from the ϕ\phi-function to CDFs using the following Levy’s theorem.

Let ϕ\phi be the ch.f. of the distribution function FF and a<ba<b, then

Note that lim⁡T→∞,α→∞∫−∞∞e−iαaiαϕ(α)dα=π\lim_{T\to\infty,\alpha\to\infty}\int_{-\infty}^{\infty}\frac{e^{-i\alpha a}}{i\alpha}\phi(\alpha)d\alpha=\pi. To compute the CDF of the privacy loss RV LP,QL_{P,Q} at bb, we can substitude aa with −∞-\infty and obtain the following result.

The characteristic functions are determined by the trade-off function ff via the following formula:

Appendix C Omitted proofs in the main body

By Lemma 19, Hα(P∥Q)H_{\alpha}(P\|Q) can be related to f=T[Q,P]f=T[Q,P] as follows:

where ε\varepsilon ranges over the whole real line. By a simple change of variable, we see that h∈Hh\in\mathcal{H} iff there exists f∈Ff\in\mathcal{F} such that h(α)=1+f∗(−α)h(\alpha)=1+f^{*}(-\alpha), or equivalently,

By Proposition 2.2 of Dong et al. , we know

Claim: Convex conjugacy is a bijection between F\mathcal{F} and G\mathcal{G}.

With y1<y2y_{1}<y_{2}, we have y1x−f(x)⩽y2x−f(x)y_{1}x-f(x)\leqslant y_{2}x-f(x). Taking supremum over x⩾0x\geqslant 0, we have f∗(y1)⩽f∗(y2)f^{*}(y_{1})\leqslant f^{*}(y_{2}). This shows f∗f^{*} is monotone and finite on (−∞,0](-\infty,0]. Let

Since f⩽If\leqslant I, we conclude that f∗(x)⩾I∗(x)=max⁡{x,−1}f^{*}(x)\geqslant I^{*}(x)=\max\{x,-1\}.

Now suppose g∈Gg\in\mathcal{G}. Similarly, gg is extended to be +∞+\infty in (0,+∞)(0,+\infty). g∗(y)=sup⁡x⩽0yx−g(x)g^{*}(y)=\sup_{x\leqslant 0}yx-g(x) and g∗(y)=+∞g^{*}(y)=+\infty if y<0y<0. By a similar argument, g∗g^{*} is increasing. Since g⩾I∗g\geqslant I^{*}, we have g∗⩽I∗∗=Ig^{*}\leqslant I^{**}=I. That is, g∗(x)⩽1−xg^{*}(x)\leqslant 1-x. Let JJ be zero on (−∞,0](-\infty,0] and infinity otherwise. We have J∗J^{*} is zero on [0,+∞)[0,+\infty) and infinity otherwise. We know that g(0)=0g(0)=0 and gg is increasing so g⩽Jg\leqslant J. Hence g∗⩾J∗g^{*}\geqslant J^{*}, i.e. g∗(y)⩾0g^{*}(y)\geqslant 0 if y⩾0y\geqslant 0. This justifies that g∗(y)∈g^{*}(y)\in if y∈y\in and g∗(y)=0g^{*}(y)=0 if y⩾1y\geqslant 1. ∎

Now with the help of this claim, H\mathcal{H} and G\mathcal{G} are simply related: h∈Hh\in\mathcal{H} iff α↦h(−α)−1\alpha\mapsto h(-\alpha)-1 is in G\mathcal{G}. Therefore we can get the description of H\mathcal{H}. The proof of the first statement is complete.

Explicit construction. Next we derive the specific choice of P,QP,Q as stated works using the result from Dong et al. .

Continuing with the notations in the proof above, when HH satisfies the conditions, i.e. H∈HH\in\mathcal{H}, we know there is a f∈Ff\in\mathcal{F} such that H(α)=1+f∗(−α)H(\alpha)=1+f^{*}(-\alpha). Let g(α)=H(−α)−1g(\alpha)=H(-\alpha)-1 and we will have g=f∗g=f^{*} and hence f=g∗f=g^{*} as ff is convex. Therefore,

From Dong et al. [2021, Proposition 2.2], we know that f=T[Q,P]f=T[Q,P] where Q=UQ=U is the uniform distribution over $andandP$ has CDF

Plugging in f(x)=1+H∗(−x)f(x)=1+H^{*}(-x), we have the CDF of PP being

Note that when the infimum of HH is positive, H∗(1−x)<0H^{*}(1-x)<0 and PP has an atom at 1. This completes the proof. ∎

We know that δM∈H\delta_{\mathcal{M}}\in\mathcal{H}. It suffices to show that

C.2 Composition theorem of dominating pairs

Let P,QP,Q be a dominating pair distributions for M\mathcal{M} and P′,Q′P^{\prime},Q^{\prime} be a dominating pair distributions for M′\mathcal{M}^{\prime}M′\mathcal{M}^{\prime} can be adaptively chosen in that it could depend on the output of M\mathcal{M}, which requires sup⁡o∈Range(M)Heϵ(M′(D,o)∥M′(D′,o))≤Heϵ(P′∥Q′)\sup_{o\in\textrm{Range}(\mathcal{M})}H_{e^{\epsilon}}(\mathcal{M}^{\prime}(D,o)\|\mathcal{M}^{\prime}(D^{\prime},o))\leq H_{e^{\epsilon}}(P^{\prime}\|Q^{\prime}) for any value of oo. , then (P×P′,Q×Q′)(P\times P^{\prime},Q\times Q^{\prime}) is a dominating pair distributions for the composed mechanism (M,M′)(\mathcal{M},\mathcal{M}^{\prime}).

Integration with respect to a dominating measure of both PP and QQ and p,qp,q are the densities (Radon-Nikodym derivatives) for the probability measures P,QP,Q respectively.

Our goal is to show H_{\alpha}\big{(}M(D),M(D^{\prime})\big{)}\leqslant H_{\alpha}\big{(}P\times R,Q\times S\big{)}. We break it into the following two parts.

C.3 Privacy-amplification for dominating pairs

Recall we stated the following theorem in the main body: \amp*

The proof we present here is written in the language of trade-off functions [Dong et al., 2021]. However, with Lemma 19, everything can be conveniently translated to the language of (ε,δ)(\varepsilon,\delta). We made the choice because some parameters have slightly easier forms in the language of trade-off functions.

We begin with a lemma that cut our workload in half — dominance for removal neighbors is actually equivalent to the dominance of add neighbors, so it suffices to show either one of them.

(P,Q)(P,Q) dominates mechanism M\mathcal{M} for add neighbors.

(Q,P)(Q,P) dominates mechanism M\mathcal{M} for removal neighbors.

T[M(S),M(S∪{x})]⩾T[P,Q]T[M(S),M(S\cup\{x\})]\geqslant T[P,Q] for any dataset SS and data entry xx.

Recall that Lemma 19 says for any α>0\alpha>0,

Here (∗)(*) uses the fact that T[P,Q]T[P,Q] and T[Q,P]T[Q,P] are inverse functions of each other. ∎

The next lemma plays the central role in both parts of Footnote 6. Suppose we have probability distributions P1,…,PnP_{1},\ldots,P_{n} and Q1,…,QnQ_{1},\ldots,Q_{n}, all on the same domain and let Pˉ=∑i=1npiPi\bar{P}=\sum_{i=1}^{n}p_{i}P_{i} and Qˉ=∑i=1npiQi\bar{Q}=\sum_{i=1}^{n}p_{i}Q_{i} be the corresponding mixture distributions with the same coefficients p1,…,pnp_{1},\ldots,p_{n} where ∑i=1npi=1\sum_{i=1}^{n}p_{i}=1 and all pi⩾0p_{i}\geqslant 0. Then we have

If T[Pi,Qi]⩾T[P,Q]T[P_{i},Q_{i}]\geqslant T[P,Q] for all i∈[n]i\in[n], then for any γ∈\gamma\in, we have

Expanding the convex combination, we have

The last inequality follows from the monotonicity of trade-off functions. Hence (3) is verified and the proof is complete. ∎

where S={x1,…,xn−1}S=\{x_{1},\ldots,x_{n-1}\} and S′=S∪{xn}S^{\prime}=S\cup\{x_{n}\}. The outcome of repeated coin flips can be labeled as b⃗∈{0,1}n−1\vec{b}\in\{0,1\}^{n-1}. We use Sb⃗S_{\vec{b}} to denote the corresponding subset of SS and Sb⃗0′S_{\vec{b}0}^{\prime} or Sb⃗1′S_{\vec{b}1}^{\prime} for that of S′S^{\prime}, depending on whether xnx_{n} is included. Note that Sb⃗0′=Sb⃗S_{\vec{b}0}^{\prime}=S_{\vec{b}}. Furthermore, let pb⃗p_{\vec{b}} be the probability of the outcome b⃗\vec{b} (recall that each coin is a Bernoulli γ\gamma random variable). In fact, pb⃗=∏i=1n−1γbi(1−γ)1−bip_{\vec{b}}=\prod_{i=1}^{n-1}\gamma^{b_{i}}(1-\gamma)^{1-b_{i}} but we will not use it.

Both M(SPoisson)M(S_{\textbf{{Poisson}}}) and M(SPoisson′)M(S^{\prime}_{\textbf{{Poisson}}}) are mixtures. We have the following decompositions

Now we are ready to use Lemma 28, with the family of PiP_{i} being M(Sb⃗)M(S_{\vec{b}}) and the family of QiQ_{i} being M(Sb⃗1′)M(S_{\vec{b}1}^{\prime}). By the calculation above, M(SPoisson)M(S_{\textbf{{Poisson}}}) will be the Pˉ\bar{P} in Lemma 28 and M(SPoisson′)M(S^{\prime}_{\textbf{{Poisson}}}) is exactly the (1−γ)Pˉ+γQˉ(1-\gamma)\bar{P}+\gamma\bar{Q} in Lemma 28. We still need to verify the condition in Lemma 28: since (P,Q)(P,Q) dominates MM for add neighbors, for each b⃗∈{0,1}n−1\vec{b}\in\{0,1\}^{n-1} we have

Therefore, Lemma 28 gives us (4), which is exactly what we want. ∎

where S={x1,…,xn−1}S=\{x_{1},\ldots,x_{n-1}\} and S′=S∪{xn}S^{\prime}=S\cup\{x_{n}\}.

Below we use notations such as SI,SJ∪{n}S_{I},S_{J\cup\{n\}} to denote the (obvious) subsets of SS where I,J⊆[n−1]I,J\subseteq[n-1] and ∣I∣=m,∣J∣=m−1|I|=m,|J|=m-1 consistently. Both M(SSubset)M(S_{\textbf{{Subset}}}) and M(SSubset′)M(S^{\prime}_{\textbf{{Subset}}}) are mixtures. We have the following decompositions, where the latter is further decomposed into two parts depending on whether nn is selected.

It’s not in a ready shape to use Lemma 28. We need to further break the summands by carefully creating copies of the components. Let

That is, we create mm copies of each subset of [n−1][n-1] of cardinality mm and collect as I\mathcal{I}; create n−mn-m copies of each subset of [n][n] of cardinality mm that includes nn and collect as J\mathcal{J}. Now we claim two things

There is a bijection F:I→JF:\mathcal{I}\to\mathcal{J} such that F(I)F(I) differs from II by one element for all I∈II\in\mathcal{I}.

Let pI=1(n−1m)mp_{I}=\frac{1}{\binom{n-1}{m}m} for all I∈II\in\mathcal{I} and γ=mn\gamma=\frac{m}{n}. Then

Now we are ready to use Lemma 28: the collection {Pi}\{P_{i}\} is {M(SI)}\{M(S_{I})\} and {Qi}\{Q_{i}\} is {M(SF(I))\{M(S_{F(I)}). The conclusion is exactly (5).

Next we turn our attention to the proofs of the two claims.

For claim 2, (8) is easier and we only show (9). Since we have created copies, by splitting the summands of (7), we have

which are elementary combination identities. ∎

Renyi-DP and moments accountant are closely related concepts that are often considered identical. However, our results suggest that there is a distinction. The above pair of P,QP,Q we constructed are not necessarily attaining the Renyi-DP bounds (see a concrete example from Zhu and Wang , but as moments accountant focuses only on computing (ϵ,δ)(\epsilon,\delta)-DP, it suffices use the Renyi-divergence functions Rα(P∥Q)R_{\alpha}(P\|Q). Specifically, this closes the constant gap between the moments accountant for subsampled mechanisms and Poisson sampled mechanisms.

C.4 Other schemes in privacy-amplification for dominating pairs

Theorem 6 provides new results and a novel composition algorithm for the popular Poisson sampling under “add/remove” neighboring relations by treating “add” and “remove” separately. It also shows that the same result hold in a not-so-typical but practically relevant scheme of the random-subset sampled mechanism under the “add / remove” neighboring relation for the case when the base mechanism’s privacy is defined by the “replace” neighboring relation.

To avoid any confusion, for all practical purposes, the result in Theorem 6 suffices because we can always compose “Add” or “Remove” separately and only take the pointwise maximum in the end, while only incurring twice as much computation, but the results in this section are interesting from a purely scientific perspective and they are included for the completeness in our understanding of the problem.

If (P,Q)(P,Q) is a dominating pair of M\mathcal{M} under “Add/remove” Relation, then

under the “Add/Remove” relation. Similarly, if (P,Q)(P,Q) is a dominating pair of M\mathcal{M} under “Replace” relation for dataset of size γn\gamma n, then

under “Replace” relation for dataset of size nn.

We plot Hα((1−γ)Q+γP,Q)H_{\alpha}((1-\gamma)Q+\gamma P,Q) and Hα(P,(1−γ)P+γQ)H_{\alpha}(P,(1-\gamma)P+\gamma Q) for δM∘SPoisson(α)\delta_{\mathcal{M}\circ S_{\textbf{Poisson}}}(\alpha) in Figure 4(a).

1𝛾𝑄𝛾𝑃𝑄H_{\alpha}((1-\gamma)Q+\gamma P,Q) dominates the region α≥1\alpha\geq 1 and Hα(P,(1−γ)P+γQ)H_{\alpha}(P,(1-\gamma)P+\gamma Q) dominates the region α<1\alpha<1. The proof of the above result requires the use of the following general result that establishes the relationship between pairs that dominate only one half of the range for α\alpha and those that dominate the other half.

Let M\mathcal{M} be a mechanism and ≃\simeq be a symmetric neighboring relationships , i.e., D≃D′⇔D≃D′D\simeq D^{\prime}\Leftrightarrow D\simeq D^{\prime}. Then

If (P,Q)(P,Q) is a dominating pair of M\mathcal{M}, then (Q,P)(Q,P) is also a dominating pair of M\mathcal{M},

If sup⁡D≃D′Hα(M(D)∥M(D′))≤min⁡{Hα(P∥Q),Hα(Q∥P)} for all α≥1\sup_{D\simeq D^{\prime}}H_{\alpha}(\mathcal{M}(D)\|\mathcal{M}(D^{\prime}))\leq\min\{H_{\alpha}(P\|Q),H_{\alpha}(Q\|P)\}\text{ for all }\alpha\geq 1, then (P,Q)(P,Q) and (Q,P)(Q,P) are both dominating pairs of M\mathcal{M}.

The following two statements are equivalent.

sup⁡D≃D′Hα(M(D)∥M(D′))≤Hα(P∥Q) for all α≥1.\sup_{D\simeq D^{\prime}}H_{\alpha}(\mathcal{M}(D)\|\mathcal{M}(D^{\prime}))\leq H_{\alpha}(P\|Q)\text{ for all }\alpha\geq 1.

sup⁡D≃D′Hα(M(D)∥M(D′))≤Hα(Q∥P) for all 0<α≤1.\sup_{D\simeq D^{\prime}}H_{\alpha}(\mathcal{M}(D)\|\mathcal{M}(D^{\prime}))\leq H_{\alpha}(Q\|P)\text{ for all }0<\alpha\leq 1.

First notice that the first and second statements are both implied by the third. For the first statement, notice that by the definition of the dominating pair, the upper bound applies for all α>0\alpha>0. Thus by applying (a)⇒(b)(a)\Rightarrow(b) and (b)⇒(a)(b)\Rightarrow(a) for (P,Q)(P,Q), we get that (Q,P)(Q,P) is also a dominating pair. For the second statement, we apply (a)⇒(b)(a)\Rightarrow(b) for both (P,Q)(P,Q) and (Q,P)(Q,P), then the result extends the bound to the full range.

It remains to prove the third statement. For any pair of neighboring D,D′D,D^{\prime} and 0<α≤10<\alpha\leq 1, by Lemma 45.

where the inequality uses the fact that α−1≥1\alpha^{-1}\geq 1, ≃\simeq is symmetric, and that (P,Q)(P,Q) dominates for order ≥1\geq 1. The converse follows the same argument but starts with α>1\alpha>1. ∎

We first prove the case for α≥1\alpha\geq 1. By Theorem 8 of [Balle et al., 2018] (Standard amplification by sampling bound in DP), we know that for any D≃add/removeD′D\simeq_{\textbf{add/remove}}D^{\prime} and all ϵ≥0\epsilon\geq 0 (thus α≥1\alpha\geq 1!)

where the inequality in the second line is due to that (P,Q)(P,Q) is a dominating pair of M\mathcal{M}.

The same proof works line by line for the random subset sampling when we use Theorem 9 of [Balle et al., 2018] instead and adopt the D≃replaceD′D\simeq_{\textbf{replace}}D^{\prime} neighboring relationship.

Next we prove the statement for 0<α<10<\alpha<1. Check that we can apply Lemma 30 because both ≃replace\simeq_{\textbf{replace}} and ≃add/remove\simeq_{\textbf{add/remove}} are symmetric. By the third statement of Lemma 30, (Q,(1−γ)Q+γP)(Q,(1-\gamma)Q+\gamma P) dominates the subsampled mechanism for 0<α<10<\alpha<1. Also by the first statement of Lemma 30 we know that (Q,P)(Q,P) is also a dominating pair for M\mathcal{M}, thus by repeating the same argument, we get that (P,(1−γ)P+γQ)(P,(1-\gamma)P+\gamma Q) also dominates the subsampled mechanism for 0<α<10<\alpha<1, which completes the proof. ∎

The above discussion characterizes the tightThey are tight for the reason we described in the Remark on the “Exact optimality of the bounds” above. upper bound of the privacy profile of subsampled mechanisms using two (ordered) pairs of distributions, rather than just one pair. This is insufficient for us to apply the composition theorem because the region between α>1\alpha>1 and α<1\alpha<1 in some sense “mixes with each other” during composition, as we have clearly seen from the proof of Theorem 10. What we do know is that neither ((1−γ)Q+γP,Q)((1-\gamma)Q+\gamma P,Q) nor (Q,(1−γ)Q+γP)(Q,(1-\gamma)Q+\gamma P) is a dominating pair for the sampled mechanism under “Add/Remove” or “Replace” neighboring relation. This is the reason why we proposed the more elegant approach for handling “add” and “remove” separately in the first place.

For completeness, and to also handle the case when we want the “replace one” neighboring relation for M∘SSubset\mathcal{M}\circ S_{\textbf{Subset}}, we state the following result which constructs an explicit but not-so-clean dominating pair.

where \big{[}\cdot\big{]}^{*} denotes the Fenchel conjugate of a function.

The proof, which we omit, is a direct application of Proposition 29 with the generic approach of Proposition 9 for constructing the dominating pair.

Appendix D The characteristic function of basic mechanisms

We now derive ϕ\phi-function for three basic mechanisms: randomized response, Laplace and Gaussian mechanism. The results and their dominating distributions are summarized in Table 2.

Let ff be a predicate, i.e., f:D∗→{0,1}f:\mathcal{D}^{*}\to\{0,1\}. The Randomized Response mechanism for ff is defined as

The ϕ\phi function of Randomized Response mechanism M\mathcal{M} with the parameter pp satisfies ϕM(α)=ϕ\textquoterightM(α)=peαilog⁡(p1−p)+(1−p)eαilog⁡(1−pp).\phi_{\mathcal{M}}(\alpha)=\phi\textquoteright_{\mathcal{M}}(\alpha)=pe^{\alpha i\log(\frac{p}{1-p})}+(1-p)e^{\alpha i\log(\frac{1-p}{p}).}

First of all, the dominating pair will be:

Then, follow the definition of ϕ\phi-function, we have

For Laplace and Gaussian mechanisms, we assume that f:D∗→Rf:\mathcal{D}^{*}\to\mathcal{R} is a function of sensitivity 1.

we consider the dominating distribution P(o)=12λexp⁡(−∣o∣/λ)P(o)=\frac{1}{2\lambda}\exp(-|o|/\lambda) and Q(o)=12λexp⁡(−∣o−1∣/λ)Q(o)=\frac{1}{2\lambda}\exp(-|o-1|/\lambda). We can show that the dominating pair for α≥1\alpha\geq 1 also dominates 0<α<10<\alpha<1 using the third statement of Lemma 30 and the symmetry of Laplace mechanism. To calcuate the characteristic function ϕM\phi_{\mathcal{M}}, we define the privacy loss RV LP,QL_{P,Q} as follows

The characteristic function ϕM(α)\phi_{\mathcal{M}}(\alpha) is calculated as follows

Similarly, for ϕM′\phi^{\prime}_{\mathcal{M}}, we define privacy loss RV LQ,PL_{Q,P} as follows

Let Gaussian mechanism is defined as M(D)=f(D)+N(0,σ2)\mathcal{M}(D)=f(D)+\mathcal{N}(0,\sigma^{2}). For any α∈R\alpha\in\mathcal{R} and σ>0\sigma>0, we have ϕM(α)=ϕ\textquoterightM(α)=e−12σ2(α2−iα).\phi_{\mathcal{M}}(\alpha)=\phi\textquoteright_{\mathcal{M}}(\alpha)=e^{\frac{-1}{2\sigma^{2}}(\alpha^{2}-i\alpha)}.

For Gaussian mechanism, no matter what the dimensionality of the output sapce is, the dominating distributions will always be 1D, and that extends to subsampled-gaussian as well. In the proof, we consider the worst-case pair p(o)=12πσ2e−(o−1)22σ2,q(o)=12πσ2e−o22σ2p(o)=\frac{1}{\sqrt{2\pi\sigma^{2}}}e^{-\frac{(o-1)^{2}}{2\sigma^{2}}},q(o)=\frac{1}{\sqrt{2\pi\sigma^{2}}}e^{-\frac{o^{2}}{2\sigma^{2}}}.

Follow the definion of privacy loss RV, we have LP,Q(o)=2o−12σ2L_{P,Q}(o)=\frac{2o-1}{2\sigma^{2}} and LQ,P(o)=1−2o2σ2L_{Q,P}(o)=\frac{1-2o}{2\sigma^{2}}. Then we have

Besides basic mechanisms, all mechanisms with discrete outputs admit an analytical ϕ\phi function by definition.

Let p,qp,q be the probability mass function induced by M\mathcal{M},

This function can be represented by two vectors that lists the probability masses at oo from pp and qq. When evaluating log⁡ϕM(α)\log\phi_{\mathcal{M}}(\alpha) at a given α\alpha, we could use the log-sum-exp trick to improve the numerical stability. Overall the space and time in representing these functions are linear in the size of the output space.

Provided that the worst-case pair of distributions are known, this procedure allows us to compose over exponential mechanisms [McSherry and Talwar, 2007], Report-noisy-max, as well as other complex mechanisms that arise out of post-processing of continuous output mechanisms, e.g., NoisyScreening [Zhu et al., 2020] that had been used as a practical alternative to sparse vector techniques.

D.2 Handling probability mass at ∞\infty

One of the motivations of the work is for us to handle the situations where there is a non-zero probability mass where the privacy loss r.v. is at infinity. This naturally happens in propose-test-rease-style algorithm [Dwork and Lei, 2009] where we first construct a differentially private upper bound of the local sensitivity (or other data-dependent quantities) then calibrate noise according to the local sensitivity. The issue is that there is always a non-zero probability where the upper bound is not valid. Standard (ϵ,δ)(\epsilon,\delta)-DP handles this case at ease, but modern techniques such as RDP struggles as such a mechanism does not satisfy RDP for any α>0\alpha>0.

In this case, Lemma 5 can be more explicitly rewritten into.

Let D,D′D,D^{\prime} be the worst-case pair of datasets for M\mathcal{M}, and P=M(D),Q=M(D′)P=\mathcal{M}(D),Q=\mathcal{M}(D^{\prime}) then

Let LP,Q′(1),...,LP,Q′(k)L_{P,Q^{\prime}}^{(1)},...,L_{P,Q^{\prime}}^{(k)} be the privacy loss R.V. of mechanism M1,...,Mk\mathcal{M}_{1},...,\mathcal{M}_{k} (LQ′,P(i)L_{Q^{\prime},P}^{(i)} is defined analogously). Then, the δP(ϵ)\delta_{P}(\epsilon) and δQ(ϵ)\delta_{Q}(\epsilon) of the composed mechansims are as follow:

The above essentially says that we can handle the cases with ∞\infty separately, and compose the characteristic function of the sub-probability measure that excludes ∞\infty.

Appendix E ϕitalic-ϕ\phi-function with discretization and experimental details

There are cases when the closed-form ϕ\phi-functions do not exist. For example, in the subsample mechanisms, the privacy loss distribution is complicated and continuous, suggesting that we cannot derive an exact closed-form expression naively. In this section, we first provide a discretization-based solution and analyze its error bound. Later, we develop an efficient approximation method, “Double quadrature”.

The main challenge in approximating ϕ\phi-function for continuous mechanisms is that an upper/lower bound of ϕ\phi-function does not necessarily attain the upper/lower bound of privacy costs. Motivated by recent work [Koskela et al., 2021] that truncates the privacy loss R.V. range to discretize subsample Gaussian mechanism, we consider discretizing the output domain. Our choice on the output domain instead of the privacy loss R.V. range is because many recent advances in communication-efficient private learning require the output space to be discrete. Note that the output domain is the output domain of the dominating pair. There always exists a one-dimension tightly dominating pair for any mechanisms as we have shown in the main results. The approximation procedure given in Algorithm 2 takes as input a truncated output domain [−S,S]⊂O[-S,S]\subset\mathcal{O}, the partition parameter NN and the pdf measure of two privacy loss random variables. The algorithm first introduces the grid approximation of privacy loss RVs using the following definition.

Given NN equidistant points o1,...,oNo_{1},...,o_{N} over the interval [−S,S][-S,S], We define LP,Q−(oj)=min⁡t∈[j−1,j]LP,Q(ot) and LP,Q+(oj)=max⁡t∈[j−1,j]LP,Q(ot)L_{P,Q}^{-}(o_{j})=\min_{t\in[j-1,j]}L_{P,Q}(o_{t})\text{ and }L_{P,Q}^{+}(o_{j})=\max_{t\in[j-1,j]}L_{P,Q}(o_{t}) as the grid approximation of the original privacy loss R.V., where LP,Q(ot)L_{P,Q}(o_{t}) denotes the density of LP,QL_{P,Q} when evaluated at oto_{t}.

LQ,P−(oj)L_{Q,P}^{-}(o_{j}) and LQ,P+(oj)L_{Q,P}^{+}(o_{j}) are defined analogously. Next, the algorithm constructs ϕ\phi-function approximations ϕMP−\phi_{\mathcal{M}_{P}}^{-} and ϕMQ−\phi_{\mathcal{M}_{Q}}^{-} using similar ideas as that in Definition 35, except that we replace privacy loss R.V. with their approximation alternatives. The idea behinds the approximation is to construct Riemann sum style lower and upper bounds of δM(ϵ)\delta_{\mathcal{M}}(\epsilon) using sampled points in the output interval. We formalize the idea using the following lemma.

Consider the truncation parameter goes to infinity, i.e., S→∞,S\to\infty, and privacy loss random variable LP,QL_{P,Q} and LQ,PL_{Q,P} is a monotonical function of the output random variable oo. We have for all ϵ>0\epsilon>0, the privacy profile δ(ϵ)\delta(\epsilon) of a continuous mechanism M\mathcal{M} is bounded by

where δMmin(ϵ)\delta_{\mathcal{M}_{min}}(\epsilon) is constructed using Algorithm 1 with(ϕMP−,ϕMQ−)(\phi^{-}_{\mathcal{M}_{P}},\phi^{-}_{\mathcal{M}_{Q}}) pair and δMmax(ϵ)\delta_{\mathcal{M}_{max}}(\epsilon) is constructed using (ϕMP+,ϕMQ+)(\phi^{+}_{\mathcal{M}_{P}},\phi^{+}_{\mathcal{M}_{Q}}) pair.

The proof sketch is first to show that the CDF FLP,Q(ϵ)F_{L_{P,Q}}(\epsilon) is always smaller bounded by FLP,Q−(ϵ)F_{L_{P,Q}^{-}}(\epsilon) when the monotonical condition is satisfied. Then we rewrite the privacy profile into the CDF forms and demonstrate that a larger CDF leads to a smaller δ\delta for any ϵ>0\epsilon>0.

Note that the indicator function preserves the monotonic property, which implies that we can lower bound FLP,Q(ϵ)F_{L_{P,Q}}(\epsilon) using the left Riemann sum. Analogously, the CDF FLQ,P(−ϵ)F_{L_{Q,P}}(-\epsilon) is smaller than FLQ,P−(−ϵ)F_{L^{-}_{Q,P}}(-\epsilon) for all ϵ>0\epsilon>0. Therefore, we have

The following corollary allows us to upper and lower bound privacy cost over composition.

Consider a simple composition of M1\mathcal{M}_{1} and M2\mathcal{M}_{2} on datasets DD and D′D^{\prime}, we have

We overload the LP,QL_{P,Q} to denote the privacy R.V. over composition. The lower bound of the CDF FLP,QF_{L_{P,Q}} is given as follows:

Gaussian quadrature: We apply Gaussian quadrature to efficiently evaluate integral in computing CDFs. Note that the integral is defined over an infinite integral (see Theorem 17), we will use the following lemma to convert the integral range to $$ before we apply Gaussian quadrature.

Let f(x)f(x) is defined over the infinite interval. We have

By a change of variables, we can convert the infinite integral to a finite integral, which can be easily implemented using numerical integration methods.

Double quadrature: To improve the time complexity of Algorithm 2, which is linear with a sufficiently large NN, we next apply Gaussian quadrature to approximate ϕ\phi-function when its closed-form expression is not available. We call this algorithm “Double quadrature”, as we use it twice, one is in the approximation for ϕ\phi-function, and another is for the CDF computation. In the experiment section, we show that the “Double quadrature” algorithm matches the Fourier Accountant approach [Koskela and Honkela, 2021] while only samples hundreds of points in evaluating Poisson Subsample Mechanisms.

In this section, we provide the end-to-end error analysis of AFA by looking into the following three scenarios.

ϕ\phi-functions have closed-form expressions.

ϕ\phi-functions with discretization is used (see Algorithm 2).

Double quadrature algorithm: ϕ\phi-function is approximated using Gaussian quarature.

Error analysis closed-form ϕ\phi functions. When we have closed-form ϕ\phi-functions (see Exp1 and Exp2), the numerical error is only caused by the quadrature method, which is used to convert ϕ\phi-function to CDFs. Therefore, we can tap into the classical results from numerical analysis that bounds the error in quadrature methods (see, e.g., Chapter 7 of Conte and de Boor “Elementary Numerical Analysis”) with an asymptotic scaling more or less O(1/nα)O(1/n^{\alpha}) for integrating an α\alphath times differentiable functions, and faster for more advanced rules, see the following Lemma.

[Stoer and Bulirsch, 2002] Let the function f(⋅)f(\cdot) has 2n2n continuous derivatives over the integral [a,b][a,b] and nn is the number sample points. We have the error estimate

From a practical standpoint, “Scipy.integrate” allows us to specify a desired error tolerance (e.g., O(10−14)O(10^{-14}) used in experiments). The error induced in CDFs will be amplified by eϵe^{\epsilon} in the final δ(ϵ)\delta(\epsilon) evaluation according to Lemma 5, which is still negligible in practice. The inverse (ϵ\epsilon as a function of δ\delta) requires an additional binary search, which calls δ(ϵ)\delta(\epsilon) a handful of times.

In the cases when the ϕ\phi-function does not have a closed-form expression, we proposed two approaches to approximate the -function: Algorithm 2 and Double Quadrature. In Algorithm 2, we discretize the support of the dominating pairs using an equispaced grid approximation.

Error analysis with approximated ϕ\phi functions. We analyzed the error caused by truncation, approximation of Algorithm 2 as follows.

The error caused by truncation (ignore o≥So\geq S or o≤−So\leq-S).

The error arising from Riemann Sum approximation.

The error caused by using Gaussian quadrature to compute CDF.

The first two errors arising from the approximation of ϕ\phi-function and the third error is the numerical error when we apply Gaussian quadrature to compute the integral in privacy profile. The third term is often negligible as we discuss earlier. When pp and qq are determined, we bound the tail integral ∫S∞max⁡(p(o),q(o))do\int_{S}^{\infty}\max(p(o),q(o))do and ∫−S−∞max⁡(p(o),q(o))do\int_{-S}^{-\infty}\max(p(o),q(o))do using the Chernoff bound and denote it is upper bounded by δtail\delta_{tail}. Then a union bound over kk compositions will bound all bad events that the output happens to be out of [−S,S]k[-S,S]^{k}. Lastly, we estimate the total error by subtracting and adding kδtailk\delta_{tail} to the lower and the upper Riemann sums bound, respectively.

Double Quadrature For the second approach — adaptive approximation via double quadrature, we do not have an asymptotic analysis of the bounds but ‘scipy.integrate.dblquad’ does provide us valid bounds. The “double quadrature” approach is the best-performing algorithm we recommend in practice.

E.2 Experimental details in Exp 3

Theorem 6 allows us to consider the following one dimensionthe error analysis of the (P,(1−γ)P+γQ)(P,(1-\gamma)P+\gamma Q) dominating pair is similar distribution as the worst-case pair neighboring distribution for the Poisson subsampling Gaussian mechanism.

Therefore, the pairing privacy loss RV is given by

We cannot derive a closed-form expression of ϕ\phi-function naively for the above privacy loss RVs. Therefore, we consider the discretization method (Algorithm 2) to approximate the Poisson subsampling.

We set S=100S=100 and N=105N=10^{5} to discretize the exact integral of oo, which is [−∞,∞][-\infty,\infty] for the Gaussian mechanism. We use γ=0.01\gamma=0.01 and σ=2.0\sigma=2.0, for number of compositions up to 15001500. We now provide the error analysis of our Poisson subsample Gaussian experiments. Recall the error analysis in Theorem 43, we first bound the error caused by truncation (ignore o≥So\geq S or o≤−So\leq-S).

The error caused by trunction consists of the tail integral t1:=∫S∞max⁡(p(o),q(o))dot_{1}:=\int_{S}^{\infty}\max(p(o),q(o))do and t2:=∫−S−∞max⁡(p(o),q(o))dot_{2}:=\int_{-S}^{-\infty}\max(p(o),q(o))do. We can upper bound t1t_{1} and t2t_{2} using the tail bound of Gaussian distribution.

We use δtail\delta_{tail} to denote the failure probability when oo happens to be out of the range [−S,S][-S,S]. Here, we have δtail≤eS2−2σ2+e(S−1)2−2σ2\delta_{tail}\leq e^{\frac{S^{2}}{-2\sigma^{2}}}+e^{\frac{(S-1)^{2}}{-2\sigma^{2}}}. Substituting S=100,k=1500S=100,k=1500 and σ=2.0\sigma=2.0 into Theorem 43, we have k⋅δtailk\cdot\delta_{tail} is upper bounded by e−1000e^{-1000}, which is neglectable in the δ\delta term. For the error caused by discretization, we plot the valid lower and upper bound using Algorithm 2.

In “Double quadrature”, we apply Gaussian quadrature to compute ϕ(M)\phi(\mathcal{M}) and ϕ′(M)\phi^{\prime}(\mathcal{M}) directly. That is, we apply Gaussian quadrature to solve the integration

Though we did not include an error analysis of the Double quadrature algorithm, the algorithm exactly matches the result from Koskela et al. and its computation time for each δ(ϵ)\delta(\epsilon) query is only around 0.20.2 sec.

Appendix F An “optimal” Renyi DP to DP conversion?

In this section, we provide the detailed description of how we generated the improved “optimal” conversion rule in Figure 1 based on an extension of the technique of Balle et al. .

Specifically, Balle et al. shows that (α,ϵ)(\alpha,\epsilon)-RDP implies ff-DP for any tradeoff function ff that lower bounds the following tradeoff region:

Then one can further convert this ff-DP to (ϵ,δ)(\epsilon,\delta)-DP according to our formula in Section B (originally due to [Dong et al., 2021].)

The main improvement that we propose is to consider the mechanism specific version of the same conversion rule, which converts the RDP function ϵM(⋅)\epsilon_{\mathcal{M}}(\cdot) satisfied by a mechanism M\mathcal{M} to an ff-DP of M\mathcal{M}, which involves taking the pointwise maximum of all ff functions implied by each (α,ϵM(α))(\alpha,\epsilon_{\mathcal{M}}(\alpha))-RDP. The key to obtain the conversion that we have shown in Figure 1 was to consider and extended version of RDP that also includes 0<α<10<\alpha<1, which we find to have a nontrivial effect in the resulting tradeoff function.

In the remainder of the section, we will first explain how the two-stage conversion works in Section F.1 and Section F.2 and then comment on whether the rule can be improved in Section F.3.

The hypothesis testing interpretation (ff-DP) of RDP is not entirely tight. Here we present a simplified derivation of the tradeoff function ff implied by RDP via closedness to post-processing.

Consider any hypothesis testing procedure h:O→{0,1}h:\mathcal{O}\rightarrow\{0,1\} that uses the output oo of an (α,ϵ)(\alpha,\epsilon)-RDP mechanism. “11” denotes “Rejecting the null hypothesis” that individual zz is not in the dataset, indicating that hh predicts that zz is in the dataset. “” denotes the complement event of “Failing to reject the null hypothesis”, indicating that hh predicts that zz is not in the dataset. By the closure to post-processing property, h(o)h(o) satisfies (α,ϵ)(\alpha,\epsilon)-RDP. By definition of RDP,

for all pairs of neighboring datasets that induce distributions p,qp,q.

Let qq be the distribution where individual zz is not in the dataset and pp otherwise. Let xx denote the probability of false positive (Type I error) — zz is not in the dataset but the prediction is 11; and yy denote the probability of false negative (Type II error) — zz is in the dataset but the prediction is .

where the first constraint follows by taking the moments of the density ratio of the binary random variable h(o)h(o), by noting that the event for prediction 11 is false positive under qq but true positive under qq. The second constraint follows from swapping p,qp,q.

When α=1\alpha=1, by the definition of KL-divergence, (13) is equivalent to

Finally, when 0<α<10<\alpha<1, (13) is equivalent to

Note that the only difference from the case when α>1\alpha>1 is the direction of the inequality. Also note that the symmetry of the two inequalities ensures that it suffices to consider α≥0.5\alpha\geq 0.5Let 0<α<0.50<\alpha<0.5 and α′=1−α\alpha^{\prime}=1-\alpha. Notice that (1−y)αx1−α+yα(1−x)1−α=xα′(1−y)1−α′+(1−x)α′y1−α(1-y)^{\alpha}x^{1-\alpha}+y^{\alpha}(1-x)^{1-\alpha}=x^{\alpha^{\prime}}(1-y)^{1-\alpha^{\prime}}+(1-x)^{\alpha^{\prime}}y^{1-\alpha}. Next, check that for all positive ϵ\epsilon and 0<α<0.50<\alpha<0.5, e(α−1)ϵ<e(α′−1)ϵe^{(\alpha-1)\epsilon}<e^{(\alpha^{\prime}-1)\epsilon}. In other words, the bound with α\alpha in (0,0.5)(0,0.5) is never active. .

The f-DP of a mechanism satisfying ϵ(α)\epsilon(\alpha)-RDP for a family α\alpha is therefore the pointwise maximum of the resulting ff function for all α\alpha.

F.2 f𝑓f-DP to (ϵ,δ)italic-ϵ𝛿(\epsilon,\delta)-DP

fDP is related to (ϵ,δ)(\epsilon,\delta)-DP in the following lemma.

Let ff be the lower bound of Type II error given Type I error, then mechanisms that satisfy fDP with function ff also obeys a family of (ϵ(x),δ(x))(\epsilon(x),\delta(x))-DP for all x∈x\in such that

Numerically stable computation of ϵ\epsilon given δ\delta or δ\delta given ϵ\epsilon involves working with ∂f\partial f and 1−f1-f in logarithmic scale. Specifically, we find xx such that there exists subgradient g∈∂f(x)g\in\partial f(x) such that

Then it is true that ϵ(δ)=log⁡(−g)\epsilon(\delta)=\log(-g). In fact, a more general procedure finds an xx (why any feasible xx works is left as an exercise) such that ∂f(x)\partial f(x) contains gg satisfying (14). It then follows that

When f(x)f(x) is differentiable everywhere, we can solve (14) as a nonlinear equation and then we can write ϵ(δ)=log⁡(−f′(x(δ)))\epsilon(\delta)=\log(-f^{\prime}(x(\delta))) if f′(x(δ))<−1f^{\prime}(x(\delta))<-1, and ϵ(δ)=0\epsilon(\delta)=0 otherwise.

Similarly, δ(ϵ)\delta(\epsilon) can be found by solving the nonlinear equation log⁡(−∂f(x))=ϵ\log(-\partial f(x))=\epsilon for xx and then plug into (14):

In other word, provided that log⁡(1−f(x))\log(1-f(x)) and log⁡(−∂f(x))\log(-\partial f(x)) admit an analytical implementation, we can convert ff-DP to (ϵ,δ)(\epsilon,\delta)-DP in a numerically stable fashion.

F.3 Optimality of this conversion rule?

A natural question to ask is that whether the aforementioned conversion rule from RDP to (ϵ,δ)(\epsilon,\delta)-DP is optimal. The answer is yes and no. Let us explain.

From Figure 1, we can clearly see that for the randomized response mechanism, the resulting conversion matches exactly with the exact (ϵ,δ)(\epsilon,\delta)-DP obtained via the privacy-profile.

Moreover, observe that the converted ff-function of the Gaussian mechanism touches that of the randomized response mechanism which satisfies the same RDP bound for all α>0\alpha>0. For this reason, we know that for Gaussian mechanism, the conversion rule cannot be improved in any ways that strictly improves the stated conversion rule at all inputs (Type I error).

This example, however, does not rule out the possibility of improving the RDP-implied ff-DP elsewhere for Gaussian mechanism. Therefore, it is unclear whether the proposed RDP-to-DP conversion rule is optimal in the strong sense:

Is it optimal for all RDP functions and all input (type I error) at the same time?

Our conjecture is positive, but it is beyond the scope of the current paper to formally prove this.

A promising direction is to compare our approach to the optimal conversion rule proposed by Asoodeh et al. (which uses a very different approach to derive almost the same formula as that in [Balle et al., 2020]).

Appendix G Omitted proofs in Appendix B

where we used the fact that a+−(−a)+=aa_{+}-(-a)_{+}=a on the second line. ∎

The second identity can be obtained in a similar fashion. ∎

Now the first identity about GG is a direct consequence of Lemma 21, and the second one is a direct consequence of Lemma 18. ∎

The choice of hh as the indicator function of (−∞,x](-\infty,x] yields the second identity. ∎

The functions f,F,Gf,F,G and the hockey-stick divergence have the following relations:

The first identity follows from the definition of the trade-off function and Neyman–Pearson lemma. In fact, 1−F(x)1-F(x) and G(x)G(x) are the type I and type II errors of the likelihood ratio test with threshold at xx. Taking derivative with respect to xx on both sides of the first identity, we have

Now the second identity follows by plugging in Lemma 46. ∎

From the proof of Proposition 2.2 of Dong et al. , we know that we can pick P′P^{\prime} as the uniform distribution over $andandQ^{\prime}hasdensityhas density-f^{\prime}(1-x)=|f^{\prime}(1-x)|onon$. Therefore,

The second identity can be proved similarly. ∎