End-to-End Relation Extraction using LSTMs on Sequences and Tree Structures

Makoto Miwa, Mohit Bansal

Abstract

This paper introduces a unified neural architecture for joint entity and relation extraction. The model stacks bidirectional tree-structured LSTMs on top of bidirectional sequential LSTMs to capture both linear and hierarchical linguistic features. Evaluated on the ACE2004 and ACE2005 benchmarks, the model significantly outperforms previous state-of-the-art feature-based systems, reducing relative error by up to 12.1%.

The Challenge of Joint Extraction

In Natural Language Processing, extracting relations (e.g., "Person X works for Organization Y") has traditionally been treated as a pipeline of two separate tasks: Named Entity Recognition (NER) followed by Relation Extraction (RE). The primary drawback of this approach is error propagation: if the NER system fails to identify an entity correctly, the RE system cannot recover the relation.

While joint models exist to address this, they previously relied heavily on manual feature engineering. This paper proposes a unified neural architecture that learns features automatically from both linear word sequences and hierarchical dependency structures.

Model Architecture

The proposed model utilizes a "stacked" LSTM architecture that processes information in three main layers:

  1. Embedding Layer: Maps words, part-of-speech (POS) tags, dependency types, and entity labels into low-dimensional vectors.
  2. Sequence Layer (Bidirectional LSTM): This layer captures the linear context of the sentence and performs entity detection using the BILOU tagging scheme.
  3. Dependency Layer (Bidirectional Tree-structured LSTM): This layer is stacked on top of the sequence layer. It focuses on the Shortest Path in a dependency tree between two entities, as this path typically contains the most relevant information about their relationship.
Architecture of the joint model showing the stacked Bi-LSTM and Bi-TreeLSTM layers.

Key Innovations

  • Bidirectional Tree-LSTMs: Unlike standard tree-LSTMs that only propagate information bottom-up, this model uses both bottom-up and top-down passes. This allows global context from the root of the tree to reach the "leaf" entities.
  • Scheduled Sampling: To bridge the gap between training (with gold labels) and inference (with predicted labels), the authors gradually replace gold labels with predicted ones during training.
  • Entity Pretraining: The NER portion of the model is pretrained to provide a stable foundation for the relation extraction layer.

Experimental Results

The model was evaluated on three major benchmarks: ACE2005, ACE2004, and SemEval-2010 Task 8.

Comparison of the proposed SPTree model against state-of-the-art feature-based models on ACE05 and ACE04 datasets.

On the ACE2005 dataset, the model achieved a 12.1% relative error reduction in F1-score over previous state-of-the-art feature-based models. On ACE2004, it achieved a 5.7% relative error reduction. Ablation studies demonstrated that both Scheduled Sampling and Entity Pretraining were vital to these gains, as they help the model handle its own NER errors during joint extraction.

Insights and Discussion

The success of the model stems from its ability to leverage complementary information. Word sequences are effective for local context and entity boundaries, while dependency trees are better at linking semantically related words that may be far apart in a sentence. By feeding the hidden states of the Sequence-LSTM into the Tree-LSTM, the model allows the relation extraction task to "see" the features learned by the entity detection task, facilitating effective parameter sharing.

Conclusion and Future Work

This work demonstrates that stacking tree-structured LSTMs on sequential LSTMs provides a powerful framework for joint extraction. While the model currently uses greedy decoding for entity detection, future improvements could involve more sophisticated global decoding methods like CRFs or deeper integration with external knowledge bases like WordNet.

Summary updated

BibTeX
@inproceedings{miwa2016end,
  author = {Makoto Miwa and Mohit Bansal},
  title = {{End-to-End Relation Extraction using LSTMs on Sequences and Tree Structures}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2016},
  doi = {10.18653/v1/p16-1105},
}
Figure