分离与聚合:一种用于知识图谱补全的基于 Transformer 的 Patch 细化模型
Separate-and-Aggregate: A Transformer-based Patch Refinement Model for Knowledge Graph Completion
AI总结:
针对现有 KGC 方法表达能力不足或卷积归纳偏置的问题,本文提出 PatReFormer,通过 patch 分割与交叉注意力实现实体和关系双向交互,并在四个基准上显著提升 MRR、H@n。
摘要:
知识图谱补全(KGC)是从任意给定知识图谱(KG)中推断缺失事实的任务。以往的 KGC 方法通常将知识图谱实体和关系表示为可训练的连续嵌入,并将实体 h(或 t)与关系 r 的嵌入融合到查询 (h, r, ?)(或 (?, r, t))的隐藏表示中,以逼近缺失实体。为实现这一点,它们要么使用浅层线性变换,要么使用深度卷积模块。然而,线性变换存在表达能力问题,而深度卷积模块会引入不必要的归纳偏置,这可能会降低模型性能。因此,我们提出了一种新颖的、用于 KGC 的基于 Transformer 的 Patch 细化模型(PatReFormer)。PatReFormer 首先将嵌入分割为一系列 patch,然后采用交叉注意力模块,使实体与关系之间能够进行双向嵌入特征交互,从而更好地理解底层 KG。我们在四个常用 KGC 基准 WN18RR、FB15k-237、YAGO37 和 DB100K 上进行了实验。实验结果表明,在 MRR 和 H@n 等标准 KGC 评估指标上,该模型相较现有 KGC 方法取得了显著性能提升。我们的分析首先验证了 PatReFormer 中模型设计选择的有效性。随后我们发现,PatReFormer 能够从较大的关系嵌入维度中更好地捕捉 KG 信息。最后,我们证明,与其他 KGC 模型相比,PatReFormer 的优势在于处理复杂关系类型。
英文摘要:
Knowledge graph completion (KGC) is the task of inferencing missing facts from any given knowledge graphs (KG). Previous KGC methods typically represent knowledge graph entities and relations as trainable continuous embeddings and fuse the embeddings of the entity $h$ (or $t$) and relation $r$ into hidden representations of query $(h, r, ?)$ (or $(?, r, t$)) to approximate the missing entities. To achieve this, they either use shallow linear transformations or deep convolutional modules. However, the linear transformations suffer from the expressiveness issue while the deep convolutional modules introduce unnecessary inductive bias, which could potentially degrade the model performance. Thus, we propose a novel Transformer-based Patch Refinement Model (PatReFormer) for KGC. PatReFormer first segments the embedding into a sequence of patches and then employs cross-attention modules to allow bi-directional embedding feature interaction between the entities and relations, leading to a better understanding of the underlying KG. We conduct experiments on four popular KGC benchmarks, WN18RR, FB15k-237, YAGO37 and DB100K. The experimental results show significant performance improvement from existing KGC methods on standard KGC evaluation metrics, e.g., MRR and H@n. Our analysis first verifies the effectiveness of our model design choices in PatReFormer. We then find that PatReFormer can better capture KG information from a large relation embedding dimension. Finally, we demonstrate that the strength of PatReFormer is at complex relation types, compared to other KGC models
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。