RAPS: A Novel Few-Shot Relation Extraction Pipeline with Query-Information Guided Attention and Adaptive Prototype Fusion

Yuzhe Zhang, Min Cen, Tongzhou Wu, Hong Zhang
10/15/2022
cs.CL

Official code: zyz0000/RAPS (2 stars, Python, last commit 2023-05-04).

Abstract

Few-shot relation extraction (FSRE) aims at recognizing unseen relations by learning with merely a handful of annotated instances. To generalize to new relations more effectively, this paper proposes a novel pipeline for the FSRE task based on queRy-information guided Attention and adaptive Prototype fuSion, namely RAPS.

Show full abstract

Specifically, RAPS first derives the relation prototype by the query-information guided attention module, which exploits rich interactive information between the support instances and the query instances, in order to obtain more accurate initial prototype representations. Then RAPS elaborately combines the derived initial prototype with the relation information by the adaptive prototype fusion mechanism to get the integrated prototype for both train and prediction. Experiments on the benchmark dataset FewRel 1.0 show a significant improvement of our method against state-of-the-art methods.

View on arXivView PDF

Code Implementations(1)

zyz0000/RAPSOfficial100%
20Python, ShellOct 7, 20223 years ago

Similar Papers

Cite this paper

@article{zhang2022raps,
  title  = {RAPS: A Novel Few-Shot Relation Extraction Pipeline with Query-Information Guided Attention and Adaptive Prototype Fusion},
  author = {Yuzhe Zhang and Min Cen and Tongzhou Wu and Hong Zhang},
  year   = {2022},
  eprint = {2210.08242},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.08242}
}

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

Discussion