Abstract
Training high-performance image classifiers typically requires expensive instance-level annotations. This paper introduces "semi-weak label learning," a novel paradigm that bridges the gap between fully supervised learning and Multiple Instance Learning (MIL). By utilizing bag-level class counts rather than just presence/absence indicators, the authors propose a two-stage deep learning framework that predicts instance-level labels. This approach achieves performance comparable to fully supervised models while requiring significantly less annotation effort.
Introduction: The Annotation Bottleneck
Training fully supervised image classifiers is a resource-intensive process due to the high cost of instance-level annotation. To mitigate this, researchers often turn to weakly supervised learning, specifically Multiple Instance Learning (MIL). In MIL, instances are grouped into "bags," and annotators only indicate whether a target class is present or absent within that bag. While this reduces effort, MIL often suffers from a significant performance drop compared to fully supervised methods.
Another alternative, Learning from Proportions (LLP), assumes the exact proportion of classes in a bag is known. However, calculating a proportion requires knowing the total bag size—a metric that is often impossible to determine in domains like audio event detection or unsegmented images where instance boundaries are ambiguous. This paper addresses this gap by introducing "semi-weak labels."
The Semi-Weak Labeling Paradigm
In the semi-weak setting, annotators provide the exact count of instances for each class within a bag. This eliminates the need to know the total bag size or the specific location of any instance.
As illustrated above, semi-weak labels provide significantly richer supervision than standard weak labels. From a psychological perspective, annotating counts (leveraging "subitizing") is often nearly as fast as annotating presence/absence. Crucially, this richer data eliminates the need for "negative bags" (bags with zero target instances), which are strictly required in traditional MIL to separate learned representations.
Methodology: A Two-Stage Framework
The authors propose a two-stage deep learning framework to translate bag-level count data into accurate instance-level classifiers.
Stage 1: Estimating Class Count
The network first predicts the expected count of each class in a bag. Rather than using standard regression losses like Mean Squared Error (MSE) or distribution losses like KL-divergence (common in LLP), the authors introduce a Poisson Loss. This loss is specifically tailored for discrete, non-negative count data. It features an asymmetric gradient that penalizes under-estimation more heavily than over-estimation and naturally accommodates "off-by-one" errors more gracefully when the total count is high. To handle sparse bags, the framework incorporates a binary cross-entropy classification loss and an L1 regularizer. A greedy algorithm then converts these continuous expected counts into exact integer counts.
Stage 2: Estimating Instance Labels (The Decoder)
Once exact counts are estimated, the framework must assign labels to individual instances. This is formulated as an assignment problem in bipartite graphs. By using linear-sum optimization, the framework optimally assigns predicted labels to instances based on the probability distributions generated by the network.
Experimental Results
Since no standard real-world datasets exist for the semi-weak setting, the authors generated synthetic datasets using CIFAR-10, grouping images into bags of varying sizes (2 to 32) and using different statistical distributions (Poisson, Exponential, and Uniform).
Key Findings
- Near Fully-Supervised Performance: On a standard generated dataset (bag size 8, Poisson distribution), the semi-weak model achieved 91.21% instance-level precision, closely trailing the fully supervised ResNet-18 upper bound of 94.40%.
- Outperforming Baselines: The framework significantly beat the weakly supervised baseline (87.39%) and the LLP baseline using KL-loss (87.07%).
- Decoder Impact: As shown in the results table, the Stage-2 bipartite matching decoder consistently improved instance-level prediction accuracy by approximately 2% over a naive greedy search, proving particularly effective as bag sizes increased and predictions became more volatile.
- Scalability Limits: While performance remains stable for bags of up to 8 instances, it begins to drop as bag sizes increase to 16 or 32, indicating the limits of aggregated supervision.
Conclusion and Future Work
Semi-weak label learning offers a powerful middle ground for training classifiers when full supervision is too costly. By modeling counts with a Poisson distribution and utilizing bipartite matching for instance assignment, the proposed framework achieves high precision without requiring instance boundaries or total bag sizes.
Future work will focus on extending this framework to real-world tasks where counting information is easily obtained but boundaries are ambiguous, such as counting gunshots in audio clips or identifying cell counts in medical imaging.
Summary updated