HiPrompt: Few-Shot Biomedical Knowledge Fusion via Hierarchy-Oriented Prompting

Jiaying Lu, Jiaming Shen, Bo Xiong, Wenjing Ma, Steffen Staab, Carl Yang · DOI

Introduction

Biomedical knowledge is currently fragmented across various domain-specific Knowledge Graphs (KGs). To make this data actionable for clinical decision-making, researchers perform Biomedical Knowledge Fusion (BKF): the process of aligning entities from these KGs (e.g., specific genes, drugs, or diseases) to a standardized, well-maintained hierarchical index, such as the Disease Ontology.

Overview of the BKF task, aligning heterogeneous KG entities to a structured hierarchy.

This task presents three primary challenges:

  1. Inconsistent Naming: Synonyms and abbreviations vary across sources (e.g., "type-2 diabetes" vs. "T2D").
  2. Scarcity of Labels: High-quality labeled data for training supervised alignment models is extremely limited.
  3. Structural Mismatch: KGs are general graphs, whereas index systems are directed acyclic graphs (hierarchies).

The HiPrompt Framework

To address these challenges, the authors propose HiPrompt, a framework that leverages the zero-shot and few-shot reasoning capabilities of Large Language Models (LLMs). HiPrompt utilizes a "Retrieve & Re-rank" architecture designed to handle large-scale hierarchies efficiently.

Retriever: BM25 with Attribute-Structure Expansion

Given the massive size of biomedical hierarchies, HiPrompt first employs a fast retriever to identify the top-K candidate terms. To improve the recall of this initial stage, the system uses "attribute-structure expansion." This involves enriching the search query with synonyms, definitions, and neighboring entities from the source KG, ensuring that the retriever captures semantic nuances that simple keyword matching might miss.

Re-ranker: LLM with Hierarchy Context

The core innovation of HiPrompt is its re-ranking stage. Instead of presenting the LLM with a simple list of candidate names, the framework provides Hierarchy Context. For every candidate term, the prompt includes its "isA" parentage (e.g., "prostate cancer isA prostate disease"). This structural information allows the LLM to reason about the granularity of the terms.

The HiPrompt architecture, illustrating the Retrieve & Re-rank pipeline and the hierarchy-oriented prompting strategy.

The prompting strategy includes:

  • Pseudo-Demonstration: In zero-shot settings, the model is shown out-of-domain examples to learn the desired output format without biasing it toward specific task answers.
  • Few-Shot Prompting: In one-shot settings, a single real-world entity-term alignment is provided to further ground the model's predictions.

Experimental Setup and Datasets

The authors introduced a new benchmark, KG-Hi-BKF, to evaluate performance under supervision-scarce conditions. It consists of two datasets:

  • SDKG-DzHi: Aligns a disease-centric KG (SDKG) with a disease hierarchy (DzHi).
  • repoDB-DzHi: Aligns a drug repositioning database (repoDB) with the same disease hierarchy.

These datasets reflect real-world constraints, containing only a few hundred validated links despite encompassing tens of thousands of entities.

Key Results and Insights

HiPrompt demonstrated significant performance gains over traditional lexical matching and neural embedding baselines.

Performance Metrics

In zero-shot scenarios on the SDKG-DzHi dataset, HiPrompt achieved a Hits@1 of 90.79%. In comparison, the best non-neural baseline (LogMap) reached 75.75%, and the best neural baseline (SapBERT) reached 69.61%. With just a single training example (one-shot), HiPrompt’s performance improved to 92.11% Hits@1, while traditional neural models like MTransE failed to converge due to the extreme data sparsity.

The Importance of Context and Granularity

Ablation studies confirmed that adding hierarchical "isA" paths to the prompt improved the performance of all tested LLMs (including GPT-3 and OPT). This context is vital for resolving granularity issues—for example, helping the model distinguish between a general term like "Cancer" and a more specific, correct alignment like "Non-Small Cell Lung Carcinoma." Furthermore, LLMs act as effective "semantic bridges," recognizing conceptual identities (e.g., "Mason-type diabetes" and "MODY") that trip up simpler tools.

Conclusion and Future Work

HiPrompt represents a significant step forward in biomedical knowledge fusion by effectively integrating structural hierarchy into LLM prompts. While highly efficient, the framework currently relies on manually curated prompt templates. Future research may explore automatic prompt generation and dynamic hierarchies that can evolve as new entities are discovered. Despite these areas for growth, HiPrompt proves that structural context is a powerful catalyst for LLM reasoning in specialized scientific domains.

Summary updated

BibTeX
@inproceedings{lu2023hiprompt,
  author = {Jiaying Lu and Jiaming Shen and Bo Xiong and Wenjing Ma and Steffen Staab and Carl Yang},
  title = {{HiPrompt: Few-Shot Biomedical Knowledge Fusion via Hierarchy-Oriented Prompting}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2023},
  doi = {10.1145/3539618.3591997},
}
Figure