None Class Ranking Loss for Document-Level Relation Extraction

Yang Zhou, Wee Sun Lee
5/1/2022
cs.CLcs.LG

Official code: yangzhou12/NCRL (14 stars, Python, last commit 2023-08-01).

Abstract

Document-level relation extraction (RE) aims at extracting relations among entities expressed across multiple sentences, which can be viewed as a multi-label classification problem. In a typical document, most entity pairs do not express any pre-defined relation and are labeled as "none" or "no relation".

Show full abstract

For good document-level RE performance, it is crucial to distinguish such none class instances (entity pairs) from those of pre-defined classes (relations). However, most existing methods only estimate the probability of pre-defined relations independently without considering the probability of "no relation". This ignores the context of entity pairs and the label correlations between the none class and pre-defined classes, leading to sub-optimal predictions. To address this problem, we propose a new multi-label loss that encourages large margins of label confidence scores between each pre-defined class and the none class, which enables captured label correlations and context-dependent thresholding for label prediction. To gain further robustness against positive-negative imbalance and mislabeled data that could appear in real-world RE datasets, we propose a margin regularization and a margin shifting technique. Experimental results demonstrate that our method significantly outperforms existing multi-label losses for document-level RE and works well in other multi-label tasks such as emotion classification when none class instances are available for training.

View on arXivView PDF

Code Implementations(1)

yangzhou12/NCRLOfficial100%

Implementation of None Class Ranking Loss for Document-Level Relation Extraction

141PythonMay 25, 20213 years ago

Similar Papers

Cite this paper

@article{zhou2022none,
  title  = {None Class Ranking Loss for Document-Level Relation Extraction},
  author = {Yang Zhou and Wee Sun Lee},
  year   = {2022},
  eprint = {2205.00476},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.00476}
}

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

Discussion