Benchmarking Retrieval-Augmented Large Language Models in Biomedical NLP: Application, Robustness, and Self-Awareness

Rui Zhang, PhD, Facmi, Famia, Fiahsi, Mingchen Li, Zaifu Zhan, Han Yang, Yongkang Xiao, Jiatan Huang, Rui ZhangarXiv 2024 · DOI

Abstract

Retrieval-Augmented Learning (RAL) is a standard solution to mitigate hallucinations in Large Language Models (LLMs) by providing them with relevant snippets from trusted databases. However, the robustness of these models in the biomedical domain—where data can be noisy, mislabeled, or conflicting—remains poorly understood. This paper introduces BioRAB, a new benchmark designed to stress-test RALs across diverse, realistic biomedical scenarios. Our evaluation reveals that while RALs generally outperform standard LLMs, they are surprisingly fragile when faced with low-quality data. We propose a "Detect-and-Correct" strategy and contrastive learning interventions that significantly improve model reliability and self-awareness.

Introduction

Large Language Models (LLMs) are notorious for "hallucinating" facts, a flaw that is particularly dangerous in the medical field. While Retrieval-Augmented Learning (RAL) helps by grounding model responses in external knowledge (e.g., PubMed), most evaluations occur under ideal conditions. In practice, biomedical databases contain unlabeled data, counterfactuals, and irrelevant noise. This study investigates how "self-aware" these models are—specifically, whether they can discern if retrieved information is helpful or misleading.

The BioRAB Framework

The researchers developed the BioRAB framework to evaluate models across five core tasks using four specialized testbeds:

  1. Unlabeled Robustness (UR): Performance when retrieved snippets lack explicit labels.
  2. Counterfactual Robustness (CR): Handling databases where a percentage of information (20% to 100%) is intentionally incorrect.
  3. Diverse Robustness (DR): Filtering out "noise" from unrelated tasks.
  4. Negative Awareness (NA): Identifying when retrieved information is harmful to the final output.
The BioRAB framework evaluates LLMs using various corpora (labeled, unlabeled, counterfactual, and diversity) through a retrieval tool to test awareness and generation abilities.

To address identified weaknesses, the authors proposed two interventions: a Detect-and-Correct process using a stronger model (like GPT-4) to fix errors before the primary LLM processes them, and Contrastive Learning using a triplet loss function to help models mathematically distinguish helpful snippets from harmful ones.

Experimental Setup

The study utilized 11 datasets across five biomedical NLP tasks: Triple Extraction (ADE, ChemProt, GIT), Link Prediction (PHarmKG, Hetionet, DS), Text Classification (Ade-corpus-v2, SemClass, SDoH), Question Answering (MedMCQA), and Natural Language Inference (BioNLI).

Key Results and Insights

Performance and Retriever Sensitivity

RALs consistently outperformed standard LLMs. For instance, adding retrieval to MedLLaMA-13B improved its F1 score on the ADE dataset by 22.37%. However, the choice of retriever is critical; while domain-specific retrievers like MedCPT generally performed best, no single retriever was superior across all tasks.

Comprehensive performance comparison of various LLMs (LLaMA2, MedLLaMA, LLaMA3, Phi4, Qwen2.5) across multiple biomedical tasks and retrieval approaches.

Robustness and the Self-Awareness Gap

  • Label Dependency: RALs are highly sensitive to label quality. In the ADE dataset, using a labeled corpus outperformed an unlabeled one by 26.41%.
  • Counterfactual Paradox: Interestingly, models occasionally used the structure of "wrong" information as a template to generate correct answers, though performance generally plummeted as error rates increased. At an 80% counterfactual rate on ADE, performance dropped to an F1 score of just 10%.
  • Awareness Failure: Current models struggle with "negative awareness," often failing to identify harmful information. The proposed contrastive learning approach showed modest improvements in this area, such as boosting awareness in SDoH classification from 48.70% to 49.56%.

Conclusion

While RAL significantly enhances biomedical LLM performance, its fragility in the face of noisy data highlights a critical need for improved model self-awareness. The "Detect-and-Correct" method proved effective, achieving an F1 of 72.77% on BioNLI despite noisy data. Future work will focus on developing retrievers with built-in confidence scores and improving multi-hop reasoning to validate complex medical claims.

Summary updated

BibTeX
@misc{fiahsi2024benchmarking,
  author = {Rui Zhang, PhD, FACMI, FAMIA, FIAHSI and Mingchen Li and Zaifu Zhan and Han Yang and Yongkang Xiao and Jiatan Huang and Rui Zhang},
  title = {{Benchmarking Retrieval-Augmented Large Language Models in Biomedical NLP: Application, Robustness, and Self-Awareness}},
  year = {2024},
  eprint = {2405.08151},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.08151},
}
Figure