← Blog/blog/patient-max-privacy-null

The privacy score that rises when a patient has more records

A model can look only mildly vulnerable on average while a small group of patients is unusually easy to identify as training members. Vrettos and colleagues audit that tail across 7,789 medical-AI models trained on six public datasets spanning imaging, electrocardiograms, tabular records, and clinical text. Their patient-level view is the important move. Its numerical meaning needs equal care.

01

Turn model confidence into a rank attack

A membership-inference attack asks whether a record helped train a model. For one record, the audit compares confidence from models that trained on it with confidence from models that did not. The attack AUC is the probability that a randomly selected member-model confidence exceeds a randomly selected non-member-model confidence, with half credit for ties. An AUC of 0.5 means chance ranking; 1 means perfect separation.

def record_auc(member_scores, nonmember_scores):
    wins = 0.0
    for member in member_scores:
        for nonmember in nonmember_scores:
            wins += (member > nonmember) + 0.5 * (member == nonmember)
    return wins / (len(member_scores) * len(nonmember_scores))

def patient_risk(record_aucs):
    return max(record_aucs)

The second function is deliberately short: patient risk is the maximum record AUC. That aggregation finds a vulnerable record that a population average can hide. On the ISIC skin-lesion task, the paper reports a population attack AUC of 0.56 while 70.8% of patients cross the patient-level 0.7 threshold.

Paper-reported ISIC reference audit. These bars intentionally place two different summaries side by side: population attack AUC and the fraction of patient maxima above 0.7. Neither is a disclosure probability.
02

The record-count tax appears under no leakage

Under exchangeable continuous scores, a record's Mann–Whitney AUC has an exact finite-sample null distribution. The core computes it by enumerating the rank-sum distribution with dynamic programming. If one record has null probability p of exceeding 0.7, then under an independence illustration a patient with r records has probability 1 − (1 − p)r that at least one record crosses the line.

16 member + 16 non-member models32 member + 32 non-member models
Seeded-free mathematical illustration, not a paper result. The exact per-record AUC null is combined with an independent-record maximum to isolate the multiple-record effect. Real patient records can be correlated, so the paper instead uses matched exact null calculations and record-count stratification.
Models per sideOne-record null tailWhat changes
16 + 162.57%coarser attainable AUC grid
32 + 320.27%narrower null distribution
Exact continuous-score null tails computed from the number of member and non-member models. The strict comparison matches the paper's language of risk above 0.7.
03

Training choices move the exposed tail

On NIH ChestX-ray14, changing only the random seed barely changes the exposed fraction: 88% in the reference run and 89% in the repeat. Strong weight decay reduces it to 30%. Across the study, weight decay cuts the exposed fraction by 1.38× to 2.95×, compared with only 1.07× from reseeding.

Paper-reported NIH-CXR14 patient fraction above the operational 0.7 threshold. The stronger regularizer changes the tail far more than a new random seed.

Fine-tuning scope matters too. For the ECGFounder task, training only a new prediction head exposes 22.5% of patients; partial fine-tuning reaches 30.4%; full fine-tuning reaches 54.6%. The full model rises from 10.9% at epoch 2 to 54.6% at epoch 20. More adaptation is useful, but it also gives the model more capacity and time to encode patient-specific evidence.

Paper-reported ECGFounder patient fraction above 0.7 by fine-tuning extent. These are operational exposure counts, not probabilities of real-world disclosure.
04

Screen before training, but do not certify safety

The paper's DataConfessor screen trains four inexpensive proxy models, ranks patients by proxy risk, and flags the top 20% before the expensive reference audit. Across datasets, those flags recover 72.7% to 100% of the eventual top-5% high-risk tail—3.6× to 5× random recovery—in 1.4 to 7.4 GPU-minutes.

Paper-reported screening recall range for the reference audit's top-5% risk tail. The random baseline selects 20% because the screen flags one fifth of patients.
Report thisWhy it matters
member / non-member model countsdetermines the attainable AUC grid and exact null
records per patientdetermines how many chances feed the maximum
observed minus matched nullseparates excess signal from mechanical tail mass
low-false-positive attack performancetests the region relevant to rare high-confidence attacks
screen flag rate and tail definitionmakes recall comparable and exposes the review budget
A compact audit ledger. A threshold without its design counts is not portable across datasets.
05

What to probe next

First, replace the independent-record illustration with a patient-level permutation that preserves within-patient correlation. Second, report calibrated excess risk with uncertainty, not only the threshold count. Third, test whether atypicality—the paper finds large standardized differences of 1.78 to 4.18—predicts exposure after controlling for record count and subgroup prevalence. That association is useful for triage but is not yet causal.

Finally, compare regularization with a formally private training method at matched clinical utility. The improved ISIC recipe raises held-out AUROC by 0.174 and reduces low-false-positive attack sensitivity 13-fold, yet the authors correctly stop short of claiming a privacy guarantee. For the classifier mechanics behind an attack score, explore the logistic-regression walkthrough.

References

  1. Vrettos, K.; Tzanis, E.; Kondylakis, H.; Vassalou, E. E.; Doo, F. X.; and Klontzas, M. E. (2026). Automated screening of privacy risks in medical AI. arXiv:2610.30229
  2. Carlini, N.; Chien, S.; Nasr, M.; Song, S.; Terzis, A.; and Tramer, F. (2022). Membership Inference Attacks From First Principles. IEEE Symposium on Security and Privacy
  3. Dwork, C.; McSherry, F.; Nissim, K.; and Smith, A. (2006). Calibrating Noise to Sensitivity in Private Data Analysis. Theory of Cryptography Conference