Editor’s introduction
A study evaluated the consistency of large language model (LLM) assessments in medical device document review by repeating identical prompts across multiple commercial deployments. In twelve out of fourteen cases, the models produced different labels or evidence for the same request, even under deterministic sampling settings. Variation persisted regardless of reduced reasoning or prompt modifications, indicating that core assessment outputs were not reliably reproducible. The findings highlight that without strict control over pipeline components—such as text extraction, embedding, retrieval, and inference—the outputs differ across runs, machines, and configurations. A custom pipeline designed to ensure byte-identical output at every stage achieved consistent results for blood glucose meter and infusion pump documents, demonstrating that end-to-end determinism is technically feasible. This suggests that for regulated environments, reproducibility must be engineered into the system, not assumed.
Introduction
Demonstrating that a medical device complies with regulation is expert work that must leave a record. Experts interpret the applicable requirements, judge whether the documents and records—technical files, test reports and data held in electronic quality management systems—meet them, and record each judgment with its evidence. The work recurs with every submission, design change and audit, on the manufacturer’s side and on the side of notified bodies and regulators, and the records are kept for at least ten years; a notified body must document its conformity assessment so that its conclusions “can represent objective evidence of such compliance to persons that are not themselves involved in the assessment”, and the US Food and Drug Administration (FDA) reviews the substance of a 510(k) (premarket notification) submission only after a completeness screening.
Large language models (LLMs) could help with this work. We take a limited view of their role. Deciding which regulations, standards and guidance apply, and stating what must be shown as assessment items, remains the experts’ work. For each item that experts define, an LLM can prepare a preliminary assessment—a label such as Satisfied or Not satisfied, a short reason and the passages it relies on, quoted verbatim—for a qualified expert to check against the source; the judgment, and the responsibility for it, stay with the expert, whose decision, not the preliminary assessment, enters the quality record. Regulators’ guidance recommends exactly this form of evidence, quoted sentences that can be checked, and warns against the documented tendency of even expert users to over-rely on an automated suggestion.
The recorded judgment rests on what the expert was shown. A system that prepares such assessments should therefore return exactly the same assessment whenever the documents, the assessment items and its own configuration are the same. Software used in a quality management system must be validated for its intended use, including when it changes (ISO 13485:2016, subclause 4.1.6, incorporated by 21 CFR 820.10(a); ), and electronic-record systems for “accuracy, reliability, consistent intended performance, and the ability to discern invalid or altered records”; with a system whose output varies from run to run, a single difference observed after a change—to a document, an item, a model or the hardware—cannot be told from ordinary variation without repeated runs, and the individual assessments the change affects cannot be identified. An LLM pipeline does not give the same output for the same input by construction: floating-point reductions depend on how requests are batched, embeddings and retrieval drift with precision and with insertions, a commercial deployment runs on hardware and software the user cannot see, and in a recent preprint covering five API providers, repeated outputs at temperature zero were character-identical 22% of the time on average for the two models evaluated on every task. Reproducibility is a separate axis from accuracy, and this paper concerns only reproducibility.
Deterministic inference is now available: batch-invariant kernels and, more recently, verified and scheduling-based engines make a model’s output independent of how requests are batched. What has not been tested is whether a complete assessment pipeline, in which inference is one stage among several, can be made reproducible, and what a user of a commercial deployment actually observes in the fields of an assessment record. We asked whether preliminary assessments of public FDA documents can be produced again, byte for byte, and found three things. Commercial LLM deployments did not reproduce their assessments at the deterministic sampling settings they accepted: the quoted evidence changed more often than the label, one model varied differently through different routes, another changed labels only between days, and reducing reasoning did not help. For the open-weight models we served, reproducibility was a property of how the model was served. A pipeline deterministic from text extraction to inference reproduced every intermediate result and output across repetition, reordering, concurrency, interruption, corpus edits, machines and days for two device types, provided the GPU model and the inference engine’s configuration are held fixed and recorded; left to their defaults, OCR, embedding and approximate retrieval were themselves sources of variation. We argue that, where judgments recorded in a quality system rest on LLM-prepared preliminary assessments, byte-level reproducibility of the entire pipeline is a strong and testable engineering condition for auditing those judgments and controlling change. It is not a regulatory requirement, and it is not sufficient for validation.
A complete assessment pipeline can be reproduced end to end
We ran the pipeline on the 337 public FDA PDFs for blood glucose meters (3,150 pages, 100 of them read by OCR) and judged 776 device–item pairs over 83 devices. A reference run did this once, and we then repeated the whole process under operations that should not change the result—from fresh databases; interrupted and resumed during ingestion, including during OCR, and during judgment, with and without a restart of the inference server; with documents in reverse and in hash order; with 4 or 16 documents ingested and 1, 8 or 16 items judged concurrently; with a document added, assessed and deleted; on another machine with the same GPU model; and on a later day. Every per-stage hash matched the reference run for all 337 documents and all 776 assessments, and deleting the added document restored the database snapshot byte for byte. Determinism is not insensitivity to input: 19 of the 20 questions assessed for more than one device received different labels for different devices, and 746 of 776 comments are distinct. On infusion pumps—85 PDFs and 12 assessment items chosen by a rule fixed before the documents were fetched, 516 pairs—four runs in different orders, concurrencies and days agreed on every per-stage hash.
Discussion
We propose that, where LLMs prepare assessments for regulated work such as that of the medical device industry, byte-level reproducibility of the whole pipeline be a testable engineering condition: the same documents, assessment items and configuration should yield the same assessment, at every stage. The fourteen commercial deployments we measured did not provide this at the deterministic sampling settings they accepted, with reasoning at its default or at its minimum, and where the label held, the evidence behind it often changed; the open-weight models we served were reproducible or not depending on how they were served; and a pipeline built to be deterministic at every stage reproduced every intermediate result and output for two device types, on one hardware class and engine configuration. We measured the commercial deployments from the outside, as any customer would, so we do not attribute their variation to causes, and our results do not rank the models. They do show that a deployment’s reproducibility cannot be established once and then assumed: it differed between models, for one model between routes, and for another between days, so that a test confined to one session would have missed it.
What determinism does not give is correctness: a system that reproduces a wrong assessment exactly has reproduced a wrong assessment, and we have not measured how often the assessments are right. Two alternatives are weaker. Storing every output with an audit trail preserves what was produced, and is what remains once a hardware class is retired, but cannot show that the validated system still produces it, nor which later changes would alter it. Statistical consistency suffices for population-level questions, and disagreement between runs is itself used as a signal of uncertainty; a recorded judgment, however, is an individual decision made on an individual assessment, and a deterministic pipeline can still estimate uncertainty by varying the configuration deliberately, as the H100 and chunk-budget runs did. For manufacturers choosing such tools today, the results suggest testing reproducibility directly, across days and on the quoted evidence, and recording the route, the engine settings and the hardware class, because the same model name covered different behaviour; without determinism, a vendor’s silent change can be detected only statistically, and served behaviour has changed under unchanged model identifiers. For auditors, whether the preliminary assessment behind a recorded judgment can be produced again is a concrete question, to be scaled to risk as Computer Software Assurance recommends.
Determinism holds within a hardware class, so records outlive the hardware that produced them only as stored outputs. Technical documentation must be kept for at least 10 years, and 15 for implantable devices, longer than a GPU model may be available and far longer than a hosted model version, which providers retire on months’ notice. Container images, model weights and drivers should therefore be archived with the records, and reference outputs re-established on new hardware by listing the changed assessments. This favours models an organisation serves itself, which today means open-weight models whose architecture the serving software supports deterministically; batch invariance cost 18% in wall time in our test, and newer engines narrow the gap in some regimes.
Regulations and regulators’ guidance do not require byte-level reproducibility, but they repeatedly ask that a recorded result can be checked, and industry guidance frames validation by risk. Part 11 requires audit trails and reliable, consistent performance of electronic-record systems, applies to records that predicate rules require, here the expert’s recorded judgment, and has been enforced with discretion since 2003; the EU device regulations require the technical documentation to locate the evidence of conformity; the FDA–EMA principles for AI in drug development ask for “detailed, traceable, and verifiable” documentation; EU GMP Annex 11 requires life-cycle validation; and the EU AI Act requires high-risk systems, from 2028 for devices under notified-body assessment, to log events and to perform “consistently in those respects throughout their lifecycle”, which we cite by analogy. Only a consultation draft of EU GMP Annex 22 names identical outputs, limiting its scope to “models with a deterministic output” and excluding LLMs from critical use, and its drafting group has since discussed admitting generative models under a risk-based strategy. FDA’s 2019 discussion paper defines a “locked” algorithm as one that gives the same result for the same input, and FDA’s and PMDA’s 2026 papers on generative-AI devices list reproducibility across repeated runs among the properties to evaluate.
Previous work has made individual stages deterministic or measured variation, but not tested a complete assessment pipeline. Batch-invariant and tree-based kernels, verified replay and fixed execution shapes make inference independent of batching; ReproRAG finds embeddings and FAISS retrieval reproducible run to run under fixed seeds but displaced by insertions, and deterministic-first retrieval, retrieval-aware ingestion and a finance-oriented harness address other stages without extraction or OCR. Variation of hosted LLMs at temperature 0 has been measured in research settings, the same model has been found to differ between routes, and providers describe seeds as “best effort” and temperature 0 as not “fully deterministic”. LLMs have been validated for extraction from FDA device documents without repeated runs and proposed for source-linked safety analysis. To our knowledge, no prior work tests byte-level reproducibility of a complete assessment pipeline from text extraction to quoted evidence, relates it to medical-device quality work, or measures, field by field on an assessment record, how commercial deployments vary across repeated requests, routes and days.
The study has limitations. It concerns reproducibility only; the assessment items are guidance sentences chosen by rule, and public 510(k) documents for two device types stand in for manufacturers’ records. The pipeline used one judgment model family on a single GPU, relies on the batch-invariant mode of one inference engine, and its six properties were sufficient under the operations tried, which is an empirical finding, not a proof; no one outside the author’s company has yet reproduced it. The commercial measurements cover two days per deployment, one client region and pay-as-you-go tiers, with eight deployments sampled at provider defaults; the prompts were whole documents, and the 70 prompts come from 49 device–item pairs resampled as independent units; the positive control, the concurrency test, the between-day count and the two addenda were added during the study (Supplementary Note 2). Usefulness is a property of assessments in the hands of experts, and this study establishes reproducibility, not usefulness: how often the assessments are correct, whether the quoted evidence is what an expert would cite, and whether review helps or biases the expert are questions we cannot answer alone, and we publish this preprint in part to find the regulatory and quality-management experts with whom to answer them. With a deterministic pipeline, what the experts evaluate is fixed, and any later difference can be attributed to a change.
Experiment 1 addenda
Reduced reasoning: on 14 and 15 October the 70 prompts were sent again to gpt-6-luna through both routes with reasoning_effort: “none”, to claude-haiku-5-5 through both routes with thinking: {type: “disabled”}, and to the four Gemini deployments with the lowest documented thinking level (LOW for gemini-3.8-flash, MINIMAL for gemini-3.6-flash); gpt-6-astra and claude-opus-5-5 reject these settings. No setting was rejected. Retrieved-passage prompts: for the 49 pairs, the chat messages that the pipeline’s reference run sent to its judgment model were rebuilt from the chunk export and the recorded retrieval results, verified against the recorded prompt hash of every item, and sent five times on each of the same two days to all fourteen deployments at the settings above; two calls of claude-opus-5-5 through the Claude API failed and were omitted.
Concurrency test
The 70 prompts were split into eight groups sent concurrently, five runs each, to one vLLM 0.29.0 server on one RTX PRO 6000 with batch-invariant inference enabled or disabled and all else equal, for Gemma 4 31B (FP8), Qwen3-32B (BF16; 57 prompts fit its context) and Qwen3.8-27B (FP8), the Qwen models with thinking disabled and the attention kernel fixed (TRITON_ATTN).
Experiment 2: operations
Each run starts from an empty database, re-reads every OCR page and re-embeds every chunk, and records a hash at every stage; judgment-only reruns reuse the reference database’s chunks and vectors. The operations were: T1, a repeat from fresh databases, also on a later day; T2, ingestion killed after 131 files and, separately, after 3 files during OCR, then resumed, judgment killed and rerun, and the inference server killed 90 seconds into judgment and restarted before the rerun; T3, sorted, reverse and hash order; T4, 1, 4 and 16 concurrent documents and 1, 8 and 16 concurrent items; T5, a document added, assessed with the retrieval scope set to the whole corpus, and deleted; T6, the same GPU model on another machine; T7, an H100 80GB (an A100 could not run the configuration), run on 4 October and again on 14 October on a second H100 machine created from a disk image of the reference machine, with the GPU memory share raised to give the same absolute memory; T8, judgment rerun with the prefill chunk budget (max-num-batched-tokens) changed from 16,600 to 4,096 (twice with 8 concurrent items, once each with 1 and 16) and to 16,384 tokens; T9, judgment rerun with prefix caching disabled. Two ablations removed batch invariance from one stage: the OCR servers started with VLLM_BATCH_INVARIANT=0 and the corpus ingested with 16 concurrent documents (stopped by a two-hour limit after 336 of 337 documents, which are the documents compared), and the corpus embedded by vLLM’s pooling runner for the same model without batch invariance, once alone and twice concurrently, with the pipeline’s embedding server run twice concurrently as the control.
Software and data
Experiment 2 ran on Ubuntu 22.04.5 with NVIDIA driver 580.178.04 (CUDA 13.0), vLLM 0.29.0 with VLLM_BATCH_INVARIANT=1 (a beta feature in this version), RedHatAI/gemma-4-31B-it-FP8-dynamic (FP8 weights and KV cache, enforce-eager, chunked prefill, xgrammar structured output), allenai/olmOCR-2-7B-1025, zai-org/GLM-OCR and Qwen/Qwen3-Embedding-8B in PyTorch with deterministic algorithms; revisions and full environment records for every run, the document lists with hashes (documents.csv, frn_documents.csv; all files were downloaded again from FDA and were identical), and the per-stage hashes are in the supplementary material. The measures, operations and conditions were fixed before the runs and every change was recorded when it was made; Supplementary Note 2 lists them all.


