End-to-end neural relation extraction using deep biaffine attention

Dat Quoc Nguyen, Karin VerspoorarXiv 2018 · DOI

This paper presents a novel end-to-end neural model for joint entity and relation extraction, achieving state-of-the-art results on the CoNLL04 benchmark. The core innovation is the adaptation of deep biaffine attention—originally designed for dependency parsing—to capture complex, directional interactions between entities for relation classification.

TL;DR

The authors propose a joint neural model that extracts named entities and their relations without hand-crafted features. By integrating a deep biaffine attention layer, the model effectively captures second-order interactions between entity features, setting a new performance standard on the CoNLL04 dataset.

What Problem Does This Paper Address?

Information Extraction (IE) typically involves two tasks: Named Entity Recognition (NER) and Relation Classification (RC). Traditional systems often use a "pipeline" approach, where NER is performed first and the results are fed into an RC system. However, pipelines suffer from error propagation: if the NER step fails, the RC step has no chance of success.

While joint models (which learn both tasks simultaneously) mitigate this, many existing neural joint models rely on simple linear mechanisms—like concatenating feature vectors—to classify relations. These methods often fail to capture the nuanced, directional roles entities play (e.g., in the relation Work_For(Person, Organization), the "Person" and "Organization" play distinct roles). The authors aim to build a purely neural joint model that captures these complex interactions without needing external syntactic tools or manual feature engineering.

Methods

The model architecture consists of two main components that share information:

  1. NER Component: Uses a standard but powerful BiLSTM-CRF architecture. It represents words using a combination of pre-trained word embeddings and character-level embeddings (generated via a separate BiLSTM). A Conditional Random Field (CRF) layer predicts the entity labels (using the BILOU scheme).
  2. RC Component: This is the novel part. It uses another BiLSTM to learn latent features from a sequence that combines word vectors with embeddings of the predicted NER labels.
  3. Deep Biaffine Attention: To classify the relation between two entities, the model projects the latent features of each entity into two separate spaces: a "head" representation and a "tail" representation. It then applies a biaffine operator: $$s_{j,k} = \text{Biaffine}(h_j^{(head)}, h_k^{(tail)}) = y_1^T U y_2 + W(y_1 \circ y_2) + b$$ This formula includes a bilinear term ($y_1^T U y_2$) to capture second-order interactions and a linear term to capture individual entity features.
Fig. 1. Illustration of our model. Linear transformations are not shown for simplification.

Datasets

The model was evaluated on the CoNLL04 dataset, a standard benchmark for "relation and entity recognition." The authors tested two scenarios:

  • Setup 1 (NER&RC): A realistic scenario where entity boundaries are unknown and must be predicted.
  • Setup 2 (EC&RC): A scenario where gold-standard entity boundaries are provided, reducing NER to an entity classification (EC) task.

Key Insights and Ideas

  • Biaffine > Linear: The most significant insight is that the biaffine mechanism outperforms standard linear concatenation. By using a tensor ($U$) to model interactions, the network can learn specific "compatibility" scores between different entity roles.
  • Role-Specific Projections: By projecting each entity into distinct "head" and "tail" vectors, the model inherently understands the directionality of relations (e.g., distinguishing A is based in B from B is based in A).
  • Label Embeddings for RC: Feeding predicted NER labels back into the RC component's BiLSTM provides crucial semantic context that helps the model decide which relations are even possible between specific entity types.

Key Results

The model achieved new state-of-the-art (SOTA) results on CoNLL04, outperforming previous models that used hand-crafted features or complex dependency-tree-based LSTMs.

Table 1. Comparison with the previous state-of-the-art results on the test set. Recall that Setup 2 uses gold entity boundaries while Setup 1 does not. The subscript denotes the standard deviation. (F) refers to the use of extra feature types such as POS tag-based or dependency parsing-based features. Although using the same test set, Gupta et al. (2016) [9] reported results on a 80/0/20 training/development/test split rather than our 64/16/20 split. Results in the last two rows are just for reference, not for comparison, due to a random sampling of the test set. In particular, Miwa and Sasaki (2014) [20] used the 80/0/20 split for Setup 1 and performed 5-fold cross validation (i.e. sort of equivalent to 80/0/20) for Setup 2, while Zhang et al. (2017) [31] used a 72/8/20 split.

As seen in Table 1, the joint model obtained a 2+% absolute improvement in F1-score for both NER and RC in the realistic Setup 1 compared to the previous best multi-head selection model. Ablation studies (Table 2) confirmed that the bilinear part of the biaffine operator was critical, contributing significantly to the RC score.

Table 2. Ablation results on the development set. * and ** denote the statistically significant differences against the full results at p < 0.05 and p < 0.01, respectively (using the two-tailed paired t-test). (a) Without using the character-level word embeddings. (b) Using a softmax layer for NER label prediction instead of the CRF layer. (c) Without using the NER label embeddings in our RC component, i.e. Equation 3 would become xi = vi. (d) Without using the Bilinear part in Equation 8, i.e., Biaffine would be a common Linear mechanism. (e) Without using the Linear part in Equation 8, i.e., Biaffine reduces to Bilinear.

Limitations and Future Work

  • Computational Overhead: The authors note that the biaffine mechanism increases training time by approximately 35% compared to a simpler linear mechanism.
  • Implicit vs. Explicit Syntax: While this model performs exceptionally well without a dependency parser, some concurrent work (like Zhang et al., 2017) suggests that integrating explicit syntactic information can still be beneficial. The authors suggest that incorporating latent features from pre-trained dependency parsers could be a promising future direction to further boost performance.

Summary updated

BibTeX
@misc{nguyen2018end,
  author = {Dat Quoc Nguyen and Karin Verspoor},
  title = {{End-to-end neural relation extraction using deep biaffine attention}},
  year = {2018},
  eprint = {1812.11275},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.11275},
}
Figure