Relation-Aware Network with Attention-Based Loss for Few-Shot Knowledge Graph Completion

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Qiao, Qiao, Li, Yuepei, Zhou, Kang, Li, Qi
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918081867022336
author Qiao, Qiao
Li, Yuepei
Zhou, Kang
Li, Qi
author_facet Qiao, Qiao
Li, Yuepei
Zhou, Kang
Li, Qi
contents Few-shot knowledge graph completion (FKGC) task aims to predict unseen facts of a relation with few-shot reference entity pairs. Current approaches randomly select one negative sample for each reference entity pair to minimize a margin-based ranking loss, which easily leads to a zero-loss problem if the negative sample is far away from the positive sample and then out of the margin. Moreover, the entity should have a different representation under a different context. To tackle these issues, we propose a novel Relation-Aware Network with Attention-Based Loss (RANA) framework. Specifically, to better utilize the plentiful negative samples and alleviate the zero-loss issue, we strategically select relevant negative samples and design an attention-based loss function to further differentiate the importance of each negative sample. The intuition is that negative samples more similar to positive samples will contribute more to the model. Further, we design a dynamic relation-aware entity encoder for learning a context-dependent entity representation. Experiments demonstrate that RANA outperforms the state-of-the-art models on two benchmark datasets.
format Preprint
id arxiv_https___arxiv_org_abs_2306_09519
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Relation-Aware Network with Attention-Based Loss for Few-Shot Knowledge Graph Completion
Qiao, Qiao
Li, Yuepei
Zhou, Kang
Li, Qi
Computation and Language
Artificial Intelligence
Machine Learning
Few-shot knowledge graph completion (FKGC) task aims to predict unseen facts of a relation with few-shot reference entity pairs. Current approaches randomly select one negative sample for each reference entity pair to minimize a margin-based ranking loss, which easily leads to a zero-loss problem if the negative sample is far away from the positive sample and then out of the margin. Moreover, the entity should have a different representation under a different context. To tackle these issues, we propose a novel Relation-Aware Network with Attention-Based Loss (RANA) framework. Specifically, to better utilize the plentiful negative samples and alleviate the zero-loss issue, we strategically select relevant negative samples and design an attention-based loss function to further differentiate the importance of each negative sample. The intuition is that negative samples more similar to positive samples will contribute more to the model. Further, we design a dynamic relation-aware entity encoder for learning a context-dependent entity representation. Experiments demonstrate that RANA outperforms the state-of-the-art models on two benchmark datasets.
title Relation-Aware Network with Attention-Based Loss for Few-Shot Knowledge Graph Completion
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2306.09519