Skip to main content
QUICK REVIEW

[Paper Review] An attention-based Bi-GRU-CapsNet model for hypernymy detection between compound entities

Qi Wang, Chenming Xu|arXiv (Cornell University)|May 13, 2018
Natural Language Processing TechniquesComputer Science27 references8 citations
TL;DR

This paper proposes an attention-based Bi-GRU-CapsNet model for hypernymy detection between compound entities—such as medical symptoms and diseases—by leveraging bidirectional gated recurrent units to handle out-of-vocabulary issues, an attention mechanism to highlight differences between entities, and capsule networks to classify hypernymy relations. The model achieves state-of-the-art F1 scores of 90.35 on English and 95.26 on Chinese corpora, outperforming existing methods.

ABSTRACT

Named entities are usually composable and extensible. Typical examples are names of symptoms and diseases in medical areas. To distinguish these entities from general entities, we name them extit{compound entities}. In this paper, we present an attention-based Bi-GRU-CapsNet model to detect hypernymy relationship between compound entities. Our model consists of several important components. To avoid the out-of-vocabulary problem, English words or Chinese characters in compound entities are fed into the bidirectional gated recurrent units. An attention mechanism is designed to focus on the differences between the two compound entities. Since there are some different cases in hypernymy relationship between compound entities, capsule network is finally employed to decide whether the hypernymy relationship exists or not. Experimental results demonstrate

Motivation & Objective

  • To address the challenge of hypernymy detection between compound entities, such as multi-word medical symptoms and diseases, which are common in electronic health records.
  • To overcome the out-of-vocabulary (OOV) problem in existing methods by modeling subword units via bidirectional GRUs.
  • To capture nuanced differences in hypernymy relations between compound entities through a customized attention mechanism.
  • To improve classification robustness by employing capsule networks that model hierarchical relationships between entity components.
  • To build and evaluate on two new corpora—English and Chinese—of symptom and disease pairs for hypernymy detection.

Proposed method

  • Bidirectional Gated Recurrent Units (Bi-GRUs) process individual English words or Chinese characters in compound entities to generate contextual representations and mitigate the OOV problem.
  • An attention mechanism computes dynamic weights based on differences between two compound entities, focusing on discriminative components rather than shared parts.
  • The attention mechanism uses learnable parameters $ a $ and $ b $, with $ \alpha_i^{(k)} = a w_i^{(k)} + b $, and avoids softmax to preserve raw attention scores.
  • Capsule networks process the attended representations to model hierarchical relationships and output a final decision on whether a hypernymy relation exists.
  • The model is trained end-to-end on entity pairs, with no reliance on external context or pre-trained language models.
  • A variant using sum of word embeddings is evaluated as a baseline to compare OOV handling and performance.

Experimental results

Research questions

  • RQ1Can an attention-based Bi-GRU-CapsNet model effectively detect hypernymy between compound entities in medical text, especially when they are out of vocabulary?
  • RQ2How does the proposed attention mechanism, which emphasizes differences between entities, improve detection performance compared to uniform or no attention?
  • RQ3Does the integration of capsule networks enhance the model’s ability to capture hierarchical and compositional relationships in compound entities?
  • RQ4How does the model perform on both English and Chinese medical corpora, and does it generalize across languages?
  • RQ5What is the relative contribution of subword modeling, attention, and capsule networks to the overall performance gain?

Key findings

  • The proposed model achieves an F1-score of 90.35 on the English corpus and 95.26 on the Chinese corpus, outperforming all six baseline methods.
  • The model with unequal attention (i.e., $ a=1, b=0 $) without softmax achieves the best performance, indicating that raw attention to differences is most effective.
  • The model’s performance is significantly better than the baseline methods, including those using sum of word embeddings, with F1 scores exceeding 89% on both languages.
  • The recall of the feature vector method with sum of word embeddings on Chinese corpus (94.78%) is slightly higher than the proposed model’s 94.44%, but the proposed model still achieves superior F1 and precision.
  • The attention mechanism that focuses on different parts between entities improves generalization, especially for unseen pairs with known components.
  • The capsule network component contributes to better classification by modeling hierarchical relationships, outperforming simpler classifiers in the ablation study.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.