Dwork 2006 - Sensitivity and the Laplace Mechanism

Summary

Define the sensitivity . Adding i.i.d. noise to each coordinate of is -DP (Prop. 3.3), and the guarantee extends to adaptively chosen queries when the server refuses to answer once the joint sensitivity of the query sequence exceeds a threshold (Thm. 3.4). Noise scale depends only on , not on or the output dimension.

Overview

Sec. 3 presents “the most basic tool for constructing differentially private mechanisms”: formally define sensitivity of functions, prove that Laplace noise with expected magnitude ensures -DP, extend to vector-valued and adaptively chosen queries. The paper’s phrase: “this analysis shows how a ‘privacy budget’ can be spent by a sequence of queries.”

Main Content

Definition 3.1 - sensitivity (p. 31)

The sensitivity of is the smallest such that for all neighbouring : . With neighbours defined by symmetric difference of size one, . By the triangle inequality sensitivity is a Lipschitz condition: for all .

If neighbours are defined via Hamming distance instead, all results “can be easily modified”; one can also define sensitivity for any metric on the output space (Sec. 3.3). Note “is a quantity inherent in ; it is not chosen by policy and is independent of the database” (p. 18).

Example 4 - sums, counts, histograms (pp. 31-32)

Sums. with and for all has . Count. Taking : has . Histogram. Partition into disjoint regions ; with a one-hot vector of dimension . so : neighbouring databases differ in exactly one count (one bin gains or loses a point).

Definition 3.2 - Laplace distribution, -dimensional (p. 32)

on has density , mean , standard deviation . is a product of i.i.d. . For the densities satisfy

(The printed text writes where it should write in the exponent; the proofs below use the correct form.)

Proposition 3.3 - Laplace mechanism, non-adaptive version (p. 32)

For all , the mechanism with i.i.d. is -differentially private.

Adaptivity

Proposition 3.3 is a special case of a more general, possibly adaptive process. An adaptive querying strategy issues queries , where is determined by earlier answers and the analyst’s coins . The view is ; for a view define with -th coordinate . The server either (a) answers for fixed , or (b) refuses (). It refuses once the joint sensitivity exceeds a threshold . This decision depends only on the queries, “independent of the data set”, so it is “not disclosive, since it can be computed by the user submitting the queries”.

Theorem 3.4 - Laplace mechanism, adaptive version (p. 33)

Consider an arbitrary adaptive query strategy with query function parameterised by a view . The mechanism that answers as long as is -differentially private.

This is a “more nuanced version of composition” than Lemma 2.6: budgeting on the joint sensitivity rather than summing . For counting queries the joint sensitivity can be as large as (each person may affect every count), recovering the -per-query accounting; for disjoint (histogram) queries it stays .

Examples

Accuracy (derived, not stated in this paper). Since for , a single released coordinate is within of the truth with probability ; a union bound over coordinates gives (the textbook statement, Dwork Roth 2014 - Laplace Mechanism).

Empirical check of the density-ratio bound (own code).

import numpy as np
rng = np.random.default_rng(0)
eps, S = 0.5, 1.0                       # count query, sensitivity 1
lam = S / eps
lap_pdf = lambda y, mu: np.exp(-np.abs(y - mu) / lam) / (2 * lam)
f_x, f_xp = 100.0, 101.0                # neighbouring databases: counts differ by 1
z = np.linspace(80, 120, 4001)
ratio = lap_pdf(z, f_x) / lap_pdf(z, f_xp)
print(ratio.max(), np.exp(eps))         # max density ratio equals e^eps (attained far in the tail)

The maximum ratio is (attained for ), so the bound in Eq. (5) is tight for counts.

Connections

  • Marketing measurement. To release campaign-level conversion counts with each user contributing to at most one campaign (a histogram), noise scale is per cell regardless of . If a user can convert in several campaigns, sensitivity is the maximum number of cells touched (or clipped contribution), and noise scale grows linearly in that. This is why privacy-preserving measurement APIs cap per-user contributions: the cap is the sensitivity bound.
  • Known noise law enables debiasing and likelihood modelling: is an additive measurement-error model with a known error distribution, easy to place inside a Bayesian model (Bayesian Estimation and Priors for MMM).

See Also