On held-out Orion patient samples, a compact four-billion-parameter architecture named HERMES was evaluated against leading multimodal systems to resolve tumor immune microenvironment readouts. Automated pathology models typically read hematoxylin and eosin slides alone, while clinical assessments rely heavily on protein identities that multiplex immunofluorescence captures. The fundamental tension stems from how these systems reason, because conventional reinforcement learning rewards only the final diagnostic conclusion, leaving every intermediate analytical step unverified.

Transitioning from black-box response generation to the step-by-step verification of intermediate quantities allows artificial intelligence to become dependable in clinical practice. As researchers Kexin Geng, Hanwen Xu, and Wei Qiu from Rice University and the University of Pennsylvania stated, they addressed this vulnerability by creating HERMES, which stands for H&E–mIF Reasoning with Multimodal Evidence Supervision. The system couples structural histology with marker-specific immunofluorescence, establishing a step-level ground truth that clinical scoring guidelines require.

Ground-Truth Alignment Across Paired Modalities

Standard oncology protocols evaluate tissue based on exact cellular phenotypes and spatial localization. The Immunoscore relies on the densities of CD3+ and CD8+ T cells within the tumor core and its invasive margin, tumor-infiltrating lymphocytes are quantified as a proportion of the stromal area, and the Ki67 index reflects the share of tumor nuclei that test Ki67-positive. General, medical, and pathology multimodal large language models are trained on H&E or natural images and have not learned to read mIF together with H&E, leaving them unable to reliably separate CD8+ T cells from other lymphocytes or detect tumor nuclei without epithelial markers.

HERMES handles this challenge by processing an H&E image alongside a marker-specific mIF image of the exact same field to answer four clinical questions. Each reasoning step identifies which imaging modality it examines, extracting the spatial compartment and nuclei counts from H&E while drawing marker-positive cell metrics directly from mIF.

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

Because both views correspond to the same physical section, the underlying image data yields a measured ground truth for every cell count without requiring manual human annotation.

The Impact of Step-Level Process Rewards

A critical assumption in clinical AI deployments has been that reinforcement learning focused on final answers produces sound internal reasoning. In reality, the strongest open-weight baseline reports only about a third of the intermediate numbers a diagnostic query requires, and merely 16% of those stated numbers are factually correct. Supervising the process itself alters this dynamic, preventing models from stumbling into correct conclusions through flawed assumptions.

Across four field-level tumor immune microenvironment tasks in colorectal cancer, the 4B-parameter HERMES attains an average accuracy of 84.5%, outperforming the 74.7% accuracy scored by the strongest of twelve proprietary, general, medical, and pathology systems. The verification process is essential to this gain: without reinforcement learning process rewards, reinforcement learning barely improves over supervised fine-tuning, reaching 80.0% compared to 78.8%.

Evaluating the computational overhead and economic impact reveals why step-level reinforcement learning alters operational deployments compared to standard end-to-end training. End-to-end training optimizes exclusively for the final token sequence, often hiding cascading logical errors behind correct final outputs and demanding extensive human-in-the-loop validation to catch hallucinations. In contrast, HERMES extracts explicit spatial compartments and cell counts at every intermediate stage, aligning its generation path directly with measurable physical ground truths derived from paired H&E and mIF images. This structural verification introduces upfront computational validation steps, but it fundamentally reduces the downstream economic cost of diagnostic errors and manual re-annotation. By systematically checking intermediate quantities—such as distinguishing CD8+ T cells from other lymphocytes before calculating densities—the model avoids the compounding penalties of unchecked generation paths.

Technical decision-makers evaluating diagnostic architectures must account for domain shifts across laboratory instruments and tissue profiles. Tested without retraining on an external patient cohort imaged using CODEX, HERMES sustains an average accuracy of 76.4% against 67.3% for the baseline, and reaches 76.7% versus 72.5% on head and neck cancer, a malignancy omitted entirely from training. Verifiable step-level supervision provides the operational predictability necessary for automated diagnostics to advance from experimental benchmarks into reliable, regulated clinical evaluation.

What’s behind it

Clinical models used to be judged solely on their final diagnostic verdict, but HERMES now forces systems to account for every single intermediate calculation along the way. In practice, leading open baselines produced only 16% factually correct intermediate figures, leaving the diagnostic chain to pure chance. Grounding every analytical step in paired histology and multiplex immunofluorescence pushed overall accuracy to 84.5%, outperforming a dozen proprietary and specialized multimodal systems. Can a 4-billion-parameter architecture maintain its diagnostic accuracy once deployed beyond the Orion platform on noisy clinical samples?

Artificial IntelligenceLarge Language ModelsAI in HealthcareOpen-Weight Models