Skip to content

Privacy Risks of Hardening Machine Learning Models Against Adversarial ExamplesPrivacy Risks of Securing Machine Learning Models against Adversarial Examples

arXiv· arXiv:1905.10291· CCS 2019· Liwei Song, Reza Shokri, Prateek MittalPrinceton University; National University of SingaporeIndexed by this site · 27 days ago· Originally publishedAttacks

Quick read

Attacks

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

The authors perform membership inference attacks on models trained with six adversarial example defenses, and report that the inference advantage of robust models is up to 4.5 times that of natural models (Yale Face, IBP-Based Verify).

Threat modelThe attacker's goal is to infer whether a given data point is in the target model's training set (membership inference). Knowledge: black-box access to model predictions; following Kerckhoffs's principle, the l∞ perturbation constraint Bϵ used in robust training and the verification method V are assumed known (Section 7.1 separately tests the case of unknown ϵ). Capabilities: generate adversarial examples for inputs and query prediction vectors. Victim system: image/sensor classification models trained with six adversarial defenses (3 empirical defenses, 3 verifiable defenses).

Questions
Defense research in the two fields of machine learning security and privacy is usually conducted independently; the authors focus on whether robust training against adversarial examples inadvertently increases the risk of privacy leakage (membership inference) of training data.
Methods
The authors use a membership inference method based on prediction confidence thresholds and propose two new inference strategies that exploit structural properties of robust models: based on adversarial example prediction confidence (IA) and based on verifiable worst-case predictions (IV), systematically measured across six adversarial defenses.
Experiments and results
On Yale Face, Fashion-MNIST, and CIFAR10, the authors report that all six defenses increase membership inference risk, with inference advantages up to 4.5×, 2×, and 3.5× that of natural models respectively; on the HAR dataset it is 2×; inference strategies targeting adversarial examples mostly outperform benign-input strategies on robust models.
Limitations and future work
The authors note that verifiable defenses did not improve inference accuracy on Fashion-MNIST (the model fits the training set poorly), and that none of the three verifiable defenses could scale to a wide ResNet on full CIFAR10; the authors leave whether the privacy-robustness conflict is a fundamental principle as an open question.
Experimental setupCNN (Yale Face)、CNN (Fashion-MNIST) et al. · Yale Face、Fashion-MNIST et al. · membership inference accuracy (Ainf)、membership inference advantage (ADVinf)
Evaluated models
CNN (Yale Face)CNN (Fashion-MNIST)Wide ResNet (CIFAR10)ResNet (CIFAR10)3-layer fully connected neural network (HAR)
Benchmarks
Yale FaceFashion-MNISTCIFAR10UCI Human Activity Recognition (HAR)
Metrics
membership inference accuracy (Ainf)membership inference advantage (ADVinf)
AI summaryThe researchers measured the effect of membership inference attacks on six state-of-the-art adversarial example defense methods and found that, compared with undefended natural training, adversarial defense methods do increase the target model's risk of being subjected to membership inference attacks. Membership inference attacks are used to determine whether a given data record belongs to a model's training set, and their attack accuracy reflects the training algorithm's information leakage about individuals in the training set. The mechanism given in the paper is that adversarial defenses optimize the decision boundary on training data, making individual training data have a greater influence on the robust model and thus be more easily exploited by inference attacks. Methodologically, the authors use existing inference methods based on model predictions and propose two new inference methods that exploit structural properties of robust models on adversarially perturbed data.

The researchers measured the effect of membership inference attacks on six state-of-the-art adversarial example defense methods and found that, compared with undefended natural training, adversarial defense methods do increase the target model's risk of being subjected to membership inference attacks. Membership inference attacks are used to determine whether a given data record belongs to a model's training set, and their attack accuracy reflects the training algorithm's information leakage about individuals in the training set. The mechanism given in the paper is that adversarial defenses optimize the decision boundary on training data, making individual training data have a greater influence on the robust model and thus be more easily exploited by inference attacks. Methodologically, the authors use existing inference methods based on model predictions and propose two new inference methods that exploit structural properties of robust models on adversarially perturbed data.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors study whether adversarial example defenses (robust training) in turn increase the membership inference privacy risk of the model's training data.

    Core question: Do robust training methods against adversarial examples increase the model's leakage of training set membership information (membership inference attack risk).

    • Problem setting: Attack and defense research in the two fields of machine learning security and privacy is usually conducted independently, and the authors state that it was previously unclear what unintended effects a defense method in one field would have on the other.
    • Why it matters: Membership inference attacks can determine whether a record is in the training set, and membership itself can leak sensitive information (the authors' example: appearing in a hospital analytics training set means having been a patient at that hospital).
    • Core observation: Robust training requires the model to predict invariantly within a small region around each training point (e.g., an l∞ ball), but this objective is optimized only on the training set; the authors believe this amplifies the influence of training data on the model and increases generalization error, thereby potentially making robust models easier to subject to membership inference. Figure 1 shows that the robust CIFAR10 classifier of Madry et al. (train acc 99%, test acc 87%) has a larger difference in loss distributions between training/test data than the natural model (train acc 100%, test acc 95%).
    • What the paper proposes: Two new membership inference methods that exploit structural properties of robust models (based on adversarial example predictions, based on verifiable worst-case predictions), and a systematic measurement of six adversarial defenses.
    • Threat model:
      • Goal: Infer whether a given data point belongs to the target model's training set.
      • Knowledge: black-box access to model predictions; following Kerckhoffs's principle, the attacker is assumed to know the perturbation constraint Bϵ used in robust training and the verification method V (Section 7.1 separately evaluates the case of unknown ϵ).
      • Capabilities: generate (targeted/untargeted) adversarial examples for inputs and query model predictions; can use shadow training to learn thresholds or train an inference classifier.
      • Victim system: classification models trained with six adversarial defenses (3 empirical defenses, 3 verifiable defenses).
  2. What related research exists?

    Related work falls into two categories, adversarial example attacks and defenses, and membership inference; this paper combines the two and uses confidence threshold inference as the baseline.

    Adversarial Examples and Empirical Defenses

    • Madry et al. [33]—PGD-Based Adv-Train: uses PGD to generate adversarial examples and trains only on them (α=0); the authors call it one of the most effective empirical defenses.
    • Sinha et al. [50]—Dist-Based Adv-Train: uses Lagrangian relaxation to generate distribution-based adversarial examples; the paper notes that its l2 statistical guarantee requires the loss to be smooth, and the ReLU used in this paper does not satisfy that condition, so it is classified as an empirical defense.
    • Zhang et al. [66]—Diff-Based Adv-Train: uses the difference in KL divergence between benign outputs and adversarial outputs as the robust loss.

    Verifiable Defenses

    • Wong and Kolter [61]—Dual-Based Verify: performs convex relaxation on the nonconvex ReLU operation, solves the dual problem to obtain a verifiable worst-case loss, and extends to ResNet with random projection [62].
    • Mirman et al. [34]—Abs-Based Verify: uses abstract interpretation (interval, zonotope domains) to propagate perturbation constraints and obtain a verifiable range of the output.
    • Gowal et al. [16]—IBP-Based Verify: interval bound propagation, designed similarly to Mirman et al.

    Membership Inference Attacks

    • Shokri et al. [47]—proposes shadow training: train multiple shadow models to mimic the target model's behavior, then train an inference model to distinguish members from non-members.
    • Yeom et al. [64]—proposes confidence threshold inference: if the prediction confidence is above a threshold, it is judged a member, and defines membership inference advantage (the improvement over random guessing multiplied by 2); the paper states that this simple method performs close to complex neural network inference models.
    • Other membership inference and privacy attack work (Nasr et al. [36, 37], Salem et al. [41], Long et al. [32], Hayes et al. [18]) is mentioned in the background.

    Baselines and Benchmarks: The baseline inference method in this paper is the confidence threshold method of Yeom et al. [64] (strategy IB, based on benign inputs); the comparison target is the natural (undefended) model on the same dataset. The datasets are Yale Face, Fashion-MNIST, CIFAR10, and additionally UCI HAR.

    Positioning of This Paper: The authors state that prior security and privacy defenses were studied independently; this paper combines the two areas, systematically measures the impact of six adversarial defenses on membership inference risk, and proposes two new inference strategies targeting robust models; part of the content was previously published as a short paper at a workshop [53], and this paper adds two attack methods and tests four more defenses.

  3. How does the paper address this problem?

    The authors formalize membership inference metrics and propose two new strategies that use adversarial example predictions (IA) and verifiable worst-case predictions (IV).

    Overall approach: use membership inference accuracy as a measure of privacy leakage, apply confidence threshold inference to natural models and six robustly trained models, and design two new inference strategies that exploit the perturbation constraint Bϵ of robust training, comparing inference advantage. The method framework centers on three inference strategies IB, IA, IV.

    Problem Setup and Metrics

    • The target model F is robustly trained (constraint Bϵ), the attacker's strategy is denoted I(F, Bϵ, z), outputting 1 for members and 0 for non-members; evaluation samples from the training set or test set with 50% probability.
    • The metrics are membership inference accuracy Ainf (the average of the correct rates for the member and non-member classes; random guessing is 50%) and membership inference advantage ADVinf = 2 × (Ainf − 0.5), the latter following the definition of Yeom et al. [64].

    Baseline Strategy IB Based on Benign Inputs

    • Confidence threshold inference: if the prediction confidence F(x)y is greater than threshold τB, it is judged a member; τB is chosen as the value that maximizes the gap between the complementary cumulative distributions of training/test confidence (evaluating worst-case risk), and in practice can be learned via shadow training.

    New Strategy IA: Exploiting Adversarial Example Predictions

    • For input (x, y), PGD is used under constraint Bϵ to generate a non-targeted adversarial example xadv, and membership is determined by whether F(xadv)y exceeds threshold τA.
    • Design rationale: the authors observe that robust training smooths predictions around training points, but this smoothing does not generalize well to test points, and adversarial perturbations widen the gap between training/test confidence distributions.
    • The attack uses the same Bϵ as robust training, which the authors consider a reasonable assumption under Kerckhoffs's principle; Section 7.1 evaluates the case of unknown ϵ.
    • Extension to targeted adversarial examples: for each input, k−1 targeted adversarial examples are generated (containing distance information to the decision boundary of each class), and following Shokri et al. [47], a binary inference network is trained for each class (3-layer fully connected, hidden layers 200, 20, 2), called model-infer (targeted).

    New Strategy IV: Exploiting Verifiable Worst-Case Predictions

    • For verifiable defense models, their verification method V is used to compute the worst-case prediction confidence V(F(x̃)y, Bϵ) of the input under Bϵ; if it exceeds threshold τV, it is judged a member.
    • IV requires using the same verification method V as the target model's robust training, and the authors likewise argue this assumption is reasonable under Kerckhoffs's principle.

    Experimental Subjects and Setup

    • Six defenses: empirical defenses PGD-Based Adv-Train [33], Dist-Based Adv-Train [50], Diff-Based Adv-Train [66]; verifiable defenses Dual-Based Verify [61], Abs-Based Verify [34], IBP-Based Verify [16].
    • Datasets and perturbation budgets: Yale Face (2,414 images, train 1,900 / test 514, ϵ=8/255), Fashion-MNIST (train 60,000 / test 10,000, ϵ=0.1), CIFAR10 (train 50,000 / test 10,000, ϵ=8/255), all with l∞ constraints; architectures are CNN (Yale Face, Fashion-MNIST) and wide ResNet (CIFAR10), see Appendix B for details.
    • The authors state that the code is publicly available (the paper gives the repository address).
  4. What experiments did the paper conduct?

    Membership inference is measured on three datasets and six defenses; the authors state that all defenses increase risk, with advantage up to 4.5 times on Yale Face.

    Experimental Setup

    • Models tested: Yale Face CNN, Fashion-MNIST CNN, CIFAR10 wide ResNet, trained with natural training and six defenses (PGD-Based / Dist-Based / Diff-Based Adv-Train, Dual-Based / Abs-Based / IBP-Based Verify), respectively; additionally a plain ResNet on a CIFAR10 20% subset (Dual-Based Verify) and a 3-layer fully connected network on HAR (PGD-Based Adv-Train).
    • Datasets: Yale Face (train 1,900 / test 514, ϵ=8/255), Fashion-MNIST (train 60,000 / test 10,000, ϵ=0.1), CIFAR10 (train 50,000 / test 10,000, ϵ=8/255), UCI HAR (train 7,352 / test 2,947, ϵ=0.05).
    • Baselines: the natural (undefended) model on the same dataset; the inference baseline is the confidence threshold strategy IB.
    • Metrics: membership inference accuracy Ainf and inference advantage ADVinf = 2×(Ainf−0.5); also reported are train/test/adv-train/adv-test (under PGD attack) and ver-train/ver-test (under verifiable worst case) accuracies.
    • Decision rule: the threshold is chosen as the value that maximizes inference accuracy (worst case); the targeted adversarial example experiment trains the inference network with 500 training points + 500 test points and tests on the remaining data.
    • Sample size and repetitions: the sensitivity analysis retrains 6 times for each of 60 training points; the paper does not report the number of repetitions for other experiments.

    Main Results

    According to Table 2, 3, 4 (empirical defenses, inference accuracy of strategies IB / IA):

    Swipe horizontally to read the table

    DatasetTraining methodtrain acctest accadv-test accIBIA
    Yale FaceNatural100%98.25%2.92%55.85%54.27%
    Yale FacePGD-Based99.89%96.69%77.63%61.69%68.83%
    Yale FaceDist-Based99.58%93.77%55.06%62.23%64.07%
    Yale FaceDiff-Based99.53%93.77%83.85%58.06%65.59%
    Fashion-MNISTNatural100%92.18%4.14%57.12%50.95%
    Fashion-MNISTPGD-Based99.93%90.88%68.06%58.32%64.49%
    CIFAR10Natural100%95.01%0%57.43%50.86%
    CIFAR10PGD-Based99.99%87.25%46.61%74.89%75.67%

    (The Dist-Based / Diff-Based rows for Fashion-MNIST and the Dist-Based / Diff-Based rows for CIFAR10 are omitted; see Table 3, 4; CIFAR10 Dist-Based is the only exception where IB is higher than IA, which the authors explain by about 60% of training points being unsafe for that model.)

    • The authors state that the three empirical defenses increase inference advantage to 3.2×, 2×, and 3.5× that of the natural model on Yale Face, Fashion-MNIST, and CIFAR10, respectively (natural model advantages are 11.70%, 14.24%, 14.86%, and robust models reach up to 37.66%, 28.98%, 51.34%).
    • Verifiable defenses (Table 8, 9): on Yale Face, all three defenses increase leakage, with IBP-Based Verify's strategy IV reaching 76.05% inference accuracy and 52.10% inference advantage, 4.5× that of the natural model (11.70%); on Fashion-MNIST, none of the three verifiable defenses increases inference accuracy (50.42%–52.67%), which the authors explain as poor training set fit (train acc below 90%, verified train acc below 80%).
    • The authors state that IA is mostly higher than IB on robust models, while the opposite holds on natural models.

    Refined Analysis for PGD-Based Adv-Train (CIFAR10)

    • Sensitivity analysis: Figure 2 shows that robust models are more sensitive to training data than natural models (larger confidence differences after retraining with a single training point removed).
    • Robustness generalization: Table 5 shows that as the adv-train ratio rises from 0 to 1, IA rises from 50.85% to 75.67%; the authors state that inference accuracy rises as the gap between adv-train and adv-test increases.
    • Perturbation budget: Table 6 shows that as ϵ rises from 2/255 to 8/255, IA rises from 66.54% to 75.67%; the authors state that more robust models leak more.
    • Model capacity: Figure 3 shows that inference accuracy and adv-train acc rise as capacity increases; at ϵ=2/255, capacity scale 2 suffices to fit, while ϵ=8/255 requires scale 8.
    • Targeted adversarial examples: Table 7 shows that model-infer (targeted) has the highest inference accuracy across all 10 classes (e.g., 83.58% for class 2, versus 80.16% for confidence-infer (benign)); the authors state that targeted adversarial examples contain distance information to the decision boundary of each class and leak more; the confidence threshold method performs close to the trained neural network.

    Capacity and Training Set Size of Verifiable Defenses

    • Capacity variation: Figure 4 (Yale Face, IBP-Based Verify, strategy IV) shows that inference accuracy rises initially as capacity increases, and decreases when capacity is too large because the verifiable robust loss becomes too loose.
    • Reduced training set: Table 10 (CIFAR10 20% subset, Dual-Based Verify) shows that under all ϵ, robust model inference accuracy (74.07%–78.50%) is higher than the natural model (71.50%); inference accuracy begins to decrease after ϵ exceeds 1/255, which the authors explain as larger ϵ requiring larger capacity to fit.

    Other Ablations and Analyses

    • Unknown ϵ: Figure 5 (Yale Face) shows that inference accuracy is highest when the attack ϵ is close to the true value; the PGD-Based model peaks at attack ϵ=9/255, and the other two peak at 10/255 (true ϵ=8/255); the authors state that approximately knowing ϵ suffices; Fashion-MNIST and CIFAR10 results are in Appendix D (Figure 8, 9).
    • Temperature scaling: Figure 6 shows that increasing temperature T lowers inference accuracy (IB and IA) for robust models on Yale Face and Fashion-MNIST.
    • DA regularization: Table 11 shows that after adding the domain adaptation regularization of Song et al. [51], Yale Face's IA drops from 68.83% to 63.14%, and Fashion-MNIST from 64.49% to 51.49%; the authors state that it reduces robust generalization error.
    • HAR dataset: Table 12 shows that PGD-Based Adv-Train has IA of 60.13% versus 55.36% for the natural model, with inference advantage 20.26% versus 10.72% (2×).
    • Other robust algorithms: Appendix E reports that the robust CIFAR10 classifier of Lecuyer et al. [29] (with a noise layer) has IB inference accuracy of 64.43%, versus 55.85% for the natural classifier.
  5. What are some points that can be further explored?

    The authors leave open the question of whether the privacy-robustness conflict is a fundamental principle, and point out the scalability limitations of verifiable defenses.

    Limitations and future directions noted by the authors

    • Whether the conflict is fundamental: In Section 7.3.2, the authors state that it is difficult to determine whether the privacy-robustness conflict is a fundamental principle, and leave "whether this conflict still holds for next-generation adversarial defenses" as an open question for the research community.
    • Limitations of lp constraints: In Section 7.3.2, the authors point out that lp distance metrics have limitations (citing Sharif et al. [45], Jacobsen et al. [23]), and state that designing meaningful perturbation constraints remains an important research challenge.
    • Scalability of verifiable defenses: In Section 6, the authors state that none of the three verifiable defenses can scale to the wide ResNet architecture on full CIFAR10, so verifiable defenses were not evaluated on full CIFAR10.
    • Exception on Fashion-MNIST: In Section 6.1, the authors were unable to obtain higher inference accuracy for verifiable defenses on Fashion-MNIST, and attribute this to the model fitting the training set poorly; they also note that increasing capacity does not guarantee that verifiable defenses fit well, because deeper and larger networks make verifiable upper bounds looser.
    • Guarantee of Dist-Based Adv-Train does not apply: In Section 2.1.2, the authors note that the l2 statistical guarantee of Sinha et al. [50] requires a smooth loss, which the ReLU setting in this paper does not satisfy, so they classify it as an empirical defense.

    Scope of experiments

    • Six defenses were tested (3 empirical, 3 verifiable), plus the noise layer method of Lecuyer et al. [29] in Appendix E; the datasets are four: Yale Face, Fashion-MNIST, CIFAR10, UCI HAR.
    • On full CIFAR10 only empirical defenses were evaluated; verifiable defenses on CIFAR10 used only a 20% training subset and a standard ResNet (Table 10).
    • The perturbation constraint is l∞ throughout (the Lecuyer et al. model in Appendix E uses an l2 budget of 0.1); the HAR experiments tested only one defense, PGD-Based Adv-Train.
    • The inference network for the targeted adversarial example experiments was trained on 500 training points + 500 test points per class (Table 7 setting).
    • The paper does not report the number of repetitions or confidence intervals for the main experiments; the sensitivity analysis uses 60 training points with 6 retrainings (Section 5.2.1).
  6. Summarize the main content of the paper

    The authors systematically measure the membership inference risk of six adversarial example defenses and state that robust training generally increases privacy leakage, by up to 4.5 times.

    This is a CCS 2019 paper studying the intersection of adversarial example defenses and training data privacy: whether robust training makes models more likely to leak information about members of the training set.

    • Problem: Security and privacy defenses were previously studied independently; robust training enforces prediction invariance around training points, which the authors argue amplifies the influence of training data and increases generalization error, thereby potentially exacerbating membership inference risk.
    • Method: Using membership inference accuracy and inference advantage (improvement over random guessing ×2) as metrics, in addition to the confidence threshold baseline (IB), two new strategies are proposed—based on adversarial example prediction confidence (IA) and based on verifiable worst-case predictions (IV); following Kerckhoffs's principle, the attacker is assumed to know the perturbation constraint and the verification method.
    • Main results: On Yale Face, Fashion-MNIST, and CIFAR10, the authors state that all six defenses (3 empirical + 3 verifiable) increase membership inference risk, with inference advantage up to 4.5× that of the natural model (Yale Face, IBP-Based Verify, IV reaching 76.05%), 2×, and 3.5× (CIFAR10, PGD-Based, IA reaching 75.67%), respectively.
    • Exception: On Fashion-MNIST, the three verifiable defenses did not increase inference accuracy (50.42%–52.67%), which the authors attribute to poor training set fit.
    • Mechanism analysis: The authors state that inference risk rises as robust generalization error and perturbation budget ϵ increase; when capacity is insufficient, robust models fit poorly and leakage is limited; inference accuracy on targeted adversarial examples is highest across classes.
    • Conclusion and implications: The authors argue that membership inference risk needs to be considered when designing adversarial defenses; temperature scaling and domain adaptation regularization can reduce inference accuracy to some extent; whether the privacy-robustness conflict is a fundamental principle is left as an open question.

Related papers

Both use: Fashion-MNIST
Show 3 more papers
Read originalCCS 2019