All models

ACMIL

Multiple instance learning for whole slide images, with several attention branches and Top-K masking.

Medical imaging · 28 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 (37 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
200.6K
Operations
28
Framework
PyTorch
Recurrent
No
Published
ECCV 2024
Cited by
86 (as of 27 October 2026)
Authors
Yunlong Zhang, Honglin Li, Yuxuan Sun and others
License
MIT
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
m14492
Graph hash
875bc903c8345121b86137a27ef8f1ece486b8216f96b700868c397d3919a643
Skeleton hash
945d95ba5bebd842f9b0fcc0b4c4cca08318a206e381e02b358c24e31f6c3da2
Architecture hash
dbc150af95e412bd95bf95253a6083a995c0fdb015f920b28da77c9a0d5d4b41
Diagram SHA-256
28a67163dd44630812ad1edcc994221c7ba082f93a0abcc1a497c40f830fb807
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

ACMIL (Attention-Challenging MIL) is a multiple instance learning model for whole slide image classification, built to mitigate overfitting. The problem it targets is that attention mechanisms in such models often focus on a subset of discriminative instances, which the paper links closely to overfitting.

ACMIL combines two techniques. Multiple Branch Attention (MBA) uses several attention branches to capture more of the discriminative instances. Stochastic Top-K Instance Masking (STKIM) masks out a portion of the instances with the Top-K attention values and gives their attention values to the remaining instances. The paper's reason for the masking is its finding that a tiny number of instances dominate the majority of attention.

The paper reports experiments on three WSI datasets with two pre-trained backbones, in which ACMIL outperformed the methods it was compared with. The code is based on CLAM. Its training command for ACMIL sets n_token=5, n_masked_patch=10 and mask_drop=0.6. The authors later noted that setting mask_drop=0 sometimes yielded better performance than mask_drop=0.6.

Key idea. ACMIL suppresses attention value concentration in whole slide image classification with multiple attention branches and stochastic masking of the instances with the highest attention.

  • ACMIL
  • Attention-Challenging MIL
  • Attention-Challenging Multiple Instance Learning
  • multiple instance learning
  • whole slide image classification
  • WSI classification
  • Multiple Branch Attention
  • Stochastic Top-K Instance Masking
  • pathology

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

Cite the paper

@misc{zhang2024attentionchallengingmultipleinstancelearning,
      title={Attention-Challenging Multiple Instance Learning for Whole Slide Image Classification}, 
      author={Yunlong Zhang and Honglin Li and Yuxuan Sun and Sunyi Zheng and Chenglu Zhu and Lin Yang},
      year={2024},
      eprint={2311.07125},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2311.07125}, 
}