[Paper Review] Extracting Biomedical Factual Knowledge Using Pretrained Language Model and Electronic Health Record Context
This paper proposes a dynamic context-aware prompting framework that enhances biomedical knowledge extraction from large language models (LLMs) by incorporating electronic health record (EHR) notes as contextual support. By integrating EHR context into few-shot prompting, the method significantly improves factual knowledge recall in biomedical domains, demonstrating that LLMs can distinguish correct facts from noisy EHR-derived knowledge, which also serves as a novel evaluation metric for model knowledge capacity.
Language Models (LMs) have performed well on biomedical natural language processing applications. In this study, we conducted some experiments to use prompt methods to extract knowledge from LMs as new knowledge Bases (LMs as KBs). However, prompting can only be used as a low bound for knowledge extraction, and perform particularly poorly on biomedical domain KBs. In order to make LMs as KBs more in line with the actual application scenarios of the biomedical domain, we specifically add EHR notes as context to the prompt to improve the low bound in the biomedical domain. We design and validate a series of experiments for our Dynamic-Context-BioLAMA task. Our experiments show that the knowledge possessed by those language models can distinguish the correct knowledge from the noise knowledge in the EHR notes, and such distinguishing ability can also be used as a new metric to evaluate the amount of knowledge possessed by the model.
Motivation & Objective
- To address the poor performance of standard prompting methods in extracting factual knowledge from biomedical LLMs.
- To improve the reliability and accuracy of knowledge extraction in clinical NLP applications by leveraging real-world EHR context.
- To develop a dynamic context injection mechanism that tailors prompts based on EHR notes for better factual grounding.
- To evaluate the knowledge capacity of LLMs using their ability to distinguish correct facts from noisy knowledge in EHR contexts.
Proposed method
- The authors design a dynamic context-biased prompting framework that injects relevant EHR notes as context into few-shot prompt templates.
- They fine-tune and evaluate LLMs using a new task called Dynamic-Context-BioLAMA, which combines entity prediction with EHR context.
- The method uses masked language modeling objectives to extract factual knowledge from LLMs while conditioning on EHR-derived context to reduce hallucination.
- A context selection module retrieves the most relevant EHR snippets for each prompt, improving factual consistency.
- The approach evaluates model performance not only on accuracy but also on its ability to reject incorrect knowledge, serving as a proxy for knowledge quality.
- The framework is validated through ablation studies and comparisons against standard prompting and baseline LLMs on biomedical knowledge benchmarks.
Experimental results
Research questions
- RQ1Can EHR context improve the factual knowledge extraction performance of LLMs in biomedical applications?
- RQ2How does dynamic context injection affect the model's ability to distinguish correct facts from noisy or incorrect knowledge in EHR notes?
- RQ3To what extent can the model’s distinguishing ability between correct and incorrect facts serve as a reliable metric for evaluating its internal knowledge capacity?
- RQ4Does incorporating EHR context reduce hallucination in LLM-generated factual knowledge?
- RQ5How does the proposed method compare to standard prompting and baseline LLMs in terms of factual recall and precision?
Key findings
- The proposed method significantly outperforms standard prompting in extracting factual knowledge from biomedical LLMs, especially in low-resource and noisy EHR contexts.
- Incorporating EHR context improves the model’s ability to reject incorrect knowledge, indicating enhanced factual consistency and reliability.
- The distinguishing ability between correct and noisy facts emerged as a strong proxy metric for evaluating the internal knowledge capacity of LLMs.
- The dynamic context injection mechanism led to a measurable increase in factual recall, particularly for rare or complex biomedical entities.
- Ablation studies confirmed that EHR context is critical for performance gains, with performance dropping substantially when context is removed or poorly selected.
- The method demonstrated robustness across diverse EHR note types and clinical scenarios, validating its applicability in real-world clinical NLP pipelines.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.