arXiv:2610.39441cs.CVOct 2026

Manuscript Offprint

arXiv:2610.39441

PathCowork: Learning from real-world pathology practice to build AI copilots

Sheng Wang, Jialu Yao, Maria V. Rossi, Shunsuke Koga, Esther Baranov, MacLean P. Nasrallah, Songhao Li, Jonathan Xu, Wei Du, Cindy McGrath, Timothy Chao, Anne Wang, Zhaohai Yang, Daniel Akuma, Selemon M. Walle, Olga Pozdnyakova, Edward B. Lee, Zahra Alipour, Annapurna Saksena, Rashmi Tondon, Nikolina Dioufa, David E. Elder, George J. Netto, Xiaowei Xu, Zhi Huang

Sheng Wang1^{1}, Jialu Yao2^{2}, Maria V. Rossi1^{1}, Shunsuke Koga5^{5}, Esther Baranov1^{1}, MacLean P. Nasrallah1^{1}, Songhao Li2^{2}, Jonathan Xu3^{3}, Wei Du5^{5}, Cindy McGrath1^{1}, Timothy Chao1^{1}, Anne Wang1^{1}, Zhaohai Yang1^{1}, Daniel Akuma1^{1}, Selemon M. Walle1^{1}, Olga Pozdnyakova1^{1}, Edward B. Lee1^{1}, Zahra Alipour1^{1}, Annapurna Saksena1^{1}, Rashmi Tondon1^{1}, Nikolina Dioufa1^{1}, David E. Elder1^{1}, George J. Netto1^{1}, Xiaowei Xu1^{1}, and Zhi Huang1,3,4,⊠^{1,3,4,\boxtimes}

1^{1}Department of Pathology and Laboratory Medicine, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA, USA

2^{2}Department of Electrical and Systems Engineering, School of Engineering and Applied Science, University of Pennsylvania, Philadelphia, PA, USA

3^{3}Graduate Group in Genomics and Computational Biology, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA, USA

4^{4}Department of Biostatistics, Epidemiology & Informatics, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA, USA

5^{5}Department of Pathology and Laboratory Medicine, Hospital of the University of Pennsylvania, Philadelphia, PA, USA

To whom the correspondence should be addressed: Zhi Huang (zhi.huang@pennmedicine.upenn.edu)

Abstract

Medical AI learns from the answers doctors record, but rarely from how they interpret the evidence to reach them. Here we introduce PathCowork, a framework that turns pathologists' narrated examinations into supervision for visual grounding and procedures that guide diagnostic AI agents. Synchronized gaze, narration and navigation link visual findings to the process of interpreting them. Across 48 sessions from 16 pathologists, the platform captured 1,028 minutes of slide review. Using these data, we trained PathCowork-1T for server deployment and PathCowork-27B for local deployment, with improved visual grounding. Across five organ-specific evaluations, agents combining this grounding with recorded diagnostic procedures achieved primary task scores averaging 17.9 and 24.1 percentage points higher than Claude Code and Codex, respectively, with shorter processing times and lower inference costs. Compared to the state-of-the-art multiple-instance learning AIs, the PathCowork agent-proposed regions achieved higher prostate-grading scores with limited slide labels. PathCowork can also help construct pathology AI benchmarks where questions derived from the recordings identified difficulties in recognizing viewing context and rejecting inapplicable premises. In summary, PathCowork proposes a new paradigm to scale up the data collection and train pathology AI through transparent reasoning from diagnostic sessions, opening a path towards systems that learn directly from routine clinical practice.

Main

Rising concerns, as well as regulatory frameworks, increasingly emphasize clinicians' ability to understand AI outputs. For instance, the FDA requires radiological computer-assisted diagnosis software to include labeling that explains how users should interpret its outputs 1^{1}. Concurrently, pathology AI commonly learns from images paired with diagnostic reports to classify disease and predict outcomes 2,3^{2,3}. However, these written reports preserve the outcome of interpretation while leaving much of the “reasoning” process itself unrecorded. In pathology, the reasoning behind the diagnosis plays a critical role: a doctor may survey the tissue, inspect suspicious regions, weigh alternative diagnoses and revisit uncertain findings before reaching a conclusion. The final report rarely captures the complexity of interpretation behind these decisions. Scaling up collections of images and reports cannot recover the “thinking” process that was never recorded.

In contrast, pathologists get educated to diagnose tissue through guided examination and discussion with experienced colleagues 4,5^{4,5}. At a shared microscope, trainees follow an expert's search through the tissue and hear the reasoning behind each decision. They learn to connect what they see with why it matters and what to examine next. However, this experience remains largely outside how medical AI has been trained contemporarily: they were taught what doctors concluded, but not how they interpreted the evidence. As a consequence, AI models learn to minimize the training loss rather than to emulate the reasoning process that makes a diagnosis credible and interpretable to humans.

Contemporary pathology AI typically learns slide-level predictions from tile features, either through multiple-instance learning (MIL), which aggregates tiles using only slide labels 6−8^{6-8}, or through transformer-based slide encoders built on pretrained tile encoders 2,3^{2,3}, to address diagnostic and prognostic tasks. These approaches rely on increasingly powerful foundation models, including vision-only encoders such as UNI and Virchow 9,10^{9,10} and vision-language models such as PLIP 11^{11}, CONCH 12^{12} and MUSK 13^{13}. More recently, PathChat and SlideChat have coupled pathology vision encoders with large language models to support diagnostic dialogue 14,15^{14,15}. Despite their differences, these models share a common form of aforementioned “weak” supervision: they learn from images alone or from images paired with labels, captions or reports, without access to the examination process through which pathologists reach a diagnosis. Each approach therefore leaves part of this process unaddressed. In MIL, the attention that drives slide-level predictions is learned indirectly from slide labels and need not correspond to the regions a pathologist would examine. PathChat supports diagnostic conversation but offers limited localization of the evidence behind its answers 14^{14}. Most of these models also offer clinicians limited means to adapt them to their own diagnostic practice. General-purpose coding agents such as Codex and Claude Code can navigate slides and expose their intermediate steps, but their underlying models are not trained on pathologists' diagnostic experience and are difficult to deploy within institutional infrastructure.

This demonstrates an urgent dual challenges and unmet needs: First, the expertise expressed in everyday clinical practice remains largely disconnected and unrecorded that could be leveraged to train medical AI; and Second, there is no such pathology AI to train the actual expert reasoning for a more transparent and reliable copilot. Work on selective navigation and expert gaze has begun to bring viewing behavior into model training 16−19^{16-19}. Our previous Pathology-CoT study showed that recorded viewing behavior paired with verified reasoning could supervise agents navigating tissue 20^{20}. Motivated by such unmet need and the existing gap in the field, here we introduce PathCowork, which represents a fundamental paradigm shift in how pathology data is recorded and how medical AI learns, from training the diagnostic conclusions to the training of the actual practice of interpretation (Figure 1). For the data collection, PathCowork captures diagnostic examinations as they unfold within a whole slide viewer “TissueLab” 21^{21}, linking pathologists’ observations and explanations to the tissue they are examining. Across 48 sessions, 16 pathologists contributed 1,028 minutes of narrated slide review, with gaze and navigation recorded alongside their observations. These records allow us to develop powerful agentic AI frameworks to locate relevant features and provide procedures that guide agents through new examinations, making their evidence and diagnostic steps transparent for human audibility (Main Video 1). This is established through finetuning open-source vision-language models (e.g., Kimi and Qwen) 22,23^{22,23} on these records to learn visual grounding and used the recorded observations to construct diagnostic procedures.

In our benchmarks, fine-tuning improved aggregate spatial grounding accuracy, which measures the model's ability to precisely locate specified pathological features within images, from 5.6% to 52.2%, compared with 24.4% for a frontier model at the time of evaluation. Across five organ-specific evaluations, agents combining the learned grounder with recorded examination procedures achieved primary task scores averaging 17.9% and 24.1% higher than Claude Code and Codex, respectively. Averaged across the same tasks, inference costs were 11.0- and 10.3-fold lower, with 6.2- and 4.7-fold speedups. PathCowork agent also supplied regions for slide-level MIL training, improving prostate grading when labelled training slides were limited. Additionally, PathCowork converts recorded examinations into case-specific benchmark questions that can test whether a model can use the visual context of a review, including recognizing the viewing scale and tissue location, rejecting questions with inapplicable premises, integrating evidence across slides and choosing where to look next. These questions depended strongly on the images: on the same 148 questions, Claude Opus 4.8 answered 26.4% correctly from text alone and 81.8% with images, a 55.4-percentage-point difference, compared with 59% and 74% on PathMMU. Compared with a pathology resident, the evaluated models showed the largest gaps in recognizing the viewing context and rejecting inapplicable premises, which implicates that the frontier models still struggle to recognize what they are viewing and when a question does not apply, and underscoring the need for (i) more rigorous benchmarks for pathology; and (ii) pathology-specific vision-language "reasoning" models.

Because PathCowork learns from the same process of observation and explanation through which pathologists are trained, routine diagnostic practice could become a continuing source for AI to learn passively. Each examination

2/56 could contribute to a growing body of experience that informs successive generations of medical AI. Two fine-tuned open-source models, PathCowork-1T for server deployment and PathCowork-27B for local deployment, are released at https://github.com/zhihuanglab/PathCowork, making the learned grounding available for reuse with diagnostic procedures.

3/56

References (46)