Learning to Fuse LLMs with Ontology Rankers for Rare-Disease Diagnosis

arXiv cs.CL Papers

Summary

This paper presents a fusion model that integrates large language models (LLMs) with ontology rankers to improve rare-disease diagnosis, achieving higher recall while preserving structured evidence for clinical decision support.

arXiv:2609.02473v1 Announce Type: new Abstract: Ontology rankers remain useful for rare-disease diagnosis because each candidate can be traced to matched patient phenotypes. Large language models (LLMs) can generate differential diagnoses from the same patient description, but their predictions lack an equally clear evidence trail. Rather than asking which system should replace the other, we ask whether an LLM can improve the ranker without giving up its evidence. Our behavior-based fusion model examines the two ranked lists, their agreement, and the ontology support behind each candidate, and learns how much to rely on each system for the individual case. Before comparison, we remove a documented test-set leakage pathway caused by benchmark cases and ontology annotations being derived from the same publications. Across eight open LLMs, fusion improves Phenomizer Recall@1 by 7.86 percentage points on Phenopacket Store and 20.18 points on RAMEDIS. When paired with DeepSeek-V4-Flash through an API, a fusion model trained only on the other LLMs improves Recall@1 from 0.1657 to 0.2176, a 5.19-point gain, without retraining. For 90.8% of correct fused diagnoses, the disease retains candidate-level ontology evidence that can be inspected. These results show that LLMs can strengthen an established diagnostic tool without discarding the structured evidence that makes it useful.
Original Article
View Cached Full Text

Cached at: 09/03/26, 05:54 AM

# Learning to Fuse LLMs with Ontology Rankers for Rare-Disease Diagnosis
Source: [https://arxiv.org/html/2609.02473](https://arxiv.org/html/2609.02473)
Zhaoyang JiangAffiliation:School of Health & Wellbeing, University of Glasgow, Glasgow, UKEmail:[3167645J@student\.gla\.ac\.uk](mailto:[email protected])Xuanqi PengAffiliation:School of Health & Wellbeing, University of Glasgow, Glasgow, UKEmail:[Honghan\.Wu@glasgow\.ac\.uk](mailto:[email protected])Yunsoo KimAffiliation:School of Health & Wellbeing, University of Glasgow, Glasgow, UKZhizhong FuAffiliation:School of Life Science and TechnologyUniversity of Electronic Science and Technology of China, Chengdu, ChinaJiacong MiAffiliation:Department of Respiratory and Critical Care Medicine, Shanghai Sixth People’s HospitalShanghai Jiao Tong University School of Medicine, Shanghai, ChinaZicheng LiHonghan Wu††thanks:Corresponding author\.Affiliation:School of Health & Wellbeing, University of Glasgow, Glasgow, UK

###### Abstract

Ontology rankers remain useful for rare\-disease diagnosis because each candidate can be traced to matched patient phenotypes\. Large language models \(LLMs\) can generate differential diagnoses from the same patient description, but their predictions lack an equally clear evidence trail\. Rather than asking which system should replace the other, we ask whether an LLM can improve the ranker without giving up its evidence\. Our behavior\-based fusion model examines the two ranked lists, their agreement, and the ontology support behind each candidate, and learns how much to rely on each system for the individual case\. Before comparison, we remove a documented test\-set leakage pathway caused by benchmark cases and ontology annotations being derived from the same publications\. Across eight open LLMs, fusion improves Phenomizer Recall@1 by 7\.86 percentage points on Phenopacket Store and 20\.18 points on RAMEDIS\. When paired with DeepSeek\-V4\-Flash through an API, a fusion model trained only on the other LLMs improves Recall@1 from 0\.1657 to 0\.2176, a 5\.19\-point gain, without retraining\. For 90\.8% of correct fused diagnoses, the disease retains candidate\-level ontology evidence that can be inspected\. These results show that LLMs can strengthen an established diagnostic tool without discarding the structured evidence that makes it useful\.

## 1Introduction

Rare\-disease diagnosis often begins with a list of findings rather than a familiar disease name\. Phenotype tools such as Exomiser[Robinson et al\. \(2014\)](https://arxiv.org/html/2609.02473#bib.bib9), LIRICAL[Robinson et al\. \(2020\)](https://arxiv.org/html/2609.02473#bib.bib3), and Phenomizer[Köhler et al\. \(2009\)](https://arxiv.org/html/2609.02473#bib.bib12)compare those findings with disease profiles in the Human Phenotype Ontology \(HPO\)[Köhler et al\. \(2021\)](https://arxiv.org/html/2609.02473#bib.bib10)and return a ranked differential diagnosis\. Their value is not limited to the ranking\. A clinician can inspect the HPO terms supporting each candidate and, for Phenomizer, the statistical strength of the match\. This evidence remains important in clinical decision support, where clinicians need to examine the basis for a recommendation[Amann et al\. \(2020\)](https://arxiv.org/html/2609.02473#bib.bib32)\.

The arrival of LLMs has made it possible to produce a differential diagnosis directly from clinical text or HPO terms, drawing on knowledge beyond a fixed curated resource\. Yet the strongest structured comparisons have favored classical tools\. A large systematic benchmark reports Exomiser ahead of every one of seven LLMs across accuracy metrics and clinical subgroups[Reese et al\. \(2026\)](https://arxiv.org/html/2609.02473#bib.bib1), and prompt\-only LLMs also trail established phenotype pipelines in related rare\-disease gene prioritization[Lee et al\. \(2026\)](https://arxiv.org/html/2609.02473#bib.bib7)\. LLM output introduces a second concern\. Medical models can elaborate fabricated clinical details[Omar et al\. \(2025\)](https://arxiv.org/html/2609.02473#bib.bib30), the medical hallucination literature identifies factual reliability as a persistent problem[Zhu et al\. \(2025\)](https://arxiv.org/html/2609.02473#bib.bib31), and verbal confidence systematically overstates diagnostic reliability[Savage et al\. \(2025\)](https://arxiv.org/html/2609.02473#bib.bib29)\. A bare LLM ranking also lacks the independently computed HPO matches and statistical score supplied by an ontology tool\. On the surface, classical systems seem to offer both greater accuracy and a more auditable decision path\.

These findings establish the continuing strength of classical pipelines, but they do not determine how much a ranker backed by the HPO annotation database \(HPOA\) benefits from the construction of a particular benchmark\. Phenopackets are structured patient records, many curated from published case reports\. HPOA is curated from the same literature\. The same paper can therefore supply both a test patient’s findings and the phenotype evidence attached to that patient’s confirmed disease in the knowledge base\. We call this*publication\-source overlap*\.

Because both resources record publication provenance, we remove any phenotype relationship whose only supporting source is the test case’s paper before rerunning the unchanged ontology ranker\. After this correction, the ranker and LLM show complementary strengths rather than a simple winner\.

This motivates a different role for the LLM\. It need not replace the ontology tool, because the two systems fail for different reasons and can supply what the other lacks\. Recent work already shows the value of this combination\. LA\-MARRVEL improves a phenotype\-driven gene ranker with language\-aware reranking[Lee et al\. \(2026\)](https://arxiv.org/html/2609.02473#bib.bib7), while DeepRare integrates LLM reasoning with specialized tools and traceable external evidence[Zhao et al\. \(2026\)](https://arxiv.org/html/2609.02473#bib.bib6)\. Most directly,[Elmofty and Leser \(2026\)](https://arxiv.org/html/2609.02473#bib.bib28)find complementary correct diagnoses from ontology retrieval and unrestricted LLM generation on every rare\-disease benchmark they test\. Their experiments also expose the unresolved step\. They call cases whose correct diagnosis falls outside the retriever’s candidate set non\-retrievable, a hard ceiling for any method using that pool\. They explicitly leave a learned router using case characteristics as the next step\. Complementary answers are available, but identifying which one to use on a new case remains unresolved\.

We learn a case\-level decision rule\. The LLM diagnoses independently rather than reordering the ontology list, and a small behavior\-based gate assigns case\-specific weights before combining the union of both outputs\. It observes only their behavior: how clearly the leading diagnoses stand out, whether the lists agree, how well patient findings match the candidates, and how much ontology knowledge is available for them\. The gate receives neither model identity nor a model\-specific representation\. During training, we exclude the target LLM together with every other model from its backbone family\. It can therefore be applied to a newly introduced LLM without first collecting labels for that model, allowing the pipeline to adopt a stronger diagnostic model while retaining access to candidate\-level ontology evidence\.

## 2Related Work

Ontology\-based rare\-disease diagnosis represents patient findings with the Human Phenotype Ontology \(HPO\)[Köhler et al\. \(2021\)](https://arxiv.org/html/2609.02473#bib.bib10)\. Phenomizer introduced semantic\-similarity disease ranking with an empirical significance estimate[Köhler et al\. \(2009\)](https://arxiv.org/html/2609.02473#bib.bib12); Exomiser combined phenotype matching with variant prioritization[Robinson et al\. \(2014\)](https://arxiv.org/html/2609.02473#bib.bib9); and LIRICAL expressed phenotype evidence through likelihood ratios[Robinson et al\. \(2020\)](https://arxiv.org/html/2609.02473#bib.bib3)\. Together, these systems established a diagnostic pipeline grounded in curated disease profiles and inspectable HPO matches\. Their continued strength in a recent comparison with LLMs shows that they remain active diagnostic systems rather than merely historical baselines[Reese et al\. \(2026\)](https://arxiv.org/html/2609.02473#bib.bib1)\.

LLM research first tested whether pretrained knowledge could recover diseases or genes directly from phenotype descriptions, with RareBench and RareArena extending evaluation across diseases and model families[Chen et al\. \(2024\)](https://arxiv.org/html/2609.02473#bib.bib4);[Chen et al\. \(2026\)](https://arxiv.org/html/2609.02473#bib.bib5)\. Later systems increasingly combined language models with structured resources\. LA\-MARRVEL refines candidates from a phenotype\-based gene ranker[Lee et al\. \(2026\)](https://arxiv.org/html/2609.02473#bib.bib7), whereas DeepRare coordinates LLM reasoning with specialist tools and external evidence[Zhao et al\. \(2026\)](https://arxiv.org/html/2609.02473#bib.bib6)\.[Elmofty and Leser \(2026\)](https://arxiv.org/html/2609.02473#bib.bib28)directly compare ontology retrieval with unrestricted LLM diagnosis and find that the two solve complementary cases\. The literature has consequently moved from replacement toward hybrid diagnosis through candidate reranking, tool\-using agents, and parallel prediction\.

Hybrid diagnosis also draws on rank aggregation and model selection\. Information retrieval developed score\-, rank\-, and probability\-based fusion, including CombMNZ, Borda\-fuse, Bayes\-fuse, ProbFuse, reciprocal\-rank fusion, and Rank\-Biased Centroids[Fox and Shaw \(1994\)](https://arxiv.org/html/2609.02473#bib.bib17);[Aslam and Montague \(2001\)](https://arxiv.org/html/2609.02473#bib.bib14);[Lillis et al\. \(2006\)](https://arxiv.org/html/2609.02473#bib.bib15);[Cormack et al\. \(2009\)](https://arxiv.org/html/2609.02473#bib.bib13);[Bailey et al\. \(2017\)](https://arxiv.org/html/2609.02473#bib.bib23); later work studied learned score combinations for hybrid retrieval[Bruch et al\. \(2023\)](https://arxiv.org/html/2609.02473#bib.bib24)\. A parallel line learns when to accept one system or defer to another, from confidence\-based cascades and clinical deferral to preference\-supervised and label\-free LLM routing[Jitkrittum et al\. \(2023\)](https://arxiv.org/html/2609.02473#bib.bib26);[Kondadadi and Ortega \(2026\)](https://arxiv.org/html/2609.02473#bib.bib18);[Ong et al\. \(2025\)](https://arxiv.org/html/2609.02473#bib.bib27);[Guha et al\. \(2024\)](https://arxiv.org/html/2609.02473#bib.bib25)\. These studies replace a single rule for all inputs with input\-dependent selection\.

Benchmark research has meanwhile expanded its view of contamination\. Work on LLM evaluation primarily examines whether test examples appeared in pretraining data[Balloccu et al\. \(2024\)](https://arxiv.org/html/2609.02473#bib.bib19); prospective clinical benchmarks reduce that risk with newly collected cases[Wang et al\. \(2026a\)](https://arxiv.org/html/2609.02473#bib.bib20)\. For systems that retrieve external information, leakage can instead occur at inference time when search exposes benchmark answers[Wang et al\. \(2026b\)](https://arxiv.org/html/2609.02473#bib.bib8)\. Open\-domain question answering likewise treats the retrievable evidence collection as part of the evaluated task[Kwiatkowski et al\. \(2019\)](https://arxiv.org/html/2609.02473#bib.bib22);[Lee et al\. \(2019\)](https://arxiv.org/html/2609.02473#bib.bib21)\. Collectively, this literature shows that benchmark validity depends not only on model training data, but also on what information the evaluation pipeline makes available during inference\.

## 3Correcting Publication\-Source Overlap

Consider a paper that reports one or more patients with diseaseDD\. It may be curated both as a test case whose answer isDDand as knowledge\-base entries associatingDDwith findings described in the paper\. A phenotype ranker then compares a test patient’s findings with a disease profile supported by the same document\. HPOA records the publication supporting each relationship, making this reuse of the source document directly observable\. We say that a case has*publication\-source overlap*when an annotation supporting its gold disease cites the case’s source publication, and call an annotation*source\-exclusive*when that publication is its only recorded support\.

For a case with source publicationpp, our leave\-one\-publication\-out \(LOPO\) evaluation removes each entryeethat links a disease to a phenotype whenrefs⁡\(e\)=\{p\}\\mathrm\{refs\}\(e\)=\\\{p\\\}\. Entries corroborated by any other publication remain, as do entries without recorded provenance\. We then rebuild each disease profile by adding the HPO ancestors of its remaining annotations and rerun the unchanged ranker over all candidate diseases\. Information content is held fixed between the original and LOPO conditions, so the comparison changes only the case\-specific evidence derived exclusively frompp\. Phenopacket Store records a source publication for each case, and HPOA records sources for individual annotations, enabling this publication\-level join\.

## 4Ontology and LLM Fusion

Figure[1](https://arxiv.org/html/2609.02473#S4.F1)summarizes the model\. The ontology ranker and the LLM first construct separate disease rankings from the available phenotype information\. A shared scorer then evaluates how each ranking behaves on the current case and assigns case\-specific weights before their candidates are combined\.

![Refer to caption](https://arxiv.org/html/2609.02473v1/fusion_overview.png)Figure 1:Fusion proceeds in three stages\. \(a\) The ontology ranker and the LLM independently construct disease rankings from the patient profile\. \(b\) A shared scorer maps their case\-level representations to weights\. \(c\) Weighted reciprocal ranks combine the candidate union, while candidates covered by the ranker retain their ontology evidence\.### 4\.1Independent Rankings and a Shared Representation

The ranker compares the patient’s observed HPO findings with curated disease profiles\. We retain its first 100 diseases, including their scores, asCTC\_\{T\}\. The LLM reads the observed and explicitly excluded findings together with the available demographic context, and produces at most 10 free\-text diagnoses, whose names we map to Online Mendelian Inheritance in Man \(OMIM\) identifiers with a fixed lexicon to obtainCLC\_\{L\}\. The fused candidate set isCT∪CLC\_\{T\}\\cup C\_\{L\}\. Thus an LLM diagnosis outside the stored ontology prefix can enter the final ranking; a disease outside both lists cannot\.

The resulting lists cannot be combined through their native outputs: the ontology ranker assigns a score to each candidate, whereas the LLM supplies an ordering without a comparable confidence scale\. We therefore retain only the rank information when the two lists are combined\. LetTTandLLdenote the ontology ranker and the LLM, and letCeC\_\{e\}be the candidates returned by systemee\. Fore∈\{T,L\}e\\in\\\{T,L\\\}, letranke⁡\(d\)\\operatorname\{rank\}\_\{e\}\(d\)denote the one\-based position of diseaseddinCeC\_\{e\}\. We definere​\(d\)r\_\{e\}\(d\), the rank score assigned to diseaseddby systemee, as

re​\(d\)=\{1/\(κ\+ranke⁡\(d\)\),d∈Ce,0,d∉Ce\.r\_\{e\}\(d\)=\\begin\{cases\}1/\(\\kappa\+\\operatorname\{rank\}\_\{e\}\(d\)\),&d\\in C\_\{e\},\\\\ 0,&d\\notin C\_\{e\}\.\\end\{cases\}\(1\)The shared nonnegative constantκ\\kappacontrols how sharply the score falls down the list:κ=0\\kappa=0gives ordinary reciprocal rank, and larger values flatten the decay\. We useκ=0\\kappa=0on Phenopacket Store andκ=60\\kappa=60on RAMEDIS\. This transformation places both lists on the same scale without treating either system’s native output as a calibrated probability\.

To estimate how reliable systemeeis for the current case, we encode its output in a 39\-dimensional vectorϕe\\phi\_\{e\}\. The vector contains four groups of signals, each answering a different question\.*Patient context*\(14 features\) describes how much diagnostic information the case provides through the number, rarity, and specificity of its observed and excluded HPO findings, together with the availability of age, onset, and sex\.*List shape*\(4 features\) captures how decisive the system’s differential is through its length and how sharply its leading candidates stand out from the rest\. Because the LLM supplies no native confidence scores, its candidate at rankrrreceives the score1/r1/rfor these features\.*Ontology support*\(14 features\) measures how well the leading candidates fit the patient through phenotype similarity, likelihood\-ratio evidence, and the amount of curated phenotype knowledge available for those diseases\. Finally, the*cross\-list relationship*\(7 features\) records whether the two systems support the same diagnoses, using overlap among their leading candidates and the position that each system assigns to the other’s candidates\.

The 14 patient\-context features and the four top\-kkagreement measures \(k=1,3,5,10k=1,3,5,10\) have the same values inϕT\\phi\_\{T\}andϕL\\phi\_\{L\}; the remaining 21 describe the system being scored or how the other system ranks its candidates\. For the leading diseases in either list, we compute the same HPO\-based similarity, likelihood\-ratio, and annotation\-coverage features\. A disease in the LLM’s top 10 is therefore evaluated against the patient’s findings and its curated disease profile even when it falls outside the ontology ranker’s retained top 100\. On Phenopacket Store, these calculations use the LOPO\-corrected profiles\. Model identity, architecture, and parameter count are never features\. Appendix[A\.4](https://arxiv.org/html/2609.02473#A1.SS4)provides the complete feature definitions\.

### 4\.2Learning to Combine the Rankings

We apply the same scoring networkgθg\_\{\\theta\}to the ontology vectorϕT\\phi\_\{T\}and the LLM vectorϕL\\phi\_\{L\}\. The network has two hidden layers, with 48 and 24 units, and produces one scalar for each component:

ae=gθ​\(ϕe\),e∈\{T,L\}\.a\_\{e\}=g\_\{\\theta\}\(\\phi\_\{e\}\),\\qquad e\\in\\\{T,L\\\}\.\(2\)Only the difference betweenaTa\_\{T\}andaLa\_\{L\}affects the fusion\. We convert it into two weights:

wT\\displaystyle w\_\{T\}=σ⁡\(aT−aL\),\\displaystyle=\\sigma\(a\_\{T\}\-a\_\{L\}\),wL\\displaystyle w\_\{L\}=1−wT,\\displaystyle=1\-w\_\{T\},\(3\)whereσ\\sigmais the logistic sigmoid\. The higher\-scoring component receives more influence; equal scores give both rankings weight1/21/2\. The weights are recomputed for every patient\.

For every diseaseddinCT∪CLC\_\{T\}\\cup C\_\{L\}, we compute

s⁡\(d\)=wT​rT​\(d\)\+wL​rL​\(d\),s\(d\)=w\_\{T\}r\_\{T\}\(d\)\+w\_\{L\}r\_\{L\}\(d\),\(4\)and sort the candidates bys⁡\(d\)s\(d\)\. A component contributes zero when the disease is absent from its list\. We traingθg\_\{\\theta\}with listwise cross\-entropy over the candidate union, using the gold diagnosis to supervise the fused ranking directly; no label specifies which component to trust\.

Sharinggθg\_\{\\theta\}imposes an exchangeable rule\. Swapping\(ϕT,rT\)\(\\phi\_\{T\},r\_\{T\}\)with\(ϕL,rL\)\(\\phi\_\{L\},r\_\{L\}\)exchangeswTw\_\{T\}andwLw\_\{L\}and leavess⁡\(d\)s\(d\)unchanged for every disease\. The final combination uses ranks, while features derived from native scores are normalized within each list; positive affine rescaling of a component’s scores therefore leaves the fused ranking unchanged\.

### 4\.3Training

For the Phenopacket Store transfer experiment, when evaluating a target LLML⋆L^\{\\star\}, we exclude its rankings and those of every model built on the same backbone\. The remaining models provide the training rankings\.

Each training example pairs one case with the ranking produced by one training LLM\. It contains the case’s fixed LOPO ontology ranking, that LLM’s ranking, and the gold diagnosis\. A case therefore contributes one example for each available training LLM\. Because the fusion model can only reorder diseases inCT∪CLC\_\{T\}\\cup C\_\{L\}, we use an example for training only when this union contains the gold diagnosis\. The same case may appear in several examples with an unchanged patient record and ontology ranking but a different LLM ranking; no case crosses the publication\-disjoint data splits\.

Within each training LLM, we sample eligible examples without replacement and allocate the fixed totals of 7,024 training and 1,094 validation rows as evenly as possible across the available models\. This holds the labelled budget constant across target families\. The target family is removed before sampling, feature standardization, and early stopping; model identity is never a feature\. At test time, each case is paired once withL⋆L^\{\\star\}and passes through the unchanged map without updatingθ\\thetaor using target\-model labels\. A gold disease outside the candidate union is counted as an error\. The experiment therefore tests whether ranking behavior transfers beyond the model lineage from which it was learned\.

## 5Experimental Setup

Our primary corpus is Phenopacket Store 0\.1\.27[Danis et al\. \(2025\)](https://arxiv.org/html/2609.02473#bib.bib2), containing 10,377 cases from 1,733 source publications and 780 gold diseases\. Cases sharing a publication are kept in the same split, yielding 7,029/1,102/2,246 cases over 1,187/181/365 publications\. Ranking experiments require at least one observed HPO term and a gold disease in the fixed candidate space, leaving 7,024/1,094/2,227 eligible cases in the three splits\. No system receives information outside a closed phenotype\-only view comprising canonical labels for observed and explicitly excluded HPO terms, age, onset, sex, and a hashed case identifier\. Each component uses the fields it supports: Phenomizer receives observed HPO terms, whereas the LLM also receives explicit exclusions and available demographics\. Disease labels, genes, variants, source identifiers, titles, and archive paths are excluded and checked by a planted\-answer negative control\. We additionally evaluate the fusion framework on 624 RAMEDIS cases released with RareBench[Chen et al\. \(2024\)](https://arxiv.org/html/2609.02473#bib.bib4)\. RAMEDIS covers 74 inborn errors of metabolism and provides observed HPO findings but not excluded findings, age, onset, sex, or source\-publication identifiers\. It therefore uses the ordinary HPOA ranking and a five\-fold evaluation in which identical phenotype profiles remain in the same fold\.

The primary ontology system is Phenomizer[Köhler et al\. \(2009\)](https://arxiv.org/html/2609.02473#bib.bib12), run through the Jackson Laboratory reference implementation at commit 1dda137 and the publishedphenol1\.3\.3 jars\. It scores mean best\-match information content and ranks by the empiricalpp\-value produced by its own null model\. Its hard\-coded query\-size cap and tie handling affect absolute Recall@1, so our provenance estimand is the paired change under the same executable; Appendix[A\.3](https://arxiv.org/html/2609.02473#A1.SS3)describes the implementation and its sensitivity analyses\. We also evaluate the bare semantic\-similarity equation, three additional editable ontology rankers, and stock LIRICAL 2\.4\.1 under both ordinary and exact\-LOPO data profiles\. Exomiser motivates the comparison but is not a like\-for\-like component: its benchmarked clinical mode combines phenotype and variant evidence, while its phenotype\-only mode natively ranks genes rather than the diseases evaluated here[Robinson et al\. \(2014\)](https://arxiv.org/html/2609.02473#bib.bib9)\. The LLM pool contains Qwen2\.5\-7B\-Instruct, Llama3\-OpenBioLLM\-8B, MedGemma\-27B\-text\-it, HuatuoGPT\-3\-8B, Baichuan\-M2\-32B, MedGemma\-4B, Med42\-8B, and OpenBioLLM\-70B\. Each receives the same bounded prompt and returns at most 10 diagnoses; thinking is disabled where supported\. For each target LLM, the fusion gate is fitted on 7,024 rows after excluding its complete backbone family\. We group OpenBioLLM\-8B, OpenBioLLM\-70B, and Med42\-8B as Llama\-3; both MedGemma models as Gemma\-3; and, conservatively, Qwen2\.5 and the Qwen3\-based HuatuoGPT as one Qwen lineage\. Baichuan is a singleton family\. Every arm follows the fixed\-budget sampling protocol above, and all gate results average 5 random seeds\. On RAMEDIS, the same 39\-feature shared scorer is fitted within each training fold, selected on a separate validation fold, and evaluated only on the held\-out fold; every reported patient prediction is out of fold\. Appendix[A\.5](https://arxiv.org/html/2609.02473#A1.SS5.SSS0.Px3)gives the exact split and regularization settings\.

Fusion baselines include the two component systems, reciprocal\-rank fusion \(RRF\)[Cormack et al\. \(2009\)](https://arxiv.org/html/2609.02473#bib.bib13), Borda\-fuse and Bayes\-fuse[Aslam and Montague \(2001\)](https://arxiv.org/html/2609.02473#bib.bib14), ProbFuse[Lillis et al\. \(2006\)](https://arxiv.org/html/2609.02473#bib.bib15), and CombMNZ[Fox and Shaw \(1994\)](https://arxiv.org/html/2609.02473#bib.bib17)\. We also fit a fixed weight using labels from the target LLM, a deliberate advantage over transfer without target\-model labels\. Three learned controls test whether supervision alone explains the result\. Logistic and MLP routers select one component ranking for each case, while an asymmetric MLP predicts a continuous fusion weight from the two concatenated component descriptions\. The MLP controls have 3,073 parameters, closely matching the shared scorer’s 3,121, and receive exactly the same observable features\. All three are trained with the same family exclusions and labelled budgets as our method\. We report Recall@kkand MRR, with Recall@1 as the primary diagnostic endpoint\. Learned\-system point estimates average five seeds, whose standard deviations are reported separately\. Difference intervals use 2,000 paired percentile\-bootstrap resamples, clustered by source publication on Phenopacket Store and by gold disease on the external corpus\. Each resample averages the same five frozen predictions, so these intervals quantify cohort sampling rather than optimization variation\. Full system versions, prompts, name normalization, tie policies, and compute are given in the appendix\.

## 6Results

We first measure how publication\-source overlap changes ontology ranking\. We then evaluate fusion under the corrected protocol and examine its transfer, architecture, candidate coverage, and candidate\-level ontology evidence\.

### 6\.1Publication\-Source Overlap

Publication\-source overlap is common enough to affect the benchmark materially\. Among the 10,348 cases whose gold disease is represented in HPOA, 74\.6% have at least one gold\-disease annotation citing the publication from which the case was constructed\. On average, 33\.6% of the gold profile is supported only by that publication; for 19\.6% of cases, this is true of the entire profile\.

Table 1:Recall@1 before and after publication\-level LOPO on the 2,227 Phenopacket Store test cases\.Across all evaluable cases, Phenomizer Recall@1 falls from 0\.4481 to 0\.1217 \(Table[1](https://arxiv.org/html/2609.02473#S6.T1)\), a paired decrease of 32\.64 points \[26\.06, 40\.15\]\. The result is not specific to Phenomizer’s statistical layer: applying LOPO to the underlying semantic\-similarity score reduces Recall@1 from 0\.6484 to 0\.2591, and every tie policy preserves the direction and order of magnitude\. Ties have their largest effect on the bare score, where source\-exclusive annotations can place several candidates at the score ceiling\. The empiricalpp\-value reduces this ambiguity, but does not remove the effect of overlap\. Full implementation and tie\-policy checks are reported in Appendix[A\.3](https://arxiv.org/html/2609.02473#A1.SS3)\.

The same intervention produces nearly the same change in an independently implemented clinical tool\. With the LIRICAL executable and all settings held fixed, substituting the filtered HPOA lowers Recall@1 from 0\.4868 to 0\.1724, a paired decrease of 31\.43 points \[24\.82, 38\.72\]\. All 739 cases for which the filter removes no relation retain byte\-identical rankings\. The effect is therefore neither an artifact of our semantic\-similarity implementation nor a between\-group comparison\.

HPOA provenance stops at the publication and cannot assign a relation to one patient within a multi\-case paper\. Of the 1,733 source publications, 666 contribute exactly one phenopacket to the release and 1,067 contribute more than one\. Restricting the test analysis to the 135 cases from the former group, Phenomizer Recall@1 falls from 0\.5556 to 0\.3481, a 20\.74\-point decrease \[14\.07, 28\.15\]\. Only one of these cases loses its entire gold profile; among the remaining 134, the decrease remains 20\.15 points \[13\.43, 27\.61\]\. This restriction removes ambiguity between benchmark patients represented from the same paper, while the claim remains publication\-level because a paper may contain patients not represented in the store\.

The single\-case analysis removes ambiguity about which benchmark patient supplied the annotations, but a second explanation remains: perhaps any comparable deletion from the correct disease would cause the same loss\. We therefore construct a within\-disease control\. For each source\-exclusive annotation, we remove instead an independently supported annotation matched for information content, ontology depth, HPO branch, and contribution to the disease profile\. Appendix[A\.3](https://arxiv.org/html/2609.02473#A1.SS3.SSS0.Px6)describes the matching procedure\.

Table 2:Matched\-deletion and gold\-profile survival analyses\. Decreases are paired Recall@1 differences in percentage points; brackets give publication\-clustered 95% confidence intervals\.Table[2](https://arxiv.org/html/2609.02473#S6.T2)reports this matched control together with a complementary profile\-survival analysis\. The upper panel tests generic deletion burden\. On the same 597 cases, removing case\-source annotations lowers Recall@1 from 0\.4238 to 0\.1943, a decrease of 22\.95 points \[15\.10, 32\.63\]\. Removing equally many matched annotations produces a decrease of \-0\.67 points \[\-2\.39, 0\.79\]\. This contrast shows that annotation count, information content, depth, branch, and profile contribution do not explain the source\-deletion effect\. It deliberately does not match agreement with the patient query: that agreement is the path by which a paper can supply both the test findings and the relations that retrieve them\. Provenance and case\-specific semantic alignment are therefore part of the same shortcut mechanism, not separately identified causal effects\.

The lower panel distinguishes weakened ranking signal from the degenerate case in which LOPO removes the gold profile altogether\. Among the 1,717 cases that retain independently supported gold\-disease annotations, LOPO reduces Recall@1 from 0\.3722 to 0\.1578, a 21\.43\-point decrease\. In the remaining 510 cases, Recall@1 falls from 0\.7039 to zero because the gold disease is no longer described in HPOA\. The all\-case estimate in Table[1](https://arxiv.org/html/2609.02473#S6.T1)measures the ranker’s dependence on the coupled resources; the retained\-profile estimate isolates its nondegenerate ranking effect\.

The decrease also grows with the fraction of the gold profile supported only by the case publication, while uncorrected accuracy is flat across the same strata \(Appendix[A\.5](https://arxiv.org/html/2609.02473#A1.SS5.SSS0.Px1)\)\. All primary Phenopacket Store fusion experiments use the LOPO ontology ranking\.

### 6\.2Diagnostic Accuracy

Table 3:Recall@1 on Phenopacket Store with the target backbone family held out\. Our results are means and standard deviations over five seeds;†\\daggeruses target\-LLM labels, whereas our method does not\.Phenopacket Store provides the cleanest test of transfer to a new model lineage\. Across all 8 targets and 4 held\-out families, fusion has the highest Recall@1 point estimate against Phenomizer, the target LLM, RRF, CombMNZ, and a fixed weight fitted with the target model’s own labels \(Table[3](https://arxiv.org/html/2609.02473#S6.T3)\)\. Its macro\-average is 0\.2002 \(±\\pm0\.0007\), compared with 0\.1515 for CombMNZ, the strongest of the five published rank\-fusion rules\. Their paired macro difference is\+\+4\.88 points \[3\.12, 6\.77\]\. The gate therefore transfers through observable ranking behavior without seeing outputs from the target backbone family\.

The improvement extends beyond the first position\. Macro Recall@5 and MRR are 0\.2937 and 0\.2461, compared with 0\.2124 and 0\.1689 for Phenomizer and 0\.1747 and 0\.1393 for the LLMs\.

Results are stable to ontology candidate depth\. AtK=100K=100, the gold disease occurs in the ontology prefix for 46\.6% of test cases and in the test union for 55\.1% of all combinations of test case and target LLM\. Complete refits atK=10K=10andK=50K=50obtain 0\.2004 and 0\.2008 Recall@1, compared with 0\.2002 atK=100K=100; replacing the stored prefix at inference with the exact 8,553\-disease ordering changes the result by only \-0\.001 points\.

The improvement is not created by the cases whose gold\-disease profile is emptied by LOPO\. Among the 1,717 cases with a nonempty independently supported profile, the frozen LOPO gate raises Recall@1 from 0\.1578 to 0\.2597, a paired gain of\+\+10\.19 points \[2\.65, 18\.04\]\. We also repeat the complete family\-held\-out training protocol using the ordinary, uncorrected Phenomizer ranking and its corresponding evidence features\. Recall@1 rises from 0\.4481 to 0\.5261, a gain of\+\+7\.79 points \[1\.73, 14\.55\]\. The gate exceeds Phenomizer for all 8 target models in both checks\. LOPO changes how the benchmark comparison should be interpreted, but the fusion gain does not depend on its lower baseline\.

The LLM prompt includes explicitly excluded findings, whereas Phenomizer ranks only the observed findings\. To separate complementarity from this input difference, we replace Phenomizer with the LOPO naive\-Bayes likelihood\-ratio ranker, which consumes both observed and explicitly excluded findings, and repeat the complete family\-held\-out protocol\. Fusion raises its Recall@1 from 0\.1361 to 0\.2115, a paired gain of 7\.54 points \[1\.87, 14\.12\], and exceeds both components in all 8 target arms\. The gain therefore persists when the ontology component has access to the same negative phenotype information as the LLM\.

We further test the practical setting in which a recent frontier model is added after the gate has been trained\. The gate is fitted once on the complete training and validation rankings from the eight open LLMs, while DeepSeek\-V4\-Flash is queried only for the held\-out test cases\. Without any DeepSeek\-labelled example for training, model selection, or feature standardisation, Recall@1 increases from 0\.1217 for Phenomizer and 0\.1657 for DeepSeek alone to 0\.2176 for fusion, averaged over five seeds\. These are gains of 9\.59 and 5\.19 percentage points over the two components, respectively\. Thus the gate can improve an unseen model outside its training pool, rather than only interpolate among the LLMs on which it was learned\.

Table 4:Recall@1 on RAMEDIS\. RRF, Borda\-fuse, and CombMNZ require no training\. Ours is evaluated by five\-fold profile\-grouped cross\-validation\. Learned results are means and standard deviations over five seeds\.RAMEDIS provides an independently assembled, information\-limited test of the same fusion principle\. The gate is refitted within the RAMEDIS folds, so this experiment tests fusion on a second corpus rather than parameter transfer from Phenopacket Store\. Across the eight LLMs, our method raises Phenomizer’s macro Recall@1 from 0\.1554 to 0\.3573, a gain of 20\.18 points \[4\.90, 33\.79\], and exceeds the mean standalone LLM by 10\.02 points \[2\.79, 15\.46\] \(Table[4](https://arxiv.org/html/2609.02473#S6.T4)\)\. It improves on Phenomizer in every arm and on both component systems in 7 of 8\. Its macro average is the highest in the table, and it is the strongest listed method for 4 individual LLMs\.

RAMEDIS also delineates when learning provides additional value beyond rank aggregation\. The corpus contains 624 cases from 74 metabolic diseases and supplies observed HPO findings, but not the excluded findings or demographic context used by several patient\-context features\. Under this restricted input contract, RRF reaches 0\.3562 and our method reaches 0\.3573, a difference of 0\.11 points \[\-0\.32, 0\.46\]\. The two are therefore statistically indistinguishable on RAMEDIS, showing that parameter\-free aggregation can suffice when the available case description is sparse\.

### 6\.3Gate Architecture and Features

We compare the shared scorer with supervised controllers under identical inputs, family exclusions, labelled budgets, and test cases\. The logistic and MLP routers learn when to select the ontology ranking or the LLM ranking\. The asymmetric MLP instead predicts a continuous weight from their concatenated descriptions, using the same listwise objective as our gate\. Unlike the shared scorer, these controls may attach a different meaning to the same feature according to which component produced it\.

Table 5:Feature ablations and learned controls under family holdout\. Values are macro Recall@1, reported as mean and standard deviation over five seeds; decreases are relative to the full shared MLP, with publication\-clustered 95% confidence intervals\.In the five\-seed main experiment, the shared scorer reaches 0\.2002 Recall@1, compared with 0\.1956, 0\.1959, and 0\.1914 for logistic routing, MLP routing, and asymmetric fusion \(Table[5](https://arxiv.org/html/2609.02473#S6.T5)\)\. These paired cohort intervals average the five seed predictions and do not measure optimization variation\. We therefore repeat the shared scorer and both routers under 30 matched initializations\. Its mean advantage is 0\.43 points \[0\.38, 0\.49\] over logistic routing and 0\.35 points \[0\.27, 0\.42\] over MLP routing, with positive paired differences in 30/30 and 29/30 seeds, respectively across the matched initializations\. The symmetric architecture is consequently a small, reproducible refinement, not the primary source of the fusion gain\.

Within the shared architecture, the decisive signal is evidence about the proposed diseases\. Removing ontology support produces by far the largest decrease, from 0\.2002 to 0\.1780 Recall@1\. A 21\-feature scorer retaining only ontology support and cross\-list agreement reaches 0\.1991; its Phenopacket Store difference from the full contract is not detectable\. Thus ontology support and agreement account for nearly all of the measurable Phenopacket Store gain\. We retain the complete contract as one representation for corpora that provide different amounts of case context\.

A linear shared scorer reaches 0\.1881, 3\.66 points above CombMNZ but 1\.21 points below the MLP\. Most of the difference from CombMNZ therefore comes from supervised behavioral and ontology evidence; nonlinear interactions and the symmetric scorer add smaller refinements\.

Appendix[B](https://arxiv.org/html/2609.02473#A2)reports the remaining provenance analyses, ranking metrics, feature ablations, candidate\-depth checks, and rank\-fusion comparisons\.

### 6\.4Candidate Coverage and Ontology Evidence

The LOPO\-corrected Phenopacket Store benchmark reveals substantial complementarity between the two diagnostic systems\. An oracle that accepts a correct top prediction from either component exceeds the stronger component by 10\.33 Recall@1 points, and the LLM ranks the gold disease first in 0\.183 of Phenomizer’s errors\. After LOPO, the gold disease has a median of 34 direct HPOA annotations, compared with 12 across the 8,553\-disease candidate vocabulary\. When a gold profile is sparse, the ontology ranker has less curated evidence on which to act, leaving more room for an independently generated LLM differential to add the diagnosis\.

For 90\.8% of correct fused predictions, the disease occurs in Phenomizer’s stored top 100, where its matched HPO terms andpp\-value are available for review\. This is candidate\-level ontology evidence, not an interpretation of the gate’s complete decision path\. Fusion is not restricted to that prefix: 18\.0% of all fused top predictions, including 9\.2% of the correct ones, originate outside it\. Outside\-prefix promotions are correct in only 10\.3%, compared with 52\.7% for promotions from Phenomizer ranks two through ten\. Candidate expansion can therefore recover diagnoses absent from the stored prefix, but those predictions are less reliable and carry no stored ontology evidence\.

Transfer also depends on the LLM returning an informative, normalizable ranking\. MedGemma\-27B includes the gold disease in 33\.4% of its lists, but places it first in only 31\.8% of those cases\. Qwen2\.5\-7B has lower list recall \(30\.0%\) but commits to the gold disease more often once it is present \(46\.3%\)\. OpenBioLLM\-8B produces no normalized list for 955 test cases\.

To distinguish failures of name normalization from unusable model output, two clinical experts independently reviewed a blinded sample of 400 failed names or empty parses, 100 from each of 4 models\. Among the 190 randomly sampled unmatched occurrences, the experts classified between 22\.1% and 23\.2% as mapper misses, whereas between 48\.9% and 52\.6% were invalid or hallucinated\. Category agreement was 86\.0% \(Cohen’sκ=0\.782\\kappa=0\.782\)\. Inserting every candidate\-space OMIM mapping supplied by either expert repaired between 41 and 53 names and changed between 5 and 9 predicted top labels, but neither changed a single Top\-1 correctness outcome \(0\.00 Recall@1 points\)\. Thus mapper misses are a real interface loss, but they do not explain the audited Top\-1 results\. Sampling and category definitions are given in Appendix[A](https://arxiv.org/html/2609.02473#A1)\.

## 7Discussion and Conclusion

The provenance analysis changes how retrospective evaluations of knowledge\-based diagnosis should be read\. When a test case and an inference\-time knowledge base are curated from the same paper, measured accuracy reflects both ranking quality and the reuse of document\-specific evidence\. LOPO exposes this dependence, while the matched\-deletion and retained\-profile analyses show that it is not explained by generic annotation loss or by cases whose gold profile disappears\. For evaluations built from curated cases and curated external resources, shared source provenance is therefore part of benchmark design rather than incidental metadata\.

The corrected evaluation also changes the role of the LLM\. An independently generated differential can broaden the candidate set, while the ontology ranker supplies structured phenotype evidence for the candidates it covers\. Family\-held\-out training and the test\-only DeepSeek arm show that the gate can exploit this complementarity without labels from the target model family\. The gain under the ordinary, uncorrected protocol shows that fusion is not an artifact of the lower LOPO baseline, and RAMEDIS extends the result to an independently assembled disease cohort and marks a boundary of the learned gate\. With observed phenotypes but no exclusions or demographic context, the gate and RRF are statistically indistinguishable\. In this sparse\-input setting, combining the rankings matters, but learning their weights provides no detectable additional gain\.

Together, these results support a hybrid role for LLMs in phenotype\-based diagnosis\. The LLM need not replace the ontology tool: behavior\-based fusion improves its ranking while preserving candidate\-level ontology evidence for most correct predictions\. Because the gate depends on observable ranking behavior rather than model identity, a newly introduced LLM can enter the pipeline without target\-model labels\. Auditing resource provenance and combining complementary diagnostic evidence offer a cleaner and more adaptable path than treating structured tools and LLMs as competing alternatives\.

## Limitations

The provenance analysis concerns Phenopacket Store and HPOA, where both cases and annotations record their source publications\. LOPO removes this recorded overlap from the ontology side; it does not audit LLM pretraining data or imply that the same overlap is widespread in other rare\-disease benchmarks\. Our experiments also address phenotype\-only disease ranking rather than Exomiser’s variant\-aware clinical mode\.

The fusion model requires disease names that can be mapped to a shared ontology\. Family\-held\-out and test\-only experiments support transfer across the models studied, but not every future model or clinical setting\. These experiments evaluate diagnostic ranking and candidate\-level evidence on public research corpora; they do not establish clinical validity or support autonomous diagnosis\.

## Ethics Statement

We use de\-identified case descriptions from public research corpora and collect no new patient data\. Two clinical experts reviewed de\-identified model outputs for the disease\-name audit; they did not diagnose or recommend treatment for any real patient\. Our experiments evaluate retrospective disease ranking rather than clinical validity, and none of the evaluated systems should be used for autonomous diagnosis\. AI assistants supported implementation and language editing; the authors verified the study design, analysis, claims, and reported results\.

## References

- Amannet al\.\(2020\)J\. Amann, A\. Blasimme, E\. Vayena, D\. Frey, V\. I\. Madai, and Precise4Q consortiumExplainability for artificial intelligence in healthcare: a multidisciplinary perspective\.BMC medical informatics and decision making20\(1\),pp\. 310\.Cited by:[§1](https://arxiv.org/html/2609.02473#S1.p1.1)\.
- Aslam and Montague \(2001\)J\. A\. Aslam and M\. MontagueModels for metasearch\.InProceedings of the 24th annual international ACM SIGIR conference on Research and development in information retrieval,pp\. 276–284\.Cited by:[§A\.4](https://arxiv.org/html/2609.02473#A1.SS4.SSS0.Px3.p1.1),[§2](https://arxiv.org/html/2609.02473#S2.p3.1),[§5](https://arxiv.org/html/2609.02473#S5.p3.1)\.
- Baileyet al\.\(2017\)P\. Bailey, A\. Moffat, F\. Scholer, and P\. ThomasRetrieval consistency in the presence of query variations\.InProceedings of the 40th international ACM SIGIR conference on research and development in information retrieval,pp\. 395–404\.Cited by:[§2](https://arxiv.org/html/2609.02473#S2.p3.1)\.
- Balloccuet al\.\(2024\)S\. Balloccu, P\. Schmidtová, M\. Lango, and O\. DusekLeak, cheat, repeat: data contamination and evaluation malpractices in closed\-source llms\.InProceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics \(Volume 1: Long Papers\),pp\. 67–93\.Cited by:[§2](https://arxiv.org/html/2609.02473#S2.p4.1)\.
- Bassani \(2022\)E\. BassaniRanx: a blazing\-fast python library for ranking evaluation and comparison\.InEuropean Conference on Information Retrieval,pp\. 259–264\.Cited by:[§A\.4](https://arxiv.org/html/2609.02473#A1.SS4.SSS0.Px3.p1.1)\.
- Bruchet al\.\(2023\)S\. Bruch, S\. Gai, and A\. IngberAn analysis of fusion functions for hybrid retrieval\.ACM Transactions on Information Systems42\(1\),pp\. 1–35\.Cited by:[§2](https://arxiv.org/html/2609.02473#S2.p3.1)\.
- Chenet al\.\(2026\)H\. Chen, Z\. Zhao, S\. Zhou, S\. Hu, J\. Wang, Y\. Jin, X\. Jin, Y\. C\. Tham, X\. Wang, W\. Ma, H\. Wu, B\. Sheng, S\. Zhang, S\. Yu, and T\. Y\. WongRareArena: a comprehensive benchmark dataset unveiling the potential of large language models in rare disease diagnosis\.The Lancet Digital Health8\(2\)\.Cited by:[§A\.5](https://arxiv.org/html/2609.02473#A1.SS5.SSS0.Px2.p1.1),[§2](https://arxiv.org/html/2609.02473#S2.p2.1)\.
- Chenet al\.\(2024\)X\. Chen, X\. Mao, Q\. Guo, L\. Wang, S\. Zhang, and T\. ChenRareBench: can llms serve as rare diseases specialists?\.InProceedings of the 30th ACM SIGKDD conference on knowledge discovery and data mining,pp\. 4850–4861\.Cited by:[§A\.5](https://arxiv.org/html/2609.02473#A1.SS5.SSS0.Px3.p1.1),[§2](https://arxiv.org/html/2609.02473#S2.p2.1),[§5](https://arxiv.org/html/2609.02473#S5.p1.1)\.
- Cormacket al\.\(2009\)G\. V\. Cormack, C\. L\. A\. Clarke, and S\. BuettcherReciprocal rank fusion outperforms condorcet and individual rank learning methods\.InProceedings of the 32nd international ACM SIGIR conference on Research and development in information retrieval,pp\. 758–759\.Cited by:[§A\.4](https://arxiv.org/html/2609.02473#A1.SS4.SSS0.Px3.p1.1),[§2](https://arxiv.org/html/2609.02473#S2.p3.1),[§5](https://arxiv.org/html/2609.02473#S5.p3.1)\.
- Daniset al\.\(2025\)D\. Danis, M\. J\. Bamshad, Y\. Bridges, P\. Cacheiro, L\. C\. Carmody, J\. X\. Chong, B\. Coleman, R\. Dalgleish, P\. J\. Freeman, A\. S\. L\. Graefe, T\. Groza, J\. O\. B\. Jacobsen, A\. Klocperk, M\. Kusters, M\. S\. Ladewig, A\. J\. Marcello, T\. Mattina, C\. J\. Mungall, M\. C\. Munoz\-Torres, J\. T\. Reese, F\. Rehburg, B\. C\. S\. Reis, C\. Schuetz, D\. Smedley, T\. Strauss, J\. C\. Sundaramurthi, S\. Thun, K\. Wissink, J\. F\. Wagstaff, D\. Zocche, M\. A\. Haendel, and P\. N\. RobinsonA corpus of ga4gh phenopackets: case\-level phenotyping for genomic diagnostics and discovery\.Human Genetics and Genomics Advances6\(1\)\.Cited by:[§5](https://arxiv.org/html/2609.02473#S5.p1.1)\.
- Elmofty and Leser \(2026\)M\. Elmofty and U\. LeserWhen does retrieval beat direct llm diagnosis in rare disease? an empirical study of ontology coverage\.InBioNLP 2026,pp\. 508–518\.Cited by:[§1](https://arxiv.org/html/2609.02473#S1.p5.1),[§2](https://arxiv.org/html/2609.02473#S2.p2.1)\.
- Fox and Shaw \(1994\)E\. A\. Fox and J\. A\. ShawCombination of multiple searches\.NIST special publication SP243\.Cited by:[§A\.4](https://arxiv.org/html/2609.02473#A1.SS4.SSS0.Px3.p1.1),[§2](https://arxiv.org/html/2609.02473#S2.p3.1),[§5](https://arxiv.org/html/2609.02473#S5.p3.1)\.
- Guhaet al\.\(2024\)N\. Guha, M\. F\. Chen, T\. Chow, I\. S\. Khare, and C\. RéSmoothie: label free language model routing\.Advances in Neural Information Processing Systems37,pp\. 127645–127672\.Cited by:[§2](https://arxiv.org/html/2609.02473#S2.p3.1)\.
- Jitkrittumet al\.\(2023\)W\. Jitkrittum, N\. Gupta, A\. Menon, H\. Narasimhan, A\. Rawat, and S\. KumarWhen does confidence\-based cascade deferral suffice?\.Advances in Neural Information Processing Systems36,pp\. 9891–9906\.Cited by:[§2](https://arxiv.org/html/2609.02473#S2.p3.1)\.
- Köhleret al\.\(2021\)S\. Köhler, M\. Gargano, N\. Matentzoglu, L\. C\. Carmody, D\. Lewis\-Smith, N\. A\. Vasilevsky, D\. Danis, G\. Balagura, G\. Baynam, A\. M\. Brower, T\. J\. Callahan, C\. G\. Chute, J\. L\. Est, P\. D\. Galer, S\. Ganesan, M\. Griese, M\. Haimel, J\. Pazmandi, M\. Hanauer, N\. L\. Harris, M\. J\. Hartnett, M\. Hastreiter, F\. Hauck, Y\. He, T\. Jeske, H\. Kearney, G\. Kindle, C\. Klein, K\. Knoflach, R\. Krause, D\. Lagorce, J\. A\. McMurry, J\. A\. Miller, M\. C\. Munoz\-Torres, R\. L\. Peters, C\. K\. Rapp, A\. M\. Rath, S\. A\. Rind, A\. Z\. Rosenberg, M\. M\. Segal, M\. G\. Seidel, D\. Smedley, T\. Talmy, Y\. Thomas, S\. A\. Wiafe, J\. Xian, Z\. Yüksel, I\. Helbig, C\. J\. Mungall, M\. A\. Haendel, and P\. N\. RobinsonThe human phenotype ontology in 2021\.Nucleic acids research49\(D1\),pp\. D1207–D1217\.Cited by:[§1](https://arxiv.org/html/2609.02473#S1.p1.1),[§2](https://arxiv.org/html/2609.02473#S2.p1.1)\.
- Köhleret al\.\(2009\)S\. Köhler, M\. H\. Schulz, P\. Krawitz, S\. Bauer, S\. Dölken, C\. E\. Ott, C\. Mundlos, D\. Horn, S\. Mundlos, and P\. N\. RobinsonClinical diagnostics in human genetics with semantic similarity searches in ontologies\.The American Journal of Human Genetics85\(4\),pp\. 457–464\.Cited by:[§1](https://arxiv.org/html/2609.02473#S1.p1.1),[§2](https://arxiv.org/html/2609.02473#S2.p1.1),[§5](https://arxiv.org/html/2609.02473#S5.p2.1)\.
- Kondadadi and Ortega \(2026\)R\. Kondadadi and J\. E\. OrtegaL2D\-clinical: learning to defer for adaptive model selection in clinical text classification\.arXiv preprint arXiv:2604\.13285\.Cited by:[§2](https://arxiv.org/html/2609.02473#S2.p3.1)\.
- Kwiatkowskiet al\.\(2019\)T\. Kwiatkowski, J\. Palomaki, O\. Redfield, M\. Collins, A\. Parikh, C\. Alberti, D\. Epstein, I\. Polosukhin, J\. Devlin, K\. Lee, K\. Toutanova, L\. Jones, M\. Kelcey, M\. Chang, A\. M\. Dai, J\. Uszkoreit, Q\. Le, and S\. PetrovNatural questions: a benchmark for question answering research\.Transactions of the Association for Computational Linguistics7,pp\. 453–466\.Cited by:[§2](https://arxiv.org/html/2609.02473#S2.p4.1)\.
- Leeet al\.\(2026\)J\. Lee, L\. Yao, H\. Jeong, and Z\. LiuLA\-marrvel: a knowledge\-grounded, language\-aware llm framework for clinically robust rare disease gene prioritization\.ArXiv,pp\. arXiv–2511\.Cited by:[§1](https://arxiv.org/html/2609.02473#S1.p2.1),[§1](https://arxiv.org/html/2609.02473#S1.p5.1),[§2](https://arxiv.org/html/2609.02473#S2.p2.1)\.
- Leeet al\.\(2019\)K\. Lee, M\. Chang, and K\. ToutanovaLatent retrieval for weakly supervised open domain question answering\.InProceedings of the 57th annual meeting of the association for computational linguistics,pp\. 6086–6096\.Cited by:[§2](https://arxiv.org/html/2609.02473#S2.p4.1)\.
- Lilliset al\.\(2006\)D\. Lillis, F\. Toolan, R\. Collier, and J\. DunnionProbFuse: a probabilistic approach to data fusion\.InProceedings of the 29th annual international ACM SIGIR conference on Research and development in information retrieval,pp\. 139–146\.Cited by:[§A\.4](https://arxiv.org/html/2609.02473#A1.SS4.SSS0.Px3.p1.1),[§2](https://arxiv.org/html/2609.02473#S2.p3.1),[§5](https://arxiv.org/html/2609.02473#S5.p3.1)\.
- Omaret al\.\(2025\)M\. Omar, V\. Sorin, J\. D\. Collins, D\. Reich, R\. Freeman, N\. Gavin, A\. Charney, L\. Stump, N\. L\. Bragazzi, G\. N\. Nadkarni, and E\. KlangMulti\-model assurance analysis showing large language models are highly vulnerable to adversarial hallucination attacks during clinical decision support\.Communications Medicine5\(1\),pp\. 330\.Cited by:[§1](https://arxiv.org/html/2609.02473#S1.p2.1)\.
- Onget al\.\(2025\)I\. Ong, A\. Almahairi, V\. Wu, W\. Chiang, T\. Wu, J\. E\. Gonzalez, M\. Kadous, and I\. StoicaRouteLLM: learning to route llms with preference data\.InInternational Conference on Learning Representations,Vol\.2025,pp\. 34433–34448\.Cited by:[§2](https://arxiv.org/html/2609.02473#S2.p3.1)\.
- Reeseet al\.\(2026\)J\. T\. Reese, L\. Chimirri, Y\. Bridges, D\. Danis, J\. H\. Caufield, M\. A\. Gargano, C\. Kroll, A\. Schmeder, F\. Liu, K\. Wissink, J\. A\. McMurry, A\. S\. L\. Graefe, E\. Niyonkuru, D\. R\. Korn, E\. Casiraghi, G\. Valentini, J\. O\. B\. Jacobsen, M\. Haendel, D\. Smedley, C\. J\. Mungall, and P\. N\. RobinsonSystematic benchmarking demonstrates large language models have not reached the diagnostic accuracy of traditional rare\-disease decision support tools\.European Journal of Human Genetics34\(4\),pp\. 498–504\.Cited by:[§1](https://arxiv.org/html/2609.02473#S1.p2.1),[§2](https://arxiv.org/html/2609.02473#S2.p1.1)\.
- Robinsonet al\.\(2014\)P\. N\. Robinson, S\. Köhler, A\. Oellrich, Sanger Mouse Genetics Project, K\. Wang, C\. J\. Mungall, S\. E\. Lewis, N\. Washington, S\. Bauer, D\. Seelow, P\. Krawitz, C\. Gilissen, M\. Haendel, and D\. SmedleyImproved exome prioritization of disease genes through cross\-species phenotype comparison\.Genome research24\(2\),pp\. 340–348\.Cited by:[§1](https://arxiv.org/html/2609.02473#S1.p1.1),[§2](https://arxiv.org/html/2609.02473#S2.p1.1),[§5](https://arxiv.org/html/2609.02473#S5.p2.1)\.
- Robinsonet al\.\(2020\)P\. N\. Robinson, V\. Ravanmehr, J\. O\. B\. Jacobsen, D\. Danis, X\. A\. Zhang, L\. C\. Carmody, M\. A\. Gargano, C\. L\. Thaxton, UNC Biocuration Core, G\. Karlebach, J\. Reese, M\. Holtgrewe, S\. Köhler, J\. A\. McMurry, M\. A\. Haendel, and D\. SmedleyInterpretable clinical genomics with a likelihood ratio paradigm\.The American Journal of Human Genetics107\(3\),pp\. 403–417\.Cited by:[§1](https://arxiv.org/html/2609.02473#S1.p1.1),[§2](https://arxiv.org/html/2609.02473#S2.p1.1)\.
- Savageet al\.\(2025\)T\. Savage, J\. Wang, R\. Gallo, A\. Boukil, V\. Patel, S\. A\. A\. Safavi\-Naini, A\. Soroush, and J\. H\. ChenLarge language model uncertainty proxies: discrimination and calibration for medical diagnosis and treatment\.Journal of the American Medical Informatics Association32\(1\),pp\. 139–149\.Cited by:[§1](https://arxiv.org/html/2609.02473#S1.p2.1)\.
- Vasilevskyet al\.\(2022\)N\. A\. Vasilevsky, N\. A\. Matentzoglu, S\. Toro, J\. E\. F\. IV, H\. Hegde, D\. R\. Unni, G\. F\. Alyea, J\. S\. Amberger, L\. Babb, J\. P\. Balhoff, T\. I\. Bingaman, G\. A\. Burns, O\. J\. Buske, T\. J\. Callahan, L\. C\. Carmody, P\. C\. Cordo, L\. E\. Chan, G\. S\. Chang, S\. L\. Christiaens, L\. C\. Daugherty, M\. Dumontier, L\. E\. Failla, M\. J\. Flowers, H\. A\. G\. Jr\., J\. L\. Goldstein, D\. Gration, T\. Groza, M\. Hanauer, N\. L\. Harris, J\. A\. Hilton, D\. S\. Himmelstein, C\. T\. Hoyt, M\. S\. Kane, S\. Köhler, D\. Lagorce, A\. Lai, M\. Larralde, A\. Lock, I\. L\. Santiago, D\. R\. Maglott, A\. J\. Malheiro, B\. H\. M\. Meldal, M\. C\. Munoz\-Torres, T\. H\. Nelson, F\. W\. Nicholas, D\. Ochoa, D\. P\. Olson, T\. I\. Oprea, D\. Osumi\-Sutherland, H\. Parkinson, Z\. M\. Pendlington, A\. Rath, H\. L\. Rehm, L\. Remennik, E\. R\. Riggs, P\. Roncaglia, J\. E\. Ross, M\. F\. Shadbolt, K\. A\. Shefchek, M\. N\. Similuk, N\. Sioutos, D\. Smedley, R\. Sparks, R\. Stefancsik, R\. Stephan, A\. L\. Storm, D\. Stupp, G\. S\. Stupp, J\. C\. Sundaramurthi, I\. Tammen, D\. Tay, C\. L\. Thaxton, E\. Valasek, J\. Valls\-Margarit, A\. H\. Wagner, D\. Welter, P\. L\. Whetzel, L\. L\. Whiteman, V\. Wood, C\. H\. Xu, A\. Zankl, X\. A\. Zhang, C\. G\. Chute, P\. N\. Robinson, C\. J\. Mungall, A\. Hamosh, and M\. A\. HaendelMondo: unifying diseases for the world, by the world\.MedRxiv,pp\. 2022–04\.Cited by:[§A\.2](https://arxiv.org/html/2609.02473#A1.SS2.SSS0.Px3.p1.1)\.
- Wanget al\.\(2026a\)X\. Wang, G\. Shuqi, Y\. Shen, J\. Chen, J\. Wang, J\. Gu, P\. Zhang, L\. Liu, and W\. BenyouLiveclin: a live clinical benchmark without leakage\.InInternational Conference on Learning Representations,Vol\.2026,pp\. 97981–98011\.Cited by:[§2](https://arxiv.org/html/2609.02473#S2.p4.1)\.
- Wanget al\.\(2026b\)Y\. Wang, X\. Zhang, K\. Yao, Z\. Zeng, K\. Song, J\. Lin, and Z\. ShenSearch\-time contamination in deep research agents: measuring performance inflation in public benchmark evaluation\.arXiv preprint arXiv:2606\.05241\.Cited by:[§2](https://arxiv.org/html/2609.02473#S2.p4.1)\.
- Zhaoet al\.\(2026\)W\. Zhao, C\. Wu, Y\. Fan, P\. Qiu, X\. Zhang, Y\. Sun, X\. Zhou, S\. Zhang, Y\. Peng, Y\. Wang, X\. Sun, Y\. Zhang, Y\. Yu, K\. Sun, and W\. XieAn agentic system for rare disease diagnosis with traceable reasoning\.Nature651\(8106\),pp\. 775–784\.Cited by:[§1](https://arxiv.org/html/2609.02473#S1.p5.1),[§2](https://arxiv.org/html/2609.02473#S2.p2.1)\.
- Zhuet al\.\(2025\)Z\. Zhu, Y\. Zhang, X\. Zhuang, F\. Zhang, Z\. Wan, Y\. Chen, Q\. Long, Y\. Zheng, and X\. WuCan we trust ai doctors? a survey of medical hallucination in large language and large vision\-language models\.InFindings of the Association for Computational Linguistics: ACL 2025,pp\. 6748–6769\.Cited by:[§1](https://arxiv.org/html/2609.02473#S1.p2.1)\.

## Appendix AReproducibility Details

This appendix follows the evaluation pipeline in the order in which a case is processed\. We first describe the corpus and the phenotype\-only input, then document the LLM and ontology rankers, the fusion experiments, and the external evaluation\.

### A\.1Corpus, Inputs, and Evaluation

#### Corpus and cohorts\.

Phenopacket Store 0\.1\.27 contains 10,377 cases from 1,733 publications\. Keeping cases from the same publication together gives 7,029 training, 1,102 validation, and 2,246 test cases\. Ranking requires at least one observed HPO term and a gold disease in the 8,553\-disease candidate space, leaving 7,024, 1,094, and 2,227 eligible cases, respectively\. The provenance analysis additionally requires the gold disease to be represented in HPOA, which holds for 10,348 cases\. Table[6](https://arxiv.org/html/2609.02473#A1.T6)summarizes the corpus\.

Table 6:Phenopacket Store 0\.1\.27 corpus and evaluation cohorts\.
#### Phenotype\-only input\.

Phenopackets include fields that can reveal the answer, including disease and interpretation records, external references, record identifiers, and archive paths\. We therefore construct each input from a fixed set of permitted fields: HPO CURIEs and their canonical labels from the pinnedhp\.json, sex, normalized age or onset, and a hashed case identifier\. No other text enters the model input\.

The verifier scans the resulting input for gold disease identifiers, gene symbols, HGNC identifiers, variant expressions, publication identifiers, and archive paths\. As a negative control, it inserts a gold disease name into a phenotype label and confirms that the audit detects it\. It also verifies that no publication crosses the data splits\. Some lexical overlap is intrinsic to the ontology: in 34\.7% of cases, an observed phenotype label and the gold disease name share a content word\. We retain these valid HPO labels and present them identically to every system\.

#### Systems and evaluation\.

The editable ontology systems are the reference Phenomizer implementation \(Appendix[A\.3](https://arxiv.org/html/2609.02473#A1.SS3)\), the Resnik score, symmetric best\-match\-average Resnik, and two LIRICAL\-style naive\-Bayes likelihood\-ratio rankers that differ in whether they use excluded phenotypes\. We also run the unmodified LIRICAL 2\.4\.1 executable against each filtered HPOA snapshot\. We report Recall@kkand MRR\. Differences on Phenopacket Store use 2,000 paired bootstrap samples clustered by source publication\. RAMEDIS does not provide case\-source publications, so its paired bootstrap samples are clustered by gold disease\. Intervals for learned systems are computed from predictions averaged across five frozen seeds; seed variation is reported separately\.

### A\.2LLM Inference and Disease\-Name Mapping

#### Models\.

The open\-model pool comprises Qwen2\.5\-7B\-Instruct, Llama3\-OpenBioLLM\-8B, MedGemma\-27B\-text\-it, HuatuoGPT\-3\-8B, Baichuan\-M2\-32B, MedGemma\-4B, Med42\-8B, and OpenBioLLM\-70B\. Each model receives the same phenotype\-only input and is asked to return up to 10 ranked disease names\. Thinking is disabled where supported\. DeepSeek\-V4\-Flash is evaluated only at test time through SiliconFlow: its rankings are passed to the frozen gate, but it contributes no training or validation examples\.

#### Prompt and decoding\.

Every LLM receives the following system message:

> You are a clinical geneticist performing phenotype\-only differential diagnosis of rare Mendelian disease\. You are given a patient’s Human Phenotype Ontology findings\. Reply with exactly 10 candidate diagnoses, most likely first, one per line, formatted as “<rank\>\. <disease name\>”\. Use standard OMIM/Mondo disease names\. No explanations, no other text\.

Each user message gives sex and age or onset when available, followed by all observed HPO terms and any explicitly excluded terms\. It ends with the instruction “List the 10 most likely rare genetic diagnoses, ranked\.” Apart from the structured demographic fields, the variable clinical text consists only of canonical HPO labels\. Local models use their native chat templates and greedy decoding with temperature 0, one completion, a 4,096\-token context limit, and at most 384 generated tokens\. DeepSeek uses the same messages and decoding settings through the API\. The verifier flags outputs containing explicit reasoning markers\. The parser accepts numbered lines matching<rank\>\[\.\)\] <disease name\>and retains the first 10 names\.

#### Disease\-name mapping\.

Surface forms are mapped to OMIM identifiers with a fixed lexicon built from the candidate diseases and the names and exact synonyms of Mondo[Vasilevsky et al\. \(2022\)](https://arxiv.org/html/2609.02473#bib.bib11)classes with an OMIM cross\-reference\. The mapper rejects matches that change an explicitly numbered disease subtype\.

We audit 400 unmatched items, with 100 drawn from Baichuan\-M2\-32B, MedGemma\-4B, Llama3\-OpenBioLLM\-8B, and Qwen2\.5\-7B\-Instruct\. For each model, the sample includes up to 20 outputs from which the parser recovered no disease name\. The remaining quota is divided equally between randomly sampled unmatched occurrences and unique unmatched surface forms\. Two clinical experts independently classify each item as an invalid or hallucinated name, a mapper miss, a granularity mismatch, a valid non\-OMIM disease, or a formatting failure\. Model identity, case identifier, and gold diagnosis are hidden\. We retain both judgments\. For the random\-occurrence stratum, the main text therefore reports the range between the two experts’ category estimates and evaluates each expert’s proposed OMIM mappings separately\.

### A\.3Ontology Rankers and Provenance Controls

#### Reference Phenomizer implementation\.

We run the public implementation at[https://github\.com/TheJacksonLaboratory/Phenomiser](https://github.com/TheJacksonLaboratory/Phenomiser)at commit 1dda137, the last commit that retains thepp\-value module\. This version uses[https://github\.com/monarch\-initiative/phenol](https://github.com/monarch-initiative/phenol)1\.3\.3 \(tagv1\.3\.3, commit a7f2f66\)\. We use the published Maven artifacts rather than a local build\. Before execution, the verifier checks their SHA\-1 digests against the served values: b42430be0f60815ef3f2e0d8b5b9d81af4c3f42c, 096ac16a46861c632d357d4602fdd78c12dc785e, and a18da0be3ae6eef15ab91098fb24c16e11ab17d8\.

The reference software performs its own null sampling, ranking, and comparison over 8,553 candidate diseases, using 100,000 Monte Carlo samples\. We supply the query term sets and information\-content values\. Three of the 10,377 cases contain no canonical HPO term after input filtering and cannot be ranked becausephenolhas no size\-zero null distribution\. The same cases are absent under both evaluation protocols\. Because Monte Carlo sampling is stochastic, Table[7](https://arxiv.org/html/2609.02473#A1.T7)reports four complete runs\.

#### Query\-size cap\.

The reference code constructs null distributions only for queries of at most 10 terms\. A longer query is scored with all of its terms but is compared with the size\-10 null distribution\. We retain this native behavior for the main results\. Table[8](https://arxiv.org/html/2609.02473#A1.T8)reports a sensitivity analysis using our diagnostic variant with the cap removed\.

#### Native ranking and ties\.

Phenomizer converts semantic similarity into an empiricalpp\-value against random queries for each candidate\. It orders candidates by ascendingpp\-value and then by descending similaritySS\. When both values are equal, stable downstream sorts preserve the implementation’s original iteration order\. Across 4,454 test\-case and protocol combinations, 626 rank\-1 predictions \(14\.1%\) fall inside an unresolved block of this kind\. The mean block size is 1\.41 and the maximum is 22\. We therefore report the native list order together with tie\-averaged and worst\-case sensitivities; only the native ordering is used in the fusion experiments\.

Table 7:Variation across four Phenomizer runs with 100,000 Monte Carlo samples\.Table 8:Recall@1 with the native 10\-term cap and with the diagnostic uncapped variant\.
#### Effect of the statistical layer\.

The empirical null correction explains why the reference implementation differs from the bare semantic score in Table[1](https://arxiv.org/html/2609.02473#S6.T1)\. The median gold disease has 52 annotations before LOPO and 34 afterward, compared with 12 for a candidate drawn from the full space\. A correction for profile richness may therefore attenuate genuine signal together with annotation\-density bias\.

The Monte Carlo estimate also has limited resolution at the top of the ranking\. Sorting the saved reference outputs bypp\-value alone yields 0\.0965 Recall@1 before LOPO and 0\.0427 afterward; 77\.7% of uncorrected cases place rank one inside a block tied onpp\-value alone\. The similarity criterion resolves most of these primary\-key ties, leaving the 14\.1% unresolved rate reported above\.

#### Exact LOPO for LIRICAL\.

For each test publication, we create a temporary LIRICAL data directory containing every pinned 2\.4\.1 resource exceptphenotype\.hpoa\. In its replacement, a relation between an OMIM disease and an HPO term is removed only when the test publication is its sole cited source\. All cases from the same publication use this filtered resource with LIRICAL’s stock phenotype\-only command\. The runner verifies the JAR, HPOA, split, and baseline hashes, stores resumable per\-case results, and removes the temporary directory\. The run covers the 2,227 ranking\-eligible cases from 364 publications\. For 739 cases, no relation is removed and the filtered and unfiltered rankings are identical\.

#### Matched independent deletion\.

The matched control begins with the 1,440 test cases for which exact LOPO removes at least one direct annotation from the gold disease\. If LOPO removeskkannotations, the control pool contains direct annotations of the same disease with recorded support outside the case publication\. A case is retained only when this pool contains at leastkkannotations\. This leaves 597 cases containing 793 removed annotations; the other 843 cases do not have enough eligible controls\.

We obtain a minimum\-cost bipartite assignment without replacement\. The matching variables are full\-HPO information content, ontology depth, the logarithm of the annotation’s unique contribution to the inherited disease profile, and its major HPO branch\. Patient findings and ranking outcomes are not used\. Of the 793 matched pairs, 73\.9% differ by at most one information\-content unit and 89\.3% by at most one ontology level\. The standardized mean differences are−0\.009\-0\.009for information content and\+0\.018\+0\.018for depth\.

Each retained query is ranked under three HPOA conditions using the same base null samples and Java implementation: LOPO across all diseases, source\-specific deletion from the gold disease only, and matched independent deletion from the gold disease\. The unedited baseline is identical across the three conditions\. The first two obtain Recall@1 of 0\.1943 on this cohort, whereas matched deletion obtains 0\.4305\. The confidence interval in Table[2](https://arxiv.org/html/2609.02473#S6.T2)resamples source publications, keeping cases from the same paper together\.

### A\.4Fusion Models and Baselines

Table[9](https://arxiv.org/html/2609.02473#A1.T9)lists the 39 features used to represent each component ranking, in their implementation order\. Patient\-level features are copied into both component vectors\. List geometry, ontology support, and directional cross\-list features are computed separately for the ontology ranker and the LLM\. Rarity is information content, defined as−log\-\\logof the fraction of diseases annotated with a finding; specificity is depth below the HPO root\.

Table 9:The 39 features used to represent each component ranking\.#### Gate optimization\.

The shared scorer uses ReLU hidden layers of 48 and 24 units\. We standardize each feature with the mean and standard deviation computed over both component vectors in the source training rows, adding10−610^\{\-6\}to each standard deviation\. AdamW uses a learning rate of2×10−32\\times 10^\{\-3\}, weight decay of10−410^\{\-4\}, and batches of 512\. Training runs for at most 100 epochs and stops after 12 validation epochs without improvement in listwise cross\-entropy\. The fused rank scores are multiplied by 8 inside this training loss\.

#### Learned controls\.

The two routing controls are trained only on source\-family cases for which the ontology and LLM top\-1 predictions differ in correctness\. The routing label specifies which complete ranking to select; cases for which both predictions have the same outcome provide no routing preference\. The logistic router is linear, while the MLP router has nearly the same parameter count as the shared scorer\. The asymmetric fusion control uses the same MLP capacity but predicts a continuous mixture weight under the listwise objective\. Both MLP controls concatenate the two 39\-dimensional feature vectors, giving 78 inputs\. Feature standardization, early stopping, and checkpoint selection use source families only\. The selected models are applied unchanged to the held\-out family\.

#### Rank\-fusion baselines\.

We compare with RRF[Cormack et al\. \(2009\)](https://arxiv.org/html/2609.02473#bib.bib13), Borda\-fuse and Bayes\-fuse[Aslam and Montague \(2001\)](https://arxiv.org/html/2609.02473#bib.bib14), ProbFuse[Lillis et al\. \(2006\)](https://arxiv.org/html/2609.02473#bib.bib15), and CombMNZ[Fox and Shaw \(1994\)](https://arxiv.org/html/2609.02473#bib.bib17)\. Every method receives the same rankings, candidate pools, cases, and metrics\. RRF, Borda\-fuse, ProbFuse, and CombMNZ followranx0\.3\.21[Bassani \(2022\)](https://arxiv.org/html/2609.02473#bib.bib16); Bayes\-fuse follows the cited likelihood\-ratio rule and assigns neutral evidence to an absent candidate\. Trained baselines use the same source rows as the gate and no labels from the held\-out model family\.

### A\.5Additional Evaluation

#### Source\-overlap sensitivity\.

The dose analysis asks whether the LOPO effect grows with the fraction of the gold disease profile supported only by the case publication\. It includes the 7,717 ranking\-eligible cases with source overlap and uses 2,000 bootstrap samples clustered by source publication\.

#### Cross\-corpus overlap\.

We apply the same PMID join to RareArena[Chen et al\. \(2026\)](https://arxiv.org/html/2609.02473#bib.bib5), excluding publications shared with Phenopacket Store before estimating overlap\. RareArena uses Orphanet disease identifiers, so cases are mapped to unique OMIM equivalents before they are joined to HPOA\. We also check whether each source PMID occurs anywhere in the 8,958\-publication HPOA curation pool, a bound that does not depend on disease mapping\. As a mapping control, we send the Phenopacket Store disease identifiers through the same OMIM to Orphanet to OMIM procedure and confirm that the strong overlap signal remains detectable\.

#### RAMEDIS\.

RAMEDIS is the 624\-patient inborn\-error\-of\-metabolism split from RareBench[Chen et al\. \(2024\)](https://arxiv.org/html/2609.02473#bib.bib4)\. We use five\-fold StratifiedGroupKFold cross\-validation, stratifying by gold disease and grouping identical observed\-HPO profiles so that duplicate profiles cannot cross folds\. In each outer split, one fold is held out for testing, one is used for checkpoint selection, and the remaining three train the gate\. Training and validation examples are built separately from their respective patient folds and use rankings from all eight LLMs, including the target LLM; evaluation pairs each held\-out test patient only with the corresponding target LLM ranking\. We repeat the procedure for five seeds\. RAMEDIS usesκ=60\\kappa=60in Equation[1](https://arxiv.org/html/2609.02473#S4.E1)\. The validation fold also selectsα∈\{0,0\.125,0\.25,0\.5,0\.75,1\}\\alpha\\in\\\{0,0\.125,0\.25,0\.5,0\.75,1\\\}and shrinks the learned ontology weight to1/2\+α⁡\(wT−1/2\)1/2\+\\alpha\(w\_\{T\}\-1/2\)\. Neither choice uses test labels, predictions, or feature statistics\.

### A\.6Compute and Resources

All ontology rankers, provenance interventions, and fusion models run on CPU\. A reference Phenomizer run with 100,000 Monte Carlo samples takes 1,752\.5 seconds on 92 threads\. Local LLM inference uses vLLM on an NVIDIA RTX 6000 Ada with 48 GB memory; MedGemma\-27B uses FP8\. Total local GPU time is under six hours\. The shared scorer has 3,121 parameters\.

The resources are Phenopacket Store 0\.1\.27 under BSD\-3\-Clause, HPO and HPOA under the HPO license, Mondo under CC\-BY 4\.0, LIRICAL 2\.4\.1, Phenomiser commit 1dda137,phenol1\.3\.3,ranx0\.3\.21, RareBench under its stated terms, and the licenses distributed with the open models\.

## Appendix BComplementary Results

We first examine how publication\-source overlap varies across cases and corpora\. We then report complementary ranking metrics, ablations, sensitivity to candidate depth, and comparisons with published fusion rules\.

### B\.1Publication\-Source Overlap

StatisticValueCases with publication\-source overlap74\.6%Gold\-disease annotations that are source\-exclusive \(mean\)33\.6%median12\.3%Cases with an*entirely*source\-exclusive gold profile19\.6%Query terms covered by source\-exclusive gold annotations \(mean\)37\.7%

Table 10:Publication\-source overlap between Phenopacket Store and HPOA \(n=10,348n=10\{,\}348\)\.Table 11:Publication\-source overlap with HPOA in three rare\-disease resources\. For LIRICAL, the last column gives the fraction of its cases with the same source PMID and gold disease as a Phenopacket Store case\.Figure 2:Recall@1 by the source\-exclusive fraction of the gold disease profile\. The six points are placed at the mean fraction within each interval\.
### B\.2Fusion Robustness

Table 12:Macro ranking performance on Phenopacket Store\. Gate values average five seeds; the LLM row averages eight target models\.Table 13:Feature ablations and learned controls under family holdout\. Parentheses give seed standard deviations; decreases are relative to the full model, with 95% confidence intervals\.Table 14:Paired results over 30 initializations\. Brackets give seed\-level 95% confidence intervals\.Table 15:Gold\-disease coverage and Recall@1 at different ontology candidate cutoffs\. The final row expands inference for the gate fitted atK=100K=100\.Table 16:Phenopacket Store Recall@1 for published rank\-fusion rules, averaged over eight target LLMs\. The three columns apply the native list order, average tied ranks, or assign the least favorable rank within each tie\.‡marks theranxscore convention\.

Similar Articles

ClinFusion: A Vision-Centric Multimodal LLM System for Holistic Medical Understanding

Hugging Face Daily Papers

ClinFusion is a vision-centric multimodal large language model for holistic medical understanding that unifies 2D and 3D medical image analysis using a cascaded vision encoder. It achieves state-of-the-art results on 20 out of 24 benchmarks and outperforms proprietary models like GPT-5.2 and Gemini-3-Flash on 13 out of 16 benchmarks.