Multi-Labeled Relation Extraction with Attentive Capsule Network

Xinsong Zhang, Pengshuai Li, Weijia Jia, Hai Zhao

Introduction

Relation Extraction (RE) is a fundamental task in Information Extraction, aimed at identifying semantic relationships between entity pairs within a sentence. For instance, given the sentence "Arthur Lee was born in Memphis," an RE system should identify the place_of_birth relation between "Arthur Lee" and "Memphis." While significant progress has been made using deep learning, most existing models operate under a "single-label" assumption, which fails to capture the complexity of real-world language where multiple relations often overlap.

Challenges in Relation Extraction

Current state-of-the-art models face two primary hurdles:

  1. The Single-Label Assumption: Many sentences express multiple relations for the same entity pair. For example, "Arthur Lee died in Memphis" implies both place_of_death and place_lived. Standard models typically assign only the most probable label, losing critical information.
  2. Feature Squashing: Traditional architectures like CNNs and RNNs rely on max-pooling to extract the most salient features. This process "squashes" diverse semantic signals into a single vector, making it difficult to represent multiple distinct relations simultaneously. Furthermore, relational cues are often scattered across a sentence, a phenomenon known as discrete feature distribution.
Overview of the challenges in RE and the proposed Att-CapNet solution.

Methodology: The Att-CapNet Framework

To address these issues, the authors propose Att-CapNet, an attentive capsule network designed to treat relation extraction as a feature clustering problem rather than a simple classification task. The architecture consists of three main layers:

1. Feature Extraction Layer

The model first employs a Bidirectional LSTM (Bi-LSTM) to capture long-range dependencies and context. Input tokens are represented using a combination of word embeddings and position embeddings (relative distances to the target entities).

2. Feature Clustering Layer

This core component utilizes Capsule Networks. Unlike standard neurons, capsules are vectors whose length represents the probability of a feature's presence and whose orientation encodes its properties.

  • Attentive Routing: The model improves upon standard dynamic routing by incorporating an attention mechanism. By using the target entities to weight the routing process, the network ensures that the high-level capsules focus on features specifically relevant to the entity pair in question.

3. Relation Predicting Layer

To handle the multi-label nature of the task and the prevalence of "No Relation" (NA) instances, the authors introduce a Sliding-Margin Loss. This mechanism uses a learnable boundary to separate valid relations from noise, allowing the model to dynamically adjust its threshold for classification.

Experimental Results

The model was evaluated on the NYT-10 dataset (a large-scale distant supervision benchmark) and the SemEval-2010 Task 8 dataset.

Precision-Recall curves on the NYT-10 dataset comparing Att-CapNet with baseline models.

Performance Highlights

  • State-of-the-Art Accuracy: On NYT-10, Att-CapNet achieved an F1-score of 41.6%, outperforming previous CNN-based (37.8%) and RNN-based (36.1%) models.
  • Multi-Label Proficiency: In a targeted test on sentences with multiple labels, the model reached a 91.8% F1-score, significantly better than traditional max-pooling approaches which struggle to predict more than one label.
  • Ablation Studies: Experiments confirmed that both the attentive routing and the sliding-margin loss are essential, as removing either component led to a noticeable decline in precision and recall.

Conclusion

Att-CapNet represents a significant shift in Relation Extraction by moving from feature "squashing" to feature "clustering." By leveraging the representational power of capsule networks and the specificity of attentive routing, the model effectively identifies overlapping relations and handles discrete features. This approach opens new possibilities for complex NLP tasks where multiple semantic layers must be decoded simultaneously.

Summary updated

BibTeX
@inproceedings{zhang2019multi,
  author = {Xinsong Zhang and Pengshuai Li and Weijia Jia and Hai Zhao},
  title = {{Multi-Labeled Relation Extraction with Attentive Capsule Network}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33017484},
}
Figure