Binary Classification with Karmic, Threshold-Quasi-Concave Metrics

Bowei Yan, Oluwasanmi Koyejo, Kai Zhong, Pradeep Ravikumar

Abstract

Standard machine learning models often optimize for accuracy, yet many real-world applications in medicine and information retrieval demand complex, non-decomposable metrics like the F-measure or G-mean. This paper introduces a unified theoretical framework for such metrics by identifying two critical properties: the "Karmic" property and "Threshold-Quasi-Concavity." We prove that for any Karmic metric, the optimal classifier is a simple threshold of the conditional probability. Furthermore, we present a fast, two-step plug-in algorithm that achieves strong statistical convergence rates.

Introduction: Beyond Decomposable Losses

In binary classification, we typically minimize a decomposable loss function, where the total error is the sum of individual point errors. However, metrics like Precision, Recall, and the F-measure are non-decomposable; they depend on the aggregate performance across a batch of data. Optimizing these metrics is historically challenging, often requiring metric-specific heuristics or restrictive linear assumptions.

This work seeks a general theory to encompass a wide array of complex metrics while providing efficient optimization algorithms and rigorous statistical guarantees. As shown in the table below, many common metrics can be unified under this framework.

Table 1: Common non-decomposable metrics and their representations within the proposed framework.

Theoretical Framework

The authors identify two fundamental properties that characterize "well-behaved" performance metrics:

  1. Karmic Property: A metric is "Karmic" if it responds positively to "good deeds"—specifically, it must improve when true positives or true negatives increase, and when false positives or false negatives decrease. This property is more flexible than strict monotonicity, allowing for a broader range of applicable metrics.
  2. Threshold-Quasi-Concavity: This property ensures that the performance metric, when viewed as a function of the classification threshold, is unimodal (it has no "fake" local maxima). This shape is crucial for efficient optimization.

A key theoretical insight of this paper is that for any Karmic metric, the Bayes optimal classifier is a threshold function of the conditional probability $\eta(x) = P(Y=1|X)$. This implies that complex decision boundaries are unnecessary; one only needs to find the correct "cutoff" point on the probability scale.

The Two-Step Plug-in Algorithm

Leveraging these properties, the authors propose a practical two-step approach:

  • Probability Estimation: The dataset is split, and the first half is used to estimate the conditional probability $\eta(x)$ using standard methods like logistic regression or kernel density estimation.
  • Threshold Optimization: The second half of the data is used to find the optimal threshold $\delta$. Due to the quasi-concavity of the metric, this search can be performed extremely efficiently using a binary search algorithm, rather than a computationally expensive exhaustive search.

Results and Statistical Guarantees

The framework's effectiveness is demonstrated through theoretical analysis on specific data models:

  • Gaussian Generative Models: For classes following multidimensional Gaussian distributions with shared covariance, the excess risk vanishes at a rate of $O(\log n / n)$.
  • $\beta$-Hölder Classes: When the underlying probability function $\eta(x)$ is smooth, the classifier can achieve convergence rates significantly faster than the standard $1/\sqrt{n}$.

The binary search approach is not only statistically consistent but also computationally efficient, reaching the optimal threshold in logarithmic time relative to the target precision.

Discussion and Future Directions

By generalizing the "Tsybakov noise condition" to non-decomposable metrics, this research provides a robust foundation for optimizing complex performance measures. However, some challenges remain. The reliance on data splitting may be problematic for small datasets, and the final performance is heavily dependent on the quality of the initial probability estimate. Additionally, extending the "Karmic" framework to multiclass classification—where metrics like Macro-F1 are prevalent—remains a promising area for future study.

Summary updated

BibTeX
@inproceedings{yan2018binary,
  author = {Bowei Yan and Oluwasanmi Koyejo and Kai Zhong and Pradeep Ravikumar},
  title = {{Binary Classification with Karmic, Threshold-Quasi-Concave Metrics}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=Sk4PvhbObS},
}
Figure