The exponential mechanism is a technique for designing differentially private algorithms. It was developed by Frank McSherry and Kunal Talwar in 2007. Their work was recognized as a co-winner of the 2009 PET Award for Outstanding Research in Privacy Enhancing Technologies. Most of the initial research in the field of differential privacy revolved around real-valued functions which have relatively low sensitivity to change in the data of a single individual and whose usefulness is not hampered by small additive perturbations. A natural question is what happens in the situation when one wants to preserve more general sets of properties. The exponential mechanism helps to extend the notion of differential privacy to address these issues. Moreover, it describes a class of mechanisms that includes all possible differentially private mechanisms.
The mechanism Source:
Algorithm In very generic terms, a privacy mechanism maps a set of n inputs from domain 𝒟 to a range ℛ. The map may be randomized, in which case each element of the domain 𝒟 corresponds to a probability distribution over the range ℛ. The privacy mechanism makes no assumption about the nature of 𝒟 and ℛ apart from a base measure μ on ℛ. Let us define a function q:𝒟n×ℛ→ℝ. Intuitively this function assigns a score to the pair (d,r), where d∈𝒟n and r∈ℛ. The score reflects the appeal of the pair (d,r), i.e. the higher the score, the more appealing the pair is. Given the input d∈𝒟n, the mechanism's objective is to return an r∈ℛ such that the function q(d,r) is approximately maximized. To achieve this, set up the mechanism ℰqε(d) as follows: Definition: For any function q:(𝒟n×ℛ)→ℝ, and a base measure μ over ℛ, define:
ℰqε(d):= Choose r with probability proportional to eεq(d,r)×μ(r), where d∈𝒟n,r∈ℛ. This definition implies the fact that the probability of returning an r increases exponentially with the increase in the value of q(d,r). Ignoring the base measure μ then the value r which maximizes q(d,r) has the highest probability. Moreover, this mechanism is differentially private. Proof of this claim will follow. One technicality that should be kept in mind is that in order to properly define ℰqε(d) the ∫reεq(d,r)×μ(r) should be finite. Theorem (differential privacy): ℰqε(d) gives (2εΔq)-differential privacy, where Δq is something that we need to define. Proof: The probability density of ℰqε(d) at r equals
eεq(d,r)μ(r)∫eεq(d,r)μ(r)dr. Now, if a single change in d changes q by at most Δq then the numerator can change at most by a factor of eεΔq and the denominator minimum by a factor of e−εΔq. Thus, the ratio of the new probability density (i.e. with new d) and the earlier one is at most exp(2εΔq).
Accuracy We would ideally want the random draws of r from the mechanism ℰqε(d) to nearly maximize q(d,r). If we consider maxrq(d,r) to be OPT then we can show that the probability of the mechanism deviating from OPT is low, as long as there is a sufficient mass (in terms of μ) of values r with value q close to the optimum. Lemma: Let St={r:q(d,r)>OPT−t} and S¯2t={r:q(d,r)≤OPT−2t}, we have p(S¯2t) is at most exp(−εt)/μ(St). The probability is taken over ℛ. Proof: The probability p(S¯2t) is at most p(S¯2t)/p(St), as the denominator can be at most one. Since both the probabilities have the same normalizing term so,
p(S¯2t)p(St)=∫S¯2texp(εq(d,r))μ(r)dr∫Stexp(εq(d,r))μ(r)dr≤exp(−εt)μ(S¯2t)μ(St). The value of μ(S¯2t) is at most one, and so this bound implies the lemma statement. Theorem (Accuracy): For those values of t≥ln(OPTtμ(St))/ε, we have E[q(d,ℰqε(d))]≥OPT−3t. Proof: It follows from the previous lemma that the probability of the score being at least OPT−2t is 1−exp(−εt)/μ(St). By hypothesis, t≥ln(OPTtμ(St))/ε. Substituting the value of t we get this probability to be at least 1−t/OPT. Multiplying with OPT−2t yields the desired bound. We can assume μ(A) for A⊆ℛ to be less than or equal to one in all the computations, because we can always normalize with μ(ℛ) .
Example application Source: Before we get into the details of the example let us define some terms which we will be using extensively throughout our discussion. Definition (global sensitivity): The global sensitivity of a query Q is its maximum difference when evaluated on two neighbouring datasets D1,D2∈𝒟n:
GSQ=maxD1,D2:d(D1,D2)=1|(Q(D1)−Q(D2))|. Definition: A predicate query Qφ for any predicate φ is defined to be
Qφ=|{x∈D:φ(x)}||D|. Note that GSQφ≤1/n for any predicate φ.
Release mechanism The following is due to Avrim Blum, Katrina Ligett and Aaron Roth. Definition (Usefulness): A mechanism 𝒜 is (α,δ)-useful for queries in class H with probability 1−δ, if ∀h∈H and every dataset D, for D^=𝒜(D), |Qh(D^)−Qh(D)|≤α. Informally, it means that with high probability the query Qh will behave in a similar way on the original dataset D and on the synthetic dataset D^. Consider a common problem in Data Mining. Assume there is a database D with n entries. Each entry consist of k-tuples of the form (x1,x2,…,xk) where xi∈{0,1}. Now, a user wants to learn a linear halfspace of the form π1x1+π2x2+⋯+πk−1xk−1≥xk. In essence the user wants to figure out the values of π1,π2,…,πk−1 such that maximum number of tuples in the database satisfy the inequality. The algorithm we describe below can generate a synthetic database D^ which will allow the user to learn (approximately) the same linear half-space while querying on this synthetic database. The motivation for such an algorithm being that the new database will be generated in a differentially private manner and thus assure privacy to the individual records in the database D. In this section we show that it is possible to release a dataset which is useful for concepts from a polynomial VC-Dimension class and at the same time adhere to ε-differential privacy as long as the size of the original dataset is at least polynomial on the VC-Dimension of the concept class. To state formally: Theorem: For any class of functions H and any dataset D⊂{0,1}k such that
… excerpt ends here. Continue reading the full article.