Abstract
Generalist Large Language Models (LLMs), such as GPT-4, have demonstrated significant potential in medical domains, yet their utility in the complex field of rare diseases remains largely underexplored. Rare diseases affect approximately 300 million people globally, often resulting in prolonged "diagnostic odysseys" due to the scarcity of specialist knowledge. To address this, we introduce RareBench, a comprehensive benchmark designed to evaluate LLMs across four critical dimensions of rare disease clinical care. By leveraging a novel dynamic few-shot prompting strategy integrated with a massive rare disease knowledge graph, we demonstrate that LLMs can achieve diagnostic accuracy comparable to, or exceeding, senior specialist physicians. Our work includes the release of the largest open-source rare disease patient dataset to date, providing a foundation for future AI-driven clinical research.
Introduction
Rare diseases represent a significant "long-tail" challenge in global healthcare. While individual conditions are rare, their collective prevalence is vast. Diagnosis is notoriously difficult, often requiring years of consultation with multiple specialists. Recent anecdotal evidence, such as ChatGPT successfully diagnosing a complex case after 17 doctors failed, has sparked interest in the role of AI in this niche. However, systematic evaluation has been lacking. Existing benchmarks often focus on general medical knowledge (e.g., USMLE) rather than the specific, high-dimensional search space required to differentiate between over 7,000 rare disorders. RareBench fills this gap by providing a rigorous framework for assessing LLM performance in real-world clinical scenarios.
The RareBench Framework
RareBench evaluates LLMs across four distinct tasks that mirror the clinical workflow:
- Phenotype Extraction: Identifying and extracting symptoms from unstructured clinical notes.
- Screening: Assessing risk factors for specific rare conditions.
- Comparative Analysis: Distinguishing between common and rare diseases that present with overlapping symptoms.
- Differential Diagnosis: Identifying the most probable rare disease from a universal pool of possibilities.
Methodology: Knowledge-Integrated Prompting
To enhance the diagnostic capabilities of LLMs, the researchers developed a Knowledge Integration Dynamic Few-shot strategy. This approach moves beyond static prompting by utilizing a comprehensive knowledge graph synthesized from four major databases: the Human Phenotype Ontology (HPO), OMIM, Orphanet, and the Chinese Corpus of Rare Diseases (CCRD).
Central to this method is a novel Information Content (IC)-based random walk algorithm. By recognizing that specific symptoms (e.g., "cleft palate") carry more diagnostic weight than generic ones (e.g., "fever"), the algorithm creates embeddings that prioritize rare, highly informative phenotypes. This allows the system to retrieve the most clinically relevant cases to serve as "few-shot" examples, significantly narrowing the search space for the model and improving its reasoning accuracy.
Data Foundation
The study establishes a new gold standard for rare disease data by compiling the largest open-source dataset of its kind. The core of this dataset includes:
- PUMCH Dataset: 1,650 real-world cases from the Peking Union Medical College Hospital, spanning both rare and common conditions.
- Integrated Public Benchmarks: Data from MME, LIRICAL, HMS, and RAMEDIS.
- Differential Diagnosis Scale: The final evaluation for Task 4 involved 2,185 patient cases encompassing 421 distinct rare diseases.
Key Findings
GPT-4 vs. Specialist Physicians
In a head-to-head comparison involving 75 high-quality clinical cases, GPT-4 achieved a top-1 accuracy of 52.0%. This outperformed senior specialist physicians, who achieved an accuracy of 44.7%, even when the physicians were permitted to use external search tools. This suggests that LLMs can effectively synthesize vast amounts of rare disease knowledge that may be difficult for human specialists to recall or search for manually.
The Impact of Dynamic Prompting
The dynamic 3-shot strategy proved transformative for model performance. Across six different LLMs, this strategy led to a 108% average increase in top-1 recall compared to zero-shot baselines. Notably, this approach allowed smaller, open-source models like GLM4 and Llama2-7B to approach the zero-shot performance levels of GPT-4, democratizing access to high-level diagnostic assistance.
The Standardization Bottleneck
While LLMs excel at identifying symptoms within text (Entity Extraction), they struggle with Phenotype Standardization—the process of mapping those symptoms to formal medical terminologies. This remains the primary hurdle for automated extraction tasks, as models often fail to reconcile descriptive clinical language with standardized ontologies.
Limitations and Future Directions
Despite the promising results, several challenges remain for the integration of LLMs into clinical practice:
- Input Sensitivity: Models are sensitive to how symptoms are described and can be confused by "negated" phenotypes (e.g., "patient does not have a cough") or complex, descriptive symptoms.
- Multimodal Requirements: Rare disease diagnosis often relies heavily on non-textual data, such as MRIs, X-rays, and genetic sequencing. Future advancements will require Large Multimodal Models (LMMs) to process these diverse data types.
- Risk of Hallucination: The potential for AI to generate plausible but incorrect medical information necessitates that these tools be used as "specialist assistants" to support, rather than replace, human clinical judgment.
Conclusion
RareBench demonstrates that LLMs, particularly when augmented with structured medical knowledge, possess the potential to serve as powerful allies in the diagnosis of rare diseases. By bridging the gap between generalist AI and specialist medical needs, this research paves the way for a future where the diagnostic odyssey for millions of patients can be significantly shortened.
Summary updated