Discovering Pathology Rationale and Token Allocation for Efficient Multimodal Pathology Reasoning

Zhe Xu, Cheng Jin, Yihui Wang, Ziyi Liu, Hao ChenarXiv 2025 · DOI

Introduction

Pathology serves as the "gold standard" in clinical diagnosis, yet it presents significant challenges for artificial intelligence. Current Multimodal Large Language Models (MLLMs) typically struggle with two primary issues: the "reasoning gap" and the "efficiency wall." The reasoning gap refers to the tendency of models trained via Supervised Fine-Tuning (SFT) to rely on superficial correlations rather than the structured, step-by-step morphological logic used by human pathologists. The efficiency wall arises from the massive scale of pathological images—often containing millions of pixels—which leads to excessive computational costs when processed with static token budgets.

Methodology: The Bilateral RL Framework

To address these challenges, researchers introduced a "bilateral" reinforcement learning framework. This system utilizes Group Relative Policy Optimization (GRPO) to train two synergistic branches: the Task Performer and the Token Allocator.

Overview of the Training and Inference Phases for the bilateral RL framework.

The Task Performer Branch

This branch is designed to bridge the reasoning gap. Instead of directly outputting a diagnosis, it is trained to generate a "pathology rationale" within <think> tags. This internal chain of thought allows the model to identify specific histological features—such as vacuolated cytoplasm or irregular nuclear contours—before arriving at a final answer. Importantly, this reasoning is learned implicitly; the model is rewarded when its rationale leads to a correct diagnosis, effectively discovering medical logic from raw labels.

The Token Allocator Branch

The Token Allocator acts as a resource manager to overcome the efficiency wall. It evaluates the input image and the specific task (e.g., simple detection vs. complex subtyping) to dynamically determine the optimal number of image tokens. By reducing the token budget for simple cases and increasing it for complex ones, the framework achieves significant computational savings without sacrificing accuracy.

Comparison of SFT and GRPO training objectives, highlighting the token length and prediction accuracy rewards.

Datasets and Evaluation

The framework was rigorously tested across six public pathology datasets:

  • PathMMU & PathVQA: Focused on multimodal reasoning and general question answering.
  • UniToPatho & ESCA: Targeted at colorectal polyp and esophageal cancer subtyping.
  • CRAG & DigestPath2019 Tissue: Centered on gland and lesion detection and segmentation.

Key Results

The bilateral RL approach yielded substantial improvements over baseline models:

  • Performance Gains: The system achieved an average absolute performance boost of 41.7 points compared to the base Qwen2.5-VL-7B model.
  • Efficiency: Dynamic token allocation resulted in a 70.3% reduction in inference costs.
  • Detection Accuracy: On the DigestPath2019 dataset, lesion detection accuracy (mAP) soared from a 10.6% baseline to 73.3%.
  • Expert-Level Reasoning: On specific subsets of the PathMMU dataset, the model's structured reasoning allowed it to outperform human experts, demonstrating its ability to move beyond "black box" predictions.

Conclusion and Future Work

This research demonstrates that MLLMs can be taught to reason and manage resources efficiently through reinforcement learning. By discovering pathology rationales and optimizing token allocation, the framework provides a more transparent and cost-effective path for AI in clinical pathology. Future work will explore scaling the model parameters beyond 7B and extending the framework to handle Whole-Slide Images (WSIs), which present even greater spatial reasoning challenges than the Regions of Interest (ROIs) studied here.

Summary updated

BibTeX
@misc{xu2025discovering,
  author = {Zhe Xu and Cheng Jin and Yihui Wang and Ziyi Liu and Hao Chen},
  title = {{Discovering Pathology Rationale and Token Allocation for Efficient Multimodal Pathology Reasoning}},
  year = {2025},
  eprint = {2505.15687},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.15687},
}
Figure