Abstract
In biomedical data analysis, Multiple Instance Learning (MIL) models have emerged as a powerful tool to classify patients' microscopy samples. However, the data-intensive requirement of these models poses a significant challenge in scenarios with scarce data availability, e.g., in rare diseases. We introduce a topological regularization term to MIL to mitigate this challenge. It provides a shape-preserving inductive bias that compels the encoder to maintain the essential geometrical-topological structure of input bags during projection into latent space. This enhances the performance and generalization of the MIL classifier regardless of the aggregation function, particularly for scarce training data. The effectiveness of our method is confirmed through experiments across a range of datasets, showing an average enhancement of 2.8% for MIL benchmarks, 15.3% for synthetic MIL datasets, and 5.5% for real-world biomedical datasets over the current state-of-the-art.
Introduction: The Challenge of Data Scarcity in MIL
Multiple Instance Learning (MIL) is a "weakly supervised" framework where labels are assigned to collections of points (bags) rather than individual instances. In medical diagnostics, for instance, a blood sample (bag) is labeled "positive" if it contains even a few abnormal cells (instances). While effective with large datasets, MIL performance often degrades in data-scarce regimes typical of rare diseases. In these scenarios, instance encoders frequently fail to learn meaningful representations, leading to overfitting or the discovery of non-generalizable "shortcuts."
Methodology: Topology-Guided MIL (TG-MIL)
To address these limitations, we propose TG-MIL, which incorporates a topological inductive bias into the training process. The core idea is to ensure that the "shape" of the data in its original input space is preserved when projected into the model's latent space.
The process involves:
- Point Cloud Representation: Treating each MIL bag as a high-dimensional point cloud.
- Persistent Homology: Utilizing algebraic topology to identify structural features like connected components (0D) and loops (1D) across multiple scales.
- Topological Loss ($L_{topo}$): A novel loss term penalizes discrepancies between the topological structure of the bag in the input space versus the latent space.
- Integration: This method is architecture-agnostic and can be integrated with various aggregation functions, such as max pooling or attention-based mechanisms.
Experimental Evaluation
The model was rigorously tested across three data types:
- Synthetic MIL Datasets: Derived from MNIST and Fashion-MNIST to simulate extreme data scarcity.
- Classic MIL Benchmarks: Standard datasets including MUSK1, MUSK2, FOX, TIGER, and ELEPHANT.
- Rare Anemia Dataset: A clinical dataset of 521 microscopy images across five classes, including Sickle Cell Disease and Thalassemia.
Key Results and Insights
TG-MIL demonstrated significant improvements across all evaluated domains. On synthetic tasks with limited data, it achieved a 15.3% boost in average F1-scores. On classic benchmarks, it surpassed state-of-the-art models by 2.8%. Most notably, in the real-world rare anemia task, accuracy improved by 5.5%, with the model showing a superior ability to identify disease-relevant cells uniformly.
A critical insight is that topological features act as a stable signal, robust to noise and transformations. The regularization narrows the performance gap between simple and complex aggregation functions, suggesting that preserving the data's "shape" is more fundamental than the choice of aggregator. Furthermore, TG-MIL proved more resistant to learning spurious correlations (shortcuts) than standard MIL models.
Conclusion and Future Directions
TG-MIL offers a robust solution for MIL in data-constrained environments by leveraging topological inductive biases. While the computational complexity of persistent homology ($O(n^2)$ for 0D) presents a challenge for very large bags, future work will explore more efficient alternatives like cubical complexes and approximate filtrations. This approach marks a significant step toward more reliable and data-efficient diagnostic tools for rare diseases.
Summary updated