LAMMI-Pathology: A Tool-Centric Bottom-Up LVLM-Agent Framework for Molecularly Informed Medical Intelligence in Pathology
Organizations: Fudan University · Shanghai Innovation Institute · Shanghai Artificial Intelligence Laboratory · Shanghai Jiao Tong University
Abstract
The emergence of tool-calling-based agent systems introduces a more evidence-driven paradigm for pathology image analysis in contrast to the coarse-grained text-image diagnostic approaches. With the recent large-scale experimental adoption of spatial transcriptomics technologies, molecularly validated pathological diagnosis is becoming increasingly open and accessible. In this work, we propose LAMMI-Pathology (LVLM-Agent System for Molecularly Informed Medical Intelligence in Pathology), a scalable agent framework for domain-specific agent tool-calling. LAMMI-Pathology adopts a tool-centric, bottom-up architecture in which customized domain-adaptive tools serve as the foundation. These tools are clustered by domain style to form component agents, which are then coordinated through a top-level planner hierarchically, avoiding excessively long context lengths that could induce task drift. Based on that, we introduce a novel trajectory construction mechanism based on Atomic Execution Nodes (AENs), which serve as reliable and composable units for building semi-simulated reasoning trajectories that capture credible agent-tool interactions. Building on this foundation, we develop a trajectory-aware fine-tuning strategy that aligns the planner's decision-making process with these multi-step reasoning trajectories, thereby enhancing inference robustness in pathology understanding and its adaptive use of the customized toolset.
Figures & tables
| Framework | Adaptation | Planner | ACS | HR | TRR |
|---|---|---|---|---|---|
| OpenAI-Agents-SDK | PE | GPT-5 | 0.739 | 0.164 | 0.033 |
| ReACT | PE | InternVL3.5 8B | 0.798 | 0.301 | 0.000 |
| MiniCPM-V 4.5 | 0.715 | 0.353 | 0.018 | ||
| Qwen3 VL 8B Instruct | 0.705 | 0.255 | 0.036 | ||
| InternVL3.5 8B | 0.462 | 0.662 | 0.049 | ||
| MAT-Agent | LoRA+PE | MiniCPM-V 4.5 | 0.373 | 0.660 | 0.238 |
| Framework | Adaptation | Planner | TRR | TCF1 | TSS | ACS | HR |
|---|---|---|---|---|---|---|---|
| OpenAI-Agents-SDK | PE | GPT-5 | 0.025 | 0.370 | 0.861 | 0.492 | 0.147 |
| ReACT | PE | InternVL3.5 8B | 0.008 | 0.031 | 0.381 | 0.525 | 0.446 |
| MiniCPM-V 4.5 | 0.048 | 0.362 | 0.879 | 0.615 | 0.579 | ||
| Qwen3 VL 8B Instruct | 0.092 | 0.377 | 0.792 | 0.587 | 0.506 | ||
| InternVL3.5 8B | 0.054 | 0.154 | 0.655 | 0.534 | 0.733 | ||
| MAT-Agent | LoRA+PE | MiniCPM-V 4.5 | 0.171 | 0.153 | 0.743 | 0.475 | 0.757 |
| Framework | Planner | ACS | F1 | HR | TRR | |||
|---|---|---|---|---|---|---|---|---|
| Atlas | EduContent | PathCLS | Pubmed | |||||
| OpenAI-Agents-SDK | GPT-5 | 0.709 | 0.755 | 0.773 | 0.480 | 0.719 | 0.288 | 0.000 |
| ReACT | InternVL3.5 8B | 0.500 | 0.341 | 0.369 | 0.198 | 0.443 | 0.691 | 0.000 |
| MiniCPM-V 4.5 | 0.554 | 0.438 | 0.494 | 0.232 | 0.512 | 0.538 | 0.092 | |
| Qwen3 VL 8B Instruct | 0.572 | 0.433 | 0.541 | 0.288 | 0.518 | 0.483 | 0.001 | |
| InternVL3.5 8B | 0.506 | 0.349 | 0.437 | 0.257 | 0.440 | 0.726 | 0.041 | |
| Adaption | Planner | NITR=0.2 | NITR=0.5 | NITR=1.0 | |||
|---|---|---|---|---|---|---|---|
| TRR | TSS | TRR | TSS | TRR | TSS | ||
| InternVL3.5 8B | 0.000 | 0.504 | 0.000 | 0.500 | 0.000 | 0.500 | |
| PE | MiniCPM-V 4.5 | 0.027 | 0.814 | 0.050 | 0.780 | 0.085 | 0.801 |
| Qwen3 VL 8B Instruct | 0.022 | 0.720 | 0.049 | 0.839 | 0.022 | 0.820 | |
| LoRA+PE | InternVL3.5 8B | 0.230 | 0.435 | 0.312 | 0.468 | 0.411 | 0.441 |
| MiniCPM-V 4.5 | 0.282 | 0.557 | 0.327 | 0.716 | 0.386 | 0.784 | |
| Adaption | ||||||
|---|---|---|---|---|---|---|
| w/o TA | 0.602 | 0.640 | 0.660 | 0.675 | 0.683 | 0.691 |
| w/ TA | 0.715 | 0.769 | 0.796 | 0.817 | 0.830 | 0.862 |
| Tool Name | Source | Description |
| ImageAgent | ||
| BLIPTool | Model Training: 3.68M HEST ROI, 15k Visium ROI, 10K ST ROI with corresponding high-expression genes (based on RNA-seq data) | Provides genetic answers for pathology images with questions related to gene expressions. Input: text instruction/question and image name. Output: basic genetic information including high-expression genes, species, and tissue. |
| CLIPTool | Model Training: OpenCLIP ViT-H-14 fine-tuned on pathogenomics dataset (training data consistent with BLIPTool) | OpenCLIP image-text matching tool. Strictly accepts image file paths as input. Do not provide image descriptions or text; only valid paths allowed. |
| QwenVLCaptionTool | Model Training: Image-text caption pairs including PathCap 0.17M, Quilt-Instruct 0.096M, and PathGen 0.14M samples; Base model: Qwen-VL-2.5 vision-language model | Provides answers for pathology images with associated questions. Input: text instruction/question and image path. Returns model’s textual output. |
| OncoTreeTool | API: MSKCC OncoTree (oncotree.mskcc.org) | Query OncoTree knowledge graph. Input: tumor, disease, or tissue keyword. Returns upstream/downstream nodes and tissue mapping. |
| GeneAgent | ||
| Dataset | LVLM | Plan. | Orch. | ACS | TRR | TCF1 | TSS | HR | Avg. F1 |
|---|---|---|---|---|---|---|---|---|---|
| PathMMU | InternVL | ✓ | 0.441 | 0.000 | / | / | 0.700 | 0.325 | |
| MiniCPM | ✓ | 0.423 | 0.342 | / | / | 0.300 | 0.263 | ||
| Qwen-VL | ✓ | 0.554 | 0.038 | / | / | 0.375 | 0.263 | ||
| InternVL | ✓ | 0.493 | / | / | / | 0.519 | 0.329 | ||
| MiniCPM | ✓ | 0.546 | / | / | / | 0.592 | 0.307 | ||
| Qwen-VL | ✓ | 0.500 | / | / | / | 0.645 | 0.331 |
Tool-Using Vision-Language Agents
Tool-using vision-language agents combine visual and language models with external tools to gather evidence, act, and solve multi-step tasks.
See all 139 papers