mlsanityData to 7 Oct 2026

Relphormer: Relational Graph Transformer for Knowledge Graph Representations

arXiv 2205.10852 ↗First posted 22 May 2022cs.CL cs.AI cs.IRcited by 7

Not on the map. Why?

Abstract (arXiv)

Transformers have achieved remarkable performance in widespread fields, including natural language processing, computer vision and graph mining. However, vanilla Transformer architectures have not yielded promising improvements in the Knowledge Graph (KG) representations, where the translational distance paradigm dominates this area. Note that vanilla Transformer architectures struggle to capture the intrinsically heterogeneous structural and semantic information of knowledge graphs. To this end, we propose a new variant of Transformer for knowledge graph representations dubbed Relphormer. Specifically, we introduce Triple2Seq which can dynamically sample contextualized sub-graph sequences as the input to alleviate the heterogeneity issue. We propose a novel structure-enhanced self-attention mechanism to encode the relational information and keep the semantic information within entities and relations. Moreover, we utilize masked knowledge modeling for general knowledge graph representation learning, which can be applied to various KG-based tasks including knowledge graph completion, question answering, and recommendation. Experimental results on six datasets show that Relphormer can obtain better performance compared with baselines. Code is available in https://github.com/zjunlp/Relphormer.

Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 36 of its 65 references that are in the map. First posted on arXiv 22 May 2022.

Builds on

36 of 65 references.

References · 36

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
  5. 2017Graph Attention Networkscited by 8,854
  6. 2017Modeling Relational Data with Graph Convolutional Networkscited by 1,684
  7. 2019BERT4Rec: Sequential Recommendation with Bidirectional Encoder Representations from Transformercited by 952
  8. 2014Embedding Entities and Relations for Learning and Inference in Knowledge Basescited by 929
  9. 2016Complex Embeddings for Simple Link Predictioncited by 897
  10. 2019RotatE: Knowledge Graph Embedding by Relational Rotation in Complex Spacecited by 893
  11. 2017Convolutional 2D Knowledge Graph Embeddingscited by 729
  12. 2020A Generalization of Transformer Networks to Graphscited by 653
24 more
  1. 2020A Survey on Knowledge Graphs: Representation, Acquisition and Applicationscited by 643
  2. 2019ERNIE: Enhanced Language Representation with Informative Entitiescited by 525
  3. 2019Composition-based Multi-Relational Graph Convolutional Networkscited by 395
  4. 2019KGAT: Knowledge Graph Attention Network for Recommendationcited by 342
  5. 2019KG-BERT: BERT for Knowledge Graph Completioncited by 323
  6. 2021Do Transformers Really Perform Bad for Graph Representation?cited by 318
  7. 2022Representing Long-Range Context for Graph Neural Networks with Global Attentioncited by 193
  8. 2019Quaternion Knowledge Graph Embeddingscited by 175
  9. 2019DRUM: End-To-End Differentiable Rule Mining On Knowledge Graphscited by 173
  10. 2020A Survey on Knowledge Graph-Based Recommender Systemscited by 170
  11. 2021GraphiT: Encoding Graph Structure in Transformerscited by 146
  12. 2019Learning Attention-based Embeddings for Relation Prediction in Knowledge Graphscited by 125
  13. 2022SimKGC: Simple Contrastive Knowledge Graph Completion with Pre-trained Language Modelscited by 90
  14. 2021Document-level Relation Extraction as Semantic Segmentationcited by 80
  15. 2022Sequence-to-Sequence Knowledge Graph Completion and Question Answeringcited by 75
  16. 2021NodePiece: Compositional and Parameter-Efficient Representations of Large Knowledge Graphscited by 71
  17. 2022OntoProtein: Protein Pretraining With Gene Ontology Embeddingcited by 70
  18. 2021Gophormer: Ego-Graph Transformer for Node Classificationcited by 63
  19. 2019Long-tail Relation Extraction via Knowledge Graph Embeddings and Graph Convolution Networkscited by 61
  20. 2020Relational Message Passing for Knowledge Graph Completioncited by 61
  21. 2020HittER: Hierarchical Transformers for Knowledge Graph Embeddingscited by 54
  22. 2022Rethinking Graph Convolutional Networks in Knowledge Graph Completioncited by 20
  23. 2018KB4Rec: A Dataset for Linking Knowledge Bases with Recommender Systemscited by 19
  24. 2019Efficiently Embedding Dynamic Knowledge Graphscited by 19

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 2; 2025: 2; 2026: 2.

7 papers.