De's lower bound over a small universe #
Answering k queries of sensitivity 1 with pure privacy needs noise Ω(min (k, d) / ε) even when
the universe has only d items [DworkRoth2014, Theorem 8.8], a theorem Dwork and Roth credit to
De (§8.3). For ε ∈ (0, 1 / 40] and databases of n ≥ min (k, d) / ε rows there is a query
F into ℝ ^ k, of sensitivity at most 1 in each coordinate, such that every
(ε, 0)-private mechanism adds noise of ℓ∞ norm Ω(min (k, d) / ε) with probability at least
1 / 2 on some database. The one-way marginals bound of
CslibFrontier.Privacy.DifferentialPrivacy.Packing [DworkRoth2014, Theorem 8.7] needs a universe of
2 ^ k items; this one does not.
Datasets are tuples x : ι → X of n = |ι| rows from a universe X of d items, compared by
HammingAdjacent. Dwork and Roth work with histograms in ℕ ^ d. A query of tuples is a query of
histograms exactly when reordering the rows does not change it, and the query F here has this
property. Without it the size of the universe would play no role, since a query could read
individual rows.
The construction:
rowCount x ais the histogram ofx, andcountExcess x y = ∑ a, (rowCount x a - rowCount y a)counts the rows ofxwith no matching row ofy. It depends only on the two histograms (countExcess_comp_equiv_right), is at most the Hamming distance (countExcess_le_hammingDist) and satisfies the triangle inequality (countExcess_le_add).- McShane's extension
G y = min_h (g h + countExcess (D h) y)of labelsg hon datasetsD his invariant under reordering,1-Lipschitz in Hamming distance, and equal tog honD hwheng h ≤ g h' + countExcess (D h') (D h)(exists_symmetric_lipschitz_extension). - A code of
2 ^ Lwords of lengthLover16letters, any two at distance at leastL / 2(Cslib.Code.exists_two_pow_le_card_and_le_two_mul_hammingDist, by the Gilbert–Varshamov bound), becomes a family of datasets. The wordcputs the item(j, c j)introws for each coordinatej, and a filler item in all other rows. Encodings of distinct words have excess at leastt L / 2over each other, and all are within Hamming distancet Lof the all-filler dataset. Label the words by the bit stringswof lengthL ≤ k, and let thej-th coordinate ofFbe the McShane extension of± t L / 4, signed by the bitw j. Then theℓ∞balls of radiust L / 4around the answers on the encodings are disjoint, and the packing boundDifferentiallyPrivate.card_mul_le_of_hammingDist_le_of_puregives2 ^ L · p ≤ exp (t L ε)(exists_symmetric_query_two_pow_mul_le). L = min (k, ⌊(d - 1) / 16⌋)andt = ⌊1 / (6 ε)⌋give Theorem 8.8 with the explicit noise boundmin (k, d) / (1024 ε)(exists_symmetric_query_forall_exists_half_lt).
Dwork and Roth sketch the code without details and take k random ± 1 combinations of bump
functions around the codewords, with a Chernoff and a union bound to separate the answers. An
ℓ∞ separation needs only one coordinate for each pair of codewords, so labelling the codewords by
L ≤ k bits makes the query deterministic, and McShane's extension replaces the bump functions.
This simplifies the proof; the theorem is theirs.
Scope, relative to [DworkRoth2014, Theorem 8.8]:
- Adjacency replaces one of exactly
nrows. Dwork and Roth add or remove a row of a histogram of weight at mostn. Replacing a row is removing one and adding one, so a mechanism that is(ε, 0)-private for their adjacency is(2 ε, 0)-private for this one. With2 ε ≤ 1 / 18this covers their rangeε ≤ 1 / 40, with noisemin (k, d) / (2048 ε). The transfer also needsFextended from histograms of weightnto all ofℕ ^ d: on weightn, a query that is invariant under reordering and1-Lipschitz in Hamming distance is1 / 2-Lipschitz inℓ₁, and McShane's extension keeps that constant. The transfer is not formalized here. - The theorem needs
k ≥ 2andd ≥ 33. Dwork and Roth's proof needsmin (k, d) ≥ 400for its code to have more than one word. It assumesε ≤ 1 / 18, which Dwork and Roth'sε ≤ 1 / 40implies. - As everywhere in the library, mechanisms have discrete output laws (
PMF).
Main definitions #
Cslib.Privacy.rowCount: the histogram of a dataset.Cslib.Privacy.countExcess: the rows of one dataset with no matching row in another.
Main results #
Cslib.Privacy.countExcess_le_hammingDist,Cslib.Privacy.countExcess_le_add: the excess is at most the Hamming distance and satisfies the triangle inequality.Cslib.Privacy.exists_symmetric_lipschitz_extension: McShane's extension for queries of histograms.Cslib.Privacy.exists_symmetric_query_two_pow_mul_le: the packing form of De's bound.Cslib.Privacy.exists_symmetric_query_forall_exists_half_lt: De's lower bound over a small universe [DworkRoth2014, Theorem 8.8].
References #
The number of rows of the dataset x equal to a: the histogram of x at a.
Reindexing the rows does not change the histogram.
The histogram excess of x over y: the number of rows of x that have no matching row
of y, ∑ a, (rowCount x a - rowCount y a) with truncated subtraction. For datasets with the same
number of rows it is half the ℓ₁ distance between their histograms. It depends only on the
histograms, so it is invariant under reordering the rows of either dataset.
Unfolding countExcess.
A dataset has no excess over itself.
Reordering the rows of the second dataset does not change the excess.
The excess is at most the Hamming distance.
The triangle inequality for the excess.
The excess over z is 1-Lipschitz in the Hamming distance of z.
Symmetric Lipschitz extension. Let D h (h : H) be finitely many datasets and g h
real labels with g h ≤ g h' + countExcess (D h') (D h). Then some query G that depends only
on the histogram and is 1-Lipschitz in Hamming distance takes the value g h on D h. It is
McShane's extension G y = min_h (g h + countExcess (D h) y), the construction of Mathlib's
LipschitzOnWith.extend_real specialized to the excess, for which ι → X carries no metric
instance; the minimum also makes G invariant under reordering the rows.
De's lower bound over a small universe, packing form. Let L ≤ k, let the universe X
have more than 16 L items and let there be at least t L rows. Then some query
F : (ι → X) → (Fin k → ℝ) that depends only on the histogram of the dataset and changes by at
most 1 in each coordinate between Hamming-adjacent datasets has the following property. If an
(ε, 0)-private mechanism M answers F on every dataset with ℓ∞ error less than t L / 4
with probability at least p, then 2 ^ L · p ≤ exp (t L ε).
De's lower bound over a small universe, [DworkRoth2014, Theorem 8.8]. Let the universe X
have d ≥ 33 items, let k ≥ 2, let ε ∈ (0, 1 / 18] and let there be n ≥ min (k, d) / ε
rows. Some query F : (ι → X) → (Fin k → ℝ) that depends only on the histogram and changes by at
most 1 in each coordinate between Hamming-adjacent datasets has the following property. Every
(ε, 0)-private mechanism M has, on some dataset, noise of ℓ∞ norm at least
min (k, d) / (1024 ε) with probability more than 1 / 2.
Dwork and Roth assume ε ≤ 1 / 40 and compare histograms by adding or removing a row; see the
module docstring for the scope.