Abstract
The field of medical diagnosis has undergone a significant transformation with the advent of large language models (LLMs), yet the challenges of interpretability within these models remain largely unaddressed. This study introduces Chain-of-Diagnosis (CoD) to enhance the interpretability of LLM-based medical diagnostics. CoD transforms the diagnostic process into a diagnostic chain that mirrors a physician's thought process, providing a transparent reasoning pathway. Additionally, CoD outputs the disease confidence distribution to ensure transparency in decision-making. This interpretability makes model diagnostics controllable and aids in identifying critical symptoms for inquiry through the entropy reduction of confidences. With CoD, we developed DiagnosisGPT, capable of diagnosing 9604 diseases. Experimental results demonstrate that DiagnosisGPT outperforms other LLMs on diagnostic benchmarks. Moreover, DiagnosisGPT provides interpretability while ensuring controllability in diagnostic rigor.
Introduction
While Large Language Models (LLMs) like GPT-4 have demonstrated remarkable capabilities across various domains, their application in medical diagnosis is hindered by two primary issues: arbitrary diagnosis and ineffective inquiries. Current models often jump to conclusions prematurely or fail to ask questions that meaningfully improve diagnostic accuracy. In a clinical setting, "black-box" decision-making is unacceptable. There is a critical need for frameworks that provide both interpretability—understanding the reasoning behind a diagnosis—and controllability—the ability to adjust the rigor of the diagnostic process.
The Chain of Diagnosis (CoD) Framework
To address these challenges, we propose the Chain of Diagnosis (CoD), a framework that emulates the step-by-step reasoning of a human physician. The process is divided into five distinct stages:
- Symptom Abstraction: Converting raw patient descriptions into standardized medical terminology.
- Candidate Disease Recall: Retrieving the most likely diseases from a comprehensive database of over 9,000 conditions.
- Diagnostic Reasoning: Analyzing the alignment between abstracted symptoms and candidate diseases through a transparent "thought process."
- Confidence Assessment: Generating a probability distribution across the candidate diseases rather than a single label.
- Decision Making: Utilizing a confidence threshold ($\tau$) to decide whether to issue a diagnosis or ask a follow-up question based on Entropy Reduction (identifying the symptom that most reduces uncertainty).
Data Generation and Benchmarking
Training a medical agent requires high-quality data while respecting patient privacy. We developed a method to "reverse-engineer" disease encyclopedias, extracting structured information for 9,604 diseases and using GPT-4 to generate 48,020 synthetic patient cases.
For evaluation, we utilized public benchmarks like Muzhi and Dxy, and introduced DxBench. DxBench is a more rigorous real-world benchmark derived from the MedDialog dataset, comprising 1,148 high-quality cases across 461 diseases and 15 medical departments.
Key Results and Controllability
Our model, DiagnosisGPT, consistently outperformed state-of-the-art models. On the Dxy dataset, DiagnosisGPT achieved 75.4% accuracy, surpassing GPT-4 (65.4%) and Claude-3-Opus (73.1%).
A key feature of CoD is the ability to control diagnostic rigor via the confidence threshold ($\tau$). As shown in the experimental results, increasing $\tau$ allows the model to reach higher accuracy levels by being more "cautious" and asking more clarifying questions. At a threshold of $\tau=0.55$, the model achieved over 90% accuracy across all tested datasets.
Discussion and Limitations
The CoD framework successfully bridges the gap between the raw power of LLMs and the clinical requirement for transparent reasoning. By using information theory (entropy reduction) for inquiries, DiagnosisGPT ensures that every question asked is mathematically driven to reduce diagnostic uncertainty.
However, limitations remain. The model's scope is currently restricted to the 9,604 diseases in its training database. Furthermore, while synthetic data is a powerful tool for privacy-preserving training, it may not fully replicate the complexities and "noise" of real-world clinical interactions. DiagnosisGPT is a research tool and is not intended for direct clinical use without human oversight. Future work will focus on integrating multi-modal data, such as laboratory results and medical imaging, into the diagnostic chain.
Summary updated