Evaluation, diagnostics, benchmarks, and additional tests · Evaluation, diagnostics, benchmarks, and additional hypothesis tests · EVA056 · Diagnostic
Membership-inference privacy audit
Evaluates whether model behavior reveals whether an example was in training, using a controlled authorized audit.
In CodeSplash
A CodeSplash feature runs part of this entry inside the app; some variants aren't offered. There's no Set up button; open it where the label says.
Do it in CodeSplash Run it on your own data in the app: Predict run page › Robustness tab › Privacy exposure (the loss-threshold attack: attack AUC, membership advantage and the ROC curve, with bootstrap intervals; confidence-score and reference-model attacks aren't offered).
- Availability
- Partly runs in CodeSplash (Predict)
- Code example
- Complete calculation
- Who ran it
- CodeSplash's run and the reference's record
- CodeSplash's run
- The reference's example ran in Python and R here, and they agree.
- The reference's record
- Python: Ran in the reference's review. The report doesn't record which version of the code ran. R: Reviewed but not run: R wasn't available to the reference's authors.
Purpose
Evaluates whether model behavior reveals whether an example was in training, using a controlled authorized audit.
Question / hypotheses
Can known member and nonmember records be distinguished beyond the agreed baseline?
Architecture / computational structure
A fixed scoring/calibration pipeline applied to model outputs or supplied observations; the formula and usage sections identify its operations.
Assumptions
The audit population must avoid trivial distribution/time differences between members and nonmembers. Define access, attack model, calibration set, and target false-positive rate.
Formula / computational definition
Parameters and notation
Loss threshold, reference/attack models, matched-sample construction, and operating point are audit hyperparameters. They are fitted on audit development data, not the final audit sample.
Fitting, fine-tuning, and adaptation
There is no model fine-tuning step for this evaluation procedure. Freeze the evaluated systems and evaluator before the final test. Select evaluation settings on development data; if a learned evaluator or calibration model is adapted, use separate fitting data, version it, and reassess its validity.
How to use and calibrate
Use synthetic or consented known-membership records, separate attack development and evaluation, and report low-FPR sensitivity with confidence intervals.
Example application
Check whether overfitting materially increases privacy exposure in an internally owned model.
Interpretation / pitfalls
Watch out
A failed attack does not certify privacy, and a positive score on mismatched data may detect distribution shift instead of membership. Formal differential privacy is a separate guarantee.
Python and R code examples
Scope: Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.
Validation: Python — Executed successfully on synthetic inputs. R — reviewed but not executed in this environment. Python dependencies are explicit imports; R uses base R unless a package/bridge is explicitly named.
Python and R
The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.
Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline. · needs numpy
import numpy as np
member_loss=np.array([.1,.2,.6,.3]); nonmember_loss=np.array([.4,.7,.2,.8]); threshold=.35
tpr=np.mean(member_loss<threshold); fpr=np.mean(nonmember_loss<threshold)
print(tpr,fpr,tpr-fpr)
Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.
member.loss <- c(.1,.2,.6,.3); nonmember.loss <- c(.4,.7,.2,.8); threshold <- .35
tpr <- mean(member.loss<threshold); fpr <- mean(nonmember.loss<threshold)
print(c(tpr=tpr,fpr=fpr,advantage=tpr-fpr))
Sources
- Source 1arxiv.org
From the CodeSplash reference, entry EVA056.