skip to main content

An Empirical Evaluation of MetaPath2Vec Initialization and GraphSAGE Aggregation for Link Prediction in Sparse Bipartite Knowledge Graphs

1Faculty of Computer Science, Universitas Jember, Indonesia

2School of Information Science, Japan Advanced Institute of Science and Technology, Japan

Received: 11 Aug 2026; Revised: 16 Nov 2026; Accepted: 26 Nov 2026; Published: 30 Nov 2026.
Open Access Copyright (c) 2026 The authors. Published by Department of Informatics Universitas, Diponegoro
Creative Commons License This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Citation Format:
Abstract
Knowledge graphs describing traditional herbal medicine are typically small and sparse, making node initialization and neighborhood aggregation important for link prediction. This study evaluates random trainable embeddings and MetaPath2Vec initialization across mean, sum, max-pooling, and LSTM GraphSAGE aggregators for herb-therapeutic indication prediction in a graph with 99 herb nodes, 111 therapeutic indication nodes, and 488 recorded links (487 unique pairs). Using a relation-stratified 70/15/15 split, a DistMult decoder, type-aware negative sampling, and five random seeds per configuration, random initialization achieved higher mean reciprocal rank than MetaPath2Vec (0.134 versus 0.122). A sum aggregator with 46,528 parameters performed comparably to an LSTM aggregator with 179,648 parameters. MetaPath2Vec with mean aggregation showed the largest train-validation gap (0.431). Six-layer models reached 0.975 mean pairwise cosine similarity, indicating oversmoothing, while task performance did not decline monotonically. The highest mean reciprocal rank occurred with 80% of the available training edges. These findings show that richer initialization, greater aggregator complexity, and deeper models do not automatically benefit small, sparse, domain-specific knowledge graphs.
Keywords: knowledge graph; GraphSAGE; MetaPath2Vec; link prediction; DistMult

Article Metrics:

  1. W. L. Hamilton, R. Ying, and J. Leskovec, "Inductive representation learning on large graphs," in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 30, Long Beach, CA, USA, Dec. 2017, pp. 1024–1034, doi: 10.48550/arXiv.1706.02216
  2. Y. Dong, N. V. Chawla, and A. Swami, "metapath2vec: Scalable representation learning for heterogeneous networks," in Proc. 23rd ACM SIGKDD Int. Conf. Knowl. Discov. Data Min., Halifax, NS, Canada, Aug. 2017, pp. 135–144, doi: 10.1145/3097983.3098036
  3. B. Yang, W. Yih, X. He, J. Gao, and L. Deng, "Embedding entities and relations for learning and inference in knowledge bases," in Proc. Int. Conf. Learn. Represent. (ICLR), San Diego, CA, USA, May 2015, doi: 10.48550/arXiv.1412.6575
  4. Q. Li, Z. Han, and X.-M. Wu, "Deeper insights into graph convolutional networks for semi-supervised learning," in Proc. AAAI Conf. Artif. Intell., vol. 32, no. 1, New Orleans, LA, USA, Feb. 2018, pp. 3538–3545, doi: 10.1609/aaai.v32i1.11604
  5. Q. Wang, Z. Mao, B. Wang, and L. Guo, "Knowledge graph embedding: A survey of approaches and applications," IEEE Trans. Knowl. Data Eng., vol. 29, no. 12, pp. 2724–2743, Dec. 2017, doi: 10.1109/TKDE.2017.2754499
  6. P. Duan et al., "HTINet2: Herb–target prediction via knowledge graph embedding and residual-like graph neural network," Brief. Bioinform., vol. 25, no. 5, Art. no. bbae414, Sep. 2024, doi: 10.1093/bib/bbae414
  7. L. Gu et al., "Prediction of herbal compatibility for colorectal adenoma treatment based on graph neural networks," Chin. Med., vol. 20, no. 1, Art. no. 31, Mar. 2025, doi: 10.1186/s13020-025-01082-5
  8. Z. Jin, Y. Zhang, J. Miao, Y. Yang, Y. Zhuang, and Y. Pan, "A knowledge-guided and traditional Chinese medicine informed approach for herb recommendation," Frontiers of Information Technology & Electronic Engineering, vol. 24, no. 10, pp. 1416–1429, 2023, doi: 10.1631/FITEE.2200662
  9. Y. Xiao, S. Zhang, H. Zhou, M. Li, H. Yang, and R. Zhang, "FuseLinker: Leveraging LLM's pre-trained text embeddings and domain knowledge to enhance GNN-based link prediction on biomedical knowledge graphs," J. Biomed. Inform., vol. 158, Art. no. 104730, Oct. 2024, doi: 10.1016/j.jbi.2024.104730
  10. H. Zhong, M. Wang, and X. Zhang, "Unsupervised embedding learning for large-scale heterogeneous networks based on metapath graph sampling," Entropy, vol. 25, no. 2, Art. no. 297, Feb. 2023, doi: 10.3390/e25020297
  11. F. S. Nurkasyifah, A. K. Supriatna, and A. Maulana, "Supervised GNNs for node label classification in highly sparse network: Comparative analysis," in Proc. IEEE Int. Conf. Evolving Adapt. Intell. Syst. (EAIS), Madrid, Spain, May 2024, pp. 1–8, doi: 10.1109/EAIS58494.2024.10569099
  12. W. L. Hamilton, Graph Representation Learning (Synthesis Lectures on Artificial Intelligence and Machine Learning, vol. 14, no. 3). San Rafael, CA, USA: Morgan & Claypool, 2020, pp. 1–159, doi: 10.2200/S01045ED1V01Y202009AIM046
  13. Z. Wu, S. Pan, F. Chen, G. Long, C. Zhang, and P. S. Yu, "A comprehensive survey on graph neural networks," IEEE Trans. Neural Netw. Learn. Syst., vol. 32, no. 1, pp. 4–24, Jan. 2021, doi: 10.1109/TNNLS.2020.2978386
  14. R. Cahyaningsih, J. Magos Brehm, and N. Maxted, "Setting the priority medicinal plants for conservation in Indonesia," Genet. Resour. Crop Evol., vol. 68, no. 5, pp. 2019–2050, 2021, doi: 10.1007/s10722-021-01115-6
  15. Kementerian Kesehatan RI, 100 Top Tanaman Obat Indonesia [100 Top Medicinal Plants of Indonesia]. Jakarta, Indonesia: Kementerian Kesehatan RI, 2011
  16. Y. Jin, W. Ji, W. Zhang, X. He, X. Wang, and X. Wang, "A KG-Enhanced Multi-Graph Neural Network for Attentive Herb Recommendation," IEEE/ACM Trans. Comput. Biol. Bioinform., vol. 19, no. 5, pp. 2560–2571, Sep.–Oct. 2022, doi: 10.1109/TCBB.2021.3115489
  17. Y. Zhou et al., "MAMGN-HTI: A graph neural network model with metapath and attention mechanisms for hyperthyroidism herb–target interaction prediction," Bioengineering, vol. 12, no. 10, p. 1085, Oct. 2025, doi: 10.3390/bioengineering12101085
  18. K. da Costa and B. Modenesi, "GraphNetz: Statistical benchmarking of graph neural networks with paired tests and rank aggregation," arXiv:2605.09099, May 2026. [Online]. Available: https://arxiv.org/abs/2605.09099
  19. Y. Benjamini and Y. Hochberg, "Controlling the false discovery rate: A practical and powerful approach to multiple testing," Journal of the Royal Statistical Society: Series B (Methodological), vol. 57, no. 1, pp. 289–300, 1995, doi: 10.1111/j.2517-6161.1995.tb02031.x
  20. D. Lakens, "Equivalence tests: A practical primer for t tests, correlations, and meta-analyses," Social Psychological and Personality Science, vol. 8, no. 4, pp. 355–362, 2017, doi: 10.1177/1948550617697177
  21. A. Bordes, N. Usunier, A. Garcia-Durán, J. Weston, and O. Yakhnenko, "Translating embeddings for modeling multi-relational data," in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 26, Lake Tahoe, NV, USA, Dec. 2013, pp. 2787–2795. [Online]. Available: https://proceedings.neurips.cc/paper/5071-translating-embeddings-for-modeling-multi-relational-data.pdf
  22. D. Liben-Nowell and J. Kleinberg, "The link-prediction problem for social networks," Journal of the American Society for Information Science and Technology, vol. 58, no. 7, pp. 1019–1031, 2007, doi: 10.1002/asi.20591
  23. M. Ali et al., "Bringing light into the dark: A large-scale evaluation of knowledge graph embedding models under a unified framework," IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 44, no. 12, pp. 8825–8845, 2022, doi: 10.1109/TPAMI.2021.3124805

Last update:

No citation recorded.

Last update: 2026-12-02 08:30:44

No citation recorded.