Privacy audits, permissions and threat models
A membership-inference audit asks whether a model gives away which rows it trained on. Read its advantage, match members and non-members, and tie every privacy or security claim to a stated threat model.
What runs in CodeSplash
- EVA056Membership-inference privacy audit Partly runs in CodeSplash (Predict)
You will be able to
- Compute membership advantage from a loss threshold
- Explain why mismatched members and non-members can fake a privacy signal
- Say what a failed attack and a differential-privacy claim each require
- Name the data, license and security questions to settle before training or sharing
Does the model remember its rows?
ReadA model that fits its training rows much better than new ones can give them away. A membership inferenceMembership inferenceGuessing whether a row was in a model's training data, here from how low the model's loss on it is. attack guesses whether a row was in training from how the model treats it. The simplest uses the loss: training rows tend to have lower loss.
In the reference's example with four members and four non-members, a loss threshold catches 0.75 of members and flags 0.25 of non-members: an advantageMembership advantageThe best gap between the share of training rows and of held-out rows an attack calls "training"; 0 means no edge. of 0.5. Zero means the attack can't tell them apart.
Reference · EVA056 · Partly runs in CodeSplash (Predict)Membership-inference privacy auditEvaluates whether model behavior reveals whether an example was in training, using a controlled authorized audit.An audit needs a fair comparison
ReadMembers and non-members must come from the same population. If the non-members are from a later period, another site or a different length distribution, the attack may detect that difference instead of membership: a "privacy signal" that is really distribution shift.
Run the audit only on records you're allowed to use for it (synthetic, consented or your own). Choose the attack's threshold on audit-development data, then measure on separate audit data. Report the advantage with an interval, and the true-positive rate at a low false-positive rate, because a few confidently exposed rows matter even when the average looks safe.
What an audit can't certify
ReadA weak attack that fails proves nothing: stronger attacks exist. "No membership signal" is not "private".
Differential privacyDifferential privacyA promise that a result looks almost the same whether or not any one person's row was used; ε says how close. is a separate, formal guarantee. It needs a declared mechanism, clipping and noise settings, an accountant and a privacy budget. Adding some noise or dropping names isn't a differential-privacy claim. Disclosure risk also depends on access: a model that exposes nearest neighbors or generates text leaks differently from one that returns a single score.
Permissions and security
ReflectSettle these before training or sharing, and record the terms you reviewed:
- Is this use, redistribution and any derived artifact (weights, embeddings) allowed? "Available to download" isn't a license.
- What leaves your machine if you call an outside service, and who keeps it?
- Do model files come from a verified source, with checksums, in a format that can't run code when loaded?
- For retrieval and tool use: can a malicious document steer the system? Untrusted text must never be treated as instructions.
Which of these could you answer today for the last model you shipped?
Privacy exposure in Predict
In the appA model run's Robustness tab has Privacy exposure: a loss-threshold membership audit. When the fold models were saved it compares each fold model's training rows with its validation rows; otherwise it compares the final model's training rows with the locked test rows. It reports the attack AUC and the membership advantage, each with a 95% bootstrap interval, and a level (low, moderate or high exposure).
The confidence-score attack and the true-positive rate at a low false-positive rate aren't built yet. CodeSplash downloads model weights only as checksummed safetensors files, and parses imported media in a sandboxed helper.
What runs here
ReadCheck: privacy audits
CheckpointCheck yourself
At a loss threshold, an attack flags 60% of training rows and 30% of held-out rows as members. What is the membership advantage? Give a decimal.
Show the answer
Answer: 0.3
TPR − FPR = 0.6 − 0.3 = 0.3.
Check yourself
An audit compares training rows from 2023 with non-member rows from 2025 and finds a large advantage. What is the first concern?
Show the answer
Answer: a
A mismatch in time, site or length lets an attack separate the groups for reasons unrelated to training.
Check yourself
A loss-threshold attack gives AUC 0.51. What can you claim?
Show the answer
Answer: b
A failed attack bounds nothing. Formal guarantees need a formal mechanism.
Check yourself
Which statement supports a differential-privacy claim?
Show the answer
Answer: c
Differential privacy is a property of a declared mechanism and budget, computed by an accountant.
Check yourself
Why report the true-positive rate at a low false-positive rate, not only the attack AUC?
Show the answer
Answer: a
The average can hide a tail of confidently identified records, which is where the harm is.
Check yourself
A model's weights are free to download. What does that settle about using them in a commercial product?
Show the answer
Answer: b
Downloadable isn't licensed. Code, weights, data and documentation may each carry different terms.
Recap
Recap- Membership advantage is TPR − FPR at a threshold; report it with an interval and the low-false-positive behavior.
- Members and non-members must be matched, or the audit measures shift.
- A failed attack isn't privacy; differential privacy needs a mechanism, an accountant and a budget.
- Settle licenses, outside data flows, model-file provenance and injection risks before training or sharing.
- Predict's Privacy exposure runs a loss-threshold audit on fold or test rows.
Concepts in this lesson