TL;DR
Specialized pathology foundation models, despite being trained on millions of tissue slides, suffer from a hidden blind spot: they often confuse hospital-specific scanner or staining quirks with actual disease biology. Surprisingly, off-the-shelf, general-purpose multimodal LLMs (like Gemini and Qwen) match or beat these domain experts when comparing tissues across different hospitals. They serve as an existence proof that AI can see past technical artifacts to recognize true cellular morphology—no domain-specific pretraining required.
What Problem Does This Paper Address?
Imagine a pathologist querying a multi-hospital database with a slide of rare cancer to find similar cases. You want the AI to retrieve matching cancer morphologies, regardless of where the tissue was scanned. Instead, state-of-the-art pathology foundation models frequently return healthy tissue simply because it was prepared at the same hospital on the same scanner, giving it a matching color palette or cutting artifact.
In machine learning parlance, these models’ embedding spaces are heavily entangled with batch effects (technical variations from slide thickness, staining protocols, and scanner optics). Worse, standard evaluations—like training a linear classifier within a single dataset—completely miss this failure because the model can cheat using cohort-specific shortcuts. Furthermore, existing robustness benchmarks rely on analyzing continuous vector embeddings, meaning you couldn't fairly compare traditional vision encoders against generative multimodal LLMs (MLLMs) that output text rather than feature vectors.
Methods
To put embedding models and generative MLLMs on equal footing, the authors ditch downstream classifiers and reformulate evaluation as a classic triplet comparison task, inspired by cognitive science and representational similarity analysis.
Given a reference tissue tile ($t_r$), the model is shown two candidates: a positive tile ($t_p$) of the exact same biological class, and a negative tile ($t_n$) of a different class. Random guessing yields 50% accuracy. The twist lies in three progressively harder setups:
- Within-slide: All three tiles come from the exact same physical glass slide (no batch effects).
- Cross-slide: $t_r$ and $t_n$ share a slide, while the matching $t_p$ comes from a different patient's slide.
- Cross-institution: $t_r$ and $t_n$ come from Hospital A, while the matching $t_p$ comes from Hospital B (forcing the model to ignore hospital-specific staining/scanner signatures).
For foundation models (7 pathology-specific like Virchow2 and UNI2H, plus 7 general vision encoders like DINOv2 and CLIP), the system extracts embeddings and picks the candidate with the smaller Euclidean distance to the reference. For multimodal LLMs (6 models including Gemini 3 Flash, Qwen3.5, and GPT-5 Nano), the system feeds all three images into a zero-shot prompt instructing the model to act as a judge—focusing on cell morphology and tissue architecture while ignoring staining intensity—and parses the chosen candidate from a JSON output.
Datasets
No models were trained in this diagnostic study. Instead, the authors introduce MOSAIC (Model Similarity Assessment across Institutions and Cohorts), a public benchmark comprising 13,800 comparison triplets (8,400 cross-domain) curated from six existing H&E-stained histopathology cohorts spanning breast, colorectal, and lung tissues across 9 institutions:
- Cross-slide cohorts: HER2ST (breast), CCTGS (colorectal), and TIGER (breast).
- Cross-institution cohorts: CAMELYON16 (breast, 2 sites), TCGA (lung squamous cell carcinoma, 3 sites), and BEETLE (breast, 4 sites).
Unlike recent benchmarks (e.g., Plismbench, SCORPION) that test scanner invariance on registered pairs of the exact same tissue slice, MOSAIC tests whether models can discriminate different slides and diseases across institutions.
Key Insights and Ideas
- The "Clever Hans" effect in pathology encoders: Within a single slide, pathology foundation models dominate. Cross hospital boundaries, however, and their accuracy often plummets below random chance (50%)—proving they actively prioritize same-scanner color/texture shortcuts over biology.
- More data doesn't fix bad objectives: Scaling pretraining datasets past 100 million histology tiles does not improve cross-domain similarity for pathology encoders. This implicates self-supervised learning objectives (which reward capturing all visual differences, including scanner noise) rather than a lack of training data.
- Semantic reasoning beats fixed geometry: Why do general MLLMs win without pathology pretraining? Even when researchers extracted the exact same vision encoders used inside Qwen3.5, GLM-4.6V, and Gemma 3 and tested their raw embeddings, they underperformed the full MLLMs. Explicit, prompt-steered relational reasoning over visual tokens filters out batch effects in a way static embedding distances cannot.
- Inference-time steerability: Unlike frozen foundation model embeddings, MLLM similarity criteria can be steered on the fly simply by tweaking the prompt to emphasize cellular architecture over stain color.
Key Results
- Within-domain vs. Cross-domain whiplash: On HER2ST within-slide triplets, pathology giant Virchow2 leads at 73.5% (UNI2H at 72.8%). Move to cross-slide, and Virchow2 drops to 46.0%, while GPT-5 Nano takes the lead at 57.0%. On TIGER cross-slide, every pathology model collapses to 18%–24% (far worse than a coin flip), whereas GPT-5 Nano hits 46.0%.
- Cross-institution dominance: On TCGA lung cancer across sites, Qwen3.5 achieves 58.9%, crushing the best pathology encoder (Virchow2 at 44.0%) and H-optimus-0 (17.7%). Even a robustness-specialized pathology model (GenBio-PathFM) only matches MLLMs on two cohorts (CCTGS at 75.2% vs. Gemini 3 Flash's 74.6%; CAMELYON16 at 71.8% vs. Gemini 3.1 Flash Lite's 73.0%) while failing on TIGER (20.0%) and TCGA (44.0%).
- Downstream clinical impact: In a 4-way confounded classification task (chance = 25%) where distractors share the query's hospital, cross-institution triplet accuracy strongly predicted classification success ($r = 0.88$). Gemini 3.1 Flash Lite averaged 48.5% across cohorts, beating the best pathology model (GenBio-PathFM, 37.3%) and general encoder (Gemini Embedding 2, 34.3%).
Limitations and Future Work
The authors note that their evaluation is restricted to standard H&E-stained images. Future work should expand this relative similarity framework to other modalities—such as immunohistochemistry (IHC), multiplexed imaging, and spatial transcriptomics/biology—where cross-platform batch effects are equally notorious. Implicitly, while MLLMs excel at zero-shot pairwise/triplet reasoning, scaling generative text-output comparisons to search millions of database tiles remains computationally heavier than fast vector-database lookups, pointing toward a need for new foundation model training objectives that bake MLLM-like semantic invariance directly into lightweight embeddings.
Summary updated