HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Embedding Entities and Relations for Learning and Inference in Knowledge Bases

Bishan Yang; Wen-tau Yih; Xiaodong He; Jianfeng Gao; Li Deng

Embedding Entities and Relations for Learning and Inference in Knowledge Bases

Abstract

We consider learning representations of entities and relations in KBs using the neural-embedding approach. We show that most existing models, including NTN (Socher et al., 2013) and TransE (Bordes et al., 2013b), can be generalized under a unified learning framework, where entities are low-dimensional vectors learned from a neural network and relations are bilinear and/or linear mapping functions. Under this framework, we compare a variety of embedding models on the link prediction task. We show that a simple bilinear formulation achieves new state-of-the-art results for the task (achieving a top-10 accuracy of 73.2% vs. 54.7% by TransE on Freebase). Furthermore, we introduce a novel approach that utilizes the learned relation embeddings to mine logical rules such as "BornInCity(a,b) and CityInCountry(b,c) => Nationality(a,c)". We find that embeddings learned from the bilinear objective are particularly good at capturing relational semantics and that the composition of relations is characterized by matrix multiplication. More interestingly, we demonstrate that our embedding-based rule extraction approach successfully outperforms a state-of-the-art confidence-based rule mining approach in mining Horn rules that involve compositional reasoning.

Code Repositories

thu-keg/eakit
pytorch
Mentioned in GitHub
giuseppefutia/semi
pytorch
Mentioned in GitHub
bi-graph/emgraph
tf
Mentioned in GitHub
sntcristian/and-kge
pytorch
Mentioned in GitHub
Sujit-O/pykg2vec
tf
Mentioned in GitHub
thiviyant/intelligraphs
pytorch
Mentioned in GitHub
awslabs/dgl-ke
pytorch
Mentioned in GitHub
facebookresearch/PyTorch-BigGraph
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
link-prediction-on-fb15k-237DistMult
Hits@10: 0.419
MRR: 0.241
link-prediction-on-umlsDistMult
Hits@10: 0.846
MR: 5.52
link-prediction-on-wn18DistMult
Hits@1: 0.728
Hits@10: 0.936
Hits@3: 0.914
MR: 902
MRR: 0.822
link-prediction-on-wn18rrDisMult
Hits@1: 0.39
MRR: 0.43
link-property-prediction-on-ogbl-biokgDistMult
Ext. data: No
Number of params: 187648000
Test MRR: 0.8043 ± 0.0003
Validation MRR: 0.8055 ± 0.0003
link-property-prediction-on-ogbl-wikikg2DistMult (500dim)
Ext. data: No
Number of params: 1250569500
Test MRR: 0.3729 ± 0.0045
Validation MRR: 0.3506 ± 0.0042
link-property-prediction-on-ogbl-wikikg2DistMult (100dim)
Ext. data: No
Number of params: 250113900
Test MRR: 0.3447 ± 0.0082
Validation MRR: 0.3150 ± 0.0088

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Embedding Entities and Relations for Learning and Inference in Knowledge Bases | Papers | HyperAI