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

Optimal Decision-Theoretic Classification Using Non-Decomposable Performance Metrics

Nagarajan Natarajan, Oluwasanmi Koyejo, Pradeep Ravikumar, Inderjit S. DhillonarXiv 2015

Abstract

In binary classification, standard accuracy often fails to capture the nuances of imbalanced datasets. Consequently, researchers frequently turn to non-decomposable metrics like the F-measure or Jaccard index. This paper bridges a significant gap in classification theory by proving that many such metrics are optimized by thresholding the conditional probability of the positive class. By identifying a property termed "TP Monotonicity," the authors reduce the computational complexity of finding the optimal decision-theoretic classifier from exponential ($2^n$) to polynomial time ($O(n^3)$ or $O(n^2)$).

Introduction

Binary classification typically aims to maximize accuracy, a "decomposable" metric where the total utility is the sum of individual correct predictions. However, in domains such as medical diagnosis or fraud detection, where positive events are rare, accuracy is often misleading. Non-decomposable metrics, which evaluate the entire confusion matrix (True Positives, False Positives, etc.), provide a more balanced view of precision and recall.

Optimizing these metrics can be approached via Empirical Utility Maximization (EUM), which assumes an infinite test set, or Decision Theoretic Analysis (DTA), which maximizes expected performance on a fixed-size test set. While EUM is well-understood, DTA has historically been a "black box," often requiring an exhaustive search through $2^n$ possible labelings.

Non-Decomposable Metrics and TP Monotonicity

The authors focus on a broad class of metrics that satisfy TP Monotonicity. A metric is TP monotonic if its value improves when the number of True Positives increases while the total number of predicted positives remains constant. This property is shared by many popular metrics used in machine learning.

Table 1: Definitions of common non-decomposable performance metrics and their functional forms $\Phi(u, v, p)$.

As shown in the table above, metrics like the Jaccard index and $F_\beta$ can be expressed as functions of the confusion matrix elements. The paper demonstrates that for any metric satisfying TP Monotonicity, the optimal classifier follows the Probability Ranking Principle (PRP).

The Probability Ranking Principle (PRP)

The core theoretical contribution is the proof that the optimal DTA classifier is a signed thresholding of the conditional probability $P(Y=1|x)$. This means that if one can estimate the probability of an instance belonging to the positive class, the optimal strategy is simply to sort the test examples by these probabilities and identify the optimal cutoff point. This discovery aligns the optimal structure of DTA classifiers with that of EUM classifiers, despite their different theoretical foundations.

Computational Breakthroughs

Before this work, finding the optimal DTA classifier was computationally prohibitive. The authors introduce two primary algorithms:

  1. General Case ($O(n^3)$): For any metric satisfying PRP, a dynamic programming approach using polynomial product coefficients finds the optimal threshold in cubic time relative to the test set size $n$.
  2. Fractional-Linear Case ($O(n^2)$): For metrics like the F-measure and Jaccard index, the process is further optimized to quadratic time.

This shift from $2^n$ to polynomial complexity makes DTA optimization feasible for large-scale datasets on standard hardware.

Empirical Evaluation

The proposed methods were validated across several benchmark datasets, including REUTERS, SPAMBASE, and BREAST CANCER. The DTA-optimized classifiers consistently outperformed standard baselines (such as thresholding at 0.5). Notably, in several instances involving the F1 and Jaccard metrics, the DTA approach—which accounts for the specific test set size—outperformed the EUM approach, which assumes an infinite sample size.

Conclusion and Future Work

This research provides a rigorous theoretical framework for optimizing non-decomposable metrics in binary classification. By proving the optimality of thresholding under TP Monotonicity, the authors have transformed a previously intractable problem into an efficient one. Future research directions include extending this analysis to multiclass and multilabel classification settings, where non-decomposable metrics are even more prevalent and optimization challenges are more complex.

Summary updated

BibTeX
@misc{natarajan2015optimal,
  author = {Nagarajan Natarajan and Oluwasanmi Koyejo and Pradeep Ravikumar and Inderjit S. Dhillon},
  title = {{Optimal Decision-Theoretic Classification Using Non-Decomposable Performance Metrics}},
  year = {2015},
  eprint = {1505.01802},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1505.01802},
}
Figure