Command Palette
Search for a command to run...
Vom Retrieval zur Generierung: Vereinigung von externem und parametrischem Wissen für das medizinische Question Answering
Vom Retrieval zur Generierung: Vereinigung von externem und parametrischem Wissen für das medizinische Question Answering
Lei Li Yingying Zhang Xiao Zhou Xian Wu
Zusammenfassung
Medizinisches Question Answering (QA) erfordert umfassenden Zugriff auf domänenspezifisches Wissen. Ein vielversprechender Ansatz besteht darin, große Sprachmodelle (LLMs) durch externes Wissen zu ergänzen, das aus medizinischen Korpora abgerufen wird, oder durch parametrisches Wissen, das in den Modellparametern gespeichert ist. Bestehende Ansätze fallen typischerweise in zwei Kategorien: Retrieval-Augmented Generation (RAG), das die Modellableitung auf extern abgerufene Belege stützt, und Generation-Augmented Generation (GAG), das ausschließlich auf das interne Wissen des Modells zur Generierung kontextueller Dokumente zurückgreift. RAG leidet jedoch häufig unter verrauschtem oder unvollständigem Retrieval, während GAG aufgrund unbeschränkter Generierung anfällig für halluzinierte oder ungenaue Informationen ist. Beide Probleme können die Ableitung irreführen und die Zuverlässigkeit der Antworten beeinträchtigen. Zur Bewältigung dieser Herausforderungen schlagen wir MedRGAG vor, ein vereinheitlichtes Retrieval-Generierungs-augmentiertes Framework, das externes und parametrisches Wissen nahtlos für medizinisches QA integriert. MedRGAG umfasst zwei zentrale Module: Knowledge-Guided Context Completion (KGCC), das den Generator anleitet, Hintergrunddokumente zu erzeugen, die das fehlende Wissen ergänzen, welches durch das Retrieval offenbart wird; und Knowledge-Aware Document Selection (KADS), das adaptiv eine optimale Kombination aus abgerufenen und generierten Dokumenten auswählt, um prägnante und zugleich umfassende Belege für die Antwortgenerierung zu bilden. Umfangreiche Experimente auf fünf medizinischen QA-Benchmarks zeigen, dass MedRGAG eine Verbesserung von 12,5 % gegenüber MedRAG und einen Zuwachs von 4,5 % gegenüber MedGENIE erzielt, was die Wirksamkeit der Vereinigung von Retrieval und Generierung für wissensintensive Ableitungen unterstreicht. Unser Code und unsere Daten sind öffentlich verfügbar unter https://anonymous.4open.science/r/MedRGAG.
One-sentence Summary
Renmin University of China and Tencent Jarvis Lab propose MedRGAG, a unified retrieval-generation augmented framework for medical QA that integrates Knowledge-Guided Context Completion and Knowledge-Aware Document Selection to complement noisy retrieval with parametric generation, achieving a 12.5% improvement over MedRAG across five medical QA benchmarks.
Key Contributions
-
MedRGAG is a unified retrieval-generation augmented framework for medical question answering that combines externally retrieved evidence and parametric knowledge generated by large language models to reduce reliance on noisy retrieval and hallucinated generation.
-
Knowledge-Guided Context Completion uses knowledge gaps revealed by retrieval to guide generation of complementary background documents, while Knowledge-Aware Document Selection adaptively selects retrieved and generated documents to form concise evidence for answer generation.
-
Experiments on five medical QA benchmarks and multiple reader architectures show consistent gains over strong baselines, including a 12.5% improvement over MedRAG and a 4.5% improvement over MedGENIE, and code and data are publicly released.
Introduction
Large language models can improve medical question answering, but their parametric knowledge is limited and can produce plausible yet factually incorrect answers, which is especially risky in clinical settings. Prior methods often rely on retrieval-augmented generation, where retrieved documents can be noisy or incomplete, or generation-augmented generation, where synthetic contexts may introduce hallucinations, and existing hybrids do not fully solve these complementary limitations. The authors propose MedRGAG, a unified retrieval and generation framework that combines external medical evidence with model-generated background knowledge, uses knowledge-guided context completion to fill missing information, and performs knowledge-aware document selection to build more reliable evidence for answer generation.
Dataset
- The authors use five widely used medical question answering benchmarks: MedQA, MedMCQA, MMLU-Med, PubMedQA*, and BioASQ-Y/N.
- All benchmarks are cast as multiple-choice QA tasks, with each question containing two to four candidate answers.
- The paper summarizes dataset statistics in Table 2 and provides additional details in Appendix B, but the provided text does not specify exact subset sizes, source splits, or filtering rules.
- The data is used for evaluation, with accuracy reported as the primary performance metric under standard evaluation practice.
- No training split, mixture ratio, cropping strategy, or metadata construction is described in the provided excerpt.
Method
MedRGAG is formulated as a multi evidence reader for medical multiple choice question answering. Given a question q and an answer set A={a1,…,a∣A∣}, the base reader model Mr generates an answer from its internal parameters and a task specific prompt:
a^=Mr(q,Pr∣θr).Because this formulation relies only on parametric knowledge, the method combines retrieval augmented generation and generation augmented generation. In retrieval augmented generation, a corpus C={d1,…,d∣C∣} and a retriever R provide external evidence:
Dr={d1r,…,dkr}=R(q,C∣θR),and the reader predicts the answer as:
a^=Mr(q,Dr,Pr∣θr).In generation augmented generation, a generator Mg produces tailored background documents:
Dg={d1g,…,dkg}=Mg(q,Pg∣θg),and the reader then predicts the answer as:
a^=Mr(q,Dg,Pr∣θr).The proposed framework unifies these two directions through three sequential stages. Refer to the framework diagram:
The first stage is source balanced evidence retrieval. Instead of merging all medical corpora into one large source and retrieving from the unified pool, the system treats multiple heterogeneous sources as separate corpora {C1,C2,…,Cs}. This prevents retrieval bias toward large or repeatedly represented information sources. For a given question q, the retriever independently selects a fixed number of top documents from each corpus and unions them into an intermediate candidate set:
D~r=i=1⋃sR(q,Ci∣θR).This balanced selection produces a more diverse candidate pool. The system then applies a reranking model, specifically MedCPT Reranker, which jointly encodes the question and each candidate document to assign fine grained relevance scores. The highest ranked documents are retained as the retrieved evidence set Dr.
The second stage is knowledge guided context completion. Its purpose is to repair gaps and noise in the retrieved evidence. Retrieved documents may cover only partial aspects of a medical question, and some may be irrelevant or misleading. The module processes the retrieved evidence through three reasoning steps. First, a summarizer extracts the useful knowledge from each retrieved document with respect to the question. If a document does not contain useful information, the model outputs a control signal indicating that no useful information was found. This step filters noise while preserving concise, question relevant summaries.
Second, an explorer model Me evaluates the summarized evidence and identifies important knowledge that is still missing for answering the question:
K={k1,…,km}=Me(q,Ds,Pe∣θe),where Ds denotes the summarized evidence and K is the set of missing knowledge points. Documents marked as having no useful information are excluded before exploration to avoid wasting reasoning capacity.
Third, a generator Mg produces background documents conditioned on each missing knowledge point:
dig=Mg(q,ki,Pg∣θg).This yields a set of complementary documents. If the number of missing knowledge points m is smaller than the target number of generated documents k, the system generates additional background documents directly from the question. This provides broader context and reduces overfitting to narrow knowledge fragments. The output of this stage is the generated evidence set Dg.
The third stage is knowledge aware document selection. Both retrieved and generated documents are merged into the candidate pool Dr∪Dg. Simply concatenating all candidates would increase input length and may dilute useful information with redundant or noisy content. Therefore, an integrator model Mi performs knowledge aware selection. The integrator first identifies the essential knowledge components required by the question. It then maps each candidate document to one or more of these components, assigning irrelevant documents to a nonuseful group. Finally, it selects a compact subset of documents that collectively covers the required knowledge components while minimizing redundancy. Formally, the final evidence set is:
Df=Mi(q,Dr∪Dg,Pi∣θi).The reader model then receives the question together with this selected evidence and generates the final answer:
a^=Mr(q,Df,Pr∣θr).Experiment
The experiments evaluate MedRGAG on multiple medical multiple-choice question answering benchmarks and compare it with direct answering, retrieval-augmented, and generation-augmented baselines. The main results, ablations, and performance analyses show that combining retrieved evidence with generated medical knowledge is more effective than relying on either source alone, and that knowledge-guided context completion and adaptive document selection are important for assembling useful reasoning contexts. Additional analyses and a case study further indicate that stronger generator and auxiliary language models improve context quality, while adaptive selection balances retrieved and generated evidence to support more accurate medical reasoning.
Across the evaluated medical QA settings, MedR-GAG attains the highest average accuracy and consistently outperforms direct-response, retrieval-augmented, and generation-augmented baselines. Compared with standard retrieval-augmented approaches, it provides markedly better performance, indicating that generated knowledge can help cover missing information. Its adaptive document selection also balances retrieved and generated evidence while retaining accuracy with fewer documents. Adaptive document selection maintains strong accuracy while reducing document count and preserving useful retrieved evidence. Retrieved and generated documents are complementary, with generated passages supplying missing explanations and retrieved passages supporting factual details.
The evaluated medical question answering suite combines examination-based benchmarks and literature-based benchmarks, all expressed as multiple-choice tasks. Examination datasets generally have more answer options and longer question stems, while literature datasets are smaller and use shorter prompts with fewer options. Accuracy is used as the primary metric for assessing answer correctness. The benchmark mix covers both examination-style questions and literature-derived questions. Examination datasets are associated with longer question stems and mostly four candidate answers. Literature datasets use shorter prompts and fewer answer choices, including binary questions.
Ablation results show that the full system achieves the highest scores on all three medical QA datasets compared with direct response and each reduced variant. Removing the generation module causes the largest decline, suggesting generated documents provide especially useful question-specific knowledge, while removing retrieval also lowers accuracy and shows that external evidence remains important. Disabling the knowledge-guided completion or adaptive document selection component further reduces performance, confirming that these modules help construct and choose informative contexts. The full system outperforms direct response and all ablated variants on MedQA-US, MedMCQA, and MMLU-Med. Removing generation causes the largest relative accuracy drop among the tested ablations. Removing retrieval also degrades performance, showing that retrieved evidence contributes to reasoning. Removing knowledge-guided completion or adaptive selection reduces accuracy, supporting the value of targeted context completion and evidence filtering.
The case study shows that retrieved documents can provide partial evidence about an NF2 gene mutation but may omit key disease associations, while generated documents add missing reasoning context. The generated passages elaborate on NF2-related tumor risks and distinguish it from related syndromes, helping eliminate a distractor. Combining selected retrieved and generated evidence supports the correct answer, meningioma. Retrieved evidence identifies NF2 and tumor risk but provides incomplete explanation. Generated evidence enriches the reasoning by adding disease context and ruling out related syndromes. Adaptive selection combines retrieved and generated passages to reach the correct answer.
The experiments evaluate a medical question answering suite of examination-based and literature-based multiple-choice benchmarks using accuracy to compare MedR-GAG with direct-response, retrieval-augmented, and generation-augmented baselines, ablation variants, and a representative evidence case. Results show that MedR-GAG achieves the best overall performance, with ablations confirming that generated question-specific knowledge, retrieved factual evidence, knowledge-guided completion, and adaptive document selection all contribute meaningfully to reasoning quality. The case study further illustrates that retrieved and generated passages are complementary, as retrieved documents supply factual anchors while generated documents add missing explanation and help filter distractors.