KnowFormer: Revisiting Transformers for Knowledge Graph Reasoning
On the map: LLM reasoning → Knowledge- and tool-augmented reasoning
Abstract (arXiv)
Knowledge graph reasoning plays a vital role in various applications and has garnered considerable attention. Recently, path-based methods have achieved impressive performance. However, they may face limitations stemming from constraints in message-passing neural networks, such as missing paths and information over-squashing. In this paper, we revisit the application of transformers for knowledge graph reasoning to address the constraints faced by path-based methods and propose a novel method KnowFormer. KnowFormer utilizes a transformer architecture to perform reasoning on knowledge graphs from the message-passing perspective, rather than reasoning by textual information like previous pretrained language model based methods. Specifically, we define the attention computation based on the query prototype of knowledge graph reasoning, facilitating convenient construction and efficient optimization. To incorporate structural information into the self-attention mechanism, we introduce structure-aware modules to calculate query, key, and value respectively. Additionally, we present an efficient attention computation method for better scalability. Experimental results demonstrate the superior performance of KnowFormer compared to prominent baseline methods on both transductive and inductive benchmarks.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in Knowledge- and tool-augmented reasoning, one of 17 directions in LLM reasoning. Builds on 65 of its 96 references that are in the map. First posted on arXiv 19 Sep 2024.
Builds on
65 of 96 references.
Closest ancestors · 1
Same direction, newest first
- 2022Weisfeiler and Leman Go Relational30 Nov
Other references · 64
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2017Inductive Representation Learning on Large Graphscited by 6,284
- 2016Layer Normalizationcited by 5,579
- 2018How Powerful are Graph Neural Networks?cited by 4,355
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
- 2017Neural Message Passing for Quantum Chemistrycited by 3,460
- 2017Modeling Relational Data with Graph Convolutional Networkscited by 1,684
- 2014DeepWalk: Online Learning of Social Representationscited by 1,543
- 2016Variational Graph Auto-Encoderscited by 1,373
- 2014Embedding Entities and Relations for Learning and Inference in Knowledge Basescited by 929
38 more
- 2019RotatE: Knowledge Graph Embedding by Relational Rotation in Complex Spacecited by 893
- 2018Link Prediction Based on Graph Neural Networkscited by 829
- 2017Convolutional 2D Knowledge Graph Embeddingscited by 729
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
- 2020A Survey on Knowledge Graphs: Representation, Acquisition and Applicationscited by 643
- 2020On the Bottleneck of Graph Neural Networks and its Practical Implicationscited by 624
- 2020Knowledge Graphscited by 619
- 2019Composition-based Multi-Relational Graph Convolutional Networkscited by 395
- 2019KG-BERT: BERT for Knowledge Graph Completioncited by 323
- 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
- 2019Learning Discrete Structures for Graph Neural Networkscited by 228
- 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 211
- 2023NodeFormer: A Scalable Graph Structure Learning Transformer for Node Classificationcited by 207
- 2021Identity-aware Graph Neural Networkscited by 197
- 2022Representing Long-Range Context for Graph Neural Networks with Global Attentioncited by 193
- 2022Structure-Aware Transformer for Graph Representation Learningcited by 191
- 2018Hyperspherical Variational Auto-Encoderscited by 188
- 2022Pure Transformers are Powerful Graph Learnerscited by 188
- 2019DRUM: End-To-End Differentiable Rule Mining On Knowledge Graphscited by 173
- 2018Canonical Tensor Decomposition for Knowledge Base Completioncited by 150
- 2023Graph Inductive Biases in Transformers without Message Passingcited by 150
- 2020Labeling Trick: A Theory of Using Graph Neural Networks for Multi-Node Representation Learningcited by 148
- 2017A Novel Embedding Model for Knowledge Base Completion Based on Convolutional Neural Networkcited by 143
- 2019Learning Hierarchy-Aware Knowledge Graph Embeddings for Link Predictioncited by 133
- 2023SGFormer: Simplifying and Empowering Transformers for Large-Graph Representationscited by 131
- 2020RNNLogic: Learning Logic Rules for Reasoning on Knowledge Graphscited by 117
- 2020Random Features for Kernel Approximation: A Survey on Algorithms, Theory, and Beyondcited by 107
- 2022Transformer for Graphs: An Overview from Architecture Perspectivecited by 107
- 2021Knowledge Graph Reasoning with Relational Digraphcited by 91
- 2022SimKGC: Simple Contrastive Knowledge Graph Completion with Pre-trained Language Modelscited by 90
- 2019Unifying Knowledge Graph Learning and Recommendation: Towards a Better Understanding of User Preferencescited by 87
- 2019Inductive Matrix Completion Based on Graph Neural Networkscited by 85
- 2023DIFFormer: Scalable (Graph) Transformers Induced by Energy Constrained Diffusioncited by 85
- 2022Sequence-to-Sequence Knowledge Graph Completion and Question Answeringcited by 75
- 2020Relational Message Passing for Knowledge Graph Completioncited by 61
- 2020HittER: Hierarchical Transformers for Knowledge Graph Embeddingscited by 54
50 most cited of 64 All 64 (JSON)
Built on by
Citing papers per year: 2025: 3; 2026: 2.
5 papers.
- 2025Loki's Dance of Illusions: A Comprehensive Survey of Hallucination in Large Language Modelscited by 6
- 2025DuetGraph: Coarse-to-Fine Knowledge Graph Reasoning with Dual-Pathway Global-Local Fusioncited by 2
- 2025MPRM: A Markov Path-based Rule Miner for Efficient and Interpretable Knowledge Graph Reasoningcited by 0
- 2026Leveraging Graph Structure in Seq2Seq Models for Knowledge Graph Link Predictioncited by 0
- 2026Extending Ontologies: From Dense Embeddings to Hybrid Quantum-Fuzzy Systemscited by 0
- 2026Extending Ontologies: From Dense Embeddings to Hybrid Quantum-Fuzzy Systems7 Jun 2026
- 2026Leveraging Graph Structure in Seq2Seq Models for Knowledge Graph Link Prediction18 May 2026
- 2025DuetGraph: Coarse-to-Fine Knowledge Graph Reasoning with Dual-Pathway Global-Local Fusion15 Jul 2025
- 2025Loki's Dance of Illusions: A Comprehensive Survey of Hallucination in Large Language Models6 Jun 2025
- 2025MPRM: A Markov Path-based Rule Miner for Efficient and Interpretable Knowledge Graph Reasoning18 May 2025
Similar, not cited
Close in wording, no citation either way
- 2025PathMind: A Retrieve-Prioritize-Reason Framework for Knowledge Graph Reasoning with Large Language Models
- 2024Graph-constrained Reasoning: Faithful Reasoning on Knowledge Graphs with Large Language Models
- 2025CHAINSFORMER: Numerical Reasoning on Knowledge Graphs from a Chain Perspective
- 2025KnowPath: Knowledge-enhanced Reasoning via LLM-generated Inference Paths over Knowledge Graphs
- 2024LLM as Prompter: Low-resource Inductive Reasoning on Arbitrary Knowledge Graphs
- 2024Towards Graph Foundation Models: Training on Knowledge Graphs Enables Transferability to General Graphs
- 2022Mask and Reason: Pre-Training Knowledge Graph Transformers for Complex Logical Queries
- 2025Injecting Knowledge Graphs into Large Language Models