arXiv:2610.33592cs.AIOct 2026

Manuscript Offprint

arXiv:2610.33592

Auditing evaluation artifacts and data leakage in large language model systems for rare disease diagnosis

Jian Yang, Peilin Liu, Xiaohan Li, Songda Li, Yu Cao, Yuqing Feng, Haomin Li

Jian Yang 1,∗^{1,*}, Peilin Liu 2^{2}, Xiaohan Li 2^{2}, Songda Li 2^{2}, Yu Cao 1^{1}, Yuqing Feng 1^{1}, and Haomin Li 1,2,∗^{1,2,*}

1^{1}The Children’s Hospital, Zhejiang University School of Medicine, Hangzhou, 310052, China.

2^{2}The College of Biomedical Engineering and Instrument Science, Zhejiang University, Hangzhou, 310027, China.

∗^{*}Corresponding Author: hmli@zju.edu.cn (H. L.); yangjian_bme@zju.edu.cn (J. Y.).

Augmented large language model (LLM) systems have reported high benchmark accuracies in rare disease diagnosis, yet their real-world clinical utility remains unproven. A recent meta-analysis flagged augmented LLM diagnostic evaluations as having a high risk of bias due to suspected data leakage; however, the precise impact of these vulnerabilities on model inference has yet to be fully quantified. In this study, we present a comprehensive empirical audit to quantify evaluation artifacts across prevailing AI paradigms, using a repository of over 60,000 cases from diverse public and independent clinical cohorts. By reconstructing a state-of-the-art agentic framework, we demonstrate that candidate-space contamination artificially inflates performance: enforcing strict cross-dataset isolation resulted in a marked performance decline, with the cross-dataset mean Recall@1 decreasing from 54.3% (under conventional one-vs-rest evaluation) to 40.3% (Hedges' g = 0.94). Similar spatial overfitting in supervised classifiers caused diagnostic accuracy to drop from an internal mean of 42.9% to 16.7% across external cohorts (Cohen's d = 2.01). Furthermore, we quantify how LLMs infer diagnoses by exploiting retrospective therapeutic cues in clinical narratives, and how temporal misalignment in foundational knowledge bases leads to performance fluctuations. We conclude that prevailing evaluation protocols for augmented LLM systems inadvertently reflect data leakage rather than genuine medical reasoning. To address these systematic artifacts, we propose a rigorous evaluation framework—coupling strict data-isolation protocols with standardized benchmarking safeguards—to ensure future diagnostic AI for rare diseases is evaluated on actual clinical robustness.

1 Introduction

Rare diseases (RDs) collectively affect an estimated 300 million people worldwide 1^{1}. More than 7,000 RDs have been documented, with nearly 80% having a genetic aetiology 2^{2}. Owing to the rarity and phenotypic heterogeneity of individual conditions 3^{3}, patients typically endure a protracted “diagnostic odyssey” characterized by years of redundant investigations and repeated misdiagnoses 4−6^{4-6}. In recent years, phenotype-based artificial intelligence (AI) for diagnostic decision support has emerged as a promising solution to bridge this diagnostic gap. The field has rapidly progressed from early knowledge-driven symbolic reasoning 7−10^{7-10} to deep-learning pattern recognition 11,12^{11,12}, and more recently, to generative large language models (LLMs) 13^{13}, domain-specific fine-tuned LLMs 14−16^{14-16}, and agentic systems 17−20^{17-20}. Accompanying this architectural evolution, recent studies have reported high diagnostic accuracies relying solely on phenotypic features or clinical narratives. These systems frequently report top-1 accuracies exceeding 50% 20^{20}, and sometimes nearly 70% 14^{14}, across public benchmarks and internal clinical cohorts. Despite these advancements, such benchmark performance frequently fails to translate into real-world clinical utility, raising questions about the actual generalizability of these systems 21^{21}.

A recent systematic review and meta-analysis evaluating the diagnostic accuracy of LLM-based systems for RD diagnosis highlighted substantial vulnerabilities within the current evidence base 22^{22}. While reporting seemingly high pooled diagnostic accuracies, the meta-analysis simultaneously revealed extreme performance heterogeneity across LLM-based systems. Notably, nearly all of the augmented LLM systems—incorporating retrieval, agent-based reasoning, or fine-tuning—were rated at a high risk of bias. This was primarily due to suspected data leakage, including training corpus overlap, retrieval database contamination, and the use of public benchmark cases that pre-date LLM training cutoffs. However, because these vulnerabilities were identified solely through retrospective analyses of metadata and methodological descriptions from published studies, the precise mechanistic impact of these factors on actual model inference has yet to be experimentally quantified. It remains unclear how much of the reported state-of-the-art (SOTA) performance stems from genuine medical reasoning capabilities versus the unintended exploitation of flawed evaluation protocols 23^{23}.

Motivated by this critical gap, we hypothesized that prevailing architectural paradigms in modern RD diagnosis—especially augmented LLM systems—are particularly vulnerable to specific forms of structural data leakage. To systematically audit the claims of the prior meta-analysis, we focused on four dimensions likely to introduce evaluation artifacts: First, current patient-based retrieval and retrieval-augmented generation (RAG) systems are highly susceptible to candidate-space contamination. These systems frequently retrieve reference cases that share the same publication source, familial pedigree, or cohort origin as the query, thereby matching based on data provenance rather than true phenotypic similarity 24^{24}. Second, domain-specific fine-tuned LLMs as well as supervised classifiers trained and tested within a single clinical cohort often exploit spatial overfitting—memorizing institutional diagnosis-phenotype profiles, disease prevalence, and recording preferences rather than learning generalizable phenotype-disease associations 25^{25}. Third, when evaluating zero-shot LLMs on clinical narratives, models can exploit retrospective post-hoc cue leakage—such as targeted therapeutic interventions and downstream laboratory results recorded in discharge summaries—to infer the correct diagnosis 26^{26}. Finally, temporal knowledge bias arises not only when historical cases are evaluated against contemporary knowledge snapshots without chronological synchronization (inadvertently introducing future-data leakage), but also when competing models rely on disparate temporal versions of the underlying knowledge, creating an asymmetric and unfair baseline comparison.

To empirically address these risk-of-bias concerns, we present a comprehensive reanalysis and quantitative audit designed to systematically stress-test phenotype-based RD diagnostic capabilities. Using a multi-tiered repository of over 60,000 RD cases—spanning eight public literature/registry datasets and two independent clinical cohorts—we reconstructed and evaluated the specific environments of classical knowledge-driven computational models, supervised classifiers, and contemporary LLM paradigms. Specifically, we replicated the current SOTA agentic system DeepRare 20^{20} to audit its diagnostic capability across controlled data isolation regimes while additionally validating across alternative foundation LLM backbones to confirm our findings are not model-specific. In parallel, we executed an extensive series of cross-paradigm experiments to isolate and quantify all suspected sources of evaluation artifacts across diverse diagnostic architectures. By systematically applying controlled ablation setups—enforcing cross-institutional isolation, PMID-level deduplication, clinical narrative redaction, and chronological synchronization—we quantitatively dissect how AI models inadvertently exploit structural biases to artificially inflate diagnostic metrics.

Similar to historical methodological reforms in clinical medicine—such as blinding, randomization, and protocol pre-registration 27^{27}—we argue that diagnostic AI for RDs requires a similar structural shift in its benchmarking standards, aligning more closely with guidelines like CONSORT-AI 28^{28} and STARD-AI 29^{29}. Synthesizing our systematic audit, we propose a rigorous evaluation framework. By mitigating data leakage while incorporating standardized benchmarking safeguards, this framework seeks to ensure that future diagnostic systems for RDs are judged not by their susceptibility to evaluation biases, but by their genuine clinical safety, robustness, and real-world reproducibility.

References (51)