Contents
Key concepts
Principles, roles and lawful bases
Article 5 principles drive design: lawfulness and transparency, purpose limitation, data minimisation, accuracy, storage limitation, security and accountability. Decide who is controller and who is processor (an LLM API vendor is usually a processor under an Article 28 contract, with sub-processors listed). Every processing purpose needs an Article 6 lawful basis; legitimate interests needs a documented three-part test (purpose, necessity, balancing). The DUAA adds ‘recognised legitimate interests’ such as crime prevention and safeguarding, which skip the balancing test.
Special category data and DPIAs
Health, biometric, ethnicity and similar data (Article 9) need an additional condition, typically from DPA 2018 Schedule 1, and stricter controls. A data protection impact assessment is required for processing likely to be high risk, which in practice covers most new AI uses of personal data: describe the processing, assess necessity and proportionality, identify risks to individuals and record mitigations before you start.
Automated decision-making after the DUAA
New Articles 22A–22D replace the old Article 22. A significant decision (legal or similarly significant effect) is ‘solely automated’ if there is no meaningful human involvement; such decisions are now broadly permitted if the controller lets people learn of the decision, make representations, obtain human intervention and contest it. Solely automated significant decisions using special category data need explicit consent or a contract/legal requirement plus a substantial public interest condition, and none may rely on recognised legitimate interests. The ICO’s draft guidance (consultation closed 29 May 2026) expects human review to be active, done by trained staff with authority to change the outcome, and to happen before the decision takes effect; SI 2026/425 also obliges the ICO to write a statutory code on AI and automated decision-making, so check which texts are final.
International transfers and vendor due diligence
Sending data outside the UK is a restricted transfer unless the destination is approved; otherwise use the IDTA or the UK Addendum to EU SCCs with a transfer risk assessment. The DUAA replaced the ‘essentially equivalent’ framing with a ‘data protection test’: protection must not be materially lower than in the UK. For LLM vendors also check training-use terms, retention for abuse monitoring, zero-data-retention and regional processing options, sub-processors and breach notification.
Data subject rights in ML systems
Access and erasure requests must normally be answered within one month (extendable for complex cases; the DUAA allows ‘reasonable and proportionate’ searches and a stop-the-clock while clarifying). Erasure must reach every copy: raw stores, chunks, embeddings, lexical indexes, caches, logs, eval sets and fine-tuning data; backups are put beyond use until they expire. Removing a person’s influence from trained weights is not reliable today (machine unlearning is immature), which argues for keeping personal data out of training sets.
Minimisation, pseudonymisation and anonymisation
Send only the fields a task needs and redact or tokenise identifiers before calling a model. Pseudonymised data (identifiers replaced, key kept elsewhere) is still personal data; only data that cannot reasonably be re-identified is anonymous. In the EU this is under negotiation: the Council’s October 2026 Digital Omnibus mandate would treat pseudonymised data as non-personal for a third party that cannot re-identify it, but never for the processor, while the UK position is unchanged. Quasi-identifiers such as postcode, birth date and sex can single people out, which is why k-anonymity and its successors exist and why free text is hard to anonymise.
Model privacy attacks and differential privacy
Language models can memorise and regurgitate training data: Carlini et al. extracted hundreds of verbatim sequences, including contact details, from GPT-2, with larger models more vulnerable, and in 2026 researchers pulled near-verbatim whole books from production models despite their safeguards. Membership inference tests whether a record was in the training set. Differential privacy bounds any individual’s influence (ε is the privacy loss); DP-SGD clips per-example gradients and adds noise, costing accuracy and compute: Google’s VaultGemma (1B parameters, sequence-level ε ≤ 2) matched only roughly GPT-2 1.5B quality. Deduplication and PII filtering of training data are cheaper first steps.
Logging, evaluation data and shadow AI
Prompts and outputs are personal data when they contain personal data. Log with access control, short retention, redaction and hashed user IDs; keep evaluation and fine-tuning datasets as separate, governed assets with a recorded basis. Staff pasting customer data into unapproved tools is a breach risk: respond with an approved, logged alternative, clear policy and training rather than only a ban.
Worked examples
Laplace mechanism for a differentially private count
You publish weekly counts of users who triggered a fraud rule, using the Laplace mechanism with ε = 0.5 per release. How noisy is each count, and what is the total privacy loss after 10 weekly releases under basic composition? Is it usable for counts of 1,240 and of 12?
A count changes by at most 1 when one person is added or removed: sensitivity Δ = 1.
Laplace scale b = Δ / ε = 1 / 0.5 = 2.
- Standard deviation = √2 × b ≈ 2.83
- P(|noise| > t) = e^(−t/b); for 95% coverage t = b × ln 20 ≈ 2 × 3.0 = ±6.0
Utility:
- count 1,240 → reported within about ±6 (0.5% error): fine
- count 12 → ±6 is ±50%: not usable; aggregate over longer windows or suppress small counts
Composition: 10 releases × ε 0.5 = ε = 5 total under basic composition, a weak guarantee. Options: a larger ε per release with fewer releases, advanced composition or Rényi accounting for tighter bounds, or releasing only cumulative counts.
CalculatorLaplace noise and composition for a differentially private count
- Laplace scale b
- 2
- 95% noise bound
- 6
- Total ε
- 5
Laplace scale b = Sensitivity Δ ÷ ε per release = 2
95% noise bound = Laplace scale b × 3.0 = 6
Total ε = Releases × ε per release = 5
| Case | Sensitivity Δ | ε per release | Releases | Laplace scale b | 95% noise bound | Total ε |
|---|---|---|---|---|---|---|
| Worked example | 1 | 0.5 | 10 | 2 | 6 | 5 |
Spotting re-identification risk with k-anonymity
An analytics extract has quasi-identifiers (postcode district, birth year, sex) and a diagnosis column. Records: (CB1,1988,F)×2, (CB1,1991,M)×2, (CB2,1975,F)×3 all with diagnosis ‘diabetes’, (CB4,1962,M)×1. What is k, and is the extract safe to share?
Group by the quasi-identifier combination (equivalence classes):
| class | size |
|---|---|
| CB1, 1988, F | 2 |
| CB1, 1991, M | 2 |
| CB2, 1975, F | 3 |
| CB4, 1962, M | 1 |
k = 1: the CB4 man born in 1962 is unique, so anyone who knows those three facts learns his diagnosis.
Fixing k is not enough: the CB2 class has k = 3 but all three share the same diagnosis, so membership alone discloses it (attribute disclosure, which l-diversity addresses).
Actions: generalise (postcode area, birth decade), suppress rare classes, drop the diagnosis if the purpose does not need it, and treat the result as pseudonymised personal data under a sharing agreement unless a proper anonymisation assessment says otherwise.
Planning an erasure request across a RAG assistant
A customer submits a UK GDPR erasure request on 3 March. Their emails were ingested into a RAG assistant. Systems: primary store, chunk store, vector index (nightly compaction), BM25 index, semantic answer cache (24-hour TTL), application logs (30-day retention), the LLM vendor (zero data retention agreed), an evaluation set, and backups (35-day rolling). Plan the deletion and check the deadline.
Deadline: one month → respond by 3 April.
| system | action | done by |
|---|---|---|
| primary store | delete by customer ID | day 1 |
| chunk store, BM25 | delete by document IDs from a lineage map | day 1 |
| vector index | delete or tombstone, physically removed at compaction | day 2 |
| semantic cache | purge entries keyed to the user, else TTL expiry | day 1–2 |
| logs | run the redaction job by hashed user ID (do not wait for 30-day expiry) | day 3 |
| LLM vendor | nothing stored under zero retention; record the contract term | day 1 |
| eval set | search by hashed ID and remove items | day 5 |
| backups | put beyond use; they age out after 35 days (by 7 April) | — |
Backups expire after the one-month deadline, so the response must say they are beyond use and will be overwritten on schedule. The key engineering asset is the lineage map from a person to every derived artefact; without it you cannot prove completeness. Verify by querying each store for the IDs and keep an audit record without retaining the erased content.
Flow · 3 stepsHow an erasure request propagates through a RAG assistant
- Request A customer submits a UK GDPR erasure request on 3 March; the lineage map finds every derived artefact.
- Propagate The primary store, derived stores, LLM vendor and backups are handled; backups are put beyond use.
- Verify Each store is queried for the IDs and an audit record is kept without retaining the erased content.
Data
| Step | Title | What happens |
|---|---|---|
| 1 | Request | A customer submits a UK GDPR erasure request on 3 March; the lineage map finds every derived artefact. |
| 2 | Propagate | The primary store, derived stores, LLM vendor and backups are handled; backups are put beyond use. |
| 3 | Verify | Each store is queried for the IDs and an audit record is kept without retaining the erased content. |
Source: This page's text
| Box | Group | Detail |
|---|---|---|
| Erasure request | Request | 3 March |
| Lineage map | Lineage | person to every derived artefact |
| Primary store | Stores | delete by customer ID |
| Derived stores | Stores | chunks, BM25, vector, cache, logs, eval |
| LLM vendor | Stores | zero data retention |
| Backups | Stores | 35-day rolling |
| Audit record | Verification | no erased content retained |
Source: This page's text
What changed recently
EU Council narrows the GDPR side of the Digital Omnibus
The Commission’s November 2025 Digital Omnibus proposed a relative definition of personal data and an explicit legitimate-interest basis for AI training. The Council’s 21 October 2026 mandate dropped both, adding a recital that developing an AI system is not in itself a legitimate interest and a narrower rule that pseudonymised data is not personal for a third party unable to re-identify it. As of late October 2026 Parliament had no position and trilogues were not expected before March 2027, so interviewers check you do not present the proposals as current law.
AI Omnibus in force: AI Act high-risk deadlines move
Regulation (EU) 2026/1744 entered into force on 27 July 2026. Obligations for Annex III high-risk systems such as hiring and credit scoring now apply from 2 December 2027, and product-linked high-risk systems from 2 August 2028. A new Article 4a lets providers process special category data where strictly necessary to detect and correct bias, under conditions such as no synthetic alternative and deletion afterwards, which matters for fairness testing on EU data.
ICO given a statutory duty to write an AI and ADM code
SI 2026/425, in force from 12 May 2026, requires the Information Commissioner to prepare a code of practice on processing personal data when developing and using AI and when making automated decisions, including children’s data. It follows the DUAA’s new Articles 22A–22D, in force since 5 February 2026, and the ICO’s spring 2026 consultation on draft ADM guidance. UK candidates are now asked what ‘meaningful human involvement’ looks like in a real pipeline.
Near-verbatim books extracted from production LLMs
Ahmed, Cooper, Koyejo and Liang extracted near-verbatim book text from Claude 3.7 Sonnet, GPT-4.1, Gemini 2.5 Pro and Grok 3 in varying amounts, needing a Best-of-N jailbreak for Claude and GPT-4.1 (which eventually refused to continue); jailbroken Claude 3.7 Sonnet reproduced entire books near-verbatim, at up to 95.8% recall. The point for privacy interviews is that memorisation survives alignment and output filters, so personal data in training sets remains extractable from deployed systems.
VaultGemma: a 1B model trained from scratch with differential privacy
Google trained a 1B-parameter Gemma-family model with sequence-level DP (ε ≤ 2 over 1,024-token sequences) and found no detectable memorisation, but its utility was roughly that of GPT-2 1.5B. Its scaling laws show that under DP you want a smaller model and a much larger batch, and that raising ε alone gives diminishing returns. It gives candidates real numbers for the privacy-utility trade-off.
Pitfalls
- Assuming pseudonymised or hashed data is anonymous and therefore outside the UK GDPR, or quoting the EU Digital Omnibus’s proposed GDPR changes as if they were law.
- Describing the old Article 22 as current law; since 5 February 2026 the DUAA’s Articles 22A–22D apply.
- Treating a human rubber-stamp as meaningful human involvement in an automated decision.
- Deleting from the vector store but forgetting caches, logs, eval sets, fine-tuning data and backups.
- Assuming the LLM vendor’s default retention and training terms without checking the contract.
- Proposing differential privacy without stating ε, the accuracy cost or how composition is accounted.
How interviewers probe it
- Before sending UK customer data to an LLM API, what must be settled, and how does that change logging?
- Automate loan or hiring decisions end to end: what does UK law require now, and what changes for EU users (GDPR Article 22, and AI Act high-risk duties now due from December 2027)?
- Threat-model an assistant that reads customer emails: data flows, leakage paths, retention, access.
- Honour an erasure request across a RAG system; how do you prove it is complete?
- Lead angle: staff using unapproved AI tools with customer data; immediate response and lasting fix.
Quiz
Three questions from this guide. Answer each in your head or out loud, show the model answer, then rate yourself. The cards join your practice deck and come back when they are due.
What data-protection questions must be answered before sending UK customer data to an LLM provider, and how does that shape logging?
Model answer, written in a candidate's voice
- Confirm lawful basis, necessity and DPIA need, with FCA/ICO and EU AI Act awareness.
- Check processor/sub-processor chain, residency, transfer mechanism, retention, training-use and deletion.
- Minimise data: redact or pseudonymise and send only needed fields.
- Shape logging: access control, short retention, redaction, hashed identifiers, separate eval data with its own lawful basis.
- Be transparent with users and document approval before sending.
How do you keep the index fresh and honour deletions — for example a UK GDPR erasure request — across the vector store, caches and logs?
Model answer, written in a candidate's voice
- Incremental ingestion: idempotent upserts by document ID and chunk hash; deletes/tombstones fan out to dense, lexical and caches
- Embedding upgrades: parallel index, backfill, compare, cut over with rollback
- Erasure: data map of raw store, chunks, embeddings, caches, logs, eval sets and training data; delete or anonymize, document retention exceptions, verify
- Monitors staleness and surfaces document dates/freshness in answers
- Honest limits: avoid raw PII in logs; backups and training data may need retention or retraining
We want to automate loan (or job application) decisions end to end. What does UK data protection law require now?
Model answer, written in a candidate's voice
- Since 5 Feb 2026 the DUAA has replaced Article 22 with Articles 22A–22D: solely automated significant decisions are permitted on a lawful basis, subject to safeguards
- Solely automated = no meaningful human involvement; rubber-stamping does not count
- Article 22C safeguards: inform applicants, allow representations, offer meaningful human intervention, allow contest
- Special-category data (including inferred): only with explicit consent, or contract/legal requirement plus a substantial public interest condition, and an Article 9 condition; design it out where possible
- DPIA reflecting Articles 22A–22D; plain-language explanations; track the final ICO ADM guidance (draft consulted on in 2026)
- Fairness testing: disparate impact across protected groups (Equality Act; Consumer Duty for lending), accuracy, audit trail of decisions and overrides
You have finished this topic.
Reading
- Data (Use and Access) Act 2025: data protection and privacy changesGovernment summary of the DUAA changes; pair it with the commencement page for dates in force.
- Data (Use and Access) Act 2025, section 80: automated decision-makingThe statutory text of Articles 22A–22D; short enough to read in full.
- VaultGemma: the world's most capable differentially private LLMA concrete 2025 data point on what training from scratch with DP costs, and the scaling laws for choosing model size and batch under a privacy budget.
- Extracting Training Data from Large Language ModelsThe key evidence that LLMs memorise and leak personal data from training sets.
- Opinion 28/2024 on certain data protection aspects related to the processing of personal data in the context of AI modelsEU regulators’ view on model anonymity and legitimate interests, relevant once you serve EU users.
- Extracting books from production language modelsShows that model- and system-level safeguards in deployed frontier models do not stop large-scale extraction of memorised training text.
- Deep Learning with Differential PrivacyDP-SGD and the moments accountant; the standard way to train with a formal privacy bound.
- The Algorithmic Foundations of Differential PrivacyFree monograph; chapters 1–3 cover definitions, the Laplace mechanism and composition.
Practise this topic
- What data-protection questions must be answered before sending UK customer data to an LLM provider, and how does that shape logging?
- How do you keep the index fresh and honour deletions — for example a UK GDPR erasure request — across the vector store, caches and logs?
- We want to automate loan (or job application) decisions end to end. What does UK data protection law require now?
- You discover staff pasting customer data into unapproved AI tools. What do you do?
- Threat-model an LLM application that reads customer emails and drafts replies.
- Your UK product uses ML to screen job applicants (or to support credit decisions), and the company enters the EU next year. Lay out the compliance and product roadmap.
- Google’s VaultGemma (2025) was trained from scratch with sequence-level differential privacy at ε ≤ 2 and ended up roughly as capable as GPT-2 1.5B. Explain what ‘sequence-level’ protects and what it does not, why DP scaling laws favour smaller models with larger batches, and when you would use DP training rather than deduplication and PII filtering for a model fine-tuned on customer messages.
- A January 2026 study extracted near-verbatim whole books from production LLMs despite their safeguards. Your team plans to fine-tune a model on several years of customer support emails and expose it in a chatbot. How do you assess and reduce the risk that it regurgitates personal data?
- You run a fintech’s AI products for UK and EU customers and want to automate credit-limit decisions. The DUAA’s new UK ADM rules apply from February 2026, the Information Commission (which replaced the Information Commissioner on 30 September 2026) must produce a statutory AI and ADM code, the EU AI Omnibus moved Annex III high-risk obligations to December 2027, and the Digital Omnibus’s GDPR changes are still in negotiation. How do you plan compliance and the product roadmap?