Algorithm Search⌘K

Definitionintro

Global sensitivity

Also called l1 sensitivity, query sensitivity.

The largest change in a function's value, in a given norm, over all pairs of datasets that differ in one record.

The global sensitivity of a function of a dataset is the largest change of its value, measured in a norm, between two datasets that differ in one record. It is the maximum over all pairs of neighbors, not only the pairs near the actual data. The basic mechanisms of differential privacy add noise in proportion to it: the Laplace mechanism uses the sensitivity in the ℓ1\ell_1 norm, and the Gaussian mechanism uses the sensitivity in the ℓ2\ell_2 norm. Dwork, McSherry, Nissim and Smith (2006) defined it. The value depends on the neighbor relation, so it must always be stated with one.

Definition

Datasets and the two neighbor relations, add/remove and replace, are as on the page of differential privacy. Let ff map datasets to Rk\mathbb R^k, and let 1≤p≤∞1 \le p \le \infty.

Definition. The global sensitivity of ff in the ℓp\ell_p norm, under a neighbor relation ∼\sim, is

Δpf=max⁡x∼x′∥f(x)−f(x′)∥p.\Delta_p f = \max_{x \sim x'} \lVert f(x) - f(x') \rVert_p.

If the maximum does not exist, the supremum is used, and it can be +∞+\infty. The two common cases are Δ1f=max⁡∑i∣f(x)i−f(x′)i∣\Delta_1 f = \max \sum_i |f(x)_i - f(x')_i| and Δ2f=max⁡∑i(f(x)i−f(x′)i)2\Delta_2 f = \max \sqrt{\sum_i (f(x)_i - f(x')_i)^2}. A mechanism only needs an upper bound Δ≥Δpf\Delta \ge \Delta_p f; a larger bound gives more noise and the same privacy.

Sensitivity of a utility. For a utility u(x,r)u(x, r) of each candidate rr, as in the exponential mechanism, the sensitivity is Δu=max⁡rmax⁡x∼x′∣u(x,r)−u(x′,r)∣\Delta u = \max_r \max_{x \sim x'} |u(x, r) - u(x', r)|: one bound for all candidates at the same time.

Local sensitivity. The local sensitivity at a fixed dataset xx is LSf(x)=max⁡x′∼x∥f(x)−f(x′)∥\mathrm{LS}_f(x) = \max_{x' \sim x} \lVert f(x) - f(x') \rVert, a maximum over the neighbors of xx only. So Δf=max⁡xLSf(x)\Delta f = \max_x \mathrm{LS}_f(x). Noise scaled to LSf(x)\mathrm{LS}_f(x) is not private, because the scale itself depends on xx and can reveal it (Nissim, Raskhodnikova and Smith 2007). Smooth sensitivity and propose-test-release are safe ways to use it.

Properties. These follow from the definition and the triangle inequality.

  1. Norms. For ff with kk coordinates, Δ∞f≤Δ2f≤Δ1f≤k Δ2f\Delta_\infty f \le \Delta_2 f \le \Delta_1 f \le \sqrt{k}\,\Delta_2 f, because ∥v∥∞≤∥v∥2≤∥v∥1≤k∥v∥2\lVert v \rVert_\infty \le \lVert v \rVert_2 \le \lVert v \rVert_1 \le \sqrt k \lVert v \rVert_2 holds for every vector vv in Rk\mathbb R^k.
  2. Concatenation. For h(x)=(f(x),g(x))h(x) = (f(x), g(x)), Δ1h≤Δ1f+Δ1g\Delta_1 h \le \Delta_1 f + \Delta_1 g and Δ2h≤(Δ2f)2+(Δ2g)2\Delta_2 h \le \sqrt{(\Delta_2 f)^2 + (\Delta_2 g)^2}.
  3. Lipschitz maps. If ∥g(a)−g(b)∥≤c∥a−b∥\lVert g(a) - g(b) \rVert \le c \lVert a - b \rVert for all a,ba, b, then Δ(g∘f)≤c Δf\Delta(g \circ f) \le c\,\Delta f in those norms.
  4. Relations. A replace step is at most a removal and an addition, so Δf\Delta f under replace is at most twice Δf\Delta f under add/remove. It can be smaller, as for a mean with a known nn, or equal, as for a count.
  5. Linear queries. For a histogram hh and f(h)=Ahf(h) = A h, adding or removing one record changes hh by one unit vector eje_j, so Δpf\Delta_p f under add/remove is the largest ℓp\ell_p norm of a column of AA. The matrix mechanism is built on this fact.

Examples and non-examples

A count. The number of records with a property changes by at most 1 when one record is added, removed or changed. So Δ1=Δ2=1\Delta_1 = \Delta_2 = 1 under both relations.

A histogram. The histogram over kk bins has Δ1=1\Delta_1 = 1 and Δ2=1\Delta_2 = 1 under add/remove, because one bin changes by 1. Under replace one bin falls by 1 and another rises by 1, so Δ1=2\Delta_1 = 2 and Δ2=2=1.414214\Delta_2 = \sqrt 2 = 1.414214.

Counts that one record can all change. If each record can add 1 to each of kk counts, as for kk overlapping predicates, then Δ1=k\Delta_1 = k and Δ2=k\Delta_2 = \sqrt k. With k=100k = 100, the Laplace mechanism with ε=1\varepsilon = 1 has scale 100 and standard deviation 141.42141.42 per count. The analytic Gaussian mechanism with ε=1\varepsilon = 1 and δ=10−5\delta = 10^{-5} needs σ=3.730632×10=37.31\sigma = 3.730632 \times 10 = 37.31, so the gap between the two norms decides which mechanism adds less noise.

A sum of bounded values. Clip each value to [0,B][0, B]. The sum changes by at most BB under both relations, so Δ1=B\Delta_1 = B. For the ages x=(23,35,41,58,90)x = (23, 35, 41, 58, 90) clipped to [0,100][0, 100], the sum is 247 and Δ1=100\Delta_1 = 100.

A mean. Under replace with a public nn, the mean of values in [0,B][0, B] has Δ1=B/n\Delta_1 = B/n; for the ages above, 100/5=20100/5 = 20. Under add/remove, nn is not fixed, and a single dataset of size 1 shows that the change can be as large as B/2B/2. The usual fix is to release a noisy sum and a noisy count and divide them, which is post-processing.

Non-example: an unbounded sum. If the values are not clipped, one record can change the sum by any amount, and Δ1=+∞\Delta_1 = +\infty. No finite Laplace noise makes the sum private. Clipping is part of the mechanism, and the bound BB must be chosen without looking at the data.

Non-example: a small local sensitivity. The median of the ages above is 41. Changing one age can move it only to a value from 35 to 58, so LS(x)=17\mathrm{LS}(x) = 17 under replace. But for the dataset (0,0,0,100,100)(0, 0, 0, 100, 100), changing one 0 to 100 moves the median from 0 to 100, so the global sensitivity is the whole range, 100. Laplace noise of scale 17/ε17/\varepsilon would not be private; this is the case that smooth sensitivity and propose-test-release handle.

References

  1. Cynthia Dwork, Frank McSherry, Kobbi Nissim and Adam Smith, Calibrating noise to sensitivity in private data analysis, TCC 2006, LNCS 3876, pages 265 to 284, the definition of the sensitivity of a function and its use to set the scale of the noise
  2. Cynthia Dwork and Aaron Roth, The Algorithmic Foundations of Differential Privacy, Foundations and Trends in Theoretical Computer Science 9(3-4), 2014, pages 211 to 407, Section 3.3, Definition 3.1 (sensitivity in the l1 norm); Section 3.4, the sensitivity of a utility function; Section 3.5.3, Definition 3.8 (sensitivity in the l2 norm)
  3. Kobbi Nissim, Sofya Raskhodnikova and Adam Smith, Smooth sensitivity and sampling in private data analysis, STOC 2007, pages 75 to 84, local sensitivity, why noise cannot be scaled to it, and smooth sensitivity

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/RRCN85/text.yaml