Skip to main content
QUICK REVIEW

[Paper Review] None Class Ranking Loss for Document-Level Relation Extraction

Zhou Yang, Wee Sun Lee|arXiv (Cornell University)|May 1, 2022
Text and Document Classification TechnologiesComputer Science4 citations
TL;DR

This paper proposes None Class Ranking Loss (NCRL), a novel multi-label loss for document-level relation extraction that enforces large confidence score margins between the 'none' class and each pre-defined relation class. By modeling label correlations and enabling context-dependent thresholding, NCRL improves performance over standard binary cross entropy, especially under positive-negative class imbalance and noisy labels, achieving state-of-the-art results on DocRED, DialogRE, and GoEmotions datasets.

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". 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.

Motivation & Objective

  • To address the limitation of standard multi-label losses like binary cross entropy in document-level relation extraction, which ignore the 'none' class and rely on global thresholding.
  • To improve model performance by explicitly modeling the relationship between the 'none' class and pre-defined relation classes through label confidence margins.
  • To enhance robustness against positive-negative class imbalance and mislabeled data in real-world document-level RE datasets.
  • To enable context-dependent thresholding by using the 'none' class score as an instance-specific threshold for label prediction.

Proposed method

  • Propose a new surrogate loss, None Class Ranking Loss (NCRL), that maximizes the margin between the confidence score of the 'none' class and each pre-defined relation class.
  • Formulate the multi-label prediction task as a ranking problem where positive relations must be ranked above the 'none' class, and negative relations below.
  • Introduce margin regularization to penalize negative samples whose confidence is far below the 'none' class score, mitigating positive-negative imbalance.
  • Apply margin shifting to reduce the impact of negative samples with abnormally high confidence scores, improving robustness to label noise.
  • The method uses BERT-based sentence encoders to generate context-aware representations, followed by a classifier head to predict relation scores.
  • The 'none' class score acts as a dynamic threshold: any relation with a higher score than the 'none' class is predicted as positive.

Experimental results

Research questions

  • RQ1Can a multi-label loss that explicitly models the 'none' class improve performance in document-level relation extraction compared to standard binary cross entropy?
  • RQ2Does learning instance-dependent thresholds via the 'none' class score lead to better generalization than global thresholding?
  • RQ3How effective is NCRL in handling positive-negative class imbalance in document-level RE datasets?
  • RQ4Can NCRL be robust to mislabeled data, particularly samples with abnormally high confidence scores?
  • RQ5Does NCRL generalize to other multi-label tasks when 'none' class instances are available?

Key findings

  • NCRL significantly outperforms binary cross entropy and other multi-label losses on the DocRED and DialogRE document-level relation extraction datasets.
  • On the DocRED dataset, NCRL achieves a test F1 score of 73.13%, surpassing the next best method (BCE with tuned per-label threshold) by 1.29 points.
  • NCRL demonstrates robustness to hyperparameter choices, particularly the margin shifting parameter γ, showing minimal performance variation across different values.
  • When applied to the AAPD dataset without any 'none' class instances, NCRL fails to outperform BCE, confirming that 'none' class instances are essential for its effectiveness.
  • The margin regularization and margin shifting techniques effectively reduce the impact of noisy and imbalanced samples, improving model generalization.
  • NCRL achieves state-of-the-art performance on GoEmotions, a fine-grained emotion classification dataset, confirming its generalizability to other multi-label tasks with 'none' class instances.

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.