Home / Insights / AI Risk and Governance
AI and Privacy: What Models Can Remember
Models can leak information about their training data. How the risk arises and how to limit it.
It is tempting to think that once data has been turned into model weights, it is gone. Research shows otherwise.
Two kinds of attack
Membership inference asks whether a particular record was in the training set, which can itself be sensitive, for instance in a dataset of patients. Shokri and colleagues demonstrated this against machine learning services.
Extraction recovers training text. Carlini and colleagues showed that a language model could be prompted to reproduce verbatim passages, including personal information that had appeared in its training data. Text repeated often is especially likely to be memorised.
Diagram by O&O Consulting.
Re-identification
Removing names is not enough. Combinations such as birth date, postal code and sex can single out individuals when linked with other records. Anonymisation must be judged against what an attacker could join.
In everyday use
The larger risk for most organisations is not training but handling: staff pasting client information into an unapproved tool, logs retaining sensitive prompts, or a search system returning documents a user should not see.
Controls
- Collect and send only what the task needs.
- Check provider terms on retention and training use.
- Enforce access rights in the retrieval system.
- Mask identifiers where possible.
- Set and honour deletion periods.
- Prepare for requests to access or correct information.
Legal context
Canadian private-sector privacy obligations arise under federal PIPEDA and under provincial statutes such as British Columbia's PIPA. They require, among other things, appropriate purposes, consent in many circumstances and reasonable safeguards. Using data for a new AI purpose may not be covered by the original consent.
Limitations and open questions
Removing a person's data from an already trained model is difficult; "machine unlearning" is an active research area without a general, verified solution. That argues for caution about what goes in.
References
- Carlini, N. et al. (2020). "Extracting Training Data from Large Language Models." arxiv.org/abs/2012.07805
- Shokri, R. et al. (2016). "Membership Inference Attacks against Machine Learning Models." arxiv.org/abs/1610.05820
- Office of the Privacy Commissioner of Canada. Personal Information Protection and Electronic Documents Act guidance. www.priv.gc.ca/
This article is general information, not financial, legal or investment advice. AI research and rules change quickly; check the cited sources for the current position.