Zhang Han, Bai Luyi
School of Computer and Communication Engineering, Northeastern University (Qinhuangdao), Qinhuangdao 066004, China.
School of Computer and Communication Engineering, Northeastern University (Qinhuangdao), Qinhuangdao 066004, China.
Neural Netw. 2023 Apr;161:371-381. doi: 10.1016/j.neunet.2023.01.043. Epub 2023 Feb 1.
Few-shot knowledge graph completion (KGC) is an important and common task in real applications, which aims to predict unseen facts when only few samples are available for each relation in the knowledge graph (KG). Previous methods on few-shot KGC mainly focus on static KG, however, many KG in real-world applications are dynamic and develop over time. In this work, we consider few-shot KGC in temporal knowledge graphs (TKGs), where the fact may only hold for a specific timestamp. We propose a Few-Shot Completion model in TKG (TFSC), which compare the input query to the given few-shot references to make predictions. Specifically, in order to enhance the representation of entities in the case of few samples, we use the attention mechanism to model the neighbor entities of the task entity with timestamp information, and generate expressive time-aware entity pair representations through the Transformer encoder. A comprehensive set of experiments is finally carried out to demonstrate the effectiveness a of our proposed model TFSC.
少样本知识图谱补全(KGC)是实际应用中的一项重要且常见的任务,其目标是在知识图谱(KG)中每个关系仅有少量样本可用时预测未见事实。以往的少样本KGC方法主要关注静态KG,然而,现实世界应用中的许多KG是动态的且随时间发展。在这项工作中,我们考虑时态知识图谱(TKG)中的少样本KGC,其中事实可能仅在特定时间戳成立。我们提出了一种TKG中的少样本补全模型(TFSC),它将输入查询与给定的少样本参考进行比较以进行预测。具体而言,为了在样本少的情况下增强实体的表示,我们使用注意力机制对带有时间戳信息的任务实体的邻居实体进行建模,并通过Transformer编码器生成具有表现力的时间感知实体对表示。最后进行了一系列全面的实验来证明我们提出的模型TFSC的有效性。