Let U={x1,x2,...,xn}⊂Xn be a set of n points from a domain X and Q={f1,f2,...∣fi:X→[0,1]} be a finite set of queries (functions). For any f∈Q and finite set S with domain X, define
f(S)≐∣S∣1x∈S∑f(x)
as the average over the values {f(x):x∈S}. Our goal is to find a subset S with size
O(λ2log∣Q∣)
in a (2ϵ,0) differentially private manner, such that with probability at least 1−δ, it holds simultaneously ∀f∈Q,
∣f(S)−f(U)∣≤λ+λ2ϵnlog∣Q∣log∣X∣+ϵnlog(1/δ)
Existence of Small Representative
Let X be a random element sampled uniformly from U. Then for a fixed f∈Q,
E[f(X)]=f(U)
By Hoeffding, if we take m=λ2ln∣Q∣ independent copies of X, denoted as X1,X2,...,Xm, then
By union bound, this happens for some f∈Q with probability less than 1. Therefore, if we enumerate over all sets S⊂Xm (which takes exponential time), then it is guaranteed that we can find one such that
∣f(S)−f(U)∣≤λ.
This is tighter than the bound we would like to prove. The additional error is due to the privacy protection mechanism.
Release Representative Differential-Privately
We can just release the S blatantly.
Counter Example
Suppose X={0,1}, and U={0,0,...,0}⊂Xn. Further, the set Q contains two copies of the function f, defined as
f(0)=0,f(1)=1.
Assume that λ=n2ln2. Then m=2ln2nln2=n/2. Any S⊂Xm that contains no more than
⌊mn2ln2⌋=⌊n2ln22n⌋=⌊2nln2⌋
ones, will satisfies
∣f(S)−f(U)∣≤λ.
Now, consider a neighboring set U′={0,0,...,1}, obtained by replacing the last zero with one in U. Any S with no more than ⌊2nln2+1⌋ ones satisfies ∣f(S)−f(U′)∣≤λ.
Consider the scenario where we know the underlying set is either U or U′. If a set in Xm with exactly ⌊2nln2+1⌋ is released as an representative of the underlying set, we can infer immediately that the underlying set is U′.
Exponential Mechanism
One remedy for the above problem is that, for a set S⊂Xm, even if ∃f∈Q, s.t., ∣f(S)−f(U)∣>λ, we output S as the representative of U with some probability, because S might be a feasible solution for U's neighbors. This motivates the exponential mechanism. In particular,
It outputs the S∈Xm that minimizes maxf∈Q∣f(S)−f(U)∣ with highest probability.
It outputs other S∈Xm with probability exponentially and inversely proportional to its error maxf∈Q∣f(S)−f(U)∣.
The mechanism, termed M, is as follows.
For S∈Xm, define weight w(U,S)≐exp(−ϵnmaxf∈Q∣f(S)−f(U)∣).
Sample and output an S∈Xm with probability
∑T∈Xmw(U,T)w(U,S)
Privacy
The mechanism M is (2ϵ,0) differentially private.
Proof. Let U′∈Xn be obtained by replacing exactly one element in U. For any T∈Xm, by definition,
For a set U, although we might assign probabilities to bad S∈Xm, as long as the probability mass assigned is small, we are unlikely to get a bad representative.
Theorem. With probability at most δ, M returns an S, such that
f∈Qmax∣f(S)−f(U)∣≥λ+ϵnmlog∣X∣+log(1/δ)
Proof. Let S∗∈Xm be the set that minimizes maxf∈Q∣f(S)−f(U)∣.
For a S∈Xm, if maxf∈Q∣f(S)−f(U)∣≥λ+t for some t>0, then
By requiring this probability to be bounded by some δ>0, we get
t=ϵnmlog∣X∣+log(1/δ)
□.
Substituting m with λ2log∣Q∣, the error is then
λ+ϵnλ2log∣Q∣log∣X∣+log(1/δ)
When λ=(ϵnlog∣Q∣log∣X∣)1/3, the error is given by
2(ϵnlog∣Q∣log∣X∣)1/3+ϵnlog(1/δ)
Reference
[1] S. Vadhan, “The Complexity of Differential Privacy,” in Tutorials on the Foundations of Cryptography, Y. Lindell, Ed. Cham: Springer International Publishing, 2017, pp. 347–450.