A Simple yet Effective Relation Information Guided Approach for Few-Shot Relation Extraction

Yang Liu, Jinpeng Hu, Xiang Wan, Tsung-Hui Chang
5/19/2022
cs.CL

Official code: lyyang01/SimpleFSRE (19 stars, Python, last commit 2022-05-30).

Abstract

Few-Shot Relation Extraction aims at predicting the relation for a pair of entities in a sentence by training with a few labelled examples in each relation. Some recent works have introduced relation information (i.e., relation labels or descriptions) to assist model learning based on Prototype Network.

Show full abstract

However, most of them constrain the prototypes of each relation class implicitly with relation information, generally through designing complex network structures, like generating hybrid features, combining with contrastive learning or attention networks. We argue that relation information can be introduced more explicitly and effectively into the model. Thus, this paper proposes a direct addition approach to introduce relation information. Specifically, for each relation class, the relation representation is first generated by concatenating two views of relations (i.e., [CLS] token embedding and the mean value of embeddings of all tokens) and then directly added to the original prototype for both train and prediction. Experimental results on the benchmark dataset FewRel 1.0 show significant improvements and achieve comparable results to the state-of-the-art, which demonstrates the effectiveness of our proposed approach. Besides, further analyses verify that the direct addition is a much more effective way to integrate the relation representations and the original prototypes.

View on arXivView PDF

Code Implementations(1)

A Simple yet Effective Relation Information Guided Approach for Few-Shot Relation Extraction

192Python, ShellMar 2, 20224 years ago
few-shot-learningrelation-extraction

Similar Papers

Cite this paper

@article{liu2022simple,
  title  = {A Simple yet Effective Relation Information Guided Approach for Few-Shot Relation Extraction},
  author = {Yang Liu and Jinpeng Hu and Xiang Wan and Tsung-Hui Chang},
  year   = {2022},
  eprint = {2205.09536},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.09536}
}

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

Discussion