Semantic repeatability and reproducibility of GPT-5 and Gemini 3 Flash on H5N1 One Health questions
Authors: Luizza Dalla Pria, Amelia l. Nelson, Renata Ivanek
Organizations: College of Professional Studies, Northeastern University, Boston, MA, USA. · Department of Population Medicine and Diagnostic Sciences, College of Veterinary Medicine, Cornell University, Ithaca, NY, USA.
Highly pathogenic avian influenza A(H5N1) has re-emerged as a One Health concern since 2024, and the public is increasingly consulting large-language-model (LLM) chatbots for health information during outbreaks. Before a chatbot's accuracy can be meaningfully assessed, its consistency must first be understood, so that any single response can be trusted as a fair representative of the model's behavior. We characterized the semantic repeatability and reproducibility of GPT-5 (OpenAI) and Gemini 3 Flash (Google) on 15 H5N1 One Health questions sourced from social media discourse by adopting and extending a centroid-based evaluation framework. Each question was submitted 30 times and reformulated using five Chain-of-Thought (CoT) variants with 30 runs each, yielding 5,400 responses. Pairwise cosine similarity was computed on MPNet embeddings, with sensitivity analyses across three additional transformers. Statistical inference combined standard nonparametric tests (paired Wilcoxon and Friedman with Holm--Bonferroni correction) with inter-embedding agreement statistics (ICC(2,k) and Cronbach's α) introduced here as a methodological addition. Both models produced high mean consistency (0.93--0.97, rescaled to {[}0, 1{]}). GPT-5 showed reproducibility significantly higher than repeatability (W = 3.0, p = 0.0003), whereas for Gemini 3 Flash the two metrics were statistically indistinguishable (W = 42.0, p = 0.33). Differential Diagnosis ranked among the top two CoT framings for consistency in both models. The tested chatbots behave as semantically stable sources on H5N1 One Health questions, and the developed consistency evaluation framework is portable to other domains.
Figures & tables
Figure 1: Figure 1. Methods pipeline.
Concept
Definition
Reference
Prompt
The text input given to a large language model (LLM) to elicit a response. In this paper, “ prompt ” and “ question ” are used interchangeably — both refer to the text sent to the LLM.
Liu et al. (2023)
Model
Throughout this paper, “model” refers to a LLM — a type of artificial intelligence system, built as a large neural network trained on broad text data, that generates text in response to a prompt. The two models evaluated in this study are OpenAI’s GPT-5 and Google’s Gemini 3 Flash.
Bommasani et al. (2021)
Semantic repeatability
How similar in meaning the LLM’s answers are when the exact same question (prompt) is asked multiple times. In this study, each question is asked 30 times; every pair of answers is compared for meaning, and those similarities are averaged. The score runs 0–1, where higher means more consistent.
Shyr et al. (2025)
Semantic reproducibility
How similar in meaning the LLM’s answers are when the same underlying question is asked in 5 different ways (reworded as Chain-of-Thought (CoT) variants). For each CoT variant, we average its 30 LLM responses, defining what we call a centroid for that variant; the 5 centroids for the same question are then combined into a single prompt-reproducibility score by averaging their pairwise meaning-similarities (step 5 in Figure 1). The score runs 0–1, where higher means more consistent across phrasings.
Shyr et al. (2025)
Centroid (per CoT variant)
The average of all 30 answer-vectors for a given CoT wording.
Shyr et al. (2025)
Chain-of-Thought (CoT) prompting
A prompting strategy that frames a question to elicit intermediate reasoning steps from the LLM before the final answer; different CoT framings of the same underlying question constitute the 5 variants used in the reproducibility analysis.
Savage et al. (2024)
Table 2
Question Number
Question
One Health Theme
1
Why have the number of reported human H5N1 cases declined over time?
public-health surveillance
2
Is culling entire poultry flocks the most effective strategy for containing H5N1 outbreaks?
agricultural policy / disease control
3
If H5N1 were to trigger the next pandemic, how long might it be expected to last?
pandemic preparedness
4
Is there a risk associated with giving freeze-dried snacks to cats during an active H5N1 outbreak?
companion-animal food safety
5
Can H5N1 be transmitted from mother to infant through breastfeeding?
maternal/vertical transmission
6
Could cats serve as sentinel species for H5N1 in local communities, and what response actions should follow a positive case?
veterinary surveillance / companion animals
Table 3
CoT variant
Reasoning-frame template
Example applied to Q5
v1 — Traditional CoT
“Think step by step to answer…"
“Think step by step to answer whether H5N1 can be transmitted from mother to infant through breastfeeding."
v2 — Differential Diagnosis CoT
"Compare possible options/explanations/possibilities to determine…"
“Compare possible transmission routes to determine whether H5N1 can be transmitted from mother to infant through breastfeeding."
v3 — Intuitive Reasoning CoT
"Consider historical cases to intuitively infer…"
"Consider historical patterns of viral transmission through breast milk to intuitively infer whether H5N1 can be transmitted from mother to infant through breastfeeding."
v4 — Analytic Reasoning CoT
"Analyze the mechanics behind cases and answer…"
"Analyze the mechanics behind viral transmission through breast milk and answer whether H5N1 can be transmitted from mother to infant through breastfeeding."
v5 — Bayesian Reasoning CoT
"To answer…, start with a prior belief about it, update it with evidence, and provide a conclusion."
"To answer whether H5N1 can be transmitted from mother to infant through breastfeeding, start with a prior belief about viral transmission in breast milk, update it with evidence, and provide a conclusion."
Table 4
Analysis
Prompts
Variants per prompt
Runs per (prompt, variant)
Responses per model
Total responses
Repeatability
15
1 base
30
450
900
Reproducibility
15
5 variants of the base
30
2,250
4,500
Combined corpus
—
—
—
2,700
5,400
Table 5
Figure 2: Figure 2. Pairwise comparison: Repeatability vs. Reproducibility. Structural asymmetry between the two pairwise-similarity calculations. Left: semantic repeatability for a single prompt is the mean of C(30,2)=435 pairwise cosine similarities among the 30 LLM responses to that prompt. Right: semantic reproducibility for the same prompt is the mean of C(5,2)=10 pairwise cosine similarities among the 5 CoT-variant centroids, where each centroid is itself the mean of 30 response embeddings (small faint dots in the background).
Model
Mean
95% CI
Min (question)
Max (question)
GPT-5
0.932
[0.918, 0.944]
0.872 (Q8)
0.967 (Q5)
Gemini 3 Flash
0.968
[0.964, 0.971]
0.955 (Q1)
0.981 (Q3)
Table 7
Figure 3: Figure 3. Per-prompt mean repeatability scores for GPT-5 and Gemini 3 Flash (MPNet embeddings, stopwords removed). Each bar represents one of the 15 base questions (Q1–Q15). The y-axis is truncated to the 0.85 to 1 range to aid visual interpretation. The within-prompt distribution underlying each bar is shown in Supplementary S4 Figure.
Model
Mean
95% CI
Min (question)
Max (question)
GPT-5
0.962
[0.955, 0.967]
0.934 (Q12)
0.976 (Q15)
Gemini 3 Flash
0.966
[0.961, 0.970]
0.950 (Q12)
0.986 (Q11)
Table 9
Figure 4: Figure 4. Per-prompt mean reproducibility scores for GPT-5 and Gemini 3 Flash (MPNet embeddings, stopwords removed). The y-axis is truncated to the 0.85 to 1 range to aid visual interpretation. The within-prompt distribution among the 5 CoT-variant centroids underlying each bar is shown in Supplementary S5 Figure.
Model
Mean Repeatability
Mean Reproducibility
W*
p
GPT-5
0.932
0.962
3.0
0.0003
Gemini 3 Flash
0.968
0.966
42.0
0.33
Table 11
Figure 5: Figure 5. Side-by-side comparison of per-prompt repeatability versus reproducibility for each model (MPNet, stopwords removed). The y-axis is truncated to the 0.85 to 1 range to aid visual interpretation. The within-prompt distributions are shown side by side for both models in Supplementary S6 Figure.
CoT variant
GPT-5 mean
GPT-5 IQR
Gemini 3 Flash mean
Gemini 3 Flash IQR
v1 — Traditional CoT
0.9546
[0.9464, 0.9641]
0.9686
[0.9648, 0.9715]
v2 — Differential Diagnosis CoT
0.9642
[0.9597, 0.9757]
0.9702
[0.9665, 0.9773]
v3 — Intuitive Reasoning CoT
0.9657
[0.9599, 0.9743]
0.9609
[0.9539, 0.9699]
v4 — Analytic Reasoning CoT
0.9573
[0.9482, 0.9733]
0.9644
[0.9578, 0.9729]
v5 — Bayesian Reasoning CoT
0.9620
[0.9588, 0.9707]
0.9649
[0.9614, 0.9683]
Table 13
Figure 6: Figure 6. Mean per-variant reproducibility (v1–v5) for GPT-5 and Gemini 3 Flash. The y-axis is truncated to the 0.85 to 1 range to aid visual interpretation.
Large language model reliability studies whether outputs remain correct, calibrated, robust, and controllable across prompts, contexts, and deployment conditions.
Incorporating large language models (LLMs) in medical question answering demands more than high average accuracy: a model that returns substantively different answers each time it is queried is not a reliable medical tool. Online health communities such as Reddit have become a primary source of medical information for millions of users, yet they remain highly susceptible to misinformation; deploying LLMs as assistants in these settings amplifies the need for output consistency alongside correctness. We present a practical, open-source evaluation framework for assessing small, locally-deployable open-weight LLMs on medical question answering, treating reproducibility as a first-class metric alongside lexical and semantic accuracy. Our pipeline computes eight quality metrics, including BERTScore, ROUGE-L, and an LLM-as-judge rubric, together with two within-model reproducibility metrics derived from repeated inference (N=10 runs per question). Evaluating three models (Llama 3.1 8B, Gemma 3 12B, MedGemma 1.5 4B) on 50 MedQuAD questions (N=1,500 total responses) reveals that despite low-temperature generation (T=0.2), self-agreement across runs reaches at most 0.20, while 87-97% of all outputs per model are unique -- a safety gap that single-pass benchmarks entirely miss. The clinically fine-tuned MedGemma 1.5 4B underperforms the larger general-purpose models on both quality and reproducibility; however, because MedGemma is also the smallest model, this comparison confounds domain fine-tuning with model scale. We describe the methodology in sufficient detail for practitioners to replicate or extend the evaluation for their own model-selection workflows. All code and data pipelines are available at https://github.com/aviad-buskila/llm_medical_reproducibility.
Avi-ad Avraam Buskila
Department of Information Science and Applied Artificial Intelligence, Bar-Ilan University, Ramat-Gan, Israel
Small open-source language models are gaining attention for healthcare applications in low-resource settings where cloud infrastructure and GPU hardware may be unavailable. However, the reliability of these models under different phrasings of the same clinical question remains poorly understood. We evaluate five open-source models (Gemma 2 2B, Phi-3 Mini 3.8B, Llama 3.2 3B, Mistral 7B, and Meditron-7B, a domain-pretrained model without instruction tuning) across three clinical question answering datasets (MedQA, MedMCQA, and PubMedQA) using five prompt styles: original, formal, simplified, roleplay, and direct. Model behavior is evaluated using consistency scores, accuracy, and instruction-following failure rates. All experiments were conducted locally on consumer CPU hardware without fine-tuning. Consistency and accuracy were largely independent across models. Gemma 2 achieved the highest consistency (0.845-0.888) but the lowest accuracy (33.0-43.5%), while Llama 3.2 showed moderate consistency (0.774-0.807) alongside the highest accuracy (49.0-65.0%). Roleplay prompts consistently reduced accuracy across all models, with Phi-3 Mini dropping 21.5 percentage points on MedQA. Meditron-7B exhibited near-complete instruction-following failure on PubMedQA (99.0% UNKNOWN rate), indicating that domain pretraining alone is insufficient for structured clinical question answering. These findings show that high consistency does not imply correctness: models can be reliably wrong, a dangerous failure mode in clinical AI. Llama 3.2 demonstrated the strongest balance of accuracy and reliability for low-resource deployment. Safe clinical AI requires joint evaluation of consistency, accuracy, and instruction adherence.
This study compared repeated generation consistency of exercise prescription outputs across three large language models (LLMs), specifically GPT-4.1, Claude Sonnet 4.6, and Gemini 2.5 Flash, under temperature=0 conditions. Each model generated prescriptions for six clinical scenarios 20 times, yielding 360 total outputs analyzed across four dimensions: semantic similarity, output reproducibility, FITT classification, and safety expression. Mean semantic similarity was highest for GPT-4.1 (0.955), followed by Gemini 2.5 Flash (0.950) and Claude Sonnet 4.6 (0.903), with significant inter-model differences confirmed (H = 458.41, p < .001). Critically, these scores reflected fundamentally different generative behaviors: GPT-4.1 produced entirely unique outputs (100%) with stable semantic content, while Gemini 2.5 Flash showed pronounced output repetition (27.5% unique outputs), indicating that its high similarity score derived from text duplication rather than consistent reasoning. Identical decoding settings thus yielded fundamentally different consistency profiles, a distinction that single-output evaluations cannot capture. Safety expression reached ceiling levels across all models, confirming its limited utility as a differentiating metric. These results indicate that model selection constitutes a clinical rather than merely technical decision, and that output behavior under repeated generation conditions should be treated as a core criterion for reliable deployment of LLM-based exercise prescription systems.
Kihyuk Lee
Data Convergence Team, Office of Hospital Information, Seoul National University Bundang Hospital, Seongnam, Republic of Korea