LearnTopic guide

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.

Applied LLM · AI leadership · ML engineering8 key concepts9 questions

Start: Key concepts 6 lessons · about 18 min
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.

Next: Worked examples Lesson 3 of 6 · about 4 min

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 = Sensitivity Δ ÷ ε per release

95% noise bound = Laplace scale b × 3.0

Total ε = Releases × ε per release

Worked cases
CaseSensitivity Δε per releaseReleasesLaplace scale b95% noise boundTotal ε
Worked example10.510265
The Laplace scale and 95% noise bound grow as ε per release falls, while total privacy loss grows linearly with the number of releases.Diagram drafted by a local AI model (Inkling 2 Mini) from this page's text and drawn from data. Checked by an independent reviewer.

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

How an erasure request propagates through a RAG assistantA customer erasure request on 3 March is traced through a lineage map to the primary store, derived stores, LLM vendor and backups. Deletion, tombstoning or beyond-use handling is recorded, and each store is queried for the IDs before an audit record is kept.Erasure request3 MarchLineage mapperson to every derived artefactPrimarystoredelete bycustomerIDDerivedstoreschunks,BM25,vector,cache,logs, evalLLMvendorzero dataretentionBackups35-dayrollingAudit recordno erased content retained123RequestLineageStoresVerification
  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.

The request is answered by 3 April, with every copy deleted or put beyond use and an audit record kept.Diagram drafted by a local AI model (Inkling 2 Mini) from this page's text and drawn from data. Checked by an independent reviewer.
Data
Steps
StepTitleWhat happens
1RequestA customer submits a UK GDPR erasure request on 3 March; the lineage map finds every derived artefact.
2PropagateThe primary store, derived stores, LLM vendor and backups are handled; backups are put beyond use.
3VerifyEach store is queried for the IDs and an audit record is kept without retaining the erased content.

Source: This page's text

Boxes
BoxGroupDetail
Erasure requestRequest3 March
Lineage mapLineageperson to every derived artefact
Primary storeStoresdelete by customer ID
Derived storesStoreschunks, BM25, vector, cache, logs, eval
LLM vendorStoreszero data retention
BackupsStores35-day rolling
Audit recordVerificationno erased content retained

Source: This page's text

Next: What changed Lesson 4 of 6 · about 3 min

What changed recently

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

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

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

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

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

Next: Pitfalls and interview angles Lesson 5 of 6 · about 2 min

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.
Next: Quiz Lesson 6 of 6 · about 3 min

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.

  1. Question 1 of 3 · Applied LLM · Technical · Medium

    What data-protection questions must be answered before sending UK customer data to an LLM provider, and how does that shape logging?

  2. Question 2 of 3 · Applied LLM · Technical · Medium

    How do you keep the index fresh and honour deletions — for example a UK GDPR erasure request — across the vector store, caches and logs?

  3. Question 3 of 3 · AI leadership · Technical · Hard

    We want to automate loan (or job application) decisions end to end. What does UK data protection law require now?

Reading

Practise this topic

  1. What data-protection questions must be answered before sending UK customer data to an LLM provider, and how does that shape logging?Applied LLM · Technical · Medium
  2. How do you keep the index fresh and honour deletions — for example a UK GDPR erasure request — across the vector store, caches and logs?Applied LLM · Technical · Medium
  3. We want to automate loan (or job application) decisions end to end. What does UK data protection law require now?AI leadership · Technical · Hard
  4. You discover staff pasting customer data into unapproved AI tools. What do you do?AI leadership · Behavioural · Medium
  5. Threat-model an LLM application that reads customer emails and drafts replies.AI leadership · Technical · Hard
  6. 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.AI leadership · Case study · Very hard
  7. 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.Research · Technical · Hard
  8. 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?Applied LLM · Technical · Medium
  9. 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?AI leadership · Case study · Hard

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.