Two are Better than One: Joint Entity and Relation Extraction with Table-Sequence Encoders

Jue Wang, Wei Lu

Introduction

Jointly extracting entities and their relations is a core challenge in Information Extraction. Traditional pipeline methods, which first identify entities and then classify relations, often suffer from error propagation. While joint models have been developed to address this, they frequently encounter "feature confusion"—where a single representation is forced to serve two distinct tasks—and fail to fully leverage the structural dependencies inherent in language. This paper introduces a novel "table-sequence" dual-encoder architecture that effectively separates these concerns while allowing for rich, bidirectional interaction between 1D sequence and 2D table representations.

The Joint Extraction Problem

In joint extraction, the task is often conceptualized as a 2D table-filling problem. In this framework, the diagonal of the table represents entity labels (Named Entity Recognition), while the off-diagonal cells represent the relations between word pairs (Relation Extraction).

Joint extraction as a 2D table-filling task.

Existing models often flatten this 2D structure into a 1D sequence, losing spatial context. Furthermore, using a shared feature space for both NER and RE can lead to conflicting signals, as the features optimal for identifying an entity (e.g., capitalization) may differ from those needed for a relation (e.g., syntactic distance).

Methodology: Table-Sequence Encoders

The proposed framework utilizes two interconnected encoders that communicate at every layer:

  • Table Encoder: Employs a Multi-Dimensional Recurrent Neural Network (MD-RNN) to process the 2D table. Unlike standard RNNs, the MD-RNN considers neighbors across rows, columns, and layers, capturing the spatial and structural context of word-word interactions.
  • Sequence Encoder: A Transformer-based architecture featuring Table-Guided Attention. Here, the attention weights are directly informed by the current state of the Table Encoder, allowing the sequence representation to be refined by relational insights.
  • Bidirectional Interaction: The encoders are not merely stacked; they interact iteratively. The table encoder uses sequence data to build its 2D map, while the sequence encoder uses that map to guide its attention mechanism.
  • BERT Integration: The model leverages pre-trained relational knowledge by feeding raw attention weights from BERT layers directly into the table encoder as features.

Experimental Results

The Table-Sequence Encoder model was evaluated on four major benchmarks: ACE04, ACE05, CoNLL04, and ADE. The model achieved state-of-the-art (SOTA) F1 scores across all datasets, with particularly significant gains in Relation Extraction.

Performance comparison on ACE04, ACE05, CoNLL04, and ADE datasets.

On the ACE05 dataset, the model improved the RE F1 score by 4.2 points over previous benchmarks. NER performance also saw consistent improvements of 0.4 to 1.2 points. Despite the complexity of 2D processing, the authors optimized the MD-RNN using antidiagonal parallelization, maintaining a competitive $O(N)$ time complexity.

Conclusion

By providing dedicated workspaces for entity and relation extraction, the Table-Sequence Encoder framework eliminates feature confusion and better captures the complex structural dependencies of language. The iterative refinement through bidirectional interaction allows the model to gradually correct errors, leading to superior performance in joint extraction tasks. Future work may extend this dual-encoder approach to other structured prediction tasks such as dependency parsing.

Summary updated

BibTeX
@inproceedings{wang2020two,
  author = {Jue Wang and Wei Lu},
  title = {{Two are Better than One: Joint Entity and Relation Extraction with Table-Sequence Encoders}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.133},
}
Figure