Relphormer: Relational Graph Transformer for Knowledge Graph Representations
Bi, Zhen, Cheng, Siyuan, Chen, Jing, Liang, Xiaozhuan, Xiong, Feiyu, Zhang, Ningyu
–arXiv.org Artificial Intelligence
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.
arXiv.org Artificial Intelligence
Nov-21-2023
- Country:
- South America > Colombia
- Meta Department > Villavicencio (0.04)
- North America
- Dominican Republic (0.04)
- United States
- Nevada (0.04)
- District of Columbia > Washington (0.04)
- Texas > Travis County
- Austin (0.04)
- New York > New York County
- New York City (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- California
- San Francisco County > San Francisco (0.14)
- San Diego County > San Diego (0.04)
- Los Angeles County > Long Beach (0.04)
- Alaska > Anchorage Municipality
- Anchorage (0.04)
- Canada
- Quebec > Capitale-Nationale Region
- Québec (0.04)
- Quebec City (0.04)
- British Columbia > Metro Vancouver Regional District
- Vancouver (0.04)
- Quebec > Capitale-Nationale Region
- Europe
- Greece (0.04)
- Germany > Berlin (0.04)
- Austria (0.04)
- Slovenia > Central Slovenia
- Municipality of Ljubljana > Ljubljana (0.04)
- Italy > Tuscany
- Florence (0.04)
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- France > Auvergne-Rhône-Alpes
- Asia
- Africa > Ethiopia
- Addis Ababa > Addis Ababa (0.04)
- South America > Colombia
- Genre:
- Research Report (1.00)
- Technology: