Lune

ICML2024Top-tier venue

KnowFormer: Revisiting Transformers for Knowledge Graph Reasoning

Junnan Liu, Qianren Mao, Weifeng Jiang, Jianxin Li

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link Prediction cites Inductive Relation Prediction by Subgraph Reasoning
  • Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link Prediction cites Composition-based Multi-Relational Graph Convolutional Networks
  • Towards Multimodal Continual Knowledge Embedding wth Modality Forgetting Modulation cites Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link Prediction
  • Conditional Diffusion Guided Knowledge Transfer for Multi-Domain Knowledge Graph Completion cites Information-Theoretic Minimal Sufficient Representation for Multi-Domain Knowledge Graph Completion
  • DuetGraph: Coarse-to-Fine Knowledge Graph Reasoning with Dual-Pathway Global-Local Fusion cites Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link Prediction
  • DuetGraph: Coarse-to-Fine Knowledge Graph Reasoning with Dual-Pathway Global-Local Fusion cites Composition-based Multi-Relational Graph Convolutional Networks
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Deep sequence models tend to memorize geometrically; it is unclear whyShahriar Noroozizadeh, Vaishnavh Nagarajan, Elan Rosenfeld, Sanjiv KumarICML 2026 · 11 citations
  2. DuetGraph: Coarse-to-Fine Knowledge Graph Reasoning with Dual-Pathway Global-Local FusionJin Li, Zezhong Ding, Xike XieNeurIPS 2025 · 5 citations
  3. Information-Theoretic Minimal Sufficient Representation for Multi-Domain Knowledge Graph CompletionJiawei Sheng, Taoyu Su, Weiyi Yang, Linghui Wang et al.AAAI 2026 · 2 citations
  4. Towards Multimodal Continual Knowledge Embedding wth Modality Forgetting ModulationXiaowen Jiang, Jing Yang, Shundong Yang, Yuan Gao et al.AAAI 2026
  5. Conditional Diffusion Guided Knowledge Transfer for Multi-Domain Knowledge Graph CompletionJiawei Sheng, Taoyu Su, Xixun Lin, Xiaodong Li et al.WWW 2026

Builds on32

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  2. Recipe for a General, Powerful, Scalable Graph TransformerLadislav Rampásek, Michael Galkin, Vijay Prakash Dwivedi, Anh Tuan Luu et al.NeurIPS 2022 · 1,216 citations
  3. Composition-based Multi-Relational Graph Convolutional NetworksShikhar Vashishth, Soumya Sanyal, Vikram Nitin, Partha P. TalukdarICLR 2020 · 1,105 citations
  4. Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link PredictionZhaocheng Zhu, Zuobai Zhang, Louis-Pascal A. C. Xhonneux, Jian TangNeurIPS 2021 · 546 citations
  5. Inductive Relation Prediction by Subgraph ReasoningKomal K. Teru, Etienne G. Denis, William L. HamiltonICML 2020 · 493 citations

Related papers

  1. Mask and Reason: Pre-Training Knowledge Graph Transformers for Complex Logical QueriesXiao Liu, Shiyu Zhao, Kai Su, Yukuo Cen et al.KDD 2022 · 38 citations
  2. ChainsFormer: Numerical Reasoning on Knowledge Graphs From a Chain PerspectiveZe Zhao, Bin Lu, Xiaoying Gan, Gu Tang et al.ICDE 2025 · 1 citation
  3. Question-guided Knowledge Graph Re-scoring and Injection for Knowledge Graph Question AnsweringYu Zhang, Kehai Chen, Xuefeng Bai, Zhao Kang et al.EMNLP Findings 2024 · 6 citations
  4. AdaRPT: An Adaptive Rule Pattern Transfer Model for Fully Inductive Knowledge Graph ReasoningZhiwen Xie, Zhuo Zhao, Jinjin Ma, Guangyou Zhou et al.SIGIR 2025 · 3 citations
  5. Transformer-based Reasoning for Learning Evolutionary Chain of Events on Temporal Knowledge GraphZhiyu Fang, Shuai-Long Lei, Xiaobin Zhu, Chun Yang et al.SIGIR 2024 · 17 citations
Dusk over the sea between two cliffs drawn in fine vertical lines