RAPL: A Relation-Aware Prototype Learning Approach for Few-Shot Document-Level Relation Extraction

Shiao Meng, Xuming Hu, Aiwei Liu, Shu'ang Li, Fukun Ma +2 more
10/24/2023
15 citations
cs.CL

Official code: THU-BPM/RAPL (18 stars, Python, MIT, last commit 2024-03-06).

Abstract

How to identify semantic relations among entities in a document when only a few labeled documents are available? Few-shot document-level relation extraction (FSDLRE) is crucial for addressing the pervasive data scarcity problem in real-world scenarios.

Show full abstract

Metric-based meta-learning is an effective framework widely adopted for FSDLRE, which constructs class prototypes for classification. However, existing works often struggle to obtain class prototypes with accurate relational semantics: 1) To build prototype for a target relation type, they aggregate the representations of all entity pairs holding that relation, while these entity pairs may also hold other relations, thus disturbing the prototype. 2) They use a set of generic NOTA (none-of-the-above) prototypes across all tasks, neglecting that the NOTA semantics differs in tasks with different target relation types. In this paper, we propose a relation-aware prototype learning method for FSDLRE to strengthen the relational semantics of prototype representations. By judiciously leveraging the relation descriptions and realistic NOTA instances as guidance, our method effectively refines the relation prototypes and generates task-specific NOTA prototypes. Extensive experiments demonstrate that our method outperforms state-of-the-art approaches by average 2.61% $F_1$ across various settings of two FSDLRE benchmarks.

View on arXivView PDF

Code Implementations(1)

THU-BPM/RAPLOfficial100%
MIT

Code and data for EMNLP 2023 paper "RAPL: A Relation-Aware Prototype Learning Approach for Few-Shot Document-Level Relation Extraction"

181Python, ShellDec 1, 20232 years agoMIT

Similar Papers

Cite this paper

@article{meng2023rapl,
  title  = {RAPL: A Relation-Aware Prototype Learning Approach for Few-Shot Document-Level Relation Extraction},
  author = {Shiao Meng and Xuming Hu and Aiwei Liu and Shu'ang Li and Fukun Ma and Yawen Yang and Lijie Wen},
  year   = {2023},
  eprint = {2310.15743},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.15743v1}
}

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

Discussion