NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Efficient Relation-aware Scoring Function Search for Knowledge Graph Embedding

Shimin Di, Quanming Yao, Yongqi Zhang, Lei Chen

Introduction

Knowledge Graphs (KGs) represent structured information as triplets of (head entity, relation, tail entity). To predict missing links, researchers use embedding models that map entities and relations into a continuous vector space, evaluated by a scoring function (SF). Traditionally, these SFs were hand-designed (e.g., TransE, DistMult, ComplEx) to be "universal," applying the same mathematical structure to every relation in the KG.

However, relations in a KG are semantically diverse—some are symmetric, others anti-symmetric or transitive. A single SF often fails to capture all these patterns optimally. While AutoML approaches like AutoSF have attempted to search for better SFs, they remain computationally expensive and force a single architecture across all relations. As shown in the comparison below, ERAS is designed to bridge the gap by being both relation-aware and efficient.

Comparison of hand-designed and searched scoring functions across effectiveness and efficiency metrics.

The ERAS Framework

To address these limitations, the authors propose ERAS (Efficient Relation-Aware Scoring function search). ERAS introduces a relation-aware search space where different relations can be assigned distinct SF architectures. To make this massive search space tractable, ERAS employs three core innovations:

  1. Supernet with Parameter Sharing: Instead of training every candidate SF from scratch, ERAS uses a bipartite "supernet." All candidate architectures are subgraphs of this supernet, sharing the same underlying entity and relation embeddings. This "One-Shot" approach allows for rapid evaluation without full retraining.
  2. Dynamic Relation Grouping: Using an Expectation-Maximization (EM) clustering approach, ERAS groups relations based on their learned embeddings. This ensures that semantically similar relations share the same optimized SF, reducing the complexity of the search.
  3. Reinforcement Learning Controller: An LSTM-based controller, trained via the REINFORCE algorithm, samples and optimizes the architectures based on the Mean Reciprocal Rank (MRR) performance.
Overview of the ERAS framework: (a) multi-step decision process for SF generation, (b) supernet architecture, and (c) the embedding sharing mechanism.

Key Results and Insights

The authors evaluated ERAS on five standard benchmarks: WN18, WN18RR, FB15k, FB15k237, and YAGO3-10.

  • Efficiency: ERAS achieves a significant speedup over previous AutoML methods. On WN18RR, the search time dropped from 38.6 hours (AutoSF) to just 3.2 hours. On the large-scale YAGO3-10 dataset, search time was reduced from 220 hours to 20 hours.
  • Effectiveness: ERAS consistently outperformed both hand-designed models and AutoSF. By being relation-aware, it specifically improved performance on complex relation types where universal functions struggle. For example, on symmetric relations in WN18RR, ERAS reached a 94.3% Hit@1.
  • Semantic Awareness: The dynamic grouping successfully clustered relations with similar logic (e.g., hypernyms and hyponyms), proving that tailoring the scoring math to the relation type is a superior strategy to universal modeling.

Limitations and Future Work

While highly efficient, ERAS can be unstable during the initial phases of the search, particularly on datasets with thousands of relations like FB15k237, where stable clustering takes time to emerge. Future research directions include integrating ERAS with Graph Neural Networks (GNNs) and extending the search to capture higher-order structural information through multi-hop paths.

Summary updated

BibTeX
@inproceedings{di2021efficient,
  author = {Shimin Di and Quanming Yao and Yongqi Zhang and Lei Chen},
  title = {{Efficient Relation-aware Scoring Function Search for Knowledge Graph Embedding}},
  booktitle = {ICDE},
  year = {2021},
  url = {https://openreview.net/forum?id=hxNS6xESTJ2},
}
Figure