Privacy and Data Protection
Data protection principles, why removing names is not enough, and the risks specific to models.
Data protection principles (according to the GDPR)
- Lawfulness, fairness and transparency.
- Purpose limitation.
- Data minimization.
- Accuracy.
- Storage limitation.
- Integrity and confidentiality.
- Accountability.
Why is removing names not enough?
| Concept | Meaning |
|---|---|
| Pseudonymization | Replacing identifiers with codes; linking is still possible with a key |
| Anonymization | Identification must not be possible by reasonable means |
| Quasi-identifiers | Attributes that single out a person when combined |
Under the GDPR, pseudonymized data remains personal data.
Risks specific to models
- Membership inference: was this patient's record in the training data?
- Model inversion: inferring sensitive attributes from the model's outputs.
- Memorization and extraction: large language models may reproduce texts from training verbatim, as Carlini et al. showed.
Essential practices
- A data protection impact assessment before high-risk projects.
- The least data and the shortest storage period possible.
- Access controls, encryption and logs.
- Not sending personal data to external services without a legal basis and a suitable agreement.
- Privacy-preserving techniques (a later lesson at the intermediate level).
Laws differ between countries; when working on real data, consult the data protection officer or the legal department of your institution.
Lesson terms
- Re-identification
- Linking data assumed to be anonymous to specific people using other attributes or sources.
- Data minimization
- Collecting only the data necessary for the specified purpose and not keeping it longer than needed.
- Membership inference attack
- An attack that tries to determine whether a particular record was used to train a model.
Abstract
Data protection laws such as the GDPR are based on principles: lawfulness and transparency, purpose limitation, data minimization, accuracy, storage limitation, security, and accountability. Removing names is not enough, because a combination of a few attributes such as the postcode, date of birth and sex can re-identify people. Models have specific risks: membership inference attacks, and the extraction of training data from large language models that may memorize texts from it.
Review questions
-
Why is removing names not enough to anonymize data?
Because combinations of common attributes may be unique to each person and can be linked with other databases.
-
What is the risk specific to large language models?
They may memorize passages from the training data, including personal information, and reproduce them when prompted.
Sources and references
Complete the lesson
You have completed all the lessons in the track! You can now request the track completion certificate.
Request the certificate