Single-positive Multi-label Learning with Label Cardinality

Shayan Gharib, Pierre-Alexandre Murena, Arto KlamiTMLR 2025

Abstract

We study learning a multi-label classifier from partially labeled data, where each instance has only a single positive label. We explain how auxiliary information available on the label cardinality, the number of positive labels per instance, can be used for improving such methods. We consider auxiliary information of varying granularity, ranging from knowing just the maximum number of labels over all instances to knowledge on the distribution of label cardinalities and even the exact cardinality of each instance. We introduce methods leveraging the different types of auxiliary information, study how close to the fully labeled accuracy we can get under different scenarios, and show that an easy-to-implement method only assuming the knowledge of the maximum cardinality is comparable to the state-of-the-art single-positive multi-label learning methods when using the same base model.

Introduction

Training multi-label classifiers typically requires exhaustive and expensive annotations. In many real-world scenarios, full annotation is prohibitively expensive, leading researchers to explore Single-Positive Multi-label Learning (SPMLL). In SPMLL, each training instance is provided with exactly one confirmed positive label, while the status of all other potential labels remains unobserved.

The primary challenge in SPMLL is handling these unobserved labels. A common "Assumed Negative" approach introduces significant bias because many unobserved labels are actually positive. Conversely, maximizing entropy to remain neutral often results in uninformative predictions. This paper investigates whether "label cardinality"—the number of positive labels per instance—can serve as effective auxiliary information to guide model training.

Methods

We propose a hierarchy of three methods to utilize cardinality information based on its availability:

  1. Cardinality Statistics (CS): This level requires only the maximum ($k_{max}$) and mean ($k_e$) number of labels in the dataset. We introduce a loss function ($L_{CS}$) that penalizes predictions only when they fall outside a range derived from these statistics, preventing model collapse.
  2. Cardinality Distribution (CD): This utilizes the global probability distribution of label counts across the dataset.
  3. Instance Cardinality (IC): This assumes knowledge of the exact number of labels for every specific image, representing the most granular form of auxiliary information.
Conceptual overview of the hierarchy of cardinality information: Cardinality Statistics (CS), Cardinality Distribution (CD), and Instance Cardinality (IC).

To bridge the gap between global distributions (CD) and specific counts (IC), we developed a bipartite matching algorithm. This algorithm uses current model confidence scores to estimate the most likely label count for each image based on the global distribution. This estimate is then optimized via a joint loss function ($L_{IC}$) that encourages the sum of top predicted probabilities to match the target count.

Datasets and Distributions

We evaluated our methods on four standard multi-label benchmarks: Pascal VOC 2012 (20 classes), MS COCO 2014 (80 classes), NUS-Wide (81 classes), and CUB-200-2011 (312 classes). As shown in the distributions below, the cardinality varies significantly across datasets, which influences the effectiveness of cardinality-based constraints.

Label cardinality distributions for the VOC, COCO, NUS, and CUB datasets, showing frequency versus the number of positive labels.

Key Results and Insights

Performance was measured using Mean Average Precision (MAP). Our findings indicate that cardinality acts as a "budget" for probability mass, preventing the model from pushing all labels toward zero.

  • State-of-the-Art Performance: The simplest method (CS) performed comparably to or better than complex state-of-the-art SPMLL methods like ROLE or GR Loss, despite requiring minimal extra information.
  • Closing the Gap: On the NUS-Wide dataset, using exact instance cardinality (IC) achieved a MAP of 50.92, nearly matching the 52.12 achieved by a model trained on 100% labeled data.
  • Robustness: The $L_{CS}$ method proved remarkably robust; performance remained stable even when the estimated maximum cardinality was inaccurate by up to 50%.
  • The Attribute Exception: Cardinality information was less effective on the CUB dataset. We hypothesize that because CUB labels represent fine-grained attributes (e.g., "red beak") rather than distinct objects, simple counting is insufficient to capture the complex correlations between labels.

Conclusion

This work demonstrates that label cardinality is a powerful and often overlooked source of information in weakly supervised learning. By treating cardinality as a constraint, models can effectively navigate the ambiguity of single-positive labels. Future research will explore integrating these losses into other SPMLL frameworks and using cardinality mismatches to guide active learning strategies.

Summary updated

BibTeX
@article{gharib2025single,
  author = {Shayan Gharib and Pierre-Alexandre Murena and Arto Klami},
  title = {{Single-positive Multi-label Learning with Label Cardinality}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=XEPPXH2nKu},
}
Figure