Lune

KDD2022Top-tier venue

Mask and Reason: Pre-Training Knowledge Graph Transformers for Complex Logical Queries

Xiao Liu, Shiyu Zhao, Kai Su, Yukuo Cen, Jiezhong Qiu, Mengdi Zhang, Wei Wu, Yuxiao Dong, Jie Tang

Abstract

Knowledge graph (KG) embeddings have been a mainstream approach for reasoning over incomplete KGs. However, limited by their inherently shallow and static architectures, they can hardly deal with the rising focus on complex logical queries, which comprise logical operators, imputed edges, multiple source entities, and unknown intermediate entities. In this work, we present the Knowledge Graph Transformer (kgTransformer) 1 with masked pre-training and fine-tuning strategies. We design a KG triple transformation method to enable Transformer to handle KGs, which is further strengthened by the Mixture-of-Experts (MoE) sparse activation. We then formulate the complex logical queries as masked prediction and introduce a two-stage masked pre-training strategy to improve transferability and generalizability. Extensive experiments on two benchmarks demonstrate that kgTransformer can consistently outperform both KG embedding-based baselines and advanced encoders on nine in-domain and out-of-domain reasoning tasks. Additionally, kgTransformer can reason with explainability via providing the full reasoning paths to interpret given answers.

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.

21 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

  • Open Graph Benchmark: Datasets for Machine Learning on Graphs cites Strategies for Pre-training Graph Neural Networks
  • Structure Pretraining and Prompt Tuning for Knowledge Graph Transfer cites Do Transformers Really Perform Badly for Graph Representation?
  • GraphMAE2: A Decoding-Enhanced Masked Self-Supervised Graph Learner cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • GraphMAE2: A Decoding-Enhanced Masked Self-Supervised Graph Learner cites Strategies for Pre-training Graph Neural Networks
  • GraphMAE2: A Decoding-Enhanced Masked Self-Supervised Graph Learner cites Graph Contrastive Learning with Augmentations
  • Do Transformers Really Perform Badly for Graph Representation? cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • Do Transformers Really Perform Badly for Graph Representation? cites Strategies for Pre-training Graph Neural Networks
  • Graph Contrastive Learning with Augmentations cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • Rethinking Tokenizer and Decoder in Masked Graph Modeling for Molecules cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • Rethinking Tokenizer and Decoder in Masked Graph Modeling for Molecules cites Strategies for Pre-training Graph Neural Networks
  • Rethinking Tokenizer and Decoder in Masked Graph Modeling for Molecules cites GraphMAE2: A Decoding-Enhanced Masked Self-Supervised Graph Learner
  • Rethinking Tokenizer and Decoder in Masked Graph Modeling for Molecules cites Graph Contrastive Learning with Augmentations
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers21

  1. GraphMAE2: A Decoding-Enhanced Masked Self-Supervised Graph LearnerZhenyu Hou, Yufei He, Yukuo Cen, Xiao Liu et al.WWW 2023 · 183 citations
  2. Rethinking Tokenizer and Decoder in Masked Graph Modeling for MoleculesZhiyuan Liu, Yaorui Shi, An Zhang, Enzhi Zhang et al.NeurIPS 2023 · 71 citations
  3. GITA: Graph to Visual and Textual Integration for Vision-Language Graph ReasoningYanbin Wei, Shuai Fu, Weisen Jiang, Zejian Zhang et al.NeurIPS 2024 · 56 citations
  4. Complex Query Answering on Eventuality Knowledge Graph with Implicit Logical ConstraintsJiaxin Bai, Xin Liu, Weiqi Wang, Chen Luo et al.NeurIPS 2023 · 46 citations
  5. Structure Pretraining and Prompt Tuning for Knowledge Graph TransferWen Zhang, Yushan Zhu, Mingyang Chen, Yuxia Geng et al.WWW 2023 · 34 citations

Builds on19

  1. Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong et al.NeurIPS 2020 · 3,935 citations
  2. Graph Contrastive Learning with AugmentationsYuning You, Tianlong Chen, Yongduo Sui, Ting Chen et al.NeurIPS 2020 · 3,042 citations
  3. GShard: Scaling Giant Models with Conditional Computation and Automatic ShardingDmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen et al.ICLR 2021 · 1,954 citations
  4. Strategies for Pre-training Graph Neural NetworksWeihua Hu, Bowen Liu, Joseph Gomes, Marinka Zitnik et al.ICLR 2020 · 1,744 citations
  5. Do Transformers Really Perform Badly for Graph Representation?Chengxuan Ying, Tianle Cai, Shengjie Luo, Shuxin Zheng et al.NeurIPS 2021 · 1,632 citations

Related papers

  1. Logic-Aware Knowledge Graph Reasoning for Structural Sparsity under Large Language Model SupervisionYudai Pan, Jiajie Hong, Tianzhe Zhao, Lingyun Song et al.WWW 2025 · 1 citation
  2. Enhancing Transformers for Generalizable First-Order Logical EntailmentTianshi Zheng, Jiazheng Wang, Zihao Wang, Jiaxin Bai et al.ACL 2025 · 7 citations
  3. Multi-Aspect Explainable Inductive Relation Prediction by Sentence TransformerZhixiang Su, Di Wang, Chunyan Miao, Lizhen CuiAAAI 2023 · 16 citations
  4. SQUIRE: A Sequence-to-sequence Framework for Multi-hop Knowledge Graph ReasoningYushi Bai, Xin Lv, Juanzi Li, Lei Hou et al.EMNLP 2022 · 19 citations
  5. KnowFormer: Revisiting Transformers for Knowledge Graph ReasoningJunnan Liu, Qianren Mao, Weifeng Jiang, Jianxin LiICML 2024 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines