TransNet: Transfer Knowledge for Few-shot Knowledge Graph Completion

Lihui Liu, Zihao Wang, Dawei Zhou, Ruijie Wang, Yuchen Yan +4 more
3/29/2025
cs.AIcs.LG

Official code: lihuiliullh/TransNet (1 star, last commit 2025-05-24).

Abstract

Knowledge graphs (KGs) are ubiquitous and widely used in various applications. However, most real-world knowledge graphs are incomplete, which significantly degrades their performance on downstream tasks. Additionally, the relationships in real-world knowledge graphs often follow a long-tail distribution, meaning that most relations are represented by only a few training triplets. To address these challenges, few-shot learning has been introduced. Few-shot KG completion aims to make accurate predictions for triplets involving novel relations when only a limited number of training triplets are available. Although many methods have been proposed, they typically learn each relation individually, overlooking the correlations between different tasks and the relevant information in previously trained tasks. In this paper, we propose a transfer learning-based few-shot KG completion method (TransNet). By learning the relationships between different tasks, TransNet effectively transfers knowledge from similar tasks to improve the current task's performance. Furthermore, by employing meta-learning, TransNet can generalize effectively to new, unseen relations. Extensive experiments on benchmark datasets demonstrate the superiority of TransNet over state-of-the-art methods. Code can be found at https://github.com/lihuiliullh/TransNet/tree/main

View on arXivView PDF

Code Implementations(1)

10PythonMar 29, 20251 years ago

Similar Papers

Cite this paper

@article{liu2025transnet,
  title  = {TransNet: Transfer Knowledge for Few-shot Knowledge Graph Completion},
  author = {Lihui Liu and Zihao Wang and Dawei Zhou and Ruijie Wang and Yuchen Yan and Bo Xiong and Sihong He and Kai Shu and Hanghang Tong},
  year   = {2025},
  eprint = {2504.03720},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.03720v1}
}

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

Discussion