Counting Network for Learning from Majority Label

Kaito Shiku, Shinnosuke Matsuo, Daiki Suehiro, Ryoma Bise

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.

Overview of the Counting Network architecture and the summation vs. counting paradox.

The network operates in two primary stages:

  1. 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.
  2. 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.

Performance comparison (accuracy) of the Counting Network against various MIL baselines across different datasets and majority 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

Abstract

The paper proposes a novel problem in multi-class Multiple-Instance Learning (MIL) called Learning from the Majority Label (LML). In LML, the majority class of instances in a bag is assigned as the bag’s label. LML aims to classify instances using bag-level majority classes. This problem is valuable in various applications. Existing MIL methods are unsuitable for LML due to aggregating confidences, which may lead to inconsistency between the bag-level label and the label obtained by counting the number of instances for each class. This may lead to incorrect instance-level classification. We propose a counting network trained to produce the bag-level majority labels estimated by counting the number of instances for each class. This led to the consistency of the majority class between the network outputs and one obtained by counting the number of instances. Experimental results show that our counting network outperforms conventional MIL methods on four datasets 1 .
BibTeX
@inproceedings{shiku2024counting,
  author = {Kaito Shiku and Shinnosuke Matsuo and Daiki Suehiro and Ryoma Bise},
  title = {{Counting Network for Learning from Majority Label}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=nUGTDCx3Fz},
}
Figure