超越最终答案:基于 H&E 与 mIF 的可解释肿瘤免疫微环境推理

arXiv cs.AI 论文

摘要

该论文提出 HERMES,一个 40 亿参数的 R1 风格多模态大语言模型,能够对配对的 H&E 与多重免疫荧光图像进行联合推理,以解读肿瘤免疫微环境。模型采用过程奖励进行训练,依据细胞级别的真值对每个推理步骤进行验证,在四项结直肠癌任务上平均准确率达到 84.5%,优于领先的闭源和开源多模态大模型。

arXiv:2611.26794v1 Announce Type: new Abstract: Readouts of the tumor immune microenvironment (TIME), such as CD8+ T-cell density, intra-epithelial infiltration and the Ki67 index, combine tissue architecture from H&E with cell phenotypes from multiplex immunofluorescence (mIF). Multimodal large language models (MLLMs) could automate these readouts with an explanation, but two gaps remain. Pathology MLLMs read H&E alone, while these readouts need the cell phenotypes that mIF measures. And their reasoning has no step-level truth to be checked against, so R1-style reinforcement learning rewards only the final answer and leaves the reasoning unverified. Same-section H&E and mIF provide what both gaps lack: mIF measures every cell without manual annotation, which gives cell-level ground truth for each step that clinical guidelines prescribe, from delineating a tissue compartment to counting and normalizing the marker-positive cells within it. We therefore present HERMES (H&E-mIF Reasoning with Multimodal Evidence Supervision), an R1-style MLLM that reasons jointly over paired H&E and mIF in guideline steps and is trained with a process reward that checks every stated quantity against this truth. Across four field-level TIME tasks in colorectal cancer, HERMES (4B) reaches an average accuracy of 84.5%, compared with 74.7% for the strongest of twelve proprietary, general, medical and pathology MLLMs, and a higher share of its intermediate quantities is correct than for the strongest open-weight baseline. Without the process reward, reinforcement learning barely improves on supervised fine-tuning (80.0% vs. 78.8%) and fewer stated quantities are correct; editing a decisive stated quantity changes the answer as implied in all 885 test questions. Without retraining, it keeps the highest average accuracy on an external cohort imaged with CODEX (76.4% vs. 67.3%) and on head and neck cancer, a cancer type absent from training (76.7% vs. 72.5%).
查看原文
查看缓存全文

缓存时间: 2026/11/23 09:14

# Beyond Final Answers: Interpretable Tumor Immune Microenvironment Reasoning from H&E and mIF
Source: [https://arxiv.org/html/2611.26794](https://arxiv.org/html/2611.26794)
Kexin GengAffiliation:Rice UniversityHanwen XuAffiliation:University of Pennsylvania†Co\-last authorsWei QiuAffiliation:Rice University

###### Abstract

Readouts of the tumor immune microenvironment \(TIME\), such as CD8\+T\-cell density, intra\-epithelial infiltration and the Ki67 index, combine tissue architecture from H&E with cell phenotypes from multiplex immunofluorescence \(mIF\)\. Multimodal large language models \(MLLMs\) could automate these readouts with an explanation, but two gaps remain\. Pathology MLLMs read H&E alone, while these readouts need the cell phenotypes that mIF measures\. And their reasoning has no step\-level truth to be checked against, so R1\-style reinforcement learning rewards only the final answer and leaves the reasoning unverified\. Same\-section H&E and mIF provide what both gaps lack: mIF measures every cell without manual annotation, which gives cell\-level ground truth for each step that clinical guidelines prescribe, from delineating a tissue compartment to counting and normalising the marker\-positive cells within it\. We therefore present HERMES \(H&E–mIFReasoning withMultimodalEvidenceSupervision\), an R1\-style MLLM that reasons jointly over paired H&E and mIF in guideline steps, each naming the modality it reads, and is trained with a process reward that checks every stated quantity against this truth\. Across four field\-level TIME tasks in colorectal cancer, the 4B\-parameter HERMES reaches an average accuracy of 84\.5%, compared with 74\.7% for the strongest of twelve proprietary, general, medical and pathology MLLMs, and a higher share of its intermediate quantities is correct than for the strongest open\-weight baseline\. The process reward is what makes the stated reasoning correct: without it, reinforcement learning barely improves on supervised fine\-tuning \(80\.0% vs\. 78\.8%\) and fewer stated quantities are correct, and the answers follow from the stated quantities, changing as implied in all 885 test questions when a decisive quantity is edited\. Without retraining, it keeps the highest average accuracy on an external cohort imaged with CODEX \(76\.4% vs\. 67\.3%\) and on head and neck cancer, a cancer type absent from training \(76\.7% vs\. 72\.5%\)\.

![[Uncaptioned image]](https://arxiv.org/html/2611.26794v1/figs/teaser.png)

Figure 1:HERMES \(4B\) vs\. leading MLLMs on held\-out Orion patients\. Density, Regions and Ki67: accuracy \(%\); CD8: clinical\-grade agreement \(κ×100\\kappa\\times 100\)\. Full results in[Tab\.3](https://arxiv.org/html/2611.26794#S1.T3)\.
## 1Introduction

![Refer to caption](https://arxiv.org/html/2611.26794v1/HERMES_illustrated_final.png)Figure 2:Overview of HERMES\. \(1\) A same\-section H&E and mIF field\. \(2\) Guideline\-structured reasoning: compartment and nuclei on H&E, marker\-positive cells on mIF, then the readout\. \(3\) Training traces are built from the cell\-level ground truth \(cell table, epithelial Pan\-CK mask\), which the model never sees\. Stage 1: SFT of Qwen3\.5\-4B with LoRA; stage 2: GRPO with format, answer and process rewards, the last checking each stated quantity against the truth \(✓: within tolerance\)\. Bottom: four tasks, evaluated on Orion and two external cohorts against proprietary and open\-weight MLLMs\.Characterizing the tumor immune microenvironment \(TIME\) is a fundamental task in computational pathology, as it shapes how colorectal cancers progress and respond to therapy\[[2](https://arxiv.org/html/2611.26794#bib.bib35),[10](https://arxiv.org/html/2611.26794#bib.bib38)\]\. The readouts used in practice quantify specific cells in specific tissue compartments: the Immunoscore is built on the densities of CD3\+and CD8\+T cells in the tumor and at its margin\[[11](https://arxiv.org/html/2611.26794#bib.bib37),[41](https://arxiv.org/html/2611.26794#bib.bib3)\], tumor\-infiltrating lymphocytes are scored as a share of the stromal area\[[45](https://arxiv.org/html/2611.26794#bib.bib5),[18](https://arxiv.org/html/2611.26794#bib.bib39)\], and the Ki67 index is the share of*tumor*nuclei that are Ki67\-positive\[[9](https://arxiv.org/html/2611.26794#bib.bib40),[39](https://arxiv.org/html/2611.26794#bib.bib6)\]\. Location matters as much as number: the same count of cytotoxic T cells indicates an inflamed tumor when they enter the epithelium and an immune\-excluded one when they are held back in the stroma\[[11](https://arxiv.org/html/2611.26794#bib.bib37),[4](https://arxiv.org/html/2611.26794#bib.bib36)\]\.

While H&E provides the tissue architecture \(where the epithelium ends and the stroma begins\), multiplex immunofluorescence \(mIF\) provides the protein identity of each cell \(which cells are CD8\+or Ki67\+\)\. The two modalities offer complementary views of the same tissue, and neither suffices on its own: H&E cannot tell a CD8\+T cell from other lymphocytes, and mIF without an epithelial marker cannot tell a tumor nucleus from a stromal one\. Platforms that image H&E and mIF on the*same*section now produce such paired data at scale\[[29](https://arxiv.org/html/2611.26794#bib.bib41),[32](https://arxiv.org/html/2611.26794#bib.bib1),[47](https://arxiv.org/html/2611.26794#bib.bib2)\]\. Multimodal large language models \(MLLMs\) could turn these data into clinical readouts and explain their answers in language a pathologist can follow\. However, building such a model presents two key challenges:

1\. Reasoning jointly over H&E and mIF\.General and medical\[[34](https://arxiv.org/html/2611.26794#bib.bib49),[54](https://arxiv.org/html/2611.26794#bib.bib50),[48](https://arxiv.org/html/2611.26794#bib.bib12)\]and pathology MLLMs\[[53](https://arxiv.org/html/2611.26794#bib.bib52),[49](https://arxiv.org/html/2611.26794#bib.bib10),[52](https://arxiv.org/html/2611.26794#bib.bib11),[62](https://arxiv.org/html/2611.26794#bib.bib7)\]are trained on H&E or natural images and have not learned to read mIF together with H&E\. We therefore structure the reasoning after clinical scoring guidelines: each step names the modality it reads and states one quantity, with the compartment and nuclei taken from H&E, the marker\-positive cells from mIF, and the readout computed from them\.

2\. Supervising the reasoning, not only the answer\.Stated reasoning need not reflect how an answer was produced\[[55](https://arxiv.org/html/2611.26794#bib.bib27),[28](https://arxiv.org/html/2611.26794#bib.bib28)\], and R1\-style reinforcement learning\[[16](https://arxiv.org/html/2611.26794#bib.bib8),[51](https://arxiv.org/html/2611.26794#bib.bib9)\], which has improved medical MLLMs\[[27](https://arxiv.org/html/2611.26794#bib.bib21),[42](https://arxiv.org/html/2611.26794#bib.bib22),[62](https://arxiv.org/html/2611.26794#bib.bib7)\], rewards only the final answer\. In our experiments, the strongest open\-weight baseline states only about a third of the quantities a question requires, and only 16% of the required quantities are correct\. Process supervision has been effective for mathematical reasoning\[[56](https://arxiv.org/html/2611.26794#bib.bib25),[31](https://arxiv.org/html/2611.26794#bib.bib26),[59](https://arxiv.org/html/2611.26794#bib.bib55)\], but needs the truth of every step, which medical VQA has lacked\. Same\-section imaging provides exactly this: because every cell is measured in both modalities, cell tables and a Pan\-CK epithelial mask give a measured value for every quantity a pathologist would state on the way to an answer\. We hypothesize that rewarding each stated quantity against this cell\-level truth makes the reasoning a target that can be learned and verified\.

To this end, we introduce HERMES \(H&E–mIFReasoning withMultimodalEvidenceSupervision\) \([Fig\.2](https://arxiv.org/html/2611.26794#S1.F2)\)\. HERMES receives an H&E image and a marker\-specific mIF image of the same field and answers four questions that mirror clinical readouts and cover quantitative \(CD8\+density in a compartment; Ki67 index\), localization \(boxing intra\-epithelial CD8\+infiltrates\) and attribution \(whether Ki67\+cells are mainly epithelial\) reasoning\. We first fine\-tune a 4B\-parameter MLLM on guideline\-structured reasoning traces built from the measurements, then train it with GRPO\[[51](https://arxiv.org/html/2611.26794#bib.bib9)\]using a reward for the final answer plus a process reward that checks each stated quantity against the cell\-level truth, under a tolerance that tightens during training\. On held\-out patients of the Orion cohort\[[32](https://arxiv.org/html/2611.26794#bib.bib1)\], HERMES reaches 84\.5% average accuracy, compared with at most 74\.7% for twelve proprietary, general, medical and pathology MLLMs \([Fig\.1](https://arxiv.org/html/2611.26794#S0.F1)\), and 66% of its intermediate quantities are correct, compared with 16% for the strongest open\-weight baseline\. Without the process reward, the same reinforcement learning barely improves on supervised fine\-tuning \(80\.0% vs\. 78\.8%\), and fewer stated quantities are correct\.

Table 1:Training comparison of MLLM families \(models in[Tab\.3](https://arxiv.org/html/2611.26794#S1.T3)\)\.✓: yes;✗: no or not reported;△\\triangle: pathology among other medical domains\.To summarize, our contributions are \(1\) guideline\-structured reasoning for TIME readouts, which turns three scoring rules of clinical practice, the compartment area as the denominator\[[45](https://arxiv.org/html/2611.26794#bib.bib5),[18](https://arxiv.org/html/2611.26794#bib.bib39)\], CD8\+cells as a density\[[11](https://arxiv.org/html/2611.26794#bib.bib37),[41](https://arxiv.org/html/2611.26794#bib.bib3)\]and the Ki67 index over tumor nuclei only\[[9](https://arxiv.org/html/2611.26794#bib.bib40),[39](https://arxiv.org/html/2611.26794#bib.bib6)\], into a fixed sequence of steps, each reading one modality and stating one quantity, so that a pathologist can audit every step and same\-section H&E and mIF give every step a measurable truth; \(2\) HERMES, an MLLM trained with reinforcement learning for TIME interpretation from paired H&E and mIF, which learns this structure from traces filled with the cell\-level truth and is trained with a process reward that verifies every stated quantity \([Tab\.1](https://arxiv.org/html/2611.26794#S1.T1)\); \(3\) the first reasoning benchmark on same\-section H&E and mIF, with four tasks tied to clinical readouts, cell\-level truth for every intermediate quantity, and external cohorts from a different imaging platform and a different cancer type; \(4\) a series of experiments showing higher answer accuracy and clinical\-grade agreement than twelve MLLMs and the highest accuracy without retraining on a CODEX cohort\[[47](https://arxiv.org/html/2611.26794#bib.bib2)\]\(76\.4% vs\. 67\.3%\) and on head and neck cancer, with about 190 output tokens against 1\.2k–6\.5k for the strongest open\-weight baselines; and \(5\) a multi\-level verification of the reasoning: each stated quantity is checked against the cell\-level truth, answer accuracy rises with their correctness, editing a stated quantity changes the answer as implied, and removing CD8\+cells from the mIF image lowers the stated count\.

## 2Related Work

#### Vision\-language models for pathology\.

Contrastive and foundation models learn strong H&E representations \(PLIP\[[21](https://arxiv.org/html/2611.26794#bib.bib16)\], Quilt\-1M\[[22](https://arxiv.org/html/2611.26794#bib.bib17)\], CONCH\[[37](https://arxiv.org/html/2611.26794#bib.bib15)\], UNI\[[6](https://arxiv.org/html/2611.26794#bib.bib18)\], Prov\-GigaPath\[[61](https://arxiv.org/html/2611.26794#bib.bib19)\], Virchow\[[58](https://arxiv.org/html/2611.26794#bib.bib48)\]\), and generative assistants answer free\-form questions on them \(LLaVA\-Med\[[30](https://arxiv.org/html/2611.26794#bib.bib14)\], Med\-PaLM M\[[54](https://arxiv.org/html/2611.26794#bib.bib50)\], HuatuoGPT\-Vision\[[5](https://arxiv.org/html/2611.26794#bib.bib51)\], PathAsst\[[53](https://arxiv.org/html/2611.26794#bib.bib52)\], PathChat\[[36](https://arxiv.org/html/2611.26794#bib.bib13)\], Quilt\-LLaVA\[[49](https://arxiv.org/html/2611.26794#bib.bib10)\], PathGen\-LLaVA\[[52](https://arxiv.org/html/2611.26794#bib.bib11)\], MedGemma\[[48](https://arxiv.org/html/2611.26794#bib.bib12)\], SlideChat\[[7](https://arxiv.org/html/2611.26794#bib.bib53)\]\), mostly built on the LLaVA recipe\[[34](https://arxiv.org/html/2611.26794#bib.bib49)\]\. Trained on H&E and human captions, they neither read mIF nor state quantities that can be checked against the tissue; HERMES reads both images and states every intermediate quantity\.

#### Reinforcement learning for multimodal reasoning\.

Chain\-of\-thought prompting\[[60](https://arxiv.org/html/2611.26794#bib.bib20)\], RL from human feedback\[[40](https://arxiv.org/html/2611.26794#bib.bib54)\]and RL with verifiable rewards \(DeepSeek\-R1\[[16](https://arxiv.org/html/2611.26794#bib.bib8)\], GRPO\[[51](https://arxiv.org/html/2611.26794#bib.bib9)\]\) improve reasoning, and have been carried over to perception \(Visual\-RFT\[[35](https://arxiv.org/html/2611.26794#bib.bib24)\], Vision\-R1\[[20](https://arxiv.org/html/2611.26794#bib.bib23)\]\) and medicine \(Med\-R1\[[27](https://arxiv.org/html/2611.26794#bib.bib21)\], MedVLM\-R1\[[42](https://arxiv.org/html/2611.26794#bib.bib22)\], Patho\-R1\[[62](https://arxiv.org/html/2611.26794#bib.bib7)\]\)\. Their rewards check only format and final answer\. Process supervision\[[56](https://arxiv.org/html/2611.26794#bib.bib25),[31](https://arxiv.org/html/2611.26794#bib.bib26),[59](https://arxiv.org/html/2611.26794#bib.bib55)\]constrains the steps but needs human step labels or a learned reward model; same\-section H&E and mIF give the truth of every step directly, so HERMES receives an exact process reward without either\.

#### Histology and spatial proteomics\.

Multiplexed imaging \(CyCIF\[[33](https://arxiv.org/html/2611.26794#bib.bib30)\], CODEX\[[13](https://arxiv.org/html/2611.26794#bib.bib29)\], IMC\[[12](https://arxiv.org/html/2611.26794#bib.bib42)\], MIBI\[[25](https://arxiv.org/html/2611.26794#bib.bib43)\]; review in\[[29](https://arxiv.org/html/2611.26794#bib.bib41)\]\) measures tens of proteins per cell, turned into cell tables by segmentation\[[15](https://arxiv.org/html/2611.26794#bib.bib44),[14](https://arxiv.org/html/2611.26794#bib.bib45)\], and datasets now pair it with H&E of the same section \(Orion\[[32](https://arxiv.org/html/2611.26794#bib.bib1)\]\) or provide large CODEX cohorts\[[47](https://arxiv.org/html/2611.26794#bib.bib2)\]\. Prior work predicts markers from H&E, following virtual staining\[[43](https://arxiv.org/html/2611.26794#bib.bib31)\]\(MIPHEI\[[1](https://arxiv.org/html/2611.26794#bib.bib34)\], GigaTIME\[[57](https://arxiv.org/html/2611.26794#bib.bib33)\]\), or predicts single readouts from H&E such as TIL maps\[[46](https://arxiv.org/html/2611.26794#bib.bib32)\], microsatellite instability\[[24](https://arxiv.org/html/2611.26794#bib.bib47)\]or cancer presence\[[3](https://arxiv.org/html/2611.26794#bib.bib46)\], without an auditable rationale\. We use measured mIF as input and the cell tables as supervision for reasoning towards clinical readouts: CD8 density as in the Immunoscore\[[11](https://arxiv.org/html/2611.26794#bib.bib37),[41](https://arxiv.org/html/2611.26794#bib.bib3)\], compartment\-resolved TILs\[[45](https://arxiv.org/html/2611.26794#bib.bib5),[18](https://arxiv.org/html/2611.26794#bib.bib39)\]and the Ki67 index\[[39](https://arxiv.org/html/2611.26794#bib.bib6)\]\.

#### Faithful and verifiable reasoning\.

Stated chains of thought need not reflect how a model reached its answer\[[23](https://arxiv.org/html/2611.26794#bib.bib58),[55](https://arxiv.org/html/2611.26794#bib.bib27),[28](https://arxiv.org/html/2611.26794#bib.bib28)\], and faithfulness is usually probed indirectly or enforced by executing the chain\[[38](https://arxiv.org/html/2611.26794#bib.bib59)\]; in high\-stakes settings, interpretable reasoning is preferable to post\-hoc explanation\[[44](https://arxiv.org/html/2611.26794#bib.bib60)\]\.

## 3Method

Table 2:External cohorts without retraining: Schürch \(colorectal cancer, CODEX\) and, as a new cancer type, head and neck squamous cell carcinoma \(HNSCC, Haist*et al*\.\[[17](https://arxiv.org/html/2611.26794#bib.bib4)\]\)\. Metrics as in[Tab\.3](https://arxiv.org/html/2611.26794#S1.T3)\.### 3\.1Data and ground truth

![Refer to caption](https://arxiv.org/html/2611.26794v1/figs/gt_example.png)Figure 3:Ground truth and HERMES’s reasoning on one held\-out field for each of the four tasks: quantitative \(a, c\), localization \(b\) and attribution \(d\)\. Top: H&E; middle: mIF; bottom: HERMES’s reasoning, with the truth in brackets\.#### Cohorts and fields\.

We use the Orion colorectal cancer cohort\[[32](https://arxiv.org/html/2611.26794#bib.bib1)\], in which each whole\-slide section is imaged with cyclic immunofluorescence and then H&E\-stained and scanned, so that both modalities show the same cells\. Patients are split 30/5/5 into training, validation and test sets\. Each question refers to one field of112×112​μ112\\times 112\\,\\mum \(0\.0125 mm2\)\. The model receives two images of the field at448×448448\\times 448pixels: the H&E crop and a pseudo\-coloured mIF image that shows only the markers the question needs \(CD3e in red, CD8a in green and Hoechst in blue for the immune tasks, so that CD8\+T cells appear yellow; Ki67 in red and Hoechst in blue for the proliferation tasks\)\. Each marker is rendered with a fixed gain calibrated on training fields\. No epithelial marker is shown, so the model has to find the epithelium in the H&E image\.

#### Ground truth\.

All truth is computed from the cell table and the mIF channels and a tissue mask from H&E\. The epithelium, which holds the tumor cells in these carcinomas, is a mask derived from the Pan\-CK channel \(smoothed Pan\-CK signal, joined with small discs around Pan\-CK\+cells and cleaned morphologically\)\. Tissue is detected from H&E; empty space is the area that is neither tissue nor epithelium, and stroma is the remaining tissue\. A cell is epithelial if its nucleus lies inside the mask\. A cell is marker\-positive if it is called positive in the cell table \(per\-marker mixture\-model calls, as released with\[[1](https://arxiv.org/html/2611.26794#bib.bib34)\]\)*and*is visible in the rendered image, so that every positive cell in the truth can be seen by the model; a CD8\+T cell is positive for both CD3e and CD8a\.

#### External cohorts\.

To test transfer across imaging platforms, we use the colorectal cancer tissue microarray of Schürch*et al*\.\[[47](https://arxiv.org/html/2611.26794#bib.bib2)\], imaged with CODEX and H&E\-stained afterwards \(35 patients\)\. We register the two modalities on each core, render the mIF images with the same color scheme and a calibration fitted on this cohort, and call Ki67 positivity by an Otsu threshold on the cell\-level intensities\. To test transfer to a new cancer type, we also use the head and neck squamous cell carcinoma tissue microarrays of Haist*et al*\.\[[17](https://arxiv.org/html/2611.26794#bib.bib4)\], imaged with CODEX and H&E \(primary tumor regions, 76 patients\), with the same tasks and rendering and the epithelium taken from the cytokeratin channel\.

#### Ground truth by example\.

[Figure3](https://arxiv.org/html/2611.26794#S3.F3)shows the truth for one held\-out field per task\. The epithelium is the Pan\-CK mask \(orange outline\), which the model never sees; empty space \(dark grey\) is taken from H&E, and stroma is the remaining tissue\. A CD8\+T cell is CD3e\+and CD8a\+, shown yellow in mIF\. The quantities stated by HERMES lie close to the truth in each example,*e\.g*\.12 stromal CD8\+cells in 29% stroma \(truth: 12 and 29%\), giving 3,307 against 3,322 cells/mm2\.

### 3\.2Tasks: three kinds of reasoning, four tasks

Each task mirrors a readout in clinical use \(supplementary[Tab\.5](https://arxiv.org/html/2611.26794#S3.T5)\)\. We writeFFfor the field \(\|F\|=0\.0125\|F\|=0\.0125mm2\),EEfor the epithelium mask andSSfor the stroma, with area sharesfE=\|E\|/\|F\|f\_\{E\}=\|E\|/\|F\|andfS=\|S\|/\|F\|f\_\{S\}=\|S\|/\|F\|\. Celliihas nucleus positionpip\_\{i\}and is epithelial ifei=𝟏\[pi∈E\]e\_\{i\}=\\mathbf\{1\}\[p\_\{i\}\\in E\];cic\_\{i\}andkik\_\{i\}indicate a CD8\+T cell and a Ki67\+nucleus\.

Densityasks for the number of CD8\+T cells per mm2of a compartmentC∈\{E,S\}C\\in\\\{E,S\\\}, a compartment\-level counterpart of the densities behind the Immunoscore\[[41](https://arxiv.org/html/2611.26794#bib.bib3)\]:

ydens=∑ici1\[pi∈C\]fC​\|F\|\.y\_\{\\text\{dens\}\}=\\frac\{\\sum\_\{i\}c\_\{i\}\\,\\mathbf\{1\}\[p\_\{i\}\\in C\]\}\{f\_\{C\}\\,\|F\|\}\.\(1\)The area excludes empty space, and the asked compartment covers at least 15% of the field\.

Ki67 fractionasks for the share of epithelial nuclei that are Ki67\+, the Ki67 index of the International Ki67 Working Group\[[39](https://arxiv.org/html/2611.26794#bib.bib6)\], which counts tumour nuclei only:

yfrac=100⋅∑iki​ei∑iei%,y\_\{\\text\{frac\}\}=100\\cdot\\frac\{\\sum\_\{i\}k\_\{i\}\\,e\_\{i\}\}\{\\sum\_\{i\}e\_\{i\}\}\\ \\%,\(2\)on fields with at least 10 epithelial nuclei\.

Ki67 sourceasks whether the Ki67\+cells are mainly epithelial, the attribution a scorer must make before computing the Ki67 index, since only tumor nuclei count\. WithnE=∑iki​ein\_\{E\}=\\sum\_\{i\}k\_\{i\}e\_\{i\}andnO=∑iki​\(1−ei\)n\_\{O\}=\\sum\_\{i\}k\_\{i\}\(1\-e\_\{i\}\),

ysrc=\{epithelialnE\>nO,non\-epithelialotherwise,y\_\{\\text\{src\}\}=\\begin\{cases\}\\text\{epithelial\}&n\_\{E\}\>n\_\{O\},\\\\ \\text\{non\-epithelial\}&\\text\{otherwise,\}\\end\{cases\}\(3\)on fields withnE\+nO≥5n\_\{E\}\+n\_\{O\}\\geq 5and a clear majority,max⁡\(nE,nO\)≥0\.7​\(nE\+nO\)\\max\(n\_\{E\},n\_\{O\}\)\\geq 0\.7\\,\(n\_\{E\}\+n\_\{O\}\)\. Among non\-epithelial fields we take first those that still contain at least 10 epithelial nuclei\.

Regionsasks for boxes around the intra\-epithelial CD8\+T cellsP=\{pi:ci​ei=1\}P=\\\{p\_\{i\}:c\_\{i\}e\_\{i\}=1\\\}, or “none” ifPPis empty\. The true regions are the connected componentsG1,…,GmG\_\{1\},\\dots,G\_\{m\}of the graph onPPthat links two cells closer than 20μ\\mum \(single linkage\), each boxed with a marginδ=5​μ\\delta=5\\,\\mum:

bj=\[minp∈Gj⁡u−δ,minp∈Gj⁡v−δ,maxp∈Gj⁡u\+δ,maxp∈Gj⁡v\+δ\],b\_\{j\}=\\bigl\[\\min\_\{p\\in G\_\{j\}\}u\-\\delta,\\ \\min\_\{p\\in G\_\{j\}\}v\-\\delta,\\ \\max\_\{p\\in G\_\{j\}\}u\+\\delta,\\ \\max\_\{p\\in G\_\{j\}\}v\+\\delta\\bigr\],\(4\)wherep=\(u,v\)p=\(u,v\)and coordinates are on a 0–1000 image scale\.

Quantitative tasks therefore count marker\-positive cells within an H&E\-defined compartment and normalise them by area or by the number of epithelial nuclei, localization finds where intra\-epithelial marker\-positive cells cluster, and attribution decides which compartment the marker\-positive cells mainly belong to\. The data contain 8,000 questions for supervised fine\-tuning, 6,400 for reinforcement learning, 5,302 for validation and 5,774 for testing; model comparisons use a seeded subset of 250 test questions per task\.

### 3\.3Guideline\-structured reasoning

Rather than letting the model reason freely, we give it a short reasoning template that adopts three rules from clinical scoring\. First, a compartment’s area is its denominator, following TIL scoring\[[45](https://arxiv.org/html/2611.26794#bib.bib5)\], which reports TILs as a share of stromal area and leaves out necrosis and artefacts: epithelium and stroma are delineated on H&E and empty space is left out\. Second, CD8\+T cells are reported as a density, the quantity the Immunoscore is built on\[[41](https://arxiv.org/html/2611.26794#bib.bib3)\], here per mm2of the compartment\. Third, the Ki67 index follows the International Ki67 in Breast Cancer Working Group\[[39](https://arxiv.org/html/2611.26794#bib.bib6)\]: staining intensity is not interpreted, and the index is the share of positive cells among invasive cancer cells\. Every step names the image it reads from and states one quantity \([Fig\.3](https://arxiv.org/html/2611.26794#S3.F3), bottom\)\. For Density, the model reads the epithelial, stromal and empty shares of the field from H&E, counts the CD3\+CD8\-cells it excludes and the CD8\+cells in the asked compartment from mIF, and divides the count by the compartment area\. For Regions, it states the epithelial share, the excluded CD3\+CD8\-cells, and the CD8\+cells inside and outside the epithelium with their positions, and then groups the intra\-epithelial cells into regions\. For Ki67 fraction and Ki67 source, it states the epithelial share and the number of epithelial nuclei from H&E and the Ki67\+nuclei inside and outside the epithelium from mIF; the fraction is the ratio of two of these counts, and the source follows from comparing the last two, not from the area\. Each task thus has four checkable intermediate quantities\. The template makes the reasoning short and makes every step comparable with the truth\.

#### Supervised fine\-tuning\.

We fill the template with the true quantities of each training field to obtain reasoning traces whose every number is correct, and fine\-tune Qwen3\.5\-4B on them with LoRA\[[19](https://arxiv.org/html/2611.26794#bib.bib56)\]\(rank 64 on all linear layers of the language model; vision encoder frozen\) for two epochs with a learning rate of10−410^\{\-4\}, which teaches the format and the order of the steps and how to read the quantities from the two images\.

### 3\.4RL with a verifiable process reward

Starting from the fine\-tuned model, we apply GRPO\[[51](https://arxiv.org/html/2611.26794#bib.bib9)\]\. For each question, the policy samples a group ofGGcompletions, each completion receives a scalar rewardrir\_\{i\}, and its advantage is the reward normalised within the group,A^i=\(ri−meanj⁡rj\)/stdj⁡rj\\hat\{A\}\_\{i\}=\(r\_\{i\}\-\\operatorname\{mean\}\_\{j\}r\_\{j\}\)/\\operatorname\{std\}\_\{j\}r\_\{j\}\. A reward term affects training only when it varies across the completions of a question\. The reward has three terms,

r=rfmt\+rans\+λ​rproc,λ=0\.5\.r=r\_\{\\text\{fmt\}\}\+r\_\{\\text\{ans\}\}\+\\lambda\\,r\_\{\\text\{proc\}\},\\qquad\\lambda=0\.5\.\(5\)The format rewardrfmt∈\{0,1\}r\_\{\\text\{fmt\}\}\\in\\\{0,1\\\}checks that the completion is a reasoning block followed by one answer\.

#### Answer reward\.

rans∈\[0,1\]r\_\{\\text\{ans\}\}\\in\[0,1\]is task\-specific and graded, so that closer answers earn more\. For Density,rans=max⁡\(0,1−\|ln⁡y^\+cy\+c\|/ln⁡2\)r\_\{\\text\{ans\}\}=\\max\\bigl\(0,1\-\|\\ln\\frac\{\\hat\{y\}\+c\}\{y\+c\}\|/\\ln 2\\bigr\)withc=80c=80cells/mm2\(one cell in a fully tissue\-covered field\), which is zero once the answer is off by a factor of two\. For Ki67 fraction,rans=max⁡\(0,1−\|y^−y\|/20\)r\_\{\\text\{ans\}\}=\\max\(0,1\-\|\\hat\{y\}\-y\|/20\)withyyin percentage points\. For Ki67 source,ransr\_\{\\text\{ans\}\}is 1 for the correct label and 0 otherwise\. For Regions, a “none” answer scores 1 only if the truth is “none”; otherwise the score is the F1 of cell recall \(share of intra\-epithelial CD8\+cells inside a predicted box\) and box precision \(share of predicted boxes that contain at least one\), multiplied by1−0\.5​s1\-0\.5\\,s, wheressis the share of avoidable stromal CD8\+cells covered by the boxes, and bymin⁡\(1,2​A/A^\)\\min\(1,2A/\\hat\{A\}\), whereAAandA^\\hat\{A\}are the areas covered by the true and predicted boxes, so that oversized boxes are penalised\.

#### Process reward\.

rprocr\_\{\\text\{proc\}\}checks the four intermediate quantitiesq^k\\hat\{q\}\_\{k\}stated in the reasoning against their truthqkq\_\{k\}:

rproc=14​∑k=14max⁡\(0,1−\|q^k−qk\|wk\),r\_\{\\text\{proc\}\}=\\frac\{1\}\{4\}\\sum\_\{k=1\}^\{4\}\\max\\Bigl\(0,\\,1\-\\frac\{\|\\hat\{q\}\_\{k\}\-q\_\{k\}\|\}\{w\_\{k\}\}\\Bigr\),\(6\)wherewk=30w\_\{k\}=30percentage points for area shares andwk=τ⁡\(qk\)w\_\{k\}=\\tau\(q\_\{k\}\)for cell counts, and a quantity that is not stated scores 0\. Because the truth exists for every quantity, the process reward needs no learned reward model\.

#### Tolerance curriculum\.

A strict tolerance gives almost no reward early in training, when counts are still far off, while a loose one stops rewarding improvement later\. We therefore tighten the count toleranceτ⁡\(q\)\\tau\(q\)in three stages, each lasting a third of training:τ⁡\(q\)=max⁡\(5,q\)\\tau\(q\)=\\max\(5,q\), thenmax⁡\(3,0\.5​q\)\\max\(3,0\.5\\,q\), thenmax⁡\(2,0\.3​q\)\\max\(2,0\.3\\,q\)\.

#### Implementation\.

We train for 200 steps with 32 questions per step andG=8G=8completions per question \(sampling temperature 1, at most 768 completion tokens\), training a new LoRA adapter \(rank 64\) on the fine\-tuned model with a constant learning rate of10−510^\{\-5\}after 10 warm\-up steps\. Training runs on four A100\-80GB GPUs with vLLM\[[26](https://arxiv.org/html/2611.26794#bib.bib57)\]generation\. We report the final checkpoint \(step 200\)\.

## 4Experiments

### 4\.1Setup

#### Data\.

We evaluate on the five held\-out Orion patients and on two external cohorts, without retraining\. Models are compared on a seeded subset of 250 questions per task on Orion \(1,000 questions\)\. The Schürch cohort uses the same sampling \(874 questions, as fewer fields qualify for some tasks\)\. On the head and neck cohort of Haist*et al*\.\[[17](https://arxiv.org/html/2611.26794#bib.bib4)\]\(1,000 questions\), we run the same models as on Schürch\.

#### Baselines\.

We compare with twelve MLLMs and with a task\-specific baseline trained on the same inputs\. They comprise three proprietary models \(GPT\-5\.6 Sol, Gemini 3\.7 Flash, Claude Opus 5\), three general models \(Gemma\-4\-31B, Qwen3\.8\-27B, Ministral\-3\-14B\), two medical models \(MedGemma\-27B\[[48](https://arxiv.org/html/2611.26794#bib.bib12)\], HuatuoGPT\-3\-27B\), three pathology models \(Quilt\-LLaVA\-7B\[[49](https://arxiv.org/html/2611.26794#bib.bib10)\], PathGen\-LLaVA\-13B\[[52](https://arxiv.org/html/2611.26794#bib.bib11)\], Patho\-R1\-7B\[[62](https://arxiv.org/html/2611.26794#bib.bib7)\]\), and the unmodified Qwen3\.5\-4B on which HERMES is built\. All models receive the same prompts and images, with thinking enabled where supported and no fine\-tuning on our data\. The one exception is Claude Opus 5, which answers an answer\-only prompt because its API refused the step\-by\-step prompt\.

#### Metrics\.

Answers are scored with the task\-specific accuracy defined in[Tab\.3](https://arxiv.org/html/2611.26794#S1.T3), averaged over the four tasks, and with macro\-F1 on the same tasks\. An unreadable answer counts as wrong\. Field\-level answers are mapped to clinical tiers and compared with the truth by quadratic weightedκ\\kappa\[[8](https://arxiv.org/html/2611.26794#bib.bib61)\]\. Reasoning is scored by the share of intermediate quantities that match the cell\-level truth, for open\-weight models, as proprietary models hide their reasoning\.

### 4\.2Main results

[Figure1](https://arxiv.org/html/2611.26794#S0.F1)summarises the results on the held\-out Orion patients, and[Tab\.3](https://arxiv.org/html/2611.26794#S1.T3)in the supplement lists all models and metrics\. HERMES \(RL\) has the highest accuracy on every task, tied with SFT on Ki67 source, and its average of 84\.5% compares with 74\.7% for the strongest baseline, Gemini 3\.7 Flash\. Macro\-F1 gives the same ranking \(83\.7 vs\. 75\.5\)\. RL improves the average over SFT from 78\.8% to 84\.5%, and all five test patients improve; Qwen3\.5\-4B without our training reaches 45\.2%\. Two further GRPO seeds reach 83\.4% and 82\.7% \(supplementary[Tab\.13](https://arxiv.org/html/2611.26794#S12.T13)\)\. HERMES does this with about 190 output tokens in the guideline\-structured format, against 1\.2k–6\.5k for the three strongest open\-weight baselines; reward\-based scores are in the supplement\.

The advantage persists on the external Schürch cohort, a different platform \([Tab\.2](https://arxiv.org/html/2611.26794#S3.T2)\): 76\.4% vs\. 67\.3% for Gemini 3\.7 Flash, with RL better than SFT in 26 of 35 patients on all 2,605 Schürch questions; on head and neck cancer, absent from training, HERMES reaches 76\.7% against 72\.5%\.

Figure 4:Intermediate quantities checked against cell\-level truth; baseline quantities are extracted from their reasoning by an LLM\. \(a\) GRPO with and without the process reward, from the same SFT model \(Orion;[Tab\.7](https://arxiv.org/html/2611.26794#S7.T7)\)\. \(b\) Share of needed quantities correct per task and model \(unstated counts as wrong;[Tab\.4](https://arxiv.org/html/2611.26794#S2.T4)\)\. \(c\) Answer accuracy vs\. number of correct quantities per question, HERMES \(RL\) and Gemma\-4\-31B \(marker area: share of questions; n=0: Gemma\-4\-31B never states all four correctly\)\.
### 4\.3Clinical readouts

Each field\-level answer maps to a clinical tier, so we can ask whether the tier would be right \([Figs\.1](https://arxiv.org/html/2611.26794#S0.F1)and[3](https://arxiv.org/html/2611.26794#S1.T3), quadratic weightedκ\\kappa\)\. On Orion, HERMES leads all three readouts: 91\.9 vs\. 87\.8 for Ki67 and 56\.6 vs\. 53\.3 for intra\-epithelial CD8 \(both against Gemini 3\.7 Flash\), and 79\.0 vs\. 73\.4 for stromal CD8 \(against GPT\-5\.6 Sol\)\. On the Schürch cohort, HERMES again leads on Ki67 \(87\.0 vs\. 77\.3\) and intra\-epithelial CD8 \(43\.9 vs\. 32\.1\), and ties Gemini 3\.7 Flash on stromal CD8 \(58\.9;[Tab\.2](https://arxiv.org/html/2611.26794#S3.T2)\)\. Pathology MLLMs show no meaningful agreement beyond chance \(κ≤6\.6\\kappa\\leq 6\.6on Orion\)\.

### 4\.4Is the reasoning correct?

[Figure4](https://arxiv.org/html/2611.26794#S4.F4)summarises the reasoning check\. General and medical MLLMs state only 19–36% of the quantities that the scoring rules require, and pathology MLLMs under 10% \(supplementary[Fig\.5](https://arxiv.org/html/2611.26794#S2.F5)\): without guideline\-structured training, they do not reason the way the readouts are scored\. The strongest open\-weight baseline \(Gemma\-4\-31B\) gets only 16\.4% of the required quantities right\. HERMES states every quantity and 66\.2% are correct, with the largest gap on Ki67 source \(64% vs\. 6%\)\.

RL improves the reasoning as well as the answer: the correct share rises from 58\.4% after SFT to 66\.2%, and 15 of the 16 task\-specific quantities improve\. This depends on the process reward \([Fig\.4](https://arxiv.org/html/2611.26794#S4.F4)a\): GRPO from the same SFT model without it raises accuracy only from 78\.8% to 80\.0%, and the correct share falls to 37\.2%\. Without it, the model also leaves the guideline steps: on the two Ki67 tasks, 96–99% of its outputs count all nuclei on the Hoechst channel of the mIF image instead of the epithelial nuclei on H&E, and only 1\.2% of its epithelial nucleus counts on Ki67 source are correct, against 30% for HERMES \(supplementary[Sec\.G](https://arxiv.org/html/2611.26794#S7)\)\.

Correct reasoning goes with correct answers: accuracy of HERMES rises from 45\.2% on the 31 questions with no correct quantity to 90\.7% on the 236 with all four correct \([Fig\.4](https://arxiv.org/html/2611.26794#S4.F4)c\)\. When we edit the decisive quantity in the reasoning \(*e\.g*\.tripling the CD8\+count or swapping the two Ki67\+counts\) and let the model continue, the answer changes as the edit implies in all 885 test questions, and without an edit it is reproduced in all of them: the answer is computed from the stated quantities\. Editing the image has the same effect: removing three CD8\+cells from the mIF image lowers the stated count in 89\.7% of fields, against 69\.6% and 54\.4% for Gemma\-4\-31B and Qwen3\.8\-27B, while a sham edit away from T cells leaves it unchanged in 73\.3% \(5\.1% and 16\.4%; supplementary[Sec\.J](https://arxiv.org/html/2611.26794#S10)\)\.

### 4\.5Localisation: knowing when not to box

Regions requires deciding whether a field contains intra\-epithelial CD8\+cells \(122 of the 250 Orion test fields do\) and, if so, boxing them\. The strongest baselines tend to draw boxes even when there is nothing to box, answering “none” in only 34–42% of fields without infiltrate, whereas HERMES does so in 76\.6% while still boxing 86\.1% of fields with infiltrate; its boxes are also more precise \(67\.5% vs\. 55\.9–62\.4% contain an intra\-epithelial CD8\+cell\), and its box\-level F1 is 60\.3 vs\. 48\.9 at IoU≥0\.1\\geq 0\.1and 46\.0 vs\. 38\.3 at IoU≥0\.3\\geq 0\.3against the strongest baselines \(supplementary[Tab\.12](https://arxiv.org/html/2611.26794#S11.T12)\)\. RL produces this balance: false “none” answers drop from 40\.2% after SFT to 13\.9%\.

### 4\.6Ablation: HERMES uses both modalities

Masking either image while keeping the other intact lowers accuracy on every task \(validation set; supplementary[Fig\.6](https://arxiv.org/html/2611.26794#S4.F6)\): the average falls from 86\.7% to 76\.4% without H&E and to 50\.0% without mIF\. H&E supplies the compartment and the denominator of the Ki67 index, mIF the identity of each cell, so HERMES needs both\.

## 5Conclusion

We let an MLLM reason jointly over H&E and mIF in guideline steps, each grounded in one modality, and supervise the reasoning itself by checking every stated quantity against cell\-level truth from the same section\. HERMES achieves the highest accuracy among twelve MLLMs on colorectal cancer and keeps it without retraining on another imaging platform and on head and neck cancer\. Its reasoning can be verified: most of its intermediate quantities are correct, its answers are computed from them, and they change as the cells change when the mIF image is edited\. The process reward is central to this: without it, GRPO barely improves accuracy over SFT and the stated quantities become less correct\. Same\-section imaging thus turns pathology reasoning into a target that can be supervised step by step, and extending it to further readouts and cancer types is a natural next step\.

## LLM Usage Statement

Large language models are part of the study itself: the general, medical and pathology MLLMs in[Sec\.4](https://arxiv.org/html/2611.26794#S4)are evaluated as baselines, and Qwen3\.6\-27B is used, without access to the ground truth, to extract the intermediate quantities stated in each model’s reasoning \([Sec\.4\.4](https://arxiv.org/html/2611.26794#S4.SS4)\)\. Claude was used to edit and polish author\-produced text and to write and debug code; the authors checked all text, code and results and take full responsibility for them\.

## References

- \[1\]G\. Balezo, R\. Trullo, A\. Pla Planas, E\. Decencière, and T\. Walter\(2025\)MIPHEI\-ViT: multiplex immunofluorescence prediction from H&E images using ViT foundation models\.arXiv preprint arXiv:2505\.10294\.Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px3.p1.1),[§3\.1](https://arxiv.org/html/2611.26794#S3.SS1.SSS0.Px2.p1.1)\.
- \[2\]M\. Binnewies, E\. W\. Roberts, K\. Kersten, V\. Chan, D\. F\. Fearon, M\. Merad, L\. M\. Coussens, D\. I\. Gabrilovich, S\. Ostrand\-Rosenberg, C\. C\. Hedrick,et al\.\(2018\)Understanding the tumor immune microenvironment \(TIME\) for effective therapy\.Nature Medicine24\(5\),pp\. 541–550\.Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p1.1)\.
- \[3\]G\. Campanella, M\. G\. Hanna, L\. Geneslaw,et al\.\(2019\)Clinical\-grade computational pathology using weakly supervised deep learning on whole slide images\.Nature Medicine25\(8\),pp\. 1301–1309\.Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px3.p1.1)\.
- \[4\]D\. S\. Chen and I\. Mellman\(2017\)Elements of cancer immunity and the cancer–immune set point\.Nature541\(7637\),pp\. 321–330\.Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p1.1)\.
- \[5\]J\. Chen, C\. Gui, R\. Ouyang,et al\.\(2024\)HuatuoGPT\-Vision, towards injecting medical visual knowledge into multimodal LLMs at scale\.InEMNLP,Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px1.p1.1)\.
- \[6\]R\. J\. Chen, T\. Ding, M\. Y\. Lu,et al\.\(2024\)Towards a general\-purpose foundation model for computational pathology\.Nature Medicine30,pp\. 850–862\.Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px1.p1.1)\.
- \[7\]Y\. Chen, G\. Wang, Y\. Ji,et al\.\(2025\)SlideChat: a large vision\-language assistant for whole\-slide pathology image understanding\.InCVPR,Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px1.p1.1)\.
- \[8\]J\. Cohen\(1968\)Weighted kappa: nominal scale agreement provision for scaled disagreement or partial credit\.Psychological Bulletin70\(4\),pp\. 213–220\.Cited by:[§4\.1](https://arxiv.org/html/2611.26794#S4.SS1.SSS0.Px3.p1.1)\.
- \[9\]M\. Dowsett, T\. O\. Nielsen, R\. A’Hern,et al\.\(2011\)Assessment of Ki67 in breast cancer: recommendations from the International Ki67 in Breast Cancer Working Group\.Journal of the National Cancer Institute103\(22\),pp\. 1656–1664\.Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p1.1),[§1](https://arxiv.org/html/2611.26794#S1.p6.1)\.
- \[10\]W\. H\. Fridman, F\. Pagès, C\. Sautès\-Fridman, and J\. Galon\(2012\)The immune contexture in human tumours: impact on clinical outcome\.Nature Reviews Cancer12\(4\),pp\. 298–306\.Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p1.1)\.
- \[11\]J\. Galon, A\. Costes, F\. Sanchez\-Cabo,et al\.\(2006\)Type, density, and location of immune cells within human colorectal tumors predict clinical outcome\.Science313\(5795\),pp\. 1960–1964\.Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p1.1),[§1](https://arxiv.org/html/2611.26794#S1.p6.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px3.p1.1)\.
- \[12\]C\. Giesen, H\. A\. O\. Wang, D\. Schapiro,et al\.\(2014\)Highly multiplexed imaging of tumor tissues with subcellular resolution by mass cytometry\.Nature Methods11\(4\),pp\. 417–422\.Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px3.p1.1)\.
- \[13\]Y\. Goltsev, N\. Samusik, J\. Kennedy\-Darling,et al\.\(2018\)Deep profiling of mouse splenic architecture with CODEX multiplexed imaging\.Cell174\(4\),pp\. 968–981\.Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px3.p1.1)\.
- \[14\]S\. Graham, Q\. D\. Vu, S\. E\. A\. Raza,et al\.\(2019\)HoVer\-Net: simultaneous segmentation and classification of nuclei in multi\-tissue histology images\.Medical Image Analysis58,pp\. 101563\.Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px3.p1.1)\.
- \[15\]N\. F\. Greenwald, G\. Miller, E\. Moen,et al\.\(2022\)Whole\-cell segmentation of tissue images with human\-level performance using large\-scale data annotation and deep learning\.Nature Biotechnology40\(4\),pp\. 555–565\.Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px3.p1.1)\.
- \[16\]D\. Guo, D\. Yang, H\. Zhang,et al\.\(2025\)DeepSeek\-R1 incentivizes reasoning in LLMs through reinforcement learning\.Nature645,pp\. 633–638\.Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p4.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px2.p1.1)\.
- \[17\]M\. Haistet al\.\(2026\)Lymph node colonization induces tissue remodeling via immunosuppressive fibroblast\-myeloid cell niches supporting metastatic tolerance\.Cancer Cell44\(3\),pp\. 604–623\.External Links:[Document](https://dx.doi.org/10.1016/j.ccell.2026.01.003)Cited by:[§3\.1](https://arxiv.org/html/2611.26794#S3.SS1.SSS0.Px3.p1.1),[Table 2](https://arxiv.org/html/2611.26794#S3.T2),[§4\.1](https://arxiv.org/html/2611.26794#S4.SS1.SSS0.Px1.p1.1)\.
- \[18\]S\. Hendry, R\. Salgado, T\. Gevaert,et al\.\(2017\)Assessing tumor\-infiltrating lymphocytes in solid tumors: a practical review for pathologists and proposal for a standardized method from the International Immunooncology Biomarkers Working Group: part 1\.Advances in Anatomic Pathology24\(5\),pp\. 235–251\.Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p1.1),[§1](https://arxiv.org/html/2611.26794#S1.p6.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px3.p1.1)\.
- \[19\]E\. J\. Hu, Y\. Shen, P\. Wallis,et al\.\(2022\)LoRA: low\-rank adaptation of large language models\.InICLR,Cited by:[§3\.3](https://arxiv.org/html/2611.26794#S3.SS3.SSS0.Px1.p1.1)\.
- \[20\]W\. Huang, B\. Jia, Z\. Zhai, S\. Cao, Z\. Ye, F\. Zhao, Z\. Xu, X\. Tang, Y\. Hu, and S\. Lin\(2026\)Vision\-R1: incentivizing reasoning capability in multimodal large language models\.InICLR,Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px2.p1.1)\.
- \[21\]Z\. Huang, F\. Bianchi, M\. Yuksekgonul, T\. J\. Montine, and J\. Zou\(2023\)A visual–language foundation model for pathology image analysis using medical Twitter\.Nature Medicine29,pp\. 2307–2316\.Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px1.p1.1)\.
- \[22\]W\. O\. Ikezogwo, M\. S\. Seyfioglu, F\. Ghezloo,et al\.\(2023\)Quilt\-1M: one million image\-text pairs for histopathology\.InNeurIPS Datasets and Benchmarks,Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px1.p1.1)\.
- \[23\]A\. Jacovi and Y\. Goldberg\(2020\)Towards faithfully interpretable NLP systems: how should we define and evaluate faithfulness?\.InACL,Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px4.p1.1)\.
- \[24\]J\. N\. Kather, A\. T\. Pearson, N\. Halama,et al\.\(2019\)Deep learning can predict microsatellite instability directly from histology in gastrointestinal cancer\.Nature Medicine25\(7\),pp\. 1054–1056\.Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px3.p1.1)\.
- \[25\]L\. Keren, M\. Bosse, D\. Marquez,et al\.\(2018\)A structured tumor\-immune microenvironment in triple negative breast cancer revealed by multiplexed ion beam imaging\.Cell174\(6\),pp\. 1373–1387\.Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px3.p1.1)\.
- \[26\]W\. Kwon, Z\. Li, S\. Zhuang,et al\.\(2023\)Efficient memory management for large language model serving with PagedAttention\.InSOSP,Cited by:[§3\.4](https://arxiv.org/html/2611.26794#S3.SS4.SSS0.Px4.p1.1)\.
- \[27\]Y\. Laiet al\.\(2025\)Med\-R1: reinforcement learning for generalizable medical reasoning in vision\-language models\.arXiv preprint arXiv:2503\.13939\.Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p4.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px2.p1.1)\.
- \[28\]T\. Lanham, A\. Chen, A\. Radhakrishnan,et al\.\(2023\)Measuring faithfulness in chain\-of\-thought reasoning\.arXiv preprint arXiv:2307\.13702\.Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p4.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px4.p1.1)\.
- \[29\]S\. M\. Lewis, M\. Asselin\-Labat, Q\. Nguyen,et al\.\(2021\)Spatial omics and multiplexed imaging to explore cancer biology\.Nature Methods18\(9\),pp\. 997–1012\.Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p2.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px3.p1.1)\.
- \[30\]C\. Li, C\. Wong, S\. Zhang,et al\.\(2023\)LLaVA\-Med: training a large language\-and\-vision assistant for biomedicine in one day\.InNeurIPS,Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px1.p1.1)\.
- \[31\]H\. Lightman, V\. Kosaraju, Y\. Burda,et al\.\(2024\)Let’s verify step by step\.InICLR,Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p4.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px2.p1.1)\.
- \[32\]J\. Lin, Y\. Chen, D\. Campton,et al\.\(2023\)High\-plex immunofluorescence imaging and traditional histology of the same tissue section for discovering image\-based biomarkers\.Nature Cancer4,pp\. 1036–1052\.Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p2.1),[§1](https://arxiv.org/html/2611.26794#S1.p5.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px3.p1.1),[§3\.1](https://arxiv.org/html/2611.26794#S3.SS1.SSS0.Px1.p1.1)\.
- \[33\]J\. Lin, B\. Izar, S\. Wang,et al\.\(2018\)Highly multiplexed immunofluorescence imaging of human tissues and tumors using t\-CyCIF and conventional optical microscopes\.eLife7,pp\. e31657\.Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px3.p1.1)\.
- \[34\]H\. Liu, C\. Li, Q\. Wu, and Y\. J\. Lee\(2023\)Visual instruction tuning\.InNeurIPS,Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p3.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px1.p1.1)\.
- \[35\]Z\. Liuet al\.\(2025\)Visual\-RFT: visual reinforcement fine\-tuning\.InICCV,Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px2.p1.1)\.
- \[36\]M\. Y\. Lu, B\. Chen, D\. F\. K\. Williamson,et al\.\(2024\)A multimodal generative AI copilot for human pathology\.Nature634,pp\. 466–473\.Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px1.p1.1)\.
- \[37\]M\. Y\. Lu, B\. Chen, D\. F\. K\. Williamson,et al\.\(2024\)A visual\-language foundation model for computational pathology\.Nature Medicine30,pp\. 863–874\.Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px1.p1.1)\.
- \[38\]Q\. Lyu, S\. Havaldar, A\. Stein,et al\.\(2023\)Faithful chain\-of\-thought reasoning\.InIJCNLP\-AACL,Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px4.p1.1)\.
- \[39\]T\. O\. Nielsen, S\. C\. Y\. Leung, D\. L\. Rimm,et al\.\(2021\)Assessment of Ki67 in breast cancer: updated recommendations from the International Ki67 in Breast Cancer Working Group\.Journal of the National Cancer Institute113\(7\),pp\. 808–819\.Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p1.1),[§1](https://arxiv.org/html/2611.26794#S1.p6.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px3.p1.1),[§3\.2](https://arxiv.org/html/2611.26794#S3.SS2.p3.1),[§3\.3](https://arxiv.org/html/2611.26794#S3.SS3.p1.1)\.
- \[40\]L\. Ouyang, J\. Wu, X\. Jiang,et al\.\(2022\)Training language models to follow instructions with human feedback\.InNeurIPS,Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px2.p1.1)\.
- \[41\]F\. Pagès, B\. Mlecnik, F\. Marliot,et al\.\(2018\)International validation of the consensus Immunoscore for the classification of colon cancer: a prognostic and accuracy study\.The Lancet391\(10135\),pp\. 2128–2139\.Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p1.1),[§1](https://arxiv.org/html/2611.26794#S1.p6.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px3.p1.1),[§3\.2](https://arxiv.org/html/2611.26794#S3.SS2.p2.1),[§3\.3](https://arxiv.org/html/2611.26794#S3.SS3.p1.1)\.
- \[42\]J\. Panet al\.\(2025\)MedVLM\-R1: incentivizing medical reasoning capability of vision\-language models via reinforcement learning\.InMedical Image Computing and Computer Assisted Intervention \(MICCAI\),Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p4.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px2.p1.1)\.
- \[43\]Y\. Rivenson, H\. Wang, Z\. Wei,et al\.\(2019\)Virtual histological staining of unlabelled tissue\-autofluorescence images via deep learning\.Nature Biomedical Engineering3,pp\. 466–477\.Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px3.p1.1)\.
- \[44\]C\. Rudin\(2019\)Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead\.Nature Machine Intelligence1\(5\),pp\. 206–215\.Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px4.p1.1)\.
- \[45\]R\. Salgado, C\. Denkert, S\. Demaria,et al\.\(2015\)The evaluation of tumor\-infiltrating lymphocytes \(TILs\) in breast cancer: recommendations by an International TILs Working Group 2014\.Annals of Oncology26\(2\),pp\. 259–271\.Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p1.1),[§1](https://arxiv.org/html/2611.26794#S1.p6.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px3.p1.1),[§3\.3](https://arxiv.org/html/2611.26794#S3.SS3.p1.1)\.
- \[46\]J\. Saltz, R\. Gupta, L\. Hou,et al\.\(2018\)Spatial organization and molecular correlation of tumor\-infiltrating lymphocytes using deep learning on pathology images\.Cell Reports23\(1\),pp\. 181–193\.Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px3.p1.1)\.
- \[47\]C\. M\. Schürch, S\. S\. Bhate, G\. L\. Barlow,et al\.\(2020\)Coordinated cellular neighborhoods orchestrate antitumoral immunity at the colorectal cancer invasive front\.Cell182\(5\),pp\. 1341–1359\.Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p2.1),[§1](https://arxiv.org/html/2611.26794#S1.p6.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px3.p1.1),[§3\.1](https://arxiv.org/html/2611.26794#S3.SS1.SSS0.Px3.p1.1)\.
- \[48\]A\. Sellergrenet al\.\(2025\)MedGemma technical report\.arXiv preprint arXiv:2507\.05201\.Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p3.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px1.p1.1),[§4\.1](https://arxiv.org/html/2611.26794#S4.SS1.SSS0.Px2.p1.1)\.
- \[49\]M\. S\. Seyfioglu, W\. O\. Ikezogwo, F\. Ghezloo, R\. Krishna, and L\. Shapiro\(2024\)Quilt\-LLaVA: visual instruction tuning by extracting localized narratives from open\-source histopathology videos\.InCVPR,Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p3.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px1.p1.1),[§4\.1](https://arxiv.org/html/2611.26794#S4.SS1.SSS0.Px2.p1.1)\.
- \[50\]M\. Shaban, Y\. Chang, H\. Qiu, Y\. Y\. Yeo, A\. H\. Song, G\. Jaume, Y\. Wang, L\. L\. Weishaupt, T\. Ding, A\. Vaidya,et al\.\(2025\)A foundation model for spatial proteomics\.arXiv preprint arXiv:2506\.03373\.Cited by:[§H](https://arxiv.org/html/2611.26794#S8.p1.1)\.
- \[51\]Z\. Shao, P\. Wang, Q\. Zhu,et al\.\(2024\)DeepSeekMath: pushing the limits of mathematical reasoning in open language models\.arXiv preprint arXiv:2402\.03300\.Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p4.1),[§1](https://arxiv.org/html/2611.26794#S1.p5.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px2.p1.1),[§3\.4](https://arxiv.org/html/2611.26794#S3.SS4.p1.1)\.
- \[52\]Y\. Sunet al\.\(2025\)PathGen\-1\.6M: 1\.6 million pathology image\-text pairs generation through multi\-agent collaboration\.InICLR,Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p3.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px1.p1.1),[§4\.1](https://arxiv.org/html/2611.26794#S4.SS1.SSS0.Px2.p1.1)\.
- \[53\]Y\. Sun, C\. Zhu, S\. Zheng,et al\.\(2024\)PathAsst: a generative foundation AI assistant towards artificial general intelligence of pathology\.InAAAI,Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p3.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px1.p1.1)\.
- \[54\]T\. Tu, S\. Azizi, D\. Driess,et al\.\(2024\)Towards generalist biomedical AI\.NEJM AI1\(3\)\.Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p3.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px1.p1.1)\.
- \[55\]M\. Turpin, J\. Michael, E\. Perez, and S\. R\. Bowman\(2023\)Language models don’t always say what they think: unfaithful explanations in chain\-of\-thought prompting\.InNeurIPS,Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p4.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px4.p1.1)\.
- \[56\]J\. Uesato, N\. Kushman, R\. Kumar,et al\.\(2022\)Solving math word problems with process\- and outcome\-based feedback\.arXiv preprint arXiv:2211\.14275\.Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p4.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px2.p1.1)\.
- \[57\]J\. M\. J\. Valanarasuet al\.\(2026\)Multimodal AI generates virtual population for tumor microenvironment modeling\.Cell189\(2\),pp\. 386–400\.External Links:[Document](https://dx.doi.org/10.1016/j.cell.2025.11.016)Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px3.p1.1)\.
- \[58\]E\. Vorontsov, A\. Bozkurt, A\. Casson,et al\.\(2024\)A foundation model for clinical\-grade computational pathology and rare cancers detection\.Nature Medicine30\(10\),pp\. 2924–2935\.Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px1.p1.1)\.
- \[59\]P\. Wang, L\. Li, Z\. Shao,et al\.\(2024\)Math\-Shepherd: verify and reinforce LLMs step\-by\-step without human annotations\.InACL,Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p4.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px2.p1.1)\.
- \[60\]J\. Wei, X\. Wang, D\. Schuurmans,et al\.\(2022\)Chain\-of\-thought prompting elicits reasoning in large language models\.InNeurIPS,Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px2.p1.1)\.
- \[61\]H\. Xu, N\. Usuyama, J\. Bagga,et al\.\(2024\)A whole\-slide foundation model for digital pathology from real\-world data\.Nature630,pp\. 181–188\.Cited by:[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px1.p1.1),[§H](https://arxiv.org/html/2611.26794#S8.p1.1)\.
- \[62\]W\. Zhanget al\.\(2026\)Patho\-R1: a multimodal reinforcement learning\-based pathology expert reasoner\.InAAAI,Vol\.40,pp\. 28418–28426\.External Links:[Document](https://dx.doi.org/10.1609/aaai.v40i33.40071)Cited by:[§1](https://arxiv.org/html/2611.26794#S1.p3.1),[§1](https://arxiv.org/html/2611.26794#S1.p4.1),[§2](https://arxiv.org/html/2611.26794#S2.SS0.SSS0.Px2.p1.1),[§4\.1](https://arxiv.org/html/2611.26794#S4.SS1.SSS0.Px2.p1.1)\.

## AFull results on Orion

[Table3](https://arxiv.org/html/2611.26794#S1.T3)gives every model and metric behind[Fig\.1](https://arxiv.org/html/2611.26794#S0.F1)\.

Table 3:Main results on Orion \(250 questions per task; values×100\\times 100except tokens\)\. Accuracy: density within2×2\\timesof truth, regions whether the field contains intra\-epithelial CD8\+T cells \(balanced accuracy; box quality in[Tab\.12](https://arxiv.org/html/2611.26794#S11.T12)\), Ki67 source accuracy, Ki67 fraction within 10 pp\. Macro\-F1: mean over the four tasks, density and Ki67 fraction on the three clinical tiers\. Clinical grades: quadratic weightedκ\\kappaagainst truth tiers\. Proprietary models hide their reasoning, so tokens are not compared\.Answer accuracyClinical grade agreementModelDensityRegionsAverageKi67*Proprietary MLLMs*GPT\-5\.6 Sol64\.866\.873\.280\.871\.469\.685\.749\.273\.4–Gemini 3\.7 Flash68\.069\.985\.675\.274\.775\.587\.853\.371\.3–Claude Opus 556\.056\.166\.052\.457\.656\.963\.729\.950\.1–*General MLLMs*Gemma\-4\-31B45\.267\.980\.468\.065\.467\.680\.027\.627\.13,158Qwen3\.8\-27B52\.068\.471\.267\.264\.767\.082\.631\.155\.16,455Ministral\-3\-14B41\.652\.859\.630\.446\.142\.315\.114\.017\.6288*Medical MLLMs*MedGemma\-27B23\.250\.850\.419\.636\.030\.1\-1\.8\-2\.82\.61,572HuatuoGPT\-3\-27B52\.868\.767\.666\.063\.865\.382\.626\.847\.41,177*Pathology MLLMs*Quilt\-LLaVA\-7B6\.449\.62\.82\.415\.328\.40\.03\.5\-5\.5176PathGen\-LLaVA\-13B1\.250\.40\.00\.012\.928\.2\-26\.5\-9\.76\.665Patho\-R1\-7B26\.851\.427\.619\.231\.337\.9\-2\.6\-5\.4\-8\.8250Qwen3\.5\-4B \(base\)28\.459\.260\.432\.845\.253\.565\.36\.410\.010,354HERMES \(SFT\)65\.274\.594\.481\.278\.880\.090\.354\.173\.8182HERMES \(RL\)76\.081\.394\.486\.484\.583\.791\.956\.679\.0186
## BIntermediate quantities per task

Figure 5:Share of the quantities a task needs that each model states correctly \(Orion; unstated counts as wrong\)\. Baseline quantities are extracted from their reasoning by an LLM\.Table 4:Intermediate\-quantity accuracy per task \(complement to[Fig\.4](https://arxiv.org/html/2611.26794#S4.F4)\): share of the four quantities a task needs that match the cell\-level truth \(counts withinmax⁡\(1,10%\)\\max\(1,10\\%\), area shares within 10 pp; an unstated quantity counts as wrong\)\. Stated: share of the needed quantities a model states at all\.
## CTask overview

Table 5:Four tasks over three kinds of reasoning: quantitative \(Density, Ki67 fraction\), localization \(Regions\) and attribution \(Ki67 source\)\. Every task needs both modalities: H&E for the compartment, mIF for the marker\.
## DModality masking

To test whether HERMES reasons over both images, half or all of one image is masked while the other stays intact \([Fig\.6](https://arxiv.org/html/2611.26794#S4.F6); validation set, 250 questions per task\)\. Removing either modality lowers accuracy on every task: the average falls from 86\.7% with both images to 76\.4% without H&E and to 50\.0% without mIF\. H&E supplies the compartment,*i\.e*\.where the epithelium ends and the stroma begins, and the denominator of the Ki67 index; mIF supplies the identity of each cell and is needed for every count\. The same holds after SFT and after RL\.

Figure 6:HERMES uses H&E and mIF together: masking either image lowers accuracy on every task\. Half or all of H&E \(a\) or mIF \(b\) is masked while the other image stays intact; 100% removes that image\. Grey: both images; light and dark: 50% and 100% of the image masked; dotted: chance for the two balanced binary tasks \(Regions, Ki67 source\)\. HERMES \(RL\); metrics as in[Tab\.3](https://arxiv.org/html/2611.26794#S1.T3)\.
## EExamples on the external cohorts

[Figures7](https://arxiv.org/html/2611.26794#S5.F7),[8](https://arxiv.org/html/2611.26794#S5.F8),[9](https://arxiv.org/html/2611.26794#S5.F9),[10](https://arxiv.org/html/2611.26794#S5.F10)and[11](https://arxiv.org/html/2611.26794#S5.F11)show HERMES’s reasoning on test fields of the two external cohorts, in the format of[Fig\.3](https://arxiv.org/html/2611.26794#S3.F3)\.

![Refer to caption](https://arxiv.org/html/2611.26794v1/schurch_example.png)Figure 7:Schürch cohort \(colorectal cancer, CODEX\), example set 1 of 2: one test field per task, laid out as[Fig\.3](https://arxiv.org/html/2611.26794#S3.F3)\. HERMES is the model trained on Orion, without retraining\. Fields are chosen among correct answers whose stated counts are within one cell of the truth \(Ki67 fraction within 3 pp, density within 15%\), with 30–70% epithelium and one patient per task and set\. Steps without a bracket have no truth in this cohort\.![Refer to caption](https://arxiv.org/html/2611.26794v1/schurch_example_2.png)Figure 8:Schürch cohort \(colorectal cancer, CODEX\), example set 2 of 2: one test field per task, laid out as[Fig\.3](https://arxiv.org/html/2611.26794#S3.F3)\. HERMES is the model trained on Orion, without retraining\. Fields are chosen among correct answers whose stated counts are within one cell of the truth \(Ki67 fraction within 3 pp, density within 15%\), with 30–70% epithelium and one patient per task and set\. Steps without a bracket have no truth in this cohort\.![Refer to caption](https://arxiv.org/html/2611.26794v1/haist_example.png)Figure 9:Haist cohort \(head and neck cancer, CODEX\), example set 1 of 3: one test field per task, laid out as[Fig\.3](https://arxiv.org/html/2611.26794#S3.F3)\. HERMES is the model trained on Orion, without retraining\. Fields are chosen among correct answers whose stated counts are within one cell of the truth \(Ki67 fraction within 3 pp, density within 15%\), with 30–70% epithelium and one patient per task and set\. Steps without a bracket have no truth in this cohort\.![Refer to caption](https://arxiv.org/html/2611.26794v1/haist_example_2.png)Figure 10:Haist cohort \(head and neck cancer, CODEX\), example set 2 of 3: one test field per task, laid out as[Fig\.3](https://arxiv.org/html/2611.26794#S3.F3)\. HERMES is the model trained on Orion, without retraining\. Fields are chosen among correct answers whose stated counts are within one cell of the truth \(Ki67 fraction within 3 pp, density within 15%\), with 30–70% epithelium and one patient per task and set\. Steps without a bracket have no truth in this cohort\.![Refer to caption](https://arxiv.org/html/2611.26794v1/haist_example_3.png)Figure 11:Haist cohort \(head and neck cancer, CODEX\), example set 3 of 3: one test field per task, laid out as[Fig\.3](https://arxiv.org/html/2611.26794#S3.F3)\. HERMES is the model trained on Orion, without retraining\. Fields are chosen among correct answers whose stated counts are within one cell of the truth \(Ki67 fraction within 3 pp, density within 15%\), with 30–70% epithelium and one patient per task and set\. Steps without a bracket have no truth in this cohort\.
## FReward\-based results

[Table6](https://arxiv.org/html/2611.26794#S6.T6)repeats the main comparison with the graded answer reward used in training instead of accuracy\. The ranking is unchanged: HERMES \(RL\) has the highest reward on every task \(tied with SFT on Ki67 source\) and the highest average\.

Table 6:Main results on Orion scored with the answer reward used in training \(ransr\_\{\\text\{ans\}\},[Sec\.3\.4](https://arxiv.org/html/2611.26794#S3.SS4); graded in\[0,1\]\[0,1\],×100\\times 100\) instead of accuracy; same 1,000 questions as[Tab\.3](https://arxiv.org/html/2611.26794#S1.T3), with the answer read from the last<answer\>tag as for the accuracy\. Average: mean of the four tasks\.
## GGRPO without the process reward

To isolate the process reward, we repeat the GRPO stage without it \(r=rfmt\+ransr=r\_\{\\text\{fmt\}\}\+r\_\{\\text\{ans\}\},[Sec\.3\.4](https://arxiv.org/html/2611.26794#S3.SS4)\), starting from the same SFT model with the same training questions, number of steps, batch size and learning rate\.[Table7](https://arxiv.org/html/2611.26794#S7.T7)compares it with the SFT model and with HERMES \(RL\)\.

Without the process reward, GRPO raises the average accuracy over SFT only from 78\.8% to 80\.0%, whereas with it the average rises to 84\.5%; the gap is largest on Density \(66\.4 vs\. 76\.0\) and Ki67 fraction \(81\.6 vs\. 86\.4\)\. During training, the answer reward stays flat without the process reward \(0\.71 over the first 40 steps, 0\.70 over the last 40\), while with it the answer reward rises from 0\.72 to 0\.74\.

The reasoning changes more than the answers\. Without the process reward, the share of correct intermediate quantities falls below that of the SFT model \(37\.2% vs\. 58\.4%\), whereas with it the share rises to 66\.2%\. The model also leaves the guideline steps\. On the two Ki67 tasks, 96–99% of its outputs follow a new sequence of steps that counts nuclei on the Hoechst channel of the mIF image rather than the epithelial nuclei on H&E, and the step that should name the image it reads names the marker instead; only 1\.2% of its epithelial nucleus counts on Ki67 source are correct, against 30% for HERMES \(RL\)\. It also stops stating some quantities: on Regions it reports a nucleus count in place of the epithelial share, and on Ki67 fraction it rarely states the Ki67\+nuclei outside the epithelium, so only 83\.7% of the needed quantities are stated\. Rewarding only the final answer thus leaves the reasoning free to drift from the guidelines, while the process reward keeps every step on the guideline and checkable against the truth\.

Table 7:GRPO with \(HERMES \(RL\)\) and without the process rewardrprocr\_\{\\text\{proc\}\}, from the same SFT model and with the same data, steps and hyperparameters \(Orion, same 1,000 questions as[Tab\.3](https://arxiv.org/html/2611.26794#S1.T3)\)\. Answer accuracy as in[Tab\.3](https://arxiv.org/html/2611.26794#S1.T3)\. Intermediate quantities: share of the four quantities a task needs that are correct \(unstated counts as wrong\), extracted by the same LLM judge for all three rows as for the baselines in[Fig\.4](https://arxiv.org/html/2611.26794#S4.F4); Stated: share of the needed quantities that are stated\.The same holds on the external cohorts without retraining \([Tab\.8](https://arxiv.org/html/2611.26794#S7.T8)\): GRPO without the process reward raises the average accuracy over SFT by 2\.4 points on Schürch and 1\.1 points on Haist, while HERMES \(RL\) raises it by 5\.5 and 3\.0 points\.

Table 8:Average answer accuracy \(%\) with and without the process reward, on Orion and, without retraining, on the external cohorts \(questions as in[Tabs\.3](https://arxiv.org/html/2611.26794#S1.T3)and[2](https://arxiv.org/html/2611.26794#S3.T2)\)\.
## HTask\-specific foundation\-model baseline

To compare with a model trained specifically for the four tasks on the same inputs, we encode the two images that HERMES receives for each question with frozen pathology foundation models: Prov\-GigaPath\[[61](https://arxiv.org/html/2611.26794#bib.bib19)\]for the H&E image and KRONOS2\[[50](https://arxiv.org/html/2611.26794#bib.bib62)\]for the mIF image, split back into the markers it shows \(Hoechst with CD3e and CD8a, or Hoechst with Ki67\)\. On these features we train one MLP head per task on the HERMES training questions \(density as a regression of the log density, Ki67 fraction as a regression of the percentage, Ki67 source and infiltrate present vs\. none as binary classification\), select the epoch on the Orion validation set and average three seeds\. The heads output a readout only, without boxes or intermediate quantities\.

On Orion, the baseline reaches an average accuracy of 80\.4%, above every MLLM baseline \(Gemini 3\.7 Flash: 74\.7%\) and below HERMES \(84\.5%;[Tab\.9](https://arxiv.org/html/2611.26794#S8.T9)\); it is the most accurate model on Ki67 source \(98\.0 vs\. 94\.4\), while HERMES is ahead on Density \(76\.0 vs\. 67\.1\) and Regions \(81\.3 vs\. 72\.1\)\. Applied without retraining to the external cohorts, its average falls to 59\.6% on Schürch and 43\.5% on Haist, below Gemini 3\.7 Flash, whereas HERMES keeps 76\.4% and 76\.7%\.

Table 9:Task\-specific foundation\-model baseline with the same inputs: frozen Prov\-GigaPath \(H&E\) and KRONOS2 \(mIF, the markers HERMES sees\) on the two images HERMES receives, with one MLP head per task trained on the HERMES training questions \(mean of three seeds\)\. The Orion\-trained heads are applied to the external cohorts without retraining, as HERMES is\. Answer accuracy and question subsets as in[Tabs\.3](https://arxiv.org/html/2611.26794#S1.T3)and[2](https://arxiv.org/html/2611.26794#S3.T2); Haist: average over the four tasks\.
## IPatient\-level analysis

Fields from the same patient are not independent, so we also compare HERMES \(RL\) with the strongest baseline, Gemini 3\.7 Flash, at the patient level\. We resample patients with replacement, each with all of their questions, recompute the average accuracy as in[Tabs\.3](https://arxiv.org/html/2611.26794#S1.T3)and[2](https://arxiv.org/html/2611.26794#S3.T2)and repeat this 10,000 times \([Tab\.10](https://arxiv.org/html/2611.26794#S9.T10)\)\. The difference stays above zero in every resample on Orion \(9\.9 points\) and Schürch \(9\.1 points\), and in 99\.2% of resamples on Haist \(4\.2 points\)\. Per patient \([Fig\.12](https://arxiv.org/html/2611.26794#S9.F12)\), HERMES is more accurate in four of the five Orion test patients; in the fifth \(CRC07\) both models exceed 91% and differ by 1\.1 points\. On Schürch \(the 874\-question subset covers 34 of the 35 patients\), HERMES is more accurate in 22 of 34 patients, less accurate in 2 and equally accurate in 10; on Haist, it is more accurate in 30 of 76 patients, less accurate in 21 and equally accurate in 25\.

Table 10:Patient\-level analysis of the average accuracy \(%\): bootstrap over patients \(each resample draws patients with all of their questions; 10,000 resamples; 95% percentile intervals\), on the questions of[Tabs\.3](https://arxiv.org/html/2611.26794#S1.T3)and[2](https://arxiv.org/html/2611.26794#S3.T2)\(Haist: average over the four tasks\)\. W / L / T: patients in which HERMES \(RL\) is more / less / equally accurate than Gemini 3\.7 Flash \([Fig\.12](https://arxiv.org/html/2611.26794#S9.F12)\)\.Figure 12:Accuracy per patient, HERMES \(RL\) against Gemini 3\.7 Flash, on all of a patient’s questions \(Regions scored as the present / none call\); marker area: number of questions\. Points above the diagonal are patients in which HERMES is more accurate\.
## JVisual counterfactuals

To test whether the stated counts are read from the mIF image, we edit the image at known cells and compare the reasoning before and after the edit\. For held\-out Orion fields \(300 Density, 200 Regions questions\), the CD3e and CD8a signal of chosen CD8\+T cells is replaced by the local background of the raw mIF crop, the image is rendered with the unchanged pipeline, and the truth is recomputed with the rules that generate the questions; the H&E image is not changed\. The edits remove one, three or all CD8\+T cells of the asked compartment, or apply the same edit at three tissue points without a T cell nearby \(sham\)\. Gemma\-4\-31B and Qwen3\.8\-27B receive the same images and are asked to report the quantities as JSON, since their free\-form reasoning states few of them \([Tab\.4](https://arxiv.org/html/2611.26794#S2.T4)\)\.

[Table11](https://arxiv.org/html/2611.26794#S10.T11)shows that the counts stated by HERMES follow the edits: removing three CD8\+cells lowers its count in 89\.7% of fields, against 69\.6% and 54\.4% for the baselines, and removing all of them lowers it in 98\.3%\. The sham edit leaves its count and answer unchanged in 73\.3% of fields, against 5\.1% and 16\.4%, so the baselines’ counts change even when the cells do not\. On Regions, removing every intra\-epithelial CD8\+cell turns the answer of HERMES into “none” in 61\.0% of fields \(20\.9% and 40\.4%\), and after a sham edit it still reports the infiltrate in every field\.

Table 11:Visual counterfactuals on Orion test fields \(300 Density, 200 Regions; %\)\. The mIF image is edited at known cells and the stated count is compared before and after the edit\. Delete 1 / 3 / all: CD3e and CD8a removed from one, three or all CD8\+T cells of the asked compartment \(Regions: of the epithelium\)\. Sham: the same edit at three tissue points without a T cell \(unchanged: count and answer\)\. Correct: the stated change is withinmax⁡\(1,0\.25​\|Δ\|\)\\max\(1,0\.25\\,\|\\Delta\|\)of the true changeΔ\\Delta\. Shares over the pairs whose outputs before and after the edit can be read \(Density: the count is stated; last row\)\.
## KBox\-level results on Regions

Because the regions group intra\-epithelial CD8\+cells by a distance threshold, a field can be boxed correctly with fewer or more boxes than the truth; we therefore count a match at a low IoU \(≥0\.1\\geq 0\.1\) and also report a stricter threshold \(≥0\.3\\geq 0\.3\)\.[Table12](https://arxiv.org/html/2611.26794#S11.T12)shows that HERMES \(RL\) reaches a box F1 of 60\.3% and 46\.0%, against 48\.9% \(GPT\-5\.6 Sol\) and 38\.3% \(Gemini 3\.7 Flash\) for the strongest baselines, and 46\.3% and 25\.1% after SFT\.

Table 12:Box\-level results on Regions \(Orion, same questions as[Tab\.3](https://arxiv.org/html/2611.26794#S1.T3); %\)\. True boxes are the regions of[Sec\.3\.2](https://arxiv.org/html/2611.26794#S3.SS2)\. Box F1: predicted and true boxes matched one\-to\-one by IoU, a match counting at IoU≥0\.1\\geq 0\.1or≥0\.3\\geq 0\.3, pooled over all fields \(boxes drawn on fields without infiltrate are false positives\)\.
## LGRPO seeds

We repeat the GRPO stage with two further seeds, starting from the same SFT model with the same training questions, rewards and hyperparameters \([Tab\.13](https://arxiv.org/html/2611.26794#S12.T13)\)\. Every seed has a higher average accuracy than the strongest baseline on all three cohorts, and the share of correct intermediate quantities varies by less than 1\.5 points across seeds\.

Table 13:HERMES \(RL\) trained with three GRPO seeds from the same SFT model, with the same data and hyperparameters\. Average answer accuracy \(%\) on the questions of[Tabs\.3](https://arxiv.org/html/2611.26794#S1.T3)and[2](https://arxiv.org/html/2611.26794#S3.T2)and share of correct intermediate quantities on Orion \(IQ, %;[Tab\.4](https://arxiv.org/html/2611.26794#S2.T4)\)\. Seed 0 is the model reported in the paper\. Strongest baseline: Gemini 3\.7 Flash for accuracy, Gemma\-4\-31B for IQ \(proprietary models hide their reasoning\)\.

相似文章

从ML预测到基于Toulmin论证模型的知情诊断辅助

arXiv cs.AI

本文提出一个框架,利用Toulmin论证模型对基于OCT图像的ML视网膜诊断进行结构化,整合生物标志物提取、医学大语言模型推理(MedGemma)和相似度度量(MedSigLip),以实现可解释且基于证据的诊断辅助。

多模态大语言模型能否从自身的漏检中学会发现小型脑转移瘤?

arXiv cs.AI

该论文提出了 LANTERN,一种错误驱动的递归学习框架,使多模态大语言模型(MLLM)能够从自身漏检的病灶中学习改进,将一个经过微调的 40 亿参数 MLLM 在 BraTS-MET 上的病灶检出率从 75% 提升至 94%,同时在外部队列和未见过的肿瘤类型上保持性能增益。