Patho-AgenticRAG: Towards Multimodal Agentic Retrieval-Augmented Generation for Pathology VLMs via Reinforcement Learning

Wenchuan Zhang, Jingru Guo, Hengzhe Zhang, Penghao Zhang, Jie Chen, Shuwan Zhang, Yuhao Yi, Hong BuarXiv 2025 · DOI

Abstract

Pathology requires high-precision visual and textual reasoning, yet Vision-Language Models (VLMs) frequently suffer from hallucinations in this domain. We present Patho-AgenticRAG, a multi-agent framework that enables VLMs to autonomously retrieve and reason over a massive corpus of 200,000+ authoritative pathology textbook pages. By combining a novel multimodal fusion retrieval formula with reinforcement learning via Group Relative Policy Optimization (GRPO), Patho-AgenticRAG significantly reduces factual errors. Our system achieves state-of-the-art performance on benchmarks like PathMMU (78.32% accuracy) and MedXpertQA (60.00%), demonstrating a robust capability for complex clinical diagnosis.

Introduction

Pathology is a "high-stakes" medical field where the cost of error is immense. Unlike general-purpose image analysis, pathology slides feature ultra-high resolution and nuanced cellular structures where minute details dictate a diagnosis. Current VLMs often generate confident but factually incorrect reports—a phenomenon known as hallucination. While Retrieval-Augmented Generation (RAG) offers a potential solution, existing medical RAG systems are often static, text-only, or lack the context-aware intelligence required for multi-step clinical reasoning.

Methodology

Patho-AgenticRAG introduces three core innovations to bridge the gap between static retrieval and expert-level reasoning.

First, the system utilizes a massive Multimodal Knowledge Base. Over 600 authoritative pathology textbooks were processed, resulting in approximately 200,000 pages converted into image-text embeddings using the ColQwen2 model. This allows for simultaneous searching of visual patterns and textual descriptions.

Second, the framework employs an Agentic Workflow. An Agentic Router decomposes complex queries into manageable sub-tasks. A specialized VRAG Agent then performs multi-turn retrieval, utilizing a new Multimodal Fusion Formula. This formula prioritizes "concentrated attention" by using kurtosis to identify documents where specific query tokens match strongly, rather than those with broad, uniform similarity.

Overview of the Patho-AgenticRAG framework, comparing it to traditional RAG and detailing the reinforcement learning-based training pipeline.

Third, the router's decision-making logic is refined through Reinforcement Learning with Group Relative Policy Optimization (GRPO). This training enables the agent to make discrete, intelligent choices: determining when to invoke RAG, selecting tissue-specific classifiers, or reformulating queries for better retrieval. The authors found that a "cold start" approach—using a small amount of Supervised Fine-Tuning (SFT) followed by GRPO—provided the optimal balance between structured output and reasoning flexibility.

Evaluation and Results

The model was evaluated on several rigorous benchmarks, including PathMMU, Path-VQA, Quilt-VQA, and subsets of MedXpertQA and OmniMedVQA. Patho-AgenticRAG consistently outperformed both general-purpose VLMs (e.g., InternVL2) and domain-specific models (e.g., Patho-R1).

Performance comparison of Patho-AgenticRAG against state-of-the-art general and domain-specific VLMs on the PathMMU benchmarks.

On the PathMMU-test benchmark, it achieved 78.32% accuracy, nearly doubling the performance of many general VLMs. In knowledge-intensive tasks like MedXpertQA, accuracy jumped to 60.00% from the baseline's 22.00%. The retrieval mechanism itself proved highly efficient; the Patho-Fusion method achieved a Recall@1 of 0.720, significantly outperforming standard text or image retrieval baselines. Furthermore, the system maintains a high retrieval speed of approximately 0.39 seconds per page.

Discussion and Conclusion

A key insight from this work is the critical role of multimodal integration; relying solely on image retrieval in pathology can be counterproductive due to the extreme domain expertise required to interpret visual features without textual context. While the multi-agent reasoning process increases computational overhead compared to single-model inference, the gains in diagnostic accuracy and reduced hallucinations justify the cost in clinical settings.

Future work will focus on expanding the database scope beyond textbooks to include real-time clinical guidelines and integrating knowledge graphs to further enhance the traceability of the agent's reasoning paths.

Summary updated

BibTeX
@misc{zhang2025patho,
  author = {Wenchuan Zhang and Jingru Guo and Hengzhe Zhang and Penghao Zhang and Jie Chen and Shuwan Zhang and Zhang Zhang and Yuhao Yi and Hong Bu},
  title = {{Patho-AgenticRAG: Towards Multimodal Agentic Retrieval-Augmented Generation for Pathology VLMs via Reinforcement Learning}},
  year = {2025},
  eprint = {2508.02258},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.02258},
}
Figure