Manuscript Offprint

arXiv:2610.40752

PathoJev: Efficient Pathology Decisions from Shared Visual Context

Chengyang Zhang, Wenchuan Zhang, Bo Li, Xinyu Liu, Jiaming Yang, Mengran Li, Jie Chen, Wei Ju, Yuhao Yi, Hong Bu, Jiancheng Lv

Abstract

Pathology workflows require multiple visual judgments about the same slide, from identifying tumor type to assessing grade and invasion. Generating and parsing a separate textual response for each structured question adds latency between visual evidence and usable decisions. Building on the System One paradigm, we introduce PathoJev, a pathology model that directly predicts answer probabilities for whole-slide and region-level assessment. PathoJev encodes each slide once and evaluates independent question suffixes in batches over the shared visual context. Reusing the hybrid backbone's recurrent states further limits the computation that grows with slide-context length for each additional question. Across three whole-slide benchmarks, the 9B and 27B models achieve mean accuracies of 77.2% and 78.1%, exceeding SlideChat by 5.4 and 6.3 percentage points. Both scales also maintain competitive accuracy on five ROI benchmarks. On WSI-Bench, the 9B model runs 9.1×9.1 \times faster than SlideChat. Shared context accelerates eight-question workloads by 6.9×6.9 \times and 5.9×5.9 \times over separate prefix encoding, rising to 11.2×11.2 \times and 8.9×8.9 \times for 64 questions. These results provide a reusable probabilistic interface for combining multiple visual judgments in whole-slide and local tissue assessment. Code: https://github.com/ChyaZhang/PathoJev.

1. Introduction

Pathology assessment brings together multiple observations about tissue, including tumor type, histologic grade, and the presence of invasion. Synoptic reporting organizes specimen-level findings into explicit data elements and responses [8, 22]. At the image level, several such judgments can draw on tissue represented in the same whole-slide image (WSI). Whole-slide visual question answering bench-

marks capture this setting through questions about tissue morphology and diagnostic interpretation [7, 16]. This setting calls for reusing tissue evidence across questions that assess different aspects of the same slide.

Recent pathology vision-language models support instruction-following conversations about tissue images [19, 23, 26], whole-slide question answering and report generation [7, 11, 16], and explicit diagnostic reasoning [29]. These models express their answers through autoregressive text generation. For questions with specified alternatives, obtaining a decision therefore requires sequential decoding followed by answer extraction (Figure 1a). The generated text also does not directly expose a normalized distribution over the alternatives. When several questions concern the same slide, this generation process is repeated for each judgment, even though the underlying tissue evidence is shared.

The shared evidence and compact answer spaces suggest separating visual context processing from question-specific decisions. The System One paradigm provides this formulation by mapping an input state directly to typed probabilistic judgments [1], with recent extensions to shared image and video context [28, 31]. Whole-slide pathology makes the cost of accessing that context particularly relevant: tissue evidence spans a long sequence of patch representations, while each question may require only a binary or multiple-choice answer. Caching the prefix saves repeated prefill, but softmax attention still reads its keys and values for each new question. Efficient whole-slide decisions thus depend on both removing answer decoding and controlling the cost of reusing a long visual context.

Building on the System One paradigm, we introduce PathoJev, a pathology model for multiple decisions over shared tissue evidence (Figure 1b). A slide input pathway aggregates spatial patch features into a shared visual prefix. Questions branch independently from this prefix and

Figure

Figure 1. PathoJev: shared visual context for multiple pathology decisions. (a,b) Autoregressive answers versus direct probabilities from isolated questions sharing slide context. Re-reading context includes accessing cached prefix keys and values. (c,d) Whole-slide and ROI accuracy–latency comparisons. Accuracy averages each model's available results across three WSI or five ROI benchmarks. Latency is GPU forward time per question on WSI-Bench and PathMMU-tiny, respectively. Zero-shot WSI baselines use thumbnails.

are evaluated in batches, with a typed head returning answer probabilities directly. Reusing the hybrid backbone's recurrent states reduces the portion of question processing that grows with slide-context length. PathoJev also retains a region-of-interest (ROI) input pathway and learns from both whole-slide and ROI supervision, bringing slide-level and local tissue judgments into the same decision framework.

We evaluate PathoJev at 9B and 27B scales on three whole-slide and five ROI benchmarks. The 9B and 27B models improve mean whole-slide accuracy over SlideChat by 5.4 and 6.3 percentage points, and over WSI-LLaVA by 7.0 and 7.9 points, respectively. PathoJev-9B is 9.1× faster than SlideChat on WSI-Bench. A same-data autoregressive control further tests the decision interface: PathoJev-9B achieves higher accuracy on six of eight benchmarks, with 3.0× lower WSI latency and 2.4× lower ROI latency. For eight-question workloads, shared context reduces total time by 6.9× at 9B and 5.9× at 27B relative to separate prefix encoding, rising to 11.2× and 8.9× for 64 questions. These comparisons connect pathology performance to the complementary benefits of direct readout and context reuse.

Our contributions are as follows:

  • We introduce PathoJev, a System One model that supports whole-slide and ROI assessment through a unified interface for language-conditioned pathology questions and direct probabilistic decisions.

  • We combine spatial patch aggregation with independent question branches that reuse attention caches and recurrent states, and analyze the cost of additional decisions over long slide contexts.

  • We evaluate 9B and 27B models on three whole-slide and five ROI benchmarks, showing accuracy gains and latency reductions against a range of general-purpose and pathology-specific baselines, and analyze inference cost as question count and slide-context length increase.

References (26)

  • Towards injecting medical visual knowledge into multimodal LLMs at scale
  • WsiCaption: Multiple instance generation of pathology reports for gigapixel whole-slide images
  • WSI-VQA: Interpreting whole slide images by generative visual question answering
  • SlideChat: A large vision-language assistant for whole-slide pathology image understanding
  • A multimodal whole-slide foundation model for pathology
  • On calibration of modern neural networks
  • HistGen: Histopathology report generation via local-global feature encoding and cross-modal context interaction
  • Towards visual question answering on pathology images
  • LoRA: Low-rank adaptation of large language models
  • OmniMedVQA: A new large-scale comprehensive evaluation benchmark for medical LVLM. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 22170–22183, 2024
  • A visual-language foundation model for pathology image analysis using medical Twitter
  • WSI-LLaVA: A multimodal large language model for whole slide image
  • Data-efficient and weakly supervised computational pathology on whole-slide images
  • A visual-language foundation model for computational pathology
  • A multimodal generative AI copilot for human pathology
  • Impact of template-based synoptic reporting on completeness of surgical pathology reports
  • Quilt-LLaVA: Visual instruction tuning by extracting localized narratives from open-source histopathology videos
  • TransMIL: Transformer based correlated multiple instance learning for whole slide image classification
  • PathMMU: A massive multimodal expert-level benchmark for understanding and reasoning in pathology
  • PathGen-1.6M: 1.6 million pathology image-text pairs generation through multi-agent collaboration
  • Gated delta networks: Improving Mamba2 with delta rule
  • Visual Jev: Accurate and efficient decisions from shared visual context (opens arXiv in a new tab)
  • Patho-R1: A multimodal reinforcement learning-based pathology expert reasoner
  • Development of a large-scale medical visual question-answering dataset
  • VideoJev: System One Model for Video Understanding and Interaction
  • MedXpertQA: Benchmarking expert-level medical reasoning and understanding