End-to-end Multiple Instance Learning with Gradient Accumulation

Axel Andersson, Nadezhda Koriakina, Nataša Sladoje, Joakim Lindblad
3/8/2022
cs.CVcs.LG

Official code: axanderssonuu/ABMIL-ACC (9 stars, Python, last commit 2022-04-07).

Abstract

Being able to learn on weakly labeled data, and provide interpretability, are two of the main reasons why attention-based deep multiple instance learning (ABMIL) methods have become particularly popular for classification of histopathological images. Such image data usually come in the form of gigapixel-sized whole-slide-images (WSI) that are cropped into smaller patches (instances).

Show full abstract

However, the sheer size of the data makes training of ABMIL models challenging. All the instances from one WSI cannot be processed at once by conventional GPUs. Existing solutions compromise training by relying on pre-trained models, strategic sampling or selection of instances, or self-supervised learning. We propose a training strategy based on gradient accumulation that enables direct end-to-end training of ABMIL models without being limited by GPU memory. We conduct experiments on both QMNIST and Imagenette to investigate the performance and training time, and compare with the conventional memory-expensive baseline and a recent sampled-based approach. This memory-efficient approach, although slower, reaches performance indistinguishable from the memory-expensive baseline.

View on arXivView PDF

Code Implementations(1)

93PythonFeb 25, 20224 years ago

Similar Papers

Cite this paper

@article{andersson2022endtoend,
  title  = {End-to-end Multiple Instance Learning with Gradient Accumulation},
  author = {Axel Andersson and Nadezhda Koriakina and Nataša Sladoje and Joakim Lindblad},
  year   = {2022},
  eprint = {2203.03981},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.03981}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.03981.svg)](https://codeofpaper.com/paper/2203.03981)

Discussion