应用科学学报 ›› 2026, Vol. 44 ›› Issue (1): 50-66.doi: 10.3969/j.issn.0255-8297.2026.01.004

• 计算机应用专辑 • 上一篇    下一篇

基于高斯度量学习的不确定性知识图谱推理模型

张钰婷, 滕飞, 叶晓庆   

  1. 西南交通大学 计算机与人工智能学院, 四川 成都 611756
  • 收稿日期:2025-08-11 发布日期:2026-02-03
  • 通信作者: 滕飞,教授,研究方向为云计算、工业大数据挖掘和医学信息学。E-mail:fteng@swjtu.edu.cn E-mail:fteng@swjtu.edu.cn
  • 基金资助:
    国家自然科学基金(No.62272398);四川省科技计划(No.2024NSFJQ0019)

Uncertain Knowledge Graph Reasoning Model Based on Gaussian Metric Learning

ZHANG Yuting, TENG Fei, YE Xiaoqing   

  1. School of Computing and Artificial Intelligence, Southwest Jiaotong University, Chengdu 611756, Sichuan, China
  • Received:2025-08-11 Published:2026-02-03

摘要: 现实知识图谱中普遍存在一些仅包含少量事实的长尾关系,少样本知识图谱补全旨在解决这一数据稀疏问题。然而,现有方法往往忽视了实体与三元组的内在不确定性,限制了模型在噪声干扰或样本匮乏场景下的推理性能。为此,本文提出了一种面向不确定性补全的协方差优化高斯度量学习模型(covariance-optimizedGaussian metric learning for uncertain completion,CoGMUC),用于解决少样本知识图谱的不确定性推理问题。该模型将知识图谱中的实体和关系建模为高斯分布,利用协方差矩阵有效捕捉其内在不确定性,并通过设计协方差感知的多重匹配网络计算语义相似度,实现对缺失事实的补全及置信度预测。此外,引入了困难负样本挖掘策略,进一步增强模型的辨别能力与泛化性能。在公开数据集NL27K和CN15K上的实验结果表明,相较于现有基于高斯度量学习的少样本不确定性知识图谱补全模型,CoGMUC模型在链接预测任务中,平均倒数排名分别提升了21.8%和2.3%,Hits@10分别提升了9.6%和21.5%,在置信度预测任务中均方误差分别降低了14.3%和7.7%。研究结果表明,CoGMUC模型能有效建模并利用不确定性信息,显著提升了少样本知识图谱补全的性能。

关键词: 知识图谱, 不确定性, 知识图谱推理, 高斯度量学习, 协方差建模

Abstract: Long-tail relations containing only a small number of facts are prevalent in real-world knowledge graphs, and few-shot knowledge graph completion aims to address this data sparsity issue. However, existing approaches often neglect the inherent uncertainty of entities and triples, which limits model reasoning performance under noisy or data-scarce conditions. This paper proposed a covariance-optimized Gaussian metric learning model for uncertain completion (CoGMUC) model to tackle uncertain reasoning in few-shot knowledge graphs. This model represented entities and relations within knowledge graphs as Gaussian distributions, effectively capturing their inherent uncertainty through covariance matrices. It computed semantic similarity with a covariance-aware multi-matching network to complete missing facts and predict confidence levels. Furthermore, a difficult negative sample mining strategy was introduced to enhance the discriminative capability and generalization performance of the model. Experimental results on the public datasets NL27K and CN15K demonstrate that compared with the existing few-shot uncertain knowledge graph completion model based on Gaussian metric learning, CoGMUC improves mean reciprocal rank (MRR) by 21.8% and 2.3% and increases Hits@10 by 9.6% and 21.5%, respectively in the link prediction task. Meanwhile, in the confidence prediction task, the mean squared error (MSE) is reduced by 14.3% and 7.7%, respectively. The findings demonstrate that the CoGMUC model effectively models and leverages uncertainty information, significantly enhancing the performance of few-shot knowledge graph completion.

Key words: knowledge graph, uncertainty, knowledge graph reasoning, Gaussian metric learning, covariance modeling

中图分类号: