论文标题
一种简单而有效的关系信息指导的方法,用于几个射击关系提取
A Simple yet Effective Relation Information Guided Approach for Few-Shot Relation Extraction
论文作者
论文摘要
很少有射击关系提取旨在通过训练中有几个标记的示例来预测句子中一对实体的关系。最近的一些工作引入了关系信息(即关系标签或描述),以帮助基于原型网络的模型学习。但是,它们中的大多数人通常通过设计复杂的网络结构(例如生成混合特征)与对比度学习或注意力网络相结合,将每个关系类别的原型隐含地限制在每个关系类别中。我们认为,可以将关系信息更明确,有效地引入模型。因此,本文提出了一种直接的添加方法来介绍关系信息。具体而言,对于每个关系类别,关系表示首先是通过将两个关系的两个视图(即[Cls]令牌嵌入和所有代币嵌入的平均值)串联而生成的,然后直接添加到原始原型中以用于培训和预测。基准数据集中的实验结果很少1.0显示出显着的改进,并获得了与最先进的结果相当的结果,这证明了我们提出的方法的有效性。此外,进一步分析证明直接添加是整合关系表示和原始原型的更有效方法。
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. 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.