arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.01510cs.LG
收藏

Flock:通过在随机游走上学习的知识图谱基础模型

Flock: A Knowledge Graph Foundation Model via Learning on Random Walks

KAIST(韩国科学技术院);University of Oxford(牛津大学);TU Wien(维也纳技术大学);AITHYRA

Jinwoo Kim, Xingyue Huang, Krzysztof Olejniczak, Kyungbin Min, Michael Bronstein, Seunghoon Hong, İsmail İlkan Ceylan

AI总结:

Flock通过在随机游走上学习,实现知识图谱的零样本链接预测,解决了传统方法在区分结构相似但语义不同的关系时的限制,展示了强大的泛化能力。

摘要:

我们研究了知识图谱(KGs)上的零样本链接预测问题,要求模型能够泛化到新实体和新关系。知识图谱基础模型(KGFMs)通过强制节点和关系的等价性来解决这一任务,使它们能够学习节点和关系的结构性质,这些性质可以转移到结构相似的新KGs中。然而,传统确定性等价性概念本质上限制了KGFMs的表达能力,因为它阻止了模型区分结构相似但语义不同的关系。为克服这一限制,我们提出利用概率性节点-关系等价性,这在分布上保持等价性,同时利用结构化随机性在推理时打破对称性。基于这一原则,我们提出了Flock,一种KGFM,它通过迭代采样随机游走,将它们编码为序列,用序列模型进行嵌入,并通过学习的池化聚合节点和关系表示。Flock尊重概率性节点-关系等价性,并且关键的是,它是一个通用近似器,能够近似图上同构不变的链接级函数。实证上,Flock完美解决了我们新的诊断数据集Petals,在此数据集上当前KGFMs失败,且在54个不同领域的KGs上实现了实体和关系预测任务的最新性能。代码可在https://github.com/jw9730/flock上获得。

英文摘要:

We study the problem of zero-shot link prediction on knowledge graphs (KGs), which requires models to generalize to novel entities and novel relations. Knowledge graph foundation models (KGFMs) address this task by enforcing equivariance over both nodes and relations, which enables them to learn structural properties of nodes and relations that transfer to novel KGs with similar structure. However, the conventional notion of deterministic equivariance inherently limits the expressive power of KGFMs, as it prevents them from distinguishing relations that are structurally similar but semantically distinct. To overcome this limitation, we propose to leverage probabilistic node-relation equivariance, which preserves equivariance in distribution while using structured randomness to break symmetries at inference time. Building on this principle, we present Flock, a KGFM that iteratively samples random walks, encodes them into sequences, embeds them with a sequence model, and aggregates node and relation representations through learned pooling. Flock respects probabilistic node-relation equivariance and, crucially, is a universal approximator for isomorphism-invariant link-level functions over KGs. Empirically, Flock perfectly solves our new diagnostic dataset Petals on which current KGFMs fail, and achieves state-of-the-art performance on entity and relation prediction tasks across 54 KGs from diverse domains. Code is available at https://github.com/jw9730/flock.

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

↑