Saved in:
Bibliographic Details
Main Authors: Kim, Jinwoo, Huang, Xingyue, Olejniczak, Krzysztof, Min, Kyungbin, Bronstein, Michael, Hong, Seunghoon, Ceylan, İsmail İlkan
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2510.01510
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918489477873664
author Kim, Jinwoo
Huang, Xingyue
Olejniczak, Krzysztof
Min, Kyungbin
Bronstein, Michael
Hong, Seunghoon
Ceylan, İsmail İlkan
author_facet Kim, Jinwoo
Huang, Xingyue
Olejniczak, Krzysztof
Min, Kyungbin
Bronstein, Michael
Hong, Seunghoon
Ceylan, İsmail İlkan
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2510_01510
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Flock: A Knowledge Graph Foundation Model via Learning on Random Walks
Kim, Jinwoo
Huang, Xingyue
Olejniczak, Krzysztof
Min, Kyungbin
Bronstein, Michael
Hong, Seunghoon
Ceylan, İsmail İlkan
Machine Learning
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.
title Flock: A Knowledge Graph Foundation Model via Learning on Random Walks
topic Machine Learning
url https://arxiv.org/abs/2510.01510