Flock: A Knowledge Graph Foundation Model via Learning on Random Walks
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 49 of its 62 references that are in the map. First posted on arXiv 1 Oct 2025.
Builds on
49 of 62 references.
References · 49
- 2018How Powerful are Graph Neural Networks?cited by 4,355
- 2016node2vec: Scalable Feature Learning for Networkscited by 1,913
- 2020GLU Variants Improve Transformercited by 1,724
- 2017Modeling Relational Data with Graph Convolutional Networkscited by 1,684
- 2014DeepWalk: Online Learning of Social Representationscited by 1,543
- 2019Root Mean Square Layer Normalizationcited by 1,425
- 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,303
- 2021Geometric Deep Learning: Grids, Groups, Graphs, Geodesics, and Gaugescited by 1,131
- 2019RotatE: Knowledge Graph Embedding by Relational Rotation in Complex Spacecited by 893
- 2018Weisfeiler and Leman Go Neural: Higher-order Graph Neural Networkscited by 878
- 2020Object-Centric Learning with Slot Attentioncited by 865
- 2017Convolutional 2D Knowledge Graph Embeddingscited by 729
37 more
- 2019Composition-based Multi-Relational Graph Convolutional Networkscited by 395
- 2021Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link Predictioncited by 273
- 2017DeepPath: A Reinforcement Learning Method for Knowledge Graph Reasoningcited by 265
- 2019Inductive Relation Prediction by Subgraph Reasoningcited by 237
- 2020The Surprising Power of Graph Neural Networks with Random Node Initializationcited by 190
- 2021Equivariant Subgraph Aggregation Networkscited by 154
- 2020Labeling Trick: A Theory of Using Graph Neural Networks for Multi-Node Representation Learningcited by 148
- 2021DropGNN: Random Dropouts Increase the Expressiveness of Graph Neural Networkscited by 117
- 2020BoxE: A Box Embedding Model for Knowledge Base Completioncited by 105
- 2020CoDEx: A Comprehensive Knowledge Graph Completion Benchmarkcited by 102
- 2021Knowledge Graph Reasoning with Relational Digraphcited by 91
- 2023Towards Foundation Models for Knowledge Graph Reasoningcited by 83
- 2022Graph Neural Networks for Link Prediction with Subgraph Sketchingcited by 81
- 2021NodePiece: Compositional and Parameter-Efficient Representations of Large Knowledge Graphscited by 71
- 2021Reconstruction for Powerful Graph Representationscited by 65
- 2023A Complete Expressiveness Hierarchy for Subgraph GNNs via Subgraph Weisfeiler-Lehman Testscited by 64
- 2019Commonsense Knowledge Base Completion with Structural and Semantic Contextcited by 61
- 2023InGram: Inductive Knowledge Graph Embedding via Relation Graphscited by 50
- 2022A*Net: A Scalable Path-based Reasoning Approach for Knowledge Graphscited by 49
- 2021Walking Out of the Weisfeiler Leman Hierarchy: Graph Learning Beyond Message Passingcited by 46
- 2021Relation Prediction as an Auxiliary Training Objective for Improving Multi-Relational Graph Representationscited by 37
- 2018Improving Knowledge Graph Embedding Using Simple Constraintscited by 36
- 2023Cooperative Graph Neural Networkscited by 35
- 2023A Theory of Link Prediction via Relational Weisfeiler-Leman on Knowledge Graphscited by 32
- 2022Relational Message Passing for Fully Inductive Knowledge Graph Completioncited by 29
- 2022AdaProp: Learning Adaptive Propagation for Graph Neural Network based Knowledge Graph Reasoningcited by 28
- 2022Weisfeiler and Leman Go Relationalcited by 28
- 2020Dynamic Anticipation and Completion for Multi-Hop Reasoning over Sparse Knowledge Graphcited by 26
- 2024A Prompt-Based Knowledge Graph Foundation Model for Universal In-Context Reasoningcited by 25
- 2023A Multi-Task Perspective for Link Prediction with New Relation Types and Nodescited by 23
- 2025TRIX: A More Expressive Model for Zero-shot Domain Transfer in Knowledge Graphscited by 23
- 2025How Expressive are Knowledge Graph Foundation Models?cited by 22
- 2023Double Equivariance for Inductive Link Prediction for Both New Nodes and New Relation Typescited by 21
- 2024Learning Long Range Dependencies on Graphs via Random Walkscited by 18
- 2024Revisiting Random Walks for Learning on Graphscited by 13
- 2024Non-convolutional Graph Neural Networkscited by 11
- 2019Walking Randomly, Massively, and Efficientlycited by 1
Built on by
Citing papers per year: 2026: 8.
8 papers.
- 2026RelAgent: LLM Agents as Data Scientists for Relational Learningcited by 2
- 2026KGPFN: Unlocking the Potential of Knowledge Graph Foundation Model via In-Context Learningcited by 2
- 2026Riemannian Geometry Speaks Louder Than Words: From Graph Foundation Model to Next-Generation Graph Intelligencecited by 1
- 2026Boosting Knowledge Graph Foundation Models via Enhanced Negative Samplingcited by 0
- 2026SPR: Toward a Graph Foundation Model for Transferable Graph Cognition via Spectral Patterns and Relational Geometrycited by 0
- 2026Half a Link can Be Enough to Predict a Whole Link: Understanding Generalization in Knowledge Graph Foundation Modelscited by 0
- 2026Reification as a Transferable Vocabulary: Zero-Shot Link Prediction with Vanilla GNNscited by 0
- 2026The Universal Classifier for Graph Learningcited by 0
- 2026The Universal Classifier for Graph Learning28 Sep 2026
- 2026Reification as a Transferable Vocabulary: Zero-Shot Link Prediction with Vanilla GNNs10 Sep 2026
- 2026Half a Link can Be Enough to Predict a Whole Link: Understanding Generalization in Knowledge Graph Foundation Models16 Jun 2026
- 2026SPR: Toward a Graph Foundation Model for Transferable Graph Cognition via Spectral Patterns and Relational Geometry2 Jun 2026
- 2026Boosting Knowledge Graph Foundation Models via Enhanced Negative Sampling26 May 2026
- 2026KGPFN: Unlocking the Potential of Knowledge Graph Foundation Model via In-Context Learning14 May 2026
- 2026RelAgent: LLM Agents as Data Scientists for Relational Learning8 May 2026
- 2026Riemannian Geometry Speaks Louder Than Words: From Graph Foundation Model to Next-Generation Graph Intelligence23 Mar 2026