Learning Logic Rules for Document-level Relation Extraction

Dongyu Ru, Changzhi Sun, Jiangtao Feng, Lin Qiu, Hao Zhou +3 more
11/9/2021
cs.CL

Official code: rudongyu/LogiRE (47 stars, Python, MIT, last commit 2021-11-23).

Abstract

Document-level relation extraction aims to identify relations between entities in a whole document. Prior efforts to capture long-range dependencies have relied heavily on implicitly powerful representations learned through (graph) neural networks, which makes the model less transparent.

Show full abstract

To tackle this challenge, in this paper, we propose LogiRE, a novel probabilistic model for document-level relation extraction by learning logic rules. LogiRE treats logic rules as latent variables and consists of two modules: a rule generator and a relation extractor. The rule generator is to generate logic rules potentially contributing to final predictions, and the relation extractor outputs final predictions based on the generated logic rules. Those two modules can be efficiently optimized with the expectation-maximization (EM) algorithm. By introducing logic rules into neural networks, LogiRE can explicitly capture long-range dependencies as well as enjoy better interpretation. Empirical results show that LogiRE significantly outperforms several strong baselines in terms of relation performance (1.8 F1 score) and logical consistency (over 3.3 logic score). Our code is available at https://github.com/rudongyu/LogiRE.

View on arXivView PDF

Code Implementations(1)

rudongyu/LogiREOfficial100%
MIT

Learning Logic Rules for Document-Level Relation Extraction

474PythonAug 30, 20215 years agoMIT

Similar Papers

Cite this paper

@article{ru2021learning,
  title  = {Learning Logic Rules for Document-level Relation Extraction},
  author = {Dongyu Ru and Changzhi Sun and Jiangtao Feng and Lin Qiu and Hao Zhou and Weinan Zhang and Yong Yu and Lei Li},
  year   = {2021},
  eprint = {2111.05407},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.05407}
}

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

Discussion