---
title: Privacy and UK data protection for AI systems
url: https://gurkanozkan.ai/learn/topics/privacy/
markdown: https://gurkanozkan.ai/learn/topics/privacy.md
kind: topic
tracks:
  - Applied LLM
  - AI leadership
  - ML engineering
json: https://gurkanozkan.ai/api/learn/topics/privacy.json
---

# Privacy and UK data protection for AI systems

UK AI roles, especially in finance, health and the public sector, expect you to design systems that comply with the UK GDPR and Data Protection Act 2018 as amended by the Data (Use and Access) Act 2025 (DUAA), most of whose data protection provisions, including the new automated decision-making rules, came into force on 5 February 2026. Interviewers test whether you can name the questions to settle before sending personal data to an LLM provider, how logging and evaluation data are governed, how erasure propagates through indexes and caches, and the technical privacy risks of models themselves (memorisation, membership inference) and their mitigations. EU rules are moving too: the AI Omnibus pushed AI Act high-risk duties to December 2027, and the Digital Omnibus's GDPR changes are still being negotiated, so say which regime and which status you mean. This is not legal advice; the point is engineering judgement that a DPO would recognise.

## 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?

**Solution**

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.


### 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?

**Solution**

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.

**Solution**

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


## What changed recently

- **Oct 2026: 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. [Source](https://www.addleshawgoddard.com/en/insights/insights-briefings/2026/data-protection/eu-digital-omnibus-european-council-adopts-its-position/)
- **Jul 2026: 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. [Source](https://artificialintelligenceact.eu/ai-act-explorer/digital-omnibus/)
- **May 2026: 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. [Source](https://www.legislation.gov.uk/uksi/2026/425/made)
- **Jan 2026: 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. [Source](https://arxiv.org/abs/2601.02671)
- **Sep 2025: 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. [Source](https://research.google/blog/vaultgemma-the-worlds-most-capable-differentially-private-llm/)

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

## Reading

- [Data (Use and Access) Act 2025: data protection and privacy changes](https://www.gov.uk/guidance/data-use-and-access-act-2025-data-protection-and-privacy-changes) (Docs, 15 min, Intro): Government 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-making](https://www.legislation.gov.uk/ukpga/2025/18/section/80) (Docs, 20 min, Core): The statutory text of Articles 22A–22D; short enough to read in full.
- [VaultGemma: the world's most capable differentially private LLM](https://research.google/blog/vaultgemma-the-worlds-most-capable-differentially-private-llm/) (Blog, 15 min, Core): A 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 Models](https://arxiv.org/abs/2012.07805) (Paper, 45 min, Core): The 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 models](https://www.edpb.europa.eu/our-work-tools/our-documents/opinion-board-art-64/opinion-282024-certain-data-protection-aspects_en) (Docs, 60 min, Deep): EU regulators' view on model anonymity and legitimate interests, relevant once you serve EU users.
- [Extracting books from production language models](https://arxiv.org/abs/2601.02671) (Paper, 40 min, Deep): Shows that model- and system-level safeguards in deployed frontier models do not stop large-scale extraction of memorised training text.
- [Deep Learning with Differential Privacy](https://arxiv.org/abs/1607.00133) (Paper, 45 min, Deep): DP-SGD and the moments accountant; the standard way to train with a formal privacy bound.
- [The Algorithmic Foundations of Differential Privacy](https://www.cis.upenn.edu/~aaroth/Papers/privacybook.pdf) (Book, 180 min, Deep): Free 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?](https://gurkanozkan.ai/learn/questions/applied-llm-saf-04.md)
- [How do you keep the index fresh and honour deletions — for example a UK GDPR erasure request — across the vector store, caches and logs?](https://gurkanozkan.ai/learn/questions/applied-llm-rag-08.md)
- [We want to automate loan (or job application) decisions end to end. What does UK data protection law require now?](https://gurkanozkan.ai/learn/questions/lead-gv-05.md)
- [You discover staff pasting customer data into unapproved AI tools. What do you do?](https://gurkanozkan.ai/learn/questions/lead-gv-10.md)
- [Threat-model an LLM application that reads customer emails and drafts replies.](https://gurkanozkan.ai/learn/questions/lead-td-11.md)
- [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…](https://gurkanozkan.ai/learn/questions/lead-sc-08.md)
- [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…](https://gurkanozkan.ai/learn/questions/recent-b-privacy-01.md)
- [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…](https://gurkanozkan.ai/learn/questions/recent-b-privacy-02.md)
- [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…](https://gurkanozkan.ai/learn/questions/recent-b-privacy-03.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
