Rare-disease ranking · Jiang et al.

Learn which diagnostic ranking to trust, then fuse their candidate union

Engineer Dana is reviewing Mira’s phenotype-only case: four observed findings, one explicitly excluded finding. The miniature ontology list is [A, B]. An independent LLM returns [C, B]. The confirmed diagnosis is C—but C is missing from the retrieved list.

Teaching fixture, not a real patient. A–D are fictional disease identifiers, not OMIM accessions.

Reordering A and B cannot recover C. Always accepting the LLM would instead discard the ontology ranking and its independently computed evidence. §1; §4.1

Independent LLM diagnoses can strengthen an ontology ranker while keeping candidate evidence—but evaluating the combination first requires auditing shared publication sources.

Read the original paper · PDF

About this fictional case

Mira, Dana, the finding counts, the lists and all sandbox values are invented teaching examples. They imply no medical disease–phenotype relationships. The paper studies retrospective ranking, not clinical validity or autonomous diagnosis. Limitations

Generate independently; learn influence; fuse the union

Generate ontology and LLM rankings independently, score both with the same behavior-based network, and use its patient-specific weights to fuse reciprocal ranks over their candidate union. §4, Figure 1; §4.1–4.2

The LLM is a second diagnostician, not just a reordering tool. A small shared network looks at how each list behaves and how its candidates fit the patient’s findings, then determines how much each list contributes. Covered candidates keep their ontology evidence; that is separate from explaining the gate itself. §4.1; §6.4

Concrete run · untrained teaching scorer

The union includes C. Favoring the LLM can move C to first place, but does not create a stored ontology evidence card for C.

The learned rule uses observable behavior, not model identity. In the transfer experiment the target LLM’s entire backbone family is excluded before training and model selection. §1; §4.3

What differs from earlier hybrids?

LA-MARRVEL refines phenotype-based gene candidates; DeepRare coordinates specialist tools and external evidence. Here the LLM independently adds disease candidates. Hard routers choose a complete list; this gate mixes candidate contributions. Conventional fusion baselines receive the same lists and pools. §2; §6.3; A.4

What enters each stage—and where the evidence comes from

HPO organizes findings in a hierarchy. HPOA attaches findings to diseases with recorded sources. A paper may supply both a benchmark patient’s findings and a disease’s supporting annotation. §2–3

Predict: A case comes from publication P. Three disease–finding entries have recorded sources {P}, {P,Q}, and none. Which does LOPO remove?

Choose an answer (optional)

1. Phenotype-only input

Only permitted HPO findings, available age/onset/sex and a hashed identifier enter. Disease labels, genes, variants, source identifiers and paths are excluded. Phenomizer uses observed findings; the LLM also sees exclusions and demographics. Publications stay in one split. §5; A.1

2. LOPO

Remove relations supported solely by the case publication across candidate diseases. Keep corroborated or unprovenanced entries, add HPO ancestors of the remaining annotations, and rerun the unchanged ranker. Information content stays fixed. Finding concepts themselves are not deleted. §3

3. Independent rankings and candidate union

Keep the ontology’s top 100 and at most 10 independent LLM diagnoses. A fixed lexicon maps names to OMIM identifiers, rejecting changes to explicitly numbered subtypes. Shared identifiers make agreement meaningful. Either list can supply candidates; neither can recover a disease absent from both. §4.1; A.2

4. Shared behavioral representation

Each list gets the same 39-feature format: 14 patient context + 4 list shape + 14 ontology support + 7 cross-list relationships. No model identity, architecture or parameter count enters. Support means phenotype similarity, likelihood-ratio evidence and curated coverage—not how confident the LLM sounds. Even LLM candidates outside the stored prefix are checked against curated profiles, using LOPO profiles here. §4.1; Table 9

5. Shared scoring gate

One network, with 48- and 24-unit hidden layers, scores both descriptions. A sigmoid of their score difference yields complementary weights for this patient. §4.2

6. Weighted reciprocal-rank fusion

Convert one-based positions to reciprocal rank scores. Missing candidates contribute zero. Add the two weighted contributions and sort the union—not native scores treated as comparable probabilities. §4.1–4.2

7. Candidate-level ontology evidence

Stored matched HPO terms and the ranker’s pp-value remain attached to covered candidates. They do not explain the entire gate. Computing support features for an outside-prefix candidate does not give it the stored ranker evidence card. §6.4

Independent generation, shared scoring, union fusion Permitted patient inputPatient cardPermitted phenotype-only patient fields Independent rankingsInput supplies each ranking independentlyOntology listLLM listT · top 100L · up to 10Teaching: [A, B]Teaching: [C, B] Identical representation contract describes listsdescribes ↓describes ↓Ontology descriptionLLM description39 features39 features14+4+14+714+4+14+7Teaching descriptorTeaching descriptor One shared scorer assigns complementary weightsscores ↓scores ↓First application of shared scorerSecond application of shared scorerSame scorer gSame scorer gRelative score TRelative score LShared parameter bracketshared parametersweights ↓ complementary influence Weighted contributions add over the unionUnion contribution rowsadds T + L → total (union)Candidates from either list are eligibleAbsence contributes zeroSum, then sort Evidence is attached only for covered candidatesEvidence attachment, not a gate explanationStored ontology matches: A, BC: no stored evidence cardEvidence is not generated by the gate
Stage 1 of 5

The two systems independently return candidates in one identifier space.

Notice: adding eligibility, changing influence and retaining evidence are three different operations. Figure 1

Teaching fixture · untrained scorer. Paper list sizes and feature labels are shown for comparison.

Exact 39-feature inventory · Table 9

Patient context (14): observed count; excluded count; log observed count; excluded fraction; mean, maximum, minimum and spread of observed rarity; mean and maximum observed specificity; mean excluded rarity; onset, age and sex availability.

List shape (4): log list length; top-score margin; top-10 score entropy; score spread. Native scores are rescaled within lists; the LLM uses reciprocal rank for these features.

Ontology support (14): rank-1, top-3 mean, top-10 mean, top-10 maximum, top-10 spread and rank of the maximum for both match score and likelihood-ratio evidence; log rank-1 profile size; mean log top-10 profile size.

Cross-list (7): reciprocal other-list rank for the first candidate and its top-3 and top-10 means; top-1 agreement; top-3, top-5 and top-10 Jaccard agreement.

Rarity is −log⁡-\log of the fraction of diseases annotated with a finding; specificity is HPO depth. Patient context and four top-k agreement measures are shared; the other 21 entries are component-specific or directional. §4.1; Table 9

Input audit, name mapping and reconstructed profiles

A planted gold disease name in a phenotype label is detected by the verifier. It also checks that no publication crosses splits. A.1, Phenotype-only input

Mapping uses candidate names and Mondo exact synonyms with OMIM cross-references; numbered subtypes are preserved. In the blinded expert audit, repaired mappings changed no Top-1 correctness outcome (0.00 Recall@1 points), although mapper misses were real. A.2; §6.4

LOPO rebuilds profiles by adding ancestors of remaining annotations, using fixed information content. It supplies both corrected rankings and corrected candidate-support profiles. §3; §4.1

Follow one outside-prefix disease into first place

Before seeing the arithmetic: with T=[A,B], L=[C,B], κ=0\kappa=0, and gate weights 0.25/0.75, which disease finishes first?

Choose an answer (optional)

Teaching example: fictional normalized identifiers, not invented OMIM accessions. The confirmed disease is C. Both lists use the same untrained teaching function g(q)=ln⁡(3)ReLU⁡(q)g(q)=\ln(3)\operatorname{ReLU}(q); the scalar descriptors are placeholders for behavior, not computed medical support.

Ranks start at one. Missing membership zeros a component’s contribution; it is not assigned a large finite rank. §4.1, Eq. 1

  1. Align independent rankings and form the union.
    T returns A then B; L returns C then B. C enters via L.

    Independent generation can add a candidate that a reranker restricted to T cannot return.

  2. Supply identically structured descriptions.
    The toy uses one descriptor per component.

    The paper instead uses 39 entries per component: 14+4+14+7. The format is shared, not a model-name lookup.

  3. Apply the shared scorer, then compute weights.
    Only the difference between the two scorer outputs sets influence.

    The same function evaluates each input. Neither weight is a correctness probability.

  4. Convert positions to rank scores.
    Reciprocal one-based ranks; zero for absence.

    Ordinary reciprocal rank favors a first-place candidate over a second-place one.

  5. Add weighted contributions and sort.
    Sum support from T and L over the union.

    The result is a new ranking, not a choice of one entire original list.

  6. Attach only stored evidence cards.
    A and B have stored ontology matches. C has no stored evidence card.

    Candidate expansion does not manufacture stored ranker evidence.

C can win despite missing the stored ontology list, but its evidence card remains absent.

What the teaching scorer leaves out; how ties are handled

No trained paper parameters are used. One artificial descriptor replaces standardized features and the learned MLP. The function simulates no phenotype matching, LLM inference, mapping, LOPO rebuilding, loss optimization or RAMEDIS shrinkage. It illustrates arithmetic, not clinical reliability.

Equal scores are grouped explicitly. Alphabetical display inside a group never counts as a scientific win; a tied gold first place is reported as a tie.

Fusion is neither reranking, hard routing, nor an explanation

Rerank only the retrieved pool

Same input on both sides: T=[A,B], L=[C,B], gold C

Restricted reranker

Can exchange A and B, but cannot return C.

Union fusion

C can become first with favorable L influence.

One difference: independent generation changes eligibility, not just ordering. §1; §4.1

A correct disease absent from both lists

Same input: T=[A,B], L=[D,B], gold C; default toy weights

Imagined final generator

Could generate another diagnosis—but that is not the studied method.

Union fusion

C is not eligible, whatever the weight.

One difference: fusion ranks a fixed union; it does not diagnose again. §4.1

Choose one ranking—or mix contributions?

Same input: T=[A,B], L=[C,B]; equal teaching descriptors; flatter rank decay

Hard router

Selects either complete list, so A or C must be first.

Continuous fusion

The shared runner-up B can become first.

One difference: adding contributions can promote a candidate neither component placed first. §4.2; §6.3

Exact shared-runner-up calculation

Make a candidate win—and find the ceiling

Make an outside-prefix disease win, then show why neither favorable weights nor flatter ranks can rescue a disease absent from the union.

Teaching sandbox · artificial behavior descriptors · untrained shared scorer

Default teaching advantage

Try these tasks

  1. From default, move the advantage to −1. Which top candidate changes?
  2. Set the advantage to zero. Compare sharp and flat ranks: can a tie become a shared runner-up win?
  3. Load “Absent from both lists” and move both remaining controls. Can C ever appear?
  4. Reset and inspect the winner’s evidence status. Did winning create stored matches?

Default fixture loaded.

Shared scorer → complementary weights → union scores.

Live teaching contributions · dimensionless scores
DiseaseRanks T / LRank scores T / LWeighted T + LTotalStored evidence
T covers A and B; independent L supplies C.

Invariant: weights sum to one; absence zeros a component’s contribution; outputs belong to the union. High scores do not create stored evidence.

The paper uses κ=0\kappa=0 on Phenopacket Store and κ=60\kappa=60 on RAMEDIS. The toggle here changes only rank decay; it does not reproduce either corpus’s performance. §4.1; A.5, RAMEDIS

Pure-function specification and expected outputs

The model constructs nonnegative descriptors from the signed advantage, applies the same rectified scalar scorer to each, and returns ranks, contributions, tie groups, evidence membership and gold status. No learned clinical weighting is simulated.

Default, reversed, equal-weight, flatter-rank, missing-gold and swap-symmetry cases are checked.

The function fuseToy(delta, kappa, scenario) and generic fuseLists(T, L, qT, qL, kappa, gold) are included in this page’s model script.

The four equations behind the trace

Each equation corresponds to one step above. Fixture values below remain the default worked example, independent of playground changes.

re(d)={1κ+ranke⁡(d),d∈Ce,0,d∉Ce.r_e(d)=\begin{cases}\dfrac{1}{\kappa+\operatorname{rank}_e(d)},&d\in C_e,\\0,&d\notin C_e.\end{cases}

Convert rank to a common score: zero for absence, flatter decay at larger κ\kappa. §4.1, Eq. 1

SymbolMeaning · default fixture
e∈{T,L}e\in\{T,L\}Component: ontology T or LLM L.
ddCandidate: A, B or C.
CeC_eComponent’s returned candidates.
ranke⁡(d)\operatorname{rank}_e(d)One-based list position.
κ\kappaShared nonnegative rank-decay constant.
re(d)r_e(d)Component’s rank score.
ae=gθ(ϕe),e∈{T,L}.a_e=g_\theta(\phi_e),\qquad e\in\{T,L\}.

Apply the same learned network to both behavioral descriptions to obtain relative scores. §4.2, Eq. 2

Production: standardized 39-feature vectors and a learned 48/24-unit ReLU MLP. Teaching substitution: one artificial descriptor and an untrained scalar function.

SymbolMeaning · default fixture
eeT or L: both are scored.
ϕe\phi_e39-dimensional description; replaced by toy q.
gθg_\thetaShared network; toy replacement g(q)=ln⁡(3)ReLU⁡(q)g(q)=\ln(3)\operatorname{ReLU}(q).
θ\thetaLearned parameters; none from the paper are used here.
aea_eScalar component score.
wT=σ(aT−aL),wL=1−wT.w_T=\sigma(a_T-a_L),\qquad w_L=1-w_T.

Turn relative scores into complementary, patient-specific weights—not disease correctness probabilities. §4.2, Eq. 3

SymbolMeaning · default fixture
σ\sigmaLogistic sigmoid.
aT,aLa_T,a_LShared scorer outputs.
wT,wLw_T,w_LRelative fusion influence.
s(d)=wTrT(d)+wLrL(d).s(d)=w_T r_T(d)+w_L r_L(d).

Add weighted rank scores for each union candidate, then sort. §4.2, Eq. 4

SymbolMeaning · default fixture
ddUnion candidate A, B or C.
s(d)s(d)Final disease fusion score.
wT,wLw_T,w_LComponent weights.
rT(d),rL(d)r_T(d),r_L(d)Component rank-derived scores.

The gate is trained against the confirmed disease with listwise cross-entropy over the union. No label tells it which system to trust. Training examples require gold-in-union; at test time a gold disease outside the union counts as an error. §4.2–4.3

Training, standardization and family holdout

The whole target backbone family is excluded before sampling, standardization and early stopping. Source models share fixed budgets of 7,024 training and 1,094 validation rows. Means and standard deviations use both component vectors in source-training rows. The shared ReLU MLP has hidden widths 48 and 24. The target receives the unchanged gate, with no target-model labels. §4.3; A.4, Gate optimization

Exchangeability: what must be swapped together?

Swap descriptions and rank scores together. The shared scorer exchanges component weights, leaving every final disease score unchanged. Swapping only labels is not the mathematical test. §4.2

What the experiments establish—and what the baselines reveal

Predict: The same 39-feature design is evaluated on RAMEDIS. Which conclusion is supported by the reported experiment?

Choose an answer (optional)

Recall@1 is the fraction of cases whose confirmed disease is first; coverage only asks whether it enters the pool. Learned estimates average five seeds. Seed standard deviations describe optimization variation; 2,000 paired bootstrap resamples describe cohort uncertainty, grouped by publication here and by gold disease on RAMEDIS. §5; A.1, Systems and evaluation

First audit the shared source

On 2,227 test cases, LOPO changes Phenomizer Recall@1 from 0.4481 to 0.1217: a reported paired decrease of 32.64 points [26.06, 40.15]. §6.1, Table 1

In the 597-case matched cohort, case-source deletion changes 0.4238 to 0.1943; matched independent deletion changes 0.4238 to 0.4305. Among 1,717 cases retaining a gold profile, the reported decrease is still 21.43 points. The effect is not just generic deletion burden or emptied profiles. §6.1, Table 2

Then test transfer of the gate

With the target family held out, fusion reaches macro Recall@1 0.2002 (±0.0007), versus ontology 0.1217, LLM 0.1072, RRF 0.1094 and CombMNZ 0.1515. The paper reports +7.86 percentage points over Phenomizer and a paired +4.88 points [3.12, 6.77] over CombMNZ. Abstract; §6.2; Table 12

For test-only DeepSeek-V4-Flash, frozen fusion reaches 0.2176 versus DeepSeek 0.1657 and ontology 0.1217, averaged over five seeds. No DeepSeek-labelled examples enter training, selection or standardization. §6.2

The external-corpus boundary

On 624 RAMEDIS cases from 74 diseases, refitted fusion reaches 0.3573 versus ontology 0.1554, LLM macro 0.2570 and RRF 0.3562. The gate–RRF difference is 0.11 points [-0.32, 0.46]. MedGemma-27B alone reaches 0.4599 versus fusion 0.4183. Fusion beats both components in 7 of 8 arms, not all. §6.2, Table 4

Identical phenotype profiles stay in one fold. The gate is refitted using all eight LLMs’ rankings, including the target’s, in training/validation folds. Validation selects weight shrinkage toward equal weights. This is not frozen cross-corpus transfer or family holdout. A.5, RAMEDIS

What carries the gain—and the evidence?

Removing ontology support lowers Recall@1 from 0.2002 to 0.1780; support plus agreement alone reaches 0.1991. These signals account for nearly all the measurable Phenopacket Store gain. The shared architecture is a smaller, reproducible refinement, not the main source. §6.3, Table 5

Stored evidence remains for 90.8% of correct fused predictions. Outside-prefix predictions are 18.0% of all top predictions and 9.2% of correct ones. Their promotion accuracy is 10.3%, versus 52.7% for promotions from ontology ranks two through ten. At K=100, gold coverage is 46.6% in T and 55.1% in the union; Recall@1 is only 0.2002. Eligibility is not successful ranking. §6.4; Table 15

Controls, uncertainty and sensitivity

Matched independent annotations are chosen within disease by information content, depth, HPO branch and profile contribution—not patient-query agreement. Source deletion’s decrease is 22.95 points [15.10, 32.63]; matched deletion’s reported decrease is -0.67 points [-2.39, 0.79]. Surviving profiles show 0.3722 → 0.1578, a 21.43-point decrease [15.54, 28.62]. Provenance is not causally separated from patient-specific semantic alignment. §6.1, Table 2

The effect survives independent stock LIRICAL evaluation: 0.4868 → 0.1724, reported decrease 31.43 points [24.82, 38.72]. Table 1

The ±0.0007 around the gate is seed standard deviation, not the clustered cohort confidence interval. Bootstrap resamples average the same five frozen predictions. Paired percentage-point differences should not be recomputed from rounded display values or mistaken for relative percentages. §5; A.1

Complete candidate-depth refits at K=10/50/100 give Recall@1 0.2004/0.2008/0.2002. Expanding the K=100 gate to the exact 8,553-disease ordering at inference is not a refit; Table 15 still displays 0.2002. More coverage alone does not guarantee top-rank improvement. §6.2; Table 15

Under ordinary uncorrected rankings, full retraining improves 0.4481 to 0.5261, reported +7.79 points [1.73, 14.55]. With an exclusion-aware naive-Bayes component, fusion improves 0.1361 to 0.2115, +7.54 points [1.87, 14.12]. On independently supported surviving profiles, the frozen gate improves 0.1578 to 0.2597, +10.19 points [2.65, 18.04]. The gain does not depend on a lowered LOPO baseline or only on extra negative findings. §6.2

Two experts audited 400 failed names or empty parses. Among 190 random unmatched occurrences, 22.1%–23.2% were mapper misses and 48.9%–52.6% invalid or hallucinated. Agreement was 86.0%, Cohen’s κ=0.782\kappa=0.782. Repairs changed 5–9 top labels but no Top-1 correctness outcome (0.00 Recall@1 points). §6.4; A.2

Four stochastic Phenomizer LOPO runs give 0.1217, 0.1307, 0.1226, 0.1266. The uncapped diagnostic variant gives 0.4688 uncorrected and 0.1441 LOPO versus reference 0.4481 and 0.1217. Absolute values are implementation-sensitive; the paired direction persists. A.3, Tables 7–8

What these results do not show

They are not a universal estimate of ontology-tool accuracy, a separate causal estimate of provenance versus semantic alignment, an LLM-pretraining audit, or clinical validation. §6.1; Limitations

Our inference: the conditional 90.8% statistic is not an all-output evidence rate or a new-patient correctness probability. Ablations also do not explain the full decision for an individual case.

Where this ranking method stops

Our inference: the sandbox cannot tell when a patient’s evidence should favor the LLM. Its artificial scorer illustrates arithmetic and symmetry, not learned clinical reliability.

Our inference: evidence retention conditional on a correct output cannot be used as evidence availability for every output.

Publication-level provenance and resource-specific overlap

HPOA cannot assign an annotation to one patient in a multi-patient paper. The matched control does not separate provenance and patient-specific semantic alignment as causal effects. §6.1

Phenopacket Store overlap is 74.6% among 10,348 cases; RareArena RDS is 0.76% among 2,645, and RDC is 0.81% among 1,481. Do not generalize the first prevalence to all rare-disease benchmarks. B.1, Table 11

Open questions
  • Would frozen parameters transfer across corpora without refitting or target-model examples?
  • Which future behavior shifts would invalidate these feature-to-weight relationships?
  • Can outside-prefix expansion become more reliable while supplying inspectable evidence?
  • How much undocumented source reuse remains?
  • Would prospective, variant-aware clinical evaluation support the same benefits?

Questions, not established results.

Glossary
HPO
Human Phenotype Ontology: findings and their hierarchy. §2
HPOA
Annotation database: disease–finding relations and recorded supporting sources. §3
Publication-source overlap
An annotation supporting the gold disease cites the case’s source publication. §3
Source-exclusive annotation
The case publication is its only recorded support. §3
LOPO
Leave-one-publication-out filtering, profile reconstruction and reranking. §3
Candidate union
All diseases returned by either component; the only diseases fusion can rank. §4.1
Ontology support
Candidate fit and coverage measured by phenotype similarity, likelihood-ratio evidence and annotations. §4.1
Exchangeable shared scorer
One scorer for both; swapping descriptions and rank scores swaps weights but preserves disease scores. §4.2
Candidate-level ontology evidence
Stored matched HPO terms and ranker pp-value, not a complete gate explanation. §6.4
Family-held-out transfer
Exclude target and entire backbone family before training, standardization and selection; apply unchanged. §4.3
Information content; specificity
Rarity is minus the logarithm of the fraction of diseases annotated with a finding; specificity is HPO depth. A.4, Table 9

Explain it to a colleague

Answer each in your head before opening it.

Reconstruct the default fixture’s score for B and explain why missing T support does not disqualify C.

Answer and reasoning

Eligibility comes from the union. Missing membership zeros one contribution, not the whole candidate.

Union eligibility and rank contribution are separate operations.

A new fixture has T=[X,Y], L=[Y,Z], sharp reciprocal ranks, and weights 0.75/0.25. Predict the final ranking. Which candidate lacks a stored ontology evidence card?

Answer and reasoning

Use the same union, reciprocal positions and missing zeros. Evidence membership is still a separate question.

A colleague calls RAMEDIS “proof that the frozen gate generalizes across datasets and beats RRF.” Reconstruct the experiment and replace that claim.

Answer and reasoning

The gate was refitted within RAMEDIS folds using all eight LLMs’ rankings, including the target’s, with held-out patient predictions. It reached 0.3573 versus RRF 0.3562: 0.11 points [-0.32, 0.46]. Fusion helps in this corpus; frozen cross-corpus transfer and a detectable learned-weight advantage over RRF were not established. §6.2; A.5, RAMEDIS

What was excluded from training—and the paired uncertainty—determines the supported claim, not simply the larger point estimate.