Estimating Multi-label Accuracy using Labelset Distributions

Laurence A. F. Park, Jesse ReadarXiv 2022 · DOI

In the realm of machine learning, quantifying a model's confidence is essential for reliable decision-making. While binary classification offers straightforward confidence metrics, Multi-label Classification (MLC)—where an instance can belong to multiple categories simultaneously—presents a significantly more complex challenge. In their paper, "Estimating Multi-label Accuracy using Labelset Distributions," Laurence A. F. Park and Jesse Read propose a novel approach to this problem by leveraging the full predictive distribution of labelsets.

The Challenge of Multi-label Confidence

In standard classification, confidence is typically equated with the probability of the predicted class. However, in MLC with $L$ labels, there are $2^L$ possible label combinations, or "labelsets." Most probabilistic models generate a distribution over these combinations, but practitioners often rely solely on the Maximum A Posteriori (MAP) estimate—the probability of the single most likely labelset.

The authors argue that this "top-choice" probability is an insufficient gauge of reliability for several reasons. First, it ignores the information contained in the rest of the distribution. Second, it fails to account for specific accuracy metrics, such as the Jaccard index or Hamming similarity, which might tolerate partial matches. Finally, empirical evidence suggests it correlates poorly with actual real-world performance.

Example labelset distributions (a-f) showing varying levels of uncertainty and peakiness across different scenarios.

Quantifying Uncertainty: Score Functions

To better estimate "expected accuracy," the researchers evaluated seven candidate score functions derived from the predictive distribution $P(Y|x)$:

  1. High Probability (HP): The probability of the most likely labelset (the baseline).
  2. Top Gap (TG): The difference between the probabilities of the first and second most likely labelsets.
  3. Shannon Entropy (SE): A measure of total distributional uncertainty.
  4. Collision Entropy (CE): A Rényi entropy variant that emphasizes high-probability outcomes.
  5. Min Entropy (ME): Based on the reciprocal of the maximum probability.
  6. Gini Impurity (GI): A measure of labeling inconsistency.
  7. Chi-squared Statistic (CS): Measures deviation from a uniform distribution.

The study assessed these functions based on their Relative Association (ranking performance) and Absolute Association (linear predictability of actual accuracy).

Experimental Insights

The researchers tested these functions across six diverse datasets (including audio, image, biological, and text data) with label counts ranging from 6 to 53. To manage computational complexity, the analysis focused on datasets where the $2^L$ labelset space remained tractable (typically $\le 25$ labels).

Key findings from the experiments include:

  • Metric-Dependent Confidence: There is no universal confidence measure. Collision Entropy often best predicts Hamming Similarity (label-by-label accuracy), while combinations of entropy measures perform better for the Jaccard Index.
  • The Robustness of Entropy: Shannon Entropy (SE) emerged as the most robust measure across various datasets and classifiers, proving less sensitive to training noise than the standard High Probability baseline.
  • The Failure of "Top Gap": Contrary to intuition, a large gap between the top two predictions (TG) was found to be the least reliable indicator of confidence.
  • Mixture Models: For complex metrics like Exact Match, a linear mixture of multiple candidates (e.g., HP, SE, and CE) provided the most accurate estimations.

Conclusion and Future Directions

The study demonstrates that expected accuracy can be highly predictable, achieving Pearson correlation coefficients as high as 0.900 for Jaccard similarity. By moving beyond simple MAP estimates to more sophisticated entropy-based measures, practitioners can gain a far more accurate understanding of their multi-label models' reliability.

Future work aims to address the scalability of these methods for "Extreme Multi-label" problems with thousands of labels, where full distribution calculation is impossible. The authors suggest that correcting for sampling bias in Monte Carlo approximations will be key to applying these confidence measures at a massive scale.

Summary updated

BibTeX
@misc{park2022estimating,
  author = {Laurence A. F. Park and Jesse Read},
  title = {{Estimating Multi-label Accuracy using Labelset Distributions}},
  year = {2022},
  eprint = {2209.04163},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.04163},
}
Figure