AboveThreshold and the sparse vector technique with discrete Laplace noise #
AboveThreshold [DworkRoth2014, Algorithm 1] answers a stream of sensitivity-Δ queries
f₁, f₂, … against a public threshold T. It draws a noisy threshold T̂ = T + ρ once, then for
each query draws fresh noise νᵢ and halts at the first i with fᵢ(D) + νᵢ ≥ T̂, reporting
⊤ there and ⊥ before. Its privacy cost does not grow with the number of queries
[DworkRoth2014, Theorem 3.23].
Here the noise is integer-valued, from the discrete Laplace distribution
[CanonneKamathSteinke2020, Definition 28], and the results are discrete-noise analogues of
Dwork and Roth's theorems for continuous Lap (2 / ε) and Lap (4 / ε) noise. The queries and
threshold are real-valued; only the noise is discrete.
- Privacy: for queries of integer sensitivity
Δ ≥ 1, noise of scales2 Δ / εand4 Δ / εmakes AboveThreshold(ε, 0)-differentially private (differentiallyPrivate_aboveThreshold_discreteLaplace), the analogue of [DworkRoth2014, Theorem 3.23]. The proof follows Dwork and Roth's change of variables, shifting the noisy threshold by the sensitivitysand each query's noise by2 s(DifferentiallyPrivate.aboveThresholdMechanism, for any noise with these shift bounds). - Accuracy: for sensitivity-
1queries, with noise of scales2 / εand4 / ε, AboveThreshold onkqueries isα-accurate and does not halt early except with probabilityβ, forα = 8 (ln (k + 1) + ln (2 / β)) / ε(aboveThreshold_discreteLaplace_toOuterMeasure_not_accurate_le), the analogue of [DworkRoth2014, Theorem 3.24]. Herek + 1replaces Dwork and Roth'skbecause the discrete tails carry a factor2.
The output is the index of the first reported ⊤ (some i), or none when no query is reported;
this is equivalent to Dwork and Roth's stream ⊥ ⋯ ⊥ ⊤. Because the stream of answers before
halting is always ⊥ ⋯ ⊥, a deterministic analyst choosing the next query adaptively from the
answers so far fixes the queries in advance, so a fixed list of queries loses no generality. A
randomized analyst is a mixture of deterministic ones over its coins, and each run halts after
reading a finite prefix of an infinite stream; neither reduction is formalized here.
Sparse [DworkRoth2014, Algorithm 2] restarts AboveThreshold after each reported ⊤, c times,
on an adaptively chosen stream. Within a round the analyst sees only ⊥s, so the queries of a
round are a function of the earlier rounds' outputs: sparse ρ ν T qs c runs c rounds of
adaptive composition, the round after history h running AboveThreshold on the queries qs h.
With discrete Laplace noise of scales 2 c Δ / ε and 4 c Δ / ε it is (ε, 0)-private
(differentiallyPrivate_sparse_discreteLaplace), the δ = 0 case of
[DworkRoth2014, Theorem 3.25]. A fixed stream fs, each round continuing on the unconsumed
queries, is the instance sparseStream fs.
Main definitions #
Cslib.Privacy.aboveThreshold: AboveThreshold on a list of query answers with threshold noiseρand query noiseν.Cslib.Privacy.aboveThresholdMechanism: AboveThreshold as a mechanism on datasets.Cslib.Privacy.ThresholdAccurate: the accuracy condition [DworkRoth2014, Definition 3.9].Cslib.Privacy.sparse: Sparse asc-fold adaptive composition of AboveThreshold.Cslib.Privacy.sparseStream: the queries of each round of Sparse on a fixed stream.
Main results #
Cslib.Privacy.DifferentiallyPrivate.aboveThresholdMechanism: privacy for any noise whose masses change by bounded factors under integer shifts.Cslib.Privacy.differentiallyPrivate_aboveThreshold_discreteLaplace:(ε, 0)-privacy.Cslib.Privacy.aboveThreshold_discreteLaplace_toOuterMeasure_not_thresholdAccurate_le,Cslib.Privacy.aboveThreshold_discreteLaplace_toOuterMeasure_not_accurate_le: accuracy.Cslib.Privacy.differentiallyPrivate_sparse_discreteLaplace:(ε, 0)-privacy of Sparse.
References #
AboveThreshold [DworkRoth2014, Algorithm 1] on the list of query answers as with public
threshold T: draw ρ once, compare each noisy answer a + ν with T + ρ, and return the index
of the first answer reported above threshold, or none.
The change of variables in the proof of [DworkRoth2014, Theorem 3.23], for a fixed noisy
threshold: if each answer in bs is at least the corresponding answer in as minus s, and
shifting the query noise by 2 s changes its masses by at most c ≥ 1, then raising the threshold
by s changes each output probability by at most c.
AboveThreshold is (ε₁ + ε₂, 0)-differentially private for queries of sensitivity s
whenever shifting the threshold noise by s changes its masses by at most exp ε₁ and shifting
the query noise by 2 s changes them by at most exp ε₂. This generalizes
[DworkRoth2014, Theorem 3.23], which takes Lap (2 / ε) and Lap (4 / ε) noise, and follows its
proof.
AboveThreshold with discrete Laplace noise: for queries of sensitivity Δ ≥ 1 (an integer),
threshold noise of scale 2 Δ / ε and query noise of scale 4 Δ / ε give (ε, 0)-differential
privacy, however many queries are asked. This is the discrete-noise analogue of
[DworkRoth2014, Theorem 3.23].
The accuracy condition of [DworkRoth2014, Definition 3.9] for the answers as, threshold T
and slack α: every answer reported below threshold is at most T + α, and the answer reported
above threshold, if any, is at least T - α.
An accurate output does not halt early [DworkRoth2014, proof of Theorem 3.24]: if every answer
before the last is below T - α, a reported index is the last one.
Accuracy of AboveThreshold with discrete Laplace noise (scales 2 / ε and 4 / ε): on k
answers it is α-accurate except with probability at most β, for
α = 8 (ln (k + 1) + ln (2 / β)) / ε and 0 < β ≤ 1. This is the discrete-noise analogue of
[DworkRoth2014, Theorem 3.24], with k + 1 in place of k.
The accuracy theorem [DworkRoth2014, Theorem 3.24] for discrete Laplace noise of scales
2 / ε and 4 / ε and sensitivity-1 queries: if every answer before the last is below T - α,
then except with probability β the output is α-accurate and, if it reports an index, reports
the last one, for α = 8 (ln (k + 1) + ln (2 / β)) / ε on k answers and 0 < β ≤ 1.
Sparse [DworkRoth2014, Algorithm 2] with cutoff c on an adaptively chosen stream, as
c-fold adaptive composition of AboveThreshold: the round after the history h (the indices
reported by the earlier rounds, most recent first) restarts AboveThreshold, with fresh threshold
noise, on the queries qs h. The transcript lists the index reported by each round, most recent
first. Within a round the analyst sees only ⊥s, so a deterministic analyst's queries for a round
depend only on the earlier rounds' outputs.
Sparse with cutoff c is (c (ε₁ + ε₂), 0)-private when each AboveThreshold round is
(ε₁ + ε₂, 0)-private, by basic adaptive composition; this follows the proof of
[DworkRoth2014, Theorem 3.25] for δ = 0.
Sparse with cutoff c ≥ 1 on an adaptively chosen stream, with discrete Laplace noise of
scales 2 c Δ / ε and 4 c Δ / ε, is (ε, 0)-differentially private for queries of sensitivity
Δ ≥ 1 (an integer); the δ = 0 case of [DworkRoth2014, Theorem 3.25], with discrete noise.
Sparse on a fixed stream of queries of sensitivity Δ ≥ 1, each round continuing on the
unconsumed queries, with discrete Laplace noise of scales 2 c Δ / ε and 4 c Δ / ε, is
(ε, 0)-differentially private.