AI Ethics and Governance Beginner 12 minutes

Privacy and Data Protection

Data protection principles, why removing names is not enough, and the risks specific to models.

Your progress in the track0%

Data protection principles (according to the GDPR)

  1. Lawfulness, fairness and transparency.
  2. Purpose limitation.
  3. Data minimization.
  4. Accuracy.
  5. Storage limitation.
  6. Integrity and confidentiality.
  7. Accountability.

Why is removing names not enough?

ConceptMeaning
PseudonymizationReplacing identifiers with codes; linking is still possible with a key
AnonymizationIdentification must not be possible by reasonable means
Quasi-identifiersAttributes 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

  1. 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.

  2. 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

  1. Regulation (EU) 2016/679 — General Data Protection Regulation
  2. Sweeney (2000) — Simple Demographics Often Identify People Uniquely
  3. Carlini et al. (2021) — Extracting Training Data from Large Language Models
  4. Shokri et al. (2017) — Membership Inference Attacks against ML Models

Complete the lesson