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.
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:
- 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.
- 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.
- 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.
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