CoD, Towards an Interpretable Medical Agent using Chain of Diagnosis

Junying Chen, Chi Gui, Anningzhe Gao, Ke Ji, Xidong Wang, Xiang Wan, Benyou Wang

Abstract

Large Language Models (LLMs) have shown potential in medical diagnostics but often lack transparency and the ability to perform effective follow-up inquiries. This paper presents Chain-of-Diagnosis (CoD), a framework that structures the diagnostic process into five interpretable steps: symptom abstraction, candidate disease recall, diagnostic reasoning, confidence assessment, and decision-making. By utilizing entropy-based logic for symptom checking and a threshold-based decision mechanism, the resulting model, DiagnosisGPT, achieves high accuracy and reliability. Evaluations on multiple benchmarks, including the newly introduced DxBench, show that DiagnosisGPT outperforms existing general and specialized models, maintaining over 90% accuracy while providing clear, clinical-style reasoning.

Introduction

The integration of LLMs into healthcare is currently hindered by two primary issues: arbitrary diagnosis and ineffective inquiry. Models often jump to conclusions without sufficient evidence or fail to ask the specific questions needed to differentiate between similar conditions. In clinical settings, such "black box" behavior is unacceptable. To address this, the Chain-of-Diagnosis (CoD) framework was developed to mirror the structured, cautious approach of human physicians, ensuring that every step of the diagnostic path is visible and justifiable.

The Chain-of-Diagnosis (CoD) Framework

The CoD framework transforms the diagnostic task into a sequential reasoning process. It begins with Symptom Abstraction, converting patient descriptions into standardized medical terminology. Next, Candidate Disease Recall identifies likely diagnoses from a comprehensive database of over 9,000 possibilities. Diagnostic Reasoning then performs a comparative analysis of symptoms against these candidates.

A critical step is the Confidence Assessment, where the model generates a probability distribution rather than a single label. Finally, Decision Making uses a confidence threshold ($\tau$) to determine whether to provide a diagnosis or perform further Symptom Checking. This inquiry phase uses entropy reduction to identify which potential symptoms would most effectively minimize diagnostic uncertainty.

The Chain-of-Diagnosis (CoD) framework illustrating the five-step reasoning process from initial patient report to final decision.

Experimental Setup and Datasets

The research utilized a diverse set of data for training and evaluation. A Synthetic CoD Dataset of 48,020 instances was generated from medical encyclopedias to provide high-quality reasoning chains without privacy risks. Evaluation was conducted on the Muzhi and Dxy datasets, as well as DxBench, a new benchmark of 1,148 real-world doctor-patient dialogues covering 461 diseases.

Results and Discussion

DiagnosisGPT demonstrated superior performance across all benchmarks, consistently outperforming general-purpose models like GPT-4 and specialized medical LLMs. A key finding is the relationship between the confidence threshold and diagnostic accuracy. By adjusting $\tau$, users can control the model's rigor; as shown in the experimental results, setting a threshold of approximately 0.55 allows the model to achieve over 90% accuracy across datasets.

Diagnosis Accuracy and Diagnostic Rate vs. Confidence Threshold on the DxBench dataset, showing the trade-off between rigor and diagnostic frequency.

Unlike general-purpose models, which can become confused by additional data, DiagnosisGPT's accuracy improves as it gathers more information through targeted inquiries. This validates the entropy-reduction strategy as a mathematically grounded method for clinical information gathering.

Conclusion

CoD provides a robust path toward interpretable medical AI by making the "thought process" of the model transparent and controllable. While currently limited by its reliance on synthetic training data and a finite disease database, it establishes a framework for safer, more transparent clinical decision support. Future developments will focus on multi-modal integration, such as lab results and imaging, to further enhance diagnostic depth.

Summary updated

BibTeX
@inproceedings{chen2025cod,
  author = {Junying Chen and Chi Gui and Anningzhe Gao and Ke Ji and Xidong Wang and Xiang Wan and Benyou Wang},
  title = {{CoD, Towards an Interpretable Medical Agent using Chain of Diagnosis}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure