Cross-domain few-shot relation extraction poses a great challenge for the existing few-shot learning methods and domain adaptation methods when the source domain and target domain have large discrepancies. This paper proposes a method by combining the idea of few-shot learning and domain adaptation to deal with this problem. In the proposed method, an encoder, learned by optimizing a representation loss and an adversarial loss, is used to extract the relation of sentences in the source and target domain. The representation loss, including a cross-entropy loss and a contrastive loss, makes the encoder extract the relation of the source domain and keep the geometric structure of the classes in the source domain. And the adversarial loss is used to merge the source domain and target domain. The experimental results on the benchmark FewRel dataset demonstrate that the proposed method can outperform some state-of-the-art methods.
翻译:当源域和目标域存在巨大差异时,交叉偏差的点数关系提取对现有的微小学习方法和域适应方法构成巨大挑战。本文件提出一种方法,将微小学习和域适应的构想结合起来,以解决这一问题。在拟议方法中,通过优化显示损失和对抗性损失而学习的编码器被用于在源域和目标域中提取判刑关系。表示损失,包括跨性机体损失和对比性损失,使编码器提取源域的关系,并保持源域内的分类的几何结构。对抗性损失用于合并源域和目标域。关于少雷尔基准数据集的实验结果表明,拟议的方法可以超越某些最先进的方法。