Mironov 2017 - RDP of Randomized Response, Laplace and Gaussian

Summary

Section VI computes the RDP budget curves of the three basic mechanisms (Table II): randomized response, Laplace, and Gaussian. The Gaussian curve is a straight line, for unit sensitivity, so composing Gaussians behaves like one Gaussian with parameter . Figures 1-2 compare RDP-based composition to naive, advanced , and generic bounds.

Overview

For each mechanism the paper computes between the output distributions on a pair of adjacent inputs, with a function of sensitivity 1 where relevant. Sensitivity-1 is without loss of generality via rescaling.

Main Content

A. Randomized response

For a predicate , returns with probability and with probability .

Proposition 5

satisfies -RDP for , and -RDP for .

Direct application of the definition (two-point distributions).

B. Laplace noise

with having density , of sensitivity 1.

Proposition 6 and Corollary 2

For and :

Hence the Laplace mechanism is -RDP with that value. As it tends to (consistent with -DP); at it is for large .

Proof. Split over , , with , , obtaining . Because the mechanism is additive, the divergence depends only on and .

C. Gaussian noise

for a real-valued (the text calls both the standard deviation and the parameter in ; the formulas use as the variance).

Proposition 7 and Corollary 3

. Therefore, if has sensitivity 1, satisfies -RDP.

Proof. Complete the square: ; take .

The budget curve is a straight line (Figure 1). Since curves add under composition, Gaussians each with parameter have the RDP curve of a Gaussian with parameter .

Table II: RDP parameters of basic mechanisms

MechanismDifferential privacyRenyi differential privacy at order
Randomized response: ; :
Laplace mechanism: ; :
Gaussian mechanism

Figures 1 and 2 (described)

Figure 1 plots budget curves: randomized response with ; Laplace with ; Gaussian with . Each panel runs over with -axis up to 2.5. Gaussian curves are straight lines (e.g. reaches at ); the RR and Laplace curves rise steeply near and then plateau near their pure-DP limits (RR with levels off near ; Laplace with near 1).

Figure 2 compares, for self-compositions of RR with (top row) and Laplace with (bottom row), four upper bounds (log scale) on the multiplicative increase for baseline mass , , : (i) the naive bound, (ii) the standard advanced composition with optimal , (iii) the generic Proposition 4 bound, (iv) the RDP analysis with optimal (Proposition 10). Findings: the RDP-specific analysis is tighter than all generic bounds whose only input is the mechanism’s DP parameter; however Proposition 4’s generic bound is consistently outperformed by the standard advanced composition with optimal .

Examples

Verifying the closed forms numerically

The Laplace closed form was checked against direct numerical integration: for both give and for both give (recomputed for this note). The randomized-response limit at is , matching Proposition 5’s formula evaluated near .

import numpy as np
 
def rdp_rr(alpha, p):
    if alpha == 1: return (2*p - 1) * np.log(p / (1 - p))
    return np.log(p**alpha * (1-p)**(1-alpha) + (1-p)**alpha * p**(1-alpha)) / (alpha - 1)
 
def rdp_laplace(alpha, lam):             # sensitivity 1, scale lam
    if alpha == 1: return 1/lam + np.exp(-1/lam) - 1
    return np.log(alpha/(2*alpha-1) * np.exp((alpha-1)/lam)
                  + (alpha-1)/(2*alpha-1) * np.exp(-alpha/lam)) / (alpha - 1)
 
def rdp_gaussian(alpha, sigma):          # sensitivity 1
    return alpha / (2 * sigma**2)
 
print(rdp_laplace(2, 1.0), rdp_laplace(5, 2.0))        # 0.6191, 0.3553
print(rdp_rr(1, 0.75), rdp_rr(2, 0.75))                # 0.5493, 0.8473
# n-fold Gaussian composition: curves add -> same as sigma/sqrt(n)
n, sigma, a = 25, 4.0, 3.0
print(n * rdp_gaussian(a, sigma), rdp_gaussian(a, sigma / np.sqrt(n)))   # equal

Releasing a conversion count with Gaussian noise

Setup (illustrative): a weekly conversion count with each user changing it by at most 1; release it for weeks with Gaussian , and the same user is in every week. Solution: RDP curve . Using Proposition 3 with : minimize ; , giving . Interpretation: the whole year costs -DP for one user, with no bookkeeping beyond adding numbers. This is a worked illustration, not a paper result.

Connections

See Also