Skip to main content
QUICK REVIEW

[Paper Review] Attention-Based Capsule Networks with Dynamic Routing for Relation Extraction

Ningyu Zhang, Shumin Deng|arXiv (Cornell University)|Dec 29, 2018
Topic ModelingComputer Science25 references17 citations
TL;DR

This paper proposes an attention-based capsule network with dynamic routing for end-to-end relation extraction in a multi-instance multi-label learning framework. By modeling relations through iterative routing and word-level attention, the model improves precision in both single- and multi-relation extraction tasks, outperforming baseline models on Wikidata and NYT benchmarks.

ABSTRACT

A capsule is a group of neurons, whose activity vector represents the instantiation parameters of a specific type of entity. In this paper, we explore the capsule networks used for relation extraction in a multi-instance multi-label learning framework and propose a novel neural approach based on capsule networks with attention mechanisms. We evaluate our method with different benchmarks, and it is demonstrated that our method improves the precision of the predicted relations. Particularly, we show that capsule networks improve multiple entity pairs relation extraction.

Motivation & Objective

  • To address limitations in existing neural models for relation extraction, particularly poor handling of spatial relationships and fixed vector representations.
  • To improve multi-label relation extraction by modeling complex, interleaved features through capsule networks.
  • To enhance feature representation by integrating word-level attention that dynamically weights salient words.
  • To enable simultaneous prediction of multiple relations for multiple entity pairs in a single sentence.
  • To evaluate the effectiveness of capsule networks in a relation extraction context, where prior work has not explored this architecture.

Proposed method

  • The model uses a Bi-LSTM layer for sentence encoding, followed by a capsule network that replaces traditional pooling with dynamic routing for feature propagation.
  • Dynamic routing computes attention-like weights iteratively, allowing capsules to route information based on agreement among lower-level capsules.
  • Word-level attention is applied to position embeddings, assigning different weights to entity-relative positions based on their relevance to relation prediction.
  • The capsule network transforms multi-label classification into multiple binary classification tasks, enabling joint prediction of multiple relations per sentence.
  • The primary capsule layer is replaced with a fully connected layer in ablation studies to isolate the contribution of capsule networks.
  • The model is trained end-to-end using cross-entropy loss with L2 regularization, and hyperparameters are tuned on validation sets.

Experimental results

Research questions

  • RQ1Can capsule networks with dynamic routing improve relation extraction performance compared to CNNs and RNNs?
  • RQ2How does word-level attention enhance the representation of relation-relevant words in the context of multiple entity pairs?
  • RQ3Does the dynamic routing mechanism better preserve structural relationships than max-pooling or average-pooling in relation extraction?
  • RQ4How does the model perform in multi-relation extraction, where multiple relations co-occur in a single sentence?
  • RQ5What is the optimal number of dynamic routing iterations and capsule dimensionality for balancing performance and training efficiency?

Key findings

  • The proposed model achieves a precision of 0.422 at 0.3 recall on the Wikidata dataset, outperforming the baseline model without capsule networks.
  • Ablation studies show that removing word-level attention reduces precision to 0.395 at 0.3 recall, demonstrating its significant contribution.
  • The model with 3 dynamic routing iterations achieves the best performance, with precision of 0.422 at 0.3 recall, while more iterations degrade performance.
  • Setting the capsule dimension to d=8 provides the best trade-off between performance and training time, as d=32 fails to converge within reasonable epochs.
  • The capsule network outperforms the Bi-LSTM baseline in both single- and multi-entity pair relation extraction, especially in capturing complex, overlapping relations.
  • The model shows robustness in multi-relation settings, where it successfully predicts multiple relations for multiple entity pairs simultaneously in a single sentence.

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.