Skip to content

Range membership inference attacks (RaMIAs)Range Membership Inference Attacks

arXiv· arXiv:2408.05131· SaTML 2025· Jiashu Tao, Reza ShokriNational 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 propose the range membership inference attack (RaMIA), which detects whether training data falls within the neighborhood of a query point; on four datasets the authors state its AUC is higher than traditional MIA.

Threat modelThe attacker's goal is to determine whether a given range (defined by a center point, a distance function and a radius) contains any training data point, rather than exactly matching a single point. The attacker can access the data distribution π and the target model, and can sample points from the given range; the victim systems are classification or language models trained on their respective datasets.

Questions
Traditional membership inference attacks (MIA) only detect data that exactly matches training points and cannot measure the privacy leakage caused by the model's memorization of similar data; the authors state that horizontally flipping images can reduce MIA's AUC by 20%.
Methods
The authors propose the range membership inference attack (RaMIA): determining whether a given range (center point, distance function, radius) contains a training point, formalizing the problem as a composite hypothesis test, and aggregating the membership scores of sampled points within the range using a trimmed mean.
Experiments and results
On Purchase-100, CelebA, CIFAR-10, and AG News, the authors state that RaMIA's AUC is higher than MIA using range center-point scores, with AUC improvements of 1.20–5.4 under the RMIA backbone (Table III); performance rises with training-point density within the range.
Limitations and future work
The authors state that the current modeling of the composite hypothesis test and the trimmed-average solution are not optimal, and that the sampling process and range function design have room for improvement (Conclusion). The experiments are a proof of concept covering four datasets, with target models being MLP, CNN, WideResNet-28-2, and LoRA fine-tuned GPT-2.
Experimental setupfour-layer MLP、four-layer CNN et al. · Purchase-100、CelebA et al. · AUC、(Range) TPR@FPR
Evaluated models
four-layer MLPfour-layer CNNWideResNet-28-2GPT-2 (LoRA finetuned)
Benchmarks
Purchase-100CelebACIFAR-10AG News
Metrics
AUC(Range) TPR@FPR
AI summaryThe authors propose range membership inference attacks (RaMIA) to determine whether a model was trained on any data within a data range delineated by privacy semantics, rather than only checking whether a data point exactly matches a training point. They give a game formulation of the attack and design statistical tests for composite hypotheses. The authors state that on tabular, image and language data, RaMIA can characterize privacy loss more accurately and more comprehensively than traditional membership inference attacks.

The authors propose range membership inference attacks (RaMIA) to determine whether a model was trained on any data within a data range delineated by privacy semantics, rather than only checking whether a data point exactly matches a training point. They give a game formulation of the attack and design statistical tests for composite hypotheses. The authors state that on tabular, image and language data, RaMIA can characterize privacy loss more accurately and more comprehensively than traditional membership inference attacks.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    MIA only detects exactly matching training points; the authors propose RaMIA to detect privacy leakage in the neighborhood of training points.

    Core problem: traditional membership inference attacks (MIA) only test whether a query point exactly matches a training point, and cannot measure the privacy leakage caused by the model's memorization of similar or partially overlapping data.

    • Problem scenario: the authors argue that model memorization is not all-or-nothing and may remember only key features (e.g., a face identity while ignoring the background); horizontal flipping can reduce the member score from 2.99 to 2e-15 (Figure 2), and when testing with flipped images on CIFAR-10, MIA's AUC drops from 0.762 to 0.560 (Figure 3c).
    • Shortcomings of existing methods: according to the authors, MIA defines any non-exact training point as a non-member, so once the query point deviates from the original training data, audit results become unreliable; Figure 3 shows MIA performance degrading as the query point deviates on four datasets.
    • Core observation: privacy leakage also occurs near training points; the authors note that data extraction evaluations for generative models already treat candidate points falling within a tolerance range as successful extraction, and that RaMIA can bypass simple test-time defenses of the form "filter out anything identified as training data".
    • Paper proposes: the range membership inference attack (RaMIA) framework — replacing point queries with range queries, with a statistical method for the composite hypothesis test (trimmed mean), and proof-of-concept experiments on tabular, image and text data.
    • Threat model:
      • Goal: determine whether any training data point exists within a given range, rather than whether a single point is in the training set.
      • Knowledge: the attacker can access the data distribution π and the target model (consistent with the MIA game setting, Definition 2).
      • Capability: the attacker can sample a set of points from any given range; the paper does not describe RaMIA's access level using black-box/white-box terminology.
      • Victim systems: classification models trained on Purchase-100, CelebA, CIFAR-10, AG News, and a LoRA fine-tuned GPT-2.
  2. What related research exists?

    Related work falls into three categories: evolution of MIA methods, MIA using neighborhood points, and user-level inference; this paper extends the definition of membership from a point to a range.

    Membership inference attacks (MIA)

    • Shokri et al. [13] — proposed shadow-model-based MIA; the paper notes it is costly and assumes knowledge of the target model's training details, which is often infeasible.
    • Yeom et al. [23] — used model loss as a signal with a threshold, requiring no shadow model; thereafter MIA was formalized as an inference game.
    • [14], [16]–[18] — solved the inference game using likelihood ratio tests; [17], [16] proposed reference-model-based methods, and [18] assumes the attacker can access a population data pool to calibrate the likelihood ratio.

    MIA using augmented or neighborhood points

    • [17], [18] — expanded test queries with training-time augmentation to improve attack effectiveness on images; the paper notes this presupposes the attacker knows and can reproduce the training-time augmentation, and that images without training-time augmentation are deliberately excluded under existing privacy definitions.
    • Choquette-Choo et al. [24] — assumed member scores remain persistently high in the neighborhood of training points, aggregating neighborhood scores to measure smoothness; Mattern et al. [25] — held that loss curvature is larger near training points and scores drop rapidly with distance. The paper notes both types of methods ultimately still only judge exact training points as members.

    User-level inference

    • [27], [28] — user-level membership inference with simple averaging as the aggregation method; the paper notes that the truncation ratio in this paper is optimized and should be superior to simple averaging at the algorithmic level (comparison in Figure 11b).
    • [29], [30] — user-level inference by training shadow models, targeting face/speech recognition systems labeled by user identity; the paper notes that the target model in this paper (a face attribute classifier) does not use user identity information in training, making inference harder.

    Baselines and comparison setup: The paper states that RaMIA is a new concept with no prior method for direct comparison, so it is compared with the de facto standard auditing framework MIA; MIA's query is the range center point (by definition not training data), the membership inference backbones are LOSS [23], RMIA [18], LiRA [17], and the benchmarks are Purchase-100, CelebA, CIFAR-10, AG News.

    The authors position this paper as extending the membership definition from exact points to ranges: when the range function is defined per user, RaMIA degenerates to user-level inference, making it a more general auditing framework.

  3. How does the paper address this problem?

    Change the membership inference game to a range query, using a composite hypothesis test plus trimmed-average aggregation of the membership scores of sampled points.

    Overall idea: extend MIA's point query to the Range Membership Inference Attack (RaMIA)—determining whether a range defined by a center point, a distance function, and a radius contains any training point; statistically this is a composite hypothesis test, and the authors use a trimmed average to robustly aggregate the membership scores of sampled points within the range.

    Range membership inference game

    • Game setup (Definition 2): the challenger samples a training set D and trains a model θ; a coin flip gives b; when b=1, a range R1 containing training point z1 is sampled; when b=0, a range R0 containing only non-training point z0 and no training points is sampled; the attacker receives θ and Rb and outputs a guess b̂.
    • Definition of range: R = {x′ : d(x′, x) ≤ ϵ}, where x is the center, d is the range function, and ε is the range size; the range function can be a spatial distance (lp norm), a transformation-based (geometric transformation) distance, or a semantic (e.g., user identity) distance.
    • Evaluation metric: a range containing at least one training point is recorded as IN, otherwise OUT; ROC is plotted by sweeping thresholds over (Range) TPR/FPR, and AUC measures attack capability.

    Composite hypothesis testing

    • Hypotheses: H0 is that all points in the range are not in the training set, H1 is that at least one point in the range is in the training set; since the entire range cannot be traversed, a sampled set S is used in place of Rb.
    • GLRT: takes the maximum likelihood over S, IP(θ|H1) ⇒ maxx ∈ S IP(θ|x ∈ D); the authors argue it assumes the true training point falls in every sampled set and that the maximum can be reliably found, which is hard to hold in practice.
    • Bayes Factor: takes the expectation over S, requiring the true prior IP(x), which is generally unknown; both methods depend on the absolute correctness of likelihood values, whereas MIA is unreliable on OOD data and would inflate Range FPR.

    Trimmed average aggregation

    • Method: IP(θ|H1) = TrimmedAvg(S, qs, qe; IP), i.e., the membership likelihoods of points in S are first trimmed by quantiles and then averaged; without trimming it degenerates to the Bayes Factor.
    • Settings by data type: when sampled points are real ID data, set qs = 0 (remove the minimum), and qe is lowered as the number of real samples decreases; when there is only synthetic data, set qe = 100 (remove the maximum), and qs is lowered as sampling quality worsens.
    • Hyperparameter determination: qs and qe are determined by grid search on a reference model (similar to the offline version of RMIA; details in Appendix A).

    Framework components and experimental design

    • Two components: Sampler(R) samples within the range to obtain S; Membership Tester is any point-query MIA algorithm (experiments use LOSS, RMIA, LiRA), which outputs membership scores that are then trimmed-averaged to obtain RaMIA(R).
    • Range functions for each dataset: Purchase-100 uses missing columns (Bernoulli sampling on missing columns, with 19 samples per range plus mode filling); CelebA uses identity semantics (all retained photos of the same identity); CIFAR-10 uses geometric transformations (10 augmentations applied to the center); AG News uses word-level Hamming distance (mask k words and fill with pretrained BERT, generating 50 sentences per range).
    • Hyperparameters (Sec V-B): Purchase-100 has 20 samples per range, qe = 100, qs = 45; CIFAR-10 has at most 10 transformations, qe = 100, qs = 40; AG News has 50 sentences per range, qe = 100, qs = 20; CelebA uses all available images (1–18 per identity), qs = 0, qe = 25.
    • Comparison method: MIA's input is the range center point, but the ground truth for both methods is defined by range membership; the authors note that if evaluated under the correct MIA privacy definition, MIA's AUC would be close to random guessing at 0.5.
  4. What experiments did the paper conduct?

    RaMIA's AUC is higher than MIA using center-point scores on all four datasets, and factors such as training-point density and range size were analyzed.

    Experimental setup

    • Models under test: a four-layer MLP trained on Purchase-100 (hidden layers [1024, 512, 256], test accuracy 86%, 16 models in total); a four-layer CNN trained on CelebA (test accuracy 87%, 4 models); WideResNet-28-2 trained on CIFAR-10 (83% without augmentation, 92% with augmentation, 4 models); GPT-2 pretrained and LoRA fine-tuned on AG News (test perplexity 1.39, 4 models). Each model is trained on half of its respective dataset.
    • Datasets: Purchase-100 (600-dimensional binary features, 100 classes), CelebA (202,599 faces, 10,177 identities, with the first 5090 identities as the member set), CIFAR-10 (50,000 training images), AG News (120,000 sentences in the training set, treated as text generation).
    • Baseline: MIA, with point queries at the range center point as input; both methods share the membership inference backbones LOSS, RMIA (offline version), LiRA, and ground truth is defined by range membership in both.
    • Metrics: AUC; additionally (Range) TPR@FPR (1% and 0.1%) is reported following [17].
    • Number of repetitions: except for CelebA, which uses all candidate images, random sampling is iterated multiple times, reporting mean and standard deviation (Table III, Table IV).
    • Review method: no LLM or human review; metrics are computed automatically against range membership ground truth.

    Main results

    Under the hardest setting (each IN range contains only one training point and it is not at the range center), the AUCs in Figure 4:

    Swipe horizontally to read the table

    DatasetMIARaMIASource
    Purchase-100 (m=10)0.6320.657Figure 4a
    CelebA0.5600.614Figure 4b
    CIFAR-100.6010.621Figure 4c
    AG News (d=5)0.5780.599Figure 4d
    • The authors state that RaMIA outperforms MIA on all four datasets, and that this is achieved under the hardest setting; Table III reports AUC improvements: with the RMIA backbone, 2.62 ± 0.04 for Purchase-100, 2.13 ± 0.06 for CIFAR-10, 5.4 for CelebA, and 1.20 ± 0.2 for AG News; with the LiRA backbone, 0.90 ± 0.03, 1.10 ± 0.00, 4.1, and 3.80 ± 0.20 respectively.
    • The authors emphasize that sampling cost is small relative to range size: the Purchase-100 range contains 1024 candidate points, with less than 20% sampled; within distance 8 in AG News there are millions of sentences, of which only 50 are taken.
    • Table IV gives TPR@FPR (1%/0.1%), with most values between 0–5.20; the paper explicitly states that these TPRs do not reflect attack capability and are provided only for interested readers' reference.

    Effect of training point density and range size

    • Increasing density: on CelebA, as training point density rises from 0% to 50.0%, AUC rises monotonically from 0.614 to 0.936 (Figure 5a); on CIFAR-10, as the number of transformations n increases from 1 to 10, AUC rises from 0.500 to 0.621 (Figure 5b).
    • Enlarging the range without introducing training points: on Purchase-100, as the ℓ1 range d increases from 10 to 50, AUC drops from 0.677 to 0.621; on CIFAR-10, as the ℓ2 range d increases from 2 to 10, it drops from 0.771 to 0.654 (Figure 6).
    • Authors' interpretation: the probability that sampling hits a training point varies linearly with density, while range dilution degrades performance.

    Correlation with MIA susceptibility and masked data

    • Correlation: the RaMIA score percentile of member points is positively correlated with the MIA score percentile, with Pearson correlation coefficients of 0.66 for Purchase-100, 0.74 for CIFAR-10, and 0.80 for AG News (Figure 7); on CelebA, the more training photos of the same identity, the more easily it is identified by RaMIA (Figure 8).
    • Masked data (PII scenario): using spaCy to mask person names in an AG News subset and BERT to generate 10 candidate sentences, MIA's AUC is 0.579 and RaMIA's is 0.590 (Figure 9); the authors believe the gap is smaller than in Figure 4d, possibly because the PII fill generated by BERT is not diverse enough.

    Other ablations and analyses

    • ROC with the LiRA backbone (Figure 10): on the four datasets, RaMIA's AUCs (0.643, 0.609, 0.628, 0.557) are all higher than MIA's (0.637, 0.561, 0.617, 0.519).
    • Comparison of aggregation methods (Figure 11): on CIFAR-10, RMIA/GLRT has an AUC of 0.528, lower than RMIA/Trimmed's 0.621 and RMIA/Bayes's 0.614; on AG News, LiRA/GLRT is 0.512, lower than LiRA/Trimmed's 0.557; on Purchase-100, the three are close (0.652–0.657).
    • MIA degrades as queries deviate (Figure 3): on Purchase-100, as the number of missing values m increases from 10 to 200, AUC drops from 0.632 to 0.524; on CelebA, when swapping in other photos of the same identity, it drops from 0.995 to 0.560; on AG News, at Hamming distance d=2 and d=5, the values are 0.609 and 0.578 respectively (the original sentence says 0.745).
  5. What are some points that can be further explored?

    The authors state that the current modeling and solution are not optimal and that sampling and the range function can be improved; the experiments are a proof of concept on four datasets.

    Limitations and future directions noted by the authors

    • Solution not optimal: the authors acknowledge that RaMIA brings new technical challenges, and that the current composite hypothesis test modeling and trimmed-average solution are "not optimal" and are only a starting point (Sec IV-D, Conclusion).
    • Sampling process can be improved: the Conclusion states that the sampling process has ample room for improvement.
    • Range function design can be improved: the Conclusion states that the range function design can be further refined.
    • Hyperparameters depend on backbone signal: Sec IV-C points out that the optimal qs and qe vary with the membership signal (e.g., loss values, LiRA scores) and need to be re-determined per signal.
    • Future direction: the authors hope future work will develop stronger and more robust RaMIA strategies (Conclusion).

    Experimental coverage

    • Four types of models were tested: a four-layer MLP (Purchase-100), a four-layer CNN (CelebA), WideResNet-28-2 (CIFAR-10), and LoRA fine-tuned GPT-2 (AG News), training 4–16 models per dataset (Sec V-C).
    • The membership inference backbones are LOSS, RMIA (offline version), and LiRA (Appendix A).
    • The range functions cover four types: missing columns, identity semantics, geometric transformations, and word-level Hamming distance (Sec V-A).
    • The main results are under the hardest setting: each IN range contains only one training point and it is not at the range center (Figure 4 caption).
    • The paper does not report the specific number of repetitions per experiment, only stating that means and standard deviations are reported over random sampling iterations (Table III, Table IV).
  6. Summarize the main content of the paper

    RaMIA extends membership inference from exact points to ranges, and the authors state that it quantifies privacy risk more comprehensively than MIA on all four types of data.

    An attack paper in the privacy auditing direction, proposing the range membership inference attack (RaMIA), which extends the privacy definition of traditional membership inference attacks (MIA).

    • Problem: MIA treats only exact training points as members, whereas the authors argue that the model's memorization of similar data also leaks privacy; horizontally flipping images can reduce MIA's AUC on CIFAR-10 from 0.762 to 0.560 (Figure 3c).
    • Method: the attacker receives a range query defined by a center point, a distance function and a radius, and determines whether it contains any training point; this is a composite hypothesis test, and the authors use a trimmed mean to robustly aggregate the membership scores of sampled points within the range, with the membership test able to plug into any MIA algorithm (LOSS, RMIA, LiRA used in experiments).
    • Main results: under the hardest setting where each IN range contains only one training point and it is not at the center, RaMIA's AUC on Purchase-100, CelebA, CIFAR-10, AG News is 0.657, 0.614, 0.621, 0.599 respectively, all higher than MIA using the range center point's score (0.632, 0.560, 0.601, 0.578, Figure 4); with the RMIA backbone, AUC improves by 1.20–5.4 (Table III).
    • Other findings: performance rises with training point density within the range (AUC reaches 0.936 at 50.0% density on CelebA, Figure 5a) and falls with range dilution (Figure 6); member points' susceptibility to MIA and RaMIA is positively correlated (correlation coefficients 0.66–0.80, Figure 7).
    • Authors' conclusion: RaMIA degenerates to user-level inference when the range function is defined per user, making it a more general and more intuitive privacy auditing framework; the authors state that the current solution is not optimal, and that sampling and range function design are left for future work to improve.

Related papers

Show 3 more papers
Read originalSaTML 2025