Skip to content

Optimal membership inference bounds for adaptive composition of the sampled Gaussian mechanismOptimal Membership Inference Bounds for Adaptive Composition of Sampled Gaussian Mechanisms

arXiv· arXiv:2204.06106· Saeed Mahloujifar, Alexandre Sablayrolles, Graham Cormode, Somesh JhaPrinceton University; Meta AI; University of WisconsinIndexed by this site · 27 days ago· Originally publishedDefenses

Quick read

Analysis and theory

Based on the paper PDF (AI-generated); refer to the original

The authors directly analyze the MI advantage upper bound for the composition of adaptive sampled Gaussian mechanisms, stating that for DP-SGD at ε=4 the advantage upper bound is about 0.36, whereas existing DP conversion methods give about 0.97.

Questions
Differential privacy (DP) is a standard means of defending against membership inference (MI) attacks, but there is a gap between the MI advantage upper bound converted from DP's (ε, δ) and the actual performance of attacks; the authors suspect that this conversion process itself is not optimal.
Methods
Without going through DP, directly write the MI advantage as the total variation distance between two distributions (the training outputs with and without the target sample), and prove that the advantage upper bound for the composition of adaptive sampled Gaussian mechanisms equals the TV between two Gaussian mixture distributions; then compute this TV numerically by Monte-Carlo sampling.
Experiments and results
The authors state that the resulting upper bound is tighter than the bound converted from DP by Humphries et al. (2020) and matches the empirical advantage: at DP-SGD ε=4 the upper bound is about 0.36, versus about 0.97 for the existing method; and they train models with DP-SGD on CIFAR10 and give MI metrics.
Limitations and future work
The authors point out that the Pinsker bound is not tight and is vacuous when KL>2; a tight bound for sampled Gaussians under replacement adjacency, and the combination of adaptive noise selection, are left as open problems; the analysis currently covers only sampled Gaussian mechanisms, and other mechanisms are left for future work.
Experimental setupCIFAR10 · membership inference advantage、total variation distance et al.
Threat model
The attacker knows the training algorithm, the full dataset D, and the candidate point z′, and receives the trained model θ, and must determine whether z′ was added to training (add/remove adjacency); success is measured by the advantage Adv = 2·Pr[b=b′]−1 of guessing the bit b in the security game.
Benchmarks
CIFAR10
Metrics
membership inference advantagetotal variation distanceprecision
AI summaryThe authors derive upper bounds on the advantage and confidence of membership inference attacks under adaptive composition of the sampled Gaussian mechanism, and show that the bounds are tight for the Gaussian mechanism. Taking DP-SGD with ε=4 as an example, their analysis gives an upper bound on attack advantage of about 0.36, whereas prior methods that convert ε into a membership inference bound give about 0.97. The authors also use this analysis to give membership inference metrics for models trained on CIFAR10, and state that it provides the current best privacy membership inference bounds.

The authors derive upper bounds on the advantage and confidence of membership inference attacks under adaptive composition of the sampled Gaussian mechanism, and show that the bounds are tight for the Gaussian mechanism. Taking DP-SGD with ε=4 as an example, their analysis gives an upper bound on attack advantage of about 0.36, whereas prior methods that convert ε into a membership inference bound give about 0.97. The authors also use this analysis to give membership inference metrics for models trained on CIFAR10, and state that it provides the current best privacy membership inference bounds.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Can the membership inference advantage upper bound of a composition of (sampled) Gaussian mechanisms be analyzed directly and optimally without going through DP?

    Core question: Can the membership inference (MI) advantage upper bound of a composition of adaptive sampled Gaussian mechanisms (such as DP-SGD) be given directly and optimally, bypassing the (ε, δ) conversion of differential privacy (DP)?

    • Scenario and importance: A trained model, whether released via a black-box API or white-box, may leak information about the training data; MI is the task of determining whether a sample is in the training set, and the authors call it the "most significant bit" of information—if MI fails, attacks that leak more information, such as reconstruction attacks, will also fail.
    • Shortcomings of existing methods: The standard approach is to train with DP and derive an MI advantage upper bound from (ε, δ) (e.g., Humphries et al., 2020), but the authors point out that there is a large gap between this upper bound and the capability of a real attacker, and hypothesize that the process of "first deriving a DP bound and then converting it into an MI bound" is itself suboptimal.
    • Core observation: The optimal advantage of the attacker in the MI security game is exactly equal to the total variation distance (TV) between the two output distributions (training set with/without the target sample), so the optimal upper bound can be obtained by computing the TV directly.
    • What the paper proposes: An optimal MI advantage upper bound for the composition of adaptive sampled Gaussian mechanisms (Theorem 5, 6), a linear-time, dimension-independent numerical algorithm for the TV, and MI metrics for DP-SGD models on CIFAR10.
    • Threat model:
      • Goal: Determine whether the candidate sample z′ is in the training set of model θ.
      • Knowledge: The attacker knows the training algorithm, the entire dataset D = {z1,…,zm}, and z′, and receives the trained model θ (the authors call this a stronger attacker).
      • Capability: The attacker chooses D and z′ themselves, and the challenger randomly decides whether to add z′ to D′ and then trains the model; adjacency is defined as add/remove, and the advantage doubles under the replacement definition.
      • Victim system and decision: The victim system is a composition of (sampled) Gaussian mechanisms, typically DP-SGD; success is measured by the advantage Adv(L, A) = 2·Pr[b = b′] − 1.
  2. What related research exists?

    Related work covers MI attacks and metrics, DP and its composition accounting tools, and a line of work deriving MI bounds from DP; this paper positions itself as the first path that directly analyzes MI bounds.

    Membership inference attacks and their metrics

    • Homer et al. (2008) gave the first proof of concept for MI; Shokri et al. (2017) trained neural network attacks against various models and measured attack success by accuracy (i.e., advantage).
    • Yeom et al. (2018) and Sablayrolles et al. (2019) proposed using simple heuristics such as loss for MI, which the paper states is more accurate and more robust than training attack networks.
    • Watson et al. (2022), Carlini et al. (2021), and Rezaei and Liu (2021) argue for evaluating MI using precision/recall or precision at low recall; the paper notes that these works show that some settings considered private because MI accuracy is far below 100% can in fact leak the membership of a small fraction of samples with very high precision.

    Differential privacy and composition accounting

    • Dwork et al. (2006) proposed DP; Dwork et al. (2010) and Kairouz et al. (2015) gave composition theorems; Mironov (2017) proposed Rényi DP (RDP).
    • Abadi et al. (2016) proposed DP-SGD and RDP accounting, and the Opacus library implements these accounting procedures; this paper uses these accounting methods to compute its Pinsker bound.
    • van der Maaten and Hannun (2020) state that DP-SGD is more accurate than other differentially private training algorithms on linear and convex models.

    MI bounds derived from DP and attack lower bounds

    • Humphries et al. (2020) proved that any (ε, δ)-DP trained model induces an upper bound on MI attacker accuracy that depends only on ε and δ; this bound is the object of numerical comparison in this paper, and the authors state that their bound is tighter than it.
    • The work of Nasr et al. (2021) is cited to show that DP guarantees can produce tight TPR/FPR; the authors state that this paper is the first to give an equivalent result on advantage.

    Positioning: The authors state that the phenomenon that "DP mechanisms are actually safer than DP bounds suggest" had previously been observed empirically only on DP-SGD, and this paper is the first to prove it theoretically; they also state that their analysis is the first to directly analyze MI bounds (rather than via a DP conversion).

  3. How does the paper address this problem?

    Write the MI advantage as the TV between two output distributions, prove that the TV of the adaptive (sampled) Gaussian composition does not exceed the TV of two Gaussian mixtures, and then compute it numerically with Monte-Carlo.

    Overall approach: without going through DP, directly equate the membership inference advantage with the total variation distance (TV) between two distributions, then find the optimal upper bound on this TV for the composition of adaptive (sampled) Gaussian mechanisms and compute it numerically.

    Security game and definition of advantage

    • The attacker chooses a dataset D and a candidate point z′; the challenger uses a uniform bit b to decide whether D′ is D ∪ {z′}, runs the learning algorithm L to obtain a model θ and gives it to the attacker; the attacker guesses b′, and the advantage is defined as Adv(L, A) = 2·Pr[b = b′] − 1.
    • Adjacency uses add/remove; the authors note that the advantage under replacement adjacency is twice that under add/remove, and after doubling it may exceed 1 and become a vacuous bound (Remark 1).
    • Key equality: the advantage of the optimal (deterministic) attacker satisfies Adv(L) = supA X(A) − Y(A) = TV(X, Y), where X and Y are the distributions of the model output when b=0 and b=1, respectively; that is, TV gives an upper bound on the advantage of any attacker.

    Pinsker bound (a computable approximation)

    • By Pinsker's inequality, Adv(L) ≤ TV(X, Y) ≤ √(KL(X | Y)/2), and KL equals the limit of the Rényi divergence Dα as α→1.
    • Since existing RDP accounting tools can compute Dα for the composition of adaptive sampled Gaussians, Dα for any α > 1 is a valid upper bound, and the closer α is to 1, the better the bound; the authors state that this bound is numerically better than that of Humphries et al. (2020), but it is not tight and is vacuous when KL > 2.

    Main theorem: optimal TV bound for compositions of Gaussian mechanisms

    • Proof technique: introduce a modified TV distance TVa (Definition 3), and prove that for Gaussian distributions TVa depends only on the distance between the two means and on σ, and is monotonically increasing in the mean distance (Lemma 4, proof in Appendix A).
    • Theorem 5 (no subsampling): the MI risk of a composition of T adaptive Gaussian mechanisms (L2 sensitivity r, standard deviation σ) does not exceed that of a single Gaussian mechanism with sensitivity √T·r and standard deviation σ, i.e., TV(X, Y) ≤ TV(N(0, σI_T), N(r1_T, σI_T)); the proof idea is to replace DP-SGD step by step with pure Gaussian steps and move that step to the beginning of the transcript (illustrated in Figure 3).
    • Theorem 6 (with subsampling, sampling rate q): the advantage upper bound is TV(N(0, σ), N(r·B(q)ⁿ, σ)), i.e., one end is a Gaussian centered at 0, and the other is a Gaussian mixture whose center is chosen randomly according to an n-dimensional Bernoulli(q); the proof uses Lemma 7 to convert the TVa of the mixture distribution back to the TVa of a single Gaussian.
    • The authors state that this bound is optimal because it exactly equals the MI advantage of a certain real attacker on a specific sequence of Gaussian mechanisms.

    Numerical computation

    • Write TV as an expectation over X, and estimate it by empirical averaging with Monte-Carlo sampling: TV(X, Y) ≈ (1/m) Σ (1 − Y(t_i)/X(t_i))·1(Y(t_i) ≤ X(t_i)).
    • Since the estimated quantity lies between 0 and 1, the authors state that the Monte-Carlo estimate is very accurate; the algorithm runs in linear time in the number of mechanisms and is independent of dimension; the densities of X and Y have closed forms, so the ratio can be computed.

    Precision bound (Appendix B)

    • Under a balanced prior, the definition of DP yields precision P(D | θ) = σ(log(P(M(D)=θ)/P(M(D′)=θ))), so precision lies between σ(−ε) and σ(ε) (with probability 1 − δ).
    • Attack accuracy Acc ≤ σ(ε) (with probability 1 − δ); the authors state that this shows the bound of Humphries et al. (2020) actually holds with probability 1 − δ rather than on average, and that the sigmoid function is close to this bound.
  4. What experiments did the paper conduct?

    The experiments consist of numerical computation and CIFAR10 training: Figure 1 compares three upper bounds with the empirical advantage, and Figure 2 presents the accuracy-privacy trade-off of DP-SGD on CIFAR10.

    Experimental setup

    • Object analyzed: DP-SGD, i.e., the composition of adaptive sampled Gaussian mechanisms; the paper does not train or evaluate any machine learning model as an attacker or judge; the experiments are numerical bound computation plus DP-SGD training on CIFAR10.
    • Figure 1 setup: Gaussian mechanism, C = 1, varying σ; four curves are compared—the bound of Humphries et al. (2020), the Pinsker bound of this paper, the TV bound of this paper, and the empirical (Empirical) advantage; δ = 1e-5.
    • Figure 2 setup: On CIFAR10, DP-SGD training for 50 epochs, subsampling rate 0.02, clipping threshold 10.0, varying the noise multiplier.
    • Metric: membership inference advantage (add/remove adjacency); Figure 2 also reports model accuracy to show the accuracy-privacy trade-off.
    • Numerical methods: The TV bound is estimated by Monte-Carlo sampling; the Pinsker bound is computed with Opacus's RDP accounting.
    • Not reported: The paper does not state the model architecture, the number of Monte-Carlo samples m, the number of repetitions, or confidence intervals.

    Main results

    The paper has no numerical tables; the main results are in two figures; the converted text retains only a row of labeled numbers at the top of Figure 1, which cannot be matched to specific curves, so the table below lists only the comparisons explicitly given in the main text and abstract:

    Swipe horizontally to read the table

    SettingBound of this paperConversion bound of Humphries et al. (2020)Source
    DP-SGD, ε = 4≈ 0.36≈ 0.97Abstract
    • The authors state that the bounds of this paper (TV and Pinsker) are tighter than Humphries et al. (2020), and that the TV bound matches the empirical advantage (Figure 1).
    • The top of Figure 1 is labeled with five numbers 29.93, 6.97, 3.92, 1.13, 0.68, but the converted text does not indicate which curves or σ values they correspond to, so they cannot be checked back and are therefore not used.
    • The authors state that Figure 2 shows the effect of the improvement in this paper on the accuracy-privacy trade-off on CIFAR10 (varying the noise multiplier), but the specific values in the figure are unreadable in the converted text.

    Comparison of the Pinsker bound and the TV bound

    • What was measured: Under the same DP-SGD parameters, the bound obtained with RDP accounting plus Pinsker's inequality (Pinsker) and the bound obtained by directly computing the TV numerically (TV).
    • Results: The authors state that both are numerically better than the bound of Humphries et al. (2020); the TV bound matches the empirical advantage, and the Pinsker bound is not tight.
    • Authors' interpretation: Pinsker's inequality is not optimal for the Gaussian mechanism, and gives a vacuous bound when KL(X‖Y) > 2; these are the two limitations of this method.

    Precision and accuracy bounds (verification of the derivation in Appendix B)

    • What was measured: Upper bounds on MI precision and attack accuracy derived directly from the (ε, δ)-DP definition.
    • Results: precision falls in [σ(−ε), σ(ε)] with probability 1 − δ, and attack accuracy Acc ≤ σ(ε).
    • Authors' interpretation: The authors state that empirically the sigmoid function is close to the bound of Humphries et al. (2020), i.e., that bound actually holds with probability 1 − δ rather than on average.

    Other ablations and analyses

    • Adjacency definition: under add/remove, Theorem 5 and 6 are both tight; under replacement, after doubling the advantage, only the bound without subsampling remains tight, and the subsampling case is left as an open problem (Remark 2).
    • Noise level: Theorem 5 can be extended to the pre-specified case where the noise level differs across steps; the proof for the composition with adaptively chosen noise is unclear and is left as an open problem (Remark 8).
    • Mechanism generalization: Theorem 5 can be generalized to any mechanism that is monotone with respect to some sensitivity under TVa, e.g., if TVa is monotone with respect to |u|₁ for the Laplace mechanism, then the conclusion extends to compositions of Laplace mechanisms (Remark 9).
  5. What are some points that can be further explored?

    The authors list open problems: the Pinsker bound is not tight, and replacement adjacency and adaptive noise; they also propose extending the analysis to other mechanisms and searching for optimal hyperparameters.

    Limitations noted by the authors and future directions

    • The Pinsker bound is not tight (Pinsker's inequality is not optimal for the Gaussian mechanism), and gives a vacuous bound when KL(X‖Y) > 2 (Section 3.2).
    • Under the replacement adjacency definition, a tight advantage bound for the subsampled Gaussian mechanism is unresolved, and the authors leave it as an open problem (Remark 2).
    • If the noise level at each step is chosen adaptively, the proof of the composition theorem is unclear, and the authors leave it as an open problem (Remark 8).
    • The analysis targets only the sampled Gaussian mechanism (because DP-SGD is the most commonly used), and the authors state that this type of MI analysis may be used for other mechanisms and algorithms, leaving it for future work (Conclusion).
    • The authors point out that the parameters in DP-SGD that optimize MI privacy-utility may differ from those that optimize DP, and that their analysis makes it possible to systematically search for the hyperparameters with optimal utility under a given MI advantage upper bound (Conclusion).

    Scope of experimental coverage

    • There are only two numerical experiments: Figure 1 (Gaussian mechanism, C = 1, varying σ, δ = 1e-5) and Figure 2 (CIFAR10, DP-SGD, 50 epochs, subsampling rate 0.02, clipping threshold 10.0, varying the noise multiplier).
    • The only dataset is CIFAR10; the paper does not report the model architecture, the number of Monte-Carlo samples m, the number of repetitions, or confidence intervals.
    • The only comparison targets are the DP conversion bound of Humphries et al. (2020) and the empirical advantage; no numerical comparison is made with other MI bound derivation methods.
    • The paper does not explain the attack implementation details of the empirical advantage (Empirical curve) (attacker type, model, sample size).
  6. Summarize the main content of the paper

    The authors give the optimal MI advantage upper bound for the adaptive sampled Gaussian composition directly without going through DP, stating that at ε=4 the upper bound is about 0.36, far tighter than the existing conversion bound of about 0.97.

    A theoretical analysis paper in the membership inference (MI) privacy field, with authors from Princeton, Meta AI, and the University of Wisconsin.

    • Problem: When using DP to defend against MI, the MI advantage upper bound converted from (ε, δ) differs greatly from the true attack capability; the authors ask whether the MI upper bound can be analyzed directly and optimally without going through DP.
    • Method: The advantage of the optimal attacker in the MI security game equals the total variation distance (TV) between the two output distributions; the authors prove that the TV upper bound for a composition of T adaptive (sampled) Gaussian mechanisms equals the TV between two Gaussian mixture distributions (N(0, σ) and N(r·B(q)ⁿ, σ)) (Theorem 5, 6), and give a linear-time, dimension-independent Monte-Carlo numerical algorithm; they also give a computable upper bound based on RDP accounting plus Pinsker's inequality.
    • Main results: The authors state that the MI advantage upper bound for DP-SGD at ε = 4 is about 0.36, whereas the conversion bound of Humphries et al. (2020) is about 0.97 (abstract); Figure 1 shows that the bound in this paper is tighter than Humphries et al. (2020) and matches the empirical advantage; Appendix B proves that under (ε, δ)-DP, MI precision falls in [σ(−ε), σ(ε)] with probability 1 − δ, and attack accuracy does not exceed σ(ε).
    • Practical validation: On CIFAR10, models were trained with DP-SGD (50 epochs, subsampling rate 0.02, clipping threshold 10.0) and MI metrics were given; the authors state that this achieves the best provable MI privacy at a given accuracy.
    • Authors' conclusion: DP guarantees sometimes imply large MI bounds, but mechanisms satisfying DP may in practice be much safer against MI attacks; previously this phenomenon had only been observed empirically on DP-SGD, and this paper proves it theoretically for the first time.
    • Implications: The authors believe their analysis opens the possibility of systematically searching for the optimal hyperparameters of DP-SGD by MI advantage upper bound (rather than by DP optimality), and can be extended to other mechanisms.

Related papers

Show 3 more papers
Read originalarxiv.org