Manuscript Offprint

arXiv:2609.35549

RareDx: Controlled Knowledge Integration and Graph-Grounded Policy Optimization for Rare-Disease Diagnosis

Bo Zhang, Yuchen Wang, Dongbai Li, Matthew Yu Heng Wong, Qingkai Zeng, Lijun Wang, Tien-Yin Wong, Peng Cui, Tianyu Liu

Abstract

Rare-disease diagnosis is a long-tail reasoning problem: phenotypes are incomplete, individual disorders are sparsely documented, and relevant evidence is distributed across ontologies, gene annotations, and biomedical text. Language models consequently favor common conditions, miss rare candidates, or produce plausible but invalid names. We introduce RareDx, which couples controlled evidence use with knowledge-graph-grounded policy optimization. RareDx-Harness normalizes heterogeneous records into one ranked-diagnosis task and compares direct inference, static retrieval, adaptive tools, and structured phenotype-gene-disease reasoning over a shared knowledge layer. The training pipeline combines Top-10 post-training with RareDx-KGPO, our knowledge-graph-grounded policy optimization method. Its reward projects predictions into a canonical disease graph and integrates curated graded relevance, ontology proximity, biomedical similarity, and phenotype consistency. Vocabulary and output-budget constraints prevent dense partial credit from rewarding fabricated or overlong differentials. Across eight benchmarks, the complete RareDx system centered on Qwen3.5-9B reaches 38.34 macro Hit@10, 1.60 points above GPT-5.5 under the archived protocol; a disjoint validation-selection audit retains a 6.80-point routing gain over Direct on held-out cases. The 27B system reaches 23.53/36.56/40.76 at Hit@1/5/10. Controlled ablations show that retrieval is not uniformly helpful and that controlled routing is central to the gain. These results indicate that structured medical knowledge can turn a compact model into a competitive diagnostic ranker across heterogeneous long-tail settings in clinical practice.

1 Introduction

Rare diseases affect fewer than 1 in 2,000 individuals each, yet collectively affect more than 300 million people worldwide Valdez et al. (2016); Nguengang Wakap et al. (2020); Paul (2013); Jonker et al. (2024); Zhao et al. (2026). Diagnosis commonly takes 4-5 years Ghosh (2025): phenotypes are incomplete, heterogeneous, and shared with common disorders, increasing misdiagnosis risk Dong et al. (2020). Evidence is also dispersed across clinical records, genetic tests, specialist knowledge, and disease resources. A useful system must retrieve the right evidence, reject plausible distractors, and return a ranked differential of recognized disease entities.

Preprint.

Multimodal patient data and curated disease knowledge offer complementary diagnostic evidence Lee et al. (2022). Foundation models, including LLMs Thirunavukarasu et al. (2023) and vision-language models Liu et al. (2025a), further broaden the information accessible to medical AI systems Sarker et al. (2024); Liu et al. (2024); Tran et al. (2025); Du et al. (2025); Liu et al. (2026a, 2025b). RareBench Chen et al. (2024) and RareArena Chen et al. (2026a) evaluate general LLMs, while agentic systems combine retrieval Wang et al. (2025), multi-agent communication Dhatterwal et al. (2023); Chen et al. (2025), and tools. DeepRare Zhao et al. (2026) and Hygieia Liu et al. (2026b), for example, integrate these components. Structured systems such as AI-MARRVEL Mao et al. (2024), LIRICAL Robinson et al. (2020), and Exomiser Smedley et al. (2015) have demonstrated the value of phenotype, genotype, and disease knowledge for prioritization.

However, two methodological limitations remain. First, agentic diagnostic systems are often evaluated as monolithic pipelines, making it difficult to determine whether gains arise from the backbone model, retrieval context, tool policy, repeated sampling, or output normalization. Retrieval itself is not uniformly beneficial: irrelevant context can displace decisive evidence even when the knowledge base contains the reference disease. Second, exact-match rewards are too sparse for ranked rare-disease prediction. They assign the same failure signal to a clinically related disorder and an arbitrary error, whereas unconstrained semantic rewards may favor fabricated disease names or indiscriminate candidate enumeration. These limitations are particularly consequential for compact open models, which require reliable domain supervision to approach the diagnostic performance of closed-source LLMs in this long-tail setting reliably.

We introduce RareDx, coupling RareDx-Harness for controlled knowledge use with RareDx-KGPO for knowledge-graph-grounded post-training. The harness compares direct inference, static retrieval, adaptive tools, structured phenotype-gene-disease reasoning, and aggregation under one task and normalizer. RareDx-KGPO projects predictions into a medical graph and rewards graded relevance, ontology proximity, semantic similarity, and phenotype consistency while constraining invalid or overlong outputs. Across eight benchmarks, the complete 9B system reaches 38.34 macro Hit@10, 1.60 points above GPT-5.5 under the archived protocol; a disjoint selection audit retains a 6.80-point gain over Direct. The 27B system exceeds GPT-5.5 at all three cutoffs. Ablations show that retrieval is not uniformly useful and that graph-aware, controlled knowledge use drives the gain.

References (50)