Soft Reasoning Paths for Knowledge Graph Completion
Yanning Hou, Sihang Zhou, Ke Liang, Lingyuan Meng, Xiaoshu Chen, Ke Xu, Siwei Wang, Xinwang Liu, Jian Huang
TL;DR
This paper tackles the problem of knowledge graph completion when reasoning paths are incomplete or unavailable. It introduces soft reasoning paths by attaching trainable embeddings to each relation and aligns these embeddings with actual reasoning paths through a contrastive objective, complemented by a dual-encoder architecture. A hierarchical ranking strategy combines signals from relations, reasoning paths, and soft paths to improve both efficiency and accuracy, demonstrated across WN18RR, FB15k-237, and Wikidata5M-Trans with state-of-the-art results and robustness to missing-path scenarios. While the approach incurs higher computational costs, the substantial performance gains suggest a favorable trade-off for large-scale KGC applications, with future work aimed at further efficiency improvements.
Abstract
Reasoning paths are reliable information in knowledge graph completion (KGC) in which algorithms can find strong clues of the actual relation between entities. However, in real-world applications, it is difficult to guarantee that computationally affordable paths exist toward all candidate entities. According to our observation, the prediction accuracy drops significantly when paths are absent. To make the proposed algorithm more stable against the missing path circumstances, we introduce soft reasoning paths. Concretely, a specific learnable latent path embedding is concatenated to each relation to help better model the characteristics of the corresponding paths. The combination of the relation and the corresponding learnable embedding is termed a soft path in our paper. By aligning the soft paths with the reasoning paths, a learnable embedding is guided to learn a generalized path representation of the corresponding relation. In addition, we introduce a hierarchical ranking strategy to make full use of information about the entity, relation, path, and soft path to help improve both the efficiency and accuracy of the model. Extensive experimental results illustrate that our algorithm outperforms the compared state-of-the-art algorithms by a notable margin. The code will be made publicly available after the paper is officially accepted.
