TL;DR
When AI pathology agents examine massive medical tissue scans patch by patch, they have a dangerous habit: if a vision model makes the same mistake five times on the same slide, a summarizing LLM treats that repetition as overwhelming consensus for the wrong diagnosis. BayesPath replaces free-text LLM guesswork with classic, reliability-aware Bayesian math—tracking an explicit probability distribution over diagnoses, discounting correlated observations, and turning systematic model confusions into useful signal, all without any training or ground-truth labels.
What Problem Does This Paper Address?
A single digital biopsy, or whole-slide image (WSI), is a gigapixel landscape—often $100,000 \times 100,000$ pixels. No model can ingest that whole thing at full resolution. Human pathologists handle this via hypothesis-driven exploration: they scan at low power to form a differential diagnosis (a shortlist of suspects), zoom in on specific areas to test competing hypotheses, weigh how much to trust what they see, and stop once they are confident.
Recent "training-free" AI agents try to mimic this using frozen foundation models: a multimodal LLM (MLLM) describes selected patches of tissue, and a standard LLM reads those descriptions to decide where to look next and make a final call.
This setup has two major blind spots:
- No explicit belief: Without tracking probabilities over candidate answers, the LLM doesn't know how to pick regions that separate top contenders, nor does it know when to stop—often quitting after one glance with terrible accuracy.
- Blind trust in correlated evidence: Different patches from the same slide show the same patient's tissue, read by the same MLLM. If the MLLM systematically misreads ovarian carcinoma as lung adenocarcinoma, it will make that exact error across ten different patches. The aggregating LLM sees ten votes for "lung" and becomes confidently wrong.
Methods
BayesPath is a training-free agent built over three frozen off-the-shelf models: a pathology vision-language Encoder (CONCH), a describing MLLM Observer (Patho-R1-7B), and a text-reranker Verifier (Qwen3-Reranker-4B). Instead of passing a growing wall of text to an LLM, BayesPath maintains a mathematical probability distribution—the belief—over the $K$ candidate answers across four stages:
- 1. Scan: The Encoder scores all low-magnification ($5\times$) tissue fields against the candidates to form an initial prior belief.
- 2. Look: Guided by the belief's entropy, an Explorer decides whether to survey random unread tissue (when uncertainty is high) or test specific candidates (when the race narrows) by zooming up to $20\times$ on regions that best separate a sampled suspect from its top rivals. The Observer then describes the chosen view.
- 3. Weigh (The Secret Sauce): The Verifier scores how well the text description supports each candidate, and Bayes' rule updates the belief. Crucially, instead of naive Bayes (which also overcounts repeated errors), the authors introduce a reliability-aware likelihood with three label-free corrections:
- Bias correction: Divides out a model's baseline preference for certain buzzwords (estimated across unlabelled slides).
- Bounded evidence (for VQA): Treats a slide's views as a correlated bag rather than independent coin flips, mathematically capping how much repeated, similar views can inflate confidence.
- Confusion-aware evidence (for Classification): Uses Expectation-Maximisation (EM) across unlabelled slides—just like crowdsourcing algorithms grade human annotators without an answer key—to estimate a confusion matrix. If the Observer cries "lung" on 41% of ovarian slides vs. 14% of uterine slides, a "lung" reading actually boosts the belief in ovarian!
- 4. Decide: Once the leading candidate's belief crosses a threshold ($\tau = 0.95$) or the view budget ($T = 25$) runs out, BayesPath answers, leaving behind a transparent trail of how every patch shifted the odds.
Datasets
BayesPath is evaluated zero-shot across five public benchmarks from MultiPathQA (no new datasets are introduced, and no ground-truth labels are used for calibration):
- Slide Classification: TCGA (30 cancer types), GTEx (20 normal organ tissues), and PANDA (6-class prostate cancer grading).
- Slide VQA (4-choice visual question answering): ExpertVQA (pathologist-written questions on TCGA) and SlideBench (from SlideBench-VQA).
Key Insights and Ideas
- LLMs are poor sequential statisticians: Even when fed the exact same sequence of patch observations—and even when scaled up $7\times$ (to 27B parameters) and explicitly prompted to discount repeats—LLM aggregation loses badly to Bayesian updating. Plus, reversing the order of views flips up to 33% of an LLM's answers; BayesPath is completely order-invariant.
- Turning model flaws into features without labels: Existing agents predicted "lung adenocarcinoma" on ~50% of TCGA slides, though it makes up only 5% of the dataset. By learning confusions from unlabelled slides via EM, BayesPath achieves 39% accuracy on TCGA slides where not a single patch description ever named the true cancer.
- Knowing what you don't know: Naive Bayes multiplies probabilities, driving confidence to 99% on repeated mistakes. Bounding the evidence keeps BayesPath well-calibrated, meaning clinicians could reliably defer low-confidence slides to human experts.
Key Results
- Overall Accuracy: Across all five tasks, BayesPath averages 58.6%, beating the strongest competing training-free agent (PathAgent, 34.1%) by 24.5 percentage points, and the best thumbnail MLLM (Qwen3.8-27B, 28.5%) by 30.1 points.
- Massive Classification Gains: On 30-way TCGA cancer typing, BayesPath hits 75.3% balanced accuracy vs. 14.5% for PathAgent. On 20-way GTEx organ ID, it scores 83.4% vs. 45.0%.
- Calibration & Modularity: Expected Calibration Error (ECE) drops from 0.33–0.67 (naive Bayes) down to 0.07–0.13. Swapping in a stronger encoder (CONCH-Z) or different MLLM Observers (Quilt-LLaVA, PathGen-LLaVA) preserves BayesPath's wide lead without touching a single weight.
Limitations and Future Work
Not discussed in the paper. (Note: Methodologically, the authors do note by design that confusion-aware evidence requires a pool of unlabelled slides sharing the same candidate set, meaning open-ended/slide-specific VQA questions fall back solely to bounded evidence without bias or confusion matrices.)
Summary updated