Dwork 2006 - Sensitivity in General Metric Spaces

Summary

If one edit to the data moves by at most in any metric on the output space, one can release privately by sampling with density proportional to (negative exponent, i.e. decaying in distance) - Theorem 3.7. The factor 2 pays for the normalising constant. This is the precursor of McSherry and Talwar’s exponential mechanism. Section 3.4 surveys what followed.

Overview

The intuition (p. 36): “if removing or adding one entry to induces a small change in - under any measure of distance on - then we should be able to release privately with relatively little noise”. The paper only uses symmetry and the triangle inequality .

Main Content

Definition 3.6 - sensitivity in a metric space (p. 36)

Let be a metric space with distance . The sensitivity of is the largest amount the value varies when a single entry changes:

Given a point (and a base measure on ) try the density

(The printed text shows the exponent without an explicit minus sign in the extracted PDF; the proof and normalisation require the decaying form.) This may fail to exist if the right-hand side is not integrable; if it is finite, is a well-defined distribution. To reveal an approximate version of with sensitivity , sample from :

Theorem 3.7 - metric-space noise is -DP (p. 37)

In a metric space where is well defined for all , adding noise to as in Eq. (6) preserves -differential privacy.

Remark 3.1

One can drop the factor 2 in when the normalisation factor does not depend on . This introduces slightly less noise.

Hamming-cube output (p. 37)

Setup. with Hamming distance. Release. Flip each output bit independently. With Theorem 3.7’s exact form each bit flips with probability . With the Remark 3.1 variant (the normaliser is the same for every on the cube), the flip probability is , which is the value the paper prints (“roughly ”).

Sec. 3.4 - what followed (p. 38)

  • The Laplace mechanism “remains widely used, both as is, and as a subroutine”, and is the basis for most implementations.
  • sensitivity is the right notion for Gaussian noise, giving -DP (Dwork et al. 2006a).
  • Smooth sensitivity (Nissim et al. 2007): noise depends on both and , calibrated to the local variability of near . Propose-test-release (Dwork and Lei 2009): first test, with DP, that sensitivity is low near , then add Laplace noise.
  • Linear queries: Blum, Ligett, Roth (2008) showed data-dependent noise can release exponentially many linear queries accurately; follow-ups use multiplicative weights (Dwork et al. 2009; Hardt-Rothblum 2010) and geometry (Hardt-Talwar 2010).
  • Non-numeric outputs: the exponential mechanism (McSherry-Talwar 2007) extends Laplace as a basic construction and underlies private learning (Kasiviswanathan et al. 2008). See Dwork Roth 2014 - Report Noisy Max and the Exponential Mechanism.

Examples

Release of a point in a 2-d metric space (own code): sample a location with density over a bounded box by rejection or grid sampling.

import numpy as np
rng = np.random.default_rng(3)
eps, S = 1.0, 0.1                         # one edit moves f(x) by at most 0.1 in Euclidean distance
f_x = np.array([0.4, 0.6])
g = np.linspace(0, 1, 201)
Y1, Y2 = np.meshgrid(g, g)
w = np.exp(-eps / (2 * S) * np.hypot(Y1 - f_x[0], Y2 - f_x[1])).ravel()
w /= w.sum()                               # discrete (grid) version of Eq. (6)
idx = rng.choice(w.size, p=w)
print(Y1.ravel()[idx], Y2.ravel()[idx])

Connections

  • Marketing measurement. Non-numeric or structured outputs (a selected top- campaign list, a clipped geography ranking) need this “sample by closeness” rather than additive noise. The modern form is the exponential mechanism.
  • Local sensitivity (smooth sensitivity, PTR) is relevant when a global bound is very loose, for example when a single large advertiser dominates a cell: global sensitivity must assume the worst case unless contributions are clipped.

See Also