sigmoidF1: A Smooth F1 Score Surrogate Loss for Multilabel Classification
Abstract
Multilabel classification is the task of attributing multiple labels to examples via predictions. Current models formulate a reduction of the multilabel setting into either multiple binary classifications or multiclass classification, allowing for the use of existing loss functions (sigmoid, cross-entropy, logistic, etc.). These multilabel classification reductions do not accommodate for the prediction of varying numbers of labels per example. Moreover, the loss functions are distant estimates of the performance metrics. We propose sigmoidF1, a loss function that is an approximation of the F1 score that (i) is smooth and tractable for stochastic gradient descent, (ii) naturally approximates a multilabel metric, and (iii) estimates both label suitability and label counts. We show that any confusion matrix metric can be formulated with a smooth surrogate. We evaluate the proposed loss function on text and image datasets, and with a variety of metrics, to account for the complexity of multilabel classification evaluation. sigmoidF1 outperforms other loss functions on one text and two image datasets over several metrics. These results show the effectiveness of using inference-time metrics as loss functions for non-trivial classification problems like multilabel classification.
Cite
Text
Bénédict et al. "sigmoidF1: A Smooth F1 Score Surrogate Loss for Multilabel Classification." Transactions on Machine Learning Research, 2022.Markdown
[Bénédict et al. "sigmoidF1: A Smooth F1 Score Surrogate Loss for Multilabel Classification." Transactions on Machine Learning Research, 2022.](https://mlanthology.org/tmlr/2022/benedict2022tmlr-sigmoidf1/)BibTeX
@article{benedict2022tmlr-sigmoidf1,
title = {{sigmoidF1: A Smooth F1 Score Surrogate Loss for Multilabel Classification}},
author = {Bénédict, Gabriel and Koops, Hendrik Vincent and Odijk, Daan and de Rijke, Maarten},
journal = {Transactions on Machine Learning Research},
year = {2022},
url = {https://mlanthology.org/tmlr/2022/benedict2022tmlr-sigmoidf1/}
}