Named Entity Recognition and Relation Extraction using Enhanced Table Filling by Contextualized Representations

Youmi Ma, Tatsuya Hiraoka, Naoaki OkazakiarXiv 2020

Abstract

In this study, a novel method for extracting named entities and relations from unstructured text based on the table representation is presented. By using contextualized word embeddings, the proposed method computes representations for entity mentions and long-range dependencies without complicated hand-crafted features or neural-network architectures. We also adapt a tensor dot-product to predict relation labels all at once without resorting to history-based predictions or search strategies. These advances significantly simplify the model and algorithm for the extraction of named entities and relations. Despite its simplicity, the experimental results demonstrate that the proposed method outperforms the state-of-the-art methods on the CoNLL04 and ACE05 English datasets. We also confirm that the proposed method achieves a comparable performance with the state-of-the-art NER models on the ACE05 datasets when multiple sentences are provided for context aggregation.

Introduction

Extracting structured information from unstructured text typically involves two primary tasks: Named Entity Recognition (NER)—identifying the "who" and "what"—and Relation Extraction (RE)—identifying the connections between them. While traditional approaches often treat these as a sequential pipeline, joint extraction models have gained prominence due to their ability to capture inter-task dependencies. However, many existing joint models suffer from high computational complexity or rely on slow, sequential decoding processes. This paper introduces TablERT, a streamlined model that treats joint NER and RE as a single, parallelized table-filling problem.

The Table-Filling Paradigm

The table-filling approach represents a sentence as a 2D grid. In this representation, the diagonal cells correspond to entity labels for individual words (often using the BILOU scheme), while the off-diagonal cells represent potential relations between word pairs.

The table-filling representation for the sentence "Johanson Smith lives in London." Diagonal cells show entity tags, while off-diagonal cells indicate relations.

Traditional table-filling models often rely on "history-based" decoding, where cells are filled one by one based on previous predictions. This necessitates complex search strategies like beam search and often requires hand-crafted syntactic features to bridge long-distance word dependencies. TablERT aims to eliminate these complexities.

Methodology: TablERT

TablERT modernizes the table-filling approach by leveraging contextualized representations and a novel parallel prediction mechanism.

Contextualized Word Representations

Instead of manual feature engineering, TablERT utilizes BERT to generate word-level embeddings. Sub-word tokens from BERT are aggregated via max-pooling to create robust representations that inherently capture local and global context. To handle entities that might be ambiguous in a single sentence, the model can ingest segments of multiple sentences, allowing it to use document-level context to resolve coreferences.

Parallel Relation Extraction via Tensor Dot-Product

The most significant advancement in TablERT is the "all-at-once" prediction of relations. Rather than sequential decoding, the model maps word representations into "query" (Q) and "key" (K) tensor spaces for every possible relation type.

The tensor dot-product mechanism allows the model to predict all relation labels in the table simultaneously.

By computing the dot product of these tensors, the model populates the entire relation table in a single pass. This parallelization significantly improves efficiency on modern hardware compared to traditional search-based methods. Ablation tests showed that this "Once" strategy was just as effective as sequential prediction, suggesting that BERT's contextual power already captures necessary dependencies.

Key Results and Insights

TablERT achieved impressive numbers, setting new benchmarks at the time of publication:

  • CoNLL04: Achieved an F1 score of 90.2 for NER and 72.6 for RE, outperforming the previous state-of-the-art (SpERT).
  • ACE05: Outperformed existing models like DyGIE++, particularly in relation extraction, with an F1 score of 66.1.
  • Span Importance: Ablation tests revealed that including features from the previous entity span was the most critical factor for performance, helping the model maintain consistency across multi-word entities.

Limitations and Future Work

While TablERT is a leap forward in simplicity and accuracy, the authors noted a few hurdles. Because the table size grows quadratically ($O(n^2)$) with sentence length, applying multi-sentence context directly to Relation Extraction is computationally difficult for GPU memory. Additionally, the model currently predicts each relation label independently, which can lead to logical inconsistencies. Future work will explore incorporating global constraints into the RE model without sacrificing the speed of parallel prediction.

Summary updated

BibTeX
@misc{ma2020named,
  author = {Youmi Ma and Tatsuya Hiraoka and Naoaki Okazaki},
  title = {{Named Entity Recognition and Relation Extraction using Enhanced Table Filling by Contextualized Representations}},
  year = {2020},
  eprint = {2010.07522},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.07522},
}
Figure