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

Efficient Hyper-parameter Search for Knowledge Graph Embedding

Yongqi Zhang, Zhanke Zhou, Quanming Yao, Yong Li

Abstract

Knowledge Graph (KG) embeddings are highly sensitive to hyper-parameters (HPs), yet searching for optimal configurations on large-scale graphs is computationally prohibitive. We present KGTuner, a two-stage framework that leverages the transferability of HP rankings from subgraphs to full graphs. By efficiently searching a reduced space on a sampled subgraph and subsequently fine-tuning top candidates on the complete dataset, KGTuner achieves significant performance improvements—up to 16% on large-scale benchmarks—while drastically reducing search time.

Introduction

Knowledge Graph embeddings represent entities and relations as low-dimensional vectors, enabling critical tasks like link prediction and triple classification. However, their performance is notoriously sensitive to hyper-parameters such as learning rate, loss functions, and negative sampling strategies. Standard search methods like Bayesian Optimization or Random Search typically require training a model on the full graph for every trial. For modern, large-scale KGs with millions of entities, a single training run can take hours or even days, creating an "efficiency wall" for researchers and practitioners. KGTuner addresses this by asking: Can we find good hyper-parameters on a small piece of the graph and expect them to work on the whole thing?

The KGTuner Framework

KGTuner operates in two distinct stages based on a rigorous analysis of HP properties, contrasting with conventional methods that evaluate every configuration on the full dataset.

Comparison of conventional HPS methods vs. the two-stage KGTuner framework.

Stage One: Efficient Evaluation on Subgraphs

The search space is first reduced by categorizing HPs. Some are "shrunken" to historically high-performing ranges, while "decoupled" HPs (like batch size and embedding dimension) are kept small to minimize computational overhead. A subgraph containing roughly 20% of the original entities is sampled using a multi-start random walk. The search then proceeds using a Random Forest surrogate with Bayesian Optimization by Density-Ratio Estimation (RF+BORE), which handles the complex HP landscape more effectively than traditional Gaussian Processes.

Stage Two: Fine-tuning on the Full Graph

The top 10 configurations identified in Stage One are transferred to the full graph. In this stage, the "decoupled" HPs are scaled up to their full values, and the model is fine-tuned to achieve peak performance. This strategy avoids the massive memory and time costs of initial searching without losing the ability to find optimal settings for critical parameters like learning rate or loss type.

Key Insights: The "Bumpy" Search Landscape

A critical finding of this work is the high transferability of HP rankings: configurations that perform well on a 20% subgraph tend to remain superior on the full graph. Furthermore, the authors observed that the HP search space for KGs is highly non-convex with many local maxima—a "bumpy" landscape that explains why simple linear or smooth models often fail.

Relative ranks of different learning rates, illustrating the complex and non-convex search space.

As shown in the violin plots of relative ranks across different learning rates, the performance distribution is highly variable. This complexity justifies the use of Random Forest surrogates, which are better suited for such discrete and non-convex landscapes than standard Gaussian Processes.

Experimental Results

KGTuner was evaluated on major benchmarks, including WN18RR, FB15k-237, and large-scale Open Graph Benchmark (OGB) datasets like ogbl-biokg and ogbl-wikikg2.

  • Superior Performance: KGTuner consistently found better hyper-parameters than baselines like Hyperopt, SMAC, and AutoNE within the same time budget.
  • OGB Gains: On the large-scale ogbl-wikikg2 dataset, KGTuner achieved a 16.16% relative improvement in Mean Reciprocal Rank (MRR) over previously reported results.
  • Efficiency: Even with the initial overhead of subgraph searching, KGTuner quickly overtakes baseline methods in performance once it transitions to the full-graph stage.

Conclusion

KGTuner demonstrates that efficient hyper-parameter search for large-scale Knowledge Graphs is possible by leveraging subgraph transferability and robust surrogate models. By decoupling resource-intensive parameters and focusing initial search efforts on representative subgraphs, the framework overcomes the efficiency wall of traditional HPS. Future work may extend this logic to Graph Neural Networks (GNNs) and further automate search space reduction through data-driven insights.

Summary updated

BibTeX
@inproceedings{zhang2022efficient,
  author = {Yongqi Zhang and Zhanke Zhou and Quanming Yao and Yong Li},
  title = {{Efficient Hyper-parameter Search for Knowledge Graph Embedding}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.194},
}
Figure