NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

From Cost-Sensitive to Tight F-measure Bounds.

Kevin Bascol, Rémi Emonet, Élisa Fromont, Amaury Habrard, Guillaume Metzler, Marc SebbanAISTATS 2019

Abstract

The F-measure is a classification performance measure, especially suited when dealing with imbalanced datasets, which provides a compromise between the precision and the recall of a classifier. As it is non-convex and non-linear, optimizing it directly is notoriously difficult. This paper derives new, significantly tighter theoretical bounds on the F-measure achievable through cost-sensitive learning and introduces CONE (Cone-based Optimal Next Evaluation), an iterative algorithm that uses these bounds to find optimal cost weights faster and more accurately than previous methods.

Introduction

In many real-world classification tasks, such as fraud detection or medical diagnosis, datasets are inherently imbalanced—the "positive" class of interest is much rarer than the "negative" one. In these scenarios, standard accuracy is a misleading metric. Instead, the F-measure is preferred as it balances precision and recall.

However, the F-measure is mathematically "unfriendly": it is non-convex and non-linear, precluding the use of standard gradient descent optimizers. A common workaround is cost-sensitive learning, where different "costs" are assigned to false positives and false negatives. The challenge lies in finding the specific cost ratio ($t$) that maximizes the F-measure. Previous methods either relied on exhaustive grid searches or theoretical bounds that were too loose to effectively guide optimization.

Theoretical Framework and the CONE Algorithm

The authors leverage the pseudo-linearity of the F-measure to relate differences in F-measure values to differences in underlying error profiles. They prove that for any given cost parameter $t$, there is a maximum possible F-measure.

Geometric Interpretation

These bounds can be visualized as "cones" in a 2D space where the x-axis represents the cost parameter $t$ and the y-axis represents the F-measure. Any area inside a cone is mathematically "unreachable," meaning no classifier can achieve an F-measure in that region for that specific $t$.

Geometric interpretation of the CONE algorithm, showing unreachable regions (cones) for different cost parameters.

The CONE Algorithm

The CONE algorithm iteratively selects the next cost parameter $t$ to test by analyzing these unreachable regions. Instead of a blind grid search, CONE identifies the $t$ value with the highest potential—the highest point in the space not yet covered by a cone. This allows the algorithm to ignore regions guaranteed to be sub-optimal. Unlike previous work which produced symmetric "V-shaped" bounds, this paper’s bounds are asymmetric, reflecting how cost changes affect precision and recall differently depending on the dataset's specific imbalance.

Experimental Evaluation

The authors evaluated CONE on 10 datasets with varying degrees of class imbalance, including Adult, Abalone, and SatImage, primarily sourced from the UCI Machine Learning Repository. A key feature of their approach is the inclusion of a sub-optimality parameter ($\epsilon_1$), which accounts for the fact that real-world classifiers (like SVMs) rarely reach absolute global minima.

Key Results

The proposed bounds are significantly tighter than previous state-of-the-art bounds, which often predicted impossible F-measures greater than 1.0.

Comparison of the proposed CONE bounds against a standard grid search and the best classifier performance across different sub-optimality levels ($\epsilon_1$) on the Adult and Abalone12 datasets.

CONE reached optimal F-measure values in far fewer iterations than grid search. On datasets like SatImage and PageBlocks, CONE outperformed existing bisection-based methods. Across all datasets, a CONE-wrapped SVM achieved an average F-measure of 49.6, significantly higher than a standard SVM (32.1) or a simple re-balanced SVM (44.0).

Conclusion

This work provides a robust theoretical foundation for F-measure optimization through cost-sensitive learning. By deriving tighter, asymmetric bounds and introducing the CONE algorithm, the authors offer a more efficient path to optimal classification in imbalanced settings. Future work includes extending this framework to other linear-fractional measures and adapting it for large-scale stochastic optimization.

Summary updated

BibTeX
@inproceedings{bascol2019from,
  author = {Kevin Bascol and Rémi Emonet and Élisa Fromont and Amaury Habrard and Guillaume Metzler and Marc Sebban},
  title = {{From Cost-Sensitive to Tight F-measure Bounds.}},
  booktitle = {AISTATS},
  year = {2019},
  url = {https://openreview.net/forum?id=D_D_aKSjcqM},
}
Figure