TL;DR
This paper introduces "Multiple Instance Learning with Absolute Position Information" (MIL-API), a formalization for MIL tasks where the spatial location of important instances within a "bag" is consistent and informative. They propose a simple yet effective wrapper that augments existing MIL methods with positional encodings, achieving performance comparable to complex transformer models but with significantly better efficiency.
What Problem Does This Paper Address?
Traditional Multiple Instance Learning (MIL) often treats instances within a "bag" as unordered sets, meaning their spatial arrangement doesn't matter for classification. However, many real-world scenarios, particularly in medical imaging (like chest X-rays), have inherent global alignment. For instance, a heart abnormality will consistently appear in a similar region of the chest across different scans. Existing MIL methods often fail to leverage this crucial "absolute position information." While transformers can handle positional information, they are computationally expensive. This paper addresses the need for efficient MIL methods that can effectively utilize absolute position information.
Methods
The authors introduce a formal definition of "absolute position information" in MIL datasets, quantifying how consistently important instances appear in specific locations. Their core contribution is a positional encoding wrapper. This wrapper takes the output of a standard MIL feature extractor and concatenates it with an absolute positional encoding (using sine and cosine functions). This combined representation is then fed to the MIL aggregator. This approach allows non-transformer-based MIL methods to leverage positional cues without the computational overhead of full transformer architectures. They also conduct an ablation study on transformers to understand how they learn positional information, finding that the Nystrom attention mechanism can learn it implicitly, while the original attention mechanism relies on explicit positional encodings.
Datasets
- Synthetic Datasets:
- MNIST Bag Task: A baseline with 0% absolute position information.
- MNIST List Task: A newly created benchmark dataset where the amount of absolute position information can be systematically varied. This allows for controlled experiments on how different levels of positional information affect MIL performance.
- Real-World Datasets:
- MIMIC-CXR: Used for classifying cardiomegaly (hypothesized strong absolute position information) and pulmonary edema (hypothesized weak absolute position information) in chest X-rays.
Key Insights and Ideas
- Formalizing Absolute Position: The paper provides a concrete mathematical framework to define and quantify "absolute position information" in MIL tasks, which is crucial for systematic study.
- Positional Encodings are Key: Even for transformers, explicit positional encodings are vital for leveraging absolute position information, especially with the original attention mechanism.
- Wrapper Effectiveness: A simple positional encoding wrapper can significantly boost the performance of non-transformer-based MIL methods on tasks with absolute position information, making them competitive with transformers.
- Efficiency Gains: The wrapper achieves comparable accuracy to transformers but with a substantial speedup, making it a more practical solution for many applications.
- Data Efficiency: The wrapper is most beneficial in limited data settings, where positional information can help overcome data scarcity.
Key Results
- On the real-world chest X-ray task with likely strong absolute position information (cardiomegaly), the wrapper improved the AUROC of non-transformer methods like ABDMIL from 0.782 to 0.799, bringing it on par with transformer-based methods.
- The wrapper-augmented non-transformer methods were significantly faster than transformers, often by an order of magnitude (e.g., ABDMIL+Wrapper achieved 10.27s vs. TransMIL's 96.23s on a real data task).
- On synthetic tasks with high absolute position information (100%), the wrapper consistently improved AUROC for non-transformer methods, with gains of up to 0.05 AUROC.
- The wrapper did not negatively impact performance on tasks with weak or no absolute position information.
- The wrapper's benefits were most pronounced when trained with fewer data points (100 lists), showing diminishing returns with larger datasets (10,000 lists).
Limitations and Future Work
- Pretraining Strategies: The study did not evaluate the wrapper's impact on MIL methods with significantly different pretraining strategies than those used in the paper. The authors hypothesize it would still be beneficial.
- Relative Position Information: The current wrapper is designed for absolute position information. The authors suggest future work could explore augmenting methods with relative positional encodings for tasks that primarily rely on relative spatial relationships.
- Other MIL Architectures: The paper focused on specific MIL architectures; exploring the wrapper's impact on a broader range of MIL methods is a potential future direction.
Summary updated