No reference model needed: calibrating single-round membership inference attacks with neighboring samplesCalibrating One-Round Membership Inference with Neighbors
Using neighbor samples to approximate the outlier distribution on a single model, Synthetic Neighbors with Early Checkpoint achieves [email protected]%FPR of 84.98% on CIFAR-10 without defenses.
One-round membership inference: the attacker only gets a single target model Ft and a sample x, can query loss or confidence, and cannot retrain the model. The Early Checkpoint variant requires intermediate training snapshots, relaxing the black-box assumption, aimed at internal auditing.
- Strong membership inference relies on reference models for per-sample calibration, but retraining large models is too costly. In the one-round setting, there is only one trained model, so existing methods fall back to a global loss threshold, the signal at low FPR is weak, and DP auditing consequently becomes looser.
- The authors replace the out shadow model scores with the target model's scores on canary neighbors to estimate the outlier distribution. Neighbors come from test-set retrieval (Similarity Neighbors) or Stable Diffusion image-to-image generation (Synthetic Neighbors); the Early Checkpoint variant scores neighbors with an early checkpoint.
- Across nine scenarios (three datasets × no defense, RelaxLoss, DP-SGD), the authors state Synthetic Neighbors E.C. comprehensively outperforms Steinke et al. and narrows the gap to LiRA. For example, CIFAR-10 no-defense [email protected]%FPR rises from 23.38% to 84.98%, with LiRA at 97.03%.
- The authors state that the optimal neighbor distance depends on the canary and the model, is unknown in advance, and lacks a criterion to quantify neighbor quality beforehand. Similarity Neighbors is limited by whether the test set has suitable neighbors. Experiments compare Steinke et al. and LiRA on three image classification datasets, 500 label-flipped canaries, and 64 models.
- Evaluated models
- 目标分类模型(架构与训练流程遵循 Aerni et al.)
- Benchmarks
- CIFAR-10CIFAR-100CINIC-10(去除 CIFAR-10 图像后下采样至 50k 训练、10k 测试)
- Metrics
- TPR at 0.1% FPRempirical epsilon
To address the problem that single-round membership inference (MI) lacks a reference model and per-sample calibration cannot be estimated, the study proposes recovering calibration signals using neighboring samples of the target point, without training any additional models. The method obtains neighbors in two complementary ways and further sharpens the signal by querying early training checkpoints. On three image classification datasets and three training settings, neighboring samples provide strong membership signals and competitive attack performance, without increasing training cost.
Related events and news
1 events · 0 news mentions
- This event's paper
单轮成员推理攻击利用邻居样本校准
Paper analysis
What problem does this paper attempt to solve?
One-round membership inference has no reference model; the authors use neighbor queries to recover per-sample calibration.
How to recover per-sample membership inference calibration when only a single trained model is available and reference models cannot be retrained.
- Scenario: membership inference determines whether a sample is in the training set and is used for privacy auditing. The authors consider the strongest attacks to estimate "how high a score the model would give if the sample were not trained on" using reference models, thereby distinguishing "naturally easy" from "memorized". Transformers and large-scale foundation models are expensive to train, and retraining dozens to hundreds of reference models is often infeasible.
- Existing shortcomings: in the one-round setting, the auditor has only one model. The authors state existing one-round methods fall back to global loss thresholds or simple heuristics, losing per-sample calibration; the signal is weak at low false-positive rates, so single-run differential privacy audits are therefore loose.
- Core observation: the role of reference models is only to reveal how a sample performs on a model not trained on it; querying neighboring non-members on the target model can approximate the same information.
- Proposed method: replace LiRA's out-model scores with neighbor scores. The two neighbor types are Similarity Neighbors (retrieved from the test set) and Synthetic Neighbors (synthesized by a diffusion model); internal audits can also query neighbors at early checkpoints.
- Threat model:
- Goal: output a score for a given sample indicating whether it belongs to the training set, then threshold for membership decision; in DP auditing, convert canary membership scores into an empirical lower bound on the privacy parameter ε.
- Knowledge and capability: the authors state they study the most restricted and most realistic one-round membership inference. The attacker receives a single target model Ft and sample x, can query per-sample signals such as loss or confidence, and cannot retrain models.
- Victim system: a deployed or single-training model; in DP auditing, the auditor controls this single training run and can insert canaries.
- Early Checkpoint: this variant requires intermediate training snapshots; the authors state this relaxes the black-box assumption and is better suited to internal auditing; for external attackers it applies only when checkpoints are available.
What related research exists?
The work sits between reference-model MIA, no-reference attacks, and single-run DP auditing, and uses neighbors as a substitute for shadow models.
The paper divides related work into reference-model attacks, no-reference attacks, single-run DP auditing, and recent work using neighboring samples for inference.
Reference-model membership inference
- Shokri et al. [24]: Train multiple auxiliary models on same-distribution data, then train an attack classifier on their outputs, establishing standard black-box MIA.
- Salem et al. [22], Li et al. [15]'s ℓ-Leaks: The former shows that fewer shadow models, or even no dedicated attack classifier, still allows inference; the latter argues that posterior probabilities lose information and uses shadow models to characterize the pre-softmax logits distribution.
- LiRA [4]: Formulates membership inference as per-sample hypothesis testing, explicitly modeling uncertainty and focusing on low FPR. The authors state it consistently outperforms previous shadow-model-based attacks and is widely regarded as the state-of-the-art reference-model attack. Online LiRA additionally trains in models containing the target sample, costing more than Offline LiRA, which uses only out models.
No-reference-model membership inference
- Yeom et al. [30], Bertran et al. [3]: The former thresholds the loss; the latter uses quantile regression to train lightweight auxiliary models estimating score distributions without shadow training, and claims competitiveness with LiRA at low FPR.
- Language model directions: Carlini et al. [5] use zlib entropy-normalized perplexity; Min-K% [23] and Min-K%++ [31] aggregate statistics of the lowest-probability tokens. The paper also mentions no-shadow methods in recommendation systems [7] and federated learning [10].
Single-run DP auditing
- Steinke et al. [25]'s ORA: Places randomly included canaries in a single training run and uses binomial tail bounds to convert membership guesses into an ε lower bound under (ε, δ)-DP. Mahloujifar et al. [17] tighten the conversion using the full f-DP trade-off curve; Xiang et al. [29] give a theoretically optimal membership decoder under f-DP using order statistics.
- The signal itself: The authors state these advances mainly improve the statistical procedure from "guess to privacy lower bound," with membership signals often directly using loss or gradient projections. Keinan et al. [14] point out that canary signal interference is a major obstacle to loose auditing under DP-SGD. Liu et al. [16] replace the loss signal with quantile regression based on Bertran et al. [3], training auxiliary models to predict sample-specific quantiles, and claim significant improvements in the black-box setting.
Using neighboring samples as reference models
- Recent text directions: Some works characterize distributions using scores on synthetic neighboring texts, thus avoiding reference data; Galli et al. [13] perform random perturbations in embedding space and query noisy variants of the target instance; Mozaffari and Marathe [19] generate semantically perturbed texts and train neural classifiers to distinguish members from non-members based on these responses.
Baselines and upper bound: The experimental baseline is Steinke et al. [25]'s one-round audit; Offline LiRA serves as the upper bound. Datasets are CIFAR-10, CIFAR-100, and CINIC-10.
The authors position this paper at the common bottleneck of one-round attacks and single-run DP auditing: instead of training out models, they use the target model's scores on neighbors to estimate the outlier distribution D1.
How does the paper address this problem?
Use the target model's logit confidence on neighbors to estimate the out distribution, then score with tail probabilities following Offline LiRA.
The overall idea is a replacement for Offline LiRA: instead of training out shadow models, use the target model Ft's scores on canary neighbors to estimate the outlier distribution; the method is called one-round membership inference calibrated with neighbors.
Problem setting and LiRA estimator
- Score: The standard choice is logit-scaled confidence. Let p = Ft(x) be the predicted probability on the true label y, then s(F, x) = log(p / (1-p)). The authors state that raw confidence is not approximately Gaussian, while s is approximately Gaussian; larger s indicates stronger memorization.
- Offline LiRA: Only uses out models not trained on x, estimates the out score distribution as Gaussian D1 = N(μ_out, σ_out²), then computes the upper-tail probability of the target score relative to that distribution. Small Λ(x) means x is more likely a member. The online variant also trains in models containing x, which is unavailable in the one-round setting; LiRA below refers to offline by default.
- This paper's replacement: Given n neighbors, use the mean and variance of s(Ft, neighbors) to obtain D̂1, and the canary is still scored by the Gaussian tail probability of s(Ft, x) under D̂1. Algorithm 1 only queries Ft and does not train models.
What neighbors are useful
- Assumption 1 (Local smoothness): The target model's membership scores vary smoothly on the data manifold near the canary, so sufficiently close non-member scores can approximate the out model's score for the canary.
- Distance trade-off: Neighbors must be close enough to be representative; too close, and when the canary is memorized, scores are pulled toward the member region, contaminating D̂1. Hard-to-remember samples can tolerate closer neighbors; easy-to-remember samples need farther ones. Membership labels are unavailable at inference time, and the optimal distance varies with the canary and model, so the authors do not set a single distance threshold.
- Operationalization: Restrict neighbors to a similarity band that is "close but not too close." Figure 3 compares neighbor distributions with shadow model in (blue) and out (red) distributions: for Stable Diffusion img2img with strength 0.45, overly close neighbors resemble the member distribution; strength 0.75 is closer to the non-member distribution.
Similarity Neighbors
- Source: The test set is by construction all non-members, same distribution as training, and at the train–test distance; the authors state this is the upper edge of the similarity band.
- Retrieval: Discard test samples of different classes; embed the canary and remaining test samples with OpenAI's CLIP ViT-B/32, and compute cosine similarity. Apply 18 augmentations to the input pair (horizontal shift, vertical shift, vertical flip) and average. The authors adopt this recipe because it performed best empirically; simpler variants without class filtering or augmentation are possible.
Synthetic Neighbors
- Generation: Use the image-to-image pipeline of stable-diffusion-v1-5, partially noising the input and then denoising. The authors state this works when the test set has no suitable neighbors, and samples can be controlled via the generative model, hyperparameters, and optional text prompts.
- Hyperparameters: Number of denoising steps, strength ([0, 1], determining how far the output can deviate from the input), and guidance scale (influence of the text prompt). The authors only use medium to high strength to ensure distance. To assess potential, they report the best score over steps ∈ {30, 35, 40}, strength ∈ {0.55, 0.65, 0.75, 0.85}, and guidance scale ∈ {1, 3, 5}. With guidance scale 1, an empty prompt is used; with larger values, a short class-representative prompt is used.
Early Checkpoint
- Approach: Neighbor scores are computed on an early checkpoint of the target model, while the canary score is still computed on the fully trained model. The authors state that before memorization appears, the model has generalized but has not yet overfit specific training samples, so the score landscape near members looks more like non-members, relaxing the distance trade-off.
- Selection: Checkpoints are saved periodically during training, and the one with the highest privacy leakage is selected. Figure 4 is a real example: when querying synthetic neighbors, [email protected]%FPR peaks at an early epoch and then declines. This variant requires intermediate training states, which the authors state are available for free when the auditor controls training.
What experiments did the paper conduct?
Across nine image classification scenarios, Synthetic Neighbors E.C. achieves higher TPR and empirical ε than Steinke et al., but still lower than LiRA.
Experimental Setup
- Scenario: three datasets × three privacy settings, nine scenarios total. In each scenario, infer membership of 500 canaries across 64 independently trained models. Architecture and training pipeline follow Aerni et al. [1], evaluating privacy defenses on high-utility models per their characteristics.
- Data: CIFAR-10, CIFAR-100, CINIC-10. CINIC-10 removes all CIFAR-10 images, then downsamples to 50k training, 10k test, maintaining class balance.
- Canary: randomly sampled from the training set, independently assigned to half the models; each model trains on all non-canaries plus its assigned canaries. Each canary appears as member and non-member equally often. All canary labels are flipped before training to increase memorization and privacy leakage.
- Privacy settings: no-defense training, RelaxLoss, DP-SGD, corresponding to no protection, empirical leakage mitigation, and formal privacy guarantees.
- Metrics: all settings report TPR at 0.1% FPR. DP-SGD additionally estimates empirical ε per Steinke et al. [25]: take the tightest estimate per model over all pairs of k+, k− ∈ {10, 20, …, 250}, then average over 64 models. The authors state TPR at low FPR is a worst-case metric, ε reflects overall distinguishability, and the two may diverge.
- Baselines: baseline is Steinke et al. [25]; LiRA serves as upper bound. The main compared method is the Early Checkpoint variant of Synthetic Neighbors. The paper does not report the number of shadow models for LiRA, nor the specific test for statistical significance.
Main Results
The main table takes the rounded numbers from Table 1 and Table 2; appendix Tables 3 and 4 give more decimal places, and the two are consistent. Rows are dataset × privacy setting, columns are methods.
Swipe horizontally to read the table
Setting Steinke et al. Synt. Neighbors E.C. LiRA CIFAR-10 / DP-SGD ε 1.29 1.78 2.99 CIFAR-100 / DP-SGD ε 1.24 1.88 3.16 CINIC-10 / DP-SGD ε 0.79 1.38 2.37 CIFAR-10 no-defense TPR 23.38% 84.98% 97.03% CIFAR-100 no-defense TPR 99.28% 99.03% 99.73% CINIC-10 no-defense TPR 22.88% 79.10% 91.29% CIFAR-10 / RelaxLoss TPR 1.06% 21.45% 69.24% CIFAR-100 RelaxLoss; DP-SGD TPR 72.68%; 2.19% 84.64%; 4.43% 98.31%; 13.89% In Table 2, CINIC-10 RelaxLoss TPR is Steinke 10.96%, this paper 53.73%, LiRA 78.46%; DP-SGD TPR is Steinke 0.33%, this paper 1.80%, LiRA 4.43%. The last row combines CIFAR-100's two TPRs in one cell, with RelaxLoss before the semicolon and DP-SGD after.
- Authors on ε: improvement over baseline in Table 1 is roughly 0.5 to 0.6, and they state it still retains more than 50% of LiRA performance. Figure 1 left panel shows the same empirical ε as Table 1: CIFAR-10 1.29 / 1.78, CIFAR-100 1.24 / 1.88, CINIC-10 0.79 / 1.38.
- Authors on TPR: under no defense, only a small performance loss relative to LiRA; relative to Steinke et al., roughly 3.5× on CIFAR-10 and CINIC-10. On CIFAR-100 the authors state the task is harder and overfitting more pronounced, with nearly all attacks near 100% TPR; here Steinke et al.'s 99.28% is higher than this paper's 99.03%.
- DP-SGD and RelaxLoss: the authors state that despite limited leakage, this paper is roughly 4×, 2×, 5× over baseline on CIFAR-10, CIFAR-100, CINIC-10 respectively. On RelaxLoss, CIFAR-10 is roughly 20×, CINIC-10 roughly 5×; CIFAR-100 sits between baseline and LiRA. Figure 1 right panel shows CIFAR-10 [email protected]%FPR: no defense 23.38 vs 84.98, RelaxLoss 1.06 vs 21.45, DP-SGD 0.65 vs 2.51.
Similarity vs Synthetic Breakdown
- Figure 5: the authors state Similarity Neighbors significantly outperforms Steinke et al. on the shown settings (the paper writes "significantly" but gives no test). Multipliers annotated on the figure include DP-SGD empirical ε: CIFAR-10 1.15×, CIFAR-100 1.13×, CINIC-10 1.30×; no-defense TPR: CIFAR-10 3.37×, CINIC-10 2.85×; RelaxLoss TPR: CIFAR-10 19.16×, CINIC-10 3.12×. Appendix Table 3 shows Similarity Neighbors TPR under DP-SGD is below baseline: CIFAR-10 0.5250% vs 0.6500%, CIFAR-100 0.8250% vs 2.1875%, CINIC-10 0.1875% vs 0.3312%.
- Figure 6: the authors select settings where Synthetic outperforms Similarity with the largest gap. On no-defense CIFAR-100, Synthetic TPR is near 96% (Table 4: 95.8625%, Similarity 74.8875%); CINIC-10 gap narrows (70.7562% vs 65.2125%). Under RelaxLoss, Similarity drops and Synthetic is higher (CIFAR-100: 86.6188% vs 61.9687%; figure annotates 1.40× and 1.67×). DP-SGD TPR is annotated as CIFAR-100 2.64×, CINIC-10 6.03×. The authors attribute the advantage to the generation method being able to create neighbors for nearly any canary.
- Exceptions: in Table 4, on RelaxLoss CIFAR-10, Synthetic Neighbors (without E.C.) is 19.9875%, below Similarity Neighbors' 20.2437%. On RelaxLoss CINIC-10, Synthetic E.C. is 53.7312%, below Synthetic without E.C.'s 57.0500%.
Early Checkpoint
- Figure 7: the authors state E.C. outperforms the corresponding standard attack on DP-SGD and no defense, both metrics, all three datasets. Similarity DP-SGD ε multipliers are CIFAR-10 1.03×, CIFAR-100 1.07×, CINIC-10 1.02×; TPR multipliers include CIFAR-10 1.35×, CIFAR-100 2.93×, CINIC-10 1.57×. No-defense TPR multipliers are CIFAR-10 1.03×, CIFAR-100 1.32×, CINIC-10 1.11×. The text gives no-defense CIFAR-100: Similarity standard variant 74.9%, E.C. 99.0% (Table 4: 74.8875% and 99.0062%).
- Synthetic E.C.: DP-SGD ε multipliers are CIFAR-10 1.28×, CIFAR-100 1.29×, CINIC-10 1.23×; TPR multipliers include CIFAR-10 1.27×, CIFAR-100 2.03×, CINIC-10 1.59×. No-defense TPR multipliers are CIFAR-10 1.03×, CIFAR-100 1.03×, CINIC-10 1.12×. The authors state the gains are larger on more challenging settings and are not limited to one neighbor type, dataset, or defense.
- Figure 4: in a real example, querying synthetic neighbors at early checkpoints gives highest [email protected]%FPR at early epochs; the axes cover epochs 0 to 16, y-axis roughly 0 to 6; the authors state it declines with training after the peak. The figure does not annotate the specific peak value.
Other Ablations and Analyses
- DP-SGD full methods (Table 3, empirical ε / [email protected]%FPR): CIFAR-10: Similarity 1.4851 / 0.5250%, Sim. E.C. 1.5294 / 0.7063%, Synthetic 1.3926 / 1.9688%, Synt. E.C. 1.7832 / 2.5063%, LiRA 2.9934 / 12.2125%.
- CIFAR-100 DP-SGD: Similarity 1.4062 / 0.8250%, Sim. E.C. 1.4981 / 2.4188%, Synthetic 1.4549 / 2.1812%, Synt. E.C. 1.8837 / 4.4250%, LiRA 3.1560 / 13.8875%.
- CINIC-10 DP-SGD: Similarity 1.0305 / 0.1875%, Sim. E.C. 1.0504 / 0.2938%, Synthetic 1.1216 / 1.1312%, Synt. E.C. 1.3849 / 1.8000%, LiRA 2.3675 / 4.4250%.
- No-defense TPR (Table 4): CIFAR-10: Similarity 78.9062%, Sim. E.C. 81.1063%, Synthetic 82.6375%, Synt. E.C. 84.9813%, LiRA 97.0250%.
- RelaxLoss TPR (Table 4): CIFAR-100: Similarity 61.9687% below Steinke's 72.6750%; Sim. E.C. 82.0187%, Synthetic 86.6188%, Synt. E.C. 84.6361%, LiRA 98.3062%.
- Synthetic hyperparameters: Section 4.5 reports the highest score over a grid of steps, strength, and guidance scale; the paper does not list TPR per hyperparameter cell.
What are some points that can be further explored?
The authors consider the optimal neighbor distance, unknown in advance, to be the main unresolved problem and point to a criterion for selecting neighbors per canary.
Limitations and future directions noted by the authors
- Distance cannot be determined in advance: The optimal canary–neighbor distance depends on specific factors of the canary and the model, and cannot be resolved without membership labels; the authors state that no metric can reliably quantify neighbor quality in advance, and currently only retrieval, diffusion strength, and early checkpoints indirectly control this trade-off (Limitations).
- Future directions: Establishing a principled, canary-dependent criterion for neighbor quality remains an open problem; the authors consider this the most promising direction for further closing the gap with reference-model attacks (Limitations).
- Similarity Neighbors: Neighbors come from the test set, so the effectiveness of a given canary is limited by whether the test set contains samples within a suitable similarity band (Limitations).
- Construction-specific constraints: The authors state that beyond the core limitation above, each construction has its own constraints (Limitations). The converted text breaks off after Similarity Neighbors, and the specific constraints of the other constructions do not appear in the readable main text.
Experimental coverage
- Models and data: Experiments use image classification architectures following Aerni et al., with datasets CIFAR-10, CIFAR-100, and CINIC-10 downsampled to 50k/10k after removing CIFAR-10 images (Sections 4, 4.1).
- Protocol: 500 label-flipped canaries per scenario, 64 independently trained models; privacy settings are no defense, RelaxLoss, and DP-SGD (Section 4).
- Baselines and metrics: Baselines are Steinke et al. [25] and LiRA as an upper bound; metrics are TPR at 0.1% FPR, and for DP-SGD additionally empirical ε averaged over 64 models after taking the tightest estimate over k+, k− ∈ {10,…,250} (Sections 4.1, 4.5, Tables 1–4).
- Method variants: Similarity Neighbors, Synthetic Neighbors, and Early Checkpoint for both are reported; synthetic neighbors use stable-diffusion-v1-5, retrieval uses CLIP ViT-B/32 (Sections 3, 4, Appendix B).
- Not reported: The paper does not report the number of neighbors n per attack, the number of shadow models for LiRA, the number of queries, nor variance beyond the number of repetitions for TPR or ε; "average over 64 models" is the summary method for ε. The text states that several comparisons significantly outperform, but does not report the test method.
Summarize the main content of the paper
Neighbor queries recover per-sample calibration on a single model, and synthetic neighbors with early checkpoints come closest to LiRA.
This paper studies one-round membership inference: with only one target model and no ability to retrain reference models, how to still perform per-sample calibration and use it for single-run DP auditing.
- Problem: Strong attacks rely on out models to estimate the "score distribution when the sample was not trained." Without these models, a global loss threshold has a weak signal at low FPR, and the empirical ε lower bound is also looser.
- Method: Under a local smoothness assumption, use the target model's logit confidence on neighboring non-members to estimate that distribution, then compute Gaussian tail probabilities following Offline LiRA. Neighbors come from CLIP retrieval of same-class test samples, or from stable-diffusion-v1-5 image-to-image; Early Checkpoint only changes neighbor scoring to an early snapshot, while canaries are still scored on the final model.
- Main results: Across nine image classification scenarios, the authors propose Synthetic Neighbors E.C. as the strongest approach. On CIFAR-10 without defenses, [email protected]%FPR is 84.98%, Steinke et al. is 23.38%, and LiRA is 97.03% (Table 2). DP-SGD empirical ε on CIFAR-10 / CIFAR-100 / CINIC-10 is 1.78 / 1.88 / 1.38, baselines are 1.29 / 1.24 / 0.79, and LiRA is 2.99 / 3.16 / 2.37 (Table 1). On CIFAR-10 RelaxLoss, TPR goes from 1.06% to 21.45%, while LiRA is 69.24%.
- Exceptions: On CIFAR-100 without defenses, all methods are near 100%, with Steinke et al. at 99.28% higher than this paper's 99.03%. Under DP-SGD, Similarity Neighbors without E.C. has TPR below the baseline (Table 3).
- Authors' conclusion: Stronger, calibrated one-round scores can tighten the empirical ε lower bound in single-run DP auditing and more accurately estimate the model's true privacy leakage. The authors also believe that the optimal neighbor distance, unknown in advance, remains the main open problem in closing the gap with reference-model attacks.
Related papers
- Low-Cost High-Power Membership Inference AttacksAttacksarXiv
- Label-Only Membership Inference AttacksAttacksarXiv