arXiv:2611.09117cs.CVNov 2026

Manuscript Offprint

arXiv:2611.09117

PathXAI: Evidence-guided structured pathology reporting by transferable tissue segmentation

Zhaorui Tan, Jun Aun Tan, Weixiang Zhong, Xiaoxi Wang, Tan Pan, Xingdong Xue, Li Liu, Jing Zhang, Jing Zhang, Weimiao Yu

Abstract

Pathology reporting requires translating tissue observations across regions and slides into specific diagnoses and supporting morphological descriptions. However, the use of explicit tissue-composition measurements to guide H&E-based report generation remains underexplored. Thus, we developed PathXAI, which combines segmentation-derived tissue information with H&E images and optional domain knowledge to guide diagnostic reasoning, targeted re-inspection and structured report writing. Its segmentation component exceeded baselines in mean Dice on internal and external tests. In automated report evaluation on 1,200 public and 151 private cases, PathXAI achieved higher agreement with reference diagnoses and documented morphology than the H&E-based comparators. On the public evaluation cohort, PathXAI-Report exceeded Qwen + H&E in cancer family match rate by 4.4 percentage points and in finding F1 by 5.7 percentage points. PathXAI generates evidence-linked reports with a self-hosted pretrained vision-language model, without updating its weights.

Keywords: computational pathology, transferable tissue segmentation, pathology report generation, spatial evidence, multimodal agents

Pathology reports translate histological observations into diagnostic information that supports clinical decision-making. Preparing a report requires pathologists to interpret tissue structure across regions and, often, multiple slides, and synthesize these findings into a diagnosis and its supporting descriptions [1].

Current methods that directly using haematoxylin and eosin (H&E) based pathological for report generation mainly integrating visual information across tissue areas. HistGen aggregates local and global image context, while HistoGPT generates skin-disease reports from multiple gigapixel whole-slide images (WSIs) and links generated text to image regions through saliency maps [1, 2]. Beyond image aggregation, multimodal pretraining connects tissue appearances with diagnostic language. mSTAR learns from WSIs, reports and gene expression and improves downstream report generation [3]. PRISM2 uses clinical-dialogue supervision for diagnostic interpretation and report completion [4]. Broader medical vision-language models (VLMs), such as MedGemma, support diverse medical imaging tasks, including pathology report generation from WSIs [5]. Beyond combining information across images, pathology reporting involves selecting and revisiting tissue regions to resolve diagnostic uncertainty. To achieve that, PathChat supports interpretation through questions about supplied pathology images [6] and PathAgent extends visual question answering to active inspection by selecting another region or adjusting magnification [7].

Despite these advances, none of these approaches incorporates explicit tissue compositions as guidance. In related pathology tasks, explicit modelling of cells, tissue regions and their spatial relationships improves breast-lesion classification [8]. Quantifying tissue components also provides prognostic information in colorectal cancer [9]. Together, these findings suggest possible advantages of incorporating explicit tissue information into pathology report generation.

In this paper, we investigate whether explicit tissue compositions can help guide the pathology reporting. Tissue segmentation offers a way to make tissue composition and spatial organization explicit for pathology reporting. In radiology, MAIRA-Seg provides a promising direction as it incorporates information from segmentation masks into a multimodal language model and improves chest X-ray report generation over non-segmentation baselines [10]. Existing pathology segmentation models, including PathSegmentor and VISTA-PATH, support diverse organ- and scale-specific targets [11, 12]. However, we need consistent measurements of tumour tissue and other relevant tissue components across regions and slides for tumour reporting. This motivates training a segmentation model to predict a small, shared set of tissue categories across organs.

To this end, we propose PathXAI, a system that integrates tissue evidence derived from segmentation provided by PathXAI-Seg into structured reporting across multiple slides through PathXAI-Report (Fig. 1(a)). PathXAI-Seg, the generalizable segmentation component trained on diverse public datasets, segments a shared set of tissue categories across datasets (Supplementary Table 1). It provides spatially aligned segmentation overlays and its derived tissue statistics for selected regions of interest (ROIs) (Fig. 1(b) and Supplementary Methods section 1.2). The reporting component, PathXAI-Report, uses a pretrained VLM to integrate tissue evidence with H&E images and the known anatomical site for diagnostic comparison and targeted reinspection (Fig. 1(b)). For obtaining more domain knowledge, PathXAI provide an customized option to retrieve disease definitions and morphological descriptions from KEEP [13] to provide domain context for comparing diagnostic hypotheses (Supplementary Methods section 2.4). The resulting reports combine disease classification, tumour subtype and grade, when assessable, with descriptions of structure, cytology, necrosis and invasion (Fig. 1(b)). Recorded evidence links associate report fields with image inputs, tissue checks and domain context for inspection (Fig. 1(a) and Supplementary Methods section 2.6).

PathXAI uses a pretrained VLM on a researcher-operated, self-hosted inference service, without updating the reporting model's weights. Study-specific training is confined to the segmentation component, trained on a single NVIDIA GeForce RTX 4090 GPU.

We evaluated PathXAI-Seg on five internal and six external segmentation test sets. PathXAI-Seg achieved higher mean Dice, than the baselines on both internal and external tests (Fig. 1(c)). We compared reports with references in 1,200 public evaluation cases spanning 22 cancer types and 151 shared private cases. Each private case had one reference report from each of two pathologists. Meanwhile, the same two pathologists assessed preference and correction requirements in 132 cases randomly sampled from the public development subset (Fig. 1(c)). Specifically, in paired development-subset comparisons, reports using tissue statistics already agreed more closely with reference diagnoses than those using H&E alone, suggesting the benefits of using tissue evidence. Moreover, in both cohorts, PathXAI-Report further improves the agreement with reference diagnoses and documented morphology.

Results

References (51)