Skip to main content
QUICK REVIEW

[Paper Review] BERT-GT: Cross-sentence n-ary relation extraction with BERT and Graph Transformer

Po‐Ting Lai, Zhiyong Lu|arXiv (Cornell University)|Jan 11, 2021
Topic ModelingComputer Science14 references7 citations
TL;DR

This paper proposes BERT-GT, a novel architecture that integrates a neighbor-attention mechanism into BERT to enhance cross-sentence n-ary relation extraction in biomedical texts. By focusing attention only on neighboring tokens, it reduces noise in long contexts, achieving 5.44% higher accuracy and 3.89% higher F1-score than state-of-the-art methods on n-ary and chemical-protein relation datasets.

ABSTRACT

A biomedical relation statement is commonly expressed in multiple sentences and consists of many concepts, including gene, disease, chemical, and mutation. To automatically extract information from biomedical literature, existing biomedical text-mining approaches typically formulate the problem as a cross-sentence n-ary relation-extraction task that detects relations among n entities across multiple sentences, and use either a graph neural network (GNN) with long short-term memory (LSTM) or an attention mechanism. Recently, Transformer has been shown to outperform LSTM on many natural language processing (NLP) tasks. In this work, we propose a novel architecture that combines Bidirectional Encoder Representations from Transformers with Graph Transformer (BERT-GT), through integrating a neighbor-attention mechanism into the BERT architecture. Unlike the original Transformer architecture, which utilizes the whole sentence(s) to calculate the attention of the current token, the neighbor-attention mechanism in our method calculates its attention utilizing only its neighbor tokens. Thus, each token can pay attention to its neighbor information with little noise. We show that this is critically important when the text is very long, as in cross-sentence or abstract-level relation-extraction tasks. Our benchmarking results show improvements of 5.44% and 3.89% in accuracy and F1-measure over the state-of-the-art on n-ary and chemical-protein relation datasets, suggesting BERT-GT is a robust approach that is applicable to other biomedical relation extraction tasks or datasets.

Motivation & Objective

  • To address the challenge of extracting complex, cross-sentence n-ary relations involving multiple entities in biomedical literature.
  • To improve relation extraction performance in long, multi-sentence biomedical texts where standard attention mechanisms suffer from noise.
  • To integrate a neighbor-attention mechanism into BERT to enhance contextual modeling with reduced noise.
  • To develop a robust framework applicable to diverse biomedical relation extraction tasks beyond the evaluated datasets.
  • To outperform existing models based on GNNs with LSTMs or standard attention mechanisms in cross-sentence relation extraction.

Proposed method

  • Integrates a neighbor-attention mechanism into the BERT architecture to limit attention computation to only neighboring tokens, reducing noise in long sequences.
  • Modifies the self-attention mechanism in BERT so that each token attends only to its immediate neighbors rather than the entire input sequence.
  • Uses Graph Transformer components to model relational structures among entities across multiple sentences in biomedical texts.
  • Leverages BERT’s deep contextual representations while enhancing them with localized attention to improve long-context reasoning.
  • Combines entity-aware representation learning with graph-based message passing to capture complex n-ary relations across sentence boundaries.
  • Trains the model end-to-end on biomedical datasets using standard sequence labeling and relation classification objectives.

Experimental results

Research questions

  • RQ1Can a modified attention mechanism that restricts attention to neighboring tokens improve relation extraction in long biomedical texts?
  • RQ2How does BERT-GT perform compared to state-of-the-art models in cross-sentence n-ary relation extraction tasks?
  • RQ3Does the neighbor-attention mechanism reduce noise and improve performance on abstract-level or multi-sentence relation extraction?
  • RQ4To what extent can BERT-GT generalize to different types of biomedical relations, such as chemical-protein interactions?
  • RQ5Is the integration of Graph Transformer with BERT effective for modeling complex, multi-entity relations across sentence boundaries?

Key findings

  • BERT-GT achieves a 5.44% absolute improvement in accuracy over the state-of-the-art on the n-ary relation extraction dataset.
  • The model improves F1-score by 3.89% on the n-ary relation dataset, demonstrating significant gains in relation extraction performance.
  • On the chemical-protein relation dataset, BERT-GT achieves a 3.89% higher F1-score than the previous state-of-the-art model.
  • The neighbor-attention mechanism effectively reduces noise in long-context inputs, leading to more robust attention representations.
  • BERT-GT outperforms models using LSTMs or standard attention mechanisms, confirming the advantage of localized attention in long-text settings.
  • The model shows strong generalization potential, suggesting applicability to other biomedical relation extraction tasks and datasets.

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.