arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.12703cs.CLcs.AI
收藏

基于结构感知对比学习的知识图谱补全语言模型子图感知训练

Subgraph-Aware Training of Language Models for Knowledge Graph Completion Using Structure-Aware Contrastive Learning

Hanyang University(汉阳大学)

Youmin Ko, Hyemin Yang, Taeuk Kim, Hyunjoon Kim

AI总结:

本文提出子图感知训练框架SATKGC,通过子图感知小批量采样和结构感知对比学习,将知识图谱的拓扑结构归纳偏置全面纳入预训练语言模型微调,有效提升了知识图谱补全的准确度。

摘要:

微调预训练语言模型(PLMs)近期展现出改善知识图谱补全(KGC)的潜力。然而,大多数基于PLM的方法仅关注编码文本信息,忽略了知识图谱的长尾特性及其各种拓扑结构,例如子图、最短路径和度。我们声称这是实现PLMs在KGC中更高准确度的主要障碍。为此,我们提出了一种用于KGC的子图感知训练框架(SATKGC),包含两个思路:(i)子图感知小批量采样,以鼓励困难负采样并缓解训练期间实体出现频率的不平衡;以及(ii)新的对比学习,以根据知识图谱的结构属性,更加关注批内更困难的负三元组和正三元组。据我们所知,这是首次将知识图谱的结构归纳偏置全面纳入PLMs微调的研究。在三个KGC基准上的广泛实验证明了SATKGC的优越性。我们的代码已公开。

英文摘要:

Fine-tuning pre-trained language models (PLMs) has recently shown a potential to improve knowledge graph completion (KGC). However, most PLM-based methods focus solely on encoding textual information, neglecting the long-tailed nature of knowledge graphs and their various topological structures, e.g., subgraphs, shortest paths, and degrees. We claim that this is a major obstacle to achieving higher accuracy of PLMs for KGC. To this end, we propose a Subgraph-Aware Training framework for KGC (SATKGC) with two ideas: (i) subgraph-aware mini-batching to encourage hard negative sampling and to mitigate an imbalance in the frequency of entity occurrences during training, and (ii) new contrastive learning to focus more on harder in-batch negative triples and harder positive triples in terms of the structural properties of the knowledge graph. To the best of our knowledge, this is the first study to comprehensively incorporate the structural inductive bias of the knowledge graph into fine-tuning PLMs. Extensive experiments on three KGC benchmarks demonstrate the superiority of SATKGC. Our code is available.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑