Probabilistic Scores of Classifiers, Calibration is not Enough
Agathe Fernandes Machado, Arthur Charpentier, Emmanuel Flachaire, Ewen Gallic, François Hu
TL;DR
This work shows that calibration metrics alone can mislead when classifier score distributions do not match the true probability distribution. It proposes optimizing KL divergence between the predicted score distribution and the true probability distribution as a model-selection objective, particularly for tree-based methods like Random Forest and XGBoost. Across synthetic DGPs and ten real-world UCI datasets with Beta priors, KL-based tuning achieves substantially better alignment of scores with true probabilities at the cost of only a small loss in discrimination, and sometimes yields pronounced improvements in probability representativeness. The findings suggest that in decision contexts requiring accurate probability estimation, KL-based model selection provides practical advantages over conventional metrics such as AUC, BS, or ICI, especially when prior information about the probability distribution is available.
Abstract
In binary classification tasks, accurate representation of probabilistic predictions is essential for various real-world applications such as predicting payment defaults or assessing medical risks. The model must then be well-calibrated to ensure alignment between predicted probabilities and actual outcomes. However, when score heterogeneity deviates from the underlying data probability distribution, traditional calibration metrics lose reliability, failing to align score distribution with actual probabilities. In this study, we highlight approaches that prioritize optimizing the alignment between predicted scores and true probability distributions over minimizing traditional performance or calibration metrics. When employing tree-based models such as Random Forest and XGBoost, our analysis emphasizes the flexibility these models offer in tuning hyperparameters to minimize the Kullback-Leibler (KL) divergence between predicted and true distributions. Through extensive empirical analysis across 10 UCI datasets and simulations, we demonstrate that optimizing tree-based models based on KL divergence yields superior alignment between predicted scores and actual probabilities without significant performance loss. In real-world scenarios, the reference probability is determined a priori as a Beta distribution estimated through maximum likelihood. Conversely, minimizing traditional calibration metrics may lead to suboptimal results, characterized by notable performance declines and inferior KL values. Our findings reveal limitations in traditional calibration metrics, which could undermine the reliability of predictive models for critical decision-making.
