Attention-based Multiple Instance Learning

A weakly supervised learning framework in which a bag of instances (e.g., image patches) receives a single label, and an attention mechanism learns to identify the most relevant instances for the bag-level prediction.

Method

Instances are embedded by a neural network; an attention network produces weights over instances; weighted sum yields a bag representation used for classification. Training uses only bag labels. Variants include gated attention and hierarchical attention.

Applications

Whole-slide image classification in digital pathology (cancer detection/subtyping), mammography, video classification, document classification, drug activity prediction from molecular conformations.

Advantages

Requires only coarse labels; provides interpretable attention maps; strong performance on medical imaging benchmarks; reduces annotation burden.

Limitations

Depends on quality of instance embeddings; attention may not perfectly correspond to true causal instances; computational cost scales with number of instances; limited localization precision compared with fully supervised methods.

Alternatives

Classic MIL (max/mean pooling), instance-level supervision when available, clustering-based MIL, transformer-based bag models.

Sources

Educational reference only, not professional advice.

All algorithms