















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















In the previous sections, we have focused on the problem of private query release in which we insist on bounding the worst-case error over all queries. Would our problem be easier if we instead asked only for low error on average, given some distribution over the queries? In this section, we see that the answer is no: given a mechanism which is able to solve the query release problem with low average error given any distribution on queries, we can “boost” it into a mechanism which solves the query release problem to worst-case error. This both sheds light on the difficulty of private query release, and gives us a new tool for designing private query release algorithms. Boosting is a general and widely used method for improving the accuracy of learning algorithms. Given a set of labeled training examples
{( x 1 , y 1 ) , ( x 2 , y 2 ) ,... , ( xm, ym )} ,
where each xi is drawn from an underlying distribution D on a universe U, and each yi ∈ {+1 , − 1 }, a learning algorithm produces a hypothesis h : U → {+1 , − 1 }. Ideally, h will not just “describe” the labeling on the given samples, but will also generalize , providing a reasonably accu- rate method of classifying other elements drawn from the underlying
117
118 Boosting for Queries
distribution. The goal of boosting is to convert a weak base learner, which produces a hypothesis that may do just a little better than ran- dom guessing, into a strong learner, which yields a very accurate pre- dictor for samples drawn according to D. Many boosting algorithms share the following basic structure. First, an initial (typically uniform) probability distribution is imposed on the sample set. Computation then proceeds in rounds. In each round t :
The process halts either after a predetermined number of rounds or when an appropriate combining of the hypotheses is determined to be sufficiently accurate. Thus, given a base learner, the design decisions for a boosting algorithm are (1) are how to modify the probability distribution from one round to the next, and (2) how to combine the hypotheses { ht } t =1 ,...,T to form a final output hypothesis. In this section we will use boosting on queries — that is, for the purposes of the boosting algorithm the universe U is a set of queries Q — to obtain an offline algorithm for answering large numbers of arbi- trary low-sensitivity queries. This algorithm requires less space than the median mechanism, and, depending on the base learner, is potentially more time efficient as well. The algorithm revolves around a somewhat magical fact (Lemma 6.5): if we can find a synopsis that provides accurate answers on a few selected queries, then in fact this synopsis provides accurate answers on most queries! We apply this fact to the base learner, which samples from a distribution on Q and produces as output a “weak” synopsis that yields “good” answers for a majority of the weight in Q, boosting, in a differentially private fashion, to obtain a synopsis that is good for all of Q. Although the boosting is performed over the queries, the privacy is still for the rows of the database. The privacy challenge in boosting for queries comes from the fact that each row in the database affects the
120 Boosting for Queries
over the coin flips of M, the synopsis S that M outputs is λ -accurate for a (1 / 2 + η )-fraction of the mass of Q as weighted by D:
Pr q ∼D [| q (S) − q ( x )| ≤ λ ] ≥ 1 / 2 + η. (6.1)
The query-boosting algorithm can be used for any class of queries and any differentially private base synopsis generator. The running time is inherited from the base synopsis generator. The booster invests additional time that is quasi-linear in |Q|, and in particular its running time does not depend directly on the size of the data universe. To specify the boosting algorithm we will need to specify a stopping condition, an aggregation mechanism, and an algorithm for updating the current distribution on Q.
Stopping Condition. We will run the algorithm for a fixed number T of rounds — this will be our stopping condition. T will be selected so as to ensure sufficient accuracy (with very high probability); as we will see, log |Q| /η^2 rounds will suffice.
Updating the Distribution. Although the distributions are never directly revealed in the outputs, the base synopses A 1 , A 2 ,... , A T are revealed, and each A i can in principle leak information about the queries chosen, from D i , in constructing A i. We therefore need to constrain the max-divergence between the probability distributions obtained on neighboring databases. This is technically challenging because, given A i , the database is very heavily involved in constructing D i +1. The initial distribution, D 1 , will be uniform over Q. A standard method for updating D t is to increase the weight of poorly handled elements, in our case, queries for which | q ( x ) − q ( At )| > λ , by a fixed factor, say, e , and decrease the weight of well-handled elements by the same factor. (The weights are then normalized so as to sum to 1 .) To get a feel for the difficulty, let x = y ∪ { ξ }, and suppose that all queries q are handled well by A t when the database is y , but the addition of ξ causes this to fail for, say, a 1 / 10 fraction of the queries; that is, | q ( y )− q ( At )| ≤ λ for all queries q , but | q ( x )− q ( At )| > λ for some |Q| / 10 queries. Note that, since A t “does well” on 9 / 10 of the queries even
6.1. The boosting for queries algorithm 121
when the database is x , it could be returned from the base sanitizer no matter which of x, y is the true data set. Our concern is with the effects of the updating: when the database is y all queries are well handled and there is no reweighting (after normalization), but when the database is x there is a reweighting: one tenth of the queries have their weights increased, the remaining nine tenths have their weights decreased. This difference in reweighting may be detected in the next iteration via A t +1, which is observable, and which will be built from samples drawn from rather different distributions depending on whether the database is x or y. For example, suppose we start from the uniform distribution D 1. Then D( 2 y )= D( 1 y ), where by D( i z )we mean the distribution at round i when the database is z. This is because the weight of every query is decreased by a factor of e , which disappears in the normalization. So each q ∈ Q is assigned weight 1 / |Q| in D 2 ( y ). In contrast, when the database is x the “unhappy” queries have normalized weight e |Q| 9 10
1 |Q|
1 e +^
1 10
e |Q|
Consider any such unhappy query q. The ratio D 2 ( x )( q ) / D( 2 y )( q ) is given by
D( 2 x )( q ) D( 2 y )( q )
|Q|^ e 109 |Q|^11 e +^101 |Q|^ e 1 |Q|
=
1 + (^) e^92
def = F ≈ 4_._ 5085_._
Now, ln F ≈ 1_._ 506 , and even though the choice of queries used in round 2 by the base generator are not explicitly made public, they may be detectable from the resulting A 2 , which is made public. Thus, there is a potential privacy loss of up to 1_._ 506 per query (of course, we expect cancellations; we are simply trying to explain the source of the difficulty). This is partially addressed by ensuring that the number of samples used by the base generator is relatively small, although we still have the problem that, over multiple iterations, the distributions D t may evolve very differently even on neighboring databases.
6.1. The boosting for queries algorithm 123
approximate values for q ( x ) computed using each of the A i , and then computing their median. With this aggregation method we can show accuracy for query q by arguing that a majority of the A i , 1 ≤ i ≤ T provide λ + μ accuracy (or better) for q. This implies that the median value of the T approximations to q ( x ) will be within λ + μ of the true value.
Notation.
α = α ( η ) = (1 / 2) ln
( 1 + 2 η 1 − 2 η
) .
The algorithm appears in Figure 6.1. The quantity ut,q in Step 2(2b) is the new, un-normalized, weight of the query. For the moment, let us set α = 1 (just so that we can ignore any α factors). Letting aj,q be the natural logarithm of the weight change in round j , 1 ≤ j ≤ t , the new weight is given by:
ut,q ← exp
−
∑^ t
j =
aj,q
(^).
Thus, at the end of the previous step the un-normalized weight was ut − 1 ,q = exp(− ∑ t − 1 j =1 aj,q )^ and the update corresponds to multiplication by e − aj,t^. When the sum
∑ t j =1 aj,q^ is large, the weight is small. Every time a synopsis gives a very good approximation to q ( x ), we add 1 to this sum; if the approximation is only moderately good (between λ and
124 Boosting for Queries
Figure 6.1: Boosting for queries.
λ + μ/ 2 ), we add a positive amount, but less than 1. Conversely, when the synopsis is very bad (worse than λ + μ accuracy), we subtract 1; when it is barely acceptable (between λ + μ/ 2 and λ + μ ), we subtract a smaller amount. In the theorem below we see an inverse relationship between privacy loss due to sampling, captured by ε sample, and the gap μ between the thresholds for accurate and inaccurate.
Theorem 6.1. Let Q be a query family with sensitivity at most ρ. For an appropriate setting of parameters, and with T = log |Q| /η^2 rounds, the algorithm of Figure 6.1 is an accurate and differentially private query-boosting algorithm:
k
√ log(1 /β ) ρ ) / ( ε sample · η^3 )). (6.2)
126 Boosting for Queries
of the aggregation. When we sum the values a + t,q , we get a pos- itive number if and only if the majority of the A t are providing passable — that is, within λ + μ — approximations to q ( x ). In this case the median value will be within λ + μ.
Lemma 6.2. After T rounds of boosting, with all but T β probability, the answers to all but an exp(− η^2 T )-fraction of the queries are ( λ + μ )- accurate.
Proof. In the last round of boosting, we have:
D T +1[ q ] =
uT,q ZT
Since at,q ≤ a + t,q we have:
u + T,q , e − α^
∑ T t =1 a
∑ T t =1 at,q^ = uT,q. (6.5)
(The superscript “+” reminds us that this unweighted value was com- puted using the terms a + t,q .) Note that we always have u + T,q ≥ 0. Com- bining Equations (6.4) and (6.5), for all q ∈ Q:
D T +1[ q ] ≥
u + T,q ZT
Recalling that [[ P ]] denotes the boolean variable that has value 1 if and only if the predicate P is true, we turn to examining the value [[A is ( λ + μ )-inaccurate for q ]]. If this predicate is 1, then it must be the case that the majority of {A j } Tj =1 are ( λ + μ )-inaccurate, as otherwise their median would be ( λ + μ )-accurate. From our discussion of the significance of the sign of
∑ T t =1 a
t,q , we have:
A is ( λ + μ )-inaccurate for q ⇒
∑^ T t =
a + t,q ≤ 0
⇔ e − α^
∑ T t =1 a
t,q (^) ≥ 1 ⇔ u + T,q ≥ 1
Since u + T,q ≥ 0 , We conclude that:
[[A is ( λ + μ )-inaccurate for q ]] ≤ u + T,q
6.1. The boosting for queries algorithm 127
Using this together with Equation (6.6) yields:
1 |Q|
∑
q ∈Q
[[A is ( λ + μ )-inaccurate for q ]] ≤
∑
q ∈Q
u + T,q
∑
q ∈Q
D T +1[ q ] · ZT
Thus the following claim completes the proof:
Claim 6.3. In round t of boosting, with all but tβ probability:
Zt ≤ exp(− η^2 · t ) · |Q|
Proof. By definition of a base synopsis generator, with all but β prob- ability, the synopsis generated is λ -accurate for at least a (1 / 2 + η )- fraction of the mass of the distribution D t. Recall that a − t,q ∈ {− 1 , 1 } is 1 if and only if A t is λ -accurate on q , and that a − t,q ≤ at,q and recall further the quantity rt ,
∑ q ∈Q D t [ q ]^ ·^ a − t,q defined in Equation (6.3). As discussed above, rt measures the “success” of the base synopsis gen- erator in round t , where by “success” we mean the stricter notion of λ -accuracy. As summarized in Equation (6.3), if a (1 / 2 + η )-fraction of the mass of D t is computed with λ -accuracy, then rt ≥ 2 η. Now observe also that for t ∈ [ T ], assuming the base sanitizer did not fail in round t :
Zt =
∑
q ∈Q
ut,q
∑
q ∈Q
ut − 1 ,q · e − α · at,q
∑
q ∈Q
Zt − 1 · D t [ q ] · e − α · at,q
∑
q ∈Q
Zt − 1 · D t [ q ] · e − α · a
− t,q
= Zt − 1 ·
∑
q ∈Q
D t [ q ] ·
(( 1 + a − t,q 2
) · e − α^ +
( 1 − a − t,q 2
) · eα
)
(case analysis)
6.1. The boosting for queries algorithm 129
every q ∈ Q has sensitivity bounded by ρ. Therefore, for every j ≤ i , aj,q is 2 ρ/μ sensitive by construction, and so
gi ( q ) def =
∑^ i
j =
aj,q
has sensitivity at most 2 iρ/μ ≤ 2 T ρ/μ. Then ∆ gi def = 2 T ρ/μ is an upper bound on the sensitivity of gi. To argue privacy, we will show that the selection of queries for Si + is an instance of the exponential mechanism. Think of − gi ( q ) as the utility of a query q during the selection process at round i + 1. The exponential mechanism says that to achieve ( ε ∗ , 0)-differential privacy we should choose q with probability proportional to
exp
( − gi ( q ) ε ∗ 2∆ gi
) .
Since ε ∗ / 2∆ gi = α and the algorithm selects q with probability pro- portional to e − αgi ( q ), we see that this is exactly what the algorithm does!
We bound the privacy loss of releasing the Si s by treating each selec- tion of a query as a “mini-mechanism” that, over the course of T rounds of boosting, is invoked kT times. By Lemma 6.4 each mini-mechanism is (4 αT ρ/μ, 0)-differentially private. By Theorem 3.20, for all β > 0 the composition of kT mechanisms, each of which is ( α 4 T ρ/μ, 0)- differentially private, is ( ε sample , δ sample)-differentially private, where
ε sample def =
√ 2 kT log(1 /δ sample)( α 4 T ρ/μ ) + kT
( (^) α 4 T ρ μ
) 2
. (6.7)
Our total privacy loss comes from the composition of T calls to the base sanitizer and the cumulative loss from the kT samples. We con- clude that the boosting algorithm in its entirety is: ( ε boost , δ boost)- differentially private, where
ε boost = T ε base + ε sample δ boost = T δ base + δ sample
130 Boosting for Queries
To get the parameters claimed in the statement of the theorem, we can take:
μ ∈ O (( T^3 /^2
k
√ log(1 /β ) αρ ) /ε sample). (6.8)
Algorithm SmallDB (Section 4) is based on the insight that a small randomly selected subset of database rows provides good answers to large sets of fractional counting queries. The base synopsis generators described in the current section have an analogous insight: a small synopsis that gives good approximations to the answers to a small subset of queries also yields good approximations to most queries. Both of these are instances of generalization bounds. In the remainder of this section we firs prove a generalization bound and then use it to construct differentially base synopsis generators.
6.2.1 A generalization bound
We have a distribution D over a large set Q of queries to be approx- imated. The lemma below says that a sufficiently small synopsis that gives sufficiently good approximations to the answers of a randomly selected subset S ⊂ Q of queries, sampled according to the distribution D on Q, will, with high probability over the choice of S , also give good approximations to the answers to most queries in Q (that is, to most of the mass of Q, weighted by D ). Of course, to make any sense the synopsis must include a method of providing an answer to all queries in Q, not just the subset S ⊆ Q received as input. Our particular generators, described in Sections 6.2.2 and Theorem 6.6 will produce synthetic databases; to answer any query one can simply apply the query to the synthetic database, but the lemma will be stated in full generality. Let R ( y, q ) denote the answer given by the synopsis y (when used as input for the reconstruction procedure) on query q. A synopsis y λ-fits a database x w.r.t a set S of queries if max q ∈ S | R ( y, q )− q ( x )| ≤ λ. Let | y |
132 Boosting for Queries
the queries in S is in Qy , or
(1 − (log(1 /γ ) + m ) / ( a · m )) a · m^ ≤ e −(log(1 /γ )+ m )^ ≤ γ · 2 − m
Taking a union bound over all 2 m^ possible choices for y , the probability that there exists an m -bit synopsis y that is accurate on all the queries in S but inaccurate on a set of fractional weight (log(1 /β ) + m ) / ( a · m ) is at most γ. Letting k = am = | S | we see that it is sufficient to have
a >
2(log(1 /γ ) + m ) m · (1 − 2 η )
This simple lemma is extremely powerful. It tells us that when constructing a base generator at round t , we only need to worry about ensuring good answers for the small set of random queries sampled from D t ; doing well for most of D t will happen automatically!
6.2.2 The base generator
Our first generator works by brute force. After sampling a set S of k queries independently according to a distribution D, the base gener- ator will produce noisy answers for all queries in S via the Laplace mechanism. Then, making no further use of the actual database, the algorithm searches for any database of size n for which these noisy answers are sufficiently close, and outputs this database. Privacy will be immediate because everything after the k invocations of the Laplace mechanism is in post-processing. Thus the only source of privacy loss is the cumulative loss from these k invocations of the Laplace mechanism, which we know how to analyze via the composition theorem. Utility will follow from the utility of the Laplace mechanism — which says that we are unlikely to have “very large” error on even one query — coupled with the fact that the true database x is an n -element database that fits these noisy responses.^1
(^1) This argument assumes the size n of the database is known. Alternatively we can include a noisy query of the form “How many rows are in the database?” and exhaustively search all databases of size close to the response to this query.
6.2. Base synopsis generators 133
Theorem 6.6 (Base Synopsis Generator for Arbitrary Queries). For any data universe X , database size n , and class Q : {X ∗^ → R} of queries of sensitivity at most ρ , for any ε base , δ base > 0 , there exists an ( ε base , δ base)-differentially private ( k, λ, η = 1 / 3 , β )-base synopsis gen- erator for Q, where k = am > 6( m +log(2 /β )) = 6( n log |X |+log(2 /β )) and λ > 2 b (log k + log (2 /β )), where b = ρ
√ am log(1 /δ base) /ε base. The running time of the generator is |X | n^ · poly( n, log(1 /β ) , log(1 /ε base) , log(1 /δ base)).
Proof. We first describe the base generator at a high level, then deter- mine the values for k and λ. The synopsis y produced by the base generator will be a synthetic database of size n. Thus m = | y | = n · log |X |. The generator begins by choosing a set S of k queries, sampled independently according to D. It computes a noisy answer for each query q ∈ S using the Laplace mechanism, adding to each true answer an independent draw from Lap( b ) for an appropriate b to be determined later. Let { q ̂( x )} q ∈Q be the collection of noisy answers. The generator enumerates over all |X | n^ databases of size n , and out- puts the lexicographically first database y such that for every q ∈ S we have | q ( y ) − q ̂( x )| ≤ λ/ 2. If no such database is found, it outputs ⊥ instead, and we say it fails. Note that if | q ̂( x ) − q ( x )| < λ/ 2 and | q ( y ) − q ̂( x )| < λ/ 2 , then | q ( y ) − q ( x )| < λ. There are two potential sources of failure for our particular gener- ator. One possibility is that y fails to generalize, or is bad as defined in the proof of Lemma 6.5. A second possibility is that one of the samples from the Laplace distribution is of excessively large magnitude, which might cause the generator to fail. We will choose our parameters so as to bound the probability of each of these events individually by at most β/ 2. Substituting η = 1 / 3 and m = n log | X | into Equation 6.9 shows that taking a > 6(1 + log(2 /β ) /m ) suffices in order for the probability of failure due to the choice of S to be bounded by β/ 2. Thus, taking k = am > 6( m + log(2 /β )) = 6( n log |X | + log(2 /β )) suffices. We have k queries of sensitivity at most ρ. Using the Laplace mechanism with parameter b = 2
√ 2 k log(1 /δ base) ρ/ε base, ensures that each query incurs privacy loss at most ε base /
√ 2 k ln(1 /δ base), which by
6.2. Base synopsis generators 135
The resulting database may be quite large, meaning it may have many rows. The base generator then subsamples only n ′^ = (log k log(1 /β )) /α^2 of the rows of the synthetic database, creating a smaller synthetic database that with probability at least 1 − β has α -accuracy with respect to the answers given by the large synthetic database. This yields an m = ((log k log(1 /β )) /α^2 ) log |X |-bit synopsis that, by the generalization lemma, with probability (1 − log(1 /β )) over the choice of the k queries, answers well on a (1 / 2 + η ) fraction of Q (as weighted by D). As in the case of the base generator for arbitrary queries, we require k = am > 6 log(1 /β ) + 6 m. Taking α^2 = (log Q) /n we get that
k > 6 log(1 /β ) + 6 log k log(1 /β ) log |X | α^2 = 6 log(1 /β ) + 6 n log k log(1 /β ) log |X | log |Q|
The syntheticizer is nontrivial. Its properties are summarized by the following theorem.
Theorem 6.7. Let X be a data universe, Q a set of fractional counting queries, and A an ( ε, δ )-differentially private synopsis generator with utility ( α, β, 0) and arbitrary output. Then there exists a syntheticizer A ′^ that is ( ε, δ )-differentially private and has utility (3 α, β, 0). A ′^ out- puts a (potentially large) synthetic database. Its running time is poly- nomial in the running time of A and (|X | , |Q| , 1 /α, log(1 /β )).
In our case, A is the Laplace mechanism, and the synopsis is sim- ply the set of noisy answers. The composition theorem says that for A to be ( ε base , δ base)-differentially private the parameter to the Laplace mechanism should be ρ/ ( ε base /
√ 2 k log(1 /δ base)). For fractional count- ing queries the sensitivity is ρ = 1 /n. Thus, when we apply the Theorem we will have an α of order (
√ k log(1 /β ) /ε base) ρ. Here, ρ is the sensitivity. For counting queries it is 1 , but we will shift to fractional counting queries, so ρ = 1 /n.
Proof Sketch for Theorem 6.7. Run A to get (differentially private) (fractional) counts on all the queries in R. We will then use linear pro- gramming to find a low-weight fractional database that approximates
136 Boosting for Queries
these fractional counts, as explained below. Finally, we transform this fractional database into a standard synthetic database by rounding the fractional counts. The output of A yields a fractional count for each query q ∈ Q. The input database x is never accessed again and so A ′^ is ( ε, δ )-differentially private. Let v be the resulting vector of counts, i.e., vq is the fractional count that A ’s output gives on query q. With probability 1 − β , all of the entries in v are α -accurate. A “fractional” database z that approximates these counts is obtained as follows. Recall the histogram representation of a database, where for each element in the universe X the histogram contains the number of instances of this element in the database. Now, for every i ∈ X , we introduce a variable ai ≥ 0 that will “count” the (fractional) number of occurrences of i in the fractional database z. We will impose the constraint ∑
i ∈X
ai = 1_._
We represent the count of query q in z as the sum of the count of items i that satisfy q : ∑
i ∈X s.t. q ( i )=
ai
We want all of these counts to be within a an additive α accuracy of the respective counts in vq. Writing this as a linear inequality we get:
( vq − α )
∑
i ∈X
ai ≤
∑
i ∈X s.t. q ( i )=
ai ≤ ( vq + α )
∑
i ∈X
ai.
When the counts are all α -accurate with respect to the counts in vc , it is also the case that (with probability 1 − β ) they are all 2 α -accurate with respect to the true counts on the original database x. We write a linear program with two such constraints for each query (a total of 2 |Q| constraints). A ′^ tries to find a fractional solution to this linear program. To see that such a solution exists, observe that the database x itself is α -close to the vector of counts v , and so there exists a solution to the linear program (in fact even an integer solution), and hence A ′^ will find some fractional solution.