Skip to main content
Top
Published in: International Journal of Multimedia Information Retrieval 4/2022

27-11-2022 | Regular Paper

TCKGE: Transformers with contrastive learning for knowledge graph embedding

Authors: Xiaowei Zhang, Quan Fang, Jun Hu, Shengsheng Qian, Changsheng Xu

Published in: International Journal of Multimedia Information Retrieval | Issue 4/2022

Log in

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Abstract

Representation learning of knowledge graphs has emerged as a powerful technique for various downstream tasks. In recent years, numerous research efforts have been made for knowledge graphs embedding. However, previous approaches usually have difficulty dealing with complex multi-relational knowledge graphs due to their shallow network architecture. In this paper, we propose a novel framework named Transformers with Contrastive learning for Knowledge Graph Embedding (TCKGE), which aims to learn complex semantics in multi-relational knowledge graphs with deep architectures. To effectively capture the rich semantics of knowledge graphs, our framework leverages the powerful Transformers to build a deep hierarchical architecture to dynamically learn the embeddings of entities and relations. To obtain more robust knowledge embeddings with our deep architecture, we design a contrastive learning scheme to facilitate optimization by exploring the effectiveness of several different data augmentation strategies. The experimental results on two benchmark datasets show the superior of TCKGE over state-of-the-art models.

Dont have a licence yet? Then find out more about our products and how to get one now:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Literature
2.
go back to reference Bollacker KD, Evans C, Paritosh PK, Sturge T, Taylor J (2008) Freebase: a collaboratively created graph database for structuring human knowledge, pp 1247–1250 (ACM) Bollacker KD, Evans C, Paritosh PK, Sturge T, Taylor J (2008) Freebase: a collaboratively created graph database for structuring human knowledge, pp 1247–1250 (ACM)
3.
go back to reference Suchanek FM, Kasneci G, Weikum G (2007) Yago: a core of semantic knowledge, pp 697–706 (ACM) Suchanek FM, Kasneci G, Weikum G (2007) Yago: a core of semantic knowledge, pp 697–706 (ACM)
4.
go back to reference IV, RL L, Liu NF, Peters ME, Gardner M, Singh S (2019) Barack’s wife hillary: using knowledge graphs for fact-aware language modeling, pp 5962–5971 (association for computational linguistics) IV, RL L, Liu NF, Peters ME, Gardner M, Singh S (2019) Barack’s wife hillary: using knowledge graphs for fact-aware language modeling, pp 5962–5971 (association for computational linguistics)
5.
go back to reference Zhang Z et al (2019) ERNIE: enhanced language representation with informative entities, pp 1441–1451 (association for computational linguistics) Zhang Z et al (2019) ERNIE: enhanced language representation with informative entities, pp 1441–1451 (association for computational linguistics)
6.
go back to reference Hayashi H, Hu Z, Xiong C, Neubig G (2020) Latent relation language models, AAAI Press, pp 7911–7918 Hayashi H, Hu Z, Xiong C, Neubig G (2020) Latent relation language models, AAAI Press, pp 7911–7918
10.
go back to reference Riedel S, Yao L, McCallum A, Marlin BM (2013) Relation extraction with matrix factorization and universal schemas, pp 74–84 (the association for computational linguistics) Riedel S, Yao L, McCallum A, Marlin BM (2013) Relation extraction with matrix factorization and universal schemas, pp 74–84 (the association for computational linguistics)
11.
go back to reference Xiong W, Hoang T, Wang WY (2017) Deeppath: a reinforcement learning method for knowledge graph reasoning, pp 564–573 (association for computational linguistics) Xiong W, Hoang T, Wang WY (2017) Deeppath: a reinforcement learning method for knowledge graph reasoning, pp 564–573 (association for computational linguistics)
12.
go back to reference Verga P, Sun H, Soares LB, Cohen WW (2020) Facts as experts: adaptable and interpretable neural memory over symbolic knowledge. CoRR . arXiv:2007.00849 Verga P, Sun H, Soares LB, Cohen WW (2020) Facts as experts: adaptable and interpretable neural memory over symbolic knowledge. CoRR . arXiv:​2007.​00849
16.
go back to reference Bordes A, Chopra S, Weston J (2014) Question answering with subgraph embeddings, pp 615–620 (ACL) Bordes A, Chopra S, Weston J (2014) Question answering with subgraph embeddings, pp 615–620 (ACL)
20.
go back to reference Bordes A, Usunier N, García-Durán A, Weston J, Yakhnenko O (2013) Translating embeddings for modeling multi-relational data, pp 2787–2795 Bordes A, Usunier N, García-Durán A, Weston J, Yakhnenko O (2013) Translating embeddings for modeling multi-relational data, pp 2787–2795
21.
go back to reference Yang B, Yih W, He X, Gao J, Deng L (2015) Embedding entities and relations for learning and inference in knowledge bases Yang B, Yih W, He X, Gao J, Deng L (2015) Embedding entities and relations for learning and inference in knowledge bases
22.
go back to reference Sun Z, Deng Z, Nie J, Tang J (2019) Rotate: knowledge graph embedding by relational rotation in complex space (OpenReview.net) Sun Z, Deng Z, Nie J, Tang J (2019) Rotate: knowledge graph embedding by relational rotation in complex space (OpenReview.net)
23.
go back to reference Schlichtkrull MS (2018) et al. Modeling relational data with graph convolutional networks, vol 10843. Springer, pp 593–607 Schlichtkrull MS (2018) et al. Modeling relational data with graph convolutional networks, vol 10843. Springer, pp 593–607
24.
go back to reference Vashishth S, Sanyal S, Nitin V, Talukdar PP (2020) Composition-based multi-relational graph convolutional networks (OpenReview.net) Vashishth S, Sanyal S, Nitin V, Talukdar PP (2020) Composition-based multi-relational graph convolutional networks (OpenReview.net)
25.
go back to reference Dettmers T, Minervini P, Stenetorp P, Riedel S (2018) Convolutional 2d knowledge graph embeddings. AAAI Press, pp 1811–1818 Dettmers T, Minervini P, Stenetorp P, Riedel S (2018) Convolutional 2d knowledge graph embeddings. AAAI Press, pp 1811–1818
26.
go back to reference Chen T, Kornblith S, Norouzi M, Hinton GE (2020) A simple framework for contrastive learning of visual representations, vol 119, pp 1597–1607 (PMLR) Chen T, Kornblith S, Norouzi M, Hinton GE (2020) A simple framework for contrastive learning of visual representations, vol 119, pp 1597–1607 (PMLR)
27.
go back to reference Yan Y et al (2021) Consert: a contrastive framework for self-supervised sentence representation transfer, pp 5065–5075 (association for computational linguistics) Yan Y et al (2021) Consert: a contrastive framework for self-supervised sentence representation transfer, pp 5065–5075 (association for computational linguistics)
28.
go back to reference You Y et al (2020) Graph contrastive learning with augmentations You Y et al (2020) Graph contrastive learning with augmentations
30.
go back to reference Chen S et al (2021) Hitter: Hierarchical transformers for knowledge graph embeddings, pp 10395–10407 (association for computational linguistics) Chen S et al (2021) Hitter: Hierarchical transformers for knowledge graph embeddings, pp 10395–10407 (association for computational linguistics)
31.
go back to reference Wang Z, Zhang J, Feng J, Chen Z (2014) Knowledge graph embedding by translating on hyperplanes. AAAI Press, pp 1112–1119 Wang Z, Zhang J, Feng J, Chen Z (2014) Knowledge graph embedding by translating on hyperplanes. AAAI Press, pp 1112–1119
32.
go back to reference Lin Y, Liu Z, Sun M, Liu Y, Zhu X (2015) Learning entity and relation embeddings for knowledge graph completion. AAAI Press, pp 2181–2187 Lin Y, Liu Z, Sun M, Liu Y, Zhu X (2015) Learning entity and relation embeddings for knowledge graph completion. AAAI Press, pp 2181–2187
33.
go back to reference Ji G, He S, Xu L, Liu K, Zhao J (2015) Knowledge graph embedding via dynamic mapping matrix, pp 687–696 (the association for computer linguistics) Ji G, He S, Xu L, Liu K, Zhao J (2015) Knowledge graph embedding via dynamic mapping matrix, pp 687–696 (the association for computer linguistics)
34.
go back to reference Jia Y, Wang Y, Lin H, Jin X, Cheng X (2016) Locally adaptive translation for knowledge graph embedding. AAAI Press, pp 992–998 Jia Y, Wang Y, Lin H, Jin X, Cheng X (2016) Locally adaptive translation for knowledge graph embedding. AAAI Press, pp 992–998
35.
36.
go back to reference Trouillon T, Welbl J, Riedel S, Gaussier É, Bouchard G (2016) Complex embeddings for simple link prediction, vol 48, pp 2071–2080 (JMLR.org) Trouillon T, Welbl J, Riedel S, Gaussier É, Bouchard G (2016) Complex embeddings for simple link prediction, vol 48, pp 2071–2080 (JMLR.org)
37.
go back to reference Liu H, Wu Y, Yang Y (2017) Analogical inference for multi-relational embeddings, vol 70, pp 2168–2178 (PMLR) Liu H, Wu Y, Yang Y (2017) Analogical inference for multi-relational embeddings, vol 70, pp 2168–2178 (PMLR)
38.
go back to reference Kazemi SM, Poole D (2018) Simple embedding for link prediction in knowledge graphs, pp 4289–4300 Kazemi SM, Poole D (2018) Simple embedding for link prediction in knowledge graphs, pp 4289–4300
39.
go back to reference Balazevic I, Allen C, Hospedales TM (2019) Tucker: tensor factorization for knowledge graph completion, pp 5184–5193 (association for computational linguistics) Balazevic I, Allen C, Hospedales TM (2019) Tucker: tensor factorization for knowledge graph completion, pp 5184–5193 (association for computational linguistics)
40.
go back to reference Chami I et al (2020) Low-dimensional hyperbolic knowledge graph embeddings, pp 6901–6914 (association for computational linguistics) Chami I et al (2020) Low-dimensional hyperbolic knowledge graph embeddings, pp 6901–6914 (association for computational linguistics)
41.
go back to reference Nickel M, Tresp V, Kriegel H (2011) A three-way model for collective learning on multi-relational data, pp 809–816 (Omnipress) Nickel M, Tresp V, Kriegel H (2011) A three-way model for collective learning on multi-relational data, pp 809–816 (Omnipress)
42.
go back to reference Kipf TN, Welling M (2017) Semi-supervised classification with graph convolutional networks (OpenReview.net) Kipf TN, Welling M (2017) Semi-supervised classification with graph convolutional networks (OpenReview.net)
43.
go back to reference Zhu Y et al (2021) Graph contrastive learning with adaptive augmentation, pp 2069–2080 (ACM/IW3C2) Zhu Y et al (2021) Graph contrastive learning with adaptive augmentation, pp 2069–2080 (ACM/IW3C2)
44.
go back to reference Hassani K, Ahmadi A HK (2020) Contrastive multi-view representation learning on graphs, vol 119, pp 4116–4126 (PMLR) Hassani K, Ahmadi A HK (2020) Contrastive multi-view representation learning on graphs, vol 119, pp 4116–4126 (PMLR)
45.
47.
go back to reference Sun F, Hoffmann J, Verma V, Tang J (2020) Infograph: unsupervised and semi-supervised graph-level representation learning via mutual information maximization (OpenReview.net) Sun F, Hoffmann J, Verma V, Tang J (2020) Infograph: unsupervised and semi-supervised graph-level representation learning via mutual information maximization (OpenReview.net)
48.
go back to reference Wan S, Pan S, Yang J, Gong C (2021) Contrastive and generative graph convolutional networks for graph-based semi-supervised learning, AAAI Press, pp 10049–10057 Wan S, Pan S, Yang J, Gong C (2021) Contrastive and generative graph convolutional networks for graph-based semi-supervised learning, AAAI Press, pp 10049–10057
49.
go back to reference Devlin J, Chang M, Lee K, Toutanova K (2019) BERT: pre-training of deep bidirectional transformers for language understanding, pp 4171–4186 (association for computational linguistics) Devlin J, Chang M, Lee K, Toutanova K (2019) BERT: pre-training of deep bidirectional transformers for language understanding, pp 4171–4186 (association for computational linguistics)
50.
51.
go back to reference Toutanova K, Chen D (2015) Observed versus latent features for knowledge base and text inference. Association for Computational Linguistics, Beijing, China, pp 57–66 Toutanova K, Chen D (2015) Observed versus latent features for knowledge base and text inference. Association for Computational Linguistics, Beijing, China, pp 57–66
53.
go back to reference Broscheit S, Ruffinelli D, Kochsiek A, Betz P, Gemulla R (2020) Libkge - a knowledge graph embedding library for reproducible research, pp 165–174 (association for computational linguistics) Broscheit S, Ruffinelli D, Kochsiek A, Betz P, Gemulla R (2020) Libkge - a knowledge graph embedding library for reproducible research, pp 165–174 (association for computational linguistics)
54.
go back to reference Vaswani A et al (2017) Attention is all you need, pp 5998–6008 Vaswani A et al (2017) Attention is all you need, pp 5998–6008
55.
go back to reference Kingma DP, Ba J (2015) A method for stochastic optimization, Adam Kingma DP, Ba J (2015) A method for stochastic optimization, Adam
Metadata
Title
TCKGE: Transformers with contrastive learning for knowledge graph embedding
Authors
Xiaowei Zhang
Quan Fang
Jun Hu
Shengsheng Qian
Changsheng Xu
Publication date
27-11-2022
Publisher
Springer London
Published in
International Journal of Multimedia Information Retrieval / Issue 4/2022
Print ISSN: 2192-6611
Electronic ISSN: 2192-662X
DOI
https://doi.org/10.1007/s13735-022-00256-3

Other articles of this Issue 4/2022

International Journal of Multimedia Information Retrieval 4/2022 Go to the issue

Premium Partner