Privacy Odometers and Filters: Pay-as-you-Go Composition

Ryan Rogers, Aaron Roth, Jonathan Ullman, Salil Vadhan

Introduction

Differential privacy is a stability condition on a randomized algorithm, designed to guarantee individual-level privacy during data analysis. Informally, an algorithm is differentially private if any pair of close inputs map to similar probability distributions over outputs, where similarity is measured by two parameters ε\varepsilon and δ\delta. Informally, ε\varepsilon measures the amount of privacy and δ\delta measures the failure probability that the privacy loss is much worse than ε\varepsilon. A signature property of differential privacy is that it is preserved under composition—combining many differentially private subroutines into a single algorithm preserves differential privacy and the privacy parameters degrade gracefully. Composability is essential for both privacy and for algorithm design. Since differential privacy is composable, we can design a sophisticated algorithm and prove it is private without having to reason directly about its output distribution. Instead, we can rely on the differential privacy of the basic building blocks and derive a privacy bound on the whole algorithm using the composition rules.

The composition theorem for differential privacy is very strong, and holds even if the choice of which differentially private subroutine to run is adaptive—that is, the choice of the next algorithm may depend on the output of previous algorithms. This property is essential in algorithm design, but also more generally in modeling unstructured sequences of data analyses that might be run by a human data analyst, or even by many data analysts on the same data set, while only loosely coordinating with one another. Even setting aside privacy, it can be very challenging to analyze the statistical properties of general adaptive procedures for analyzing a dataset, and the fact that adaptively chosen differentially private algorithms compose has recently been used to give strong guarantees of statistical validity for adaptive data analysis .

However, all the known composition theorems for differential privacy have an important and generally overlooked caveat. Although the choice of the next subroutine in the composition may be adaptive, the number of subroutines called and choice of the privacy parameters ε\varepsilon and δ\delta for each subroutine must be fixed in advance. Indeed, it is not even clear how to define differential privacy if the privacy parameters are not fixed in advance. This is generally acceptable when designing a single algorithm (that has a worst-case analysis), since worst-case eventualities need to be anticipated and budgeted for in order to prove a theorem. However, it is not acceptable when modeling the unstructured adaptivity of a data analyst, who may not know ahead of time (before seeing the results of intermediate analyses) what he wants to do with the data. When controlling privacy loss across multiple data analysts, the problem is even worse.

The “basic” composition theorem asserts that Example1 is (εk,0)(\varepsilon k,0)-differentially private. The “advanced” composition theorem gives a more sophisticated bound and asserts that (provided that ε\varepsilon is sufficiently small), the algorithm satisfies (ε8kln(1/δ),δ)(\varepsilon\sqrt{8k\ln(1/\delta)},\delta)-differential privacy for any δ>0\delta>0. There is even an “optimal” composition theorem , although its precise statement is too complicated to describe here. These analyses crucially assume that both the number of iterations kk and the parameter ε\varepsilon are fixed up front, even though it allows for the queries qiq_{i} to be adaptively chosen.The same analysis holds for hetereogeneous parameters (ε1,,εk)(\varepsilon_{1},\dots,\varepsilon_{k}) are used in each round as long as they are all fixed in advance. For basic composition εk\varepsilon k is replaced with i=1kεi\sum_{i=1}^{k}\varepsilon_{i} and for advanced composition εk\varepsilon\sqrt{k} is replaced with i=1kεi2\sqrt{\sum_{i=1}^{k}\varepsilon_{i}^{2}}.

Now consider a similar example where the number of iterations is not fixed up front, but actually depends on the answers to previous queries. This is a special case of a more general setting where the privacy parameter εi\varepsilon_{i} in every round may be chosen adaptively—halting in our example is equivalent to setting εi=0\varepsilon_{i}=0 in all future rounds.

Example2 cannot be said to be differentially private ex ante for any non-trivial fixed values of ε\varepsilon and δ\delta, because the computation might run for an arbitrarily long time that depends on the data itself and privacy may degrade indefinitely. What can we say about privacy after we run the algorithm? If the algorithm/data-analyst happens to stop after kk rounds, can we apply the composition theorem ex post to conclude that it is (εk,0)(\varepsilon k,0)- and (ε8klog(1/δ),δ)(\varepsilon\sqrt{8k\log(1/\delta)},\delta)-differentially private, as we could if the algorithm were constrained to always run for at most kk rounds?

In this paper, we study the composition properties of differential privacy when everything—the choice of algorithms, the number of rounds, and the privacy parameters in each round—may be adaptively chosen. We show that this setting is much more delicate than the settings covered by previously known composition theorems, but that these sorts of ex post privacy bounds do hold with only a small (but in some cases unavoidable) loss over the standard setting.

We give a formal framework for reasoning about the adaptive composition of differentially private algorithms when the privacy parameters themselves can be chosen adaptively. When the parameters are chosen non-adaptively, a composition theorem gives a high probability bound on the worst case privacy loss that results from the output of an algorithm. In the adaptive parameter setting, it no longer makes sense to have fixed bounds on the privacy loss. Instead, we propose two kinds of primitives capturing two natural use cases for composition theorems:

A privacy odometer takes as input a global failure parameter δg\delta_{g}. After every round ii in the composition of differentially private algorithms, the odometer outputs a number τi\tau_{i} that may depend on the realized privacy parameters εi,δi\varepsilon_{i},\delta_{i} in the previous rounds. The privacy odometer guarantees that with probability 1δg1-\delta_{g}, for every round ii, τi\tau_{i} is an upper bound on the privacy loss in round ii.

A privacy filter is a way to cut off access to the dataset when the privacy parameters are too large. It takes as input a global privacy “budget” (εg,δg)(\varepsilon_{g},\delta_{g}). After every round, it either outputs CONT\mathtt{CONT} (“continue”) or HALT\mathtt{HALT} depending on the privacy parameters from the previous rounds. The privacy filter guarantees that with probability 1δg1-\delta_{g}, it will output HALT\mathtt{HALT} before the privacy loss exceeds εg\varepsilon_{g}. When used, it guarantees that the resulting interaction is (εg,δg(\varepsilon_{g},\delta_{g})-DP.

A tempting heuristic is to take the realized privacy parameters ε1,δ1,,εi,δi\varepsilon_{1},\delta_{1},\dots,\varepsilon_{i},\delta_{i} and apply one of the existing composition theorems to those parameters, using that value as a privacy odometer or implementing a privacy filter by halting when getting a value that exceeds the global budget. However this heuristic does not necessarily give valid bounds.

We first prove that the heuristic does work for the basic composition theorem in which the parameters εi\varepsilon_{i} and δi\delta_{i} add up. We prove that summing the realized privacy parameters yields both a valid privacy odometer and filter. The idea of a privacy filter was also considered in , who show that basic composition works in the privacy filter application.

We then show that the heuristic breaks for the advanced composition theorem . However, we give a valid privacy filter that gives the same asymptotic bound as the advanced composition theorem, albeit with worse constants. On the other hand, we show that, in some parameter regimes, the asymptotic bounds given by our privacy filter cannot be achieved by a privacy odometer. This result gives a formal separation between the two models when the parameters may be chosen adaptively, which does not exist when the privacy parameters are fixed. Finally, we give a valid privacy odometer with a bound that is only slightly worse asymptotically than the bound that the advanced composition theorem would give if it were used (improperly) as a heuristic. Our bound is worse by a factor that is never larger than loglog(n)\sqrt{\log\log(n)} (here, nn is the size of the dataset) and for some parameter regimes is only a constant.

Privacy Preliminaries

Differential privacy is defined based on the following notion of similarity between two distributions.

Two random variables XX and YY taking values from domain D\mathcal{D} are (ε,δ)(\varepsilon,\delta)-indistinguishable, denoted as Xε,δYX\approx_{\varepsilon,\delta}Y, if SD\forall S\subseteq\mathcal{D},

There is a slight variant of indistinguishability, called point-wise indistinguishability, which is nearly equivalent, but will be the more convenient notion for the generalizations we give in this paper.

Two random variables XX and YY taking values from D\mathcal{D} are (ε,δ)(\varepsilon,\delta)-point-wise indistinguishable if with probability at least 1δ1-\delta over either aXa\sim X or aYa\sim Y, we have

Let XX and YY be two random variables taking values from D\mathcal{D}. If XX and YY are (ε,δ)(\varepsilon,\delta)-point-wise indistinguishable, then Xε,δYX\approx_{\varepsilon,\delta}Y. Also, if Xε,δYX\approx_{\varepsilon,\delta}Y then XX and YY are (2ε,2δeεε)\left(2\varepsilon,\frac{2\delta}{e^{\varepsilon}\varepsilon}\right)-point-wise indistinguishable.

We say two databases x,xXn\mathbf{x},\mathbf{x}^{\prime}\in\mathcal{X}^{n} are neighboring if they differ in at most one entry, i.e. if there exists an index i[n]i\in[n] such that xi=xi\mathbf{x}_{-i}=\mathbf{x}_{-i}^{\prime}. We can now state differential privacy in terms of indistinguishability.

A randomized algorithm M:XnY\mathcal{M}:\mathcal{X}^{n}\to\mathcal{Y} with arbitrary output range Y\mathcal{Y} is (ε,δ)(\varepsilon,\delta)-differentially private (DP) if for every pair of neighboring databases x,x\mathbf{x},\mathbf{x}^{\prime}:

We then define the privacy loss LossM(a;x,x)\mathtt{Loss}_{\mathcal{M}}(a;\mathbf{x},\mathbf{x}^{\prime}) for outcome aYa\in\mathcal{Y} and neighboring datasets x,xXn\mathbf{x},\mathbf{x}^{\prime}\in\mathcal{X}^{n} as

We note that if we can bound LossM(a;x,x)\mathtt{Loss}_{\mathcal{M}}(a;\mathbf{x},\mathbf{x}^{\prime}) for any neighboring datasets x,x\mathbf{x},\mathbf{x}^{\prime} with high probability over aM(x)a\sim\mathcal{M}(\mathbf{x}), then Lemma 2.3 tells us that M\mathcal{M} is differentially private. Moreover, Lemma 2.3 also implies that this approach is without loss of generality (up to a small difference in the parameters). Thus, our composition theorems will focus on bounding the privacy loss with high probability.

A useful property of differential privacy is that it is preserved under post-processing without degrading the parameters:

Let M:XnY\mathcal{M}:\mathcal{X}^{n}\to\mathcal{Y} be (ε,δ)(\varepsilon,\delta)-DP and f:YYf:\mathcal{Y}\to\mathcal{Y}^{\prime} be any randomized algorithm. Then fM:XnYf\circ\mathcal{M}:\mathcal{X}^{n}\to\mathcal{Y}^{\prime} is (ε,δ)(\varepsilon,\delta)-DP.

We next recall a useful characterization from : any DP algorithm can be written as the post-processing of a simple, canonical algorithm which is a generalization of randomized response.

For any ε,δ0\varepsilon,\delta\geq 0, we define the randomized response algorithm RRε,δ:{0,1}{0,,,1}\mathtt{RR}_{\varepsilon,\delta}:\{0,1\}\to\{0,\top,\bot,1\} as the following (Note that if δ=0\delta=0, we will simply write the algorithm RRε,δ\mathtt{RR}_{\varepsilon,\delta} as RRε\mathtt{RR}_{\varepsilon}.)

Kairouz, Oh, and Viswanath show that any (ε,δ)(\varepsilon,\delta)–DP algorithm can be viewed as a post-processing of the output of RRε,δ\mathtt{RR}_{\varepsilon,\delta} for an appropriately chosen input.

For every (ε,δ)(\varepsilon,\delta)-DP algorithm M\mathcal{M} and for all neighboring databases x0\mathbf{x}^{0} and x1\mathbf{x}^{1}, there exists a randomized algorithm TT where T(RRε,δ(b))T(\mathtt{RR}_{\varepsilon,\delta}(b)) is identically distributed to M(xb)\mathcal{M}(\mathbf{x}^{b}) for b{0,1}b\in\{0,1\}.

This theorem will be useful in our analyses, because it allows us to without loss of generality analyze compositions of these simple algorithms RRε,δ\mathtt{RR}_{\varepsilon,\delta} with varying privacy parameters.

We now define the adaptive composition of differentially private algorithms in the setting introduced by and then extended to heterogenous privacy parameters in , in which all of the privacy parameters are fixed prior to the start of the computation. The following “composition game” is an abstract model of composition in which an adversary can adaptively select between neighboring datasets at each round, as well as a differentially private algorithm to run at each round – both choices can be a function of the realized outcomes of all previous rounds. However, crucially, the adversary must select at each round an algorithm that satisfies the privacy parameters which have been fixed ahead of time – the choice of parameters cannot itself be a function of the realized outcomes of previous rounds. We define this model of interaction formally in Algorithm 1 where the output is the view of the adversary A\mathcal{A} which includes any random coins she uses RAR_{\mathcal{A}} and the outcomes A1,,AkA_{1},\cdots,A_{k} of every round.

We say that the sequence of parameters ε1,,εk0\varepsilon_{1},\cdots,\varepsilon_{k}\geq 0, δ1,,δk[0,1)\delta_{1},\cdots,\delta_{k}\in[0,1) satisfies (εg,δg)(\varepsilon_{g},\delta_{g})-differential privacy under adaptive composition if for every adversary A\mathcal{A}, and E=(E1,,Ek)\mathcal{E}=(\mathcal{E}_{1},\cdots,\mathcal{E}_{k}) where Ei\mathcal{E}_{i} is the class of (εi,δi)(\varepsilon_{i},\delta_{i})-DP algorithms, we have FixedParamComp(A,E,)\mathtt{FixedParamComp}(\mathcal{A},\mathcal{E},\cdot) is (εg,δg)(\varepsilon_{g},\delta_{g})-DP in its last argument, i.e. V0εg,δgV1V^{0}\approx_{\varepsilon_{g},\delta_{g}}V^{1}.

We first state a basic composition theorem which shows that the adaptive composition satisfies differential privacy where “the parameters just add up.”

The sequence ε1,,εk\varepsilon_{1},\cdots,\varepsilon_{k} and δ1,δk\delta_{1},\cdots\delta_{k} satisfies (εg,δg)(\varepsilon_{g},\delta_{g})-differential privacy under adaptive composition where

We now state the advanced composition bound from which gives a quadratic improvement to the basic composition bound.

For any δ^>0\hat{\delta}>0, the sequence ε1,,εk\varepsilon_{1},\cdots,\varepsilon_{k} and δ1,δk\delta_{1},\cdots\delta_{k} where ε=εi\varepsilon=\varepsilon_{i} and δ=δi\delta=\delta_{i} for all i[k]i\in[k] satisfies (εg,δg)(\varepsilon_{g},\delta_{g})-differential privacy under adaptive composition where

This theorem can be easily generalized to hold for values of εi\varepsilon_{i} that are not all equal (as done in ). However, this is not as all-encompassing as it would appear at first blush, because this straightforward generalization would not allow for the values of εi\varepsilon_{i} and δi\delta_{i} to be chosen adaptively by the data analyst. Indeed,the definition of differential privacy itself (Definition 2.4) does not straightforwardly extend to this case. The remainder of this paper is devoted to laying out a framework for sensibly talking about the privacy parameters εi\varepsilon_{i} and δi\delta_{i} being chosen adaptively by the data analyst, and to prove composition theorems (including an analogue of Theorem 2.10) in this model.

Composition with Adaptively Chosen Parameters

We now introduce the model of composition with adaptive parameter selection, and define privacy in this setting.

We want to model composition as in the previous section, but allow the adversary the ability to also choose the privacy parameters (εi,δi)(\varepsilon_{i},\delta_{i}) as a function of previous rounds of interaction. We will define the view of the interaction, similar to the view in FixedParamComp\mathtt{FixedParamComp}, to be the tuple that includes A\mathcal{A}’s random coin tosses RAR_{\mathcal{A}} and the outcomes A=(A1,,Ak)A=(A_{1},\cdots,A_{k}) of the algorithms she chose. Formally, we define an adaptively chosen privacy parameter composition game in Algorithm 2 which takes as input an adversary A\mathcal{A}, a number of rounds of interaction kk,Note that in the adaptive parameter composition game, the adversary has the option of effectively stopping the composition early at some round k<kk^{\prime}<k by simply setting εi=δi=0\varepsilon_{i}=\delta_{i}=0 for all rounds i>ki>k^{\prime}. Hence, the parameter kk will not appear in our composition theorems the way it does when privacy parameters are fixed. This means that we can effectively take kk to be infinite. For technical reasons, it is simpler to have a finite parameter kk, but the reader should imagine it as being an enormous number (say the number of atoms in the universe) so as not to put any constraint at all on the number of rounds of interaction with the adversary. and an experiment parameter b{0,1}b\in\{0,1\}.

We then define the privacy loss with respect to AdaptParamComp(A,k,b)\mathtt{AdaptParamComp}(\mathcal{A},k,b) in the following way for a fixed view v=(r,a)v=(r,a) where rr represents the random coin tosses of A\mathcal{A} and we write v<i=(v0,,vi1):=(r,a1,,ai1)v_{<i}=(v_{0},\cdots,v_{i-1}):=(r,a_{1},\cdots,a_{i-1}):

Note that the privacy parameters (εi,δi)(\varepsilon_{i},\delta_{i}) depend on the previous outcomes that A\mathcal{A} receives. We will frequently shorten our notation εt=εt(v<t)\varepsilon_{t}=\varepsilon_{t}(v_{<t}) and δt=δt(v<t)\delta_{t}=\delta_{t}(v_{<t}) when the outcome is understood.

It no longer makes sense to claim that the privacy loss of the adaptive parameter composition experiment is bounded by any fixed constant, because the privacy parameters (with which we would presumably want to use to bound the privacy loss) are themselves random variables. Instead, we define two objects which can be used by a data analyst to control the privacy loss of an adaptive composition of algorithms.

The first object, which we call a privacy filter, is a stopping-time rule. It takes two global parameters (εg,δg)(\varepsilon_{g},\delta_{g}) and will at each round either output CONT\mathtt{CONT} or HALT\mathtt{HALT}. A privacy filter can be used to guarantee that with high probability, the stated privacy budget εg\varepsilon_{g} is never exceeded – the data analyst at each round kk^{\prime} simply queries COMPεg,δg(ε1,δ1,,εk,δk,0,0,,0,0)\mathtt{COMP}_{\varepsilon_{g},\delta_{g}}(\varepsilon_{1},\delta_{1},\ldots,\varepsilon_{k^{\prime}},\delta_{k^{\prime}},0,0,\ldots,0,0) before she runs algorithm kk^{\prime}, and runs it only if the filter returns CONT\mathtt{CONT}. Again, this is guaranteed because the continuation is a feasible choice of the adversary, and the guarantees of both a filter and an odometer are quantified over all adversaries. We give the formal description of this interaction where A\mathcal{A} uses the privacy filter in Algorithm 3.

are (εg,δg)(\varepsilon_{g},\delta_{g})-point-wise indistinguishable.

The second object, which we call a privacy odometer will be parameterized by one global parameter δg\delta_{g} and will provide a running real valued output that will, with probability 1δg1-\delta_{g}, upper bound the privacy loss at each round of any adaptive composition in terms of the realized values of εi\varepsilon_{i} and δi\delta_{i} selected at each round.

We note that a valid privacy odometer can be used to provide a running upper bound on the privacy loss at each intermediate round: the privacy loss at round k<kk^{\prime}<k must with high probability be upper bounded by COMPδg(ε1,δ1,,εk,δk,0,0,,0,0)\mathtt{COMP}_{\delta_{g}}\left(\varepsilon_{1},\delta_{1},\ldots,\varepsilon_{k^{\prime}},\delta_{k^{\prime}},0,0,\ldots,0,0\right). That is, the bound that results by setting all future privacy parameters to 0. This is because setting all future privacy parameters to zero is equivalent to stopping the computation at round kk^{\prime}, and is a feasible choice for the adaptive adversary A\mathcal{A}.

2 Focusing on Pure DP

Throughout our analysis we will be focusing on pure DP mechanisms, i.e. the adversary selects a εi\varepsilon_{i}-DP mechanism at each round ii with δi=0\delta_{i}=0. We show that we can, with worse constants, convert the case where an adversary can select δi>0\delta_{i}>0 each round, while still using our formulas for δi=0\delta_{i}=0. Specifically, we show that we can simulate AdaptParamComp(A,k,b)\mathtt{AdaptParamComp}(\mathcal{A},k,b) by defining a new adversary that chooses the differentially private algorithm Mi\mathcal{M}_{i} of adversary A\mathcal{A}, but uses a pure DP mechanism.We thank Valentin Hartmann for pointing out an issue with an earlier version of the following result.

If COMP~δg\widetilde{\mathtt{COMP}}_{\delta_{g}} is a valid privacy odometer when {δi}0\{\delta_{i}\}\equiv 0, then for every δg0\delta_{g}^{\prime}\geq 0, COMPδg+δg\mathtt{COMP}_{\delta_{g}+\delta_{g}^{\prime}} is a valid privacy odometer where

If COMP~εg,δg\widetilde{\mathtt{COMP}}_{\varepsilon_{g},\delta_{g}} is a valid privacy filter when {δi}0\{\delta_{i}\}\equiv 0, then for every δg0\delta_{g}^{\prime}\geq 0, COMPεg,δg+δg\mathtt{COMP}_{\varepsilon_{g},\delta_{g}+\delta_{g}^{\prime}} is a valid privacy filter where

Let V(b)=(V1(b),,Vk(b))V^{(b)}=(V^{(b)}_{1},\cdots,V^{(b)}_{k}) be the view of A\mathcal{A} in AdaptParamComp(A,k,b)\mathtt{AdaptParamComp}(\mathcal{A},k,b). Recall that we have Loss(V(b))=i=1kLossi(Vi(b))\mathtt{Loss}(V^{(b)})=\sum_{i=1}^{k}\mathtt{Loss}_{i}(V^{(b)}_{\leq i}). From Lemma 2.3 and given any V0(b)=v0,V1(b)=v1,,Vi1(b)=vi1V_{0}^{(b)}=v_{0},V_{1}^{(b)}=v_{1},\cdots,V_{i-1}^{(b)}=v_{i-1}, we have that Lossi(Vi(b))2εi(v<i)\mathtt{Loss}_{i}(V^{(b)}_{\leq i})\leq 2\varepsilon_{i}(v_{<i}) with probability at least 12δi(v<i)εi(v<i)eεi(v<i)1-\tfrac{2\delta_{i}(v_{<i})}{\varepsilon_{i}(v_{<i})e^{\varepsilon_{i}(v_{<i})}} over viVi(b)v_{i}\sim V_{i}^{(b)}.

Let VV be another copy of V(b)V^{(b)}. We have for any realizations of the view V<k=v<kV_{<k}=v_{<k} that the following holds,

Note that the event in the probability is a pure DP bound, i.e. δi=0\delta_{i}=0, for each round ii. Hence, we use the pure DP privacy filter or odometer to bound the sum of privacy losses. Let G(v<k)\mathcal{G}(v_{<k}) be the event in the above probability statement. We write V<k\mathcal{V}_{<k} to be the space of all possible views of an adversary A\mathcal{A} in AdaptParamComp(A,k,0)\mathtt{AdaptParamComp}(\mathcal{A},k,0). We then first consider the statement about privacy odometers,

Next, we turn to the statement on privacy filters, which follows a similar argument as above by conditioning on the events where each loss can be bounded by 2εi2\varepsilon_{i} at round ii,

We will state our results for the pure DP case, where each δi=0\delta_{i}=0. In the case where δi>0\delta_{i}>0, we can translate pure DP filters and odometers to ones that apply in the more general setting by using Lemma 3.3.

3 Basic Composition

We first give an adaptive parameter version of the basic composition in Theorem 2.9.

For each nonnegative δg\delta_{g}, COMPδg\mathtt{COMP}_{\delta_{g}} is a valid privacy odometer where

Additionally, for any εg,δg0\varepsilon_{g},\delta_{g}\geq 0, COMPεg,δg\mathtt{COMP}_{\varepsilon_{g},\delta_{g}} is a valid privacy filter where

The proof follows simply from the definition of (pure) differential privacy, so for all possible views vv of the adversary in AdaptParamComp(A,k,b)\mathtt{AdaptParamComp}(\mathcal{A},k,b), we have:

where we explicitly write the dependence of the choice of εi\varepsilon_{i} by A\mathcal{A} at round ii on the view from the previous rounds as εi(v<i)\varepsilon_{i}(v_{<i})

Concentration Preliminaries

We give a useful concentration bound that will be pivotal in proving an improved valid privacy odometer and filter from that given in Theorem 3.4. We first present a concentration bound for self normalized processes.

If AA and B>0B>0 are two random variables such that

To put this bound into context, suppose that BB is a constant and we apply the bound with β=B2\beta=B^{2}. Then the bound simplifies to

which is just a standard concentration inequality for any subgaussian random variable AA with standard deviation BB. Another bound which will be useful for our results is the following.

We will apply both Theorem 4.1 and Theorem 4.2 to random variables coming from martingales defined from the privacy loss functions.

We then use the following result which gives us a pair of random variables to which we can apply Theorem 4.1.

For MkM_{k} defined in (3), if there exists two random variables Ci<DiC_{i}<D_{i} that are Fi1\mathcal{F}_{i-1}-measurable for i1i\geq 1

We then obtain the following result from combining Theorem 4.1 with Theorem 4.3.

Let MkM_{k} be defined as in (3) and satisfy the hypotheses of Theorem 4.3. Then for every fixed k1k\geq 1, x>0x>0 and δ1/e\delta\leq 1/e, we have

Similarly, we can obtain the following result by combining Theorem 4.2 with Theorem 4.3.

Let MkM_{k} be defined as in (3) and satisfy the hypotheses of Theorem 4.3. Then for every fixed k1k\geq 1, 0<β<10<\beta<1 c>0c>0 and t1t\geq 1, we have

We use the fact that xlog(1/x)x\log(1/x) is maximized at x=1/ex=1/e and has value no more than 0.370.37. ∎

Given Lemma 3.3, we will focus on finding a valid privacy odometer and filter when {δi}0\{\delta_{i}\}\equiv 0. Our analysis will then depend on the privacy loss Loss(V)\mathtt{Loss}(V) from (1) where VV is the view of the adversary in AdaptParamComp(A,k,0).\mathtt{AdaptParamComp}(\mathcal{A},k,0). We then focus on the following martingale in our analysis:

We can then bound the conditional expectation μi\mu_{i} with the following result from that improves on an earlier result from by a factor of 2.

For μi\mu_{i} defined in (5), we have μiεi(eεi1)/2\mu_{i}\leq\varepsilon_{i}\left(e^{\varepsilon_{i}}-1\right)/2.

Advanced Composition for Privacy Filters

We next show that we can essentially get the same asymptotic bound as Theorem 2.10 for the privacy filter setting using the bound in Theorem 4.4 for the martingale given in (5).

We define K\mathcal{K} as the following where we set x=εg228.04log(1/δg)x=\frac{\varepsilon_{g}^{2}}{28.04\cdot\log(1/\delta_{g})} and,We thank Daniel Winograd-Cort for catching an incorrectly set constant in an earlier version of this theorem.

COMPεg,δg\mathtt{COMP}_{\varepsilon_{g},\delta_{g}} is a valid privacy filter for δg(0,1/e)\delta_{g}\in\left(0,1/e\right) and εg>0\varepsilon_{g}>0 where

Note that if we have i=1kεi2=O(1/log(1/δg))\sum_{i=1}^{k}\varepsilon_{i}^{2}=O\left(1/\log(1/\delta_{g})\right) and set εg=Θ(i=1kεi2log(1/δg))\varepsilon_{g}=\Theta\left(\sqrt{\sum_{i=1}^{k}\varepsilon_{i}^{2}\log(1/\delta_{g})}\right) in (6), we are then getting the same asymptotic bound on the privacy loss as in and in Theorem 2.10 for the case when εi=ε\varepsilon_{i}=\varepsilon for i[k]i\in[k]. If kε218log(1/δg)k\varepsilon^{2}\leq\frac{1}{8\log(1/\delta_{g})}, then Theorem 2.10 gives a bound on the privacy loss of ε8klog(1/δg)\varepsilon\sqrt{8k\log(1/\delta_{g})}. Note that there may be better choices for the constant 28.0428.04 that we divide εg2\varepsilon_{g}^{2} by in (6), but for the case when εg=ε8klog(1/δg)\varepsilon_{g}=\varepsilon\sqrt{8k\log(1/\delta_{g})} and εi=ε\varepsilon_{i}=\varepsilon for every i[n]i\in[n], it is nearly optimal.

We focus on the martingale MkM_{k} given in (5). In order to apply Theorem 4.4 we set the lower bound for MiM_{i} to be Ci=(εiμi)C_{i}=\left(-\varepsilon_{i}-\mu_{i}\right) and upper bound to be Di=(εiμi)D_{i}=\left(\varepsilon_{i}-\mu_{i}\right) in order to compute Uk2U_{k}^{2} from (4). We then have for the martingale in (5) that

We can then directly apply Theorem 4.4 to get the following for x=(εg28.04log(1/δg))2>0x=\left(\frac{\varepsilon_{g}}{\sqrt{28.04\cdot\log(1/\delta_{g})}}\right)^{2}>0 with probability at least 1δg1-\delta_{g}

We can then obtain a bound on the privacy loss with probability at least 1δg1-\delta_{g} over vV0v\sim V^{0}

Advanced Composition for Privacy Odometers

One might hope to achieve the same sort of bound on the privacy loss from Theorem 2.10 when the privacy parameters may be chosen adversarially. However we show that this cannot be the case for any valid privacy odometer. In particular, even if an adversary selects the same privacy parameter ε=o(log(log(n)/δg)/k)\varepsilon=o(\sqrt{\log(\log(n)/\delta_{g})/k}) each round but can adaptively select a time to stop interacting with AdaptParamComp\mathtt{AdaptParamComp} (which is a restricted special case of the power of the general adversary – stopping is equivalent to setting all future εi,δi=0\varepsilon_{i},\delta_{i}=0), then we show that there can be no valid privacy odometer achieving a bound of o(εklog(log(n)/δg))o(\varepsilon\sqrt{k\log\left(\log(n)/\delta_{g}\right)}). This gives a separation between the achievable bounds for a valid privacy odometers and filters. But for privacy applications, it is worth noting that δg\delta_{g} is typically set to be (much) smaller than 1/n1/n, in which case this gap disappears (since log(log(n)/δg)=(1+o(1))log(1/δg)\log(\log(n)/\delta_{g})=(1+o(1))\log(1/\delta_{g}) ).

For any δg(0,O(1))\delta_{g}\in(0,O(1)) there is no valid COMPδg\mathtt{COMP}_{\delta_{g}} privacy odometer where

In order to prove Equation 7, we use the following anti-concentration bound for a sum of random variables.

For γ[1/2,1)\gamma\in[1/2,1), we define the random variables ξi{1,1}\xi_{i}\in\{-1,1\} where

We then apply Lemma 6.2 to prove an anti-concentration bound for the martingale given above.

Consider the partial sums MtM_{t} defined in (9) for t[n]t\in[n]. There exists a constant CC such that for all δ(0,O(1))\delta\in(0,O(1)) and n>Ω(log(1/δ)(1+μσ)2)n>\Omega\left(\log(1/\delta)\cdot\left(\frac{1+\mu}{\sigma}\right)^{2}\right) we have

By Lemma 6.2, we know that there exists constants C1,C2,C3C_{1},C_{2},C_{3} and large NN such that for all m>N(1+μσ)2m>N\cdot\left(\frac{1+\mu}{\sigma}\right)^{2} and x[1,C3mσ1+μ]x\in\left[1,C_{3}\sqrt{m}\frac{\sigma}{1+\mu}\right], we have

Thus, we set C=C12C2C=\frac{C_{1}}{2\sqrt{C_{2}}} and then for any δ\delta such that C2<log(1/δ)<C3C2mδσ1+μ\sqrt{C_{2}}<\sqrt{\log(1/\delta)}<C_{3}\sqrt{C_{2}}\sqrt{m_{\delta}}\frac{\sigma}{1+\mu}, we have

We next use Lemma 6.3 to prove that we cannot have a bound like Theorem 2.10 in the adaptive privacy parameter setting, which uses the stopping time adversary given in Algorithm 4.

Consider the stopping time adversary Aε,δg\mathcal{A}_{\varepsilon,\delta_{g}} from Algorithm 4 for a constant CC that we will determine in the proof. Let the number of rounds k=nk=n and ε=1/n\varepsilon=1/n. In order to use Lemma 6.3 we define γ=eε1+eε\gamma=\frac{e^{\varepsilon}}{1+e^{\varepsilon}} from (8). Because we let ε\varepsilon depend on nn, we have μμn=e1/n1e1/n+1=O(1/n)\mu\equiv\mu_{n}=\frac{e^{1/n}-1}{e^{1/n}+1}=O(1/n) and σσn=1μn2=1O(1/n2)\sigma\equiv\sigma_{n}=1-\mu_{n}^{2}=1-O(1/n^{2}) which gives 1+μnσn=Θ(1)\frac{1+\mu_{n}}{\sigma_{n}}=\Theta(1). We then relate the martingale in (9) with the privacy loss for this particular adversary in AdaptParamComp(Aε,δg,n,0)\mathtt{AdaptParamComp}(\mathcal{A}_{\varepsilon,\delta_{g}},n,0) with view VV who sets Xt=±εX_{t}=\pm\varepsilon each round,

Hence, at any round tt if Aε,δg\mathcal{A}_{\varepsilon,\delta_{g}} finds that

then she will set all future εi=0\varepsilon_{i}=0 for i>ti>t. To find the probability that (10) holds in any round t[n]t\in[n] we use Lemma 6.3 with the constant CC from the lemma statement to say that (10) occurs with probability at least δg\delta_{g}.

Assume that COMPεg\mathtt{COMP}_{\varepsilon_{g}} is a valid privacy odometer and (7) holds. We then know that with probability at least 1δg1-\delta_{g} over vVbv\sim V^{b} where VbV^{b} is the view for AdaptParamComp(A1/n,δg,n,b)\mathtt{AdaptParamComp}(\mathcal{A}_{1/n,\delta_{g}},n,b)

But this is a contradiction given that the bound in (10) at any round t[n]t\in[n] occurs with probability at least δg\delta_{g}. ∎

We now utilize the bound from Theorem 4.4 to obtain a concentration bound on the privacy loss.

COMPδg\mathtt{COMP}_{\delta_{g}} is a valid privacy odometer for δg(0,1/e)\delta_{g}\in\left(0,1/e\right) where for any x>0x>0,

We will follow a similar argument as in Theorem 5.1 where we use the same martingale MkM_{k} from (5). We can then directly apply Theorem 4.4 to get the following for any β>0\beta>0 with probability at least 1δg1-\delta_{g}

This above result is only useful if we can plug in a constant x>0x>0. If we were to set x=i=1kεi2x=\sum_{i=1}^{k}\varepsilon_{i}^{2}, then we would get asymptotically close to the same bound as in Theorem 2.10, however, the εi\varepsilon_{i} are random variables, and their realizations cannot be used in setting xx; further, we know from Equation 7 that such a bound cannot hold in this setting.

We now give our main positive result for privacy odometers, which is similar to our privacy filter in Theorem 5.1 except that δg\delta_{g} is replaced by δg/log(n)\delta_{g}/\log(n), as is necessary from Equation 7. Note that the bound incurs an additive 1/n21/n^{2} loss to the iεi2\sum_{i}\varepsilon_{i}^{2} term that is present without privacy. In any reasonable setting of parameters, this translates to at most a constant-factor multiplicative loss, because there is no utility running any differentially private algorithm with εi<110n\varepsilon_{i}<\frac{1}{10n} (we know that if AA is (εi,0)(\varepsilon_{i},0)-DP then A(x)A(\mathbf{x}) and A(x)A(\mathbf{x}^{\prime}) for any pair of inputs have statistical distance at most eεin1<0.1e^{\varepsilon_{i}n}-1<0.1, and hence the output is essentially independent of the input - note that a similar statement holds for (εi,δi)(\varepsilon_{i},\delta_{i})-DP.)

and if i=1kεi2[1/n2,1]\sum_{i=1}^{k}\varepsilon_{i}^{2}\notin[1/n^{2},1] then COMPδg(ε1,0,ε2,0,,εk,0)\mathtt{COMP}_{\delta_{g}}(\varepsilon_{1},0,\varepsilon_{2},0,\cdots,\varepsilon_{k},0) is equal to

We first focus on proving the bound in (11). For the martingale MkM_{k} in (5), we can use Theorem 4.5 with c=1/nc=1/n and t=nt=n to get the following for any β>0\beta>0

We then solve for β\beta so that δg/2=2e(β+2log(n)0.74 β)\delta_{g}/2=2\sqrt{e}\left(\beta+2\log(n)\sqrt{0.74\ \beta}\right), which yields,

where the inequality is due to 1+x1+x/3\sqrt{1+x}\geq 1+x/3 for 0<x<10<x<1. This gives the stated bound in (11).

For the bound given in (12), we set x=1/n2x=1/n^{2} in Lemma 6.4. Hence, we would have with probability at least 1δg1-\delta_{g} when i=1kεi2[1/n2,1]\sum_{i=1}^{k}\varepsilon_{i}^{2}\notin[1/n^{2},1],

In the above theorem, we only allow privacy parameters such that i=1kεi2[1/n2,1]\sum_{i=1}^{k}\varepsilon_{i}^{2}\in[1/n^{2},1]. This assumption is not too restrictive, since the output of a single (1/n)(\ll 1/n)-differentially private algorithm is nearly independent of its input. More generally, we can replace 1/n21/n^{2} with an arbitrary “granularity parameter” γ\gamma and require that i=1kεi2[γ,1]\sum_{i=1}^{k}\varepsilon_{i}^{2}\in[\gamma,1]. When doing so, log2(n2)/δg\log_{2}(n^{2})/\delta_{g} in (11) will be replaced with log2(1/γ)/δg\log_{2}(1/\gamma)/\delta_{g}. For example, we could require that ε1δg\varepsilon_{1}\geq\delta_{g}, in which case we can choose γ=δg2\gamma=\delta_{g}^{2}, which would not affect our bound substantially.

Acknowledgements

The authors are grateful Jack Murtagh for his collaboration in the early stages of this work, and for sharing his preliminary results with us. We thank Andreas Haeberlen, Benjamin Pierce, and Daniel Winograd-Cort for helpful discussions about composition. We further thank Daniel Winograd-Cort for catching an incorrectly set constant in an earlier version of Theorem 5.1. Special thanks to Valentin Hartmann for pointing out an error in a earlier version of Lemma 3.3. The revised version translates pure DP filters/odometers to general DP filters/odometers, but with worse constants than the earlier version.

References