mlsanityData to 7 Oct 2026

KnowFormer: Revisiting Transformers for Knowledge Graph Reasoning

arXiv 2409.12865 ↗First posted 19 Sep 2024cs.AIcited by 5

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

  1. 2022Weisfeiler and Leman Go Relational30 Nov

Other references · 64

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  4. 2017Inductive Representation Learning on Large Graphscited by 6,284
  5. 2016Layer Normalizationcited by 5,579
  6. 2018How Powerful are Graph Neural Networks?cited by 4,355
  7. 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
  8. 2017Neural Message Passing for Quantum Chemistrycited by 3,460
  9. 2017Modeling Relational Data with Graph Convolutional Networkscited by 1,684
  10. 2014DeepWalk: Online Learning of Social Representationscited by 1,543
  11. 2016Variational Graph Auto-Encoderscited by 1,373
  12. 2014Embedding Entities and Relations for Learning and Inference in Knowledge Basescited by 929
38 more
  1. 2019RotatE: Knowledge Graph Embedding by Relational Rotation in Complex Spacecited by 893
  2. 2018Link Prediction Based on Graph Neural Networkscited by 829
  3. 2017Convolutional 2D Knowledge Graph Embeddingscited by 729
  4. 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
  5. 2020A Survey on Knowledge Graphs: Representation, Acquisition and Applicationscited by 643
  6. 2020On the Bottleneck of Graph Neural Networks and its Practical Implicationscited by 624
  7. 2020Knowledge Graphscited by 619
  8. 2019Composition-based Multi-Relational Graph Convolutional Networkscited by 395
  9. 2019KG-BERT: BERT for Knowledge Graph Completioncited by 323
  10. 2021Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link Predictioncited by 273
  11. 2017DeepPath: A Reinforcement Learning Method for Knowledge Graph Reasoningcited by 265
  12. 2019Inductive Relation Prediction by Subgraph Reasoningcited by 237
  13. 2019Learning Discrete Structures for Graph Neural Networkscited by 228
  14. 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 211
  15. 2023NodeFormer: A Scalable Graph Structure Learning Transformer for Node Classificationcited by 207
  16. 2021Identity-aware Graph Neural Networkscited by 197
  17. 2022Representing Long-Range Context for Graph Neural Networks with Global Attentioncited by 193
  18. 2022Structure-Aware Transformer for Graph Representation Learningcited by 191
  19. 2018Hyperspherical Variational Auto-Encoderscited by 188
  20. 2022Pure Transformers are Powerful Graph Learnerscited by 188
  21. 2019DRUM: End-To-End Differentiable Rule Mining On Knowledge Graphscited by 173
  22. 2018Canonical Tensor Decomposition for Knowledge Base Completioncited by 150
  23. 2023Graph Inductive Biases in Transformers without Message Passingcited by 150
  24. 2020Labeling Trick: A Theory of Using Graph Neural Networks for Multi-Node Representation Learningcited by 148
  25. 2017A Novel Embedding Model for Knowledge Base Completion Based on Convolutional Neural Networkcited by 143
  26. 2019Learning Hierarchy-Aware Knowledge Graph Embeddings for Link Predictioncited by 133
  27. 2023SGFormer: Simplifying and Empowering Transformers for Large-Graph Representationscited by 131
  28. 2020RNNLogic: Learning Logic Rules for Reasoning on Knowledge Graphscited by 117
  29. 2020Random Features for Kernel Approximation: A Survey on Algorithms, Theory, and Beyondcited by 107
  30. 2022Transformer for Graphs: An Overview from Architecture Perspectivecited by 107
  31. 2021Knowledge Graph Reasoning with Relational Digraphcited by 91
  32. 2022SimKGC: Simple Contrastive Knowledge Graph Completion with Pre-trained Language Modelscited by 90
  33. 2019Unifying Knowledge Graph Learning and Recommendation: Towards a Better Understanding of User Preferencescited by 87
  34. 2019Inductive Matrix Completion Based on Graph Neural Networkscited by 85
  35. 2023DIFFormer: Scalable (Graph) Transformers Induced by Energy Constrained Diffusioncited by 85
  36. 2022Sequence-to-Sequence Knowledge Graph Completion and Question Answeringcited by 75
  37. 2020Relational Message Passing for Knowledge Graph Completioncited by 61
  38. 2020HittER: Hierarchical Transformers for Knowledge Graph Embeddingscited by 54

50 most cited of 64 All 64 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 3; 2026: 2.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025PathMind: A Retrieve-Prioritize-Reason Framework for Knowledge Graph Reasoning with Large Language Models
  2. 2024Graph-constrained Reasoning: Faithful Reasoning on Knowledge Graphs with Large Language Models
  3. 2025CHAINSFORMER: Numerical Reasoning on Knowledge Graphs from a Chain Perspective
  4. 2025KnowPath: Knowledge-enhanced Reasoning via LLM-generated Inference Paths over Knowledge Graphs
  5. 2024LLM as Prompter: Low-resource Inductive Reasoning on Arbitrary Knowledge Graphs
  6. 2024Towards Graph Foundation Models: Training on Knowledge Graphs Enables Transferability to General Graphs
  7. 2022Mask and Reason: Pre-Training Knowledge Graph Transformers for Complex Logical Queries
  8. 2025Injecting Knowledge Graphs into Large Language Models