Graph-based rare-disease diagnosis systems read a patient's list of symptoms, place those symptoms on a large biomedical knowledge graph (a network linking phenotypes, genes, diseases and pathways), and rank the known diseases or genes that best explain them. These systems work under a closed-world assumption: they always return an answer from the diseases already in the graph. For an undiagnosed patient, the most important possible answer is often "none of these". Adding that answer creates a specific problem. The standard way to flag an unknown case is to notice that the model has little evidence for any known class. A patient with an ultra-rare but known disease produces exactly that signal, because such diseases have few training patients and sparse graph connections. Borrowed naively, open-world detectors would reject the rare patients the system exists to serve.
We propose to separate the two situations by measuring different quantities. Rarity is a property of a disease: how few patients and annotations support it. Novelty is a property of a patient: how much of their presentation no known disease can explain, even through ontology-aware matching. We build a rejection score around this per-patient explanation residual rather than around class-level evidence. We test it on held-out-disease versions of the simulated and real cohorts used by SHEPHERD and RareNet. The evaluation is stratified so that the central failure, false rejection of rare-known patients, is measured directly.
Core Claim
In knowledge-graph diagnosis, a disease with few patients still has a full phenotype annotation profile in the graph. "Little patient evidence" and "no explanatory disease" can therefore be pulled apart. Our claim is that a novelty score based on the phenotype residual will reject far fewer rare-known patients than class-level evidence scores do, at the same recall on truly novel patients. The residual is the information-weighted fraction of a patient's phenotypes left unexplained by the best-matching known diseases' annotations. The evidence scores it competes with are softmax confidence, embedding distance, and evidential "vacuity".
The hardest case is a novel patient whose nearest known disease is itself rare. We expect this case to separate our score from the simplest fix, which is to lower the rejection threshold for low-degree diseases. That fix would wave such patients through.
Where This Sits
Two lines of work motivate the gap. The first is knowledge-graph diagnosis. SHEPHERD trains a graph attention network on 40,000 simulated patients across 2,132 Orphanet diseases and embeds patient phenotype subgraphs near causal genes. RareNet prunes an m-hop neighborhood of a 1M-edge graph to about 50–60 nodes to reduce bias toward frequent genes. Both are rankers with no rejection option.
RareNet also exposes a second failure: in MyGene2 the causal gene fell outside the sampled neighborhood 43.1% of the time. An open-world system must therefore distinguish three cases, which a single "unknown" score conflates:
- the target is missing from the subgraph,
- the disease is missing from the graph,
- the patient presents atypically with a known disease.
The second line is open-world graph learning, which supplies candidate detectors but also constrains the design. EVINET splits uncertainty into dissonance (conflicting evidence among known classes) and vacuity (absence of evidence), and flags novelty through vacuity. That is exactly the signal ultra-rare known classes would also emit. G2Pxy synthesizes proxy unknowns by mixing hidden representations. POWN discovers new classes with prototypes but explicitly assumes homophily, meaning connected nodes share labels. That assumption fails on patient–phenotype–gene graphs, where neighbors are different entity types by construction. We therefore do not build on POWN-style propagation.
The closest work pairs imbalance with openness outside medicine or outside graphs:
- gDOC uses weighted per-class sigmoids with a fixed 0.75 threshold on citation graphs.
- Open-Set Semi-Supervised Learning for Long-Tailed Medical Datasets fixes classifier geometry to a simplex equiangular tight frame (class centers kept maximally and equally spread) and adds a one-vs-rest open-set branch on dermoscopy images.
- Open Set Medical Diagnosis compares thresholding, a background class and entropic losses on balanced tabular symptom vectors.
- OLTR++ rejects inputs far from memory centroids in long-tailed vision.
None of these uses the fact that, in a knowledge graph, rare classes come with explicit descriptions. That fact is the lever we pull.
Research Program
We work with a patient $p$ with phenotype set $P$, where each phenotype $h$ has an information content $\mathrm{IC}(h)$ from the Human Phenotype Ontology. For a known disease $d$ with annotated phenotype set $A_d$, the explanation residual is
$$ r(p,d)=\frac{\sum_{h\in P}\mathrm{IC}(h)\,\big[1-\max_{a\in A_d}\mathrm{sim}(h,a)\big]}{\sum_{h\in P}\mathrm{IC}(h)}, $$
In this formula, $\mathrm{sim}$ is an ontology similarity in $[0,1]$, such as the information content of the most specific shared ancestor, normalized. The residual ranges from 0 (fully explained by $d$) to 1 (nothing explained). Because distractor phenotypes are common in real patients, a single disease need not explain everything. We therefore take the patient-level residual $R(p)$ as the minimum over the top-$k$ diseases returned by the base ranker, after discounting the least-explained fraction $\alpha$ of phenotypes. The value of $\alpha$ is tuned on validation data.
The final rejector is a small calibrated model trained on simulated patients from diseases held out of the graph. It takes four inputs:
- $R(p)$,
- the base model's embedding score for its top candidate,
- that candidate's annotation count and graph degree,
- an indicator of whether the top candidates' genes fall inside the RareNet-style subgraph.
The last input lets the model produce three outcomes rather than two: diagnose, expand the neighborhood and re-rank, or reject as novel. The expand outcome turns RareNet's inclusion failure into a recoverable branch instead of a silent error.
As a secondary step, we cluster rejected patients by their unexplained phenotypes, the residual part of $P$, to propose candidate new syndromes. This is evaluated only by agreement with the held-out disease labels.
Baselines
The do-nothing reference is the unmodified SHEPHERD ranker, which never rejects and so has zero novel recall. It anchors diagnostic accuracy on known patients. The file's figures for it are Hit@1 of 40% and Hit@5 of 85% on the Undiagnosed Diseases Network (UDN) cohort. RareNet reports simulated Hit@1 of 27.0% against Shepherd's 13.3%, and a MyGene2 mean reciprocal rank rising from 17.0% to 30.5% when combined with Shepherd. Any rejector we add must not push these known-patient ranking metrics down by more than a pre-registered margin.
The post-hoc baselines apply to the same trained SHEPHERD+RareNet backbone:
- maximum-similarity thresholding,
- embedding-distance "reachability" in the style of OLTR++,
- EVINET-style vacuity from an evidential head.
The trained-rejector baselines are:
- a gDOC-style weighted one-vs-rest sigmoid head following gDOC,
- a background-class model trained with outlier exposure on simulated patients from auxiliary held-out diseases, following Open Set Medical Diagnosis.
That background-class method reports a correct classification rate of 92.30% ± 0.12 at a false positive rate of 0.2, against 89.50% ± 0.05 for thresholded cross-entropy, on balanced tabular data. There is no reported result on Lacuna for any open-set rejection method on SHEPHERD's simulated cohorts, MyGene2 or UDN, so we establish those numbers ourselves.
We expect the background-class model to be the strongest competitor. Simulated patients for unseen diseases are cheap to generate from the graph, so outlier exposure is fully available here, unlike in images.
Fairness rules apply to every method. All use the same backbone, the same simulated training pool, and the same auxiliary held-out diseases whenever a method uses outliers. Each receives an equal hyperparameter search of fixed trial count on one validation split of diseases disjoint from the test novel diseases. Thresholds for all methods are set on validation to hit the same novel-recall target.
Two ablations isolate the key ingredient. The first removes $R(p)$ from our rejector, leaving only embedding score plus degree and annotation count. This is the degree-aware calibration a reviewer would propose. The second removes the degree and annotation inputs, leaving only the residual.
Beating the strongest baseline means a lower false-rejection rate on the rarest known-disease tercile at matched 80% novel recall. The gap must exceed the seed-to-seed spread across five disease-split seeds, and overall ranking metrics must not drop.
Why not just…?
Why not just threshold the ranker's confidence? Softmax and similarity scores are overconfident on novel inputs. G2Pxy reports standard GNNs detect effectively 0% of unknowns, and OLTR++ reports distance-based rejection cutting open-set error from 43.6% to 29.9% relative to softmax. More importantly for us, any confidence score that is low for rare diseases will reject rare patients. The stratified false-rejection metric will show directly whether this happens.
Why not just lower the threshold for low-degree or sparsely annotated diseases? This is a real threat, and it is our first ablation. It will likely recover much of the rare-known false rejection. It fails, by construction, on novel patients whose closest known disease is rare, because it relaxes rejection exactly there. We build a dedicated test slice for this case: held-out diseases whose nearest known neighbor by phenotype overlap sits in the rarest tercile. If degree-aware calibration matches our score on that slice too, the residual adds nothing, and we will report that.
Why not just train a background "none of the above" class on simulated held-out diseases? Also a real threat, since graph simulation makes outlier exposure easy. The concern is that it learns the particular held-out diseases rather than the concept of unexplained phenotypes. It also shares the rarity confound, because rare known diseases contribute few positive training patients. We test this by varying how similar the auxiliary outlier diseases are to the test novel diseases: same organ system versus different. We also feed the residual into the background-class model to check whether the two are complementary rather than rivals.
Why not just use the simplex-frame long-tail classifier from the imaging work? Open-Set Semi-Supervised Learning for Long-Tailed Medical Datasets reports 41.16% open-set accuracy against OpenMatch's 9.94% on ISIC2018. However, a fixed frame over 2,000-plus diseases leaves very little angular margin between classes and cannot grow when new diseases are added. We include it as a head on the graph encoder, within the same tuning budget.
Proposed Experiments
The primary benchmark rebuilds SHEPHERD's simulation over the 2,132 Orphanet diseases. For each of five seeds, we remove 15% of diseases from the graph entirely: the disease nodes, their disease–gene edges and their phenotype annotations. We keep their simulated patients as the novel test set. The removed diseases are stratified by annotation density, so novelty does not correlate with rarity.
Known test diseases are split into terciles by annotation count and training-patient count. We report:
- novel-detection AUROC,
- false-rejection rate per rarity tercile at matched novel recall,
- Hit@1 and Hit@5 on accepted known patients,
- the three-way outcome accuracy for RareNet subgraph misses.
Real-cohort validation uses MyGene2 and UDN. We apply the same deletion protocol to each patient's true disease, which makes that patient novel with respect to the edited graph, and keep the unedited graph for the known condition. This matters because real patients' phenotypes deviate from curated annotations more than simulated ones do. The simulation may make the residual look better than it is, and the real cohorts are where atypical known patients test false rejection honestly.
The decisive check is the rare-neighbor novel slice described above. There we expect our score to keep novel recall while degree-aware calibration loses it. A second check is RareNet's missing-target cases: we measure whether the expand branch recovers the causal gene after enlarging the neighborhood, rather than wrongly rejecting the patient as novel.
A negative result on the rare-neighbor slice would be informative in its own right. It would mean that class-level calibration suffices for open-world rare-disease diagnosis, and that practical systems should adopt the simple fix.
References
- Few shot learning for phenotype-driven diagnosis of patients with rare genetic diseases
- Knowledge Graph Sparsification for GNN-based Rare Disease Diagnosis
- EVINET: Towards Open-World Graph Learning via Evidential Reasoning Network
- G2Pxy: Generative Open-Set Node Classification on Graphs with Proxy Unknowns
- POWN: Prototypical Open-World Node Classification
- Lifelong learning on evolving graphs under the constraints of imbalanced classes and new classes
- Open-Set Semi-Supervised Learning for Long-Tailed Medical Datasets
- Open Set Medical Diagnosis
- Open Long-Tailed Recognition in a Dynamic World