LearnQuestion bank

You discover a model can reproduce sensitive snippets from its training data. How do you measure the extent of the problem, and what do you do about it?

ResearchTechnicalMedium

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • Contain first, then measure with controlled extraction, canaries and membership inference rather than anecdotal prompts.
  • Estimate memorisation rate as a function of duplication frequency and segment by source, PII type and verbatim versus near-verbatim recovery.
  • Mitigate with deduplication, PII filtering, retraining or differential privacy, unlearning where feasible, and output filters/redaction.
  • Be honest about limits: DP trades utility for privacy and does not fully protect rare items; unlearning and filters are incomplete.
  • Run an incident process: triage, preserve evidence, notify privacy/legal/stakeholders, remediate, re-test and postmortem.

In full

I would treat it as a privacy incident first and a model-quality issue second: restrict or gate the model, preserve evidence, and measure before deciding severity. I would run controlled extraction tests using known canaries and membership-inference-style checks, then estimate the memorisation rate as a function of how often a string appeared in training data, segmented by source, PII type and whether recovery is verbatim or near-verbatim, rather than relying on a few lucky prompts. Mitigations would include deduplication and PII filtering in the data pipeline, retraining or applying differential privacy where the trade-off is acceptable, targeted unlearning where feasible, and output filters or redaction as a stopgap, while being clear that DP costs utility and does not fully protect rare or unique strings, and that unlearning and filters are not guarantees. I would not ship or expand access until the sensitive-snippet rate is understood and reduced, then re-run the same tests after remediation. The incident process would include triage, evidence preservation, notification to privacy, legal and product stakeholders, exposure assessment, remediation, monitoring and a postmortem with owners and deadlines.

Checked against sources by an independent AI reviewer.

What a strong answer covers

  • Extraction attacks, canaries and membership inference.
  • Memorisation rate as a function of how often a string was duplicated.
  • Mitigations: deduplication, PII filtering, differential privacy (and its cost), unlearning, output filters.
  • Incident process.

Common mistakes

  • Relying only on output filters.
  • Ignoring duplication as the main driver.