Multi-label Classification with Partial Annotations using Class-aware Selective Loss

Emanuel Ben Baruch, Tal Ridnik, Itamar Friedman, Avi Ben-Cohen, Nadav Zamir, Asaf Noy, Lihi Zelnik-ManorCVPR 2021

Abstract

Training multi-label classifiers on massive datasets is often hindered by partial annotations, where most labels are "unknown." This paper introduces Class-aware Selective Loss (CSL), a novel approach that intelligently decides whether to treat an un-annotated label as a negative or ignore it. By leveraging estimated class frequencies and real-time model confidence, CSL mitigates the noise introduced by false negatives while maximizing the utility of un-annotated data.

The Challenge of Partial Annotations

In an ideal scenario, every image in a multi-label dataset would be fully annotated. However, for massive datasets like OpenImages (9 million images, ~10,000 classes), exhaustive annotation is practically impossible. This results in a "partial annotation" problem where most labels are missing. Standard training typically relies on one of two suboptimal paths:

  1. "Ignore" Mode: Only calculates loss for labels explicitly marked. This is safe but wastes the vast majority of the data.
  2. "Negative" Mode: Assumes any un-annotated label is absent. This exploits more data but introduces massive "label noise" for common objects that were simply not tagged.
Conceptual comparison of training modes: (a) Data samples, (b) Ignore mode, (c) Negative mode, and (d) Selective mode.

Methods: Class-aware Selective Loss (CSL)

The authors propose a two-phase approach to find a middle ground between ignoring data and introducing noise.

1. Estimating the Label Prior

Since partial annotations are biased (rare objects are often tagged more diligently than common ones), simple tag counts cannot determine class distribution. Instead, the authors train a "temporary" model in Ignore mode. The average predictions of this model across the dataset are used to estimate the true frequency, or "Label Prior," of each class.

Illustration of partial annotations and the use of temporary predictions to estimate label priors.

2. Selective Training and P-ASL

During the final training phase, un-annotated labels are treated selectively. A label is ignored if the model is currently very confident the object is present (high likelihood) or if the class is known to be very common (high prior). Otherwise, the label is treated as a negative.

To further refine this, the authors introduce Partial Asymmetric Loss (P-ASL). This modification of Asymmetric Loss (ASL) decouples focusing parameters, allowing the model to learn aggressively from verified negative labels while being "softer" on un-annotated labels that are being treated as negatives.

Key Results and Insights

The researchers evaluated CSL on major benchmarks including OpenImages (V3 and V6), LVIS, and MS-COCO (simulated partial annotations).

  • State-of-the-Art Performance: On OpenImages V6, the method achieved 87.34 mAP, outperforming previous specialized methods like IMCL and Curriculum Labeling.
  • Robustness to Sparsity: In simulated COCO experiments, CSL maintained high accuracy even when a significant portion of annotations were removed.
  • Noise Reduction: On the LVIS dataset, the "Selective" mode significantly improved the Average Precision (AP) for frequent classes (e.g., "Person") compared to the standard Negative mode, proving it successfully reduced label noise.
  • The Power of the "Ignore" Estimator: A key insight was that a model trained only on sparse, verified labels is much better at estimating true class frequencies than one that tries to guess everything and becomes biased by missing labels.

Conclusion and Future Work

CSL provides a robust framework for training on partially annotated data by balancing data utilization with noise reduction. While the current two-phase training process adds computational overhead and requires hyperparameter tuning, it represents a significant step forward for large-scale multi-label classification. Future research will explore integrating prior estimation and target training into a single, end-to-end phase to improve efficiency.

Summary updated

BibTeX
@inproceedings{baruch2021multi,
  author = {Emanuel Ben Baruch and Tal Ridnik and Itamar Friedman and Avi Ben-Cohen and Nadav Zamir and Asaf Noy and Lihi Zelnik-Manor},
  title = {{Multi-label Classification with Partial Annotations using Class-aware Selective Loss}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=3BXG7DNz8x5},
}
Figure