Reconstruction from random ±1 queries #
A database holds one secret sign per person, d : ι → Bool, read as signVal (d i) ∈ {1, -1}.
A ±1 query v : ι → Bool asks for signDot v d = ∑ i, signVal (v i) * signVal (d i), the inner
product of the two sign vectors. Dwork and Roth's databases and queries live in {-1, 1} ^ n, and
signVal is the identification (false ↦ 1, true ↦ -1). For m queries A : κ → ι → Bool,
answers y : κ → ℝ are within α of the truth on at least a 1 / 2 + η fraction of the queries
when (1 / 2 + η) m ≤ #{j | |y j - signDot (A j) d| ≤ α} (AnswersWithin A y d α η). The other
answers are arbitrary.
Theorem ([DworkRoth2014, Theorem 8.2], with a corrected constant). Draw m ≥ b n uniformly
random ±1 queries on n rows. Except with probability at most exp (-n (η b / 4 - ln 3)) over
the queries, the following holds for every database d and all answers within α on a
1 / 2 + η fraction: the adversary (reconstructSigned) recovers d in all but fewer than
((⌊α⌋₊ + 1) / η) ^ 2 positions (toOuterMeasure_exists_le_hammingDist_reconstructSigned_le).
The adversary outputs any database whose answers are also within α on a 1 / 2 + η fraction;
the true database is a candidate. The good event depends only on the queries, so the guarantee
holds against every curator, including one that sees the queries before answering. Dwork and Roth
credit the attack to Dwork, McSherry and Talwar [DworkRoth2014, §8.3].
The proof follows Dwork and Roth. Two databases c, d that both fit the answers agree with them
on a common 2 η fraction of the queries, where |signDot v c - signDot v d| ≤ 2 α. The difference
is 2 ∑ i, signVal (v i) z i for the disagreement pattern z : ι → SignType. If z has at least
k nonzero entries, the Erdős–Littlewood–Offord bound
(Combinatorics.LittlewoodOfford.card_filter_sum_bool_Ico_le_two_pow_div_sqrt), applied to
⌊α⌋₊ + 1 unit windows, bounds the chance that a random query lands in this window by
(⌊α⌋₊ + 1) / √(k + 1). That is at most η once k ≥ ((⌊α⌋₊ + 1) / η) ^ 2. Chernoff
(Probability.PMF.pi_sum_ge_one_add_mul_of_le_one) bounds the chance that a fixed such z
survives m independent queries by exp (-η m / 3). A union bound over the 3 ^ n patterns
gives 3 ^ n exp (-η m / 3) (toOuterMeasure_reconstructionFails_le). That is at most Dwork and
Roth's exp (-n (η b / 4 - ln 3)).
The constant. Dwork and Roth state (2 α / η) ^ 2 for every α.
- For
α ≥ 1 / 2we have⌊α⌋₊ + 1 ≤ 2 α, so the theorem above implies their statement (toOuterMeasure_exists_lt_hammingDist_reconstructSigned_le_of_half_le). - For small
αtheir statement is false.exists_answersWithin_answersWithin_hammingDist_eq_twoshows that whatever them ≥ 10queries on at least two rows, two databases at Hamming distance2both answer a1 / 2 + 1 / 5fraction of them exactly with the same answers. Hence (exists_answersWithin_lt_hammingDist), wheneverη ≤ 1 / 5and2 α < η, every attack errs in at least one position on some database with fitting answers, while(2 α / η) ^ 2 < 1. - Why. Dwork and Roth's application of their Lemma 8.3 drops the
+ 1of its bound(ℓ + 1) / √k. A sum∑ i, v_i z_ioverknonzero terms has the parity ofk, and the window[-α, α]holds at most⌊α⌋₊ + 1values of each parity. Their count2 αis enough exactly when⌊α⌋₊ + 1 ≤ 2 α, that is,α ≥ 1 / 2. Whether their constant holds forη / 2 ≤ α < 1 / 2is not settled here.
Using ⌊α⌋₊ + 1 corrects the source's constant. It is not claimed as a new result.
Differential privacy. The consequence for differential privacy is a standard derivation. It
follows Dwork and Roth's remark that if differential privacy is meaningful, then lower bounds for
preventing blatant non-privacy also apply to every differentially private mechanism
[DworkRoth2014, §8.1]. Fix queries A for which reconstruction does not fail; they exist once
3 ln 3 · n < η m (exists_not_reconstructionFails). Let M be an (ε, δ)-private mechanism
for Hamming adjacency whose answers are within α on a 1 / 2 + η fraction with probability at
least q on every database. Then (1 + exp ε) (n - ((⌊α⌋₊ + 1) / η) ^ 2) q ≤ n (exp ε + δ)
(DifferentiallyPrivate.mul_card_sub_mul_le_of_answersWithin). With probability one this gives
⌊α⌋₊ + 1 ≥ η √(n (1 - δ) / (1 + exp ε))
(DifferentiallyPrivate.exists_forall_card_mul_one_sub_le_of_answersWithin). So linearly many
±1 queries cannot all be answered privately with error o(√n) on a 1 / 2 + η fraction.
Scope: the adversary is not efficient, since it searches all 2 ^ n databases. Dwork and Roth also
ignore efficiency here.
Main definitions #
Cslib.Privacy.signDot: the answer to a±1query on a±1database.Cslib.Privacy.AnswersWithin: answers withinαon at least a1 / 2 + ηfraction of the queries.Cslib.Privacy.ReconstructionFails: two far-apart databases fit the same answers.Cslib.Privacy.reconstructSigned: the adversary of [DworkRoth2014, Theorem 8.2].
Main results #
Cslib.Privacy.toOuterMeasure_reconstructionFails_le: random queries fail with probability at most3 ^ n exp (-η m / 3).Cslib.Privacy.hammingDist_reconstructSigned_lt,Cslib.Privacy.toOuterMeasure_exists_le_hammingDist_reconstructSigned_le: reconstruction in all but((⌊α⌋₊ + 1) / η) ^ 2positions [DworkRoth2014, Theorem 8.2].Cslib.Privacy.toOuterMeasure_exists_lt_hammingDist_reconstructSigned_le_of_half_le: Dwork and Roth's form, with(2 α / η) ^ 2, forα ≥ 1 / 2.Cslib.Privacy.exists_not_reconstructionFails: good queries exist once3 ln 3 · n < η m.Cslib.Privacy.DifferentiallyPrivate.mul_card_sub_mul_le_of_answersWithin,Cslib.Privacy.DifferentiallyPrivate.exists_forall_card_mul_one_sub_le_of_answersWithin: private answers to linearly many±1queries have errorΩ(√n).Cslib.Privacy.exists_answersWithin_answersWithin_hammingDist_eq_two,Cslib.Privacy.exists_answersWithin_lt_hammingDist: the source's constant(2 α / η) ^ 2fails for2 α < η ≤ 1 / 5.
References #
Unfolding signDot.
Exact answers are within any α ≥ 0 on every query, so on a 1 / 2 + η fraction whenever
η ≤ 1 / 2.
Fitting answers is monotone: a larger error α and a smaller fraction 1 / 2 + η are easier
to meet.
Anti-concentration and the bad event for one pattern #
The attack #
Unfolding ReconstructionFails.
Random queries rarely fail [DworkRoth2014, proof of Theorem 8.2]. For m uniformly random
±1 queries on n rows, the queries fail with probability at most 3 ^ n exp (-η m / 3): a
Chernoff bound for each disagreement pattern and a union bound over the 3 ^ n patterns.
The reconstruction adversary of [DworkRoth2014, Theorem 8.2]: given answers y to the
±1 queries A, output a database that answers at least a 1 / 2 + η fraction of them to within
α, if there is one (and the all-false database otherwise). It is not efficient: it searches all
databases.
On queries that do not fail, the adversary errs in fewer than ((⌊α⌋₊ + 1) / η) ^ 2
positions whenever the answers are within α on a 1 / 2 + η fraction.
[DworkRoth2014, Theorem 8.2], with a corrected constant. Draw m ≥ b n uniformly random
±1 queries on n rows. Except with probability at most exp (-n (η b / 4 - ln 3)) over the
queries, the following holds for every database d and all answers y that are within α of the
truth on at least a 1 / 2 + η fraction of the queries: the adversary's output differs from d
in fewer than ((⌊α⌋₊ + 1) / η) ^ 2 positions. For α ≥ 1 / 2 this implies Dwork and Roth's
bound (2 α / η) ^ 2
(toOuterMeasure_exists_lt_hammingDist_reconstructSigned_le_of_half_le). For small α their
bound is false (exists_answersWithin_lt_hammingDist).
[DworkRoth2014, Theorem 8.2] in Dwork and Roth's form, for α ≥ 1 / 2. Draw m ≥ b n
uniformly random ±1 queries on n rows. Except with probability at most
exp (-n (η b / 4 - ln 3)) over the queries, for every database d and all answers y within
α on at least a 1 / 2 + η fraction of the queries, the adversary's output agrees with d in
all but at most (2 α / η) ^ 2 entries. Here ⌊α⌋₊ + 1 ≤ 2 α. For small α the statement is
false (exists_answersWithin_lt_hammingDist).
Good queries exist. If 3 ln 3 · n < η m, some m queries on n rows do not fail: no two
databases at Hamming distance at least ((⌊α⌋₊ + 1) / η) ^ 2 answer at least a 1 / 2 + η
fraction of them to within α with the same answers.
Private answers to good ±1 queries are inaccurate. Let A be queries that do not fail
(for example from exists_not_reconstructionFails), and let M be (ε, δ)-private for Hamming
adjacency on databases of n rows, with outputs from which ans reads answers to the queries.
If on every database the answers are within α on at least a 1 / 2 + η fraction of the queries
with probability at least q, then (1 + exp ε) (n - ((⌊α⌋₊ + 1) / η) ^ 2) q ≤ n (exp ε + δ).
This combines the attack of [DworkRoth2014, Theorem 8.2] with
DifferentiallyPrivate.mul_card_sub_mul_le (a standard derivation; see [DworkRoth2014, §8.1]).
Linearly many ±1 queries defeat private accuracy. If 3 ln 3 · n < η m, there are m
±1 queries on databases of n rows with the following property. Every (ε, δ)-private
mechanism for Hamming adjacency whose answers are within α on at least a 1 / 2 + η fraction of
the queries, with probability one on every database, satisfies
n (1 - δ) ≤ ((⌊α⌋₊ + 1) / η) ^ 2 (1 + exp ε). So
⌊α⌋₊ + 1 ≥ η √(n (1 - δ) / (1 + exp ε)), and error o(√n) is impossible. This is a standard
derivation from [DworkRoth2014, Theorem 8.2] (see
[DworkRoth2014, §8.1]).
The constant for small α #
The constant (2 α / η) ^ 2 of [DworkRoth2014, Theorem 8.2] fails at α = 0. Whatever
the m ≥ 10 queries on at least two rows, there are answers y and two databases at Hamming
distance 2 that both answer at least a 1 / 2 + 1 / 5 fraction of the queries exactly. So no
attack reconstructs to within (2 · 0 / η) ^ 2 = 0 positions at η = 1 / 5, for any number of
queries. An additive term as in ((⌊α⌋₊ + 1) / η) ^ 2 is needed; see
exists_answersWithin_lt_hammingDist for all α with 2 α < η ≤ 1 / 5.
[DworkRoth2014, Theorem 8.2] fails for small α. Let 0 ≤ α, 0 < η ≤ 1 / 5 and
2 α < η, so that Dwork and Roth's (2 α / η) ^ 2 is below 1. Whatever the m ≥ 10 queries on
at least two rows and whatever the attack, some database d has answers within α on a
1 / 2 + η fraction of the queries from which the attack errs in at least one position, more
than (2 α / η) ^ 2.