Abstract
Knowledge graphs (KGs) inherently lack reasoning ability which limits their effectiveness for tasks such as question–answering and query expansion. KG embedding (KGE) is a predominant approach where proximity between relations and entities in the embedding space is used for reasoning over KGs. Most existing KGE approaches use structural information of triplets and disregard contextual information which could be crucial to learning long-term relations between entities. Moreover, KGE approaches mostly use discriminative models which require both positive and negative samples to learn a decision boundary. KGs, by contrast, contain only positive samples, necessitating that negative samples are generated by replacing the head/tail of predicates with randomly chosen entities. They are thus usually irrational and easily discriminable from positive samples, which can prevent the learning of sufficiently robust classifiers. To address the shortcomings, we propose to learn contextualized KGE using pre-trained adversarial networks. We assume multi-hop relational paths(mh-RPs) as textual sequences for competitively learning discriminator-based KGE against the negative mh-RP generator. We use a pre-trained ELECTRA model and feed it with relational paths. We employ a generator to corrupt randomly chosen entities with plausible alternatives and a discriminator to predict whether an entity is corrupted or not. We perform experiments on multiple benchmark knowledge graphs, and the results show that our proposed KG-ELECTRA model outperforms BERT in link prediction.




Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.References
Miller GA (1995) Wordnet: a lexical database for english. Commun ACM 38(11):39–41
Bollacker K, Evans C, Paritosh P, et al (2008) Freebase: a collaboratively created graph database for structuring human knowledge. In: SIGMOD, pp 1247–1250
Suchanek FM, Kasneci G, andWeikum G (2007) Yago: a core of semantic knowledge. In: WWW. ACM, pp 697–706
Cui W, Xiao Y, Wang H et al (2017) KBQA: learning question answering over qa corpora and knowledge bases. Proc VLDB Endow 10(5):565–576
Zhang, F, Yuan NJ, Lian D, et al (2016) Collaborative knowledge base embedding for recommender systems. In: KDD. ACM, pp 353–362
Yang B, Yih WT, He X, et al (2015) Embedding entities and relations for learning and inference in knowledge bases. In: ICLR
Bordes A, Usunier N, Garcia DA, et al (2013) Translating embeddings for modeling multi-relational data. In: NIPS, pp 2787–2795
Nickel M, Tresp V, Kriegel HP (2011) A three way model for collective learning on multi-relational data. In: ICML, pp 809–816
Socher R, Chen D, Manning CD, Ng A (2013) Reasoning with neural tensor networks for knowledge base completion. In: NIPS, pp 926–934
Xie R, Liu Z, Jia J, et al (2016) Representation learning of knowledge graphs with entity descriptions. In: AAAI
Xie R, Liu Z, Sun M (2016) Representation learning of knowledge graphs with hierarchical types. In: IJCAI, pp 2965–2971
Liang Y, Chengsheng M, Luo Y (2019) KG-BERT: BERT for Knowledge Graph Completion. arXiv:1909.03193v2 [cs.CL]
Clark K, Luong MT, Le QV, et al (2020) Manning ELECTRA: Pre-training Text Encoders as Discriminator rather than Generator. arXiv:2003.10555v1 [cs.CL]
Cai L, andWang WY (2018) KBGAN: Adversarial learning for knowledge graph embeddings. In: NAACL, pp 1470–1480
Goodfellow I, Pouget-Abadie J, Mirza M, et al (2014) Generative adversarial nets. Adv Neural Inf Process Syst
Wang J, Yu L, Zhang W, et al (2017) Irgan: a minimax game for unifying generative and discriminative information retrieval models. In: The 40th international ACM SIGIR conference on research and development in information retrieval
Zia T, Zahid U, Windridge D (2019) A generative adversarial strategy for modeling relation paths in knowledge base representation learning. In: 33rd Conference on neural information processing systems (NeuraIPS 2019), Vancouver, Canada
Xiao H, Huang M, Zhu X (2016) TransG: a generative model for knowledge graph embedding. ACL 1:2316–2325
Zhang Z, Zhuang F, Qu M, et al (2018) Knowledge graph embedding with hierarchical relation structure. In: EMNLP, pp 3198–3207
Dettmers T, Minervini P, Stenetorp P, Riedel S (2018) Convolutional 2d knowledge graph embeddings In: AAAI, pp 1811–1818
Nguyen DQ, Nguyen TD, Phung D (2018) A convolutional neural network-based model for knowledge base completion and its application to search personalization Semantic Web
Schlichtkrull M, Kipf TN, Bloem P, et al (2018) Modeling relational data with graph convolutional networks. In: ESWC, pp 593–607
Zhou Z, Wang C, Feng Y, Chen D (2022) JointE: jointly utilizing 1D and 2D convolution for knowledge graph embedding. Knowl Bases Syst 240:108100
Xie X, Zhang N, Li Z et al (2022) From Discrimination to Generation:Knowledge Graph Completion with Generative Transformer. arXiv:2202.02113v6 [cs.CL] 29 Mar 2022
Devlin J, Chang MW, Lee K,Toutanova K (2019) Bert: pre-training of deep bidirectional transformers for language understanding. In: NAACL, pp 4171–4186
Wang A, Singh A, Michael J et al (2019) GLUE: a multi-task benchmark and analysis platform for natural language understanding. In: ICLR
Zia T, Windridge D (2021) A generative adversarial network for single and multi-hop distributional knowledge base completion. Neurocomputing 461:543–551
Rajpurkar P, Zhang J, Lopyrev K, Liang P (2016) Squad: 100,000+ questions for machine comprehension of text. In: Proceedings of the 2016 conference on empirical methods in natural language processing pages, pp 2383–2392
Shi B, Weninger T (2017) ProjE: embedding projection for knowledge graph completion. In: AAAI
Wang Z, Li JZ (2016) Text-enhanced representation learning for knowledge graph. In: IJCAI, pp 1293–1299
Wang Z, Li JZ (2016) Text-enhanced representation learning for knowledge graph. In: IJCAI, pp 1293–1299
Xiao H, Huang M, Meng L, Zhu X (2017) SSP: semantic space projection for knowledge graph embedding with text descriptions In: AAAI
An B, Chen B, Han X, Sun L (2018) Accurate text-enhanced knowledge graph representation learning. In: NAACL, pp 745–755
Wang H, Kulkarni V, Wang WY (2018) Dolores: Deep contextualized knowledge graph embeddings. arXiv preprint arXiv:1811.00147
Trouillon T, Welbl J, Riedel S, et al (2016) Complex embeddings for simple link prediction. In: ICML, pp 2071–2080
Sun Z, Deng ZH, Nie JY, Tang J (2019) Rotate: knowledge graph embedding by relational rotation in complex space. In: ICLR
Wang Z, Zhang J, Feng J, Chen Z (2014) Knowledge graph embedding by translating on hyperplanes. In AAAI
Lin Y, Liu Z, Sun M, et al (2015) Learning entity and relation embeddings for knowledge graph completion. In: AAAI
Ji G, He S, Xu L, et al (2015) Knowledge graph embedding via dynamic mapping matrix. In: ACL, J, pp 687–696
Ji G, Liu K, He S, Zhao J (2016) Knowledge graph completion with adaptive sparse transfer matrix. In: AAAI
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors have no conflict of interest.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Tubaishat, A., Zia, T., Faiz, R. et al. Discriminator-based adversarial networks for knowledge graph completion. Neural Comput & Applic 35, 7975–7987 (2023). https://doi.org/10.1007/s00521-022-07680-w
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00521-022-07680-w