Prompting Matters: Snippet-Aware Strategies for Biomedical QA with LLMs in BioASQ 13b

Hajung Kim, Hoonick Lee, Yewon Cho, Jungwoo Park, Jueon Park, Soyon Park, Yan Ting Chok, Seungheun Baek, Donghyeon Lee, Jaewoo KangCLEF (Working Notes) 2025

TL;DR

When asking Large Language Models (LLMs) to answer biomedical questions, what you feed them matters—but how you feed it to them matters just as much. By testing four different ways of presenting PubMed evidence snippets to models like GPT-4 and Claude, this paper shows that no single prompting strategy wins everywhere: isolating snippets one-by-one is best for pinpointing specific facts, while feeding all snippets at once is better for yes/no and list questions.

What Problem Does This Paper Address?

Clinicians and biomedical researchers often need precise, evidence-based answers buried across multiple scientific papers. While LLMs like GPT-4 and Claude are impressive at general question answering, biomedical QA is a different beast: the terminology is ambiguous, the domain is dense, and the evidence is frequently scattered—or even conflicting—across multiple retrieved text snippets.

The authors tackle BioASQ 13b Task B, a benchmark where systems must answer expert-written biomedical questions using retrieved PubMed snippets. Specifically, they focus on three exact-answer formats:

  • Yes/No: Binary questions requiring synthesis across snippets.
  • Factoid: Questions expecting a single, specific entity (e.g., "What is the target of fezolinetant?").
  • List: Questions expecting a set of distinct answers (e.g., "Please list the symptoms of Chikungunya virus infection").

The core challenge is that LLMs are surprisingly sensitive to how context is arranged in a prompt. Dump too many snippets in at once, and a crucial fact might get lost; isolate them too much, and the model loses the big picture.

Methods

The authors evaluated a suite of LLMs—GPT-4-0125-preview, GPT-4o-mini, GPT-4o, and Claude—using custom prompts that strictly instruct the models to prioritize the provided snippets over their own internal knowledge and return structured outputs (like JSON arrays).

Prompts used for each QA type

To see how snippet presentation affects performance, they tested four prompting strategies:

  1. Full Snippet (Default Order): All retrieved snippets are concatenated in their original order in a single prompt.
  2. Random Ordered Full Snippet: All snippets are concatenated, but their order is randomly shuffled across repeated trials to reduce positional bias.
  3. Single Snippet (One-by-One): Each snippet is paired individually with the question, and the model's separate outputs are aggregated afterward.
  4. No Snippet: A baseline where the model answers using only its parametric knowledge, with no evidence provided.

Finally, they combined outputs across models using task-specific ensemble strategies:

  • Yes/No: Majority voting (ignoring "none" abstentions).
  • Factoid: Log-probability ranking, summing the log probabilities of identical entity candidates across models.
  • List: Frequency-based filtering, keeping entities that appear above a predefined occurrence threshold.

Datasets

  • Training / Reference Corpus: The official BioASQ 13b dataset, containing 5,389 expert-authored questions paired with PubMed snippets.
  • Internal Ablation Subsets: Two test sets derived from previous editions—BioASQ 11b (86 yes/no, 98 factoid, 66 list) and BioASQ 12b (102 yes/no, 85 factoid, 80 list).
  • Official Evaluation: BioASQ 13b Task B across four live test batches (Batches 1–4).

Key Insights and Ideas

  • One-size-fits-all prompting doesn't work: The optimal way to feed snippets depends heavily on the question type.
  • Isolating snippets helps find needles in haystacks: For factoid questions, the one-by-one strategy consistently outperformed all others. When a single entity is buried in long or noisy snippets, looking at each snippet in isolation prevents the model from overlooking it.
  • Holistic context wins for synthesis: For list and yes/no questions, full snippet prompting performed best. List questions require synthesizing mentions across multiple sources, and one-by-one prompting fragments the evidence, hurting recall.
  • Shuffling adds robustness: Randomly reordering snippets helped yes/no performance on BioASQ 11b, showing that prompt-level perturbations can mitigate positional bias.
  • External grounding is non-negotiable: The no snippet baseline consistently trailed behind across all tasks, especially on factoid and list questions where parametric memory alone falls short.

Key Results

In the official BioASQ 13b evaluation, the team's approach achieved the highest average rank in Batches 1 and 4, and the second-highest in Batches 2 and 3.

  • Yes/No: Reached a perfect 1.0000 Macro F1 in both Batch 1 and Batch 2 using a 10-model full-snippet ensemble, and 0.9532 Macro F1 (Rank 2) in Batch 4.
Table 3 Performance (Macro F1) on BioASQ-13b in the yes/no type. Numbers in parentheses indicate the number of single models constituting the ensemble. Systems are classified as either single or ensemble models, with most based on one-by-one inference.
  • Factoid: Achieved 0.5962 MRR (Rank 1) in Batch 1, 0.6667 MRR (Rank 2) in Batch 2, 0.5042 MRR (Rank 2) in Batch 3, and 0.6136 MRR (Rank 2) in Batch 4.
  • List: Reached 0.5913 F-Measure (Rank 2) in Batch 1 and 0.6328 F-Measure (Rank 3) in Batch 4.
  • Ablation (GPT-4o-mini on 11b/12b): One-by-one led factoid MRR (0.7941 on 11b; 0.7403 on 12b), full snippet led list F-measure (0.6675 on 11b; 0.6106 on 12b), and random ordered led yes/no Macro-F1 on 11b (0.9795).

Limitations and Future Work

The authors do not include a dedicated limitations or future work section. However, their ablation results highlight clear trade-offs: one-by-one prompting can fragment evidence and reduce recall on list-type questions, while relying on parametric knowledge alone (no snippet) is insufficient for evidence-heavy biomedical queries.

Summary updated

BibTeX
@inproceedings{kim2025prompting,
  author = {Hajung Kim and Hoonick Lee and Yewon Cho and Jungwoo Park and Jueon Park and Soyon Park and Yan Ting Chok and Seungheun Baek and Donghyeon Lee and Jaewoo Kang},
  title = {{Prompting Matters: Snippet-Aware Strategies for Biomedical QA with LLMs in BioASQ 13b}},
  booktitle = {CLEF (Working Notes)},
  year = {2025},
  url = {https://openreview.net/forum?id=5yGfqjMfL7},
}
Figure