Manuscript Offprint
arXiv:2610.39441PathCowork: 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, and Zhi Huang
Department of Pathology and Laboratory Medicine, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA, USA
Department of Electrical and Systems Engineering, School of Engineering and Applied Science, University of Pennsylvania, Philadelphia, PA, USA
Graduate Group in Genomics and Computational Biology, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA, USA
Department of Biostatistics, Epidemiology & Informatics, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA, USA
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 . Concurrently, pathology AI commonly learns from images paired with diagnostic reports to classify disease and predict outcomes . 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 . 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 , or through transformer-based slide encoders built on pretrained tile encoders , to address diagnostic and prognostic tasks. These approaches rely on increasingly powerful foundation models, including vision-only encoders such as UNI and Virchow and vision-language models such as PLIP , CONCH and MUSK . More recently, PathChat and SlideChat have coupled pathology vision encoders with large language models to support diagnostic dialogue . 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 . 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 . Our previous Pathology-CoT study showed that recorded viewing behavior paired with verified reasoning could supervise agents navigating tissue . 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” , 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) 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
Capturing the experience behind histopathological diagnoses
A whole-slide image and its diagnostic report describe the tissue and the conclusion, but leave much of the examination unrecorded: where a feature was found, the scale at which it became visible and why the pathologist examined it next. We developed PathCowork to capture these intermediate observations during slide review. Within a desktop-based whole-slide image viewer "TissueLab"²¹, pathologists examined cases while explaining their findings as they would to a trainee. A screen-mounted eye tracker and microphone recorded gaze and narration alongside mouse movements, viewport position and magnification (Figure 1a,b,c). An example of these synchronized observations during skin-biopsy review is shown in Main Video 2. We processed these recordings after each session to construct training examples.
The platform connected users, viewing environments and processing models (Figure 1d), producing observations that linked narration to the corresponding visual context (Figure 1e). The resulting records retained the image region, description, viewing trajectory and revisits, including uncertainty in the interpretation. For example, a description of peripheral palisading and myxoid stroma could be revisited alongside the corresponding tissue, whereas a question about an infiltrative tumor border remained a tentative observation (Figure 1f). Viewing-event processing, speech alignment, fixation filtering and cross-modal review produced these linked records (Figure 1g; Methods), supplying localized examples and explanations without a separate drawing or annotation step during the recorded examination.
The collection comprised 48 sessions and 1,028 minutes of review from 16 pathologists: six attending pathologists, four fellows and six residents (Figure 1h). Skin accounted for 423 minutes, followed by colon and lymph-node review (245 minutes), diffuse large B-cell lymphoma (102 minutes) and glioblastoma (99 minutes), with additional breast, prostate, cytology, bladder, neurodegenerative disease and stomach recordings. Among 4,759 categorized sentences, narration included diagnosis, architecture, cellular morphology, navigation and expressions of uncertainty (Figure 1i). Vocabulary also reflected the tissue being examined. For example, all five readers in the skin analysis used "nest" and "superficial" more often in skin than in the pooled non-skin records, with log-odds z-scores of 1.7–3.6 and 0.7–3.3, respectively (Figure 1j).
Compared with WSI–report pairs, these records retain the location of an observation and the “reasoning” that led to it (Figure 1k,l). They support two uses developed below: training AI models to identify visual evidence and assembling diagnostic procedures that can be inspected and reused as guidelines. The system comparison in Figure 1m places these capabilities alongside adaptation to a clinician’s practice and deployment within local infrastructure. It describes what each system makes available; the subsequent experiments evaluate grounding and task performance.
4/56

b
System setup
C

d

e
Processed data:
Image
Text
Grounding
Trajectory
Revisit
Thinking
g Step 1
Step 2
Step 3
Step 4
Hovering 2.3 sec @ 28.1x
f
Time
You see this peripheral palisading and it has this myxoid stroma.
The tumor near the edge seems very infiltrative?
h
i
skin (2,073)
lymph node (1,054)
DLBCL (737)
GBM (385)
diagnosis
architecture
morphology
navigation
bladder (168)
negation
hedging
spatial/quant.
comparison
k Traditional foundation model approach
m

WSI-report pairs as training data
Pathology whole slide image foundation model
Training data:
Image
Text
Limitations:
Where?
Unknown where those diagnostic features came from.
How?
Diagnostic reasoning behind the conclusion is unclear.
| Trainable | Personal adaptation | Evidence localization | Visible reasoning | Private deployment | |
|---|---|---|---|---|---|
| PathCowork | ● | ● | ● | ● | ● |
| Pathology-CoT | ✗ | ⊕ | ⊕ | ✗ | ⊕ |
| SlideChat | ● | ✗ | ✗ | ⊕ | ● |
| PathChat Modella / PathChat 2 | ✗ | ✗ | ⊕ | ⊕ | ✗ |
| Pathology FMs UNI / CONCH | ● | ✗ | ✗ | ✗ | ● |
| Claude Code | ✗ | ✗ | ● | ● | ✗ |
| Codex | ✗ | ✗ | ● | ● | ✗ |
Figure 1. Legend on page 6.
5/56
Figure 1. Recording and organizing the experience of slide review. a, Recording setup with a whole-slide image (WSI) viewer, eye tracker and microphone. b,c, Synchronized gaze, narration, mouse movements and viewport history during examination. d, System infrastructure connecting users, models, data and viewing environments. e, Structured observations retaining images, text, grounding, trajectories, revisits and interpretations. f, Examples of observations linked to the tissue being examined, including peripheral palisading, myxoid stroma and uncertainty about an infiltrative border. g, Processing of viewing events, speech alignment, gaze fixations and review history. h, Recording duration by tissue or disease group and participant training levels. The current collection contains 48 sessions, 1,028 min and 16 pathologists; n denotes sessions. i, Narration categories by tissue or disease group and in the pooled set; numbers in parentheses denote categorized sentences. Each sentence received one primary LLM-assigned category; 2,879 sentences assigned to "other" were excluded, leaving 4,759. Each pie has equal area; diagnosis, architecture and cellular morphology are annotated when they account for at least 10% of sentences. j, Vocabulary enrichment in each of five skin readers relative to the pooled non-skin records. Cells show log-odds z-scores from segment-level lexeme presence with a 0.5 cell correction; positive and negative values indicate higher and lower usage, respectively. Terms were selected exploratorily. k,l, WSI-report pairs and the spatial and procedural information not specified by those pairs. m, Comparison of seven systems or model families across trainability, personal adaptation, evidence localization, visible reasoning and private deployment. Filled circles indicate support, half-filled circles partial support and crosses lack of availability in the compared configuration (Methods). Visible reasoning denotes inspectable examination steps and associated evidence. PathChat has partial support for evidence localization; the representative pathology foundation models (UNI and CONCH) do not provide this output as standalone encoders. PathCowork supports all five capabilities, with model weights released.
Artwork on page 5.
Learning visual grounding from narrated examination
The recordings linked diagnostic language to the scale at which a finding was examined. When mitosis was mentioned, the median viewport magnification was 23× (19 observations), compared with 21× for nuclei and 13× for cytoplasm (Figure 2a). Anatomical structures were generally discussed at lower power: median magnification was 4.0× for glands, 3.0× for dermis, 2.6× for follicles and 1.4× for lymph nodes (103 observations). Although the distributions overlapped, the median magnification for mitosis was approximately 16 times that for lymph nodes, linking each concept to the scale at which pathologists examined it.
Spatial descriptions were associated with different extents of gaze movement (Figure 2b). The median root-mean-square spread of gaze around an utterance was 3.0 mm for "diffuse" and 2.3 mm for "infiltrate", compared with 1.7 mm for "around", 1.5 mm for "sheets", 1.1 mm for "nests" and 0.7 mm for "scattered". These measurements describe the area explored around the spoken observation. Together, the viewing scale and spatial context provide information that a transcript alone does not specify.
We used observations linked to their corresponding regions in the original slides to supervise visual grounding, a critical task in pathology in which a model is given an image and a specified concept and must localize the region corresponding to that concept. The examples in Figure 2c show how narrated microvascular proliferation and mitosis provide training targets for locating those findings. Supervised fine-tuning improved aggregate grounding in both 1T- and 27B-parameter open-source models (Kimi K2.6 and Owen 3.6 27B) relative to their unmodified counterparts (Figure 2d). The score rose from 19.8% to 51.2% for the 1T model and from 5.6% to 52.2% for the 27B model, gains of 31.4 and 46.6 percentage points, respectively. Both adapted models exceeded the GPT-5.4 reference of 24.4%.
We examined this adaptation more closely using seven melanocytic concepts, with training examples drawn from dermatopathology recordings pooled across participating pathologists. Concept recall, precision and spatial grounding were evaluated separately against Claude Opus 4.7, GPT-5.4 and Gemini 3.1 (Figure 2e). The adapted localizer showed stronger grounding for the dermoepidermal junction, dermal melanocytic nests and pagetoid spread, although recognizing a finding did not ensure accurate localization. The qualitative examples make this distinction visible: PathCowork followed the dermoepidermal junction and marked a localized epidermal region for pagetoid spread, whereas comparison outputs included contours displaced above the tissue or regions covering much of the field (Figure 2f). Additional examples are shown in Supplementary Figures S1 and S2 (Supplementary Note 1).
6/56

b
C
d
e
f
Figure 2. Legend on page 8.
7/56
Figure 2. Learning visual grounding from recorded behavior. a, Viewport magnification associated with mentions of diagnostic concepts. Dots represent observations, violin widths indicate density, and red lines and labels show medians; n denotes concept-associated segments. Magnification is the objective-equivalent viewport scale from per-slide optics metadata; unreliable rotated viewports were excluded. b, Gaze-density contours associated with six spatial terms, aligned on each utterance's gaze centroid and pooled by term. Annotations give the median per-utterance root-mean-square (RMS) gaze spread. Gaze was pooled from segments overlapping the utterance and its surrounding 5 s, retaining windows with at least three samples. Nested contours enclose 20%, 50% and 80% of smoothed in-field gaze density from dark to light; scale bars, 2 mm. c, Narrated microvascular proliferation and mitosis, showing recorded gaze and the corresponding findings located by the PathCowork grounder. d, Aggregate grounding performance of Kimi-K2.6 (1T parameters) and Qwen3.6-27B after supervised fine-tuning on PathCowork recordings (purple) and without fine-tuning (grey). Scoring uses Dice on filled polygon masks or equal-width, 50-pixel bands around predicted and reference polylines. Bars show the mean of the organ-level average Dice scores; error bars show the standard deviation across organs. The dashed line denotes GPT-5.4; the annotated difference for the 27B model is in percentage points. e, Concept recall, precision and spatial grounding for the PathCowork-1T localizer, Claude Opus 4.7, GPT-5.4 and Gemini 3.1 across seven melanocytic concepts, with 50 test image–concept pairs per concept (350 pairs in total). Test patients were separate from training patients. Radar axes are normalized separately; perimeter values label the individual scales. Training used pooled dermatopathology recordings. Missed targets and unparseable spatial responses receive zero localization scores and remain in the evaluation denominator. f, Qualitative localization of the dermoepidermal junction and pagetoid spread by the four models, shown as outlines and shaded regions. Ticks and crosses indicate correct and incorrect localization, respectively.
Artwork on page 7.
PathCowork compiles diagnostic experience into AI agents
As the grounded observations describe what to look for, the accompanying narration also describes how to proceed through an examination. PathCowork uses a diagnostic task to retrieve relevant review histories and organize their observations into a reusable diagnostic procedure (Figure 3a,b,c). For melanoma versus dysplastic nevus, the retrieved material includes examination of the dermoepidermal junction, assessment of junctional growth and the dermal component, and a search for mitoses at higher power. The resulting skill links these steps to the anatomical targets, viewing scales and visual concepts needed to carry them out. Viewer logs or gaze associate the narrated concepts with tissue regions, providing paired images and spatial targets for grounding (Figure 3c). These targets can trace a boundary, such as the dermoepidermal junction, or outline regions, such as dermal melanocytic nests. The agent can then use the learned grounder to locate those concepts on another slide. This construction separates the order and purpose of examination from the model that supplies its visual localization, while retaining their common source in recorded cases.
We selected five diagnostic tasks to address common challenges in cancer diagnosis and draw on the expertise of our collaborating pathologists. The resulting skills covered melanoma versus dysplastic nevus, prostate needle-biopsy assessment, glioblastoma versus lower-grade glioma, colon lymph-node metastasis detection and Nottingham grading of invasive breast carcinoma (Figure 3d). Each procedure specified a sequence appropriate to its task. The lymph-node skill, for example, first inventories the tissue and identifies node boundaries, then directs examination of the capsule, sinuses and node interior before zooming into a detected focus. The breast skill instead organizes examination around tubule formation, nuclear pleomorphism and a mitotic hotspot.
We evaluated these agents alongside Claude Code and Codex using the primary outcome for each task (Figure 3e). Giving each of the five tasks equal weight, primary scores were on average 17.9 percentage points higher for PathCowork than Claude Code and 24.1 points higher than Codex. For melanoma versus dysplastic nevus, PathCowork achieved 80% accuracy across 20 cases comprising 69 whole-slide images, compared with 65% for each comparator. It detected all melanomas in this evaluation, with 60% specificity, whereas both comparators had 40% melanoma sensitivity and 90% specificity (Supplementary Figure S3; Supplementary Note 2). The higher accuracy therefore involved a trade-off between missing melanoma and overcalling dysplastic nevi. For prostate assessment, the cancer-detection score was 95%, compared with 85% (17/20) for Claude Code and 35% for Codex. On the same 30 brain cases, PathCowork achieved 86.7% accuracy (26/30), compared with 60% (18/30) for Claude Code and 70% (21/30) for Codex. PathCowork correctly classified 13/15 cases in each class; Claude Code and Codex correctly classified 3/15 and 6/15 GBM cases,
8/56 respectively, and all 15 LGG cases. Lymph-node detection recall was 97%, 87.3% and 86%, respectively, and breast grade accuracy was 71.8% (28/39), 43.6% (17/39) and 53.8% (21/39), using the same 39 cases for all three agents. Component-score accuracy and grade-specific recall show where these differences arise (Supplementary Figure S3).
The higher task scores were accompanied by shorter processing times across all five tasks, with 6.2- and 4.7-fold speedups over Claude Code and Codex, respectively, calculated from the task-averaged times (Figure 3e). For skin, PathCowork required a mean of 39 s per slide, compared with 252 s for Claude Code and 117 s for Codex. For brain classification, the corresponding times were 20 s, 332 s and 285 s; for breast grading, they were 106 s, 300 s and 192 s. Colon lymph-node examination took a median of 22 s per slide with PathCowork, compared with 277 s and 322 s for the two comparators.
Reported inference costs were also lower for PathCowork in every task, ranging from 0.17 per slide, compared with 1.98 for Claude Code and 1.25 for Codex. The ratio of the task-averaged costs corresponded to 11.0- and 10.3-fold reductions, respectively. Skin examination cost 1.00 and 0.01, versus 1.04. These comparisons evaluate the complete behavior-derived agents: recordings supply the procedural skills, their execution sequences and the supervision used to adapt the grounder.
Model weights for PathCowork-1T (server deployment) and PathCowork-27B (local deployment) are released at https://github.com/zhihuanglab/PathCowork. Both learn visual grounding from the recorded observations and can supply the localization used by the diagnostic procedures. The agent results above use the PathCowork-1T grounder; the paired grounding comparison evaluates both models (Figure 2d). To further leverage the full breadth of pathologist behavior collected across multiple organs and diseases, beyond the five diseases evaluated in our diagnostic benchmarks, we explored General navigation learned from pathologist behavior, implemented as PathCowork-general, which learns generalizable viewing actions to support evidence gathering and subsequent LLM interpretation for open-ended diagnostic questions not yet covered by a distilled skill (Supplementary Note 3; Supplementary Figure S4; Supplementary Video 3).
9/56
PathCowork at pathologists' background

Cumulative expert time
~12 h
b
Can you help distinguish between melanoma and a dysplastic nevus?
user
Retrieve PathCowork slide history
Task define
dysplastic nevus vs. melanoma

Keyword expansion
dysplastic nevus / nevi atypical melanocytic nevus
melanoma / malignant melanoma
melanocytic neoplasm radial / vertical growth ...
Retrieved record - illustrative narration
JUNCTION
"At the DEJ, I see pagetoid spread, single melanocytes and confluent nests."
ASSESSMENT
"Concerning for melanoma, not a nevus."
NEXT
"Check dermal maturation, then search for mitoses at higher power."

C
PathCowork compiles the pipeline

PathCowork collects the grounding dataset
| DEJ | ||
|---|---|---|
| Dermoidermal junction | ||
| Dermal melanocytic nests | ||
| ... More concepts |
More paired examples
d
Dysplastic Nevus vs Melanoma
- Tissue inventory
Count and index all tissue fragments.
- Track the DEJ
Trace the dermo-epidermal junction.
- Junctional atypia
Scan the DEJ for melanocytic proliferation.
- Superficial dermis
Assess maturation and dermal nest architecture.
- Deep dermis & mitoses
Inspect reticular dermis near atypical regions.
Prostate Needle Biopsy Gleason Grading
- Core & midline
Verify core integrity and follow its central axis.
- Primary pattern
Assess the dominant tumor architecture.
- High-grade search
Mark suspicious minor high-grade regions.
- Secondary pattern
Assess other patterns across the remaining tumor.
- High-grade verification
Revisit candidates; verify high-grade architecture.
GBM vs Lower-Grade Glioma H&E Morphologic Features
- Tissue inventory
Count and index all tissue fragments.
- Survey & tumor map
Map tumor, infiltrative margins and pale zones.
- Sample necrosis rims
Sample 2.3 mm fields along necrosis boundaries.
- Verify & anchor
Confirm candidate features at high resolution.
Colon Lymph Node Metastasis Screening
- Inventory & indexing
Count and index all tissue.
- Node grounding
Ground node borders; outline macro mets, then deposits.
- Capsule & sinus search
No macro met / deposit: zoom along the grounded border.
- Interior node search
Search those nodes' interiors.
- Detected-focus zoom
If Step 3 or 4 detects a focus, zoom in.
Invasive Breast Carcinoma Nottingham Grading
- Survey & tubule score
Map invasive tumor and assess tubule formation.
- Nuclear pleomorphism
Assess nuclear size, shape and nucleoli.
- Select mitotic hotspot
Find the most active, cellular invasive edge.
- Count mitoses
Count consecutive fields totaling 2.0 mm².
e
Skin
Melanoma vs
dysplastic nevus

Prostate
Gleason grading
Brain
GBM vs LGG
Colon LN
Metastasis detection
Breast
Nottingham grading
Figure 3. Legend on page 11.
10/56
Figure 3. Constructing and evaluating diagnostic agents from recorded experience. a, Collection of multimodal review histories across sessions. b, Retrieval of relevant histories using a diagnostic task and expanded queries, with an illustrative narrated record. c, Compilation of diagnostic steps and collection of visual examples for grounding. The branching schematic represents the examination procedure. Below, paired images illustrate behavioral context from viewer logs or gaze (left) and corresponding spatial targets (right): a polyline for the dermoepidermal junction and polygons for dermal melanocytic nests. Overlays are schematic; stacked cards and ellipses indicate additional examples and concepts. d, Five compiled skills for skin, prostate, brain, colon lymph nodes and breast, in that order. The excerpts specify examination steps, targets and viewing scales. e, Task performance versus cost per slide for PathCowork (purple), Claude Code (orange) and Codex (grey outline). Bubble area represents time per slide; labels give the score and time. Primary metrics are skin diagnostic accuracy, prostate cancer detection, brain diagnostic accuracy, colon node detection recall and breast grade accuracy. Colon time is the median; other displayed times are means. Task-specific cohorts and configurations are detailed in Supplementary Note 2.
Artwork on page 10.
PathCowork guides slide-level learning with behavior-derived regions
The adapted agent could also supply spatial guidance for training another model. We tested this with our proposed "CoworkMIL", which uses regions proposed by PathCowork to guide multiple-instance learning (MIL) for prostate grading (Figure 4a). The agent examined slides in the MIL training set and identified regions of interest. These regions supplied tile-level supervision alongside the slide labels, directing training toward the tissue selected by the grounder. The regions were required during training only; the trained model subsequently predicted grades from the slide images.
We compared CoworkMIL with attention-based MIL (ABMIL) and a CLAM-inspired pseudo-label control, using three representative pathology image encoders (UNI2-h, Virchow2 and CONCH), 10–50 training slides and 20 seeds per setting (Figure 4b,c,d,e,f). At 20 training slides, CoworkMIL increased mean quadratic-weighted over ABMIL from 0.466 to 0.544 with UNI2-h, from 0.385 to 0.486 with Virchow2, and from 0.484 to 0.585 with CONCH. It also exceeded the mean performance of the pseudo-label control with each encoder. The largest gain over ABMIL was 0.151 with Virchow2 at 30 slides ( versus 0.469). The benefit depended on the amount of training data and the encoder: at 50 slides, the gap over ABMIL narrowed to 0.013 with Virchow2 and became negative with UNI2-h, whereas CONCH retained an advantage ( versus 0.643). Across the tested training-set sizes, gains were most consistent with CONCH.
In the auxiliary-loss sweep, increased from 0.500 at weight to 0.583 at , then changed little at (0.576; Figure 4g). In the illustrated biopsy, CoworkMIL concentrated attention on glandular tissue, whereas the highest-attention ABMIL patches included more surrounding stroma (Figure 4h).
As a separate comparison, EAGLE, which selects tiles with frozen attention and fits a slide-level linear classifier, achieved mean of 0.430 and 0.435 at 0.5 and 2.0 m per pixel, respectively, using the same 20-slide training subsets and 30-slide test cohort (Supplementary Note 4). These values were below the 0.486 obtained with Virchow2-CoworkMIL, although the pipelines differ in spatial sampling, feature representation and training supervision.
11/56

PathCowork grounds diagnostic patterns
Find prostate growth patterns to guide slide-level grading.
① Apply behavior-trained concept grounding
Convert regions into tile targets
② Transfer grounding to the tile grid
Tile center inside a grounded region
0 1 0 0 0 0 0 0 0 0 / 1
One target per tile; all tiles retained
Spatial supervision during training
Learn a slide classifier from grounded tiles
③ Frozen tile encoding
Tile features
Trainable attention pooling Score Softmax
ISUP prediction
Tile targets BCE
Supervise tile scores
Slide grade cross-entropy
Supervise the slide prediction
Inference: image features only · no ROI required
b
C
d
e
f
ROI supervision (N=20)
g
h

Top-16 patches of ABMIL
Top-16 patches of CoworkMIL
Figure 4. Legend on page 13.
12/56
Figure 4. PathCowork-guided multiple-instance learning for prostate grading. a, Expert review histories provide behavioral supervision for the PathCowork grounder, which proposes suspicious regions on multiple-instance learning (MIL) training slides. Region polygons are converted into binary tile targets. A frozen image encoder supplies tile features; learned tile logits receive auxiliary binary supervision and define attention weights for slide-level pooling. Training combines slide-label cross-entropy with tile-level binary cross-entropy, with a fixed auxiliary weight of in . PathCowork guidance is used only during training; inference requires the slide alone. Network glyphs and attention weights are schematic. , ISUP grading performance (quadratic-weighted ) versus training-set size for UNI2-h, Virchow2 and CONCH, comparing ABMIL (grey), the CLAM-inspired pseudo-label control (labelled CLAM; blue) and CoworkMIL with agent-generated ROIs (purple). Lines show means over 20 matched training seeds on a fixed 30-slide test set; bands show standard errors calculated across seeds (Methods). Stars denote paired, two-sided exact Wilcoxon signed-rank tests against ABMIL: , . Exact values are listed in Supplementary Table S5. e, Difference in between CoworkMIL and ABMIL across training-set sizes for each backbone. f, Comparison of the three methods at 20 training slides; bars show means over 20 seeds, and error bars use the same standard-error calculation as in . g, Effect of auxiliary-loss weight on CoworkMIL performance (UNI2-h, 20 training slides), averaged over ten seeds. These are the first ten seeds of the main comparison; the dashed line denotes their ABMIL mean. h, Illustrative prostate biopsy with CoworkMIL and ABMIL attention maps and the 16 highest-attention patches from each model.
Artwork on page 12.
PathCowork builds pathology AI benchmarks from recorded clinical practice
Beyond training AI models, PathCowork also enables the construction of case-specific benchmarks from recorded clinical examinations, allowing us to evaluate whether AI models can understand the visual context, interpret evidence, and make decisions encountered during real-world pathology practice. Specifically, we use PathCowork to generate case-specific questions from the pathologist's observations and viewing history, covering four demands: integrating evidence across slides, rejecting a question with an inapplicable premise, identifying the tissue location or viewing magnification, and choosing where to look next for a stated goal (Figure 5a). We formally named this benchmark as "CoworkExam". For example, a recorded recommendation to request C-kit staining supplies the answer to a question about which immunostain to order after reviewing several slides. Other questions require recognizing that a field does not contain the tissue assumed by the question or selecting a region for closer examination (Supplementary Figure S5). A separate text-based analysis examined how much of the recorded checking content was retained by generated questions, compared with questions selected from PathMMU and textbook-derived banks (Supplementary Figure S6; Supplementary Note 5).
We compared questions drawn from recorded cases with questions from PathMMU and a dermatopathology textbook (Figure 5b; Supplementary Note 5). On the same 148 CoworkExam questions, Opus 4.8 answered 39 correctly without images (26.4%) and 121 with images (81.8%), a difference of 55.4 percentage points. The displayed PathMMU scores were 59% and 74%, respectively (15 points). The displayed GPT scores were 23% and 55% on CoworkExam (32 points), versus 62% and 70% on PathMMU (8 points). Image-supported accuracy was higher for both question sources, with larger source-level differences on CoworkExam.
A separate comparison across Haiku, Sonnet and Opus showed a wider range of scores on CoworkExam questions: 41%, 52% and 77%, respectively, versus 56%, 73% and 74% on PathMMU and 32%, 30% and 33% on textbook questions (Figure 5b). The Sonnet-to-Opus difference was 25 percentage points on CoworkExam and 1 point on PathMMU. Recorded-review questions yielded a wider spread of scores across these model configurations.
Across the four categories, six frontier models and one pathology resident showed distinct capability profiles (Figure 5c). The resident scored 91% on rejecting inapplicable premises, compared with 13–79% for the models, and 84% on environmental sensing, compared with 46.5–79%. By contrast, the highest model scores were close to the resident's on multi-slide reasoning (89% versus 87%) and goal-directed navigation (90% versus 89%). The largest remaining gaps were in recognizing the visual context of an examination and identifying when a question was based on an incorrect premise, highlighting the need for more rigorous pathology AI benchmarks and better reasoning models that can learn from real-world clinical practice, as enabled by PathCowork.
13/56

Gaze trajectory
Voice feedback
Mouse hovering
Long Context
Multi-Slide Questions
Q: Pathologists want one immunostain to settle the case. Which IHC stain should be ordered?
(A) SOX10
(B) CD68
(C) CD117
(D) TTF-1
Ground truth from: "So I'd say get a C-kit."
Hallucination
Q: Does the melanoma infiltrate the DEJ?
(A) Yes, the melanoma...
...
(D) does not apply
Env. Sensing
Q: Where the specimen is this field taken from?
Q: Roughly what mag. are you viewing at?
Goal-directed Navigation
Q: Given the goal to examine the tumor morphology to determine its histologic type, which region should you examine next at higher power?
b

C
Figure 5. Legend on page 15.
14/56
Figure 5. Evaluating models using the context of recorded examinations. a, Generation of case-specific questions from review histories, with examples of multi-slide reasoning, rejection of an inapplicable premise, environmental sensing and goal-directed navigation. b, Left, schematic comparison of question sources. Middle, displayed accuracy without images (lower bar segment) and the additional score with images (upper segment) for Claude and GPT on PathMMU and PathCowork (CoworkExam); the total bar height gives accuracy with images and the dashed line marks the 25% reference for a four-option item with one accepted answer. Segment annotations give percentage-point differences. The Opus 4.8 comparison on CoworkExam uses the same 148 questions in both input conditions (39/148 without images; 121/148 with images). Right, accuracy on the separate 100-item sets per source across Haiku, Sonnet and Opus on PathMMU, PathCowork and textbook questions; the horizontal axis shows the input-price values used in the source comparison. The source schematic shows the provenance of the question materials. c, Accuracy of six frontier models and one pathology resident across four question categories: rejection of an inapplicable premise, multi-slide reasoning, goal-directed navigation and environmental sensing.
Artwork on page 14.
Discussion
Clinical AI has largely learned from static images and final diagnostic reports, leaving the interpretive process that connects them unrecorded. PathCowork addresses this gap by capturing how pathologists examine tissue, link spoken observations to specific image regions and viewing scales, and build diagnostic explanations. Treating clinical interpretation itself as the primary source of supervision marks a fundamental change in how medical experience becomes AI learning, moving beyond predicting endpoint labels to capturing how experts reason through visual evidence during diagnosis.
This work has several strengths. Most fundamentally, it transforms routine diagnostic experience into durable, reusable knowledge, preserving the reasoning that normally vanishes once a report is signed. We developed an evidence-localization grounder that outperformed frontier commercial models. Agents combining this grounder with recorded diagnostic procedures were more accurate, faster and substantially cheaper to run than Codex and Claude Code. Furthermore, the value of this captured expertise extends beyond agents: using agent-identified regions to guide slide-level model training when labelled slides are limited shows that recorded clinical reasoning can become transferable supervision across computational tasks. Finally, this shift from static answers to active reasoning changes how medical AI should be judged. Through CoworkExam, evaluation moves beyond factual recall or disease naming to test interpretation in context, including whether a model can recognize the viewing context, reject inapplicable premises, integrate evidence across slides and decide what to examine next.
This work has several limitations. First, the current evaluations measure the standalone diagnostic accuracy of PathCowork, establishing the performance of the agent alone. In the foreseeable future, however, PathCowork is intended to serve as a copilot for pathologists, and how the system affects clinicians during routine diagnosis remains unstudied. Prospective studies of real clinical use, although out of the scope in this work, will be needed to determine whether pathologists using PathCowork work faster, diagnose more accurately, gather more complete evidence and experience less subjective fatigue over the same duration of work, while also assessing their perceived usability and overall experience with the system. Longitudinal follow-up should also examine whether sustained use maintains or erodes clinicians' unaided diagnostic proficiency.
Second, the current recordings capture the complete traditional diagnostic workflow of a pathologist directly examining tissue images and interpreting findings. Increasingly, however, pathologists are adopting AI tools, such as automated cell counting or mitosis detection, to accelerate their work. Extending PathCowork from two-way interactions between pathologists and images to three-way interactions among pathologists, images and AI tools would capture how clinicians use and interpret AI outputs during diagnosis, enabling future agents to learn from these interactions.
Third, learning from recorded examinations is currently passive, so diagnostic concepts may receive uneven supervision depending on how often they arise during routine cases. A partly active learning approach could allow an agent to recognize concepts or subtle morphological distinctions it has not yet learned well and ask targeted questions, request demonstrations or seek corrections during an examination, focusing supervision where needed and adapting the system to an individual pathologist's specialized expertise.
15/56
Looking ahead, these capabilities point toward AI systems that could shadow pathologists during routine diagnosis, learning mostly by observation while asking targeted questions when unfamiliar or ambiguous findings arise. Paired with rigorous benchmarks such as CoworkExam to test whether an agent has learned to interpret visual evidence in context and act appropriately, this direction offers a foundation for transparent, personalized clinical copilots shaped directly by the experts they work alongside.
Methods
Study design and recorded corpus
The study was approved by the Institutional Review Board of the Perelman School of Medicine at the University of Pennsylvania (IRB #857258), and all participants provided informed consent. Recording took place from February 2025 to September 2026. The recorded corpus comprised 48 sessions and 1,028 min of review from 16 pathologists: six attending physicians, four fellows and six residents. These 16 participants included 12 co-authors of this study and four pathologists whose recordings were reused from our previous Pathology-CoT study²⁰. Participants reviewed diagnostic or teaching material while explaining their observations as they would during a discussion at a microscope. Eye-tracker calibration preceded recording. Recordings with unusable audio were excluded from transcription-based processing.
A session denotes one continuous sitting at the WSI viewer; it can contain several slides, and a slide can be revisited. Sessions, slides and extracted viewing segments therefore represent different units of observation. The image collections span skin, prostate, breast, brain, lymphoid, gastrointestinal, bladder and cytology material (Supplementary Table S1). Public recording sources included The Cancer Genome Atlas (TCGA)²⁵, DROID-skin²⁶,²⁷ and LNCO2²⁸. Recordings were processed after the session to produce learning material.
The recordings supplied grounding-training examples, grounding-evaluation examples and material for skill extraction. Grounding training and evaluation were separated at the patient level. Skills and complete agents were evaluated on unseen cases outside the recordings used for grounding training and skill construction. Benchmark construction drew on the full recorded corpus; benchmark evaluation therefore included external models and a pathology resident, without evaluating the PathCowork models.
Recording platform and synchronization
PathCowork records slide review and narration on a common timeline. The platform extends the TissueLab whole-slide image (WSI) viewer²¹, with a Next.js browser interface and an Electron desktop application. Viewport coordinates, magnification, mouse position, gaze and audio are recorded while a pathologist examines a slide and explains the findings.
Gaze coordinates enter the viewer through a WebSocket connection to a calibrated eye tracker. Mouse and viewport events are captured through viewer hooks and browser event listeners, and audio through the media-capture interface. Mouse and viewport state are polled at 10 Hz, and the gaze buffer is read at 20 Hz; the tracker sampling frequency is distinct from this readout rate. Events are timestamped against the workstation clock to align speech with the visual field. Alignment resolution depends on polling, buffering and transcription timing.
Sessions were recorded on Windows workstations with the available eye-tracker drivers. The software supports local and server-backed storage. Screen recordings allow the event streams to be checked against the slide displayed during review. Subsequent processing operates on the saved streams.
Processing viewing events and speech
The event-processing pipeline groups pan, zoom and dwell records into viewing episodes. Low- and intermediate-power events capture tissue survey, whereas high-power events capture examination of individual cellular features. Survey views are binned to 5× or 10× equivalents. A stationary view lasting more than 1 s, or continuous panning lasting more than 2 s at these scales, defines an inspection event. High-power views yield a 1,024×1,024-pixel crop centered on the viewport. Brief navigation events are retained in the trajectory.
16/56
Audio is transcribed with Whisper-large-v3-turbo²⁹ using pathology vocabulary and slide context as prompts. Segment timestamps link each utterance to the corresponding viewing episode. A Qwen3-4B text classifier²³ receives the utterance together with two preceding and two following segments to distinguish diagnostic observations from interface discussion, off-topic speech and other non-diagnostic content. The raw transcript is retained alongside the normalized description for checking against the original speech.
Gaze filtering and spatial association
Gaze samples are mapped from screen coordinates into WSI coordinates using the recorded viewport. A hybrid velocity- and dispersion-based procedure identifies fixations³⁰. The velocity stage uses a threshold of 1,800 pixels s⁻¹ in the mapped image coordinates. The dispersion stage uses a 220-pixel threshold and a minimum duration of 90 ms, with dispersion calculated as the sum of horizontal and vertical coordinate ranges. Each retained fixation carries its start and end times, duration, centroid, sample count and dispersion.
For each speech-aligned region, retained samples are rasterized into a two-dimensional density map, smoothed and thresholded to obtain contiguous attention regions. These regions can be represented as boundaries or polygons in WSI coordinates (Methods Figure M1). These boundaries represent the clinician's sampled visual attention.
17/56
| Initial Gaze | Processed Gaze | Processed Boundary | |
|---|---|---|---|
| 05 seg_0012A blood vessel containing erythrocytes is visible within the hypercellular tumor, representing a component of microvascular proliferation. | |||
| 10 seg_0018So this is a little focus of microvascular proliferation. | |||
| 25 seg_0038you'd find some normal, like the remainders of the processes | |||
| 31 seg_0049And some of these may not be neoplastic. | |||
| 46 seg_0069see lots of proliferation. Let's see if we see it. Yeah, so here's a mitosis. You can see that |
Methods Figure M1. Gaze processing and extraction of attention regions. Each row shows a recorded segment and its aligned narration. Columns show the initial gaze samples, samples retained after velocity- and dispersion-based fixation filtering, and the resulting attention boundaries over the viewed tissue. The side-by-side views allow the extracted regions to be inspected against the tissue and narrated findings, including microvascular proliferation and mitosis in glioblastoma.
Cross-modal association and review
The pipeline forms candidate regions from gaze fixations, mouse-position density and viewport changes concurrent with speech. An utterance can have fewer than three usable candidates, depending on the recorded behavior. Qwen3.5-397B-A17B²³ receives the image, candidate overlays and aligned narration and selects the region that best matches the described finding. The selected geometry, source modality and narration form a localized training example.
Nearby viewing events at similar magnifications are merged to simplify the navigation trajectory. Returns to a previously examined region are retained as revisits. A review interface presents the crop, transcript, generated description and
18/56 preceding context together. Reviewers can check their correspondence and export decisions for downstream filtering (Methods Figure M2).

Methods Figure M2. Interface for reviewing generated examples. The reviewer displays the original utterance, the generated description, preceding narration and the corresponding image. Controls record approval or rejection and export the review decisions. The screenshot illustrates an unreviewed example.
Each processed example retains its source image, original narration, timestamps, WSI coordinates and viewing scale. Generated descriptions and contextual summaries accompany the recorded speech; fields for uncertainty and interpretation are inferred from that narration. Trajectories preserve the sequence of views and link repeated visits. These links make derived examples traceable to the original slide and utterance. Detailed fields are listed in Supplementary Table S2.
Descriptive analysis of recorded behavior
For the narration composition analysis, an LLM assigned each sentence one primary category using the preceding sentence as context. Among diagnostic-review recordings, 7,638 sentences were categorized; 2,879 assigned to “other”
19/56 were excluded, leaving 4,759 pathology-related sentences. This categorization is separate from the diagnostic-content filter used during record processing. Vocabulary enrichment was calculated from segment-level presence or absence of each lexeme for each skin reader versus the pooled non-skin records. The log odds ratio used a 0.5 correction in all four contingency-table cells and was divided by its estimated standard error. Displayed terms were selected exploratorily for consistent directions across readers.
Concepts were identified by lexical matching and could overlap within a segment. Objective-equivalent viewport magnification was calculated as the slide's base objective multiplied by , where and are the viewport dimensions in slide pixels. Per-slide optics metadata supplied the base objective; unreliable rotated viewport boxes were excluded. For the spatial-term analysis, gaze points were pooled from whole viewing segments overlapping an utterance and its surrounding 5 s. Windows containing fewer than three points were excluded. RMS spread was the square root of the mean squared distance from the window centroid, converted to millimeters using per-slide pixel spacing. Centered windows were pooled by term with equal weight per gaze sample, binned within mm and smoothed with a 300 m Gaussian. Contours enclose 20%, 50% and 80% of the smoothed in-field mass. These analyses are descriptive: segments and overlapping gaze windows within a reader are not independent observations.
Construction of executable skills
Skill construction begins with a target clinical task. Task names are expanded into related diagnostic terms and used to retrieve relevant recorded narration and case context. For the melanoma-versus-dysplastic-nevus task, these terms include atypical nevus, melanocytic neoplasm and melanocytic proliferation. The retrieved material is pooled across the participating dermatopathologists.
Narration is organized into an ordered procedure, such as finding the dermoepidermal junction, examining junctional growth, assessing the dermal component and searching for mitoses. Each procedural concept is then linked to supporting image regions and the magnifications at which those regions were examined. The available spatial representation can be a polygon, bounding box or polyline, depending on the finding. Repeated retrieval and grounding connect the procedural steps to examples from the recordings.
The resulting skill.md specifies the target anatomy, viewing scale, action and decision context for each step. The execution sequence implements the examination order and viewing scales extracted from the recordings. The skill guides an agent that can navigate a WSI and invoke a trained localizer; supervised fine-tuning on the associated behavioral examples teaches the localizer to identify the concepts required by the procedure.
Supervised concept grounding
The main grounding comparison evaluates Kimi K2.6 and Qwen3.6-27B before and after supervised fine-tuning on recorded examples. The adapted models are named PathCowork-1T and PathCowork-27B, respectively. Each example pairs an image and concept query with a structured spatial response. The detailed dermatopathology grounding evaluation in Figure 2e,f and the agent in Figure 3 use the PathCowork-1T localizer. Additional Qwen development examples retain their own model configuration (Supplementary Note 1); the atlas-derived glioma adaptation study below is a separate experiment. Model identifiers are reported by experiment in Supplementary Table S3.
The two main adaptation runs used rank-32 LoRA, a peak learning rate of , batch size 16 and two training epochs. We used the checkpoint saved at the end of training. Separate development experiments examined model size, numerical precision and training duration to characterize the trade-offs between localization and deployment requirements. The 4B experiments examine spatial-format and reinforcement-learning choices at a smaller scale.
Training examples and reference geometries were derived from recorded viewing behavior and aligned narration, with gaze-derived candidate regions extracted from filtered fixations (Methods Figure M1). Gemini 3.1 screened candidate references for obvious errors, followed by manual spot-checking by a pathologist. Erroneous examples were removed or corrected. Data augmentation and automatic generation of negative examples supplemented the behavior-derived examples. Test examples were constructed using the same procedure, with 50 image-concept pairs per evaluated concept and patient-level separation from the training data. The seven-concept dermatopathology evaluation therefore comprised 350 image-concept pairs (Supplementary Note 1).
20/56
In the main grounding evaluation, missed targets and unparseable spatial responses receive a localization score of zero and remain in the evaluation denominator. For the aggregate grounding evaluation in Figure 2d, spatial agreement is measured by Dice, , where and are predicted and reference masks. Polygons are rasterized as filled masks. Predicted and reference polylines are each expanded into a band of the same 50-pixel width before mask comparison. Dice scores are first averaged within each organ. The aggregate score is the mean of these organ-level averages, and error bars show their standard deviation. Detection recall is the number of correctly detected positive examples divided by the number of reference-positive examples; precision is the number of correctly detected positive examples divided by the number of predicted-positive examples.
Concept evaluations distinguish detection from spatial agreement with the reference region. We report detection recall and precision separately from grounding against regions and contours derived from pathologist behavior. Additional prostate analyses measure localization IoU and the proportion of outputs that can be parsed. We varied training-set size to examine overall and concept-specific detection and localization, and compared fixed-step with equal-epoch training budgets (Supplementary Figures S7, S8 and S9; Supplementary Note 6). Comparisons with frontier models include aggregate prostate results and individual fields (Supplementary Figures S10, S11 and S12). Withholding cribriform examples assessed transfer to a concept without direct supervision (Supplementary Figures S13 and S14). Separate configuration comparisons assessed backbone size, numerical precision and training duration (Supplementary Figure S15a,b,c; Supplementary Note 7).
Spatial-format selection and glioma adaptation
Before constructing supervised targets, we sampled the unadapted Qwen3.5-4B model under six prompts requesting different spatial formats. The comparison used 60 Ivy GAP microvascular-proliferation tiles from eight held-out donors, including 40 positive tiles, at approximately 3 m per pixel and 2.3 mm field width. These tiles were used for format development. Selection considered region production, presence discrimination and whether polygons could represent more than an axis-aligned rectangle. A region was classified as non-rectangular if it had more than four vertices or more than two distinct values along either coordinate axis. Localization was measured separately. The selected prompt contained one hypothetical JSON example; detailed format comparisons are reported in Supplementary Note 8.
Supervised inputs consisted of an image and a concept query, with a target JSON response containing polygons in normalized integer coordinates from 0 to 999, or an absent response for a negative example. Cross-entropy loss was computed only at answer-token positions; image and prompt positions had zero loss weight. We used rank-32 LoRA adaptation, Adam with learning rate , batch size eight and 768-pixel image inputs. Checkpoints were selected by validation negative log-likelihood using a donor-grouped split. The supervised initialization used for reinforcement learning was trained for two epochs.
Reinforcement learning was run from the base model and from the supervised checkpoint using the same pool of 2,553 records, including 426 negatives. A third condition used a separately supervised checkpoint and a pool augmented with 284 lower-grade glioma negatives. The corresponding supervised validation pools contained 77 records without augmentation and 117 with augmentation. The third condition changes both initialization and the reinforcement-learning prompt pool.
We used grouped response sampling following GRPO. At each of 100 reinforcement-learning steps, current weights were re-exported for sampling eight responses to each of 12 prompts at temperature 0.9. Each response's advantage was the unscaled difference between its reward and the mean reward of the eight responses to that prompt. Groups with identical rewards contributed no gradient. Each sampled batch received one importance-weighted policy-gradient update on response tokens, using rank-32 LoRA and learning rate . The objective was an unclipped, unregularized group-relative REINFORCE estimator, with the group mean as its baseline and spatial agreement as its reward.
For positive tiles, the reward was , where the indicators denote a parseable response and at least one non-rectangular polygon. The spatial score combines purity , the fraction of predicted area overlapping the atlas annotation, and coverage , the fraction of annotated area recovered; it is zero when there is no overlap. For negative tiles, the reward was . Masks were rasterized at pixels. Positive and negative tiles therefore had reward maxima of 1.00 and 0.90, respectively. Validation localization and presence discrimination were monitored alongside sampled training reward; their trajectories and the format-development results are reported in Supplementary Note 8.
21/56
Scope of the system capability comparison
Figure 1m compares the available implementations of PathCowork, Pathology-CoT , SlideChat , PathChat , representative pathology encoders (UNI and CONCH) , and the Claude Code and Codex configurations used in this study. PathChat and PathChat 2 are grouped as one family; the SlideChat entry refers to its released CVPR 2025 implementation.
Trainability denotes access to adapting the diagnostic model with additional training data; personal adaptation denotes a mechanism for learning from a clinician's recorded practice. Evidence localization denotes explicit spatial outputs such as regions, coordinates or annotations. Visible reasoning denotes inspectable examination steps, actions and associated evidence. Private deployment requires patient-facing inference to remain within the user's infrastructure. Partial support denotes a capability available in only part of the workflow or with limited output. The entries describe implementation capabilities. The dermatopathology application used recordings pooled across participants.
Agent-system evaluation
The organ-level comparison evaluates PathCowork, Claude Code and Codex on five slide-review tasks: melanoma versus dysplastic nevus in skin biopsies (20 cases, 69 WSIs), prostate cancer detection and ISUP grading (20 slides), Nottingham grading in breast resections (39 matched cases), glioblastoma versus lower-grade glioma in brain resections (30 cases, 15 per class), and metastasis detection in colon-resection lymph nodes (77 slides; ten positive and 67 negative). Evaluation images came from HISTAI (skin and breast), PANDA (prostate), TCGA (brain) and LNCO2 (colorectal lymph nodes); evaluation units are listed in Supplementary Table S4. Agents inspect WSIs through slide-navigation tools and return task-specific diagnostic outputs. The PathCowork agent additionally uses a skill assembled from the recordings and a trained localizer.
PathCowork was run once per evaluation unit, defined as a case or WSI according to the task. Its scripted harness executes a finite set of spatial inspection steps at specified viewing scales, calling the grounder to identify the structures required by the skill. For example, junctional examination traverses the identified dermoepidermal junction at the prescribed scale. Execution terminates when the prescribed inspection steps have been completed; no additional agent-turn cap or task-level timeout was imposed on this workflow. An LLM summarizes the collected findings into the final diagnostic output. This completion rule differs from the iterative navigation used by the general-purpose agents.
The brain comparison used the same 30 cases for all three agents, with 15 cases per class. The two missing Claude Code reports were counted as incorrect in the 30-case accuracy and the corresponding class-recall denominator; PathCowork and Codex returned all 30 reports. Runs that did not complete within the time limit were counted as incorrect for task success. Elapsed time and API costs include failed runs through termination; a timed-out run contributes its full time limit and the API cost incurred during that run.
For the 20-slide prostate comparison, a Claude Code timeout is counted as a cancer-detection failure (17/20 detected). Its ISUP and MAE are calculated from the 19 valid grade predictions, without imputing a grade for the timeout.
Colon node-level references were taken from the LNCO2 ground truth. Node detection recall measures the proportion of reference lymph nodes located by the agent. End-to-end per-node metastasis recall uses all ground-truth tumour nodes as its denominator and counts each node called positive as a true positive; missed tumour nodes count as false negatives. Per-node specificity measures the proportion of reference non-tumour nodes called negative. Slide-level detection is evaluated separately.
The overview uses one primary endpoint per organ: diagnostic accuracy for skin and brain, cancer detection for prostate, grade accuracy for breast, and node detection recall for colon lymph nodes. Secondary endpoints include melanoma recall and specificity, ISUP quadratic-weighted and mean absolute error, breast component-score accuracy and grade-specific recall, class-specific brain recall, and colon per-slide recall and specificity. Detailed results, model configurations, task-specific denominators and reporting completeness are given in Supplementary Note 2 and Supplementary Figure S3. For breast, all three agents were evaluated on the same 39 cases (10 grade 1, 14 grade 2 and 15 grade 3). Overall-grade and component-score accuracies use 39 as the denominator. Grade-specific recall uses the number of reference cases of that grade. Costs are reported per slide at the recorded API prices; times are wall-clock values, with median time used for colon.
22/56
Cross-task summaries give each of the five tasks equal weight. The average performance gain is the arithmetic mean of the five task-specific percentage-point differences between PathCowork and each comparator. For cost and time, we first average the five reported task-level per-slide values for each system, then divide the comparator's average by the PathCowork average to obtain the cost-reduction factor or speedup. The time summary combines the reported mean times for four tasks with the median time for colon. Calculations use the source values before rounding for display.
ROI-supervised multiple-instance learning
CoworkMIL transfers regions proposed by PathCowork on MIL training slides into auxiliary spatial supervision for a slide classifier. These regions are outputs of the concept grounder for prostate architectural patterns, including well-formed glands, fused glands, cribriform architecture, solid sheets and cords. Concept-specific regions are combined into binary spatial targets. The image encoder remains frozen while the pooling model learns from slide grades and binary region-of-interest (ROI) targets. At inference, the classifier uses image features alone, without running PathCowork or supplying ROIs.
From a 100-slide PANDA subset , we constructed a 65-slide training pool and a fixed 30-slide test set, with five test slides in each of six categories (benign and ISUP grade groups 1–5). Training and test slide identifiers were disjoint. Cancer slides without available ROI annotations were preferentially allocated to the test set; cancer training slides required ROIs, whereas benign slides used empty masks. Subsets of 10, 20, 30, 40 or 50 training slides were sampled by cycling through shuffled grade-specific lists. Each comparison used 20 matched runs, sharing the training subset across methods within a run. Subset sampling used seeds 1000–1019, and model initialization and training order used seeds 0–19.
Non-overlapping 256-pixel level-0 tiles were retained at 25% tissue coverage, estimated by saturation-channel Otsu thresholding on slide thumbnails. Tiles were resized to 224 pixels with ImageNet normalization for UNi2-h and Virchow2, or to 448 pixels by bicubic interpolation with CLIP normalization for CONCH. Cached features comprised 1,536-dimensional UNi2-h class tokens; 2,560-dimensional Virchow2 embeddings concatenating the class token and mean patch token, excluding register tokens; and 512-dimensional pooled CONCH image features without contrastive projection or unit-length normalization. Binary tile targets indicated whether each tile center lay within the union of ROI polygons; polygon grade labels were ignored. Outside-ROI targets denote tissue unselected by the grounder.
A linear projection, ReLU and dropout (probability 0.25) mapped each tile embedding to 256 dimensions. A scalar linear suspicion head supplied both the tile-level prediction and the attention logit . Softmax across tiles produced pooling weights, and a linear classifier mapped the weighted embedding sum to six slide categories. For slide label y, predicted class probability and binary targets for m tiles, the effective objective was
where is the sigmoid function. The auxiliary binary cross-entropy averages all tiles within a slide, with throughout each main-comparison run. Slide-level cross-entropy was unweighted. AdamW used a learning rate and weight decay of . Models were trained for 40 epochs with shuffled slide order and one slide bag per update. Evaluation used the final-epoch checkpoint with dropout disabled and argmax prediction.
Comparators used the same frozen features, projection, slide head, optimization settings and training subsets. ABMIL used gated attention pooling and slide-level cross-entropy alone. A CLAM-inspired pseudo-label control added binary supervision to the highest- and lowest-attention tiles, where . Its auxiliary loss was times the sum of the positive- and negative-group mean binary cross-entropies. This reimplementation used one shared binary instance head. CoworkMIL used the supervised tile logit for pooling as well as region prediction. The exploratory sensitivity analysis used the first ten matched runs at 20 training slides with UNi2-h, evaluating weights 0.1, 0.25, 0.5, 1 and 2 on the same test set. Exact paired comparisons against ABMIL are listed in Supplementary Table S5.
We separately evaluated EAGLE , a frozen attention-guided tile-selection pipeline, on the same 30 test slides and the same 20 training subsets of 20 slides. EAGLE used frozen CTransPath features and CHIEF attention to select up to 25 tiles, then averaged their 1,280-dimensional Virchow2 class-token embeddings. All feature extraction within a run used either 0.5 or 2.0 m per pixel. Only a slide-level logistic-regression classifier was fitted to downstream labels, using raw embeddings, balanced class weights, L2 regularization ( ), the lbfgs solver and a maximum of 10,000 iterations, following the released few-shot probe configuration. Results are summarized in Supplementary Table S6.
23/56
Benchmark construction and evaluation
Question generation proceeds from a case summary to individual viewing segments. Gemini-3-Flash first receives a montage, the session transcript and available case context to summarize the findings. It then receives individual segment images, attention overlays, aligned narration and the case summary to produce question-answer candidates. Questions and their accepted answers were manually reviewed against the source images, aligned narration and recorded viewing context. Items are scored by whether the selected option belongs to the accepted-answer set. Some items have multiple accepted options or a different number of options. The uniform random single-choice reference is therefore for item , where and denote its accepted answers and available options; 25% applies only to four-option items with one accepted answer.
The four categories address evidence integration across fields or slides, rejection of an inapplicable premise, recognition of the tissue or viewing context, and selection of the next region for a diagnostic goal. Narration and viewer state provide the evidence used to construct the intended answers. Models were evaluated against a shared question bank and accepted-answer keys. The retained bank contains 371 questions: 128 on inapplicable premises, 62 on multi-slide reasoning, 59 on goal-directed navigation and 122 on environmental sensing (63 viewing-scale and 59 tissue-location questions; Supplementary Table S7). Source-item examples are shown in Supplementary Figure S5.
The question-source comparison includes an image-input comparison for Claude and GPT on PathMMU and PathCowork, and a separate comparison of Haiku 4.5, Sonnet 5 and Opus 4.8 across PathMMU, textbook-derived and PathCowork skin questions. Question-only inputs contain the question and options; image-supported inputs additionally contain the relevant image or montage. The textbook condition used locally assembled diagnosis questions from Dermatopathology: Diagnosis by First Impression, fourth edition . The three-model source comparison uses a separate 100-item skin set per source. The four-category comparison includes Opus 4.8, Haiku 4.5, GPT-5.5, GPT-5.6-sol, GPT-5.4-mini and Gemini 3.1, together with one pathology resident. Accuracy is the proportion of evaluated questions answered correctly within each category. The archived multi-model scoring routine counts an attempted question without a parseable answer as incorrect, while excluding questions with no recorded attempt; evaluable denominators can therefore differ across models.
Statistical analysis
Behavioral analyses summarize sessions, utterances and viewing segments at the level indicated in each panel. MIL performance is assessed with quadratic-weighted Cohen's on six diagnostic categories. Learning-curve bands and fixed-size bars use the standard deviation across 20 seeds, calculated with divisor 20, divided by . The auxiliary-weight sweep instead summarizes ten seeds. Stars in Figure 4b,c,d compare CoworkMIL with ABMIL using paired, two-sided Wilcoxon signed-rank tests on matched seeds, without adjustment for multiple comparisons. All 15 comparisons, including their effect directions and exact P values, are listed in Supplementary Table S5. Tests use the archived seed-level values, stored to four decimal places, and quantify variation across training runs on the fixed test set.
Agent scores and cross-task summaries are descriptive, with each task contributing its specified clinical endpoint. The Opus 4.8 image-input comparison on PathCowork uses 148 matched questions with archived answers in both input conditions. These questions were selected from the recorded-review bank by retaining items with answers in all four archived Opus/Haiku image-supported and question-only conditions. The other displayed image-input comparisons retain their source-level scores. Question-level scores can include multiple items from the same recorded case.
Author contributions. S. Wang and Z.H. conceived and designed the study. S. Wang, J.Y., S.L. and J.X. developed the software. M.V.R., S.K., E.B., M.N., W.D., C.M., T.C., A.W., Z.Y., D.A., S. Walle and X.X. contributed recorded slide reviews, including eye-tracking data and verbal descriptions. E.B. also assisted with early software debugging and refinement of the data collection protocol. O.P., E.B.L., Z.A., A.S., R.T., N.D., D.E. and G.J.N. provided advice on pathology domain knowledge. S. Wang and Z.H. wrote the manuscript. Z.H. supervised the study.
Acknowledgements. This study was approved by the institutional review board (IRB #857258) of the Perelman School of Medicine at the University of Pennsylvania. We thank Jonathan Alex Miles, Annie Jin, Ikuko Hirai and Meaghan Dougher for contributing slide-review recordings to our previous Pathology-CoT study , which were reused here. We acknowledge Karin Lindman, Jerónimo F. Rose, Martin Lindvall and Caroline Bivik Stadler for the DROID-skin dataset , and Gordan Maras, Martin Lindvall and Claes Lundström for the LNCO2 dataset , provided through the AIDA Data Hub.
24/56
The DROID-skin and LNCO2 datasets are copyright 2019 and 2020, respectively, Linköping University, Claes Lundström. We thank the Region Gävleborg Clinical Pathology and Cytology department for producing the LNCO2 collection. We acknowledge the Ivy Glioblastoma Atlas Project (Ivy GAP) , developed through a partnership of the Allen Institute for Brain Science, the Ben and Catherine Ivy Foundation, and the Ben and Catherine Ivy Center for Advanced Brain Tumor Treatment. The atlas was supported by the Ben and Catherine Ivy Foundation; our analyses and conclusions do not necessarily reflect the Foundation's views. Ivy GAP data are copyright 2015 Allen Institute for Brain Science and are available at https://glioblastoma.alleninstitute.org/. The results published here are in part based upon data generated by the TCGA Research Network: https://www.cancer.gov/tcga. We thank the specimen donors and contributing research groups.
Data availability. Example slide-review records, including segment metadata and images, are available in the PathCowork history directory. The full training corpus and its complete concept inventory are not included in the model release.
Code availability. PathCowork processing and review code is available on GitHub. Links to model weights are also provided at https://github.com/zhihuanglab/PathCowork.
Competing interests. The authors declare no competing interests.
25/56
Video legends
Main Video 1 | Interactive whole-slide review with PathCowork.
Screen recording of PathCowork examining a skin whole-slide image. After the user selects a slide and starts review, the agent surveys the tissue, localizes junctional features, inspects the dermis and candidate mitotic figures, and records findings with localized visual evidence before returning control to the user. The full 127.3-second recording is shown at its original speed, with cleaned audio of the original agent narration, English subtitles, and opening and closing title cards.
Main Video 2 | Capturing pathologist behavior during skin-biopsy review.
Real-time screen recording of a pathologist examining a skin whole-slide image in TissueLab during a PathCowork data-acquisition session. The yellow ring displays gaze position as the reader pans and changes magnification. The original recorded discussion describes peripheral palisading, myxoid stroma and an infiltrative tumor edge, illustrating how spoken observations accompany the tissue being examined. The recording shows human review during data collection. English subtitles accompany the original audio. The full 48.1-s review is retained at its original speed; opening and closing title cards are added, and the audio level is increased for audibility.
26/56
References
-
U.S. Food and Drug Administration. Radiological computer-assisted detection and diagnosis software. 21 CFR 892.2090, URL https://www.ecfr.gov/current/title-21/chapter-I/subchapter-H/part-892/subpart-B/section-892.2090 (2025). Section (b)(2)(ii)–(iii).
-
Ding, T. et al. A multimodal whole-slide foundation model for pathology. Nat. Medicine 31, 3749–3761, DOI: 10.1038/s41591-025-03982-3 (2025).
-
Shaikovski, G. et al. PRISM: A multi-modal generative foundation model for slide-level histopathology. arXiv preprint arXiv:2405.10254 DOI: 10.48550/arXiv.2405.10254 (2024).
-
Crowley, R. S., Naus, G. J., Stewart, J., III & Friedman, C. P. Development of visual diagnostic expertise in pathology—an information-processing study. J. Am. Med. Informatics Assoc. 10, 39–51, DOI: 10.1197/jamia.M1123 (2003).
-
Drew, T. et al. More scanning, but not zooming, is associated with diagnostic accuracy in evaluating digital breast pathology slides. J. Vis. 21, 7, DOI: 10.1167/jov.21.11.7 (2021).
-
Ilse, M., Tomczak, J. & Welling, M. Attention-based deep multiple instance learning. In Proceedings of the 35th International Conference on Machine Learning (ICML), vol. 80, 2127–2136, URL https://proceedings.mlr.press/v80/ilse18a.html (PMLR, 2018).
-
Campanella, G. et al. Clinical-grade computational pathology using weakly supervised deep learning on whole slide images. Nat. Medicine 25, 1301–1309, DOI: 10.1038/s41591-019-0508-1 (2019).
-
Lu, M. Y. et al. Data-efficient and weakly supervised computational pathology on whole-slide images. Nat. Biomed. Eng. 5, 555–570, DOI: 10.1038/s41551-020-00682-w (2021).
-
Chen, R. J. et al. Towards a general-purpose foundation model for computational pathology. Nat. Medicine 30, 850–862, DOI: 10.1038/s41591-024-02857-3 (2024).
-
Vorontsov, E. et al. A foundation model for clinical-grade computational pathology and rare cancers detection. Nat. Medicine 30, 2924–2935, DOI: 10.1038/s41591-024-03141-0 (2024).
-
Huang, Z., Bianchi, F., Yuksekgonul, M., Montine, T. J. & Zou, J. A visual-language foundation model for pathology image analysis using medical Twitter. Nat. Medicine 29, 2307–2316, DOI: 10.1038/s41591-023-02504-3 (2023).
-
Lu, M. Y. et al. A visual-language foundation model for computational pathology. Nat. Medicine 30, 863–874, DOI: 10.1038/s41591-024-02856-4 (2024).
-
Xiang, J. et al. A vision-language foundation model for precision oncology. Nature 638, 769–778, DOI: 10.1038/s41586-024-08378-w (2025).
-
Lu, M. Y. et al. A multimodal generative AI copilot for human pathology. Nature 634, 466–473, DOI: 10.1038/s41586-024-07618-3 (2024).
-
Chen, Y. et al. SlideChat: A large vision-language assistant for whole-slide pathology image understanding. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 5134–5143, URL https://openaccess.thecvf.com/content/CVPR2025/html/Chen_SlideChat_A_Large_Vision-Language_Assistant_for_Whole-Slide_Pathology_Image_Understanding_CVPR_2025_paper.html (2025).
-
Dong, N. et al. Reinforced auto-zoom net: Towards accurate and fast breast cancer segmentation in whole-slide images. In Deep Learning in Medical Image Analysis and Multimodal Learning for Clinical Decision Support, vol. 11045 of Lecture Notes in Computer Science, 317–325, DOI: 10.1007/978-3-030-00889-5_36 (Springer, 2018).
-
Xiong, C., Chen, H., Sung, J. J. Y. & King, I. Diagnose like a pathologist: Transformer-enabled hierarchical attention-guided multiple instance learning for whole slide image classification. In Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence, 1587–1595, DOI: 10.24963/ijcai.2023/176 (2023).
-
Buckley, T. A. et al. Navigating gigapixel pathology images with large multimodal models. arXiv preprint arXiv:2511.19652 DOI: 10.48550/arXiv.2511.19652 (2025).
-
Xu, Z. et al. MMNavAgent: Multi-magnification WSI navigation agent for clinically consistent whole-slide analysis. arXiv preprint arXiv:2603.02079 DOI: 10.48550/arXiv.2603.02079 (2026).
-
Wang, S. et al. Pathology-CoT: learning visual chain-of-thought agents from expert whole-slide image diagnosis behaviour. Nat. Biomed. Eng. DOI: 10.1038/s41551-026-01739-y (2026).
27/56
-
Li, S. et al. A co-evolving agentic AI system for medical imaging analysis. arXiv preprint arXiv:2509.20279 URL https://arxiv.org/abs/2509.20279 (2025).
-
Moonshot AI. Kimi K2.6, URL https://huggingface.co/moonshotai/Kimi-K2.6 (2026). Official model card.
-
Yang, A. et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388 DOI: 10.48550/arXiv.2505.09388 (2025).
-
Neidlinger, P. et al. A deep learning framework for efficient pathology image analysis. Nat. Commun. 17, 5740, DOI: 10.1038/s41467-026-74918-9 (2026).
-
The Cancer Genome Atlas Research Network et al. The Cancer Genome Atlas pan-cancer analysis project. Nat. Genet. 45, 1113–1120, DOI: 10.1038/ng.2764 (2013).
-
Lindman, K., Rose, J. F., Lindvall, M. & Stadler, C. B. Skin data from the visual sweden project DROID. AIDA Data Hub, DOI: 10.23698/aida/drsk (2019).
-
Stadler, C. B. et al. Proactive construction of an annotated imaging database for artificial intelligence training. J. Digit. Imaging 34, 105–115, DOI: 10.1007/s10278-020-00384-4 (2021).
-
Maras, G., Lindvall, M. & Lundstrom, C. Regional lymph node metastasis in colon adenocarcinoma, second collection series. AIDA Data Hub, DOI: 10.23698/aida/lnco2 (2020).
-
Radford, A. et al. Robust speech recognition via large-scale weak supervision. In Proceedings of the 40th International Conference on Machine Learning, vol. 202, 28492–28518, URL https://proceedings.mlr.press/v202/radford23a.html (PMLR, 2023).
-
Salvucci, D. D. & Goldberg, J. H. Identifying fixations and saccades in eye-tracking protocols. In Proceedings of the 2000 Symposium on Eye Tracking Research and Applications, 71–78, DOI: 10.1145/355017.355028 (ACM, 2000).
-
Hu, E. J. et al. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations, URL https://openreview.net/forum?id=nZeVKeeFYf9 (2022).
-
Allen Institute for Brain Science. Ivy glioblastoma atlas project. Dataset, URL https://glioblastoma.alleninstitute.org/(2015). Accessed 22 October 2026.
-
Puchalski, R. B. et al. An anatomic transcriptional atlas of human glioblastoma. Science 360, 660–663, DOI: 10.1126/science.aaf2666 (2018).
-
Shao, Z. et al. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300 URL https://arxiv.org/abs/2402.03300 (2024).
-
Williams, R. J. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Mach. Learn. 8, 229–256, DOI: 10.1007/BF00992696 (1992).
-
Modella AI. Meet PathChat 2. Official product description, URL https://www.modella.ai/pathchat. Accessed 22 September 2026.
-
Epstein, J. I. et al. The 2014 international society of urological pathology (ISUP) consensus conference on Gleason grading of prostatic carcinoma: Definition of grading patterns and proposal for a new grading system. The Am. J. Surg. Pathol. 40, 244–252, DOI: 10.1097/PAS.0000000000000530 (2016).
-
Nechaev, D., Pchelnikov, A. & Ivanova, E. HISTAI: An open-source, large-scale whole slide image dataset for computational pathology. arXiv preprint arXiv:2505.12120 DOI: 10.48550/arXiv.2505.12120 (2025).
-
Bulten, W. et al. Artificial intelligence for diagnosis and Gleason grading of prostate cancer: the PANDA challenge. Nat. Medicine 28, 154–163, DOI: 10.1038/s41591-021-01620-2 (2022).
-
MahmoodLab. UNI2-h. https://huggingface.co/MahmoodLab/UNI2-h (2025). Model card; accessed 9 September 2026.
-
Zimmermann, E. et al. Virchow2: Scaling self-supervised mixed magnification models in pathology. arXiv preprint arXiv:2408.00738 DOI: 10.48550/arXiv.2408.00738 (2024).
-
Wang, X. et al. Transformer-based unsupervised contrastive learning for histopathological image classification. Med. Image Analysis 81, 102559, DOI: 10.1016/j.media.2022.102559 (2022).
-
Wang, X. et al. A pathology foundation model for cancer diagnosis and prognosis prediction. Nature 634, 970–978, DOI: 10.1038/s41586-024-07894-z (2024).
-
Sun, Y. et al. PathMMU: A massive multimodal expert-level benchmark for understanding and reasoning in pathology. In Computer Vision – ECVV 2024, Lecture Notes in Computer Science, vol. 15120, 56–73, DOI: 10.1007/978-3-031-73033-7_4 (Springer, 2024).
28/56
-
Ko, C. J. & Barr, R. J. Dermatopathology: Diagnosis by First Impression (Wiley-Blackwell, 2022), 4 edn.
-
Ross, S., Gordon, G. & Bagnell, D. A reduction of imitation learning and structured prediction to no-regret online learning. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, vol. 15 of Proceedings of Machine Learning Research, 627–635, URL https://proceedings.mlr.press/v15/ross11a.html (2011).
-
Almeida, D. Introducing System One models & Jev. TypeSafe AI, URL https://typesafe.ai/blog/introducing-system-one-models-and-jev (2026).
-
Thinking Machines Lab. Announcing Tinker, URL https://thinkingmachines.ai/news/announcing-tinker/ (2025).
-
Bándi, P. et al. From detection of individual metastases to classification of lymph node status at the patient level: The CAMELYON17 challenge. IEEE Transactions on Med. Imaging 38, 550–560, DOI: 10.1109/TMI.2018.2867350 (2019).
29/56
Supplementary Information
Supplementary Note 1 | Additional skin grounding and an ancillary adaptation study
The main grounding comparisons use supervised fine-tuning of Kimi K2.6 and Qwen3.6-27B on examples derived from the recordings. Each example pairs an image and target concept with a structured spatial response. The dermatopathology grounding evaluation in Figure 2e,f uses the adapted Kimi K2.6 localizer. Additional qualitative skin comparisons from the Qwen SFT development export are shown in Supplementary Figures S1 and S2; these examples retain their source model configuration and displayed metrics. Supplementary Table S3 lists the backbones and configurations used in the additional experiments on data quantity, model size, numerical precision and training duration.
The main test set contains 50 image-concept pairs for each evaluated concept, including 350 pairs across the seven dermatopathology concepts. Training and test patients were separated before generating the examples. Both sets were constructed from behavior-derived candidates with manual spot-checking, augmentation and automatically generated negative examples. Recall uses reference-positive examples as its denominator, precision uses predicted-positive examples, and localization retains missed targets and unparseable outputs with a score of zero.
Reference
PathCowork (SFT)
Claude Opus 4.7
GPT-5.4
Gemini 3.1
Confluent melanocytic proliferation | nvm_180

Reference annotation
IoU 14 | Dice 25
Not detected
IoU 18 | Dice 31
Not detected
Confluent melanocytic proliferation | nvm_197

Reference annotation
IoU 49 | Dice 66
IoU 9 | Dice 17
IoU 16 | Dice 27
IoU 0 | Dice 0
Pagetoid spread | nvm_249

Reference annotation
IoU 54 | Dice 70
IoU 0 | Dice 0
IoU 7 | Dice 14
IoU 0 | Dice 0
Supplementary Figure S1. Additional skin grounding examples for confluent growth and pagetoid spread. Rows show two examples of confluent melanocytic proliferation and one of pagetoid spread. Columns compare the reference annotation with a PathCowork SFT localizer and three frontier models. Reference regions are green and model predictions are red. IoU and Dice are percentages; "Not detected" denotes a negative presence prediction.
30/56
Reference
PathCowork (SFT)
Claude Opus 4.7
GPT-5.4
Gemini 3.1
Pigment incontinence | nvm_311

Reference annotation
IoU 55 | Dice 71
IoU 0 | Dice 0
IoU 27 | Dice 42
IoU 0 | Dice 0
Dermoepidermal junction | nvm_026

Reference annotation
IoU 5 | Dice 9
IoU 0 | Dice 0
IoU 0 | Dice 0
IoU 3 | Dice 6
Junctional melanocytic nest | nvm_054

Reference annotation
IoU 43 | Dice 60
IoU 0 | Dice 0
IoU 0 | Dice 0
IoU 0 | Dice 0
Supplementary Figure S2. Additional skin grounding examples for pigment, junctional anatomy and nests. Rows show pigment incontinence, the dermoepidermal junction and a junctional melanocytic nest. Columns, colors and percentage metrics follow Supplementary Figure S1.
Ancillary development methods
A separate small-model development study used Qwen3.5-4B²³ with rank-8 low-rank adaptation³¹ and thinking mode disabled. Its case-level split contained 19 training, three validation and three test cases, corresponding to 936, 148 and 148 message rows. Supervised training used Adam, learning rate 5 × 10⁻⁵, batch size 2, maximum sequence length 8,192 tokens and 600 optimization steps. Validation was performed every 50 steps, and the step-450 checkpoint was selected. Selection considered polygon Dice, point-in-target rate, centroid distance, bounding-box intersection over union (IoU) and valid-JSON rate.
This development study also explored an appearance-aware reinforcement-learning objective after supervised training. Recorded attention can identify one instance among several plausible occurrences of a finding in the same field. The reward combined center hit (weight 0.25), normalized centroid proximity (0.20), appearance similarity (0.20), bounding-box IoU (0.15), polygon Dice (0.10) and area agreement (0.10). Appearance similarity was estimated from CIELAB channel statistics and histograms. Training used 25 policy-gradient steps, learning rate 10⁻⁵, four prompts and four sampled responses per prompt, temperature 0.2 and maximum response length 256 tokens. This ancillary SFT-plus-RL experiment is separate from the supervised-only comparisons in the main figures.
31/56
Supplementary Note 2 | Detailed agent outcomes across five organs
Supplementary Figure S3 reports the organ-specific endpoints underlying the overview in Figure 3e. The evaluations comprise skin biopsies for melanoma versus dysplastic nevus (20 cases, 69 WSIs), prostate needle biopsies for cancer detection and ISUP grading (20 slides), breast resections for Nottingham grading (39 matched cases), brain resections for glioblastoma versus lower-grade glioma (30 cases, 15 per class) and colon-resection lymph nodes for metastasis detection (77 slides, 10 positive and 67 negative).
Brain cases were drawn from TCGA-GBM and TCGA-LGG , breast and melanocytic cases from HISTAI , prostate slides from PANDA , and colorectal lymph-node slides from LNCO2 (Supplementary Table S4). Evaluation cases were unseen during grounding training and skill construction. PANDA ISUP labels supplied the prostate grading reference, and LNCO2 annotations supplied the metastatic-node references.
The organ-specific experiments were conducted at different times using the strongest models then available in each agent framework. The prostate comparators used Claude Code with Sonnet and Codex with GPT-5.5; their evaluation runner allowed up to ten image crops and a 480-s wall-clock limit per slide. Codex used GPT-5.6-sol for brain and colon, with high reasoning effort for colon. The breast Claude Code comparator used Sonnet 5, and the brain PathCowork run used v4.4 High. PathCowork completed the prescribed skill steps without a task-level timeout, as described in Methods.
In skin, PathCowork achieved melanoma recall of 100% and specificity of 60%, compared with 40% recall and 90% specificity for both general-purpose agents. Its higher overall accuracy therefore accompanied lower specificity. In prostate, quadratic-weighted ISUP was 0.38, 0.06 and 0.30 for PathCowork, Claude Code and Codex, respectively; the corresponding grade mean absolute errors were 1.40, 1.74 and 2.15. Prostate detection uses all 20 slides, with the Claude Code timeout counted as a failure (17/20, 85%); its grading and MAE retain the 19 valid predictions.
The brain comparison uses 30 cases (15 GBM and 15 LGG) for every agent. PathCowork correctly classified 13/15 GBM and 13/15 LGG cases (26/30 overall); Claude Code classified 3/15 and 15/15 correctly (18/30); Codex classified 6/15 and 15/15 correctly (21/30). Missing reports numbered zero, two and zero, respectively, and remain in the denominator as incorrect outcomes. Mean times were 20, 332 and 285 seconds per slide, respectively.
The breast comparison uses one matched set of 39 cases for all agents. In the order PathCowork, Claude Code and Codex, overall grade accuracy was 28/39 (71.8%), 17/39 (43.6%) and 21/39 (53.8%). Correct component scores were 26, 21 and 22 for tubule formation; 26, 22 and 24 for nuclear pleomorphism; and 19, 14 and 20 for mitotic count, all out of 39. Grade-specific recall was 5/10, 1/10 and 6/10 for grade 1; 10/14, 9/14 and 9/14 for grade 2; and 13/15, 7/15 and 6/15 for grade 3. PathCowork's largest grade-specific advantage was therefore in grade 3, while Codex had higher grade 1 recall and correctly scored one more case for mitotic count. Per-slide costs were 1.98 and $1.25, and times were 106, 300 and 192 s, respectively (Supplementary Figure S3).
For LNCO2, Claude Code achieved 87.3% node detection recall, called 12/15 ground-truth tumour nodes positive (80% end-to-end per-node metastasis recall), and called 101/101 non-tumour nodes negative (100% per-node specificity). Missed tumour nodes remain in the 15-node denominator as false negatives. Missing reports numbered zero, six and zero for PathCowork, Claude Code and Codex, respectively. Claude Code's slide-level recall was 6/10 (60%) and specificity was 62/67 (92.5%); its two missing positive-slide reports and four missing negative-slide reports counted as failures. Codex achieved slide-level recall of 9/10 (90%) and specificity of 67/67 (100%).
Costs are reported per slide at the recorded API prices; the Codex colon cost was $1.04 per slide. Times are wall-clock values per slide, summarized by the median for colon and the mean for other tasks.
32/56

Supplementary Figure S3. Detailed agent outcomes across five organs. Rows compare PathCowork (purple), Claude Code (orange) and Codex (grey) on primary and secondary endpoints; shaded panels identify the primary endpoints used in Figure 3e. Colon node detection recall measures the proportion of reference lymph nodes located. In the breast row, Tub., Nuc. and Mit. denote tubule formation, nuclear pleomorphism and mitotic count; G1–G3 denote reference grades. Costs and wall-clock times are per slide; time is the median for colon and the mean for other tasks. Arrows indicate the direction of improvement. Cohorts, model configurations and scoring rules are detailed in Supplementary Note 2.
33/56
Supplementary Note 3 | General navigation learned from pathologist behavior
The five agents in Figure 3 turn recorded case experience into procedures for recurring tasks. Open-ended questions can require findings or relationships beyond this repertoire, including examinations only partly represented in the available recordings.
PathCowork-general learns reusable viewing actions—surveying tissue, moving between fields, changing magnification and returning to a wider context—to gather evidence beyond a predefined skill. The proposed workflow assigns navigation to this learned policy and interpretation to an LLM, extending the use of recorded behavior to questions for which a complete procedure has yet to be compiled. The experiments below evaluate navigation and evidence collection; combined question answering is a future application.
Two complementary uses of recorded behavior. Supplementary Video 3 shows a recorded example of the learned navigator examining a lymph-node slide. We refer to the task-specific approach in Figure 3 as PathCowork-skill and the learned navigation approach as PathCowork-general (Supplementary Figure S4a). The former encodes examination steps explicitly; the latter learns successive viewing decisions from behavioral records and reference trajectories. Both reuse pathologist experience. A stepwise agent such as Claude Code or Codex instead invokes the LLM to choose successive viewing actions. Here, “general” denotes a reusable navigation policy shared across tasks.
Indicative navigation time and cost. The indicative values in Supplementary Figure S4a cover navigation decisions. “Instant” and “Free” denote script overhead. The learned-policy estimate of 300 ms is based on a 318-ms forward pass of an earlier 384-pixel, 20-slot prototype on an M5 Pro with MLX bf16. Its hosted-inference equivalent is approximately US0.33 per million tokens, accessed 21 September 2026. LLM estimates are 20–30 s and approximately US1 per 30 steps. These estimates cover decision computation, excluding image loading, downstream interpretation, training and hardware costs.
From recorded examination to navigation targets. The general navigator combines processed pathologist gaze and viewport records with trajectories generated by a reference policy on annotated slides. Both sources are mapped to the same viewing scales and action vocabulary. Human records preserve the operations taken during examination; reference trajectories supply broader image coverage and examples of surveying tissue, approaching an annotated focus and returning to continue the survey. Perturbed reference trajectories provide corrective targets in states outside the usual path, motivated by the distribution-shift problem addressed by dataset aggregation for imitation learning⁴⁶. Images and spatial targets are transformed together under rotations and reflections. Before subsampling for training, the mixed-supervision pool contained 40,000 records, including 2,021 from human recordings.
An exploratory comparison of behavioral supervision. An earlier model comparison added 1,916 human navigation records to the same 5,000 reference-navigation and 6,000 perception records used by a control. Both models used one training epoch and the same training recipe, although adding records also increased the number of optimization steps. On 286 held-out views with a defined human action, agreement with that action increased from 24.8% to 60.1%. Among the 181 views followed by a human pan, the control predicted pan zero times and the model with human records predicted it 105 times. Human records increased use of the pan operation, although agreement remained below the 63.3% majority-action baseline and repetitive panning persisted. Each condition used one run of an earlier model and state representation.
A local model for successive viewing decisions. The general navigator uses a four-level ladder: the tissue overview followed by square fields of 4.0, 1.33 and 0.44 mm; the survey field is 2.5 mm for lymph-node slides. Each field is rendered at 384 × 384 pixels and divided into a 4 × 4 grid. The state records viewing scale, remaining steps, tissue and coverage fractions, areas already examined at a deeper level, directions containing unsurveyed tissue and the last three actions. Per-cell survey coverage is computed before marking the current arrival, allowing a new field to be distinguished from a revisit.
The navigator selects among zooming into a grid cell, zooming out, panning in one of eight directions and stopping. Its general-model template contains 29 answer slots: 16 cell-level attention outputs, three action outputs, nine field-description outputs and one unused deferral output. A single forward pass supplies logits at fixed answer positions; softmax over the allowed answer letters gives each slot's distribution, without autoregressive text generation. This use of predefined decision outputs follows the System One design principle described for Jev⁴⁷; our implementation adapts a vision-language model to pathology images and viewing behavior. It uses Qwen3.5-4B²³ with rank-32 LoRA³¹. The evaluated general model was trained through Tinker⁴⁸ for one epoch on 16,000 navigation and 12,000 perception records, with batch size 32 and peak learning rate 2 × 10⁻⁴. Cross-entropy is restricted to defined answer positions; sampling an answer from a soft target distribution matches that target in expectation. The best validation checkpoint was the end-of-epoch checkpoint. Local inference used merged bf16 weights with MLX.
34/56
Coverage bookkeeping and evidence selection. Deterministic rules constrain the model's choices: they restrict repeated entry into already examined cells, veto reverse pans when another direction contains unsurveyed tissue, and return to a wider view when continued panning adds no coverage. At the end of a review, distinct non-overview views are grouped by tissue fragment, and up to six per fragment are retained according to the maximum of their predicted tumor, interface and necrosis scores. Survey views remain eligible to preserve lower-power architecture. The retained images form the evidence set for subsequent interpretation.
Evaluation on held-out lymph-node units. The general-model evaluation used 12 CAMELYON17 lymph-node units : four labelled macrometastasis, four micrometastasis and four negative. Patients were held out from the CAMELYON17 training sources; training images included other patients from the same dataset. On 400 navigation records, the 6,400 cell outputs achieved AUROC 0.965 and average precision 0.455, compared with 0.886 and 0.101 when the image was replaced by a white field while retaining the state. Operation agreement was 88.2% versus 86.8% in that control; pan-direction agreement was 41.7% versus 35.4% over 223 pan-labelled records. The image contribution varied by output and scale: for overview-level cell outputs, average precision was 0.108 with the image and 0.186 without it.
What the resulting reviews captured and missed. Across one review per unit, median tissue survey coverage was 91%, and seven of 12 reviews stopped within the nominal 60-step budget (Supplementary Figure S4c). Four of eight metastatic units received both a mid-power visit overlapping an annotated focus and a high-power read on the lesion. The selected evidence set contained a view overlapping the annotation in all eight, including survey views from the four units without a high-power lesion read. Representative successes and failures are shown in Supplementary Figure S4b. Eight of 12 reviews had no immediate reverse pan; five reached the budget, and two had no mid-power visit to any qualifying tissue fragment. Recorded local review times ranged from 8.17 to 35.17 s, excluding downstream LLM interpretation. These exploratory results identify coverage, revisiting and stopping as unresolved behavioral problems. The navigator weights are released at https://github.com/zhihuanglab/PathCowork; its training corpus is not included in the release.
35/56 a Navigation
PathCowork-skill

Follow rules
PathCowork-general

Direct action
Claude Code / Codex

Reason then act
| Time / step | Instant | ≈300 ms | ≈20-30 s |
|---|---|---|---|
| Cost / step | Free | ≈$0.00025 | ≈$0.03 |
| Generalizability | Task-specific | General | General |
b Representative navigation trajectories
P073 / 1
Macrometastasis

Scale bar, 5 mm
2.5-mm field
P042 / 3
Macrometastasis

Scale bar, 5 mm
1.33-mm field
P010 / 4
Micrometastasis
Scale bar, 5 mm
0.44-mm field
P048 / 1
Micrometastasis
Scale bar, 5 mm
P055 / 0
Negative
Scale bar, 5 mm
P070 / 2
Negative
Scale bar, 5 mm
Trajectory: dark → yellow = earlier → later; ○ start, ■ end.
High-power reads: green on lesion; red elsewhere.
C Navigation and selected evidence across 12 held-out units
| Unit | Category | Lesion | Entries | Stopped | Survey % | HP reads on / all | Pieces visited | Foci touched | Evidence on / all | Reverse pans | Revisits | Time s |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| P015/2 | macro | 1.011 | 25 | Yes | 92 | 0/1 | 2/3 | 0/1 | 2/14 | 0 | 0 | 13.40 |
| P042/3 | macro | 3.036 | 32 | Yes | 91 | 3/3 | 2/3 | 3/3 | 12/14 | 2 | 5 | 16.42 |
| P073/1 | macro | 45.368 | 61 | No | 47 | 2/3 | 2/4 | 2/4 | 12/12 | 0 | 3 | 35.17 |
| P099/4 | macro | 8.310 | 61 | No | 81 | 1/1 | 1/2 | 1/1 | 6/12 | 0 | 10 | 31.36 |
| P010/4 | micro | 0.814 | 51 | Yes | 91 | 1/3 | 5/5 | 2/3 | 7/24 | 0 | 4 | 28.05 |
| P021/3 | micro | 0.054 | 29 | Yes | 91 | 0/1 | 1/2 | 0/2 | 1/12 | 0 | 0 | 16.20 |
| P048/1 | micro | 0.074 | 61 | No | 80 | 0/0 | 0/6 | 0/1 | 1/26 | 0 | 11 | 31.55 |
| P089/3 | micro | 0.017 | 23 | Yes | 94 | 0/0 | 0/2 | - | 2/12 | 0 | 0 | 11.44 |
| P000/4 | negative | 0.000 | 15 | Yes | 98 | 0/0 | 1/2 | - | 0/7 | 1 | 2 | 8.17 |
| P025/1 | negative | 0.000 | 61 | No | 50 | 0/11 | 1/2 | - | 0/6 | 1 | 2 | 35.14 |
| P055/0 | negative | 0.000 | 31 | Yes | 93 | 0/0 | 0/2 | - | 0/12 | 1 | 4 | 15.22 |
| P070/2 | negative | 0.000 | 61 | No | 67 | 0/1 | 2/4 | - | 0/12 | 0 | 9 | 33.64 |
Supplementary Figure S4. General navigation learned from pathologist behavior. a, PathCowork-skill follows a compiled examination procedure; PathCowork-general predicts viewing actions from a learned policy; stepwise Claude Code or Codex agents generate an LLM response before acting. Icon sizes are schematic. Time and cost are indicative navigation estimates (Supplementary Note 3). b, Six patient-held-out CAMELYON17 units, showing tissue, annotated tumor, successive fields and high-power reads. Other patients from this dataset contributed training data. Scale bars, 5 mm. c, All 12 evaluated units, one review each with the supervised navigator, deterministic coverage rules and a nominal 60-step budget. Entries include the terminal observation; budget-limited runs contain 61. Stopped indicates an unforced stop within budget. Survey measures tissue coverage at survey level or higher. High-power (HP) reads count 0.44-mm fields on lesion over all HP fields. Pieces counts fragments of at least 2 mm² visited at 1.33 mm or higher; foci counts annotations of at least 0.02 mm² touched at these scales. A dash denotes no eligible focus. Evidence counts retained views overlapping tumor over all retained views. Reverse pans and repeated views are separate counts. Time excludes downstream LLM interpretation.
36/56
Supplementary Note 4 | Frozen tile selection on the matched prostate cohort
We compared behavior-derived spatial supervision with EAGLE, an alternative that selects tissue using attention from a pretrained model²⁴. The comparison used the fixed 30-slide PANDA test cohort from Figure 4, containing five slides in each ISUP grade group from 0 to 5. Both EAGLE resolutions used exactly the same 20 training subsets as the CoworkMIL evaluation, sampled from the 65-slide training pool.
For each resolution, frozen CTransPath features⁴² were ranked by frozen CHIEF attention⁴³, and up to 25 selected tiles were re-encoded with Virchow2⁴¹. The mean of their class-token embeddings formed the slide representation. A logistic-regression classifier was fitted to the 20 training slides, with the encoders and tile selector frozen. EAGLE achieved mean quadratic-weighted of 0.430 at 0.5 m per pixel and 0.435 at 2.0 m per pixel, with mean absolute grade errors of 1.225 and 1.298, respectively. On these same training subsets and test slides, Virchow2-CoworkMIL achieved and mean absolute error 1.178, compared with 0.385 and 1.347 for Virchow2-ABMIL (Supplementary Table S6).
EAGLE uses 1,280-dimensional class-token features and mean pooling, whereas the Virchow2 MIL models use 2,560-dimensional concatenated class-token and mean patch-token features with a trained aggregator. Spatial sampling also differs, and CoworkMIL additionally receives grounding-derived supervision during training. Statistical summaries follow the fixed-cohort analysis described in Methods.
Supplementary Note 5 | Benchmark sources and coverage of recorded clinical checks
Supplementary Figure S5 compares illustrative questions from PathMMU⁴⁴, a textbook atlas and recorded review.
Generated questions and accepted-answer keys underwent manual review using the source images and recorded context. The retained question-bank composition is given in Supplementary Table S7; environmental sensing combines viewing-scale and tissue-location questions. The separate source comparison uses 100 questions from each source, and the paired Opus image-input comparison uses 148 recorded-review questions, as described in Methods.
37/56
PathMMU and textbook examples

INTERNET PathMMU
Based on the cellular morphology observed in the image, which feature does NOT suggest a benign melanocytic lesion?
A) Clear cytoplasmic boundaries
B) Even distribution of cells
C) Variation in cell size and shape ← key
D) Individual cells nested within the stroma
Tests recognition of cellular atypia.
Question-only accuracy (Opus 4.8): 59% on this set

TEXTBOOK In-house atlas
What is the most likely diagnosis for this dermatopathology image?
A) Malignant melanoma ← key
B) Deep penetrating nevus ← opus-5
C) Blue nevus ← sonnet-5
D) Mongolian spot
Tests diagnosis among melanocytic mimics.
Question-only accuracy (Opus 4.8): 28% on this set
Questions from recorded slide review

MAGNIFICATION SELF_LOC_MAG
No scale bar is given.
Roughly what magnification are you viewing this field at?
A) 2x
B) 4x
C) 10x ← key
D) 20x ← key
E) 40x
Requires estimation of the current viewing scale.
Two adjacent bands accepted

GROUNDING SELF_LOC_WHERE
Where in the specimen is this field taken from?
A) the dermal inflammatory infiltrate of the skin ← key
B) the melanocytic lesion of the skin
C) the dermis beneath the lesion of the skin
D) the dermo-epidermal junction of the skin
Requires locating the field within its specimen.
Distractors are other sites on this same slide

WHERE TO LOOK NEXT_ACTION
Given the need to evaluate the dermoepidermal junction for melanocytic nests, which region should you examine next?
A) region A
B) region B
C) region C
D) region D ← key
Requires choosing a region for a stated diagnostic goal.
Regions are labelled on the image itself

WHOLE CASE MULTI_SECTION
Based on the atypical melanocytic proliferation at the dermal-epidermal junction with pagetoid spread, what is the most appropriate preliminary diagnosis?
A) Invasive malignant melanoma
B) Severely dysplastic nevus
C) Melanoma in situ ← key
D) Actinic keratosis with pigmented cells
Provides fields from both sections of the case.
Twelve fields across two sections

FALSE PREMISE HALLUCINATION
Does the melanoma infiltrate the dermo-epidermal junction in this case?
A) Yes, the melanoma infiltrates the dermo-epidermal junction, demonstrating prominent pagetoid spread into the overlying epidermis.
B) No, the melanoma does not infiltrate the dermo-epidermal junction and is entirely confined to the underlying dermal tissue.
C) The question does not apply to this specimen — no such lesion is present here ← key
D) Cannot be determined from this field — a deeper level or another block would be needed
Tests whether the reader rejects a false premise.
The accepted answer rejects the premise
How to read a panel
Green, bold, ← key
the accepted answer. Two options carry the key where the item accepts either.
Orange, ← opus-5 / ← sonnet-5
the option that model chose — every orange mark is a wrong answer.
Italic line
what the item is testing.
Grey line
source-level results or details of the example.
Supplementary Figure S5. Examples of questions from three benchmark sources. Top, PathMMU and textbook items. Below, recorded-review items address viewing scale, specimen location, navigation, multiple sections and a false premise; the first two are environmental-sensing subtypes in Figure 5. Green marks accepted answers and orange marks the named models' responses. The magnification example retains the source version's five options and two accepted adjacent bands. Question-only percentages describe source-level Opus 4.8 results.
Coverage of recorded clinical checks
We asked whether questions constructed from recorded review retained checking content that was less readily represented by a final impression or existing question banks. The reference contained 347 selected check occurrences from 103 reader-case reviews across 21 case groups; checks expressed by different readers were retained separately. With up to two questions per
38/56 review, narration-derived questions covered 31.5% of the reference, compared with 9.8% for questions generated by the same model from the reader's final impression. Retrospective selection of the best-matching pair yielded 14.8% coverage from the 210-item PathMMU dermatopathology bank and 0.0% from the corrected 160-item textbook-derived bank (Supplementary Figure S6). Narration-derived coverage was 16.7 percentage points higher than PathMMU (95% case-bootstrap interval, 8.5–24.8) and 31.5 points higher than the textbook bank (25.4–37.8).
Using all questions in each bank gave 14.8% coverage for PathMMU and 0.0% for the textbook bank. Restricting the latter to the corrected 100-item subset used in the main source comparison gave 0.0%. No textbook match passed both joint coding and verbatim-support validation. The evaluated bank contained diagnosis-only questions; identifying a diagnosis was not credited as testing every observation or examination action that could inform it. Separately, the two coders assigned textbook best-pair coverage of 1.3% and 14.4%, respectively; the primary analysis required their agreement on the same requirement–question match.
Recorded content included examination plans as well as morphological observations. A search for lymphovascular invasion and a proposed stain to exclude occult invasion were retained in narration-derived questions. Generation remained incomplete: a recorded pigment check was omitted by both generated question sets. The comparison measures retention of recorded checking content under a limited question budget.
The zero textbook estimate was sensitive to the quotation check: both coders matched a scar question, but one supplied a composite description of its options rather than a verbatim supporting phrase. In a post-hoc analysis retaining all in-scope model-proposed matches without requiring verbatim supporting phrases, coverage was 34.4% for recorded review, 11.3% for final impressions, 15.3% for PathMMU and 0.2% for the textbook bank. This sensitivity rule was applied to all conditions without new inference; the ordering was unchanged.
39/56
Coverage of recorded clinical checks
103 reader-case reviews · 21 case clusters · 347 check occurrences

Up to 2 questions per review; equal case weighting.
Primary: joint matches with verbatim support. Intervals: case bootstrap.
- Textbook: 0.2% without verbatim-support filtering (sensitivity analysis).
Supplementary Figure S6. Coverage of recorded clinical checks by four question sources. For each of 103 reader-case reviews, up to two questions were generated from the recorded narration or a final-impression summary, or retrospectively selected to maximize coverage from the archived PathMMU (210 items) or corrected textbook-derived (160 items) bank. The reference contains 347 selected check occurrences, including similar checks recorded by different readers, across 21 case groups. Coverage requires agreement of two model-based coders on the same check–question match, with verbatim supporting text. Dots show case means after averaging readers; filled diamonds show the equal-case mean and bars the 95% percentile interval from 10,000 case-bootstrap resamples. Hollow diamonds show full-bank coverage without the two-question limit. The textbook bank consists of atlas-derived diagnosis questions. Asterisk: textbook coverage is 0.2% in the post-hoc sensitivity analysis without verbatim-support filtering; the same sensitivity rule was applied to all conditions. The analysis measures textual correspondence between recorded checks and question content.
Content-coverage methods
This content-coverage experiment was separate from the image-supported benchmark construction described in the main Methods. Five readers examined the same 30 whole-slide images, grouped under 21 case prefixes. Companion sections and repeat visits were pooled within each reader-case combination. Before question generation, a language-model assistant extracted explicit observations, checking actions and requests for additional information from the transcripts, retaining source quotations and timestamps. Selection across recognition, characterization, examination completion and additional-information categories retained at most four checks per combination. Repeated checks within a combination were merged, while similar content expressed by different readers remained separate. Two combinations without an explicit check were excluded, leaving 103 evaluable reviews and 347 check occurrences. The resulting reference was a capped set of assistant-extracted checks.
Claude Sonnet 5 generated up to two four-option questions from either the cleaned narration or a source-supported summary of the same reader's final impression, using identical instructions and allowing abstention. The impression summaries were constructed from the transcripts for this experiment and retained uncertainty and associated findings. Generation used text-only inputs, and the resulting candidate questions were retained as generated.
The comparison banks contained 210 archived PathMMU dermatopathology questions⁴⁴ and 160 questions constructed from Dermatopathology: Diagnosis by First Impression⁴⁵. The latter were locally assembled diagnosis questions. We used corrected intended answers linked to the printed atlas panel letters and preserved the original stems and choices. All 160 stems asked for
40/56 the most likely diagnosis. The corrected 100-item subset used in the main source comparison was analyzed separately. Bank sizes and question formats therefore differed.
GPT-5.6-Sol and Claude Haiku 4.5 independently matched checks to candidate questions. Source labels and reader identities were withheld; items had opaque identifiers. Intended answers distinguished the central tested subject from distractor mentions. The rubric required correspondence to both the clinical target and the checking operation. For example, identifying invasion did not automatically cover deciding to obtain an additional stain. Each proposed match included a literal phrase checked against the question text. Primary coverage required both coders to accept the same check–question match and provide valid verbatim support; individual-coder results were retained as sensitivity analyses. Generation and matching used subscription CLIs, without tools. The textbook extension reused the frozen rubric and settings in separate textbook-only packets. Original-condition matches were retained, so packet context and evaluation occasion differed between the original and added conditions.
For each review, exhaustive retrospective selection identified up to two bank questions maximizing the union of covered checks. Selection used the recorded checks as the retrieval reference. Full-bank unions summarized coverage using every question in each bank. Coverage proportions were averaged equally across readers within case, then equally across the 21 cases. Paired differences and mean intervals used 10,000 case-bootstrap resamples (seed 20260920). Narration supplied both the reference and the richer generation input, making within-record content retention the evaluation target.
Supplementary Note 6 | Data scaling and concept transfer
We examined training-data dependence in a prostate low-power triage task using a Qwen3.5-27B localizer. The target vocabulary contained eight architectural patterns: small crowded glands, infiltrative growth, glands out of place, fused or poorly formed glands, cribriform architecture, glomeruloid architecture, sheets or single cells, and comedonecrosis. Training sets contained 10, 20, 30 or 51 annotated WSIs, with two epochs at each size.
Detection recall increased from approximately 61% at 10 WSIs to 90% at 51 WSIs, while localization IoU remained between approximately 41% and 46% (Supplementary Figure S7). All eight concepts were represented in the smallest set, and the number of training polygons increased from 752 to 4,024. Additional examples primarily improved detection coverage within this concept vocabulary.
Detection, localization and training-set composition

Supplementary Figure S7. Data scaling of prostate concept grounding. Left, detection recall, localization intersection over union (IoU) and output parse rate as the number of annotated training WSIs increases, with two training epochs at each size. Right, numbers of training polygons and represented concepts. The smallest set includes all eight concepts; the number of polygons increases from 752 to 4,024.
The per-concept plots show this distinction for six architectural patterns (Supplementary Figure S8). For example, recall for infiltrative growth increased from approximately 36% to 100%, and recall for fused or poorly formed glands from approximately 38% to 88%, across the plotted training sets. Changes in IoU were smaller and varied in direction across concepts.
41/56
Per-concept detection and localization as training examples increase

Supplementary Figure S8. Detection and localization by concept and training-set size. Recall (left) and localization IoU (right) are plotted against the number of training regions for six prostate architectural patterns: small crowded glands, cribriform architecture, glands out of place, infiltrative growth, sheets, and fused or poorly formed glands. Colors identify concepts; dotted lines show the fitted trends against log-transformed region counts.
Training budget also affected the comparison. Under a fixed budget of 100 optimization steps, parse rate declined from approximately 97% to 69% as the dataset increased; the largest fixed-step run received about 0.28 epochs. Parse rate remained near 100% in the two-epoch series (Supplementary Figure S9). The fixed-step runs hold the optimization budget constant; the equal-epoch runs expose each training example a comparable number of times.

Supplementary Figure S9. Fixed-step and equal-epoch training comparisons. Output parse rate (left) and localization IoU (right) for a fixed budget of 100 optimization steps (red) and two epochs at each dataset size (green). The largest fixed-step run receives approximately 0.28 epochs.
The adapted model achieved higher IoU than the displayed frontier baselines on each of the six plotted concepts (Supplementary Figure S10). Individual prostate fields show substantial variation, including non-overlapping predictions and unparseable responses (Supplementary Figures S11 and S12).
42/56
PathCowork vs frontier baselines — per-concept IoU

Supplementary Figure S10. Localization of six prostate architectural concepts. IoU for the adapted PathCowork localizer and Gemini 3.1, GPT-5.4 and Opus 4.7. Concepts are small crowded glands, infiltrative growth, glands out of place, fused or poorly formed glands, cribriform architecture and sheets.
43/56
| Reference | PathCowork | Gemini 3.1 | GPT-5.4 | Opus 4.7 |
|---|---|---|---|---|
| Small crowded glands | FOV 3.95 mm | ||||
|  | ||||
| Reference annotation | IoU 21% | IoU 60% | IoU 16% | IoU 38% |
| Small crowded glands | FOV 4.80 mm | ||||
|  | ||||
| Reference annotation | IoU 36% | IoU 5% | IoU 27% | IoU 0% |
| Fused glands | FOV 3.56 mm | ||||
|  |  |  |  |  |
| Reference annotation | IoU 0% | IoU 0% | IoU 0% | IoU 0% |
| Fused glands | FOV 4.54 mm | ||||
|  |  |  |  |  |
| Reference annotation | IoU 0% | IoU 59% | IoU 0% | IoU 0% |
Supplementary Figure S11. Qualitative grounding comparisons in prostate tissue. Two examples of small crowded glands and two of fused glands are shown with their reference regions and model outputs. Outlines show reference and predicted regions. Values below each field are example-level IoU percentages. FOV, field of view.
44/56
| Reference | PathCowork | Gemini 3.1 | GPT-5.4 | Opus 4.7 |
|---|---|---|---|---|
| Fused glands | FOV 2.17 mm | ||||
| Reference annotation | IoU 0% | IoU 0% | IoU 0% | Unparseable |
| Fused glands | FOV 3.89 mm | ||||
| Reference annotation | Unparseable | IoU 27% | IoU 0% | Unparseable |
| Fused glands | FOV 2.23 mm | ||||
| Reference annotation | IoU 0% | IoU 0% | IoU 0% | IoU 0% |
Supplementary Figure S12. Additional fused-gland grounding examples. Three further prostate fields are shown with the same column order as Supplementary Figure S11. Values are example-level IoU percentages. "Unparseable" denotes an output without valid spatial geometry.
In a separate experiment withholding cribriform supervision, cribriform IoU was 29%, compared with 54% after full concept training, 42% for Gemini 3.1 and 0% for GPT-5.4 and Opus 4.7 (Supplementary Figure S13). The retained performance indicates some transfer to this withheld concept, while the difference from full training shows the additional value of concept-specific examples. Two qualitative comparisons illustrate this variation at the level of individual fields (Supplementary Figure S14).
45/56

Supplementary Figure S13. Localization after withholding cribriform supervision. Cribriform IoU for a localizer trained without cribriform examples, the localizer trained with the full concept set, and three frontier baselines. Labels above the bars give IoU percentages.

Supplementary Figure S14. Cribriform localization with and without direct cribriform supervision. Two prostate fields compare the reference region, PathCowork trained on the full concept set, PathCowork trained with cribriform examples withheld, and three frontier models. Values are example-level IoU percentages. The two fields illustrate variation in transfer to the withheld concept; aggregate results are reported in Supplementary Figure S13. FOV, field of view.
Supplementary Note 7 | Model and deployment choices
Complementary development experiments examined the trade-offs underlying model and deployment choices: localization across model sizes, resource use at reduced precision and training behavior over one or two epochs. The settings for each experiment are given below.
Backbone comparisons assessed dermoepidermal-junction localization using Dice overlap. The four-model comparison includes Qwen3.5-4B, Qwen3.6-35B-A3B, Qwen3.5-27B and Kimi K2.6 (Supplementary Figure S15a). Mean Dice was approximately 47–48% for the smaller dense and mixture-of-experts models and 51–52% for Qwen3.5-27B and Kimi K2.6. The same measurements are plotted against total and active parameter counts to compare these dense and mixture-of-experts backbones; architecture and parameter count vary together.
46/56
A separate 27B dermatopathology experiment compared bf16 server inference with 8-bit and 4-bit local inference (Supplementary Figure S15b). Mean dermoepidermal-junction-region Dice was 29%, 35% and 23%, respectively. The local 4-bit model occupied approximately 15 GB, compared with 28 GB for 8-bit, and per-image latency decreased from approximately 14 to 10.5 s. Both numerical precision and the execution environment differed across these configurations.
Training loss for Kimi K2.6 continued to decrease during a second epoch, reaching the order of near the end of the run (Supplementary Figure S15c). The one-epoch trace ended at a higher training loss.
47/56 a Backbone size and localization

b Numerical precision and deployment requirements

c Training duration: Kimi K2.6

Supplementary Figure S15. Development studies of model and deployment choices. a, DEJ localization versus total and active parameter counts, showing the same measurements on two logarithmic axes. Filled markers denote dense models and open markers mixture-of-experts models. b, DEJ-region Dice under bf16 server inference and 8-bit and 4-bit local inference (left); model size and per-image latency for the local configurations (right). c, Kimi K2.6 training cross-entropy over one or two epochs. Thin lines show step-level loss and thick lines its exponential moving average (weight 0.1 on the current step). DEJ, dermoepidermal junction.
48/56
Supplementary Note 8 | Spatial formats and reinforcement learning
Choosing an output format before constructing training targets
The six-format development comparison tested whether Qwen3.5-4B could express a usable spatial response before supervised training. Prompts requested box tokens, a plain polygon, JSON polygons with one hypothetical example, the same JSON format without the example, a clockwise boundary trace, or a segmentation schema containing a box, mask and label. The common 60-tile set was drawn from Ivy GAP³²,³³; selection criteria are described in Methods. Output geometry, region purity and coverage were assessed separately.
The box-token and plain-polygon prompts produced 50 and 53 regions, respectively, all classified as rectangles. Adding one hypothetical JSON example elicited regions on 37 of 60 tiles, with 28 of 37 regions classified as non-rectangular and presence accuracy of 0.75. Removing the example reduced region-producing responses to 5 of 60 tiles and presence accuracy to 0.38 in the archival rerun. Without the example, purity increased from 0.17 to 0.41 and coverage was 0.01. The boundary-trace and segmentation-schema prompts yielded non-rectangular regions in 8 of 26 and 7 of 69 predictions, respectively. We selected JSON with one example because it combined frequent region output, preserved presence discrimination and predominantly non-rectangular geometry.
Conditions 1–3 use preserved original predictions; conditions 4–6 use reruns from 6 September 2026 with reconstructed prompts archived alongside the inputs. The selected JSON example illustrated the response structure for a hypothetical image.
Effect of supervised initialization
Three atlas-derived glioma experiments compared reinforcement learning from the base model, from a supervised checkpoint, and from a supervised checkpoint trained with additional lower-grade glioma (LGG) negatives. Each condition used one training run; the protocol and reward are specified in Methods.
The base and supervised-initialized runs used the same 2,553-record pool. LGG augmentation affected both supervised initialization and the reinforcement-learning pool; the corresponding supervised validation sets contained 77 records before augmentation and 117 afterward.
Between the first and final validation checks, reward decreased from 0.478 to 0.306 and presence accuracy from 0.75 to 0.58 when reinforcement learning began from the base model. With supervised initialization, validation reward increased from 0.512 to 0.573 and presence accuracy remained near 0.83–0.84. The run with additional LGG negatives reached a validation reward of 0.665 and presence accuracy of approximately 0.89. These results motivated supervised initialization and joint monitoring of localization and presence discrimination.
Supervised logs track response-token negative log-likelihood on training and validation sets. Reinforcement-learning logs track mean reward from 12 prompts per step, alongside greedy-validation reward and presence accuracy at four evaluation events.
49/56
Supplementary Tables
Supplementary Table S1. Datasets represented in the recording collection. Image sources include TCGA²⁵, DROID-skin²⁶,²⁷ and LNCO2²⁸; behavioral recordings were acquired through the study platform.
| Dataset | Tissue or subspecialty | Source type |
|---|---|---|
| TCGA-COAD | Colorectal pathology | Public |
| TCGA-STAD | Gastric pathology | Public |
| TCGA-BLCA | Bladder pathology | Public |
| TCGA-PRAD | Prostate pathology | Public |
| TCGA-DLBC | Hematopathology | Public |
| TCGA-GBM | Neuropathology | Public |
| DROID-skin | Dermatopathology | Public |
| LNCO2 | Colorectal lymph-node pathology | Public |
| Cytology teaching set | Cytopathology | Institutional |
Supplementary Table S2. Intermediate record fields. Coordinates and timestamps link derived examples to the original slide and recording.
| Field | Representation | Content |
|---|---|---|
| Image | Crop and WSI metadata | Viewed tissue region, slide identifier, coordinates and magnification |
| Narration | Text and timestamps | Transcribed utterance, neighboring speech and its time interval |
| Grounding | Spatial coordinates | Polygon, bounding box or polyline associated with a narrated concept |
| Trajectory | Ordered event records | Sequence of views, positions, magnifications and transitions |
| Revisit | Linked event records | Previous observations of the same WSI region |
| Derived context | Structured text | Normalized description, case summary and interpretation of the narration |
| Video | Session recording | Visual reference for quality review and event alignment |
50/56
Supplementary Table S3. Model configurations by analysis. Backbone identifiers and training conditions are listed for the individual experiments.
| Analysis | Model or configuration | Role |
|---|---|---|
| Main grounding comparison | Kimi K2.6; Qwen3.6-27B | PathCowork-1T and PathCowork-27B; LoRA rank 32, peak learning rate , batch size 16, two epochs; final checkpoint |
| Dermatopathology skill | PathCowork-1T (Kimi K2.6) | Adapted concept localizer evaluated in Figure 2e,f and used by the agent in Figure 3 |
| Brain agent comparison | PathCowork v4.4 High; Codex GPT-5.6-sol | Same 30 cases; Claude Code also evaluated, with two missing reports counted as incorrect |
| PathCowork-general | Qwen3.5-4B; LoRA rank 32 | Supervised general navigator; 29 decision slots (Note 3) |
| Small-model development | Qwen3.5-4B; LoRA rank 8 | SFT and subsequent appearance-aware RL experiment (Note 1) |
| Glioma format and RL recipe | Qwen3.5-4B; LoRA rank 32 | Prompt-format selection and base versus SFT-initialized RL (Note 8) |
| Prostate data scaling | Qwen3.5-27B; two epochs | Increasing training-set size and concept-level evaluation (Note 6) |
| Model-size comparison | Qwen3.5-4B; Qwen3.6-35B-A3B; Qwen3.5-27B; Kimi K2.6 | DEJ localization versus total and active parameter counts |
| Quantization comparison | 27B skin localizer; bf16, 8-bit, 4-bit | Localization, model footprint and latency |
| Training-duration comparison | Kimi K2.6; one or two epochs | Supervised training-loss traces |
| Question-source comparison | Claude / GPT; Haiku 4.5, Sonnet 5, Opus 4.8 | Image-input and separate three-model source comparisons in Figure 5b |
| Benchmark categories | Opus 4.8; Haiku 4.5; GPT-5.5; GPT-5.6-sol; GPT-5.4-mini; Gemini 3.1 | Four categories, with one resident reference |
| MIL feature encoders | UNI2-h; Virchow2; CONCH | Frozen tile embeddings for slide-level grading |
51/56
Supplementary Table S4. Sources of cases used in agent evaluation. All three agents were assigned the same cases within each task. Evaluation cases were unseen during grounding training and skill construction.
| Task | Source | Evaluation set | Clinical endpoint |
|---|---|---|---|
| Skin | HISTAI | 20 cases; 69 WSIs | Melanoma versus dysplastic nevus |
| Prostate | PANDA | 20 slides | Cancer detection and ISUP grade |
| Breast | HISTAI | 39 cases; grades 1/2/3: 10/14/15 | Nottingham grade and component scores |
| Brain | TCGA-GBM; TCGA-LGG | 30 cases; 15 per class | GBM versus lower-grade glioma |
| Colorectal lymph nodes | LNCO2 | 77 slides; 10 positive, 67 negative | Node detection and metastasis classification |
52/56
Supplementary Table S5. Paired comparisons of CoworkMIL with ABMIL. Means and mean paired differences in quadratic-weighted are based on 20 matched training seeds per setting, evaluated on the same 30-slide test set. is the number of training slides. Two-sided exact Wilcoxon signed-rank tests use the archived seed-level scores, stored to four decimal places; none of these contrasts has a zero difference or tied absolute differences. All 15 comparisons are reported; , . Positive differences favor CoworkMIL.
| Encoder | N | CoworkMIL | ABMIL | Difference | P |
|---|---|---|---|---|---|
| UNI2-h | 10 | 0.321 | 0.279 | +0.041 | 0.153646 |
| UNI2-h | 20 | 0.544 | 0.466 | +0.078 | 0.001017** |
| UNI2-h | 30 | 0.620 | 0.552 | +0.067 | 0.029575* |
| UNI2-h | 40 | 0.690 | 0.660 | +0.030 | 0.230513 |
| UNI2-h | 50 | 0.712 | 0.724 | -0.012 | 0.348810 |
| Virchow2 | 10 | 0.376 | 0.261 | +0.115 | 0.010689* |
| Virchow2 | 20 | 0.486 | 0.385 | +0.101 | 0.009436** |
| Virchow2 | 30 | 0.620 | 0.469 | +0.151 | 0.001432** |
| Virchow2 | 40 | 0.731 | 0.611 | +0.120 | 0.001432** |
| Virchow2 | 50 | 0.773 | 0.761 | +0.013 | 0.621513 |
| CONCH | 10 | 0.347 | 0.271 | +0.076 | 0.032768* |
| CONCH | 20 | 0.585 | 0.484 | +0.101 | 0.017181* |
| CONCH | 30 | 0.718 | 0.606 | +0.112 | 0.001209** |
| CONCH | 40 | 0.742 | 0.662 | +0.081 | 0.003153** |
| CONCH | 50 | 0.741 | 0.643 | +0.098 | 0.000168** |
53/56
Supplementary Table S6. EAGLE and MIL pipelines on matched training subsets and test slides. All rows use the same 20 subsets of 20 training slides and the same 30-slide PANDA test cohort. Quadratic-weighted is reported as mean sample standard deviation across subsets; MAE is the mean absolute error in ISUP grade. EAGLE uses frozen CTransPath–CHIEF tile selection, frozen Virchow2 class-token features, mean pooling and a fitted logistic-regression classifier. Its indicated resolution applies to both tile selection and re-encoding. The MIL rows use frozen Virchow2 class-token plus mean patch-token features from native level-0 tiles and a trained attention aggregator; CoworkMIL additionally uses grounding-derived training supervision.
| Pipeline | (mean s.d.) | Mean MAE |
|---|---|---|
| EAGLE, 0.5 m per pixel | 0.430 0.160 | 1.225 |
| EAGLE, 2.0 m per pixel | 0.435 0.108 | 1.298 |
| ABMIL, Virchow2 | 0.385 0.133 | 1.347 |
| CoworkMIL, Virchow2 | 0.486 0.120 | 1.178 |
54/56
Supplementary Table S7. Composition of the retained recorded-review question bank. Counts refer to unique retained question identifiers in the two source-bank exports. Environmental sensing comprises two subtypes. The separate 100-question source comparisons and 148-question paired image-input analysis use the subsets described in Methods.
| Category | Content | Questions |
|---|---|---|
| Rejection of an inapplicable premise | Finding or premise verification | 128 |
| Multi-slide reasoning | Evidence across fields or slides | 62 |
| Goal-directed navigation | Next region to inspect | 59 |
| Environmental sensing | Viewing scale | 63 |
| Tissue location | 59 | |
| Total | 371 |
55/56
Supplementary Video
Supplementary Video 3 | General navigation learned from pathologist behavior.
Demonstration of PathCowork-general navigating a CAMELYON17 lymph-node slide using a learned viewing policy. The main panel shows the current field and candidate grid cells; the overview shows the viewing trajectory and spatial context. The navigator successively zooms into selected fields, inspects tissue at higher magnification and returns to a broader view before visiting another region. The status panel reports actions, model outputs and measured inference times. Blue overlays indicate reference lesion annotations (filled where read), yellow lines indicate the viewing trajectory and the red box indicates the current field. This recorded example contains 10 steps, with 3.41 s total model inference time and 3.68 s recorded runtime. The supplied visualization lasts 17.9 s, including display holds; its playback timing is preserved. The submission video adds opening and closing title cards and has no audio.
56/56