Convex Calibrated Surrogates for the Multi-Label F-Measure

Mingyuan Zhang, Harish G. Ramaswamy, Shivani Agarwal

Abstract

The F-measure is a widely used performance measure for multi-label classification, where multiple labels can be active in an instance simultaneously (e.g. in image tagging, multiple tags can be active in any image). In particular, the F-measure explicitly balances recall (fraction of active labels predicted to be active) and precision (fraction of labels predicted to be active that are actually so), both of which are important in evaluating the overall performance of a multi-label classifier. As with most discrete prediction problems, however, directly optimizing the F-measure is computationally hard. In this paper, we explore the question of designing convex surrogate losses that are calibrated for the F-measure -- specifically, that have the property that minimizing the surrogate loss yields (in the limit of sufficient data) a Bayes optimal multi-label classifier for the F-measure. We show that the F-measure for an $s$-label problem, when viewed as a $2^s \times 2^s$ loss matrix, has rank at most $s^2+1$, and apply a result of Ramaswamy et al. (2014) to design a family of convex calibrated surrogates for the F-measure. The resulting surrogate risk minimization algorithms can be viewed as decomposing the multi-label F-measure learning problem into $s^2+1$ binary class probability estimation problems. We also provide a quantitative regret transfer bound for our surrogates, which allows any regret guarantees for the binary problems to be transferred to regret guarantees for the overall F-measure problem, and discuss a connection with the algorithm of Dembczynski et al. (2013). Our experiments confirm our theoretical findings.

Introduction

In multi-label classification (MLC), the goal is to predict a subset of labels for a given instance. Evaluating these models requires balancing precision and recall, a task typically handled by the F-measure. However, the F-measure is notoriously difficult to optimize directly because it is discrete and non-convex.

Most machine learning models rely on "surrogate" losses (like cross-entropy) because the target metric is often non-differentiable. For MLC, the challenge is compounded by label correlations and the exponential complexity of the label space ($2^s$ combinations for $s$ labels). This paper introduces a breakthrough by identifying a low-rank structure in the F-measure, enabling the design of the first convex calibrated surrogates for this metric.

Methods: The Low-Rank Shortcut

The researchers prove that the F-measure, when represented as a $2^s \times 2^s$ loss matrix, has a rank of at most $s^2 + 1$. This discovery is pivotal: it means the complexity of optimizing the F-measure grows quadratically with the number of labels, rather than exponentially.

By leveraging this low-rank property, the authors decompose the complex multi-label problem into $s^2 + 1$ simple binary Class Probability Estimation (CPE) tasks. They construct a convex surrogate loss function that is "calibrated," meaning that as more data is processed, minimizing this surrogate is mathematically guaranteed to converge to the optimal F-measure performance (the Bayes optimal). Additionally, they provide a quantitative regret transfer bound, which allows practitioners to understand how errors in the binary sub-problems impact the final multi-label performance.

Experimental Results

Convergence and Calibration

To validate the theoretical calibration, the authors conducted experiments on synthetic data. The results demonstrate that the proposed algorithm's performance tracks the Bayes optimal ceiling as the sample size increases, confirming that the surrogate loss effectively optimizes the F-measure.

Convergence of the proposed algorithm toward the Bayes optimal F-measure.

Real-World Benchmarks

The algorithm was also tested against standard baselines on several real-world datasets from the Mulan repository, including Scene, Yeast, Birds, Medical, Enron, and Mediamill. These datasets represent a wide range of label counts and feature dimensions.

Comparison of F-measure performance across various real-world datasets.

The proposed algorithm consistently outperformed Binary Relevance (BR) and LIMO. It performed competitively with the Exact F-measure Plug-in (EFP) algorithm, but with the added benefit of a rigorous surrogate loss framework and stronger theoretical error guarantees.

Conclusion

This research bridges a significant gap between statistical theory and practical multi-label classification. By reducing the F-measure's complexity to a quadratic scale, the authors provide a principled and computationally feasible way to optimize the metric that practitioners actually care about. Future work may address the scaling challenges for "extreme" multi-label classification involving tens of thousands of labels, where even quadratic complexity remains demanding.

Summary updated

BibTeX
@inproceedings{zhang2020convex,
  author = {Mingyuan Zhang and Harish G. Ramaswamy and Shivani Agarwal},
  title = {{Convex Calibrated Surrogates for the Multi-Label F-Measure}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=cY3ubkHIiIF},
}
Figure