Classifier Calibration with ROC-Regularized Isotonic Regression

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

Modern machine learning models, particularly deep neural networks, often suffer from poor calibration—their confidence scores do not accurately reflect the true probability of a correct prediction. While Isotonic Regression (IR) is a standard tool for calibrating binary classifiers, extending it to multi-class scenarios without overfitting or degrading predictive power remains a challenge. This paper introduces a novel multi-class calibration method based on Isotonic Recursive Partitioning (IRP) and a "ROC monotony" constraint, ensuring that calibration improves probability estimates while preserving the model's underlying ranking performance.

The Calibration Challenge

In machine learning, calibration ensures that a model’s confidence scores are meaningful. For instance, if a calibrated model predicts a 70% probability of rain, it should rain in approximately 70% of such cases. Unfortunately, many state-of-the-art models are notoriously overconfident, leading to unreliable decision-making in critical applications.

Standard Isotonic Regression is highly effective for binary classification because it is non-parametric and preserves the ranking of predictions. However, multi-class extensions often struggle with overfitting or inadvertently scrambling the model's discriminative ability. The authors address this by bridging the gap between calibration (probability accuracy) and the ROC curve (ranking performance).

Methodology: From Binary to Multi-Class

The proposed approach rests on three key pillars:

  1. Binary IR and the ROC Convex Hull: The authors formally prove that standard binary Isotonic Regression preserves the convex hull of the ROC curve. This confirms that IR is the optimal way to calibrate without losing predictive power.
Figure 1: Relationship between binary Isotonic Regression, the Cumulative Sum Diagram (CSD), and the ROC curve. The green lines illustrate how the isotonic fit corresponds to the convex hull of the ROC curve.
  1. Multi-Class Isotonic Recursive Partitioning (IRP): To handle $K$ classes, the method operates on a probability simplex (a multi-dimensional triangle where probabilities sum to 1). It uses a recursive splitting algorithm to adaptively bin the simplex into regions based on the data distribution.
  2. ROC Monotony: This is the core innovation. The authors introduce a "ROC monotony" criterion that only allows splits in the simplex if they preserve the $K$-dimensional ROC surface of the original classifier. This acts as a powerful regularizer, preventing the algorithm from creating excessive bins that would lead to overfitting.

Key Insights and Results

The researchers evaluated their method on synthetic 3-class datasets and the UCI Covertype benchmark, leading to several key findings:

  • Calibration vs. Refinement: Cross-entropy loss can be decomposed into calibration error and "refinement" (the ability to separate classes). The goal of this work is to fix calibration without hurting refinement.
  • Performance Preservation: The multi-class IRP successfully achieves zero calibration error on the training set while maintaining or slightly improving the Volume Under the ROC Surface (VUS), the multi-class equivalent of AUC.
  • Automatic Stopping: On the Covertype dataset, the ROC-regularized algorithm naturally stopped adding bins once test cross-entropy was minimized. In contrast, non-regularized versions continued to split, leading to significant overfitting and "infinite" loss.
  • Adaptive Binning: Unlike fixed-grid methods like histogram binning, IRP draws boundaries where data actually lives, resulting in higher "bin efficiency."

Limitations and Future Work

While effective for low-dimensional classifiers (typically $K \le 5$), the method faces the "curse of dimensionality" as the number of classes increases. The probability simplex becomes increasingly complex to partition as $K$ grows. Future work may involve calibrating only the "top-k" classes for high-dimensional problems like ImageNet. Despite these challenges, ROC-regularized IRP provides a robust framework for aligning model confidence with real-world accuracy without sacrificing discriminative performance.

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