Introduction
Large Language Models (LLMs) have demonstrated significant potential in the medical domain, yet ensuring their reliability remains a critical challenge. In high-stakes clinical environments, accuracy is not merely a performance metric but a matter of safety. Currently, two primary paradigms dominate the landscape of knowledge-enhanced LLMs: Retrieval-Augmented Generation (RAG) and Generation-Augmented Generation (GAG). While RAG leverages external databases like PubMed to provide factual grounding, it often suffers from "noisy" or incomplete retrieval. Conversely, GAG utilizes the model's internal parametric knowledge to generate context, which, while flexible, is prone to hallucinations.
The authors of MedRGAG identify a fundamental "knowledge gap" in these approaches. RAG provides external evidence that may be insufficient, while GAG provides unconstrained internal evidence. MedRGAG proposes a unified framework that identifies specific deficiencies in retrieved documents and fills them with targeted, model-generated insights.
Methodology: The MedRGAG Framework
MedRGAG operates through a sophisticated three-stage pipeline designed to harmonize external and internal knowledge sources.
Stage 1: Source-Balanced Evidence Retrieval
To avoid the pitfalls of biased or narrow search results, the system pulls an equal distribution of documents from diverse high-quality sources, such as medical textbooks and Wikipedia. These documents are then reranked to prioritize the most relevant information.
Stage 2: Knowledge-Guided Context Completion (KGCC)
This stage represents the core innovation of MedRGAG. Rather than generating background information blindly, the framework employs a Summarizer to condense retrieved documents and an Explorer to analyze these summaries against the original question. The Explorer identifies specific missing information—the "knowledge gap." A Generator then produces targeted documents to address these exact requirements, ensuring that the generated content is complementary to the retrieved evidence.
Stage 3: Knowledge-Aware Document Selection (KADS)
With a pool of both retrieved and generated documents, an Integrator groups them by "knowledge requirements." This allows the system to identify the most informative and non-redundant passages. By selecting the top 5 passages based on requirement coverage rather than simple semantic similarity, the framework can rescue critical facts that traditional RAG systems might overlook.
Experimental Evaluation
The framework was rigorously tested across five major medical benchmarks: MedQA-US (USMLE style), MedMCQA (Indian medical entrance exams), MMLU-Med, PubMedQA, and BioASQ-Y/N.
Key Results
MedRGAG demonstrated superior performance across various "Reader" architectures, including Qwen2.5, LLaMA-3.1, and Ministral.
- Significant Performance Gains: The framework achieved a 12.5% average improvement over standard retrieval-only methods (MedRAG) and a 4.5% gain over generation-only methods (MedGENIE).
- Benchmark Excellence: Using the Qwen2.5-7B-Instruct reader, MedRGAG reached an average accuracy of 71.14% across all datasets, a significant jump from the 60.87% direct response baseline.
- Efficiency and Quality: The KADS module proved that quality outweighs quantity; the system achieved higher accuracy with 5 selected documents than a baseline approach using 10 unselected documents.
Discussion and Insights
The "Explorer" module is the critical component of MedRGAG, transforming the generation process from a generic task into a targeted knowledge-filling operation. Ablation studies confirmed a strong synergy between external corpora and internal parametric knowledge; removing either component resulted in a sharp decline in performance. This suggests that external and internal knowledge are most effective when used in tandem.
However, the framework does introduce computational overhead due to the multi-step LLM calls (summarize, explore, generate, select). Furthermore, the system's effectiveness is somewhat dependent on the quality of the "auxiliary" models used for integration and exploration, with larger models like GPT-4o-mini providing the best results.
Conclusion
MedRGAG successfully bridges the gap between external retrieval and internal model intuition. By treating these two knowledge sources as complementary rather than competing, it sets a new standard for accuracy and reliability in medical question answering. Future work will focus on reducing latency and extending the framework to more complex, open-ended clinical scenarios.
Summary updated