Abstract
This paper introduces Learning from the Majority Label (LML), a novel Multiple-Instance Learning (MIL) variant where bag labels are determined by the most frequent instance class. We propose a Counting Network that employs a differentiable counting mechanism via temperature-scaled softmax. This approach ensures consistency between bag-level predictions and instance-level counts, overcoming the limitations of traditional confidence-summation methods. Experiments on diverse datasets, including medical imaging benchmarks, demonstrate significant improvements in classification accuracy, particularly in scenarios with slim majority margins.
Introduction
In traditional Multiple-Instance Learning (MIL), a "bag" of instances is typically labeled positive if at least one instance within it is positive. However, many real-world applications, particularly in medical diagnosis, follow a different logic: the bag-level label is determined by the majority. For example, a tissue sample's diagnosis often depends on the most prevalent cancer subtype present across multiple patches.
Existing MIL methods struggle with this "Majority Label" setup. Most aggregate instance confidences by summing them. A critical flaw in this approach is that summing soft probabilities (e.g., 0.4 + 0.4 = 0.8) can lead to different "winners" than counting hard labels (where both would be 0). This inconsistency creates an "ambiguity of solutions," causing models to converge to suboptimal local minima and perform poorly on individual instance classification.
Methodology: The Counting Network
To address the discrepancy between probability summation and discrete counting, we propose the Counting Network. The architecture is designed to mimic the counting process while remaining end-to-end differentiable.
The network operates in two primary stages:
- Instance-Level Classification with Binary Constraint: To force the network to "count" rather than "sum," we utilize a softmax function with a low temperature ($T$). By setting $T$ to a small value (e.g., 0.1), the network produces "pseudo-one-hot" vectors. These outputs are pushed toward 0 or 1, making their summation behave like a discrete count.
- Differentiable Bag-Level Classification: After estimating counts for each class, the network identifies the majority. To maintain differentiability, another temperature-scaled softmax is applied over the class counts. This allows the loss function to backpropagate through the majority selection process.
Experimental Evaluation
We evaluated the Counting Network on four datasets adapted for the LML framework: CIFAR10, SVHN, and two medical datasets from MedMNIST (PATHMNIST and OCTMNIST). We tested three scenarios based on the majority class proportion:
- Large: Majority class makes up 60%–100% of the bag.
- Small: Majority class makes up $1/C$ to 40% of the bag (where $C$ is the number of classes).
- Various: A random distribution of proportions.
Results and Discussion
The Counting Network consistently outperformed eight state-of-the-art MIL baselines across all datasets and scenarios.
Key findings include:
- Accuracy Gains: The method shows its greatest strength in the "Small" majority scenario. For instance, on the SVHN dataset, it achieved 47.9% instance accuracy, significantly higher than the 39.5% achieved by the best baseline.
- Label Consistency: Our method achieved nearly 100% consistency—the agreement between bag labels predicted by summing confidences versus counting instances—in "Large" and "Various" scenarios.
- Robustness: The temperature-scaled softmax effectively bridges the gap between continuous optimization and discrete logic, preventing the model from overfitting to noise in non-majority instances.
Conclusion
The Counting Network provides a robust framework for learning from majority labels, a common requirement in weakly supervised medical imaging tasks. While the current implementation shows strong results, future work could explore scaling to extremely large bag sizes and optimizing the computational overhead associated with processing every instance per bag.
Summary updated