Revisiting F-measure Optimization in Multi-Label Classification: A Sampling-based Approach
Zixun Wang
Abstract
The F-measure is a widely used metric in multi-label classification, where multiple labels are predicted simultaneously for a single instance. The optimal prediction rule for Fmeasure requires estimating q 2 + 1 probabilities, where q is the number of labels. Existing approaches train q multinomial estimators (multi-class classifiers) to directly estimate these probabilities, followed by a matrix multiplication for making predictions. However, this method has two major drawbacks. First, the matrix multiplication incurs a time complexity of O(q 3 ), which becomes computationally expensive for large q. Second, training multinomial estimators is challenging due to the sparsity of the underlying distributions, which results from the inherent imbalance in multi-label datasets and is further exacerbated by the label transformation required by the method itself. In this paper, we first demonstrate that matrix multiplication can be reformulated as a series of convolutions by exploiting a special structure in the matrix. These convolutions can then be efficiently computed using the Fast Fourier Transform (FFT), reducing the time complexity to O(q 2 log q). To avoid multinomial label transformation, we propose an indirect sampling-then-estimation approach to estimate the required probabilities. This method trains only q binary estimators instead of multinomial ones, thereby alleviating the sparsity issue, simplifying the training process, and improving performance. We provide theoretical guarantees for the consistency of the proposed sampling-based method and demonstrate its effectiveness through extensive experiments on diverse datasets. The code is available in: https: //github.com/ZixunWang/MLC-F1-Sampling.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Builds on4
- Asymmetric Loss For Multi-Label ClassificationTal Ridnik, Emanuel Ben Baruch, Nadav Zamir, Asaf Noy et al.ICCV 2021 · 778 citations
- Convex Calibrated Surrogates for the Multi-Label F-MeasureMingyuan Zhang, Harish Guruprasad Ramaswamy, Shivani AgarwalICML 2020 · 23 citations
- General Multi-Label Image Classification With TransformersJack Lanchantin, Tianlu Wang, Vicente Ordonez, Yanjun QiCVPR 2021
- Long-Tailed Multi-Label Visual Recognition by Collaborative Training on Uniform and Re-Balanced SamplingsHao Guo, Song WangCVPR 2021
Related papers
- Taming the Sigmoid Bottleneck: Provably Argmaxable Sparse Multi-Label ClassificationAndreas Grivas, Antonio Vergari, Adam LopezAAAI 2024 · 11 citations
- A General Online Algorithm for Optimizing Complex Performance MetricsWojciech Kotlowski, Marek Wydmuch, Erik Schultheis, Rohit Babbar et al.ICML 2024 · 1 citation
- FasMe: Fast and Sample-efficient Meta Estimator for Precision Matrix Learning in Small Sample SettingsXiao Tan, Yiqin Wang, Yangyang Shen, Dian Shen et al.NeurIPS 2024
- FM2: Field-matrixed Factorization Machines for Recommender SystemsYang Sun, Junwei Pan, Alex Zhang, Aaron FloresWWW 2021 · 98 citations
- Random Fourier Features via Fast Surrogate Leverage Weighted SamplingFanghui Liu, Xiaolin Huang, Yudong Chen, Jie Yang et al.AAAI 2020 · 21 citations
