Distant Supervision Relation Extraction with Intra-Bag and Inter-Bag Attentions

Zhi-Xiu Ye, Zhen-Hua Ling
3/30/2019
cs.CLcs.AI
transformer-attention

Official code: ZhixiuYe/Intra-Bag-and-Inter-Bag-Attentions (115 stars, Python, PyTorch, last commit 2021-07-20).

Abstract

This paper presents a neural relation extraction method to deal with the noisy training data generated by distant supervision. Previous studies mainly focus on sentence-level de-noising by designing neural networks with intra-bag attentions.

Show full abstract

In this paper, both intra-bag and inter-bag attentions are considered in order to deal with the noise at sentence-level and bag-level respectively. First, relation-aware bag representations are calculated by weighting sentence embeddings using intra-bag attentions. Here, each possible relation is utilized as the query for attention calculation instead of only using the target relation in conventional methods. Furthermore, the representation of a group of bags in the training set which share the same relation label is calculated by weighting bag representations using a similarity-based inter-bag attention module. Finally, a bag group is utilized as a training sample when building our relation extractor. Experimental results on the New York Times dataset demonstrate the effectiveness of our proposed intra-bag and inter-bag attention modules. Our method also achieves better relation extraction accuracy than state-of-the-art methods on this dataset.

View on arXivView PDF

Code Implementations(1)

PyTorch

Code for NAACL 2019 paper: Distant Supervision Relation Extraction with Intra-Bag and Inter-Bag Attentions

11529Python, C++Feb 26, 20195 years ago
deeplearningdistant-supervisionnlppytorchrelation-extraction

Similar Papers

Cite this paper

@article{ye2019distant,
  title  = {Distant Supervision Relation Extraction with Intra-Bag and Inter-Bag Attentions},
  author = {Zhi-Xiu Ye and Zhen-Hua Ling},
  year   = {2019},
  eprint = {1904.00143},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1904.00143}
}

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/1904.00143.svg)](https://codeofpaper.com/paper/1904.00143)

Discussion