arXiv:2610.01324cs.CLOct 2026

Manuscript Offprint

arXiv:2610.01324

Evaluating Biomedical Reranking for LLM-Based Question Answering over Longitudinal Clinical Notes

Maryam Shahbaz Ali, Laura B. Strachan, Caitlin Sherman, Mark Kovler, Eleanor Mackey, Syed Muhammad Anwar

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

ABSTRACT

Patient-specific clinical question answering requires locating the right evidence within long, heterogeneous longitudinal clinical records in which relevant facts may be scattered across encounters, repeated in copied-forward notes, or expressed using different clinical terminology. We evaluated whether biomedical reranking can improve evidence selection and downstream answer quality in a locally deployed retrieval-augmented generation pipeline for longitudinal clinical notes. The pipeline combines PubMedBERT dense retrieval, BM25 lexical retrieval, weighted reciprocal-rank fusion, and MedCPT cross-encoder reranking. Across 1,000 open- and closed-ended question-answer pairs from a cohort of 200 bariatric surgery patients, reranking increased exact source-chunk retrieval within the top 10 items, Hit@10 from 46.6% to 60.6% and mean reciprocal rank from 0.2371 to 0.3252. With Qwen3-8B generation, local judge-assessed answer correctness increased from 44.8% to 48.6%. These results show that biomedical reranking can improve the placement of relevant clinical evidence within a limited context window, although gains in retrieval do not translate proportionally into gains in answer correctness.

Index Terms- Clinical question answering, retrieval augmented generation, biomedical reranking, hybrid retrieval, local language models

1. INTRODUCTION

Patient-specific clinical question answering (QA) differs from general medical QA because the required evidence is often buried within a single patient's longitudinal record rather than contained in model pretraining. Relevant facts may be distributed across encounters, repeated in copied-forward notes, or expressed using different clinical terminology. This creates a retrieval problem in which the system must identify the most informative evidence from a large, redundant record while operating within a limited context window.

Retrieval-augmented generation (RAG) provides a mechanism for supplying patient-specific evidence to a language model, but the usefulness of the final answer depends heavily on which passages are retrieved and how they are ranked. Towards this goal, MIRAGE benchmark and MedRAG toolkit were introduced to systematically evaluate retrieval configurations for the medical QA [1]. In longitudinal clinical records, this distinction is particularly important because retrieving the relevant evidence and correctly interpreting that evidence are separate stages of the pipeline.

Dense retrieval can capture semantically related text, whereas lexical retrieval rewards direct term overlap. These complementary signals can be combined using reciprocal-rank fusion (RRF) [2], after which a cross encoder can jointly score the question and candidate passage. MedCPT provides a biomedical retrieval and reranking framework trained from PubMed search interactions [3]. Recent work has extended retrieval augmentation to electronic health record applications beyond general medical QA. RAG was applied to EHR summarization and clinical information extraction [4], while RAM-EHR was introduced to augment clinical prediction with retrieved medical knowledge [5]. Recent studies have further examined RAG for biomedical applications, longitudinal EHR reasoning, factual-aware medical QA, and evidence-grounded patient QA [8]-[12]. These studies demonstrate the broader value of retrieval augmentation, but do not directly evaluate whether biomedical cross-encoder reranking improves evidence of selection for patient-specific question answering over longitudinal clinical notes.

We evaluate this approach using a frozen set of 1,000 QA pairs generated from 200 bariatric surgery patients, with retrieval restricted to each patient's longitudinal record and clinical inference performed locally. This work makes three contributions: 1) evaluates biomedical cross-encoder reranking for longitudinal clinical QA, 2) quantifies the relationship between improved evidence retrieval and downstream answer correctness, including separate analysis of open- and closed-ended QA, and 3) demonstrates a fully

Figure

Fig. 1. Patient-specific clinical question answering using hybrid PubMedBERT and BM25 retrieval, weighted rank fusion, MedCPT reranking, and local Qwen 3-8B generation. Retrieval and answer quality are evaluated separately.

local, patient-restricted RAG evaluation incorporating retrieval, generation, and identifier screening.