Confidence-Based Adaptive Retrieval Fails Where It Matters Most: A Paradox in Biomedical Question Answering
Authors: Chengying She, Siyu Deng, Haiyan Ge, Lizhuang Liu
Organizations: Shanghai Advanced Research Institute, Chinese Academy of Sciences University of Chinese Academy of Sciences, Shanghai, China · Department of Respiratory and Critical Care Medicine, Huadong Hospital Fudan University, Shanghai, China
Large language models (LLMs) are increasingly used for biomedical question answering, but plausible incorrect answers remain a safety risk in clinical settings. Retrieval-augmented generation (RAG) can ground responses in medical literature, while confidence-based adaptive RAG retrieves only when the model appears uncertain. We evaluate this routing strategy on three biomedical QA benchmarks of increasing difficulty and compare models across a broad range of parameter scales. The results reveal a paradox: confidence is well calibrated (AUROC 0.78--0.89) on standard medical exam questions where retrieval adds little value (+2.4% to -1.4%), yet becomes near-random (AUROC 0.506) on specialist-level questions where retrieval helps most (+11.2%). Five uncertainty signals---first-token probability, margin, entropy, consistency-based sampling, and verbalized confidence---show the same failure pattern. Five post-hoc calibration correction strategies, including density-ratio reweighting and rank-preserving transformation, do not recover a useful routing signal on hard questions (best AUROC: 0.507). Cross-model comparison shows that larger parameter scale and higher base accuracy do not guarantee reliable confidence-based routing under specialist-domain difficulty shift. These findings challenge the premise of confidence-based adaptive RAG: in high-stakes biomedical settings, defaulting to always-retrieve is safer and more accurate than confidence-based routing when calibration on the target domain is unknown.
Figures & tables
Fig. 1: The confidence–retrieval paradox across three biomedical QA benchmarks. Retrieval value ( Δ , x-axis) and confidence AUROC (y-axis) are inversely correlated. On MedXpertQA (red), retrieval provides the largest gain yet confidence is near-random.
Dataset
No-RAG
Always
Δ
AUROC
H/H
MedQA
72.2
74.6
+2.4
0.781
23/17
MMLU-Pro
80.8
79.4
−1.4
0.891
11/13
MedXpertQA
14.8
26.0
+11.2
0.506
66/13
TABLE I: Cross-dataset comparison of retrieval effectiveness and confidence calibration. Δ = Always − No-RAG (retrieval value). AUROC = margin signal predicting answer correctness. H/H = retrieval Help/Hurt counts. The inverse relationship between Δ and AUROC reveals the paradox.
Signal
AUROC
Adapt. ACC
Max Probability
0.394
17.5%
Margin
0.391
17.5%
Entropy
0.390
17.5%
Consistency ( N=5 )
0.522
17.5%
Verbalized (1–5)
0.391
19.0%
Random baseline
—
19.4%
TABLE II: Multi-signal ablation on MedXpertQA (200 samples). All signals are at or below random (AUROC 0.5). Random retrieval (19.4%) outperforms all adaptive strategies; always-retrieve (27.0%) provides a substantial margin.
Signal
MedQA
MMLU-Pro
MedXpert
Max Prob.
0.78
0.82
0.46
Margin
0.79
0.83
0.45
Entropy
0.77
0.81
0.47
TABLE III: AUROC of three confidence signals. Calibration degrades as retrieval value increases.
Fig. 2: Visual overview of confidence signal behavior. (a) First-token signals show a consistent degradation pattern from easy to hard datasets. (b) On MedXpertQA, all signals deviate minimally from random (0.5); first-token signals are anti-predictive while consistency barely exceeds chance. Exact values in Table III and Table II .
Method
MedQA
MedXpert
MMLU-Pro
Raw margin
0.781
0.506
0.891
Inverted margin
0.219
0.494
0.109
Rank-corrected
0.781
0.506
0.891
DR-weighted
0.781
0.503
0.160
DACC (full)
0.781
0.507
0.892
TABLE IV: AUROC of corrected confidence signals on three datasets. No method meaningfully improves routing on MedXpertQA (best: 0.507 vs. 0.506 raw). On MedQA and MMLU-Pro, methods either preserve or destroy the existing signal.
Method
Best τ
Best ACC
Retrieval %
Raw margin
1.00
26.0%
100%
Inverted
1.00
26.0%
100%
Rank-corrected
1.00
26.0%
100%
DR-weighted
1.00
26.0%
100%
DACC (full)
1.00
26.0%
100%
Never Retrieve
—
14.8%
0%
TABLE V: Adaptive retrieval results on MedXpertQA with corrected signals. All methods converge to “always retrieve” as the optimal strategy ( τ=1.00 , 100% retrieval), confirming the corrected signals provide no useful routing information.
Fig. 3: Effect of calibration correction, shown as Δ AUROC (corrected minus raw margin). In panel (a), solid blue denotes MedQA and hatched green denotes MMLU-Pro. Inversion destroys the signal on easier datasets, while all methods produce negligible change on MedXpertQA (best: +0.001), confirming signal absence rather than miscalibration. Exact AUROC values in Table IV .
Fig. 4: Cross-model verification across five models (DashScope API, verbalized confidence, 200 samples per dataset). Panels show no-RAG accuracy (a) and confidence AUROC (b). On MedXpertQA—the hardest dataset—DeepSeek-V4-Pro exhibits anti-predictive confidence (AUROC 0.408 < 0.5), while Kimi-K2.6 and MiniMax-M2.5 hover near chance (AUROC ≈ 0.5). Qwen3.7-Plus retains the best calibration overall but sees AUROC drop from 0.869 (MedQA) to 0.614 (MedXpertQA). See Table VI for exact values.
Model
Params
Metric
MedQA
MMLU-Pro
MedXpert
Qwen3.7-Plus
397B
No-RAG ACC (%)
94.5
93.5
57.5
Confidence AUROC
0.869
0.649
0.614
DeepSeek-V4-Pro
1.6T
No-RAG ACC (%)
96.0
90.0
41.0
Confidence AUROC
0.542
0.485
0.408
Kimi-K2.6
1T
No-RAG ACC (%)
91.0
92.0
30.5
Confidence AUROC
0.461
0.529
0.493
TABLE VI: Cross-model comparison using verbalized confidence (DashScope API, 200 samples per dataset). No-RAG accuracy and confidence AUROC are reported for each model. On standard datasets, larger models achieve high accuracy and moderate-to-strong calibration; on specialist-level MedXpertQA, confidence degrades to near-random for most models, confirming the paradox is not model-specific.
Medical question answering is a high-stakes setting where factual errors can have serious consequences. Retrieval-augmented generation (RAG) is widely viewed as a promising solution, and prior work has reported substantial gains for large medical QA models. We revisit this assumption across a broad range of open-weight instruction-tuned models spanning 7B to 72B parameters. Across five models, ten biomedical QA datasets, four retrieval methods, and four retrieval corpora, we find that retrieval yields only small and inconsistent improvements over a no-retrieval baseline, typically within 1-2 points. In contrast, the choice of backbone model has a much larger effect than the choice of retriever or corpus, and expert and layman retrieval sources perform similarly in most settings. These results suggest that the main bottleneck is not retrieval quality alone, but the model's limited ability to use retrieved evidence effectively.
Retrieval-Augmented Generation (RAG) offers a well-established path to grounding large language model (LLM) outputs in external knowledge, yet the question of which retrieval strategy works best in a high-stakes domain such as biomedicine has not received the controlled, multi-metric treatment it deserves. This paper presents a systematic empirical comparison of five retrieval strategies -- Dense Vector Search, Hybrid BM25 + Dense retrieval, Cross-Encoder Reranking, Multi-Query Expansion, and Maximal Marginal Relevance (MMR) -- within a biomedical question-answering RAG pipeline. All strategies share a fixed generation model (GPT-4o-mini), a common vector store (ChromaDB), and OpenAI's text-embedding-3-small embeddings, ensuring that observed differences are attributable to retrieval alone. Evaluation is conducted on 250 question-answer pairs drawn from a preprocessed subset of the BioASQ benchmark (rag-mini-bioasq) using four DeepEval metrics: contextual precision, contextual recall, faithfulness, and answer relevancy, each reported with 95% confidence intervals. A no-context ablation is included as a lower bound. Cross-Encoder Reranking achieves the best composite score (0.827) and highest contextual precision (0.852), confirming that query-document interaction yields measurable retrieval gains. Multi-Query Expansion, despite its recall-oriented design, produces the weakest contextual precision (0.671), suggesting naive query diversification introduces retrieval noise. MMR sacrifices answer relevancy for diversity, while the Dense baseline (composite 0.822) falls within 0.005 points of the top strategy. All RAG conditions dramatically outperform the no-context ablation on answer relevancy (0.658-0.701 vs. 0.287), confirming the practical value of retrieval. The full pipeline, hyperparameters, and evaluation code are publicly available.
Retrieval-Augmented Generation (RAG) has become the standard way to ground large language models in external knowledge, yet most systems retrieve a fixed number of passages for every question regardless of its difficulty. This wastes computation on easy questions, starves hard ones, and gives no signal for when a generated answer can be trusted. With a growing share of question answering systems built on top of commercial language model APIs, a method that can decide how much to retrieve, and how far to trust its own answers, without retraining the underlying model, is of clear practical value. This paper presents AB-RAG (Adaptive Budgeted Retrieval-Augmented Generation), a training-free and backbone-agnostic framework that generates an answer, estimates its confidence from a combination of three signals, and then decides whether to stop or to retrieve more evidence, subject to a fixed retrieval budget. The estimator combines the model's own certainty, the agreement between the answer and the evidence, and the variance of the retrieval scores. For models that expose token probabilities the certainty signal is read directly; for closed APIs it is approximated by self-consistency, so the method works without access to model internals. Across three backbones and two datasets, the central result is that the confidence estimate reliably separates correct from incorrect answers on every backbone, reaching a clean split of 57.6% against 0% Exact Match between high- and low-confidence answers on a factoid dataset. The adaptive policy improves accuracy on capable backbones, and the study reports its negative and nuanced findings honestly, including a confidence signal that proved unsuitable for short answers and a retrieval signal whose sign was found and corrected through measurement. The entire study was carried out on a single consumer laptop with only a few dollars of API spend.
Ansh Kamthan
Department of Artificial Intelligence and Machine Learning Manipal University Jaipur Jaipur, India