Retrieval-Augmented and Knowledge-Grounded Language Models for Faithful Clinical Medicine

Fenglin Liu, Bang Yang, Chenyu You, Xian Wu, Shen Ge, Zhangdaihong Liu, Xu Sun, David A. Clifton

TL;DR

The Re³Writer framework significantly improves the reliability of clinical language models by mimicking the way physicians work: retrieving past "working experience" and reasoning with "medical knowledge." By grounding generation in structured clinical data and knowledge graphs, the authors demonstrate a substantial reduction in model "hallucinations," making AI-generated patient discharge instructions safer and more useful for clinicians.

What Problem Does This Paper Address?

Clinician burnout is a global crisis, with over half of US physicians reporting symptoms. A major contributor is the administrative burden of documentation, specifically writing Patient Instructions (PI). These are the critical summaries given to patients at discharge, explaining their condition, what they need to do at home, and why it matters.

While Large Language Models (LLMs) could theoretically automate this, they suffer from two major flaws in medicine:

  1. Hallucinations: Generating plausible-sounding but factually incorrect medical advice.
  2. Complexity: Patient health records are long, messy, and multi-modal (notes, labs, medications), making it hard for standard models to extract the most relevant instructional information.

Methods

The authors propose Re³Writer, a framework consisting of three core components: Retrieve, Reason, and Refine.

  • Retrieve (Working Experience): When faced with a new patient, the system looks at their clinical codes (diagnoses, medications, procedures) and retrieves the discharge instructions of the most similar historical patients from the training set. This acts as a "template" or "experience" for the model.
  • Reason (Medical Knowledge): The system builds a global medical knowledge graph where nodes are clinical codes and edges represent their co-occurrence in medical literature/records. A Graph Convolutional Network (GCN) processes this graph to provide a structured understanding of how different medical concepts relate.
  • Refine (Adaptive Integration): This is the "secret sauce." During text generation, the model uses an adaptive gating mechanism ($\lambda_1$ and $\lambda_2$) to decide how much to weigh the retrieved experience versus the reasoned medical knowledge for every single word it produces.
Figure 2: We take the Transformer [33] as our baseline as an example to illustrate our Re3Writer: Retrieve, Reason, and Refine, which is designed to first retrieve related working experience from historical PIs written by physicians and reason related medical knowledge from a medical knowledge graph; then adaptively refine and merge them to generate accurate and faithful patient instruction for current previously-unseen patient.

Datasets

The researchers introduced a new benchmark dataset called PI, derived from the publicly accessible MIMIC-III v1.4 resource.

  • Scale: ~35,000 pairs of health records and physician-written instructions.
  • Scope: Includes data from over 28,000 unique patients, covering 11,208 unique clinical codes.
  • Significance: Unlike general summarization datasets, this focuses specifically on the translation of complex clinical data into lay-friendly, actionable instructions.

Key Insights and Ideas

  • Mimicry as a Design Principle: The core innovation isn't just adding more data, but structuring the model's "thought process" to mirror a doctor's workflow—consulting past cases and applying general medical principles.
  • Medication is Key: Ablation studies revealed that retrieving based on medication codes provided the biggest performance boost, likely because discharge instructions are heavily focused on post-hospital drug regimens.
  • Knowledge > Experience: The "Refine" weights showed that the model generally prioritized reasoned medical knowledge ($\lambda_2 = 0.42$) over specific retrieved examples ($\lambda_1 = 0.26$), suggesting that general medical logic is more broadly applicable than specific past cases.
  • Structured RAG: Instead of just retrieving raw text, the system uses structured clinical codes to find relevant context, which is much more precise in a medical setting.
An illustration of the constructed medical knowledge graph showing relationships between diagnoses, medications, and procedures.

Key Results

The Re³Writer framework was tested across five different language model architectures (from LSTMs to Transformers) and consistently outperformed them all:

  • Quantitative: Achieved relative improvements of up to 20% in BLEU-4, 11% in ROUGE-L, and 19% in METEOR.
  • Human Evaluation: In a blinded study, clinicians found the Re³Writer's output "helpful" 74% of the time, compared to only 32% for a standard Transformer baseline.
  • Faithfulness: Qualitative analysis showed the model was far less likely to invent "bloodstream infections" (a common hallucination) when the records actually indicated a "gallbladder infection."
Qualitative comparison showing how Re³Writer (blue/green text) aligns better with ground truth than the baseline (red text).

Limitations and Future Work

The authors are transparent about several hurdles:

  • Data Dependency: The model requires a large corpus of existing, high-quality physician instructions to learn effectively.
  • Human-in-the-loop: The system is intended to assist, not replace, doctors. There is a risk that busy clinicians might "rubber stamp" AI-generated notes without proper review.
  • Personalization: Future work aims to incorporate patient-specific factors like health literacy levels and cognitive status to tailor the tone and complexity of the instructions.
  • Process Control: The authors emphasize the need for rigorous "process control" to prevent unintended or unsafe usage in real-world clinical environments.

Summary updated

Abstract

Language models (LMs), including large language models (such as ChatGPT), have the potential to assist clinicians in generating various clinical notes. However, LMs are prone to produce ``hallucinations'', i.e., generated content that is not aligned with facts and knowledge. In this paper, we propose the Re$^3$Writer method with retrieval-augmented generation and knowledge-grounded reasoning to enable LMs to generate faithful clinical texts. We demonstrate the effectiveness of our method in generating patient discharge instructions. It requires the LMs not to only understand the patients' long clinical documents, i.e., the health records during hospitalization, but also to generate critical instructional information provided both to carers and to the patient at the time of discharge. The proposed Re$^3$Writer imitates the working patterns of physicians to first \textbf{re}trieve related working experience from historical instructions written by physicians, then \textbf{re}ason related medical knowledge. Finally, it \textbf{re}fines the retrieved working experience and reasoned medical knowledge to extract useful information, which is used to generate the discharge instructions for previously-unseen patients. Our experiments show that, using our method, the performance of five representative LMs can be substantially boosted across all metrics. Meanwhile, we show results from human evaluations to measure the effectiveness in terms of fluency, faithfulness, and comprehensiveness.
BibTeX
@inproceedings{liu2022retrieval,
  author = {Fenglin Liu and Bang Yang and Chenyu You and Xian Wu and Shen Ge and Zhangdaihong Liu and Xu Sun and Yang Yang and David A. Clifton},
  title = {{Retrieval-Augmented and Knowledge-Grounded Language Models for Faithful Clinical Medicine}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=dp0zWsdOV1h},
}
Figure