Manuscript Offprint

arXiv:2608.23214

Aligning Biomedical Texts and Knowledge Graphs: A Systematic Comparison of Lightweight Alignment Strategies

Artem Bisliouk, Elizaveta Nosova, Heiko Paulheim, Andreea Iana, Rita T. Sousa

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Biomedical knowledge exists in two complementary but distinct forms: unstructured scientific literature and structured knowledge graphs (KGs). Aligning them is essential for knowledge grounding, evidence retrieval, and KG completion, yet existing methods do not explicitly align free-text evidence with KG triples. We present a unified framework for systematically studying design choices for aligning biomedical text and KGs. With a text encoder and a KG embedding model both frozen, we learn only a lightweight projection between their spaces via a contrastive objective. This enables a fair comparison across six design dimensions: text encoder, KG embedding model, projection head, triple composition, training direction, and hard-negatives sampling. We construct CTD-Align, a corpus of over 22K one-to-one triple-document pairs linking chemical-gene interactions from the Comparative Toxicogenomics Database to supporting PubMed passages. We evaluate alignment on it in two retrieval settings: document-to-triple and triple-to-document. We find that the triple composition and the training direction (i.e., shared retrieval space) have the greatest impact, whereas the text encoder and hard-negatives sampling matter little. Overall, simple choices win: projecting text into the KG space with a linear head over concatenated subject, predicate, and object embeddings performs best. These findings establish lightweight contrastive alignment as an effective, practical foundation for bridging biomedical text and KGs.

Keywords

Biomedical Knowledge Graph, Language Models, Contrastive Learning, Representation Alignment, Knowledge Graph Embedding, Evaluation

References (57)

  • A Survey of Large Language Models
  • Liu, BioGPT: Generative Pre-trained Transformer for Biomedical Text Generation and Mining, Briefings in Bioinformatics 23
  • Principles, Taxonomy, Challenges, and Open Questions, ACM Transactions on Information Systems 43 (2025) 1–55
  • What's the Answer Right Now?, Advances in Neural Information Processing Systems 36 (2023) 49025–49043
  • Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), 2025, pp. 7433–7457
  • Investigating Effectiveness of Parametric and Non-Parametric Memories, in: Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (volume 1: Long papers), 2023, pp. 9802–9822
  • Lai, Q. Zhu, X. Chen, Y. Yang, Q. Chen, W. Kim, D. C. Comeau, et al., Opportunities and challenges for chatgpt and large language models in biomedicine and health, Briefings in Bioinformatics 25
  • a survey of web tools for searching biomedical literature, Database 2011
  • The genbank of the published literature, 2001
  • a full-text literature database for the life sciences and platform for innovation, Nucleic acids research 43 (2015) D1042–D1048
  • A roadmap, IEEE Transactions on Knowledge and Data Engineering 36 (2024) 3580–3599
  • a knowledge graph-enhanced rag framework for biomedical problem solving using large language models, Bioinformatics 40
  • Ngonga Ngomo, Factcheck: Validating rdf triples using textual evidence, in: Proceedings of the 27th ACM International Conference on Information and Knowledge Management, 2018, pp. 1599–1602
  • Proceedings of the Thirteenth Language Resources and Evaluation Conference, 2022, pp. 1073–1082
  • Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), 2024, pp. 2046–2058
  • Proceedings of the Joint Conference of the 47th Annual Meeting of the ACL and the 4th International Joint Conference on Natural Language Processing of the AFNLP, 2009, pp. 1003–1011
  • data and methods for large-scale text mining and knowledge graph generation of heterogeneous chemical-protein relations, Database 2023
  • Enhanced Language Representation with Informative Entities, in: Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, 2019, pp. 1441–1451
  • Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), 2019, pp. 43–54
  • Enabling Language Representation with Knowledge Graph, in: Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, 2020, pp. 2901–2908
  • A unified model for knowledge embedding and pre-trained language representation, Transactions of the Association for Computational Linguistics 9 (2021) 176–194
  • Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, 2015, pp. 1499–1509
  • BERT for Knowledge Graph Completion, arXiv preprint arXiv:1909.03193 (opens arXiv in a new tab)
  • Simple Contrastive Knowledge Graph Completion with Pre-trained Language Models, in: Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (volume 1: long papers), 2022, pp. 4281–4294
  • Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, 2018, pp. 1959–1970
  • Self-supervised contrastive pretraining for joint graph and text embeddings, in: Proceedings of TextGraphs-17: Graph-based Methods for Natural Language Processing, 2024, pp. 19–39
  • Findings of the Association for Computational Linguistics: IJCNLP-AACL 2023 (Findings), 2023, pp. 110–122
  • Adapt Language Models to Domains and Tasks, in: Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, 2020, pp. 8342–8360
  • Representation Learning with Contrastive Predictive Coding
  • update 2025, Nucleic acids research 53 (2025) D1328–D1334
  • Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2014, pp. 1591–1601
  • Proceedings of the AAAI Conference on Artificial Intelligence, volume 30, 2016
  • T. Mikolov, Q. V. Le, I. Sutskever, Exploiting similarities among languages for machine translation, arXiv preprint arXiv:1309.4168 (2013). (opens arXiv in a new tab)
  • International Conference on Machine Learning, PMLR, 2021, pp. 8748–8763
  • Zero-Shot Transfer with Locked-image Text Tuning, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022, pp. 18123–18133
  • Proceedings of the Computer Vision and Pattern Recognition Conference, 2025, pp. 29847–29857
  • Graph-Text Joint Representation Learning for Text Generation from Knowledge Graphs, in: Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, 2021, pp. 2526–2538
  • Yih, T. Rocktäschel, et al., Retrieval-augmented generation for knowledge-intensive nlp tasks, Advances in Neural Information Processing Systems 33 (2020) 9459–9474
  • N. A. Z. Nishat, A. Coletta, L. Bellomarini, K. Amouzouvi, J. Lehmann, S. Vahdati, Aligning knowledge graphs and language models for factual accuracy, arXiv preprint arXiv:2507.13411 (2025). (opens arXiv in a new tab)
  • enhancing biomedical language representations through knowledge graph and language model alignment, in: Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval, 2025, pp. 1152–1164
  • Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, 2021, pp. 4228–4238
  • Comparative Experimental Biology 305 (2006) 689–692
  • Nolin, N. Tourigny, P. Rigault, J. Morissette, Bio2rdf: towards a mashup to build bioinformatics knowledge systems, Journal of biomedical informatics 41 (2008) 706–716
  • Yih, X. He, J. Gao, L. Deng, Embedding entities and relations for learning and inference in knowledge bases, in: Proceedings of the International Conference on Learning Representations (ICLR), 2015
  • Gaussier, G. Bouchard, Complex embeddings for simple link prediction, in: International conference on machine learning, PMLR, 2016, pp. 2071–2080
  • Contrastive Pre-trained Transformers with large-scale PubMed search logs for zero-shot biomedical information retrieval, Bioinformatics 39
  • Deng, J.-Y
  • Tensor factorization for knowledge graph completion, in: Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), 2019, pp. 5185–5194
  • Rdf graph embeddings for data mining, in: International Semantic Web Conference, Springer, 2016, pp. 498–514
  • Efficient Estimation of Word Representations in Vector Space
  • Understanding its algorithm components and their roles for better empirical performance, arXiv preprint arXiv:2304.11127 (opens arXiv in a new tab)
  • Adam: A Method for Stochastic Optimization
  • a pre-trained biomedical language representation model for biomedical text mining, Bioinformatics 36 (2020) 1234–1240
  • International Conference on Learning Representations, 2019
  • Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), 2019, pp. 55–65
  • Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2020, pp. 9119–9130
  • Simple contrastive learning of sentence embeddings, in: Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, 2021, pp. 6894–6910