When does retrieval help medical question answering? A question-type sensitivity analysis and failure taxonomy for text-based (image-free) medical RAG, with an interpretable clinical filter (CAF-RAG)
Youssef Azami, Hamza Boulibya, Mohamed Adnane Mahraz, Mohammed Oulhadj, Hamid Tairi, Ilyasse Aboussaleh, Khalid El Fazazy, Jamal Riffi
{"title":"When does retrieval help medical question answering? A question-type sensitivity analysis and failure taxonomy for text-based (image-free) medical RAG, with an interpretable clinical filter (CAF-RAG)","authors":"Youssef Azami, Hamza Boulibya, Mohamed Adnane Mahraz, Mohammed Oulhadj, Hamid Tairi, Ilyasse Aboussaleh, Khalid El Fazazy, Jamal Riffi","doi":"10.1016/j.imu.2026.101810","DOIUrl":null,"url":null,"abstract":"<div><div>Retrieval-augmented generation (RAG) is widely assumed to improve medical question answering, yet the conditions under which retrieval helps, leaves performance unchanged, or actively harms it remain poorly characterized. This paper is a diagnostic study of that question rather than the proposal of a new retrieval framework. We evaluate a deliberately text-only (image-free) pipeline in which the model receives the question and retrieved text but never the medical image, using SLAKE and VQA-RAD as sources of clinically diverse question types, and we validate externally on PubMedQA (<span><math><mrow><mi>n</mi><mo>=</mo><mn>1000</mn></mrow></math></span>). We compare six retrieval conditions across two language models. The conditions are parametric-only No-RAG, dense RAG, hybrid BM25<!--> <!-->+<!--> <!-->dense, two cross-encoder rerankers (general and biomedical), and CAF-RAG, a training-free clinical filter whose auditable keep/remove decisions make it a diagnostic instrument. The two models are GPT-4o-mini and the open medical model BioMistral-7B, which read byte-identical retrieved context. Our central finding is negative and consistent: text-based retrieval does not significantly outperform parametric knowledge on any group we tested, and on external data it is significantly worse (PubMedQA, −0.120, <span><math><mrow><mi>p</mi><mo><</mo><mn>0.0001</mn></mrow></math></span>). No passage-selection method recovers it: neither reranker significantly beats plain RAG, and CAF-RAG is statistically indistinguishable from a cross-encoder reranker (+0.002, <span><math><mrow><mi>p</mi><mo>=</mo><mn>0.91</mn></mrow></math></span>) while recovering part of the accuracy that retrieval costs (+0.034 over RAG on SLAKE-CLOSED, <span><math><mrow><mi>p</mi><mo>=</mo><mn>0.027</mn></mrow></math></span>). The two models agree to within 0.002 on both effects, indicating these are properties of retrieval rather than of one model. We identify a behavioral mechanism: retrieved context displaces the model from its parametric answer prior. It moves the model toward affirmation when the context is topically related to the question (both models swing sharply toward “Yes” on SLAKE), and toward hedging when it is not (both swing toward “Maybe” on PubMedQA). We also report an audit of our own evaluation: a substring-matching artifact in lexical scoring inflated retrieval conditions more than the terse parametric baseline, and we replace it with a scorer validated against 197 blinded human gradings (91.9% agreement, <span><math><mrow><mi>κ</mi><mo>=</mo><mn>0.79</mn></mrow></math></span>). All per-question outputs, the rebuilt knowledge base, retrieval contexts, and the scorer with its documented failure modes are released.</div></div>","PeriodicalId":13953,"journal":{"name":"Informatics in Medicine Unlocked","volume":"65 ","pages":"Article 101810"},"PeriodicalIF":0.0000,"publicationDate":"2026-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Informatics in Medicine Unlocked","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2352914826000808","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/8/31 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"Medicine","Score":null,"Total":0}
引用次数: 0
Abstract
Retrieval-augmented generation (RAG) is widely assumed to improve medical question answering, yet the conditions under which retrieval helps, leaves performance unchanged, or actively harms it remain poorly characterized. This paper is a diagnostic study of that question rather than the proposal of a new retrieval framework. We evaluate a deliberately text-only (image-free) pipeline in which the model receives the question and retrieved text but never the medical image, using SLAKE and VQA-RAD as sources of clinically diverse question types, and we validate externally on PubMedQA (). We compare six retrieval conditions across two language models. The conditions are parametric-only No-RAG, dense RAG, hybrid BM25 + dense, two cross-encoder rerankers (general and biomedical), and CAF-RAG, a training-free clinical filter whose auditable keep/remove decisions make it a diagnostic instrument. The two models are GPT-4o-mini and the open medical model BioMistral-7B, which read byte-identical retrieved context. Our central finding is negative and consistent: text-based retrieval does not significantly outperform parametric knowledge on any group we tested, and on external data it is significantly worse (PubMedQA, −0.120, ). No passage-selection method recovers it: neither reranker significantly beats plain RAG, and CAF-RAG is statistically indistinguishable from a cross-encoder reranker (+0.002, ) while recovering part of the accuracy that retrieval costs (+0.034 over RAG on SLAKE-CLOSED, ). The two models agree to within 0.002 on both effects, indicating these are properties of retrieval rather than of one model. We identify a behavioral mechanism: retrieved context displaces the model from its parametric answer prior. It moves the model toward affirmation when the context is topically related to the question (both models swing sharply toward “Yes” on SLAKE), and toward hedging when it is not (both swing toward “Maybe” on PubMedQA). We also report an audit of our own evaluation: a substring-matching artifact in lexical scoring inflated retrieval conditions more than the terse parametric baseline, and we replace it with a scorer validated against 197 blinded human gradings (91.9% agreement, ). All per-question outputs, the rebuilt knowledge base, retrieval contexts, and the scorer with its documented failure modes are released.
期刊介绍:
Informatics in Medicine Unlocked (IMU) is an international gold open access journal covering a broad spectrum of topics within medical informatics, including (but not limited to) papers focusing on imaging, pathology, teledermatology, public health, ophthalmological, nursing and translational medicine informatics. The full papers that are published in the journal are accessible to all who visit the website.