Improving Medical Dialogue Generation with Abstract Meaning Representations

Bohao Yang, Chen Tang, Chenghua Lin

Abstract

Traditional language models often struggle with the complex logical structures inherent in medical consultations, treating dialogue as simple linear text sequences. This paper presents a novel framework that incorporates Abstract Meaning Representations (AMR) to capture semantic relationships and medical logic. By utilizing a dual-track architecture—combining graph-based AMR encoding with sequential text encoding—the proposed model significantly outperforms existing state-of-the-art systems in accuracy, relevance, and conversational diversity.

Introduction

In telemedicine, AI-driven dialogue systems are essential for disseminating medical expertise. However, standard models frequently fail to grasp the "medical grounds" of a conversation. A patient’s statement like "I've had a headache for two weeks" contains critical temporal and symptomatic links that a vanilla transformer might overlook by focusing solely on individual word frequencies. To address this, researchers have turned to Abstract Meaning Representation (AMR), a semantic formalism that represents the "who is doing what to whom" in a sentence as a rooted, labeled graph.

Capturing Medical Logic with AMR

AMR transforms natural language into a structured semantic graph where nodes represent concepts and edges represent their relationships. In a medical context, this allows the model to explicitly link symptoms to durations and treatments to conditions.

Figure 1: Example of a medical dialogue snippet converted into an AMR graph, illustrating the relationships between concepts like 'headache', 'duration', and 'prednisone'.

As shown in Figure 1, the AMR graph captures the logical flow: the patient ("I") is "complaining" of a "headache" which has a "duration" of "2 weeks," while also undergoing a "treatment" of "prednisone." This structured representation reduces ambiguity and provides a more robust foundation for generating medically sound responses.

Methodology: The Dual-Track Framework

The core of the proposed system is a dual-track architecture designed to leverage both structural and sequential information.

Figure 6: The complete architecture of the proposed framework, featuring parallel AMR graph and text sequence encoders followed by a dual-attention decoder.

The framework operates in three primary stages:

  1. AMR Parsing & Encoding: An AMR parser converts the dialogue into a graph. To maintain efficiency, an "AMR simplifier" filters for the most relevant medical entities. This graph is then processed by a Graph Transformer to capture structural information.
  2. Sequence Encoding: Simultaneously, the raw text sequence is handled by a standard Transformer encoder to preserve linguistic nuances and conversational flow.
  3. Dual Attention Decoding: The decoder employs a dual-attention mechanism to integrate features from both the graph and sequence tracks. This ensures the generated response is both naturally phrased and grounded in the underlying medical logic.

Key Results and Insights

The framework was evaluated against benchmarks like MedDialog, demonstrating substantial improvements over the previous state-of-the-art (SOTA), Terms-BART:

  • Accuracy: BLEU-4 scores rose from 0.0421 to 0.1336, a more than 3x improvement.
  • Overlap: ROUGE-L scores increased from 13.01 to 23.90, showing higher alignment with expert medical responses.
  • Diversity: The Dist-4 metric improved from 0.2899 to 0.4321, indicating the model generates more informative and less repetitive content.

A critical insight from this research is that structure outweighs size. Increasing the parameter count of standard models (e.g., moving from BART-base to BART-large) yielded diminishing returns compared to the gains achieved by introducing structural AMR information. Furthermore, ablation studies confirmed a powerful synergy: the combined text-and-graph model outperformed the sum of its individual components.

Conclusion and Future Work

By integrating AMR graphs, this framework provides AI models with a better "medical mind," allowing them to navigate the complexities of patient-doctor interactions more effectively. Future research will focus on reducing dependency on initial parser quality and exploring the scalability of this dual-track approach to larger language models (LLMs).

The implementation code is available at https://github.com/Bernard-Yang/MedDiaAMR.

Summary updated

BibTeX
@inproceedings{yang2024improving,
  author = {Bohao Yang and Chen Tang and Chenghua Lin},
  title = {{Improving Medical Dialogue Generation with Abstract Meaning Representations}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10447688},
}
Figure