HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

AutoSF: Searching Scoring Functions for Knowledge Graph Embedding

Yongqi Zhang; Quanming Yao; Wenyuan Dai; Lei Chen

AutoSF: Searching Scoring Functions for Knowledge Graph Embedding

Abstract

Scoring functions (SFs), which measure the plausibility of triplets in knowledge graph (KG), have become the crux of KG embedding. Lots of SFs, which target at capturing different kinds of relations in KGs, have been designed by humans in recent years. However, as relations can exhibit complex patterns that are hard to infer before training, none of them can consistently perform better than others on existing benchmark data sets. In this paper, inspired by the recent success of automated machine learning (AutoML), we propose to automatically design SFs (AutoSF) for distinct KGs by the AutoML techniques. However, it is non-trivial to explore domain-specific information here to make AutoSF efficient and effective. We firstly identify a unified representation over popularly used SFs, which helps to set up a search space for AutoSF. Then, we propose a greedy algorithm to search in such a space efficiently. The algorithm is further sped up by a filter and a predictor, which can avoid repeatedly training SFs with same expressive ability and help removing bad candidates during the search before model training. Finally, we perform extensive experiments on benchmark data sets. Results on link prediction and triplets classification show that the searched SFs by AutoSF, are KG dependent, new to the literature, and outperform the state-of-the-art SFs designed by humans.

Code Repositories

AutoML-4Paradigm/ERAS
pytorch
Mentioned in GitHub
AutoML-4Paradigm/S2S
pytorch
Mentioned in GitHub
AutoML-Research/S2S
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
link-prediction-on-fb15kAutoKGE
Hits@10: 0.914
MRR: 0.861
link-prediction-on-fb15k-237AutoKGE
Hits@10: 0.555
MRR: 0.365
link-prediction-on-wn18AutoKGE
Hits@10: 0.961
MRR: 0.952
link-prediction-on-wn18rrAutoSF
Hits@10: 0.567
MRR: 0.490
link-property-prediction-on-ogbl-biokgAutoSF
Ext. data: No
Number of params: 93824000
Test MRR: 0.8309 ± 0.0008
Validation MRR: 0.8317 ± 0.0007
link-property-prediction-on-ogbl-wikikg2AutoSF
Ext. data: No
Number of params: 500227800
Test MRR: 0.5458 ± 0.0052
Validation MRR: 0.5510 ± 0.0063

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