The bit guessing game models two players, namely Alice and Bob, where Alice has a secret vector x∈{0,1}n which Bob tries to learn. Bob is only allowed to ask Alice the value of
c⋅x
for bit vector c∈{0,1}n he comes up with. Under this setting, it is trivial for Bob to learn each bit of x: he needs to just query Alice for ei⋅x, where ei is the indicator vector with its i-th dimension equal to 1 and other dimensions equal to 0.
One way for Alice to prevent information leakage is to add some bounded noise Z to the query result and returns
r(c)≐c⋅x+Z
For example, Z could be a bounded random variable. Is is still a chance for Bob to learn the vector x?
Theorem 1. If Bob is allowed to query r(c) for all c∈{0,1}n, and suppose that Z is bounded by some real number R, then Bob can have an estimation y such that
∣x−y∣=i=1∑n∣xi−yi∣≤4R
Remark:In this case Bob queries for 2n vectors. This result implies that is Bob is able to ask exponential number of questions, then it is hard to prevent information leakage. E.g., suppose R=n/400, which is a relatively large number when n is large, the theorem says that Bob can recover 99% of bits in x.
Proof: We say a vector y is consistent with a query result r(c) if
∣r(c)−c⋅y∣≤R.
The strategy of Bob is to choose any y that is consistent with all c∈{0,1}n. Such y exits, a special of which is given by y=x. It remains to prove that such an y satisfies the constraint.
Consider the special case of c=x,
∣r(x)−x⋅y∣≤R∣r(x)−x⋅x∣≤R
By triangle inequality, it holds
∣x⋅y−x⋅x∣≤2R.
Observe that x⋅x≥x⋅y, which implies
∣x⋅y−x⋅x∣=x⋅x−x⋅y≤2R
Hence, y and x differ by at most 2R bits, on the non-zero dimensions of x.
Let xˉ be the bit-wise complement of x. By similar arguments, we get
∣xˉ⋅y−xˉ⋅x∣≤2R.
and x and y differ by at most 2R bits, on the zero dimensions of x. It concludes that ∣x−y∣≤4R.
■
What if Bob asks O(n) questions? The following theorem states that if Z is bounded by O(n), then Bob is able to have a good estimation of x.
Theorem 2. If Bob is able to ask log23−logλnlog2+lnn queries, and Z is bounded by αn, then Bob can obtains an estimation y, such that
∣x−y∣≤(3eλα)2⋅n
Proof: As before, a vector y is said to be consistent with a query result r(c) if
∣r(c)−c⋅y∣≤αn.
It suffices to find a sequence of vectors c1,c2,...,ck (k is a value to be determined), such that
k=O(n),
For any y with ∣x−y∣>(3eλα)2⋅n, there exists at least one ci, such that y is not consistent with r(ci), with high probability.
If Bob can find a sequence of query vectors with the specified properties, he can rule out any y such that ∣x−y∣>(3eλα)2⋅n. Note that not every vector in {0,1}n will be ruled out. At least x will remain. Bob can output any y that is not ruled out as his guess of x.
It turns out that fining ci's is simple: each ci is sampled independently and uniformly at random from {0,1}n. It remains to prove that any y with ∣x−y∣>(3eλα)2⋅n will be ruled out with high probability.
For a fix i, consider the probability of
Pr[∣r(ci)−ci⋅y∣>αn]=Pr[∣ci⋅(x−y)∣>αn].
Lower bounding this probability is equivalent to upper bounding the probability
Pr[∣ci⋅(x−y)∣≤αn].
Lemma.For a value l∈N,
Pr[∣ci⋅(x−y)∣=l]≤∣x−y∣e
We leave the proof of the lemma at the end of our discussion. It following by union bound that
Conditioning on that ∣x−y∣>(3eλα)2⋅n, this probability is at most
Pr[∣ci⋅(x−y)∣≤αn]≤32λ
The probability that this holds simultaneously for all ci is therefore (32λ)k. Applying union bound over all y such that ∣x−y∣>(3eα)2⋅n, we have an upper bound of failure probability
(32λ)k2n=exp(klog32λ+nlog2)
If we take k=log23−logλnlog2+lnn, this probability becomes n1.
Proof of the lemma: Without lose of generality, suppose that l≥0. Observe that x−y is a vector in {−1,0,1}n. Denote v=∣x−y∣ be the number of non-zero dimensions in x−y. Further, let v+ (v−) be the number of positive (negative) dimensions in x−y. Hence, v=v++v−. As ci is sampled uniformly from {0,1}n, we have
The idea behind Theorem 2 is more obvious if we study the scenario where x∈{−1,1}n. For any estimation y∈{−1,1}n, if c is sampled uniformly at random from {−1,1}n, then
E[c(x−y)]=0
If ∣x−y∣=O(α2n), by anti-concentration property, the probability
Pr[∣c(x−y)∣≥αn]
equals to some constant. Equivalently, Pr[∣c(x−y)∣<αn] is some constant. By sampling c repeatedly, the probability that ∣c(x−y)∣<αn holds for all sampled c decreases exponentially. That is why we can rule out any y such that ∣x−y∣=O(α2n) with high probability.
Reference
[1] C. Dwork and A. Roth, “The Algorithmic Foundations of Differential Privacy,” Foundations and Trends in Theoretical Computer Science, vol. 9, no. 3–4, pp. 211–407, 2013