PathVLM-R1: A Reinforcement Learning-Driven Reasoning Model for Pathology Visual-Language Tasks

Jianyu Wu, Hao Yang, Xinhua Zeng, Guibing He, Zhiyu Chen, Zihui Li, Xiaochuan Zhang, Yangyang Ma, Run Fang, Yang LiuarXiv 2025 · DOI

Introduction

In medical pathology, diagnostic accuracy is inseparable from the underlying reasoning. While Vision-Language Models (VLMs) have shown promise in identifying diseases from images, they often operate as "black boxes." This lack of transparency leads to "shortcut learning," where models memorize patterns rather than medical principles, and "right for the wrong reasons" outputs. PathVLM-R1 addresses these challenges by introducing a "DeepSeek-R1 style" reasoning framework to the pathology domain.

Methodology: Staged Post-Training

PathVLM-R1 is built upon the Qwen2.5-VL-7B-Instruct base model through a specialized staged pipeline designed to inject domain knowledge and optimize logical processing.

The staged training pipeline from base model to PathVLM-R1.

The process involves:

  1. Knowledge Injection (SFT): Initial Supervised Fine-Tuning on 3,000 pathology data points to create the foundational "Alpha" model.
  2. Group Relative Policy Optimization (GRPO): An efficient RL method that compares groups of responses to estimate rewards, reducing computational overhead by 50% compared to traditional PPO.
  3. Dual-Reward Mechanism: The model is optimized using both an Outcome Accuracy Reward (rule-based) and a Cross-modal Process Reward. For the latter, GPT-4o evaluates the "thinking chain" for integrity (feature analysis and option elimination) and medical rationality.

Key Results and Reasoning Quality

The integration of process-based rewards significantly enhances both accuracy and the quality of the model's internal logic. PathVLM-R1 achieved a 65.55% accuracy on the PathMMU benchmark, outperforming its 7B base (51.55%) and even a much larger 32B model (54.20%).

Comparison of reasoning chains between the accuracy-only Beta model and the process-rewarded PathVLM-R1.

As shown in the comparison above, PathVLM-R1 demonstrates a more rigorous logical flow, correctly identifying "Pleomorphism" by comprehensively considering variations in both nuclear size and shape, whereas earlier iterations focused narrowly on single factors.

Generalization and Efficiency

Beyond pathology, PathVLM-R1 showed a 17.3% average improvement in transfer performance across other medical modalities, including a 23.41% boost in dermoscopy. Remarkably, these gains were achieved using only 1,000 samples for the reinforcement learning phase, highlighting the model's extreme data efficiency.

Conclusion

PathVLM-R1 proves that for specialized medical tasks, reasoning-driven reinforcement learning is more impactful than simply increasing parameter counts. By forcing models to "think" through a dual-reward system, we can create more reliable, transparent, and accurate AI assistants for precision medicine.

Summary updated

BibTeX
@misc{wu2025pathvlm,
  author = {Jianyu Wu and Hao Yang and Xinhua Zeng and Guibing He and Zhiyu Chen and Zihui Li and Xiaochuan Zhang and Yangyang Ma and Run Fang and Yang Liu},
  title = {{PathVLM-R1: A Reinforcement Learning-Driven Reasoning Model for Pathology Visual-Language Tasks}},
  year = {2025},
  eprint = {2504.09258},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.09258},
}
Figure