Get In Touch

Validating AI Under GxP: What Annex 22 and GAMP AI Require

Updated - 18 Nov 2026 13 min read
profile icon
Dobrin Kolarov Healthcare Business Analyst

An inspector asks a QA lead to show why a particular LLM-generated output was accepted. The team can produce the output and the prompt.

What they cannot produce: the context of use the model was qualified for, the acceptance criteria that were pre-specified, the evaluation set the system was measured against, the controls around the model, or the record of what has changed since.

The evidence does not exist. It was never generated, and for that particular output, it cannot be generated now.

Validating a probabilistic AI system in a GxP environment means demonstrating that a specific model, operating inside a specific set of controls, is fit for a specific, documented purpose, with appropriate human oversight, and that it remains so on a continual basis. Regulatory guidance and industry best practices all converge on that definition. None of them gives you a prescriptive implementation method. This article does.

Key takeaways

  • Traditional computer system validation often assumes five properties that large language models and agentic systems disrupt.
  • The validated unit is not the model. It is the context of use x model x harness x HITL.
  • Draft Annex 22 currently excludes generative AI from critical GMP applications; however, a recent multi-stakeholder workshop was held to determine whether this position could be reconsidered.
  • For most CoUs, continuous monitoring compares the runtime context against the context of validity, and raises a change control when they diverge.
  • Human oversight can degrade as the model improves. This should be measured, not theorised. Override rate is a monitored control, not a comfort.

Why doesn’t traditional CSV methodology transfer unchanged to AI systems?

Large language models and agentic systems disrupt five of the assumptions CSV methodology frequently depends on:

CSV assumes What Probabilistic AI systems do Consequence for validation
A single expected result Varies its output on the same input A passing run doesn’t show the next run will pass; open-ended tasks have no single expected result to script
A stable validated state Changes through vendor model, prompt, or retrieval updates outside your change control The validated state can expire with no change record at your site
Behaviour defined by documented configuration Behaviour emerges from prompt, retrieval,tools, and human review together The validated configuration extends well past the model
Detectable errors Silent, fluent, plausible failures Absence of a flagged error is not evidence of correctness
Reproducible, traceable errors Can produce a bad output that won’t recur on rerun Root cause needs a two-dimensional classification: error type and origination point

The system boundary is the point that’s easy to overlook.

Recent regulatory activity and industry best practice guidance signals a growing recognition that probabilistic AI requires its own controls:

  • FDA draft guidance, Considerations for the Use of Artificial Intelligence to Support Regulatory Decision-Making for Drug and Biological Products (January 2025)
  • FDA, Computer Software Assurance for Production and Quality Management System Software (3 February 2026)
  • ISPE, GAMP® Guide: Artificial Intelligence (July 2025)
  • Draft EU GMP Annex 22, Artificial Intelligence (July 2025)
  • FDA-2026-N-4390 AI-Enabled Optimization of Early-Phase Clinical Trials Pilot Program, Request for Information
  • FDA-2026-N-7874 Considerations for the Regulation of Generative AI-Enabled Medical Devices, Discussion Paper and Request for Feedback (relevant to anyone whose product is software as a medical device)

Does Annex 22 ban LLMs in GMP?

Draft Annex 22 scopes itself to static, data-trained models with deterministic outputs for use in critical GMP applications. Dynamic models that adapt in production, and generative AI including large language models, should not be used in critical use cases.

That is a clean line on paper. It is not the line most organisations are actually standing on.

The exclusion creates a gap rather than closing one. Annex 22 tells you not to put generative AI in the critical path. It does not give you detailed guidance on how to govern the generative AI already in the adjacent path, and that is where the compliance exposure currently sits.

Why validate AI now, when the guidance is still draft?

Assurance built into a probabilistic system proactively costs less and delivers more than assurance retrofitted to one. As recent industry publications — including Amy Wilhite’s How Digital Transformation is Outpacing Validation in the July/August 2026 edition of Pharmaceutical Engineering — argue, validation is no longer a one-time exercise with manual periodic review.

Where deterministic systems were validated, locked and left frozen until an update arrived, probabilistic AI systems can be validated, frozen, and still drift with no update at all. Continuous validation is not best practice here; it is a necessity.

What makes an AI system inspectable, defensible and audit-ready?

The organising framework I use in my practice is the House of AI Trust™: a five-layer governance architecture in which validation is load-bearing on everything above it.

Layer Contains Makes AI
1 Trust infrastructure Data governance; regulatory landscape awareness possible
2 AI governance Model inventory, policy, accountability, explainability requirements manageable
3 Control layer Validation methodology, evaluation design, error taxonomy, HITL/HOTL controls, continuous monitoring, change control defensible
4 Domain and process context Biological variability, clinical significance, therapeutic knowledge, explainability, communication useful
5 Business ROI Cost of failure avoided, speed to market, competitive advantage investable

Two threads run through every layer: security and supplier qualification.

Structurally, this means validation inherits everything upstream of it. An organisation that has not implemented robust data governance will struggle to become inspectable, defensible and audit-ready, because the evidence validation needs was never captured. What ALCOA+ actually demands once a model contributes to a record is a question in its own right, and one BGO has worked through separately.

What does the probabilistic AI system validation lifecycle look like?

The Probabilistic Validation Lifecycle is a seven-step execution model consistent with GAMP 5, the GAMP AI Guide, draft Annex 11 and draft Annex 22, the FDA’s credibility assessment, and the FDA–EMA joint principles:

Context of use → Risk → Evaluation design and development → Acceptance criteria → Deployment and HITL control → Continuous monitoring → Change control

Context of use is the written specification of exactly what an AI system is permitted to do, on what inputs, with what human confirmation, and what falls outside its boundary. It is the first step because everything downstream inherits from it.

The model is not the only configuration item

This is where most AI change-control procedures fail. The model version is one configuration item among five, and the other four typically change more often.

Configuration item What triggers revalidation Evidence artefact
Model version Vendor update, deprecation, endpoint change behind a stable API Pinned version record; comparative evaluation run
System prompt / instruction layer Any edit to instructions, persona, output contract Prompt registry entry, diff, approval
Tool schema / action layer New tool, changed permission, changed parameter set Permission matrix; step-level test results
Retrieval index / corpus SOP revision, document added or withdrawn, re-embedding Corpus manifest; retrieval provenance test
Control layer thresholds Change to confidence threshold, classifier, escalation rule Threshold rationale; re-run against gold set

How do you qualify an AI vendor for GxP use?

Many organisations procure AI systems from external providers rather than building models in-house. In those cases, part of the validation boundary sits outside the sponsor’s walls, and the traditional supplier audit does not reach it.

VALID Trust is a four-pillar supplier qualification framework. Each pillar is triggered by what the system actually does, and each triggers its own qualification requirements.

Pillar Triggered when the system… Qualification focus
Generative AI Validation Produces free-text or generated content Output evaluation, groundedness, hallucination rate
Agentic AI Governance Uses tools or takes sequential action paths Step-level accuracy, permissions, trajectory logging
Probabilistic Acceptance Produces non-deterministic outputs Calibrated acceptance bands, sample-space design
Continuous Monitoring Can change after qualification Drift detection, revalidation triggers

The five-step decision logic

1. Map the vendor to the pillars. Determine which of the four apply, based on what the system actually does not on what the datasheet calls it.

2. Run the pillar-specific questions. The questions for Generative AI Validation are not the questions for Agentic AI Governance.

3. Apply the cross-cutting threads. Across all applicable pillars, run the four threads uniformly: security (AI-specific controls beyond ISO 27001), communication, supplier-qualification meta-questions (certifications, disclosure posture, contractual commitments), and explainability.

4. Locate the validation-inheritance boundary. Map the supply chain: foundation model → wrapper vendor → hyperscaler → sponsor and mark exactly where inherited validation ends and your own qualification work begins.

5. Scope and issue the qualification decision. Consolidate pillar findings, thread checks and the inheritance boundary into a scoped decision: qualified, qualified-with-conditions, or not qualified with the residual obligations that fall to the sponsor named explicitly.

Where does the evidence actually come from?

Everything above describes evidence that has to exist at the moment the system runs. That is an architecture problem before it is a documentation problem, and it is where most AI validation programmes quietly fail.

Data unification is the precondition for defensible AI validation. One capture layer, one lineage, one audit trail: requirements, risks, controls, test evidence, monitoring signals and change records held in a single traceable structure rather than reconciled across tools after the fact. When that layer exists, the validation package is a view of the record rather than a document someone builds; the traceability matrix is generated rather than maintained; and the answer to “show me why this output was accepted” is a query, not a project.

What will an inspector ask about your AI system?

Based on the regulatory convergence, five themes are likely to emerge. The pattern is familiar to anyone who has seen compliant sites still fail inspection on documentation rather than on practice. Each maps to an artefact you either have or do not.

The question What proves the answer
If the model gave a different output tomorrow for the same input, would your validation evidence already account for that or assume it can’t happen? Calibrated acceptance band with sample size and confidence interval; the evaluation run record
Is “validated” a state you certified once, or a bounded state with pre-specified triggers that tell you when it is no longer true? Documented context of validity; defined revalidation triggers per configuration item
Is your context of use part of what you validated or did you validate the model regardless of where it is used? Approved CoU document referenced by the validation plan and the risk assessment
For any model you did not build, do you know which validation evidence you can inherit and which you must generate? Supplier qualification decision with the inheritance boundary marked and residual obligations named
If the underlying model updated next week, would you know, and would your validated state survive it? Pinned model version record; vendor change-notification clause; monitoring alert history

Frequently Asked Questions (FAQ)

Does Annex 22 ban the use of large language models in GMP?

No. Draft EU GMP Annex 22, released for consultation in July 2025 as part of EudraLex Volume 4, scopes itself to static, data-trained models with deterministic outputs used in critical GMP applications. Dynamic models that adapt in production, and generative AI including large language models, should not be used in critical use cases. The distinction matters because most LLM deployment in pharmaceutical quality today is GxP-adjacent rather than critical-path: deviation triage, CAPA drafting, complaint intake, batch-record review support, SOP question answering, test-script generation, and regulatory and medical writing. Those systems fall outside Annex 22’s stated scope but may fall inside Annex 11, Chapter 4 and 21 CFR Part 11 territory, because they touch records, decisions and processes an inspector can ask about.

Can an AI system's past outputs be retrospectively assured after an inspection finding?

The system can be requalified; its past outputs cannot be retrospectively assured unless the evidence was captured when they were produced. This is where probabilistic AI departs most sharply from deterministic computerised systems. For a deterministic system under change control, testing the current configuration is reasonable evidence of how it behaved historically, because the same code and configuration produce the same results. That is why a validation gap can be remediated after an inspection finding through retrospective validation: new evidence, generated and dated now, about a state that has not changed. For a probabilistic system, testing today says little about outputs already accepted. Those outputs depended on the conditions at the moment each was produced: the model version actually serving the request, the retrieved context, the harness configuration, and what the human reviewer saw. If those conditions were captured contemporaneously, the historical record can be examined and the impact of the finding bounded. If they were not, rerunning the system will not recreate them. The organisation can still requalify the system for its current context of use, but any CAPA reaching back to past outputs closes on a written justification rather than on data, and the impact assessment on historical records may have no defensible boundary. The compliance debt is recoverable going forward; assurance over what has already happened is recoverable only to the extent it was captured.

What triggers revalidation of an AI model under GxP?

Five configuration items each carry an independent revalidation trigger, and only one of them is the model. The model version triggers on a vendor update, a deprecation, or a silent change behind a stable API endpoint. The system prompt or instruction layer triggers on any edit to instructions, persona or output contract. The tool schema and action layer triggers on a new tool, a changed permission or a changed parameter set. The retrieval index or RAG corpus triggers when an SOP is revised, a document is added or withdrawn, or the corpus is re-embedded. The control layer triggers on any change to a confidence threshold, classifier or escalation rule. Beyond deliberate change, drift itself is a trigger: when continuous monitoring shows the runtime context has moved outside the documented context of validity, a change control is raised even though nobody modified the system.

How do you qualify an AI vendor when the supplier is a frontier model provider?

Conventional supplier qualification does not reach a frontier model provider: you cannot conduct a GAMP 5 supplier audit of OpenAI, Anthropic, Google or a hyperscaler, and their certifications do not substitute for one. SOC 2 Type II and ISO/IEC 27001 attest to information-security controls; they say nothing about training-data provenance, model governance, inference variance, evaluation methodology or validation inheritance. ISO/IEC 42001 is closer but still not GxP evidence. The workable approach is to map the supply chain explicitly: foundation model → wrapper vendor → hyperscaler → sponsor and mark where inherited validation ends and your own qualification begins. Then qualify against the pillars the system actually triggers, and name the residual obligations that fall to you in the qualification decision: contractual change notification, model version pinning, data residency, subprocessor disclosure, and written confirmation that your inputs are not used for training. Under Annex 11, the accountability stays with the sponsor regardless of where the model was built.

What is the difference between validating the model and validating the AI system?

Validating the model establishes how a set of weights performs against a benchmark accuracy, calibration, safety evaluations and is work the vendor typically does and publishes in a model card. Validating the AI system establishes that a specific model, deployed inside a specific harness of retrieval grounding, system prompts, tool permissions, confidence thresholds, output filters and human review, is fit for a specific documented purpose in a specific environment. The validated unit is context of use × model × harness. This is the same fit-for-intended-use logic that underpins FDA’s Computer Software Assurance guidance and its credibility-assessment framework for AI in regulatory decision-making, and it is why the GAMP AI Guide anchors on context of use rather than on model performance. Model validation alone leaves the prompt, the retrieval corpus and the human control the three most change-prone parts of the system entirely unvalidated.

About Kayla Britt

Kayla Britt, M.S. is Principal of Britt Biocomputing, where she works on probabilistic AI validation for GxP-regulated drug development. She holds an M.S. in Physiology and Biophysics and is a published research scientist with a cover publication in the Journal of Experimental Biology.

From BGO LifeScience Technologies

The argument above lands on a practical requirement: validation evidence for probabilistic systems has to be produced by the system that does the work, not assembled from it afterwards.

BGO LifeScience Technologies builds on that principle. Our GMP-compliant software validation platform takes a URS and a set of data-integrity gaps and drives the assessment through to a signed validation package risk identification and FMEA scoring, mitigation strategy, traceability linking, monitoring plan, gap detection, CAPA, residual-risk acceptability and the validation plan itself with defined quality gates that have to close before anything is released. Requirements, risks, controls, test evidence and change records live in one traceable structure, so the traceability matrix is generated rather than maintained, and the audit trail is a property of the workflow rather than a document produced at the end of it. The same discipline underpins delivered systems such as our validated drug management system.

If you are working out what evidence your AI systems need and where it would come from, our regulatory and compliance advisory team can help you scope it.

References

Regulatory guidance and standards

  1. European Commission. EU GMP Annex 22: Artificial Intelligence (draft, consultation July 2025). EudraLex Volume 4.
  2. European Commission. EU GMP Annex 11: Computerised Systems (draft revision, 2025).
  3. ISPE. GAMP® Guide: Artificial Intelligence (July 2025).
  4. ISPE. GAMP® 5: A Risk-Based Approach to Compliant GxP Computerized Systems, 2nd edition (2022).
  5. FDA. Considerations for the Use of Artificial Intelligence to Support Regulatory Decision-Making for Drug and Biological Products (draft guidance, January 2025).
  6. European Medicines Agency. “Good manufacturing practice: Multistakeholder workshop on expert contributions to artificial intelligence guidance development (Annex 22).” Online workshop, 30 June–1 July 2026. https://www.ema.europa.eu/en/events/good-manufacturing-practice-multistakeholder-workshop-expert-contributions-artificial-intelligence-guidance-development-annex-22. Accessed 22 September 2026.
    FDA. Computer Software Assurance for Production and Quality System Software (final guidance, 3 February 2026).
  7. FDA. AI-Enabled Optimization of Early-Phase Clinical Trials Pilot Program, Request for Information, docket FDA-2026-N-4390.
  8. FDA. Considerations for the Regulation of Generative AI-Enabled Medical Devices, Discussion Paper and Request for Feedback, docket FDA-2026-N-7874.
  9. FDA and EMA. Joint Guiding Principles on the Use of Artificial Intelligence in Medicines Development (January 2026).
  10. ICH. Q9(R1) Quality Risk Management (2023).
  11. Wilhite, A. “How Digital Transformation is Outpacing Validation.” Pharmaceutical Engineering, July/August 2026.

Peer-reviewed literature

  1. Roemming HJ, Hauben M, Wannhoff W, et al. “How LLMs can advance safety case intake points to consider and insights from a proof of concept.” Therapeutic Advances in Drug Safety 2025;16. doi:10.1177/20420986251386222
  2. Ha YM, Kim M, Bang Y, et al. “Large Language Models for WHO–UMC Drug–Adverse Event Causality Assessment Using FAERS Cases: Comparative Performance Study.” Journal of Medical Internet Research 2026;28:e93237. doi:10.2196/93237
  3. Hakim JB, Painter JL, Ramcharran D, et al. “The need for guardrails with large language models in pharmacovigilance and other medical safety critical settings.” Scientific Reports 2025;15:27886. doi:10.1038/s41598-025-09138-0
  4. Heckmann NS, Papoutsi DG, Barbieri MA, et al. “Biomedical Large Language Models and Prompt Engineering for Causality Assessment of Individual Case Safety Reports in Pharmacovigilance.” Pharmaceutical Research 2026. doi:10.1007/s11095-026-04121-4
  5. Li Y, Li J, He J, Tao C. “AE-GPT: Using Large Language Models to extract adverse events from surveillance reports.” PLOS ONE 2024;19(3):e0300919. doi:10.1371/journal.pone.0300919
  6. Finlayson SG, Subbaswamy A, Singh K, et al. “The Clinician and Dataset Shift in Artificial Intelligence.” New England Journal of Medicine 2021;385(3):283–286. doi:10.1056/NEJMc2104626
  7. Sahiner B, Chen W, Samala RK, Petrick N. “Data drift in medical machine learning: implications and potential remedies.” British Journal of Radiology 2023;96(1150):20220878. doi:10.1259/bjr.20220878
  8. Ke YH, Jin L, Elangovan K, et al. “Retrieval augmented generation for 10 large language models and its generalizability in assessing medical fitness.” npj Digital Medicine 2025;8:187. doi:10.1038/s41746-025-01519-z
  9. Liu Q, Huang R, Hsieh J, et al. “Landscape Analysis of the Application of Artificial Intelligence and Machine Learning in Regulatory Submissions for Drug Development From 2016 to 2021.” Clinical Pharmacology & Therapeutics 2023;113(4):771–774. doi:10.1002/cpt.2668
  10. Musuamba FT, et al. “Scientific and regulatory evaluation of mechanistic in silico drug and disease models in drug development: Building model credibility.” CPT: Pharmacometrics & Systems Pharmacology 2021;10(8):804–825. doi:10.1002/psp4.12669
  11. Asgari E, Montaña-Brown N, Dubois M, et al. “A framework to assess clinical safety and hallucination rates of LLMs for medical text summarisation.” npj Digital Medicine 2025;8:274. doi:10.1038/s41746-025-01670-7
  12. Clusmann J, Ferber D, Wiest IC, et al. “Prompt injection attacks on vision language models in oncology.” Nature Communications 2025;16:1239. doi:10.1038/s41467-024-55631-x
  13. Omar M, Sorin V, Collins JD, et al. “Multi-model assurance analysis showing large language models are highly vulnerable to adversarial hallucination attacks during clinical decision support.” Communications Medicine 2025;5:330. doi:10.1038/s43856-025-01021-3
  14. Alber DA, Yang Z, Alyakin A, et al. “Medical large language models are vulnerable to data-poisoning attacks.” Nature Medicine 2025;31(2):618–626. doi:10.1038/s41591-024-03445-1
  15. Olsson H, Kartasalo K, Mulliqi N, et al. “Estimating diagnostic uncertainty in artificial intelligence assisted pathology using conformal prediction.” Nature Communications 2022;13:7761. doi:10.1038/s41467-022-34945-8
  16. Banerji CRS, Chakraborti T, Harbron C, MacArthur BD. “Clinical AI tools must convey predictive uncertainty for each individual patient.” Nature Medicine 2023;29(12):2996–2998. doi:10.1038/s41591-023-02562-7
  17. Parakkal Sreenivasan A, Vaivade A, Noui Y, et al. “Conformal prediction enables disease course prediction and allows individualized diagnostic uncertainty in multiple sclerosis.” npj Digital Medicine 2025;8:224. doi:10.1038/s41746-025-01616-z
  18. Goddard K, Roudsari A, Wyatt JC. “Automation bias: a systematic review of frequency, effect mediators, and mitigators.” Journal of the American Medical Informatics Association 2012;19(1):121–127. doi:10.1136/amiajnl-2011-000089
  19. Dratsch T, Chen X, Rezazade Mehrizi M, et al. “Automation Bias in Mammography: The Impact of Artificial Intelligence BI-RADS Suggestions on Reader Performance.” Radiology 2023;307(4):e222176. doi:10.1148/radiol.222176
  20. Goh E, Gallo R, Hom J, et al. “Large Language Model Influence on Diagnostic Reasoning: A Randomized Clinical Trial.” JAMA Network Open 2024;7(10):e2440969. doi:10.1001/jamanetworkopen.2024.40969
  21. Tschandl P, Rinner C, Apalla Z, et al. “Human–computer collaboration for skin cancer recognition.” Nature Medicine 2020;26(8):1229–1234. doi:10.1038/s41591-020-0942-0
profile icon

Dobrin Kolarov

Healthcare business analyst with expertise in marketing and business development, and holds an MPharm degree. He specialises in creating and executing communication strategies that make digital health solutions and pharmaceutical technologies clear, accessible, and resonation for their audiences.

link to the author’s linkedin profile

What’s your goal today?

Hire us to develop your
product or solution

Since 2008, BGO LifeScience has been providing dedicated IT teams to Fortune
100 Pharmaceutical Corporations, Government and Healthcare Organisations, and educational institutions.

If you’re looking to flexibly increase capacity without hiring, check out:

On-Demand IT Talent Product Development as a Service

Get ahead of the curve
with tech leadership

We help startups, scale-ups & SMEs create cutting-edge healthcare products and solutions by providing them with the technical consultancy and support they need to break through.

If you’re looking to scope and validate your Health solution, check out:

Project CTO as a Service

See our Case Studies

Wonder what it takes to solve some of the toughest problems in Health (and how to come up with high-standard, innovative solutions)?

Have a look at our latest work in digital health:

Browse our case studies

Contact Us

We help healthcare companies worldwide get the value, speed, and scalability they need-without compromising on quality. You’ll be amazed of how within-reach top service finally is.

Have a project in mind?

Contact us
chat user icon

Hello!

Did you know that BGO LifeSciences is one of the only companies strictly specialising in digital health IT talent and tech leadership?

Our team has over 18 years of experience helping health startups, Fortune 100 enterprises, and governments deliver leading healthcare tech solutions.

If you want to explore your options, would you like to book a free consultation call today?

Yes

It’s a free, no-obligation, fact-finding opportunity. You’ll have a friendly chat with our team, ask any questions, and see how we could help in detail.