Concept-Aware Wasserstein Routing with Vision-Language Guidance for Few-Shot WSI Classification

Ankit Kumar, Shounak Das, Sandeep Kumar, Kaustubh Atey, Amit SethiNeurIPS 2026

TL;DR

Teaching AI to diagnose cancer from massive, gigapixel tissue scans with just a handful of examples is notoriously tricky because existing models treat zoomed-in image patches like isolated puzzle pieces. This paper introduces a framework that mimics how human pathologists actually think: it connects distant tissue regions that share the same medical traits (like necrosis or specific cell architectures) and remembers multiple visual "flavors" of each cancer subtype. The result is a data-efficient diagnostic system that spots subtle patterns across whole slides even when training labels are scarce.

What Problem Does This Paper Address?

A Whole-Slide Image (WSI)—a digitized microscope slide of a biopsy—is enormous, often a gigapixel in size. Because you can't feed an image that big into a standard neural network all at once, researchers chop it into thousands of tiny patches and use Multiple Instance Learning (MIL): the model looks at the "bag" of patches and tries to guess the single label assigned to the entire slide.

In a few-shot setting (where you only have 4, 8, or 16 labeled slides per cancer type), purely visual MIL models easily overfit to staining quirks or background noise. Recently, researchers brought in Vision-Language Models (VLMs) pre-trained on pathology data to add medical text guidance. However, current VLM-MIL approaches have two big blind spots:

  1. Superficial language use: Text descriptions usually only show up at the very end to make the final slide-level guess. Meanwhile, the patches themselves are still aggregated independently—meaning two patches showing the exact same diagnostic clue on opposite ends of a slide don't explicitly back each other up.
  2. One-size-fits-all prototypes: Most models represent a cancer subtype with a single text prompt or visual average. In reality, diseases are heterogeneous; one subtype of lung or breast cancer can look wildly different from patient to patient.

Methods

The authors keep a pre-trained pathology VLM backbone (CONCH or PLIP) mostly frozen and wrap it in a multi-scale architecture looking at both coarse tissue architecture ($5\times$ magnification) and fine cellular details ($20\times$). To prevent overfitting, learnable visual prompts are injected only into the $5\times$ branch, alongside learnable text prompts for local medical concepts and global class names.

Figure 1: Overview of the framework. Low-magnification (5×) prompted patch features feed Semantic Wasserstein Routing (SWR), attention pooling, and barycentric prototype memory; high- magnification (20×) features provide patch-to-concept evidence. Global slide–text alignment, concept reasoning, and prototype memory are fused for subtype classification.

Beyond standard prompt tuning, the authors introduce three novel components that converge in a unified, distance-based decision space:

  • Semantic Wasserstein Routing (SWR): Instead of pooling patches blindly, SWR softly matches image patches to a curated bank of pathology concepts (e.g., squamous pearl formation). It uses Unbalanced Optimal Transport (UOT)—a mathematical way to match distributions without forcing every single item to be paired up. Using this matching plan, SWR builds a semantic patch graph where patches routed to the same medical concept pass messages and reinforce one another, even if they are far apart on the slide.
  • Barycentric Prototype Memory: To handle diverse appearances within a single cancer class, the model clusters spatial tokens from low-magnification ($5\times$) support slides and computes multiple Wasserstein barycenters (essentially geometric averages of distributions) per class. Each barycenter acts as a visual anchor for a distinct morphological mode of that disease.
  • Three-Branch Distance Fusion: At test time, the model calculates three distances for a query slide: global slide-to-text alignment, fine-grained ($20\times$) patch-to-concept-to-class mapping, and query-to-prototype memory matching. Learnable gates fuse these three distances into a final diagnosis.

Datasets

The authors evaluate their framework on three standard public benchmarks from The Cancer Genome Atlas (TCGA) under 4-shot, 8-shot, and 16-shot protocols:

  • TCGA-BRCA (Breast Invasive Carcinoma)
  • TCGA-RCC (Renal Cell Carcinoma)
  • TCGA-NSCLC (Non-Small Cell Lung Cancer)

No new datasets were introduced.

Key Insights and Ideas

  • Letting junk patches stay junk (Why Unbalanced OT matters): A huge chunk of any biopsy slide is empty background or healthy, non-diagnostic tissue. Standard ("balanced") Optimal Transport forces every patch to map onto a diagnostic concept, polluting the signal. Relaxing this constraint with Unbalanced OT lets noisy or irrelevant patches opt out of routing—boosting macro AUC on TCGA-RCC from 0.956 (Balanced OT) to 0.986 (Full UOT).
  • Multiple visual modes beat a single average: Removing the Barycentric Prototype Memory caused the steepest drop in the entire ablation study ($-5.18\%$ accuracy). Capturing multiple distinct tissue patterns per class is critical when training on only a few slides.
  • Diagnostic priors got canceled out by graph math: In a refreshingly candid finding, the authors noted that hand-crafted diagnostic prior weights assigned to concepts had no measurable effect on predictions during perturbation tests—because symmetric degree normalization in the semantic patch graph mathematically canceled them out under rank-one transport! The gains come from the routing topology itself, not hand-tuned weights.

Key Results

Using the CONCH encoder, the method consistently outperforms strong MIL (ABMIL, TransMIL, WiKG) and VLM-MIL baselines (TOP, ViLa-MIL, FOCUS, MAPLE):

  • TCGA-BRCA: Beats the strongest baseline (MAPLE) across all shots, reaching 0.930 AUC / 84.5% ACC at 16-shot ($+1.4\%$ AUC and $+2.0\%$ ACC over MAPLE), and 0.862 AUC at 4-shot ($+1.8\%$).
  • TCGA-NSCLC: Achieves top performance across all settings, hitting 0.902 AUC / 81.2% ACC at 4-shot ($+1.3\%$ AUC / $+2.6\%$ ACC over MAPLE) and 0.985 AUC at 16-shot.
  • TCGA-RCC: Achieves the highest AUC and F1 across all shots, peaking at 0.985 AUC / 92.9% ACC at 16-shot.
  • Qualitatively, heatmaps of the learned transport plans on lung squamous cell carcinoma slides show clean, spatially resolved routing of tissue regions to specific histological concepts like keratinizing patterns and intercellular bridges—without a single patch-level label.

Limitations and Future Work

While there is no dedicated limitations section, the authors explicitly note two practical constraints in the main text:

  • Limited support diversity in extreme few-shot regimes: In the 4-shot setting, although the memory builds four prototypes per class (each summarizing three exemplar tiles), those tiles still originate from only four independent patient slides, which limits true morphological diversity and requires interpolating the OT barycenter with a standard Euclidean mean for stability.
  • Ineffective concept prior reweighting: As noted above, post-OT diagnostic prior weights cancel out under rank-one symmetric graph normalization, leaving room to explore ways to inject clinical priors directly into the transport cost or higher-rank plans.

Summary updated

Abstract

Few-shot whole-slide image (WSI) classification remains challenging due to gigapixel-scale images, scarce slide-level labels, and strong morphological heterogeneity. Recent vision-language MIL methods improve data efficiency by transferring knowledge from pathology foundation models, but they often treat patches as weakly related instances and represent each class with a single semantic or visual anchor. We propose a multi-scale vision-language framework that combines prompted pathology encoding, pathology concept learning, Semantic Wasserstein Routing (SWR), and barycentric prototype memory. Using frozen pathology vision-language backbones with lightweight prompt adaptation, our method aligns image patches with concept embeddings through unbalanced optimal transport and builds a semantic patch graph for concept-guided aggregation. In parallel, the prototype memory maintains multiple class-specific Wasserstein barycenters to capture diverse morphological modes. A distance-based fusion strategy integrates slide-level text alignment, concept-guided patch evidence, and prototype-memory matching for robust prediction. Experiments on TCGA WSI classification benchmarks under few-shot settings show consistent improvements over strong MIL and vision-language MIL baselines, demonstrating the benefit of semantic patch routing and multi-prototype reasoning for weakly supervised pathology learning.
BibTeX
@inproceedings{kumar2026concept,
  author = {ANKIT KUMAR and Shounak Das and Sandeep Kumar and Kaustubh Atey and Amit Sethi},
  title = {{Concept-Aware Wasserstein Routing with Vision-Language Guidance for Few-Shot WSI Classification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=sClFLiex6B},
}
Figure