The GDPR sets seven principles for every processing of personal data, including processing in AI systems: lawfulness, fairness and transparency; purpose limitation; data minimisation; accuracy; storage limitation; integrity and confidentiality; and accountability. Article 5(2) makes the controller responsible for compliance and requires it to be able to demonstrate that compliance. For AI, that turns each principle into a testable requirement per phase of the lifecycle: a documented legal basis and purpose for development and for deployment, a justified data set, controls on model output, a retention period for prompts, logs and models, security controls against AI-specific attacks, and records that show who decided what. A principle you cannot evidence for a given workflow step is, in practice, a principle you cannot claim to meet.
Most organisations that use generative AI already know the GDPR applies. The harder question is what the principles in Article 5 demand from a concrete AI workflow: a chat assistant, a retrieval pipeline over internal documents, or a fine-tuned model. Regulators have started to answer that question in operational terms, and their answers share one feature. They ask for evidence per processing step, not for a general statement that the system is compliant.
This guide translates each GDPR principle into a test you can run against an AI workflow, with the evidence that answers it. It draws on the text of the GDPR on EUR-Lex, the EDPB Opinion 28/2024 on AI models and the EDPS orientations on generative AI of 28 October 2025.
What does Article 5 GDPR actually require?
Article 5(1) of the GDPR lists six principles in points (a) to (f), and Article 5(2) adds accountability. Point (a) combines lawfulness, fairness and transparency, which is why the principles are usually counted as seven. In the words of the regulation, personal data shall be:
- processed lawfully, fairly and in a transparent manner in relation to the data subject;
- collected for specified, explicit and legitimate purposes and not further processed in a manner that is incompatible with those purposes;
- adequate, relevant and limited to what is necessary in relation to the purposes for which they are processed;
- accurate and, where necessary, kept up to date;
- kept in a form which permits identification of data subjects for no longer than is necessary;
- processed in a manner that ensures appropriate security, using appropriate technical or organisational measures.
Article 5(2) then states that "the controller shall be responsible for, and be able to demonstrate compliance with, paragraph 1". None of this text mentions AI. The principles are technology-neutral, and that is exactly why they bite: they apply in full to every step where an AI system touches personal data, from collecting training data to logging a user's prompt.
Why should AI teams treat the principles as tests?
Because the regulators who interpret them already do. The European Data Protection Board adopted Opinion 28/2024 on 17 December 2024 at the request of the Irish supervisory authority. It addresses four questions: when an AI model can be considered anonymous, how controllers can demonstrate that legitimate interest is an appropriate legal basis in development and in deployment, and what happens to a model that was developed by processing personal data unlawfully.
The opinion repeatedly points supervisory authorities to the controller's documentation. Claims that a model is anonymous are to be assessed case by case, by reviewing the evidence the controller provides. A company that deploys a model built by someone else is expected to have assessed, as part of its accountability obligations, that the model was not developed by processing personal data unlawfully.
The practical consequence is simple. For each principle, an AI team should be able to state the question a regulator would ask, and point to the record that answers it. The sections below do that principle by principle.
How do lawfulness, fairness and transparency apply to AI?
Lawfulness requires a legal basis under Article 6 for each processing operation. The EDPB recalls that there is no hierarchy between the legal bases and that the controller must identify the right one. Where a controller relies on legitimate interest, the opinion sets out a three-step test: identify a legitimate interest that is lawful, clearly articulated and real and present; show that the processing is necessary for that interest and that there is no less intrusive way to pursue it; and show that the interest is not overridden by the rights and freedoms of the people concerned.
Fairness asks whether people would reasonably expect the processing and whether it treats them without unjustified adverse effects. The opinion gives reasonable expectations a central role in the balancing test, and lists context factors such as whether the data was publicly available, the relationship between the person and the controller, and whether people are even aware their data is online.
Transparency requires the information in Articles 13 and 14. Article 14 covers data not obtained from the person, which is the typical situation for training data collected from the web. Article 14(5)(b) allows an exception where informing people "proves impossible or would involve a disproportionate effort", but the controller must then take appropriate measures, "including making the information publicly available".
Tests for this principle:
- Is there a documented legal basis for the development phase and, separately, for the deployment phase?
- If the basis is legitimate interest, is the three-step assessment written down, including the balancing test?
- Can you show the privacy information that covers the AI processing, and when it was last updated?
- If you rely on the Article 14(5)(b) exception, is the disproportionate-effort assessment recorded, and is the information publicly available?
How does purpose limitation apply to generative AI?
Purpose limitation requires specified, explicit and legitimate purposes and prohibits further processing that is incompatible with them. The EDPS orientations make the AI-specific point directly: "the purpose of data processing during the development phase can be often distinct from its purpose during deployment", so each phase of the lifecycle has to be assessed separately and given its own purpose.
The most common failure in practice is reuse. Data collected to deliver a service, such as support tickets or uploaded documents, later becomes fine-tuning material or evaluation data. Under Article 6(4) GDPR, that reuse requires a compatibility assessment unless it rests on consent or on Union or Member State law.
Tests for this principle:
- Is there a written purpose for each lifecycle phase: data collection, training or fine-tuning, evaluation, deployment and monitoring?
- For every data set reused from another context, is there a compatibility assessment?
- Does the vendor contract state whether your prompts and outputs may be used to train the vendor's models?
What does data minimisation mean for prompts, retrieval and training?
Data minimisation limits personal data to what is "adequate, relevant and limited to what is necessary" for the purpose. The EDPS adds that the obligation "covers the entire lifecycle of the system", and that the controller should verify that the purpose cannot be achieved with other data, such as synthetic or anonymised data, before concluding that personal data is necessary at all.
For generative AI, minimisation applies at three points: what enters training data, what a retrieval system can return into a prompt, and what users paste into a prompt themselves. The last point is the hardest to control and the easiest to overlook. We covered the workflow in detail in data minimisation in generative AI.
Tests for this principle:
- Is there a recorded decision on why personal data is needed, and why synthetic, anonymised or pseudonymised data would not do?
- Does the retrieval layer filter documents and fields by purpose before they reach the model?
- Is there a technical control, not only a policy, that removes or masks identifiers in prompts before they leave your environment?
How does the accuracy principle apply to AI output?
The accuracy principle requires personal data to be accurate and, where necessary, kept up to date, with inaccurate data erased or rectified without delay. The EDPS orientations state that controllers must ensure accuracy "at all stages of the development and use of a generative AI system", including control over output and inferences, because models "may generate output containing inaccurate or false information, including personal data". The EDPS goes as far as advising EU institutions to reconsider the use of a system if accuracy cannot be maintained.
Two distinctions matter. First, the accuracy principle concerns personal data, not the general quality of the model. The ICO guidance on AI and data protection treats statistical accuracy, how often a model is right, as a related but separate topic. Second, an output about a person that is wrong is a data protection issue, not only a quality issue. Our article on the GDPR accuracy principle in generative AI works this out per workflow phase.
Tests for this principle:
- Are statements about identifiable people in AI output checked against a source before they are used in a decision or a document?
- Is there a procedure to correct or remove inaccurate personal data in outputs, logs and knowledge bases?
- Is output monitoring documented, including who reviews it and how often?
What does storage limitation require for prompts, logs and models?
Storage limitation requires that personal data is kept in identifiable form no longer than necessary for the purpose. In AI workflows, the stores multiply: prompts, outputs, conversation histories, vector indexes, evaluation sets, debug logs and the vendor's own copies.
The model itself can be one of them. The EDPB states that AI models trained with personal data "cannot, in all cases, be considered anonymous". A model counts as anonymous only if both the likelihood of extracting personal data about people in the training data and the likelihood of obtaining such data through queries are insignificant. Where that bar is not met, personal data is retained in the model, and retention and erasure questions apply to the model as well. We set out practical periods in retention periods for AI prompts, outputs and audit logs.
Tests for this principle:
- Is there a retention period for each store, including vendor-side copies, and is deletion enforced automatically?
- For models trained or fine-tuned on personal data, is there a documented anonymity assessment, or an explicit acknowledgement that the model holds personal data?
- Can you show a deletion log for at least one completed retention cycle?
What does integrity and confidentiality mean for AI systems?
Article 5(1)(f) requires appropriate security, and Article 32 specifies that the controller and processor must implement measures "to ensure a level of security appropriate to the risk", taking into account the state of the art. For AI, the state of the art now includes attacks that classic IT controls do not cover.
The EDPS orientations name them: controllers should add controls tailored to "model inversion attacks, prompt injection, jailbreaks", and when using retrieval-augmented generation it is "necessary to test that the generative AI system is not leaking personal data that might be present in the system's knowledge base".
Tests for this principle:
- Is prompt injection in the threat model, and is there a test result from the last release?
- Has the retrieval layer been tested for leakage across users, roles or tenants?
- Are access rights to the knowledge base the same as, or stricter than, access rights to the source documents?
- Are AI-specific incidents part of the breach procedure under Articles 33 and 34?
How do you demonstrate accountability across the AI supply chain?
Accountability under Article 5(2) is the principle that makes the other six testable. It is also where the supply chain matters most. The EDPB describes the case in which a model containing personal data is deployed by a different controller than the one that developed it. Supervisory authorities should then take into account whether the deployer assessed that the model was not developed unlawfully, for instance by looking at the source of the training data and at any infringement findings by an authority or a court. The depth of that check should scale with the risk of the deployment.
The standard GDPR instruments carry this evidence: the record of processing activities under Article 30, the data protection impact assessment under Article 35 where processing is likely to result in a high risk, and data protection by design under Article 25. Our article on assigning ownership to AI agents covers who signs off on what.
Tests for this principle:
- Is every AI system in the record of processing activities, with each phase listed as a separate processing operation?
- Is there a DPIA, or a documented decision why none is needed?
- For third-party models, is the vendor due-diligence assessment on file, and does it cover the origin of the training data?
- Is there a named owner for each AI workflow who can produce this evidence on request?
What does a minimal evidence set per principle look like?
A compact way to run the tests above is to keep one evidence record per AI workflow, with one entry per principle:
- Lawfulness, fairness and transparency: legal basis per phase, legitimate interest assessment where relevant, current privacy notice.
- Purpose limitation: purpose per lifecycle phase, compatibility assessments for reused data, vendor training terms.
- Data minimisation: necessity decision, retrieval filters, prompt redaction control.
- Accuracy: output review procedure, correction procedure, monitoring log.
- Storage limitation: retention schedule per store, model anonymity assessment, deletion log.
- Integrity and confidentiality: AI threat model, prompt injection and leakage test results, access model.
- Accountability: record of processing entry, DPIA or screening decision, vendor assessment, named owner.
The value of this record is not the paperwork. It is that a gap becomes visible before a supervisory authority, a client or a court asks for it.
How do the GDPR, the EUDPR and the UK GDPR differ here?
The three regimes share the same principles but are not interchangeable. The EDPS orientations are addressed to EU institutions, bodies, offices and agencies under Regulation (EU) 2018/1725, the EUDPR. Its Article 4 lists the same principles as Article 5 GDPR, which is why the orientations are useful for private organisations too. The legal bases differ, however. The EUDPR has no legitimate interest ground, and the EDPS states that the legal basis for EU institutions "must be laid down in EU law". The EDPB three-step test is therefore a GDPR instrument, not an EUDPR one.
The ICO guidance applies the UK GDPR. It is a useful reference for method, but it is not an interpretation of the EU GDPR, and its conclusions should not be cited as if they bind EU supervisory authorities.
Key Takeaway
The GDPR principles do not change when processing moves into an AI system, but the number of places where they apply does. Training data, retrieval, prompts, outputs, logs and the model itself each need a purpose, a justification, a retention period, security controls and an owner. EDPB Opinion 28/2024 and the EDPS orientations both point in the same direction: compliance is assessed on documented evidence per processing step. Treating each principle as a test, with a named record that answers it, is the most direct way to meet Article 5(2).
More articles on this subject are collected in the AI privacy and GDPR overview.
Sources and references
- Regulation - 2016/679 - EN - gdpr
- Opinion 28/2024 on certain data protection aspects related to the processing of personal data in the context of AI models | European Data Protection Board
- EDPS, Orientations for ensuring data protection compliance when using Generative AI systems, version 2, 28 October 2025
- Guidance on AI and data protection
- Regulation - EU - 2018/1725 - EN - EUDPR
Sources: Key legal text is attributed to the GDPR on EUR-Lex; interpretive claims draw on EDPB Opinion 28/2024 and the EDPS generative AI orientations of 28 October 2025, with the EUDPR and ICO guidance for comparison.
