Medical Dialogue Response Generation with Pivotal Information Recalling

Yu Zhao, Yunxin Li, Yuxiang Wu, Baotian Hu, Qingcai Chen, Xiaolong Wang, Yuxin Ding, Min Zhang

Abstract

Medical dialogue systems (MDS) face significant challenges in processing long, noisy conversation histories where critical medical information is often dispersed across multiple turns. This paper introduces MedPIR (Medical response generation with Pivotal Information Recalling), a novel framework that addresses these challenges through two key innovations: a Knowledge-aware Dialogue Graph Encoder (KDGE) and a Recall-Enhanced Generator (REG). By representing dialogue history as a structured graph and explicitly recalling pivotal information before response generation, MedPIR achieves state-of-the-art performance in both linguistic fluency and medical correctness.

Introduction

Building effective Medical Dialogue Systems is inherently difficult due to the nature of clinical consultations. Crucial data points—such as a specific symptom mentioned early in a conversation and a test result discussed much later—are often separated by "noisy" filler text. Standard large language models (LLMs) frequently struggle to link these distant but medically related entities, leading to responses that may be coherent but are medically inaccurate or irrelevant.

Methodology: The MedPIR Framework

MedPIR moves beyond linear text processing by incorporating structured medical knowledge and a two-step generation process.

1. Knowledge-aware Dialogue Graph Encoder (KDGE)

Instead of treating the dialogue as a simple sequence of tokens, MedPIR constructs a knowledge-aware graph. In this graph, nodes represent individual utterances, while edges capture both the temporal sequence of the conversation and medical relationships derived from the Chinese Medical Knowledge Graph (CMeKG).

Construction of the Knowledge-aware Dialogue Graph, linking utterances through shared medical entities.

As shown in the figure above, utterances $X_1$ through $X_6$ are connected not just by their order in time, but by "knowledge edges" (e.g., linking a symptom in $X_1$ to a diagnosis in $X_4$). This structure is processed using a Relational Graph Attention Network (RGAT), allowing the model to capture global context more effectively than standard sequential attention.

2. Recall-Enhanced Generator (REG)

To ensure the model focuses on relevant facts, MedPIR employs a "think-before-you-speak" mechanism. Before generating the final response, the model produces a recall sequence ($R$)—a concise summary of pivotal medical information found in the history. This sequence acts as a focused prompt for the final decoder.

Comparison of MedPIR outputs against baselines. The use of knowledge graphs and recalling helps identify the need for a colonoscopy to rule out colitis.

The figure above illustrates how MedPIR correctly identifies the need for a colonoscopy to rule out chronic colitis by synthesizing information about "tenesmus" and "enteritis" from the dialogue history, whereas baseline models like BERT-GPT-Entity provide less specific or incomplete advice.

Experimental Results

The framework was evaluated on the MedDG and MedDialog datasets, showing significant improvements across multiple metrics:

  • Linguistic Quality: MedPIR achieved a BLEU-1 score of 0.4476 on MedDG, surpassing the BERT-GPT-Entity baseline (0.4286).
  • Medical Accuracy: The Medical Entity F1 score, which tracks the correct usage of medical terms, improved to 0.227 from a baseline of 0.207.
  • Human Evaluation: In blind tests, human experts rated MedPIR significantly higher in Correctness (3.25/5.0) and Coherence (3.86/5.0), confirming that the model's responses are more logically sound and medically grounded.

Conclusion and Future Work

MedPIR demonstrates that explicitly modeling medical relationships and recalling pivotal information can significantly enhance the performance of medical dialogue systems. While the model currently relies on the coverage of external knowledge graphs like CMeKG and uses automatically generated "silver" labels for training, it provides a robust foundation for more reliable AI-driven medical consultations. Future work will focus on expanding the framework to other languages and improving the quality of the recall summaries.

Summary updated

BibTeX
@inproceedings{zhao2022medical,
  author = {Yu Zhao and Yunxin Li and Yuxiang Wu and Baotian Hu and Qingcai Chen and Xiaolong Wang and Yuxin Ding and Min Zhang},
  title = {{Medical Dialogue Response Generation with Pivotal Information Recalling}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2022},
}
Figure