Skip to main content
QUICK REVIEW

[Paper Review] Extracting Multiple-Relations in One-Pass with Pre-Trained Transformers

Haoyu Wang, Ming Tan|arXiv (Cornell University)|Feb 4, 2019
Topic ModelingComputer Science29 references18 citations
TL;DR

This paper proposes a one-pass relation extraction framework using pre-trained transformers that simultaneously predicts multiple relations between entity pairs in a single encoding pass, achieving state-of-the-art performance on the ACE 2005 benchmark. By integrating a structured prediction layer and entity-aware self-attention into BERT, the method improves efficiency and scalability while maintaining high accuracy.

ABSTRACT

Most approaches to extraction multiple relations from a paragraph require multiple passes over the paragraph. In practice, multiple passes are computationally expensive and this makes difficult to scale to longer paragraphs and larger text corpora. In this work, we focus on the task of multiple relation extraction by encoding the paragraph only once (one-pass). We build our solution on the pre-trained self-attentive (Transformer) models, where we first add a structured prediction layer to handle extraction between multiple entity pairs, then enhance the paragraph embedding to capture multiple relational information associated with each entity with an entity-aware attention technique. We show that our approach is not only scalable but can also perform state-of-the-art on the standard benchmark ACE 2005.

Motivation & Objective

  • To address the inefficiency of existing multiple-relation extraction (MRE) methods that require multiple encoding passes over input text.
  • To enable simultaneous prediction of multiple relations between entity pairs using a single forward pass of the input paragraph.
  • To improve scalability and efficiency for real-world applications involving large or complex input texts.
  • To achieve state-of-the-art performance on standard MRE benchmarks like ACE 2005 and SemEval 2018 Task 7.
  • To demonstrate that pre-trained models like BERT can be effectively adapted for end-to-end MRE with minimal architectural modifications.

Proposed method

  • The method uses BERT as the base encoder, with a structured prediction layer to predict relations for all entity pairs in one forward pass.
  • Entity-aware self-attention is introduced to make attention heads sensitive to the positions of all entities in the input sequence.
  • Entity representations are obtained via average-pooling of their token-level BERT embeddings in the final layer.
  • Relation prediction is performed via a linear classifier applied to the concatenated representations of each entity pair: $ P(r_{ij}|\mathbf{x},e_i,e_j) = \textrm{softmax}(\mathbf{W}^L[\mathbf{o}_i:\mathbf{o}_j] + \mathbf{b}) $.
  • The model is trained end-to-end and supports both single-pass and multi-pass inference settings for comparison.
  • The approach is compatible with other transformer-based encoders beyond BERT, such as RoBERTa.

Experimental results

Research questions

  • RQ1Can multiple relations be extracted from a single input paragraph in one encoding pass without sacrificing performance?
  • RQ2How does entity-aware self-attention improve relation extraction accuracy compared to standard BERT attention?
  • RQ3Does a simple linear classifier suffice for MRE when using powerful pre-trained embeddings like BERT?
  • RQ4How does one-pass MRE compare to multi-pass SRE-based methods in terms of speed and accuracy?
  • RQ5Can the proposed method generalize to other benchmarks like SemEval 2018 Task 7 without extensive fine-tuning or data augmentation?

Key findings

  • The proposed one-pass model achieves a new state-of-the-art F1 score of 63.14 on the ACE 2005 benchmark, outperforming prior methods.
  • The model processes 126 relations per second during inference, which is 5.5x faster than the next best method (23 relations per second).
  • Training time is reduced by 3.5x compared to the multi-pass SRE baseline.
  • On SemEval 2018 Task 7, the model achieves 81.4 Macro-F1 and 83.1 Micro-F1, matching the top shared-task system while being a single model.
  • The use of a linear classifier outperforms MLP and Biaffine layers, suggesting that BERT's representations are already highly expressive.
  • Adding entity-aware attention improves performance by 8% on the SemEval 2010 Task 8 benchmark, demonstrating its effectiveness even in single-relation settings.

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.