Continual Multiple Instance Learning for Hematologic Disease Diagnosis

Zahra Ebrahimi, Raheleh Salehi, Nassir Navab, Carsten Marr, Ario Sadafi · DOI

TL;DR

Medical AI models need continuous updating as new clinical data arrives, but existing continual learning methods fail when applied to Multiple Instance Learning (MIL)—a framework heavily used in pathology and hematology. This paper introduces CoMIL, the first continual learning method specifically tailored for MIL, which smartly selects a diverse, representative subset of single cells to keep in memory. This approach allows models to learn new diseases over time without catastrophically forgetting old ones, significantly outperforming existing baselines.

Problem Statement

In clinical environments, data distributions shift constantly due to new disease occurrences or genetic alterations. To keep machine learning models accurate, they must be updated regularly. However, training a model on new data often causes it to forget previously learned tasks, a phenomenon known as catastrophic forgetting.

Continual learning (CL) methods, particularly rehearsal-based ones that keep a small memory buffer of old data, solve this for standard image classification. However, they are highly inefficient for Multiple Instance Learning (MIL). In MIL, a single diagnosis is made based on a "bag" of many "instances." For example, diagnosing leukemia requires looking at a bag of hundreds of single white blood cells from a patient, most of which might be perfectly healthy.

Attention-based Multiple Instance Learning (MIL) pipeline for hematologic diagnosis.

Saving entire bags of hundreds of cells for continual learning consumes too much memory. Conversely, saving only the most "suspicious" cells destroys the overall context and structure of the patient's sample. Until now, there was no efficient way to sample individual instances from MIL bags to maintain a highly informative, memory-efficient rehearsal buffer.

The CoMIL Method

The authors propose CoMIL (Continual Multiple Instance Learning), a rehearsal-based approach that operates at the instance level rather than the bag level.

Instead of saving whole patients (bags) or randomly picking cells, CoMIL calculates a specific "value" for every single cell. This value is a combination of:

  1. Attention Score: How important the MIL model's attention mechanism thinks the cell is for the diagnosis.
  2. Distance to Bag Mean: How geometrically close the cell's feature embedding is to the average of all cells in that patient's bag.
  3. Distance to Class Mean: How close the cell is to the average of all bags in that specific disease class.

By combining these metrics, CoMIL ensures it selects both the rare diagnostic "hallmark" cells and representative background cells.

To fit these selected cells into a strictly limited memory buffer ($K$ instances), the authors frame the selection as a classic Knapsack problem, maximizing the total "value" of the saved cells without exceeding memory capacity. This is solved efficiently using dynamic programming. When new disease classes are introduced later, the algorithm shrinks the existing bags by dropping the least valuable instances to make room.

Datasets and Experimental Setup

The method is evaluated on a real-world clinical dataset from a leukemia laboratory:

  • Size: 1,221 patient samples (bags), each containing exactly 500 microscopy images of single white blood cells (instances). This totals over 611,000 single-cell images.
  • Classes: 8 hematologic disease classes, including Acute Myeloid Leukemia (AML), Myelodysplastic Syndrome (MDS), and patients with no disease evidence.
  • Setup: The data was split into 75% training and 25% testing. The continual learning scenario was structured as a 4-step class-incremental task, introducing 2 new disease classes at each step.
The class-incremental learning setup across four tasks.

Key Insights

  • Context is just as important as the anomaly: A naive approach to MIL continual learning would be to just save the cells with the highest attention scores. The authors found this actually degrades performance because it breaks the "bag structure." A patient's diagnosis relies not just on mutant cells, but the overall distribution of normal cells (like granulocytes) present. CoMIL's geometric distance metrics successfully preserve this distribution.
  • Visualizing the preservation of diversity: Using UMAP embeddings, the authors demonstrated that while attention-only sampling clusters in one narrow area of the latent space, CoMIL's sampling covers all the sub-distributions of the original patient sample, acting as a true microcosm of the original bag.
  • Privacy by design: Because CoMIL can operate entirely on pre-extracted, anonymized feature embeddings rather than raw images, it inherently minimizes the re-identification risks usually associated with storing medical data for rehearsal memory.

Results

CoMIL was compared against an upper bound (training on all data at once) and six baselines, including standard finetuning, EWC, and iCaRL.

  • Accuracy: CoMIL achieved an average accuracy of 61.3% across the 4 incremental tasks. This massively outperformed the next best baseline, standard iCaRL, which hit only 49.9%.
  • Attention-only fails: An ablation baseline that modified iCaRL to only save high-attention instances performed poorly (43.1%), proving the authors' hypothesis that bag structure must be preserved.
  • Reduced Forgetting: CoMIL reduced average catastrophic forgetting to 22.1%, compared to 24.2% for standard iCaRL and a disastrous 75.5% for EWC.

Limitations and Future Work

  • Equal Cost Assumption: Currently, the knapsack algorithm assumes every instance has an equal "cost" (occupying one unit of memory).
  • Future Directions: The authors suggest that future iterations could assign varying costs to instances. For example, initiating a brand-new bag in the memory buffer could incur a higher cost than adding an instance to an already-stored bag. Costs could also be dynamically adjusted based on the difficulty or prevalence of a particular disease class to ensure perfectly balanced learning.

Summary updated

BibTeX
@inproceedings{ebrahimi2025continual,
  author = {Zahra Ebrahimi and Raheleh Salehi and Nassir Navab and Carsten Marr and Ario Sadafi},
  title = {{Continual Multiple Instance Learning for Hematologic Disease Diagnosis}},
  booktitle = {EMA4MICCAI},
  year = {2025},
  doi = {10.1007/978-3-032-13961-0\_21},
}
Figure