PathJev: Decision-Native Vision-Language Modelling for Histopathology
Organizations: DIETI, University of Naples Federico II, Naples, Italy
Abstract
Vision-language models used for decisions in histopathology rarely return calibrated probabilities over the candidates a user cares about. Decision-native models write a question and a candidate set chosen at run time into the input and return a normalised distribution from a small decision head in one forward pass. We build PathJev-P, a decision-native model for histopathology: MedGemma-1.5-4B with LoRA adapters and a decision head, trained on 40,000 patch states from three public collections whose expert labels are turned into typed questions with organ-specific candidate sets and a "none of these" option. In a comparison over 3 seeds with an analysis plan fixed before testing, on test sets without documented overlap with the training data of the backbone, PathJev-P is more accurate than a generative model trained with the same backbone, data and selection rule, the zero-shot pathology model CONCH and a general medical decision model (balanced accuracy 0.541 against 0.492, 0.345 and 0.213); its advantage over the generative model comes from two organs absent from training. The calibration advantage depends on how the generative model's probabilities are read out. With the summed candidate log-likelihood used in previous work, PathJev-P has the lower calibration error (ECE 0.204 against 0.279); with a length-normalised read-out of the same generative model, examined post hoc, the two have similar mean calibration error (0.201) and the generative model is better calibrated on the unseen organs, where PathJev-P remains over-confident. A supervised linear probe on a pathology foundation model is better calibrated in every setting. In a qualitative whole-slide demonstration, PathJev-P labels unsupervised tissue clusters with abstention and separates carcinoma from other tissue while running the model on a fraction of the tiles.
Figures & tables
| Set | Organ | Role | Classes | States | Groups | Group unit |
|---|---|---|---|---|---|---|
| HepatoBench | liver | clean, unseen domain | 7 | 5,000 of 87,301 | 5,000 | image § |
| HiESD | stomach | clean, unseen domain | 10 | 5,000 of 23,679 | 44 | patient |
| BRACS | breast | clean, in domain | 7 | 570 | 30 | patient |
| SICAPv2 | prostate | clean, in domain | 4 | 2,122 | 21 | patient |
| SPIDER colorectal | colon | seen source | 13 | 5,000 of 7,485 | 158 | slide |
| SPIDER thorax | lung | seen source | 13 | 5,000 of 5,569 | 38 | slide |
| Clean average | Unseen organs | In domain | Seen source | |||||
| Method | bAcc | ECE | bAcc | ECE | bAcc | ECE | bAcc | ECE |
| Trained on our data | ||||||||
| PathJev-P (ours) | 0.541 ±.015 | 0.204 ±.002 | 0.390 ±.015 | 0.301 ±.012 | 0.692 ±.019 | 0.108 ±.013 | 0.781 ±.017 | 0.049 ±.025 |
| (b) Gen-SFT | 0.492 ±.006 | 0.279 ±.006 | 0.277 ±.026 | 0.446 ±.017 | 0.707 ±.015 | 0.113 ±.018 | 0.810 ±.006 | 0.044 ±.011 |
| Zero-shot | ||||||||
| (a) OmniMed-Jev | 0.213 | 0.517 | 0.253 | 0.540 | 0.173 | 0.493 | 0.212 | 0.577 |
| Temperature fitted on | |||||
|---|---|---|---|---|---|
| Method | none | val. mix | in-domain val. | other unseen organ | same set (oracle) |
| PathJev-P (ours) | 2.39 | 2.08 | 1.99 | 1.78 | 1.71 |
| (b) Gen-SFT | 3.70 | 2.87 | 2.66 | 2.03 | 1.92 |
| (a) OmniMed-Jev | 3.76 | 1.98 | 2.09 | 1.97 | 1.97 |
| (c) CONCH | 4.41 | 1.77 | 2.22 | 1.77 | 1.75 |
| (e) Inner-Jev | 5.06 | 2.15 | 2.18 | 2.17 | 2.11 |
| PathJev-P | AUROC | Sensitivity | Specificity | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Slide | Patient | Tiles | Labelled | Clusters | tiles | clusters | all tiles | clusters | all tiles | clusters | all tiles |
| 1a7624bc | P22 | 2,731 | 713 | 30 | 471 | 0.983 | 0.946 | 0.912 | 0.912 | 0.993 | 0.845 |
| 46e7dccd | P27 | 7,165 | 2,073 | 30 | 480 | 0.942 | 0.928 | 0.920 | 0.824 | 0.896 | 0.879 |
| c6a80707 | P38 | 3,279 | 1,388 | 30 | 480 | – | – | – | – | 1.000 | 0.970 |
| e492f29a | P22 | 1,043 | 230 | 18 | 288 | – | – | – | – | 1.000 | 0.987 |
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
| Clean average | Unseen organs | In domain | ||||
|---|---|---|---|---|---|---|
| Method | bAcc | ECE | bAcc | ECE | bAcc | ECE |
| PathJev-P (ours) | 0.542 | 0.199 | 0.392 | 0.290 | 0.692 | 0.108 |
| (a) OmniMed-Jev | 0.213 | 0.491 | 0.254 | 0.489 | 0.173 | 0.493 |
| (c) CONCH | 0.349 | 0.415 | 0.335 | 0.510 | 0.363 | 0.319 |
| (e) Inner-Jev | 0.288 | 0.609 | 0.230 | 0.696 | 0.346 | 0.521 |
| (d) Linear probe † | 0.718 | 0.049 | 0.760 | 0.024 | 0.677 | 0.074 |
| Set | Metric | PathJev-P | Gen-SFT | OmniMed-Jev | CONCH | Inner-Jev | Probe † |
|---|---|---|---|---|---|---|---|
| Unseen organs | |||||||
| HepatoBench | bAcc | 0.512 | 0.414 | 0.267 | 0.354 | 0.303 | 0.971 |
| ECE | 0.305 | 0.426 | 0.575 | 0.496 | 0.525 | 0.007 | |
| NLL | 1.862 | 3.240 | 3.798 | 3.911 | 3.671 | 0.098 | |
| HiESD | bAcc | 0.267 | 0.140 | 0.239 | 0.301 | 0.158 | 0.572 |
| ECE | 0.297 | 0.465 | 0.506 | 0.478 | 0.746 | 0.034 | |
| Quantity | PathJev-P (3 seeds) | Gen-SFT (3 seeds) |
|---|---|---|
| Selected configuration | lr , 3 epochs | lr , budget of 5 PathJev-P epochs |
| Training items per pass | 40,000 states | 170,390 single-decision examples |
| Optimiser steps at checkpoint | 200 (A) + 2,500 (B) | 5,000 |
| Planned steps (whole run) | 3,950 | 6,250 |
| Items per optimiser step | 32 | 32 |
| Passes at checkpoint (Stage B) | 2.00 | 0.94 |
| Dataset | MedSigLIP / MedGemma 1.5 | OmniMed-Jev fine-tuning | CONCH v1 | H-optimus-0 |
|---|---|---|---|---|
| SPIDER (HISTAI) | U | N | U | U |
| BRACS | U | N | U | U |
| SICAPv2 | U | N | U | U |
| HepatoBench | U | N | R | U |
| HiESD | U | N | R | U |
| H1a: ECE | H1b: bAcc | Supported | ||||
|---|---|---|---|---|---|---|
| HepatoBench groups | vs Gen-SFT | vs CONCH | vs Gen-SFT | vs CONCH | H1a | H1b |
| Image (primary) | 0.075 | 0.199 | +0.049 | +0.196 | yes | yes |
| [ 0.088, 0.064] | [ 0.237, 0.158] | [+0.038, +0.063] | [+0.161, +0.218] | |||
| Blocks of 50 | 0.075 | 0.199 | +0.049 | +0.196 | yes | yes |
| [ 0.089, 0.063] | [ 0.237, 0.156] | [+0.038, +0.063] | [+0.161, +0.218] | |||
| Blocks of 200 | 0.075 | 0.199 | +0.049 | +0.196 | yes | yes |
| Clean average | Unseen organs | In domain | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Read-out | bAcc | ECE | NLL | bAcc | ECE | NLL | bAcc | ECE | NLL |
| PathJev-P (reference) | 0.541 | 0.204 | 1.586 | 0.390 | 0.301 | 2.394 | 0.692 | 0.108 | 0.777 |
| Gen-SFT, sum (primary) | 0.492 | 0.279 | 2.257 | 0.276 | 0.446 | 3.700 | 0.709 | 0.112 | 0.814 |
| Gen-SFT, sum + end-of-answer | 0.492 | 0.279 | 2.257 | 0.276 | 0.446 | 3.700 | 0.709 | 0.112 | 0.814 |
| Gen-SFT, length-normalised | 0.492 | 0.201 | 1.508 | 0.289 | 0.110 | 1.965 | 0.696 | 0.293 | 1.050 |
| Clean bAcc | Clean ECE | “other” (%) | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Method | Perm. | orig. | mean | range | orig. | mean | range | TV | flips (%) | orig. | perm. |
| PathJev-P | 10 | 0.541 | 0.545 | 0.542–0.549 | 0.204 | 0.199 | 0.197–0.202 | 0.050 | 7.3 | 0.0 | 0.0 |
| Gen-SFT | 5 | 0.498 | 0.501 | 0.493–0.509 | 0.281 | 0.275 | 0.266–0.288 | 0.060 | 7.6 | 0.0 | 0.0 |
| OmniMed-Jev | 10 | 0.213 | 0.239 | 0.215–0.251 | 0.517 | 0.481 | 0.448–0.525 | 0.147 | 18.9 | 49.8 | 46.1 |
| Pre-resize 448 (primary) | Pre-resize 896 | |||||||
|---|---|---|---|---|---|---|---|---|
| Group | bAcc | ECE | NLL | Brier | bAcc | ECE | NLL | Brier |
| Clean average | 0.213 | 0.517 | 3.269 | 1.185 | 0.207 | 0.519 | 3.291 | 1.191 |
| Unseen organs | 0.253 | 0.540 | 3.765 | 1.200 | 0.251 | 0.542 | 3.776 | 1.202 |
| In domain | 0.173 | 0.493 | 2.774 | 1.169 | 0.164 | 0.495 | 2.806 | 1.181 |
| Seen source | 0.212 | 0.577 | 5.261 | 1.269 | 0.210 | 0.581 | 5.348 | 1.277 |
| HepatoBench | HiESD | BRACS | SICAPv2 | |||||
|---|---|---|---|---|---|---|---|---|
| Method | max TV | bAcc | max TV | bAcc | max TV | bAcc | max TV | bAcc |
| PathJev-P | 0.143 | 0.100 | 0.143 | 0.250 | ||||
| Gen-SFT | 0 | 0.143 | 0 | 0.100 | 0 | 0.143 | 0 | 0.250 |
| OmniMed-Jev | 0.000 | 0.100 | 0.000 | 0.000 | ||||
| Chance | – | 0.143 | – | 0.100 | – | 0.143 | – | 0.250 |
| Temperature fitted on | |||||
|---|---|---|---|---|---|
| Method | none | val. mix | in-domain val. | other unseen organ | same set (oracle) |
| PathJev-P (ours) | 0.843 | 0.790 | 0.772 | 0.723 | 0.715 |
| (b) Gen-SFT | 1.074 | 0.979 | 0.948 | 0.834 | 0.796 |
| (a) OmniMed-Jev | 1.200 | 0.821 | 0.863 | 0.818 | 0.817 |
| (c) CONCH | 1.094 | 0.778 | 0.880 | 0.773 | 0.777 |
| (e) Inner-Jev | 1.349 | 0.876 | 0.886 | 0.892 | 0.860 |
| Raw | Validation temperature | ||||||
|---|---|---|---|---|---|---|---|
| Set | Method | ECE | Brier | NLL | ECE | Brier | NLL |
| HepatoBench | PathJev-P | 0.305 | 0.750 | 1.862 | 0.247 | 0.698 | 1.592 |
| Gen-SFT | 0.426 | 0.960 | 3.240 | 0.360 | 0.888 | 2.436 | |
| OmniMed-Jev | 0.575 | 1.225 | 3.798 | 0.178 | 0.798 | 1.878 | |
| CONCH | 0.496 | 1.091 | 3.911 | 0.077 | 0.760 | 1.577 | |
| Inner-Jev | 0.525 | 1.160 | 3.671 | 0.144 | 0.859 | 2.023 | |
| Set | Method | Acc | Macro-F1 | aECE | Brier | NLL | AURC |
|---|---|---|---|---|---|---|---|
| HepatoBench | PathJev-P | 0.512 ±.022 | 0.459 ±.043 | 0.305 ±.017 | 0.750 ±.030 | 1.862 ±.186 | 0.254 ±.011 |
| Gen-SFT | 0.414 ±.041 | 0.338 ±.058 | 0.426 ±.026 | 0.960 ±.063 | 3.240 ±.282 | 0.375 ±.054 | |
| OmniMed-Jev | 0.267 | 0.255 | 0.575 | 1.225 | 3.798 | 0.518 | |
| CONCH | 0.354 | 0.387 | 0.496 | 1.091 | 3.911 | 0.654 | |
| Inner-Jev | 0.303 | 0.184 | 0.525 | 1.160 | 3.671 | 0.580 | |
| Probe † | 0.971 | 0.971 | 0.005 | 0.045 | 0.098 | 0.003 |
| Question | Method | AUROC | ECE | NLL | Brier |
|---|---|---|---|---|---|
| HepatoBench: tumour | PathJev-P | 0.893 ±.005 | 0.103 ±.031 | 0.498 ±.115 | 0.132 ±.024 |
| Gen-SFT | 0.883 ±.023 | 0.163 ±.038 | 0.757 ±.205 | 0.180 ±.033 | |
| OmniMed-Jev | 0.734 | 0.107 | 0.593 | 0.117 | |
| Inner-Jev | 0.707 | 0.787 | 4.438 | 0.781 | |
| HiESD: adenocarcinoma | PathJev-P | 0.897 ±.005 | 0.086 ±.007 | 0.463 ±.028 | 0.127 ±.004 |
| Gen-SFT | 0.882 ±.014 | 0.142 ±.010 | 0.726 ±.047 | 0.166 ±.010 |
Computational Pathology
Computational pathology uses algorithms to analyze digitized tissue images for diagnosis, prognosis, biomarker discovery, and clinical decision support.
See all 277 papers