Skip to main content
QUICK REVIEW

[Paper Review] End-to-end Named Entity Recognition and Relation Extraction using Pre-trained Language Models

John Giorgi, Xindi Wang|arXiv (Cornell University)|Dec 20, 2019
Topic ModelingComputer Science32 references29 citations
TL;DR

This paper proposes a fully end-to-end neural model for joint named entity recognition (NER) and relation extraction (RE) that leverages a pre-trained BERT language model without relying on external NLP tools or hand-crafted templates. The model achieves state-of-the-art performance across five datasets in three domains, with faster training due to fine-tuning pre-trained parameters and self-attention instead of recurrence.

ABSTRACT

Named entity recognition (NER) and relation extraction (RE) are two important tasks in information extraction and retrieval (IE \& IR). Recent work has demonstrated that it is beneficial to learn these tasks jointly, which avoids the propagation of error inherent in pipeline-based systems and improves performance. However, state-of-the-art joint models typically rely on external natural language processing (NLP) tools, such as dependency parsers, limiting their usefulness to domains (e.g. news) where those tools perform well. The few neural, end-to-end models that have been proposed are trained almost completely from scratch. In this paper, we propose a neural, end-to-end model for jointly extracting entities and their relations which does not rely on external NLP tools and which integrates a large, pre-trained language model. Because the bulk of our model's parameters are pre-trained and we eschew recurrence for self-attention, our model is fast to train. On 5 datasets across 3 domains, our model matches or exceeds state-of-the-art performance, sometimes by a large margin.

Motivation & Objective

  • Address error propagation and limited information sharing in pipeline-based NER and RE systems.
  • Overcome limitations of existing joint models that depend on external NLP tools like dependency parsers, especially in low-resource domains such as biomedicine and clinical text.
  • Develop a truly end-to-end system that avoids training from scratch by leveraging pre-trained language models, reducing training time and improving performance on small datasets.
  • Enable fast, efficient training by replacing recurrent networks with self-attention mechanisms and fine-tuning pre-trained BERT parameters.
  • Achieve state-of-the-art performance across diverse domains while maintaining modularity and extensibility to other pre-trained models or domains.

Proposed method

  • Integrate a pre-trained BERT model as the primary encoder, with its parameters fine-tuned end-to-end for joint NER and RE.
  • Use a sequence-to-sequence head for NER and a relation classification head for RE, both built on top of BERT’s contextualized token representations.
  • Train the entire model in an end-to-end fashion without dependency parsing or hand-crafted templates.
  • Replace recurrent networks with self-attention mechanisms to enable parallelization and faster convergence, achieving training in under one hour per dataset on a single GPU.
  • Leverage the modular design of BERT to allow easy adaptation to domain-specific pre-trained models (e.g., BioBERT) or alternative models (e.g., XLNet).
  • Visualize attention weights using BertViz to analyze model behavior and interpret attention patterns such as attending to adjacent words or sentence boundaries.

Experimental results

Research questions

  • RQ1Can a pre-trained transformer-based model achieve state-of-the-art joint NER and RE performance without relying on external NLP tools or hand-crafted templates?
  • RQ2Does fine-tuning a pre-trained language model like BERT lead to faster convergence and better performance compared to training from scratch, especially on low-resource biomedical and clinical datasets?
  • RQ3How do attention patterns in the fine-tuned BERT model reflect syntactic and semantic relationships relevant to NER and RE tasks?
  • RQ4To what extent does the model’s performance generalize across domains, particularly when handling complex, nested entities or inter-sentence relations?
  • RQ5Can the model’s architecture be extended to support multilingual settings using multilingual pre-trained BERT weights?

Key findings

  • The model achieves state-of-the-art performance on five datasets across three domains, including a 6.53% improvement on the ADE dataset, though this gain may be inflated by high intra-sentence annotation patterns.
  • Performance on the ADE dataset approaches near-perfect scores (98%) when using ground-truth entities in the RE module, suggesting that the model exploits frequent two-entity, one-relation patterns in the corpus.
  • The model converges in under one hour per dataset on a single GPU, demonstrating significant training speed advantages over RNN-based models due to self-attention and pre-trained parameter initialization.
  • Attention visualization confirms that the model retains key attention patterns such as attending to adjacent words, self-attention, and sentence boundaries, indicating that syntactic and structural cues are preserved after fine-tuning.
  • Ablation studies show that each component—especially the pre-trained BERT encoder and the end-to-end training setup—is essential for optimal performance.
  • The model’s modular design allows for easy adaptation to domain-specific pre-trained models (e.g., BioBERT) and alternative architectures (e.g., XLNet), enhancing its generalizability and reusability.

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.