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.
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).
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