arXiv:2610.23294cs.PFOct 2026

Manuscript Offprint

arXiv:2610.23294

The Optimal Ranking Tradeoffs Between Two Ranking Scores in Two-Class Classification

Sébastien Piérard, Adrien Deliège, Marc Van Droogenbroeck

ABSTRACT

The accuracy, true negative rate (negative class recall), true positive rate (positive class recall), negative predictive value (negative class precision), positive predictive value (positive class precision), class-specific intersections over unions, class-specific F-scores, Cohen's kappa, and balanced accuracy are scores that one intuitively wants to maximize when developing machine learning methods. However, they lead to different rankings of such methods. So, how can we establish a ranking that is an optimal tradeoff between any pair of these scores? It turns out that all these scores are special cases of ranking scores: a continuum of scores parameterized by the relative importance values assigned to the true negative, false positive, false negative, and true positive outcomes. Since all these scores are known to induce meaningful rankings, we seek the optimal tradeoffs among them. We consider the tradeoff between two scores to be optimal when it minimizes the Fréchet variance regarding the Kendall distance (also known as the bubble-sort distance) between rankings. For any given set of classifiers to rank, the optimal tradeoff lies at the center of the shortest (geodesic) path on the manifold of all rankings induced by the ranking scores. However, in the parameter space of the ranking scores, it is rarely achieved by averaging the importance values corresponding to the initial scores. In this paper, we present an exact analytical solution for determining a ranking score that is an optimal tradeoff for any given pair of initial scores, in the common case where the class priors are the same for all compared performances. We also experimentally investigate what happens when performance follows some distributions with fixed priors.

1 INTRODUCTION

Benchmarks aim at sorting some compared methods from best (first rank) to worst (largest rank). A common way to do this is to choose a score and consider that a method is worse than or equivalent to another one if and only if the value taken by the score for the first method is less than or equal to the value taken for the second method. In other words, using a score is nothing more than a trick to induce a preorder on the methods based on the well-known natural order on real numbers.

Obviously, not just any score or any preorder on performances can be used if the ranking is to be meaningful. When the performances have a probabilistic meaning, the conditions that must be satisfied have been formalized in Piérard et al. (2025c) (which presents generic axioms of performance-based ranking) without assuming any particular task. Moreover, in the ubiquitous setting in which the evaluation behaves linearly regarding the evaluated method (i.e., a hybrid method obtained by blindly and non-deterministically combining some base methods has a performance that is a mixture of the performances of the base methods), it has been shown that a wide family of scores leads to meaningful rankings. These are called ranking scores and defined as the ratio of the expected value of the importance-satisfaction product to the expected value of the importance, the satisfaction being a random variable modeling the task and the importance being another random variable specifying the relative importance given to the various evaluation outcomes (Piérard et al., 2025c).

In other words, the ranking scores RIR_{I} form an infinite and continuous family of scores parameterized by importance values. This offers great flexibility in freely choosing the relative weights that best align with the preferences associated with the target application or its users. However, we argue that choosing the score (i.e., the importance values in the case of ranking scores) remains a delicate matter for a challenge organizer or a benchmarker (Halin et al., 2024), for example, who is unaware of the applications that the people consulting the proposed ranking are targeting. Consequently, further theoretical advances to guide this choice are still needed. This paper aims to contribute to that effort for two-class classification, with a special focus on the particular case in which all compared performances share the same class priors. This is a very common setting as good practice suggests to compare only performances determined by evaluating the methods on the same dataset, hence fixing the class priors.

In two-class classification, one usually considers a class as negative and the other one as positive. It should be stressed that this is just a convention. The choice of which class is positive is always arbitrary. Four evaluation outcomes are usually considered: true negative (tn), false positive (fp), false negative (fn), and true positive (tp). All of us will certainly agree that the outcomes tn and tp are fully satisfying, and that the outcomes fp and fn are not satisfying at all. In this setting, the ranking scores include well-known scores such as the accuracy A, the true negative rate TNR=Re−=SpTNR = Re^{-} = Sp (a.k.a. inverse recall and specificity), the true positive rate TPR=Re+=SeTPR = Re^{+} = Se (a.k.a. recall and sensitivity), the negative predictive value NPV=Pr−NPV = Pr^{-} (a.k.a. inverse precision), the positive predictive value PPV=Pr+PPV = Pr^{+} (a.k.a. precision), as well as the F-scores FβF_{\beta} and the intersection over union IoU (a.k.a. Jaccard coefficient) that can be defined for both classes. When the class priors are fixed, the balanced accuracy BA, the skew-insensitive version of F1F_{1} SIVF (Flach, 2003), and the standardized predictive values SNPV and SPPV (Heston, 2011) also belong to the family of ranking scores (the importance values are constants expressed in terms of the class priors). Moreover, Cohen's kappa κ\kappa (Cohen, 1960) (a.k.a. Heidke Skill Score) is linearly increasing with a ranking score (Piérard et al., 2024). All these classical scores are therefore associated with well-defined importance values. For any ranking score, its inverse (i.e., the function composition of the score with the operation on performances that swaps the negative and positive classes (Powers, 2020)) is also a ranking score (Piérard et al., 2024). For example, the true negative and positive rates are inverses of each other, and the negative and positive predictive values are also inverses of each other.

The main objective of this paper is to provide all the theoretical and algorithmic tools to determine optimal tradeoffs between two scores. This indeed includes the determination of the tradeoff between a class-specific score (e.g., the precision, recall, F-score, or intersection over union) and its inverse. But this also includes the determination of the tradeoff between two scores for the same class (e.g. between precision and recall).

There are mainly two reasons why one cannot just use any arbitrarily chosen mean (e.g., arithmetic, geometric, harmonic, or quadratic) to establish a tradeoff between scores. First, the performance ordering induced by a mean of two base scores does not necessarily satisfy the axioms of performance-based ranking, even if the orderings induced by these two base scores do. Second, even if this were the case, the resulting ranking would not necessarily be intermediate between the rankings induced by the two base scores. For example, it has been shown in Piérard et al. (2026) that even though the F-score F1F_{1} is the harmonic mean of the precision and recall and that F1F_{1} is known to lead to meaningful rankings (it is a ranking score), the F-score sometimes mimics perfectly the precision or recall in terms of rankings, totally ignoring the other. It is very likely that this problem is not specific to the tradeoff between precision and recall. For this reason, it is far preferable to establish an optimal tradeoff from the perspective of ranking. We aim at providing all the theoretical and algorithmic tools to answer the following question.

Question. In two-class classification, for any given set of performances and for any pair of scores perfectly rank-correlated with ranking scores (e.g., A, TNR, TPR, NPV, PPV, Fβ−F_{\beta}^{-}, Fβ+F_{\beta}^{+}, IoU −^{-}, IoU +^{+}, BA, SIVF, κ\kappa), what ranking scores are optimal tradeoffs from a ranking point of view?

To the best of our knowledge, only the very particular case of the optimal tradeoff between the precision and recall of the positive class has been extensively studied. This was done in Piérard et al. (2026). In this paper, we keep the same methodology and reasoning, generalizing it to any pair of ranking scores. Let us summarize the methodology in four points.

(1) The search space. How one interprets a ranking depends on how one interprets the score that induces it. For this reason, the use of rank aggregation methods, such as those developed by Kemeny (Kemeny, 1959), are inappropriate as they operate on the rankings only, ignoring their origins, and lead to a ranking that is not related to any score. Instead, we explicitly determine the tradeoff score that leads to the optimal tradeoff ranking. Moreover, as we want to be sure that the tradeoff corresponds to one of the possible meaningful rankings, we seek for the optimal tradeoff within the family of ranking scores. More information about the search space can be found in section 3.1.

(2) The means. The main challenge facing us is that the reasoning of Piérard et al. (2026) was heavily based on the observation that there exists a weighted mean (the weighted harmonic mean) such that, if applied to precision and recall, one obtains ranking scores. To be able to generalize it, for any pair of ranking scores we need to find a weighted mean such that, if applied to them, one also obtains a ranking score. This is done in section 3.2.

(3) The shortest paths. If there is a mean between the scores RIAR_{I_A} and RIBR_{I_B}, then it is possible to determine scores RIR_I such that dτ(RIA;RI)+dτ(RI;RIB)=dτ(RIA;RIB)d_\tau(R_{I_A}; R_I) + d_\tau(R_I; R_{I_B}) = d_\tau(R_{I_A}; R_{I_B}) where dτ=1−τ2d_\tau = \frac{1-\tau}{2} is Kendall distance (Kendall, 1938) (also known as the bubble-sort distance) between rankings. We say that these scores form a shortest path between RIAR_{I_A} and RIBR_{I_B}. This is done in section 3.3.

(4) The optimal tradeoffs. The optimal tradeoff is the midpoint on the shortest path. It is given by the ranking score RIR_I such that dτ(RIA;RI)=dτ(RI;RIB)d_\tau(R_{I_A}; R_I) = d_\tau(R_I; R_{I_B}). It is a Karcher mean (Karcher, 1977) as it minimizes the Fréchet variance regarding the Kendall distance between rankings:

RI∗=arg⁡min⁡RIσ2(I)withσ2(I)=dτ2(RIA;RI)+dτ2(RI;RIB).(1)R_{I^{*}}=\underset{R_{I}}{\arg\min}\sigma^{2}(I)\qquad\mathrm{w i t h}\qquad\sigma^{2}(I)=d_{\tau}^{2}(R_{I_{A}};R_{I})+d_{\tau}^{2}(R_{I};R_{I_{B}}). \tag{1}

Establishing solutions for this equation is done in section 3.4.

Our theoretical contributions are threefold.

  1. From the point of view of values, we introduce scores that are homographic transformations of ranking scores. We show that, when the class priors are fixed, for any pair of ranking scores (RIA,RIB)(R_{I_A}, R_{I_B}) there exist ranking scores that are weighted f-means of some ranking scores RIA′R'_{I_A} and RIB′R'_{I_B} monotonically increasing with respect to RIAR_{I_A} and RIBR_{I_B}, respectively, and that are generated by homographies f. This stands in contrast to the unjustifiable practice of considering only the arithmetic, geometric, and harmonic means.

  2. From the point of view of rankings, we provide the equation for a shortest path between any pair of ranking scores (RIA,RIB)(R_{I_A}, R_{I_B}), assuming the priors are fixed. Furthermore, we present a method for determining the optimal tradeoff when the set of performances to be ranked is known. This optimal tradeoff lies on the shortest path.

  3. We show that, among all the ways to parameterize the two-dimensional manifold of performance orderings induced by ranking scores, there is one that has properties particularly interesting for finding optimal tradeoffs. We call this the parameterization adapted to the priors. Its usefulness should not be viewed as limited to simplifying equations, since a well-designed parameterization is key to obtaining ranking visualization tools that are well-suited to specific needs. Readers curious to discover such a tool, called the Tile, are invited to consult Piérard et al. (2024; 2025b) for the theory, Piérard et al. (2025d) for an open-source implementation, and Halin et al. (2024); Piérard et al. (2025a); Bouwmans et al. (2026); Zakharova et al. (2026) for some uses of it.

References (40)