Low-cost, high-power membership inference attacksLow-Cost High-Power Membership Inference Attacks
The authors propose the membership inference attack RMIA, which uses a pairwise likelihood ratio test to leverage both reference models and population data; the authors state that with only 1 reference model, AUC is at least 25% higher than LiRA.
In the black-box setting, the attacker (privacy auditor) can only observe model outputs, and possesses the target data point x, the trained target model θ, and background knowledge about the training algorithm and the population data distribution π; the goal is to determine whether x is in θ's training set. Attacks come in two modes: offline (using only pretrained OUT reference models) and online (training IN models for each query, which the authors regard as a proof of concept).
- Membership inference attacks (MIA) are used to quantify the privacy leakage of machine learning models with respect to training data, but the authors state that existing strong attacks require training many reference models, and the computational cost makes them hard to use for practical privacy auditing; moreover, different attacks outperform each other in different scenarios and perform unstably.
- The authors propose RMIA: model the null hypothesis as multiple worlds in which "target point x is replaced by a random sample z from the population", compute the likelihood ratio for each pair (x, z) using Bayes' rule, and then take the proportion of z that x can γ-dominate as the MIA score; offline mode uses only OUT reference models and compensates for the missing IN models with a linear approximation.
- On CIFAR-10/100, CINIC-10, ImageNet and Purchase-100, the authors report that RMIA outperforms LiRA, Attack-R, Attack-P and Quantile-Regression in both AUC and TPR at low FPR under a low budget of 1–4 reference models; under OOD non-member queries, RMIA's AUC is at least 21% higher, while LiRA is close to random guessing.
- The authors do not have a dedicated section discussing limitations; the text states that the online attack is only a proof-of-concept due to cost, that the evaluation on other algorithms such as GBDT is a simple experiment without comprehensive analysis, and that the OOD experiment setting deviates from the standard MIA game and its results cannot be directly compared. The experiments cover classification models on 5 datasets, and results are averaged over 10 random target models.
- Evaluated models
- Wide ResNet (depth 28, width 2)ResNet-504-layer MLP (layer units=[512, 256, 128, 64])Gradient Boosting Decision Tree (GBDT)
- Benchmarks
- CIFAR-10CIFAR-100CINIC-10ImageNetPurchase-100
- Metrics
- AUCTPR@FPR (0.01% 与 0.0% FPR)TPR-FPR (ROC) 曲线
The authors propose a new statistical test method, RMIA, for membership inference attacks, that is, determining at relatively low computational cost whether a data point was used in model training. The method models the null hypothesis in the likelihood ratio test at a fine granularity and uses both reference models and reference population data samples. The authors claim that its test power is superior to prior methods across the entire TPR-FPR curve, including in the extremely low FPR range down to 0. RMIA still performs well under conditions with only a small number of pretrained reference models (as few as 1) and with changes in data distribution and other attack factors, whereas prior attacks are close to random guessing. The authors believe the method lays the foundation for practical and accurate data privacy risk assessment in machine learning.
Paper analysis
What problem does this paper attempt to solve?
The authors state that existing membership inference attacks are computationally expensive and perform unstably across settings, and propose the low-cost, high-power RMIA statistical test.
Core question: how to design a membership inference attack (MIA) with low computational cost that still maintains high TPR at low FPR, so that it can be used for practical privacy auditing.
- Problem setting: MIA is used to quantify the information leakage of machine learning algorithms about training data; in reconstruction attacks, MIA also serves as an oracle to filter massive numbers of (mostly OOD) non-members at low FPR, so the attack needs to maintain high TPR in the low-FPR region.
- Shortcomings of existing methods (according to the authors): the authors state that existing strong attacks (such as LiRA, Ye et al. 2022) require training many reference models, and the computational cost makes them "useless for practical privacy auditing"; moreover, different strong attacks dominate each other depending on the setting—under low budget Carlini et al. (2022) is close to random guessing, and with sufficient budget Ye et al. (2022) has low power at low FPR.
- Core observation: the authors regard MIA as a hypothesis testing problem, where the key is to use all information sources that distinguish the two worlds; prior attacks ignored calibrating the test with population data z (missing the Pr(z|θ)/Pr(z) term), and can be regarded as average-case, uncalibrated versions of the test in this paper.
- Method proposed in the paper: RMIA, a pairwise likelihood ratio test that models the null hypothesis at fine granularity as "x replaced by a random z from the population", using both reference models and population data; the authors state that it dominates in all tested settings, and that many prior attacks can be expressed as simplifications of it.
- Threat model:
- Goal: determine whether a given data point x was used to train the target model θ (the indistinguishability game of Definition 2.1).
- Knowledge: black-box setting, where the attacker can observe model outputs; has background knowledge of the training algorithm and the population data distribution π.
- Capability: can train reference models; offline mode uses only pretrained OUT models, and online mode can train IN models for each query (the authors regard online as a proof-of-concept).
- Victim systems: classification models trained on CIFAR-10/100, CINIC-10, ImageNet, Purchase-100 (Wide ResNet, ResNet-50, MLP, GBDT).
What related research exists?
The paper traces the lineage from genomic statistical tests to shadow models, LiRA, and other strong attacks, and discusses defenses and low-cost auditing.
From statistical tests to MIA on machine learning
- Homer et al. (2008), Sankararaman et al. (2009), Murakonda et al. (2021)—proposed hypothesis testing methods for membership detection on genomic/high-dimensional summary statistics, optimizing the trade-off between test power and error.
- Shokri et al. (2017)—introduced MIA to machine learning, based on shadow models; subsequent work extended to white-box (Leino & Fredrikson, 2020; Nasr et al., 2019; Sablayrolles et al., 2019), black-box (Song & Mittal, 2021, etc.), label-only (Choquette-Choo et al., 2021; Li & Zhang, 2021) and other settings. The paper points out that such methods often require training many models after receiving a query, and the processing, storage and data costs make them infeasible.
Low-FPR evaluation and strong attacks (main comparison targets of this paper)
- LiRA of Carlini et al. (2022)—performs a likelihood ratio test between IN/OUT reference model distributions; the paper states that it is effective at low FPR but requires training many reference models and lacks calibration of the test with population data.
- Attack-P / Attack-R of Ye et al. (2022)—proposed an MIA game template and hypothesis testing framework; the paper points out that Attack-P is equivalent to the LOSS attack (Yeom et al., 2018), and that these methods fail to accurately characterize the Pr(x)/Pr(z) term (implicitly assuming Pr(x)=Pr(z)).
- Watson et al. (2022b)—calibrates the target model loss by sample difficulty; Quantile-Regression of Bertran et al. (2023)—trains a regression attack model to set thresholds for each FPR, and the paper cites its table to point out that it is relatively weak on some benchmarks; Wen et al. (2023)—improves likelihood ratio attacks by estimating target sample variants through perturbations.
Defenses and low-cost auditing
- Defenses: regularization (L2, dropout, label smoothing), reducing the generalization gap (Li et al., 2021; Chen et al., 2022), self-distillation (Tang et al., 2022), DP-SGD (Abadi et al., 2016) and its improvements, AdvReg (Nasr et al., 2018) and MemGuard (Jia et al., 2019); the paper cites Song & Mittal (2021) to state that many defenses are less effective than initially reported.
- Low-cost auditing: Steinke et al. (2023) audits differentially private algorithms using a single training run; the paper notes that its problem setting is different, but the goal of reducing auditing cost is the same.
Baselines and benchmarks: baseline attacks are Attack-P, Attack-R (Ye et al., 2022), LiRA online/offline (Carlini et al., 2022) and Quantile-Regression (Bertran et al., 2023), all reproduced using the original authors' code; benchmarks are CIFAR-10/100, CINIC-10, ImageNet, Purchase-100.
Positioning: the authors state that this paper proposes a different test that combines the advantages of multiple types of strong attacks, outperforms Carlini et al. (2022) and Ye et al. (2022) in overall performance and TPR at zero FPR when reference models are limited, and maintains high performance in the offline setting, making it suitable for practical scenarios with limited resources, time and data.
How does the paper address this problem?
RMIA decomposes the null hypothesis into a pairwise likelihood ratio test of "x replaced by a random z", computes it at low cost using Bayes' rule, and takes the dominance proportion as the score.
Overall idea: model the null hypothesis "x is not a training member" at fine granularity as multiple worlds in which x is replaced by a random sample z from the population, perform a likelihood ratio test for each (x, z) pair, and then combine these tests to obtain the MIA score. RMIA (Robust Membership Inference Attack) uses both reference models and population data, and offline mode only needs to train OUT reference models.
Problem Setting
- Adopts the standard MIA game (Definition 2.1): the challenger flips a coin to decide whether x is drawn from the training set S or the population π, and the attacker outputs a membership decision bit based only on x, θ and background knowledge.
- The attack outputs a score ScoreMIA(x; θ), which is compared with a threshold β to obtain a decision; scanning β yields the TPR-FPR (ROC) curve, which is the main basis for comparison.
Pairwise Likelihood Ratio and Its Computation
- For each pair (x, z), define LRθ(x, z) = Pr(θ|x) / Pr(θ|z), i.e., the ratio of the probability that the training algorithm produces model θ when x or z is a member.
- Under black-box, compute using Bayes' rule: LRθ(x,z) = (Pr(x|θ)/Pr(x)) · (Pr(z|θ)/Pr(z))−1; where Pr(x|θ) is the model's prediction confidence for the true class of x, and Pr(x) is the empirical average over reference models.
- Pr(x) needs unbiased sampling over IN/OUT models: online mode averages over half IN and half OUT models; offline mode has only OUT models, and uses the linear approximation Pr(x) = ½((1+a)·Pr(x)OUT + (1−a)) to compensate, with the scaling factor a tuned offline once using existing models (0.3 for CIFAR-10/CINIC-10, 0.6 for CIFAR-100, 1 for ImageNet, 0.2 for Purchase-100).
Combining into a Test and Decision
- The MIA score is the proportion of z that x can γ-dominate: ScoreMIA(x; θ) = Pr_z~π[LRθ(x, z) ≥ γ], where γ ≥ 1 controls the dominance margin; in experiments γ is fixed at 2 (the authors state that results are insensitive to small changes in γ, Figure 7).
- A score ≥ β is judged as MEMBER; the authors state that at γ=1 the expected FPR is about 1−β, i.e., the test is calibrated (Figure 8), making it easy to set the threshold according to the target FPR.
- Confidence function: SM-Taylor-Softmax (m=0.6, n=4, T=2) for CIFAR/CINIC-10, and raw Softmax (T=1) for ImageNet and Purchase-100 (Appendix B.2.1, Table 6).
Relationship with Prior Attacks (Authors' Analysis)
- The authors state that methods such as Attack-P ignore the Pr(x)/Pr(z) term, and LiRA lacks calibration with population data z; Table 1 summarizes the ScoreMIA formula of each attack, based on which the authors express prior attacks as average-case or uncalibrated versions of RMIA.
- Directly computing LR (Gaussian modeling of logits, equation 11) requires training online models for sample pairs; the authors report that the Bayes algorithm has higher AUC with 4 reference models (e.g., 6.6% higher on CIFAR-10, Figure 20), and the two are close with 64 models (Figure 19), so the main method uses the Bayes computation.
Implementation Details
- By default, for each target model, all its non-members are used as the z set (excluding x itself); Appendix B.1 gives the full pseudocode.
- Optional multi-query augmentation: mirror/translate images to obtain 18 augmented queries, and use majority voting to decide whether x dominates z (Appendix B.5).
What experiments did the paper conduct?
Comparing 4 baselines on 5 benchmarks, RMIA has the highest AUC and TPR at zero FPR under a low budget, with a larger advantage under OOD queries.
Experimental Setup
- Target models: Wide ResNet trained on CIFAR-10/100 and CINIC-10 (depth 28, width 2, 100 epochs, trained on half the dataset); ResNet-50 trained on ImageNet; 4-layer MLP trained on Purchase-100 (25k samples); also tested GBDT (Purchase-100) and multiple CNN/WRN architectures (Appendix A, C.3, C.6).
- Datasets: CIFAR-10, CIFAR-100, CINIC-10 (50k subset by default), ImageNet (about 1.2 million images, 1000 classes), Purchase-100.
- Baselines: Attack-P, Attack-R (Ye et al., 2022), LiRA online/offline (Carlini et al., 2022), Quantile-Regression (Bertran et al., 2023), all reproduced using the original authors' implementations.
- Metrics: AUC and TPR@FPR (0.01% and 0.0% FPR), as well as ROC curves; when attacking one target model, all population data are used as queries, with half members and half non-members.
- Number of repetitions: table results are averages over 10 random target models (Table 9 gives standard deviations); some ROC figures (Figure 2, 4, 9, 21–24) are for a single random target model.
- Default parameters: unless otherwise stated, LiRA and RMIA use 18 augmented queries; RMIA uses γ=2.
Main Results
AUC and [email protected]%FPR under low budget (offline, 1–4 reference models) (from Table 2, averaged over 10 target models; Quantile-Regression does not use reference models, marked *):
Swipe horizontally to read the table
Attack Reference models CIFAR-10 AUC CIFAR-100 AUC CIFAR-100 TPR@0%FPR ImageNet AUC Attack-P 0 58.19 75.91 0.0 64.48 Quantile-Reg. * 61.45 83.32 0.04 70.8 Attack-R 1 63.65 81.61 0.02 70.91 LiRA (offline) 1 53.2 68.95 0.27 58.66 RMIA (offline) 1 68.64 87.18 0.77 72.21 LiRA (online) 2 63.97 84.55 0.55 67.55 RMIA (offline) 2 70.13 88.92 1.73 73.95 RMIA (offline) 4 71.02 89.81 3.5 74.98 - The authors state that RMIA strictly dominates on all datasets: with 2 CIFAR-10 reference models, AUC is about 10% higher than Attack-R and LiRA; with 4 models, TPR@0%FPR is 3 times that of LiRA (Online); with 1 reference model, AUC is at least 24% higher than LiRA.
- The authors state that offline RMIA also outperforms the more computationally expensive LiRA (Online); Figure 1 (CIFAR-100, 1 reference model) shows RMIA AUC=0.872, LiRA 0.69, Attack-R 0.814, Attack-P 0.76.
- When reference models are abundant (Table 3, offline 127 OUT, online 127+127): on CIFAR-100, RMIA (online) AUC 91.01 is slightly lower than LiRA (online) 91.48, but TPR@0%FPR is 7.78 versus 7.13; the authors state that RMIA (Online)'s TPR at zero FPR is up to 50% higher than LiRA (Online), and offline RMIA is close to the online level.
Robustness to OOD Non-member Queries
- What was tested: CIFAR-10 target model, with non-member queries replaced by CINIC-10 samples (OOD) or pure noise, 127 OUT reference models, offline.
- Results: In Figure 4, RMIA AUC=0.768, Attack-P 0.75, Attack-R 0.632, LiRA 0.509 (close to random guessing); under noise queries (Figure 9), RMIA 0.967, Attack-R 0.597, LiRA 0.415 (below random guessing).
- Authors' interpretation: pairwise LR and in-distribution z comparisons can distinguish OOD queries from members; although Attack-P has high AUC, its TPR at low FPR is poor; the authors note that this setting deviates from Definition 2.1 (x does not come from π), and the results cannot be directly compared with the standard game.
Distribution and Architecture Shift
- Data distribution shift (Table 8, target model CIFAR-10, reference models CINIC-10, offline): with 2 reference models, RMIA AUC 66.05, Attack-R 61.45, LiRA 52.58; the authors state that RMIA's AUC is up to 25% higher than LiRA, and that it can be directly reused on models pretrained on other datasets with zero training cost.
- Architecture shift (Figure 12, 13): when target and reference architectures are the same, each attack is best; when architectures differ, the AUC gap between RMIA and other attacks widens (the authors report up to 3 percentage points).
Other Ablations and Analyses
- Number of z samples (Table 4, RMIA online, 254 models): AUC rises from 58.71 with 25 z to 68.25 with 2500, then is essentially flat (69.15 with 25000).
- Number of augmented queries (Table 7, CIFAR-10): offline RMIA from 1 query to 50 queries, AUC 68.74→71.95, TPR@0%FPR 1.73→3.22; the authors state that LiRA's AUC does not improve with the number of queries.
- γ and β (Figure 7, 8): γ in the range 1–about 16 keeps AUC and TPR@FPR essentially stable, and only excessively high γ causes a decrease; at γ=1, FPR decreases with 1−β calibration.
- Scaling factor a (Figure 6): when a is close to 1, AUC decreases by at most 5.5%; when a<0.5, it is relatively robust.
- GBDT (Figure 15, Purchase-100, 2 reference models): RMIA AUC 0.913–0.98 (depending on depth), higher than LiRA 0.863–0.968; the authors state that TPR at zero FPR is an order of magnitude higher.
- Reproduction differences: the authors report that offline LiRA reproduced with the original authors' code has far lower power than the values in the Carlini et al. (2022) paper, and state that Ye et al. (2022) and Wen et al. (2023) also show this difference.
What are some points that can be further explored?
The paper has no limitations section; the authors state that the online attack is only a proof of concept, and that the evaluation of other algorithms is a simple experiment.
Limitations and future directions noted by the authors
- The paper does not specifically discuss limitations (there is no Limitations section); the following are scope qualifications explicitly stated by the authors in the main text:
- Positioning of the online attack: the authors state that online methods are too costly in practical scenarios (such as reconstruction attacks), and that this paper analyzes them only "specifically as a proof-of-concept attack" (Section 1, Section 5).
- Coverage of other algorithms: the authors write that "a comprehensive analysis of attacks on various ML algorithms is beyond the scope of this paper", and that the GBDT experiment is only a simple experiment (Appendix C.6).
- Non-comparability of the OOD setting: the authors explain that the MIA game in the OOD experiments deviates from Definition 2.1 (x does not come from π), and that its results cannot be directly compared with those of the original game (Section 5.4).
- Note on reproduction discrepancies: the authors point out that the offline LiRA power reproduced with the original authors' code is far lower than the value reported in their paper (Section 5), which affects the baseline for comparison with LiRA.
Scope of experimental coverage
- The models tested are classification models on 5 benchmarks: Wide ResNet (CIFAR-10/100, CINIC-10), ResNet-50 (ImageNet), 4-layer MLP (Purchase-100), plus GBDT and CNN/WRN architecture variants.
- The comparison attacks are 4 baselines: Attack-P, Attack-R, LiRA (online/offline) and Quantile-Regression, all reproduced with the original authors' code.
- Table results are averages over 10 random target models; the ROCs in Figures 2, 4, 9, 21–24 are for a single random target model.
- The number of reference models ranges from 0–254; the number of z samples ranges from 25–25000; augmentation queries range from 1–50 (default 18).
- The paper does not report actual training time or query cost figures for each attack (cost claims are measured by the number of reference models); no statistical significance tests are reported.
Summarize the main content of the paper
RMIA uses a pairwise likelihood ratio test for membership inference, and under low budget its AUC and TPR at zero FPR outperform strong attacks such as LiRA.
A membership inference attack (MIA) paper whose goal is to keep privacy auditing at high test power under a low computational budget.
- Problem: the authors state that existing strong attacks (LiRA, Ye et al. 2022) require training many reference models, and the cost makes them hard to use in practice; moreover, they outperform each other depending on the scenario and perform unstably; under a low budget, LiRA is close to random guessing.
- Method: RMIA models the null hypothesis as "the target point x is replaced by a random z from the population", computes a likelihood ratio for each pair (x, z) using Bayes' rule, and uses as the MIA score the proportion of z that x can γ-dominate; the offline mode uses only OUT reference models and compensates for the missing IN models with a linear approximation. The authors state that prior attacks can be expressed as average-case or uncalibrated versions of this test.
- Low-budget results (Table 2, average over 10 target models): with 1 reference model, RMIA AUC on CIFAR-100 is 87.18, versus LiRA 68.95 and Attack-R 81.61; with 2 models, [email protected]%FPR is 4.9, versus LiRA (online) 1.15. The authors state that with 1 model the AUC is at least 24% higher than LiRA.
- With a sufficient budget (Table 3): on CIFAR-100, RMIA (online) AUC is 91.01, slightly lower than LiRA (online) 91.48, but TPR at zero FPR is higher (7.78 vs 7.13); offline RMIA is close to the online level.
- Robustness: under OOD non-member queries, RMIA AUC=0.768, while LiRA is only 0.509 (Figure 4); when the target and reference models are trained on different data (CIFAR-10 vs CINIC-10), RMIA still maintains the highest AUC (Table 8).
- Authors' conclusion: MIA as a privacy auditing tool should be stress-tested under low budgets, few reference models, and distribution and model changes; the authors state that RMIA consistently outperforms in these scenarios and can be used to audit the privacy risk of machine learning under realistic assumptions.
Related papers
Show 3 more papers
- Label-Only Membership Inference AttacksAttacksarXiv