All models

ViLa-MIL

Dual-scale vision-language multiple instance learning model that classifies whole slide images in pathology.

Medical imaging · 667 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (65 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
47.2M
Operations
667
Framework
PyTorch
Recurrent
No
Published
CVPR 2024
Cited by
59 (as of 27 October 2026)
Authors
Jiangbo Shi, Chen Li, Tieliang Gong and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m21348
Graph hash
b107f33c3879ba03efed57aff5dec83f49939a2c99dee926e5011f583511d509
Skeleton hash
89f12946ccd6b31e4220faca3717bd72b50f49eaa233ff053ced33cd59fee89e
Architecture hash
bfbbc6717dd8531d9a0bf0fd7a6ea8214b73ee23819fa9a0c0415a3a48926ec0
Diagram SHA-256
3423496919ec4cd5b1ea51f921c7c20224d243de97e3a2c8e442e0db37cec16f
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

ViLa-MIL classifies whole slide images, the giga-pixel scans used in digital pathology, by combining slide features with text. It belongs to multiple instance learning (MIL), which the paper calls the mainstream framework for whole slide images. The paper argues that MIL methods depend heavily on a substantial number of bag-level labels, and that the text prompts of earlier vision-language methods lacked pathological prior knowledge.

The model's answer is a dual-scale visual descriptive text prompt, produced with a frozen large language model. On the image branch, a prototype-guided patch decoder aggregates patch features progressively by grouping similar patches into the same prototype. On the text branch, a context-guided text decoder enhances the text features with multi-granular image contexts. The repository extracts the patch features with a pretrained encoder such as a CLIP-pretrained ResNet50.

The paper evaluates ViLa-MIL on three multi-cancer and multi-center subtyping datasets and reports that it outperformed the compared methods there.

Key idea. The paper proposes a dual-scale vision-language multiple instance learning framework for whole slide image classification, built on text prompts from a frozen large language model.

  • ViLa-MIL
  • Dual-scale Vision-Language Multiple Instance Learning
  • whole slide image classification
  • WSI
  • multiple instance learning
  • digital pathology
  • cancer subtyping
  • vision-language model

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{shi2025vilamildualscalevisionlanguagemultiple,
      title={ViLa-MIL: Dual-scale Vision-Language Multiple Instance Learning for Whole Slide Image Classification}, 
      author={Jiangbo Shi and Chen Li and Tieliang Gong and Yefeng Zheng and Huazhu Fu},
      year={2025},
      eprint={2502.08391},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2502.08391}, 
}