Large Language Models Perform Diagnostic Reasoning

Cheng-Kuang Wu, Wei-Lin Chen, Hsin-Hsi Chen · Submission to Tiny Papers @ ICLR

TL;DR

Researchers have developed Diagnostic-Reasoning Chain-of-Thought (DR-CoT), a prompting strategy that enables Large Language Models (LLMs) to act as effective diagnostic agents. By instructing the model to maintain a "differential diagnosis" (a list of possible conditions) to guide its questions, they achieved a 15% boost in diagnostic accuracy over standard prompting, proving that expert-level medical reasoning can be elicited from general-purpose models.

What Problem Does This Paper Address?

Automatic Diagnosis (AD) is a complex task requiring a system to interact with a patient, gather evidence, and narrow down a list of potential diseases. Historically, this has been a "bottleneck" for AI for two reasons:

  1. Rigidity: Prior systems often relied on structured data (check-boxes) rather than natural language, making them feel unlike a real doctor-patient interaction.
  2. Scale: Most existing models were trained using Reinforcement Learning on tiny datasets, limiting them to predicting only 4–5 different diseases.

The authors identify that the "missing link" in using LLMs for this task is the lack of a structured reasoning process. In the real world, doctors don't just guess; they form a Differential Diagnosis (DDx)—a mental shortlist of possibilities—and ask specific questions to rule them out. This paper explores whether forcing an LLM to follow this same mental framework can unlock its latent medical knowledge.

Methods

The authors built their system using InstructGPT (text-davinci-003) and introduced two primary innovations:

  • DR-CoT Prompting: Unlike standard "Chain-of-Thought" (which often just asks a model to "think step-by-step"), DR-CoT explicitly modifies the prompt to:
  • Summarize currently observed positive and negative clinical findings.
  • Formulate a ranked Differential Diagnosis (DDx).
  • Select the next question specifically to narrow down that DDx.
  • Role-Playing Evaluation Framework: To test the system without risking real patients, the researchers created a "self-chat" environment. One LLM instance acts as the doctor, while another instance acts as the patient, following a hidden "patient profile" containing specific symptoms and medical history.

Datasets

The study utilized DDXPlus, a large-scale dataset for automatic medical diagnosis.

  • Scope: It includes 49 different diagnoses and 223 types of clinical evidence (symptoms, history, etc.).
  • Comparison: This is significantly more robust than older datasets which typically only featured 4–5 diagnoses.
  • Setup: The authors tested the model in In-Domain (ID) settings (where the model saw similar initial symptoms in its few-shot examples) and Out-Domain (OD) settings (where the initial symptoms were entirely new to the model).

Key Insights and Ideas

  • The "Hidden" CoT: The authors hypothesize that the diagnostic process (Evidence $\rightarrow$ DDx $\rightarrow$ Next Question) is the natural "Chain-of-Thought" for medicine. By making this process explicit in the prompt, the LLM becomes much more focused.
  • Knowledge Elicitation vs. Knowledge Injection: The model used was trained on general text, not specialized medical journals. The results suggest that the "expert knowledge" is already inside the LLM; we just need the right "key" (the prompt) to unlock it.
  • Efficiency of Reasoning: DR-CoT doesn't just result in a more accurate final answer; it makes the model "smarter" during the process. The system reaches a correct diagnosis in fewer turns compared to standard prompting.

Key Results

  • Accuracy Boost: DR-CoT improved diagnostic accuracy significantly across different settings. As shown below, it achieved a 15.5% absolute improvement in in-domain (ID) tests and up to an 18% boost in out-domain (OD1) tests compared to standard prompting.
Diagnostic accuracy across in-domain and out-domain settings
  • Rapid Convergence: The DR-CoT model's accuracy climbs much more steeply as the number of dialogue turns increases, whereas standard prompting plateaus or grows much slower.
Diagnostic accuracy vs. dialogue turns
  • Human Validation: A physician evaluated 100 sampled interactions and found that the DR-CoT model asked "more critical questions" for establishing a correct diagnosis compared to the baseline.
  • Unbounded Labels: Unlike previous Reinforcement Learning models that could only choose from a fixed list of 5 diseases, this LLM-based approach can theoretically diagnose any condition it has encountered in its vast training data.

Limitations and Future Work

The authors are careful to note that this is a preliminary exploration and not a tool ready for clinical use. Key limitations include:

  • Lack of Real-World Validation: The system was tested against a "patient bot," not real humans in a clinical setting.
  • Safety and Ethics: The results are not validated for medical safety. The authors emphasize that while this could assist clinicians (e.g., in telemedicine), it requires much more thorough investigation before it can be deployed.
  • Prompt Sensitivity: Like all LLM methods, the performance is highly dependent on the quality of the few-shot exemplars provided in the prompt.

Future work could involve fine-tuning LLMs on specific medical dialogue datasets or integrating the system with real-time medical databases to verify the "Differential Diagnosis" steps.

Summary updated

BibTeX
@misc{wu2023large,
  author = {Cheng-Kuang Wu and Wei-Lin Chen and Hsin-Hsi Chen},
  title = {{Large Language Models Perform Diagnostic Reasoning}},
  year = {2023},
  eprint = {2307.08922},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.08922},
}
Figure