Statistical Comparisons of Classifiers by Generalized Stochastic Dominance

Christoph Jansen, Malte Nalenz, Georg Schollmeyer, Thomas Augustin

TL;DR

Comparing machine learning classifiers across multiple datasets and multiple performance metrics usually relies on rank aggregation, which often violates basic decision-theoretic principles like the Independence of Irrelevant Alternatives. This paper introduces Generalized Stochastic Dominance (GSD-$\delta$), an aggregation-free, decision-theoretic framework that exploits both ordinal and cardinal quality metrics simultaneously. Solvable via linear programming and verifiable through a permutation test, it provides a principled way to rank and statistically compare classifiers without ad-hoc metric averaging.

What Problem Does This Paper Address?

Benchmarking machine learning models involves three compounding challenges:

  1. Multiple evaluation metrics: Accuracy, AUC, and Brier score often conflict on the same dataset (e.g., Classifier A has higher accuracy, but Classifier B has better AUC).
  2. Multiple datasets: Even if one model dominates across all metrics on one dataset, that advantage can vanish or invert on another.
  3. Statistical sampling uncertainty: Benchmark suites are only finite samples from an unseen, potentially infinite space of possible tasks.

Standard approaches (such as the Friedman and Nemenyi tests popularized by Demšar in 2006) resolve this by converting performance metrics into ranks across datasets. However, rank aggregation suffers from social choice pitfalls like Arrow’s impossibility theorem and violations of the Independence of Irrelevant Alternatives (IIA): introducing a third, irrelevant classifier can flip the ranking between the original two. Meanwhile, simple Pareto dominance or classical first-order stochastic dominance often leave too many models incomparable.

Methods

The authors reframe multi-criteria classifier evaluation as a decision problem under uncertainty using preference systems $\mathcal{C} = [Q, R_1, R_2]$:

  • $R_1$ (Ordinal preorder): A classifier's performance vector $q$ dominates $p$ if it is at least as good on every metric.
  • $R_2$ (Metric preorder on pairs): Captures cardinal "strength of dominance" for metrics with meaningful numerical scales (e.g., the improvement in AUC from $q$ to $p$ is larger than from $r$ to $s$).
  • $\delta$-Dominance: Classifier $C_i$ $\delta$-dominates $C_j$ ($C_i \succsim_\delta C_j$) if the expected utility $\mathbb{E}[u \circ \phi(C_i, \cdot)] \ge \mathbb{E}[u \circ \phi(C_j, \cdot)]$ holds for all normalized, monotone utility functions $u$ respecting both $R_1$, $R_2$, and a minimal discrimination threshold $\delta \ge 0$.
  • Linear Programming Formulation: Checking whether $C_i \succsim_\delta C_j$ on a sample of data sets reduces to a linear program (LP). If the optimal value $\text{opt}_{ij} \ge 0$, dominance holds.
  • Observation-Randomization Test: To evaluate statistical significance while controlling the false positive rate under an unknown dataset distribution, the authors adapt a two-sample permutation test that swaps classifier assignments across datasets and computes resampling quantiles for $\text{opt}_{ij}$.

Datasets

  • Synthetic Simulation Benchmark: 7 synthetic classifiers evaluated on 2 synthetic criteria across 12 scenarios varying performance separation ($\eta \in \{0.01, 0.05, 0.1\}$) and number of datasets ($s \in \{7, 10, 15, 18\}$), with performance drawn from bivariate normal distributions.
  • UCI Machine Learning Repository: 16 standard binary classification datasets (e.g., Australian, Banknote, Biodeg, Blood Transfusion, Diabetes, Haberman, Heart, Ionosphere, Sonar, Spambase, WBDC).
  • Compared Models: 8 classifiers—CART, Random Forest (RF), Gradient Boosted Trees (GBM), Boosted Decision Stumps (BDS), GLM, LASSO, Elastic Net (EN), and Ridge Regression—evaluated on 10-fold cross-validated Accuracy, AUC, and Brier score.

Key Insights and Ideas

  • Guaranteed IIA: Because dominance is evaluated through expected utility over valid representations rather than ranks, adding or removing other classifiers never alters the pairwise relationship between $C_i$ and $C_j$.
  • Exploiting Partial Cardinal Information: Classical first-order stochastic dominance treats all metric scales as purely ordinal, which often results in complete incomparability. Incorporating $R_2$ retains the metric information (like margin of AUC improvement) without arbitrarily weighting different dimensions against each other.
  • $\delta$ as a Regularizer and Power Booster: While $\delta$ has an interpretation as Luce's "just noticeable difference," setting $\delta$ to a tiny positive number (e.g., $\delta = 10^{-5}$) regularizes the linear program. It allows the test statistic $\text{opt}_{ij}$ to differentiate degrees of dominance rather than collapsing to zero, dramatically improving statistical test power with virtually no shift in the underlying order.

Key Results

  • Simulation Ground-Truth Recovery:
  • Both GSD-0 and GSD-$10^{-5}$ consistently matched or exceeded the F-score of adapted multi-metric Demšar rank tests (all-test and one-test).
  • For separation $\eta \ge 0.05$ and sample size $s \ge 15$, GSD surpassed the one-test heuristic even though the one-test inflated its Type I error well above the target $\alpha = 0.05$.
  • Real-World UCI Benchmarks:
  • Classical first-order stochastic dominance ($\delta = 0$, trivial $R_2$) could only order 2 pairs of classifiers across the 16 datasets (GBM > CART and BDS > CART).
  • GSD-$\delta$ produced a clear, highly structured partial order: all models significantly dominated single decision trees (CART) at global $\alpha = 0.05$.
  • GBM, RF, and GLM formed an undominated top tier. GBM significantly dominated BDS, LASSO, EN, and Ridge, while remaining incomparable to RF and GLM.

Limitations and Future Work

  • Computational Complexity: The linear program for pairwise checking scales in the worst case with $\mathcal{O}(d^4)$ constraints, where $d$ is the number of distinct observed quality vectors.
  • Dataset Difficulty: The current method treats each dataset equally in the expectation. When benchmark suites contain vastly heterogeneous datasets, normalization or state-dependent preference systems will be needed.
  • Multiple Testing Conservatism: Applying conservative corrections (such as Bonferroni) across all $n(n-1)$ model pairs suppresses statistical power; more efficient family-wise or FDR correction procedures are an open area of study.

Summary updated

BibTeX
@article{jansen2023statistical,
  author = {Christoph Jansen and Malte Nalenz and Georg Schollmeyer and Thomas Augustin},
  title = {{Statistical Comparisons of Classifiers by Generalized Stochastic Dominance}},
  journal = {J. Mach. Learn. Res.},
  year = {2023},
  url = {https://openreview.net/forum?id=WSm02hLM0e},
}
Figure