Classifier Calibration with ROC-Regularized Isotonic Regression

Eugene Berta, Francis R. Bach, Michael I. Jordan

Abstract: Calibration of machine learning classifiers is necessary to obtain reliable and interpretable predictions, bridging the gap between model outputs and actual probabilities. One prominent technique, isotonic regression (IR), aims at calibrating binary classifiers by minimizing the cross entropy with respect to monotone transformations. IR acts as an adaptive binning procedure that is able to achieve a calibration error of zero but leaves open the issue of the effect on performance. We first prove that IR preserves the convex hull of the ROC curve—an essential performance metric for binary classifiers. This ensures that a classifier is calibrated while controlling for over-fitting of the calibration set. We then present a novel generalization of isotonic regression to accommodate classifiers with $K$-classes. Our method constructs a multidimensional adaptive binning scheme on the probability simplex, again achieving a multi-class calibration error equal to zero. We regularize this algorithm by imposing a form of monotony that preserves the $K$-dimensional ROC surface of the classifier. We show empirically that this general monotony criterion is effective in striking a balance between reducing cross entropy loss and avoiding over-fitting of the calibration set.

Introduction

Modern machine learning models, particularly deep neural networks, frequently produce uncalibrated probability estimates. A model is well-calibrated if a predicted probability of 0.7 corresponds to a 70% frequency of the positive class in reality. While Isotonic Regression (IR) is a standard non-parametric tool for calibrating binary classifiers, its impact on discriminative performance and its extension to multi-class settings have remained open challenges. This paper addresses these gaps by proving that IR preserves the ROC convex hull and introducing a novel multi-class calibration method regularized by ROC monotony.

The Binary Case: Theoretical Justification

The authors provide a formal theoretical foundation for Isotonic Regression in the binary setting. Theorem 2.1 establishes that IR preserves the convex hull of the Receiver Operating Characteristic (ROC) curve. This is a critical finding because the ROC curve is a primary metric for a classifier's discriminative power. By preserving the convex hull, IR ensures that the calibration process does not degrade—and may even improve—the model's ability to distinguish between classes.

Geometric relationship between Isotonic Regression (green) and the ROC convex hull.

Geometrically, the paper links the Pool Adjacent Violators (PAV) algorithm used in IR to the Greatest Convex Minorant of a cumulative sum diagram (CSD). As shown in the figure above, the isotonic fit (green line) effectively "smooths" the predictions while ensuring they remain monotone, which directly corresponds to the step-wise ROC curve reaching its convex hull.

Multi-class Extension: ROC-Regularized IRP

To handle $K$ classes, the authors propose a Recursive Splitting Algorithm (Multi-class IRP) that employs:

  • Adaptive Binning: Instead of fixed bins, the algorithm recursively partitions the probability simplex into regions based on where the model is most miscalibrated.
  • ROC Monotony: This is the key innovation. The authors define a "ROC surface" for multi-class problems and enforce a monotony constraint during the splitting process. This ensures that calibrated predictions stay consistent with the original model’s ranking logic, preventing the calibration process from overfitting the calibration dataset.

Key Results

The proposed ROC-regularized IRP achieves zero calibration error on the calibration set while demonstrating superior generalization on test data. Experiments on the Covertype dataset show that the monotony constraint acts as a powerful regularizer.

Comparison of cross-entropy loss for standard recursive binning vs. ROC-regularized IRP.

As illustrated in the results above, standard recursive binning (blue) tends to overfit as the number of bins increases, leading to rising test cross-entropy. In contrast, the ROC-regularized IRP (orange) maintains lower cross-entropy and naturally stops splitting when further refinement would violate the ROC structure. This "sweet spot" allows for high calibration accuracy without sacrificing predictive performance.

Conclusion and Future Work

This work bridges the gap between calibration and discrimination. By proving that IR optimizes the ROC curve and extending this principle to multi-class settings, the authors provide a robust framework for reliable classifier outputs. Future research will focus on scaling these non-parametric methods to high-dimensional problems with hundreds of classes, where the sparsity of the probability simplex presents new challenges.

Summary updated

BibTeX
@inproceedings{berta2024classifier,
  author = {Eugene Berta and Francis R. Bach and Michael I. Jordan},
  title = {{Classifier Calibration with ROC-Regularized Isotonic Regression}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
  url = {https://openreview.net/forum?id=U2uvhD7PzW},
}
Figure