TL;DR
This paper introduces GAUC (Geometry-Aware Uncertainty Coresets), a training-free method to select the ideal demonstration examples for Vision-Language Models (VLMs) using in-context learning for histopathology. By optimizing for global data representation, prompt robustness, and low predictive uncertainty, GAUC significantly improves diagnostic reliability and model calibration without requiring any fine-tuning or gradient updates.
What Problem Does This Paper Address?
Vision-Language Models (VLMs) hold massive promise for computational pathology because they can combine visual analysis with open-ended textual reasoning. However, fine-tuning these multi-billion-parameter models on scarce, expert-annotated medical data is often prohibitively expensive and risky due to privacy concerns.
An alternative is In-Context Learning (ICL), where the model is simply given a few example image-label pairs inside the prompt to guide its predictions. While ICL requires zero training, it has a major flaw: it is incredibly sensitive. Shuffling the example images or slightly rephrasing the text prompt can completely flip a diagnosis or trigger overconfident "hallucinations"—failures that are unacceptable in safety-critical clinical settings. Existing methods to select these examples either require extra training or rely on simple nearest-neighbor searches that ignore the global structure of the dataset and the joint vision-text geometry of the VLM.
Methods
The authors propose GAUC, a completely training-free framework that selects a static subset of real images (a "coreset") to serve as standard in-context demonstrations.
Operating entirely within the pre-trained embedding space of a frozen VLM, GAUC selects examples by greedily minimizing a joint objective function with three distinct terms:
- Maximum Mean Discrepancy (MMD): This term ensures that the distribution of the selected coreset closely mirrors the global geometric structure of the entire dataset. This prevents the coreset from collapsing into just the most dominant tissue types and ensures morphological diversity.
- Effective Mutual Information Difference (EMID): This regularizer measures how much the model's response changes when a text prompt is paraphrased. By minimizing this difference, GAUC selects examples that make the VLM robust to variations in how a clinician might phrase a query.
- Predictive Uncertainty Regularization: This term penalizes the predictive entropy (ambivalence) of the model. It discourages the selection of ambiguous examples that leave the VLM in a high-uncertainty state, which is historically where hallucinations happen.
Datasets
The method was evaluated using two open-source VLM families (Qwen and LLaVA) across two challenging histopathology benchmarks:
- CRC-100K: A dataset containing 100,000 H&E-stained colorectal tissue patches. The authors evaluated performance across 8 distinct tissue classes (excluding background).
- MHIST: A binary classification dataset consisting of 3,152 colorectal polyp patches (hyperplastic polyp vs. sessile serrated adenoma)—a task known to be highly challenging even for trained pathologists.
Key Insights and Ideas
- Reliability Over Raw Accuracy: In clinical deployments, a model's calibration (knowing when it doesn't know) and its stability against prompt changes are far more critical than minor accuracy gains. GAUC explicitly prioritizes reliability.
- The Danger of Local Clustering: Standard $k$-Nearest Neighbor ($k\text{NN}$) retrieval methods tend to grab examples that cluster around a single morphological pattern. This gives the VLM a narrow view and can trigger confident misclassifications. GAUC forces geometric diversity across multiple tissue classes.
- Zero Inference Overhead: Because GAUC optimizes a query-independent coreset, the selection happens once upfront. During actual deployment, the per-inference computational cost is identical to standard, naive ICL.
Key Results
GAUC demonstrated substantial improvements in calibration and robustness while matching or exceeding the accuracy of much heavier, learned baselines:
- CRC-100K Performance: For a 3-shot setup on Qwen, GAUC achieved the highest accuracy ($0.610 \pm 0.030$) and F1-score ($0.588 \pm 0.015$), outperforming the learned baseline MIMIC. Crucially, it reduced the Expected Calibration Error (ECE) to $0.145$, indicating much more trustworthy confidence scores.
- MHIST Performance: On the binary classification task, GAUC achieved a top ECE of $0.073$ (3-shot, Qwen), significantly outperforming random and $k\text{NN}$ baselines.
- Robustness & Hallucinations: GAUC consistently yielded the lowest variance under prompt paraphrasing (
Var-para) across all tests and achieved a $1.61\%$ relative reduction in sentence- and instance-level hallucination rates (CHAIR metrics) compared to MIMIC.
Limitations and Future Work
The authors highlight two main limitations of the current framework:
- Class Balance Assumption: The current formulation assumes a relatively class-balanced candidate pool. If a dataset suffers from severe class imbalance, a stratified pre-selection stage would be required.
- Gaussian Approximations: The EMID bound relies on Gaussian approximations of the embeddings. In highly complex, multimodal feature spaces, this mathematical assumption might loosen, potentially impacting the prompt-robustness term.
Summary updated