FastRE: Towards Fast Relation Extraction with Convolutional Encoder and Improved Cascade Binary Tagging Framework

Guozheng Li, Xu Chen, Peng Wang, Jiafeng Xie, Qiqing Luo
5/5/2022
cs.CLcs.AIcs.LG

Official code: seukgcode/FastRE (25 stars, Python, last commit 2022-08-13).

Abstract

Recent work for extracting relations from texts has achieved excellent performance. However, most existing methods pay less attention to the efficiency, making it still challenging to quickly extract relations from massive or streaming text data in realistic scenarios.

Show full abstract

The main efficiency bottleneck is that these methods use a Transformer-based pre-trained language model for encoding, which heavily affects the training speed and inference speed. To address this issue, we propose a fast relation extraction model (FastRE) based on convolutional encoder and improved cascade binary tagging framework. Compared to previous work, FastRE employs several innovations to improve efficiency while also keeping promising performance. Concretely, FastRE adopts a novel convolutional encoder architecture combined with dilated convolution, gated unit and residual connection, which significantly reduces the computation cost of training and inference, while maintaining the satisfactory performance. Moreover, to improve the cascade binary tagging framework, FastRE first introduces a type-relation mapping mechanism to accelerate tagging efficiency and alleviate relation redundancy, and then utilizes a position-dependent adaptive thresholding strategy to obtain higher tagging accuracy and better model generalization. Experimental results demonstrate that FastRE is well balanced between efficiency and performance, and achieves 3-10x training speed, 7-15x inference speed faster, and 1/100 parameters compared to the state-of-the-art models, while the performance is still competitive.

View on arXivView PDF

Code Implementations(1)

seukgcode/FastREOfficial100%

The code and dataset for "FastRE: Towards Fast Relation Extraction with Convolutional Encoder and Improved Cascade Binary Tagging Framework"

252PythonApr 6, 20224 years ago

Similar Papers

Cite this paper

@article{li2022fastre,
  title  = {FastRE: Towards Fast Relation Extraction with Convolutional Encoder and Improved Cascade Binary Tagging Framework},
  author = {Guozheng Li and Xu Chen and Peng Wang and Jiafeng Xie and Qiqing Luo},
  year   = {2022},
  eprint = {2205.02490},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.02490}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.02490.svg)](https://codeofpaper.com/paper/2205.02490)

Discussion