Learning to Leverage High-Order Medical Knowledge Graph for Joint Entity and Relation Extraction

Zhe Yang, Yi Huang, Junlan Feng

Extracting entities and relations from medical text is a critical yet challenging task due to complex terminology and intricate domain-specific relationships. This paper introduces a novel framework that leverages a high-order heterogeneous graph constructed from medical knowledge graphs (KGs). By modeling not only entities but also the relationships between relations (second-order context), the model achieves state-of-the-art performance on several Chinese medical benchmarks.

The Challenge of Medical Extraction

In the medical domain, joint entity and relation extraction faces two primary hurdles:

  1. Complex Terminology: Medical jargon and abbreviations are difficult for standard language models to interpret using only local sentence context.
  2. Nuanced Relations: Relationships such as "complication of" or "possible disease" are more complex than those found in general-domain text.

While previous methods attempted to inject KG information, they primarily focused on aligning entity names and often ignored the rich context provided by the edges (relations). Furthermore, existing methods struggled to update relation representations dynamically, often introducing "noise" from irrelevant KG triples.

High-Order Graph Construction

The core innovation of this work is the construction of a High-Order Heterogeneous Graph that captures deep relational context.

Transformation from a standard entity graph (Ge) to a second-order relation graph (Gr).

As shown above, the framework utilizes two views:

  • First-Order Graph ($G_e$): A standard representation where medical entities are nodes and relations are edges.
  • Second-Order Graph ($G_r$): A "flipped" view where relations from the first graph become nodes, and entity types (e.g., "Disease," "Symptom") serve as the edges connecting them. This allows the model to learn the typical interaction patterns between different types of medical relations.

Model Architecture

The proposed framework integrates local textual features with global knowledge graph structures through a multi-stage pipeline.

The complete framework for high-order heterogeneous graph-enhanced entity and relation extraction.

1. Encoding and Graph Modeling

The model first uses a Transformer encoder to generate local representations of the input text. Simultaneously, it searches the KG to extract relevant sub-graphs. Relational Graph Convolutional Networks (RGCN) are then employed to propagate information across both the $G_e$ and $G_r$ graphs, ensuring that entity and relation representations are mutually informed by their neighborhoods.

2. Dual Fusion Mechanism

To integrate the KG information without introducing noise, the authors implement a dual fusion strategy:

  • Attention-based Fusion: Integrates global entity information from the KG into local text spans.
  • Selective Gate Mechanism: Filters KG relations. Since a single term may have many relations in a KG, the gate ensures only those relevant to the specific sentence context are utilized, preventing irrelevant data from degrading accuracy.

Experimental Results

The model was evaluated on three real-world Chinese medical datasets: CHIP-2020 (pediatric records), CHIP-2022 (logical relations), and DiaKG (diabetes clinical guidelines).

The framework consistently outperformed strong baselines such as CASREL, SPERT, and KECI:

  • CHIP-2020: Achieved an overall F1-score of 69.2%, surpassing the previous best knowledge-enhanced model (KECI) by 1.5%.
  • DiaKG: Reached a 64.3% overall F1-score.

Ablation studies confirmed that the second-order relation graph ($G_r$) was vital; removing it led to a significant performance drop, proving that modeling relations as nodes provides a beneficial feedback loop for entity recognition.

Conclusion and Future Work

By combining the deep semantic understanding of Transformers with the structured hierarchy of a high-order KG, this model effectively resolves ambiguities in medical text. While the current implementation is tailored to Chinese medical data and faces some training efficiency challenges due to sub-graph construction, it represents a significant step forward in knowledge-enhanced natural language processing. Future work will focus on optimizing the architecture for better computational efficiency and cross-language applicability.

Summary updated

BibTeX
@inproceedings{yang2023learning,
  author = {Zhe Yang and Yi Huang and Junlan Feng},
  title = {{Learning to Leverage High-Order Medical Knowledge Graph for Joint Entity and Relation Extraction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.575},
}
Figure