Dwork 2006 - Low-Sensitivity Functions and Applications

Summary

Four families of functions have small sensitivity independent of output dimension: disjoint analyses (histograms, contingency tables), distance from a property, mean and covariance (via a -DP ratio-of-sums mechanism), and functions approximable from a random subsample (Lemma 3.5: ). The resulting noise is where Blum et al. (2005) needed or times more.

Overview

“In many cases, the sensitivity-based approach presented here permits the introduction of far less distortion than suggested by previous frameworks (Blum et al. 2005), while ensuring a cleaner notion of privacy.” Each item below computes and then invokes Prop. 3.3.

Main Content

Disjoint analyses (p. 34)

Let be partitioned into regions and where depends only on . If is a neighbour obtained by adding or removing one entry, then for at most one , so

Sensitivity of disjoint analyses

, independent of the output dimension .

For a histogram ( count, ) apply the Laplace mechanism with to each count independently. In Blum et al. (2005) the noise has expected magnitude , a significant factor “in applications where the number of regions exceeds the number of data points - which is often the case with contingency tables”.

Distance from a property (p. 34)

Distance from a property

A property is a subset . The distance is the cardinality of the symmetric difference between and its nearest point , that is, the minimum number of insertions and removals that bring into . Example: how many points must be changed for a clustering of at least a given quality to exist. For any , has sensitivity at most .

(One edit to changes the distance to by at most one, by the triangle inequality.)

Mean and covariance (pp. 34-35)

Example - differentially private mean and covariance

Setup. maps rows to column vectors with . Define and .

Sensitivities. has ; has ; viewing as a -vector, , so .

Mechanism (with a vector of i.i.d. draws):

  1. Output and .

Privacy. The three noisy releases are each -DP, so the mechanism is -DP by composition; the outputs are post-processing.

Improvement. Blum et al. add noise proportional to : in each of coordinates of and in each of coordinates of . Treating coordinates jointly improves the noise by factors of and respectively, “while also providing a stronger privacy guarantee”.

Functions with low sample complexity (pp. 35-36)

Lemma 3.5 - sampling implies low sensitivity (p. 35)

Let . Suppose there is a randomized algorithm such that for every dataset : (1) operates on a subsample of in which each element of appears with probability at most ; and (2) with probability at least . Then .

The converse fails: not all low-sensitivity functions can be approximated from a small sample. Counterexample (stated for Hamming distance, extends to set difference): and Hamming distance from to the nearest codeword of a Reed-Solomon code of dimension . One learns nothing about from fewer than positions (a random Reed-Solomon codeword looks like a Shamir secret sharing, so any positions look uniform), yet has sensitivity 1.

Examples

Private mean and covariance on simulated 2-d data (own code).

import numpy as np
rng = np.random.default_rng(2)
n, d, eps, gamma = 5000, 2, 0.5, 1.0                # rows clipped so ||v||_1 <= gamma
v = np.clip(rng.normal([0.2, -0.1], 0.2, size=(n, d)), -0.5, 0.5)   # ||v||_1 <= 1
n_t = n + rng.laplace(0, 1/eps)
s_t = v.sum(0) + rng.laplace(0, gamma/eps, size=d)
c_t = (v[:, :, None] * v[:, None, :]).sum(0) + rng.laplace(0, gamma**2/eps, size=(d, d))
mu_t = s_t / n_t
C_t = c_t / n_t - np.outer(s_t, s_t) / n_t**2
print(mu_t, v.mean(0)); print(C_t, np.cov(v.T, bias=True))     # total privacy cost 3*eps = 1.5

At the noise on ( on a sum of magnitude about ) is a few thousandths of the signal.

Connections

  • Clipping is the practical sensitivity bound. The in the mean/covariance mechanism is a bound on each row; in practice rows are clipped to enforce it. The same logic governs DP spend or revenue summaries: clip per-user spend at and the sum has sensitivity .
  • Covariance release feeds regression. Releasing and privately and then solving normal equations is post-processing; this is the sufficient-statistics route to private linear models used in marketing-mix style regressions.

See Also