TL;DR
Existing vision-language model (VLM) tool-use frameworks compose specialized models via text or code, but this fails on medical images where diagnostic evidence is inherently spatial. The Tool Bottleneck Framework (TBF) pairs an off-the-shelf medical VLM tool selector with a learned Tool Bottleneck Model (TBM) that fuses pixel-level, clinically-grounded tool maps via a neural network. This neuro-symbolic bridge matches or outperforms standard black-box baselines while delivering significant gains in data-limited regimes and offering clear clinical interpretability.
What Problem Does This Paper Address?
Standard deep learning architectures (like CNNs and ViTs) used for medical diagnostics operate as black boxes: they require extensive training data and offer little clinical interpretability. Conversely, recent "tool-use" paradigms (e.g., VisProg, ViperGPT) use VLMs to decompose complex visual questions into programmatic tool calls.
However, existing tool-use pipelines compose tools using natural language or generated code strings. In clinical imaging, critical diagnostic signals—such as nuclear pleomorphism in histology or pigment network irregularity in dermoscopy—are fine-grained, spatially localized geometric features. Language-based composition fails to preserve and aggregate these spatial relationships, causing standard tool-use frameworks to perform near random chance on medical tasks.
Methods
TBF decomposes medical decision-making into three primary stages:
Input Image ──► [ Medical VLM ] ──► Selects Top-k Tools
│
▼
[ Pretrained Tools ] ──► Spatial Feature Maps
│
▼
[ Tool Bottleneck Model (TBM) ] ──► Final Diagnosis
- Clinically Grounded Toolbox ($\mathcal{T}$): A pre-defined collection of 12 specialized models across two domains:
- Histopathology (5 tools): Derived from HoVer-Net, producing rasterized maps of nuclei bounding boxes, centroids, segmentation contours, cellular types (6 classes), and type classification probabilities.
- Dermatology (7 tools): A U-Net lesion segmenter, 4 dermoscopic attribute detectors (pigment networks, negative networks, streaks, milia-like cysts), and 2 heuristic color-space markers (malignant colors and brown pigments).
- VLM Tool Selector: An off-the-shelf medical VLM (MedGemma) receives the image, task prompt, and tool descriptions, selecting the top-$k$ most relevant tools ($k=3$).
- Tool Bottleneck Model (TBM): A learned convolutional network ($f_\theta$) that ingests all tool outputs formatted as spatial channel maps of size $(C \times H \times W)$.
- Tool Knockout & Perturbation: To allow the model to accept arbitrary tool combinations at test time, non-selected tool channels are filled with a placeholder value ($-1$). Mathematically, this acts as implicit marginalization over missing tools. During training, tool selection is perturbed with Bernoulli noise ($p = (1-\alpha)0.5 + \alpha s_i$) to improve robustness.
Datasets
- Camelyon17-WILDS: Whole-slide lymph node histopathology images evaluated as a binary task (tumor vs. normal in the central $32 \times 32$ subregion of a $96 \times 96$ patch). Evaluated on held-out hospital centers to measure out-of-distribution robustness.
- ISIC 2017: High-resolution dermoscopic skin lesion images evaluated across two binary tasks:
- ISIC-BM: Benign vs. Malignant (Melanoma).
- ISIC-MN: Melanocytic (Melanoma, Nevus) vs. Non-melanocytic (Seborrheic Keratosis).
Key Insights and Ideas
- Text Composition Fails on Medical Tasks: Zero-shot VLMs with tool prompt feeding and program-generation frameworks (VisProg) plateaued around 50% accuracy/AUC. Pixel-level spatial maps require learned, convolutional fusion rather than linguistic aggregation.
- Clinically Grounded Priors Improve Sample Efficiency: By forcing predictions through a bottleneck of domain-specific feature maps, TBM heavily restricts the hypothesis space, outperforming standard CNNs when labeled data is scarce.
- True Functional Interpretability:
- Leave-One-Tool-Out Analysis: Knocking out individual tools reveals task-specific utility (e.g., nuclear contours proved most important for tumor detection, while pigment networks and lesion masks dominated dermoscopy).
- Direct Feature Intervention: Artificially dropping segmented nuclei (simulating lower cellularity) caused the predicted probability of "Normal" tissue to rise monotonically, confirming the model relies on established pathological criteria rather than spurious shortcuts.
Key Results
- Overall Performance: On Camelyon17, TBF achieved 92.3% accuracy, outperforming ImageNet-pretrained EfficientNet-B0 (88.6%) and joint-segmentation baseline Y-Net (88.2%). On ISIC-MN, TBF reached 91.7% AUC (vs. 91.2% for EfficientNet). On ISIC-BM, TBF achieved 77.5% AUC (second to EfficientNet's 78.4%).
- Training from Scratch: Without ImageNet pretraining, TBF attained 86.7% accuracy on Camelyon17, substantially surpassing scratch-trained EfficientNet (72.6%) and Y-Net (72.0%).
- Data-Limited Regime: With only 4 labeled Camelyon17 examples, TBF achieved ~64% accuracy compared to ~57% for EfficientNet, maintaining superior performance across all sampled subset sizes (4 to 256 images).
Limitations and Future Work
- Computational Overhead: Running the full pipeline (VLM tool selection + multi-tool inference + TBM forward pass) takes approximately $3.27$ seconds per image, compared to $2.16$ milliseconds for a single EfficientNet pass.
- Frozen Tool Selector: MedGemma operates zero-shot as the tool selector; fine-tuning or end-to-end co-optimizing the tool selector with the downstream TBM remains unexplored.
- Toolbox Scope: The current toolbox is restricted to 12 tools across two modalities. Scaling the paradigm to broader anatomical targets, whole-slide scales, and radiological modalities (e.g., CT, MRI) is left to future work.
Summary updated