What Is the Optimal Ranking Score Between Precision and Recall? We Can Always Find It and It Is Rarely $F_1$
Sébastien Piérard, Adrien Deliège, Marc Van Droogenbroeck
TL;DR
The paper reframes classifier evaluation as ranking along a manifold of precision-recall tradeoffs induced by the Fβ family. It shows that Fβ-induced rankings form a geodesic between precision- (Pr) and recall-based (Re) rankings, with the optimal tradeoff found at equal Kendall distance from both ends. A closed-form expression for the optimal β is derived, based on pairwise performance comparisons, and the optimality is framed in terms of Fréchet (Karcher) means on the ranking manifold. Six case studies, including uniform distributions and real CDNet data, demonstrate that F1 often fails to yield the best ranking and provide practical adaptation rules for β, including a data-driven heuristic β^2 ≈ E[PFP]/E[PFN]. Overall, the work delivers a rigorous, principled method for choosing the ranking score between precision and recall, with broad implications for model evaluation and benchmarking.
Abstract
Ranking methods or models based on their performance is of prime importance but is tricky because performance is fundamentally multidimensional. In the case of classification, precision and recall are scores with probabilistic interpretations that are both important to consider and complementary. The rankings induced by these two scores are often in partial contradiction. In practice, therefore, it is extremely useful to establish a compromise between the two views to obtain a single, global ranking. Over the last fifty years or so,it has been proposed to take a weighted harmonic mean, known as the F-score, F-measure, or $F_β$. Generally speaking, by averaging basic scores, we obtain a score that is intermediate in terms of values. However, there is no guarantee that these scores lead to meaningful rankings and no guarantee that the rankings are good tradeoffs between these base scores. Given the ubiquity of $F_β$ scores in the literature, some clarification is in order. Concretely: (1) We establish that $F_β$-induced rankings are meaningful and define a shortest path between precision- and recall-induced rankings. (2) We frame the problem of finding a tradeoff between two scores as an optimization problem expressed with Kendall rank correlations. We show that $F_1$ and its skew-insensitive version are far from being optimal in that regard. (3) We provide theoretical tools and a closed-form expression to find the optimal value for $β$ for any distribution or set of performances, and we illustrate their use on six case studies.
