RAG-X: Systematic Diagnosis of Retrieval-Augmented Generation for Medical Question Answering
Organizations: Oakland University, Rochester, MI, USA
Abstract
Automated question-answering (QA) systems increasingly rely on retrieval-augmented generation (RAG) to ground large language models (LLMs) in authoritative medical knowledge, ensuring clinical accuracy and patient safety in Artificial Intelligence (AI) applications for healthcare. Despite progress in RAG evaluation, current benchmarks focus only on simple multiple-choice QA tasks and employ metrics that poorly capture the semantic precision required for complex QA tasks. These approaches fail to diagnose whether an error stems from faulty retrieval or flawed generation, limiting developers from performing targeted improvement. To address this gap, we propose RAG-X, a diagnostic framework that evaluates the retriever and generator independently across a triad of QA tasks: information extraction, short-answer generation, and multiple-choice question (MCQ) answering. RAG-X introduces Context Utilization Efficiency (CUE) metrics to disaggregate system success into interpretable quadrants, isolating verified grounding from deceptive accuracy. Our experiments reveal an ``Accuracy Fallacy", where a 14% gap separates perceived system success from evidence-based grounding. By surfacing hidden failure modes, RAG-X offers the diagnostic transparency needed for safe and verifiable clinical RAG systems.
Figures & tables
| Capability | RAGAS | MIRAGE | MedRGB | RAG-X |
|---|---|---|---|---|
| Primary Focus | General | Medical | Medical | Medical |
| Metric Engine | Heuristic Prompts | Accuracy | Prompt Analysis | Multi-level |
| Domain Alignment | None | None | None | Logic-aware |
| Diagnostic Decoupling | Limited | Minimal | Limited | Full |
| Task Coverage | Broad | MCQ | MCQ | Broad |
| Diagnostic Metric | Value | Interpretation | Actionable Insight |
|---|---|---|---|
| Effective Use (CUE) | 49.2% | The Only truly grounded success | System is reliable for nearly half of the queries. |
| Lucky Guess (CUE) | 33.9% | High risk; Generator produces answers without evidence support. | Improve retriever coverage. |
| Information Blindness (CUE) | 8.5% | Retriever was successful, but the generator missed the answer | Refine generation prompt for extraction. |
| Pairwise Redundancy (C1 and C2) | 22.0% | Significant overlap between top ranks. | Implement Maximum Marginal Relevance (MMR) for diversity. |
| Exclusive Hit Rate (Context-2) | 6.8% | Rank 2 rarely provides unique information. | Implement diverse re-ranking. |
| Context Adherence (LLM Judgment) | 0.84 | Generator is highly faithful to context. | No Action |
Retrieval-Augmented Generation
Retrieval-augmented generation connects language models to external knowledge so answers can use current, domain-specific evidence.
See all 792 papers