Manuscript Offprint

arXiv:2609.08174

OntologyBench: Can Dense Retrieval Satisfy Structured Biomedical Constraints?

Xiao Yu Cindy Zhang, Wyeth Wasserman, Jian Zhu

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

Abstract

We introduce OntologyBench, a tiered biomedical retrieval benchmark comprising 471,854 training and 125,744 evaluation query-document relevance pairs across concept grounding, relational retrieval, and compositional phenotype-based retrieval.

Although these tasks can be tractable using ontology-aware reference methods, across task tiers, embedding performance is generally lower on relational and compositional tasks than on concept-grounding tasks. Fine-tuning on ontology-derived supervision improves performance on several relational and compositional tasks, whereas the evaluated reranking and LLM-based candidate-scoring methods provide little or no end-to-end improvement. Errors frequently reflect diseases matching only subsets of the phenotype evidence.

These findings indicate that the evaluated embedding and reranking configurations do not reliably recover the compatibility encoded by the selected ontology relations and phenotype combinations and motivate retrieval systems that better integrate learned representations with structured biomedical knowledge.

1 Introduction

Dense retrieval models enable retrieval directly over natural language by mapping semantically related queries and documents into a shared embedding space. This supports retrieval beyond exact lexical overlap and reduces dependence on explicitly engineered symbolic methods, such as ontology-based semantic similarity scoring and graph traversal. This flexibility has made embedding retrieval attractive for biomedical and clinical applications, where concepts are often expressed using heterogeneous, incomplete, or non-canonical language.

However, many retrieval problems require satisfying multiple interdependent constraints rather than matching individual features independently. (Agarwal et al., 2026) Existing benchmarks primarily evaluate retrieval based on unstructured semantic similarity and provide limited insight into whether models can recover compatibility across multiple structured inputs. (Muennighoff et al., 2023)

To address this gap, we introduce OntologyBench, a retrieval benchmark constructed from expert-curated biomedical ontologies. The benchmark spans concept grounding, relational retrieval, and compositional phenotype-based retrieval. These task families provide complementary views of retrieval behaviour under different forms of ontology-encoded compatibility. Because they also differ in candidate spaces, relevance structures, and query ambiguity, cross-tier comparisons are interpreted descriptively rather than as isolated estimates of constraint complexity.

Within this framework, the fixed Tier 3 phenotype-triplet-to-disease task reveals a persistent limitation. The evaluated embedding models frequently rank diseases that match only a subset of the phenotype evidence, and their performance remains substantially below that of an ontology-aware baseline. The tested rerankers provide little or no end-to-end improvement across the complete query set. These findings indicate that the evaluated retrieval systems do not reliably recover the compatibility encoded by joint phenotype sets, although candidate omission and downstream ranking errors remain alternative sources of failure.

This work makes three contributions. First, we introduce a retrieval benchmark spanning concept grounding, ontology-relation retrieval, and phenotype-set retrieval to evaluate whether embedding models recover compatibility encoded by curated biomedical ontologies. Second, we characterize retrieval behaviour across grounding, relational, and compositional tasks, architectures, and model scales, identifying a persistent gap relative to an ontology-aware baseline on the fixed phenotype-triplet-to-disease task. Third, through two-stage evaluation, we distinguish candidate availability from the end-to-end performance of the reranked system. Across the complete query set, the evaluated rerankers provide little or no improvement over the first-stage retriever.

References (17)