Docsity

Additional Models Pan-private streaming model, Lecture notes of Applied Computing

Toggle sidebar
bg1
12
Additional Models
So far, we have made some implicit assumptions about the model of
private data analysis. For example, we have assumed that there is some
trusted curator who has direct access to the private dataset, and we
have assumed that the adversary only has access to the output of the
algorithm, not to any of its internal state during its execution. But what
if this is not the case? What if we trust no one to look at our data,
even to perform the privacy preserving data analysis? What if some
hacker might gain access to the internal state of the private algorithm
while it is running? In this section, we relax some of our previously
held assumptions and consider these questions.
In this section we describe some additional computational models
that have received attention in the literature.
•The local model is a generalization of randomized response (see
Section 2), and is motivated by situations in which individuals do
not trust the curator with their data. While this lack of trust can
be addressed using secure multiparty computation to simulate the
role played by the trusted curator, there are also some techniques
that do not require cryptography.
231
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17

Partial preview of the text

Download Additional Models Pan-private streaming model and more Lecture notes Applied Computing in PDF only on Docsity!

Additional Models

So far, we have made some implicit assumptions about the model of private data analysis. For example, we have assumed that there is some trusted curator who has direct access to the private dataset, and we have assumed that the adversary only has access to the output of the algorithm, not to any of its internal state during its execution. But what if this is not the case? What if we trust no one to look at our data, even to perform the privacy preserving data analysis? What if some hacker might gain access to the internal state of the private algorithm while it is running? In this section, we relax some of our previously held assumptions and consider these questions. In this section we describe some additional computational models that have received attention in the literature.

  • The local model is a generalization of randomized response (see Section 2), and is motivated by situations in which individuals do not trust the curator with their data. While this lack of trust can be addressed using secure multiparty computation to simulate the role played by the trusted curator, there are also some techniques that do not require cryptography.

232 Additional Models

The next two models consider streams of events , each of which may be associated with an individual. For example, an event may be a search by a particular person on an arbitrary term. In a given event stream, the (potentially many) events associated with a given individual can be arbitrarily interleaved with events associated with other individuals.

  • In pan-privacy the curator is trusted, but may be subject to com- pulsory non-private data release, for example, because of a sub- poena, or because the entity holding the information is purchased by another, possibly less trustworthy, entity. Thus, in pan-privacy the internal state of the algorithm is also differentially private, as is the joint distribution of the internal state and the outputs.
  • The continual observation model addresses the question of main- taining privacy when the goal is to continually monitor and report statistics about events, such as purchases of over-the-counter medications that might be indicative of an impending epidemic. Some work addresses pan-privacy under continual observation.

12.1 The local model

So far, we have considered a centralized model of data privacy, in which there exists a database administrator who has direct access to the pri- vate data. What if there is instead no trusted database administrator? Even if there is a suitable trusted party, there are many reasons not to want private data aggregated by some third party. The very existence of an aggregate database of private information raises the possibility that at some future time , it will come into the hands of an untrusted party, either maliciously (via data theft), or as a natural result of orga- nizational succession. A superior model — from the perspective of the owners of private data — would be a local model, in which agents could (randomly) answer questions in a differentially private manner about their own data, without ever sharing it with anyone else. In the con- text of predicate queries, this seems to severely limit the expressivity of a private mechanism’s interaction with the data: The mechanism can ask each user whether or not her data satisfies a given predicate, and

234 Additional Models

never sees private data, the internal state of the algorithm is always differentially private as well (i.e., local privacy implies pan privacy, described in the next section). A natural question is how restrictive the local privacy model is. In this section, we merely informally discuss results. The interested reader can follow the bibliographic references at the end of this section for more information. We note that an alternative name for the local privacy model is the fully distributed model. We recall the definition of the statistical query (SQ) model, intro- duced in Section 11. Roughly speaking, given a database x of size n , the statistical query model allows an algorithm to access this database by making a polynomial (in n ) number of noisy linear queries to the database, where the error in the query answers is some inverse polyno- mial in n. Formally:

Definition 12.4. A statistical query is some function φ : X × { 0 , 1 } → [0 , 1]. A statistical query oracle for a distribution over labeled exam- ples D with tolerance τ is an oracle O τ D such that for every statistical query φ : (^) ∣ ∣∣O τ D( φ )^ −^ E( x,y )∼D[ φ ( x, y )]

∣∣ ∣ ≤ τ

In other words, an SQ oracle takes as input a statistical query φ , and outputs some value that is guaranteed to be within ± τ of the expected value of φ on examples drawn from D.

Definition 12.5. An algorithm A is said to SQ-learn a class of functions C if for every α, β > 0 there exists an m = poly( d, 1 /α, log(1 /β )) such that A makes at most m queries of tolerance τ = 1 /m to O τ D, and with probability 1 − β , outputs a hypothesis f ∈ C such that:

err( f, D) ≤ min f ∗∈ C err( f ∗ , D) + α

More generally, we can talk about an algorithm (for performing any computation) as operating in the SQ model if it accesses the data only through an SQ oracle:

Definition 12.6. An algorithm A is said to operate in the SQ model if there exists an m such that A makes at most m queries of tolerance τ = 1 /m to O Dτ , and does not have any other access to the database. A is efficient if m is polynomial in the size of the database, D.

12.1. The local model 235

It turns out that up to polynomial factors in the size of the database and in the number of queries, any algorithm that can be implemented in the SQ model can be implemented and analyzed for privacy in the local privacy model, and vice versa. We note that there is a distinction between an algorithm being implemented in the SQ model, and its privacy analysis being carried out in the local model: almost all of the algorithms that we have presented in the end access the data using noisy linear queries, and so can be thought of as acting in the SQ model. However, their privacy guarantees are analyzed in the centralized model of data privacy (i.e., because of some “global” part of the analysis, as in the sparse vector algorithm). In the following summary, we will also recall the definition of PAC learning, also introduced in Section 11:

Definition 12.7. An algorithm A is said to PAC-learn a class of func- tions C if for every α, β > 0 , there exists an m = poly( d, 1 /α, log(1 /β )) such that for every distribution D over labeled examples, A takes as input m labeled examples drawn from D and outputs a hypothesis f ∈ C such that with probability 1 − β :

err( f, D) ≤ min f ∗∈ C

err( f ∗ , D) + α

If min f ∗∈ C err( f ∗ , D) = 0, the learner is said to operate in the realizable setting (i.e., there exists some function in the class which perfectly labels the data). Otherwise, the learner is said to operate in the agnostic setting. If A also has run time that is polynomial in d, 1 /α , and log(1 /β ), then the learner is said to be efficient. If there is an algorithm which PAC-learns C , then C is said to be PAC-learnable. Note that the main distinction between an SQ learning algorithm and a PAC learning algorithm, is that the PAC learning algorithm gets direct access to the database of examples, whereas the SQ learning algorithm only has access to the data through a noisy SQ oracle. What follows is some of our understanding of the limitations of the SQ model and problems which separate it from the centralized model of data privacy.

12.2. Pan-private streaming model 237

whereas algorithms in the local privacy model tend to be extremely simple.

12.2 Pan-private streaming model

The goal of a pan-private algorithm is to remain differentially private even against an adversary that can, on rare occasions, observe the algo- rithm’s internal state. Intrusions can occur for many reasons, including hacking, subpoena, or mission creep , when data collected for one pur- pose are used for a different purpose (“Think of the children!”). Pan- private streaming algorithms provide protection against all of these. Note that ordinary streaming algorithms do not necessarily provide privacy against intrusions, as even a low-memory streaming algorithm can hold a small number of data items in memory, which would be completely exposed in an intrusion. On the technical side, intrusions can be known to the curator (subpoena) or unknown (hacking). These can have very different effects, as a curator aware of an intrusion can take protective measures, such as re-randomizing certain variables.

12.2.1 Definitions

We assume a data stream of unbounded length composed of elements in a universe X. It may be helpful to keep in mind as motivation data analysis on a query stream, in which queries are accompanied by the IP address of the issuer. For now, we ignore the query text itself; the universe X is the universe of potential IP addresses. Thus, intuitively, user-level privacy protects the presence or absence of an IP address in the stream, indpendent of the number of times it arises, should it actually be present at all. In contrast, event-level privacy merely protects the privacy of individual accesses. For now, we focus on user- level privacy. As usual in differentially private algorithms, the adversary can have arbitrary control of the input stream, and may have arbitrary auxil- iary knowledge obtained from other sources. It can also have arbitrary computational power.

238 Additional Models

We assume the algorithm runs until it receives a special signal, at which point it produces (observable) outputs. The algorithm may optionally continue to run and produce additional outputs later, again in response to a special signal. Since outputs are obvservable we do not provide privacy for the special signals. A streaming algorithm experiences a sequence of internal states. and produces a (possibly unbounded) sequence of outputs. Let I denote the set of possible internal states of the algorithm, and σ the set of possible output sequences. We assume that the adversary can only observe internal states and the output sequence; it cannot see the data in the stream (although it may have auxiliary knowledge about some of these data) and it has no access to the length of the input sequence.

Definition 12.8 (X -Adjacent Data Streams). We think of data streams as being of unbounded length; prefixes have finite length. Data streams S and S ′^ are X -adjacent if they differ only in the presence or absence of all occurrences of a single element u ∈ X. We define X -adjacency for stream prefixes analogously.

User-Level Pan-Privacy. An algorithm Alg mapping data stream prefixes to the range I × σ , is pan-private against a single intrusion if for all sets I′^ ⊆ I of internal states and σ ′^ ⊆ σ of output sequences, and for all pairs of adjacent data stream prefixes S, S ′

Pr[ Alg ( S ) ∈ (I′ , σ ′)] ≤ eε^ Pr[ Alg ( S ′) ∈ (I′ , σ ′)] ,

where the probability spaces are over the coin flips of the algorithm Alg. This definition speaks only of a single intrusion. For multiple intru- sions we must consider interleavings of observations of internal states and outputs. The relaxation to event-level privacy is obtained by modifying the notion of adjacency so that, roughly speaking, two streams are event- adjacent if they differ in a single instance of a single element in X ; that is, one instance of one element is deleted/added. Clearly, event-level privacy is a much weaker guarantee than user-level privacy.

240 Additional Models

  • Estimating the t-cropped mean : roughly, the average, over all ele- ments, of the minimum of t and the number of occurrences of the element in the data stream;
  • Estimating the fraction of k -heavy hitters (elements of X that appear at least k times in the data stream).

Variants of these problems can also be defined for fully dynamic data, in which counts can be decremented as well as incremented. For example, density estimation (what fraction appeared in the stream?) becomes “How many (or what fraction) of elements have a (net) count equal to zero?” These, too, can be solved with user-level pan-privacy, using dif- ferentially private variations of sketching techniques from the streaming literature.

12.3 Continual observation

Many applications of data analysis involve repeated computations, either because the entire goal is one of monitoring of, for example, traf- fic conditions, search trends, or incidence of influenza. In such applica- tions the system is required to continually produce outputs. We there- fore need techniques for achieving differential privacy under continual observation. As usual, differential privacy will require having essentially the same distribution on outputs for each pair of adjacent databases, but how should we define adjacency in this setting? Let us consider two example scenarios. Suppose the goal is to monitor public health by analyzing statis- tics from an H1N1 self-assessment Web site.^1 Individuals can inter- act with the site to learn whether symptoms they are experiencing may be indicative of the H1N1 flu. The user fills in some demographic data (age, zipcode, sex), and responds to queries about his symptoms (fever over 100_._ 4 ◦F?, sore throat?, duration of symptoms?). We would expect a given individual to interact very few times with the H1N self-assessment site (say, if we restrict our attention to a six-month

(^1) https://h1n1.cloudapp.net provided such a service during the winter of 2010; user-supplied data were stored for analysis with the user’s consent.

12.3. Continual observation 241

period). For simplicity, let us say this is just once. In such a setting, it is sufficient to ensure event-level privacy, in which the privacy goal is to hide the presence or absence of a single event (interaction of one user with the self-assessment site). Suppose again that the goal is to monitor public health, this time by analyzing search terms submitted to a medical search engine. Here it may no longer be safe to assume an individual has few interactions with the Web site, even if we restrict attention to a relatively short period of time. In this case we would want user-level privacy, ensuring that the entire set of a user’s search terms is protected simultaneously. We think of continual observation algorithms as taking steps at discrete time intervals; at each step the algorithm receives an input, computes, and produces output. We model the data as arriving in a stream, at most one data element in each time interval. To capture the fact that, in real life, there are periods of time in which nothing hap- pens, null events are modeled by a special symbol in the data stream. Thus, the intuitive notion of “ t time periods” corresponds to processing a sequence of t elements in the stream. For example, the motivation behind the counter primitive below is to count the number of times that something has occurred since the algorithm was started (the counter is very general; we don’t specify a priori what it is counting). This is modeled by an input stream over { 0 , 1 }. Here, “0” means “nothing happened,” “1” means the event of interest occurred, and for t = 1 , 2 ,... , T the algorithm outputs an approximation to the number of 1s seen in the length t prefix of the stream. There are three natural options:

  1. Use randomized response for each time period and add this ran- domized value to the counter;
  2. Add noise distributed according to Lap(1 /ε ) to the true value for each time step and add this perturbed value to the counter;
  3. Compute the true count at each time step, add noise distributed according to Lap( T /ε ) to the count, and release this noisy count.

All of these options result in noise on the order of at least Ω(

T /ε ). The hope is to do much better by exploiting structure of the query set.

12.3. Continual observation 243

Figure 12.1: Event-level private counter algorithm (not pan-private).

disjoint intervals whose union is [0 , t ], and computes the sum of the corresponding released noisy counts.^2 See Figure 12.1. Each stream position t ∈ [0 , T − 1] appears in at most 1 + log 2 T intervals (because the height of the tree is log 2 T ), and so each ele- ment in the stream affects at most 1 + log 2 T released noisy counts. Thus, adding noise to each interval count distributed according to Lap((1 + log 2 T ) /ε ) ensures ( ε, 0)-differential privacy. As for accuracy, since the binary representation of any index t ∈ [0 , T − 1] yields a dis- joint set of at most log 2 T intervals whose union is [0 , t ] we can apply Lemma 12.2 below to conclude that the expected error is tightly con- centrated around (log 2 T )^3 /^2. The maximum expected error, over all times t , is on the order of (log 2 T )^5 /^3.

Lemma 12.2. Let Let Y 1 ,... , Yk be independent variables with distri- bution Lap( bi ). Let Y = ∑ i Yi^ and^ b max^ = max i^ bi. Let^ ν^ ≥^

√∑ i ( bi )^2 , and 0 < λ <^2

√ 2 ν 2 b max. Then

Pr[ Y > λ ] ≤ exp

( −

λ^2 8 ν^2

) . (^2) This algorithm can be optimized slightly (for example, we never use the count corresponding to the root, eliminating one level from the tree), and it can be modified to handle the case in which T is not a power of 2 and, more interestingly, when T is not known a priori.

244 Additional Models

Proof. The moment generating function of Yi is E[exp( hYi )] = 1 / (1 − h^2 b^2 i ), where | h | < 1 /bi. Using the inequality (1 − x )−^1 ≤ 1 + 2 x ≤ exp(2 x ) for 0 ≤ x < 1 / 2 , we have E[exp( hYi )] ≤ exp(2 h^2 b^2 i ), if | h | < 1 / 2 bi. We now calculate, for 0 < h < 1 /

2 b max:

Pr[ Y > λ ] = Pr[exp( hY ) > exp( hλ )] ≤ exp(− hλ )E[exp( hY )] = exp(− hλ )

∏

i

E[exp( hYi )]

≤ exp(− hλ + 2 h^2 ν^2 ).

By assumption, 0 < λ <^2

√ 2 ν^2 b max. We complete the proof by setting h = λ/ 4 ν^2 < 1 /

2 b max.

Corollary 12.3. Let Y, ν, { bi } i, b max be as in Lemma 12.2. For δ ∈

(0 , 1) and ν > max{

√∑ i b 2 i , b max

√ ln(2 /δ )}, we have that Pr[| Y | >

ν

√ 8 ln(2 /δ )] ≤ δ.

In our case, all the bi ’s are the same (e.g., b = (log 2 T ) /ε ). Taking ν =

kb we have the following corollary:

Corollary 12.4. For all λ < α (

kb ) < 2

2 kb = 2

2 kν ,

Pr[ Y > λ ] ≤ e − α

(^2) / 8 .

Note that we have taken the unusual step of adding noise to the count before counting, rather than after. In terms of the outputs it makes no difference (addition is commutative). However, it has an inter- esting effect on the algorithm’s internal states: they are differentially private! That is, suppose the intrusion occurs at time t , and consider any i ∈ [0 , t ]. Since there are at most log 2 T intervals containing step i (in the algorithm we abolished the interval corresponding to the root), xi affects at most log 2 T of the noisy counts, and so xi is protected against the intrusion for exactly the same reason that it is protected in the algorithm’s outputs. Nevertheless, the algorithm in Figure 12.1 is not pan-private even against a single intrusion. This is because, while its internal state and its outputs are each independently differentially private, the joint distribution does not ensure ε -differential privacy. To

246 Additional Models

Figure 12.2: Event-level pan-private counter algorithm.

(recall that we begin numbering the elements with 0), the view of the adversary consists of (1) the noisy cumulative count (in the variable “count”), (2) the interval noise values ηS in memory when the intrusion occurs, and (3) the complete sequence of all of the algorithm’s outputs in rounds 0 , 1 ,... , t. Consider adjacent databases x and x ′, which differ in time t , say, without loss of generality, xt = 1 and x ′ t = 0, and an intrusion immediately following time period t ∗^ ≥ t (we will discuss the case t ∗^ < t below). We will describe a bijection between the vector of noise values used in executions on x and executions on x ′, such that corresponding noise values induce identical adversary views on x and x ′, and the probabilities of adjacent noise values differ only by an eε multiplicative factor. This implies ε -differential pan-privacy. By assumption, the true count just after the time period t ∗^ ≥ t is larger when the input is x than it is when the input is x ′. Fix an arbitrary execution Ex when the input stream is x. This amounts to fixing the randomness of the algorithm, which in turn fixes the noise values generated. We will describe the corresponding execution Ex ′^ by describing how its noise values differ from those in Ex. The program variable Counter was initialized with Laplace noise. By increasing this noise by 1 in Ex ′^ the value of Counter just after step t ∗^ is identical in Ex ′ and Ex. The noise variables in memory immedi- ately following period t ∗^ are independent of the input; these will be

12.3. Continual observation 247

unchanged in Ex ′. We will make the sequence of outputs in Ex ′ identi- cal to those in Ex by changing a collection of log T interval noise values ηS that are not in memory when the adversary intrudes, so that the sum of all noise values in all rounds up through t − 1 is unchanged, but the sum from round t on is larger by 1 for database x ′^ than for x. Since we increased the initialization noise for Counter, we now need to decrease the sum of interval noise values for periods 0 ,... , t − 1 by 1, and leave unchanged the sum of interval noise values from period t. To do this, we find a collection of disjoint intervals whose union is { 0 ,... , t − 1 }. There is always such a collection, and it is always of size at most log T. We can construct it iteratively by, for i decreasing from blog( t − 1)c to 0, choosing the interval of size 2 i^ that is contained in { 0 ,... , t − 1 } and is not contained in a previously chosen interval (if such an interval exists). Given this set of disjoint intervals, we notice also that they all end by time t − 1 < t ≤ t ∗, and so their noises are not in memory when the adversary intrudes (just following period t ∗). In total (taking into account also changing the initial noise value for Counter), the complete view seen by the adversary is identical and the probabilities of the (collection of) noise values used for x and x ′^ differ by at most an eε^ multiplicative factor. Note that we assumed t ∗^ ≥ t. If t ∗^ < t then the initial noise added to Counter in Ex ′ will be the same as in Ex , and we need to add 1 to the sum of interval noises in every time period from t through T (the sum of interval noises before time t remains unchanged). This is done as above, by finding a disjoint collection of at most log T intervals that exactly covers { t,... , T − 1 }. The noise values for these intervals are not yet in memory when the intrusion occurs in time t ∗^ < t , and the proof follows similarly.

12.3.2 A logarithmic (in T ) lower bound

Given the upper bound of Theorem 12.5, where the error depends only poly-logarithmically on T , it is natural to ask whether any dependence is inherent. In this section we show that a logarithmic dependence on T is indeed inherent.

12.4. Average case error for query release 249

that we have low error for every query, but it does guarantee that on average, we have small error. Although this sort of bound is weaker than worst-case error, the mechanism is particularly simple, and it makes use of an elegant geometric view of the query release problem that we have not seen until now. Recall that we can view the database x as a vector x ∈ N|X |^ with ‖ x ‖ 1 = n. We can similarly also view the queries fi ∈ Q as vectors fi ∈ N|X |, such that fi ( x ) = 〈 fi, x 〉. It will therefore be helpful to view our class of queries Q as a matrix A ∈ R k ×|X |, with the i th row of A being the vector fi. We can then see that our answer vector a ∈ R k^ is, in matrix notation: A · x = a.

Let’s consider the domain and range of A when viewed as a linear map. Write B 1 = { x ∈ R|X |^ : ‖ x ‖ 1 = 1} denote the unit ` 1 ball in |X | dimensional space. Observe that x ∈ nB 1 , since ‖ x ‖ 1 = n. We will refer to nB 1 as “Database Space.” Write K = AB 1. Note similarly that for all x ∈ nB 1 , a = A · x ∈ nK. We will refer to nK as “answer space.” We make a couple of observations about K : Note that because B 1 is centrally symmetric, so is K — that is, K = − K. Note also that K ⊂ R k^ is a convex polytope with vertices ± A^1 ,... , ± A |X |^ equal to the columns of A , together with their negations. The following algorithm is extremely simple: it simply answers every query independently with the Laplace mechanism, and then projects back into answer space. In other words, it adds independent Laplace noise to every query, which as we have seen, by itself leads to distortion that is linear in k (or at least

k , if we relax to ( ε, δ )-differential pri- vacy). However, the resulting vector ˜ a of answers is likely not consistent with any database y ∈ nB 1 in database space. Therefore, rather than returning ˜ a , it instead returns some consistent answer vector ˆ a ∈ nK that is as close to a ˜ as possible. As we will see, this projection step improves the accuracy of the mechanism, while having no effect on privacy (since it is just post-processing!) We first observe that Project is differentially private.

Theorem 12.7. For any A ∈ [0 , 1] k ×|X |, Project ( x, A, ε ) preserves ( ε, δ )-differential privacy.

250 Additional Models

Algorithm 18 The K -Projected Laplace Mechanism. It takes as input a matrix A ∈ [0 , 1] k ×|X |, a database x ∈ nB 1 , and a privacy parameters ε and δ. Project ( x, A, ε, δ ):

Let a = A · x For each i ∈ [ k ], sample νi ∼ Lap(

√ 8 k ln(1 /δ ) /ε ), and let ˜ a = a + ν.

Output ˆ a = arg minˆ a ∈ nK ‖ˆ a − ˜ a ‖^22.

Proof. We simply note that ˜ a is the output of the Laplace mechanism on k sensitivity 1 queries, which is ( ε, δ )-differentially private by Theo- rems 3.6 and 3.20. Finally, since a ˆ is derived from ˜ a without any further access to the private data, the release of ˆ a is differentially private by the post-processing guarantee of differential privacy, Proposition 2.1.

Theorem 12.8. For any class of linear queries A and database x , let a = A · x denote the true answer vector. Let ˆ a denote the output of the mechanism Project : a ˆ = Project ( x, A, ε ). With probability at least 1 − β :

‖ a − ˆ a ‖^22 ≤ kn

√ 192 ln(1 /δ ) ln(2|X | /β ) ε

To prove this theorem, we will introduce a couple of simple concepts from convex geometry. For a convex body K ⊂ R k , its polar body is K ◦ defined to be K ◦^ = { y ∈ R k^ : 〈 y, x 〉 ≤ 1 for all x ∈ K }. The Minkowski Norm defined by a convex body K is

‖ x ‖ K ≡ min{ r ∈ R such that x ∈ rK }.

The dual norm of ‖ x ‖ K is the Minkowski norm induced by the polar body of K , i.e., ‖ x ‖ K ◦. This norm also has the following form:

‖ x ‖ K ◦^ = max y ∈ K 〈 x, y 〉.

The key fact we will use is Holder’s Inequality , which is satisfied by all centrally symmetric convex bodies K :

|〈 x, y 〉| ≤ ‖ x ‖ K ‖ y ‖ K ◦.