Introduction
In machine learning, probability calibration ensures that a model's predicted confidence aligns with empirical reality. For instance, if a model predicts a 20% probability of an event, that event should occur approximately 20% of the time. Accurate calibration is vital in high-stakes domains such as medical diagnosis, fraud detection, and targeted marketing.
However, achieving reliable calibration is challenging when dealing with rare events (e.g., <1% conversion rates). Standard calibration techniques require substantial amounts of unbiased "control" data, which is often scarce and expensive to obtain. Conversely, "treatment" data—such as users exposed to a marketing intervention—is typically abundant but inherently biased, as the intervention itself alters the outcome labels. This paper introduces CalEM, an iterative framework designed to leverage massive biased datasets to improve the calibration of models trained on limited unbiased data.
The CalEM Framework
The core innovation of CalEM (Calibration Expectation-Maximization) is treating the "true" unbiased label of a treated sample as a latent variable. By modeling the relationship between biased and unbiased outcomes, the algorithm can extract useful information from large-scale treatment groups.
The process follows an approximate EM framework:
- Initialization: A baseline calibration model is trained on the small, clean control dataset, while a separate model is trained on the large, biased treatment dataset.
- Transition Estimation: The algorithm calculates a transition function ($h$) that quantifies the treatment effect—the degree to which the intervention shifted the outcome probability.
- Expectation-Maximization Loop:
- E-step: Using current calibration and transition estimates, the algorithm assigns weights to the large, biased dataset, effectively estimating the "unbiased" labels for those samples.
- M-step: The calibration model is re-fitted on a combined dataset consisting of the original clean data and the newly weighted biased data.
- Convergence: This cycle repeats until the model parameters stabilize.
The researchers provide a mathematical proof that this approximate EM approach converges to a stable solution, provided the surrogate distribution in the E-step remains sufficiently close to the true distribution.
Experimental Evaluation
The authors validated CalEM using synthetic simulations and three large-scale real-world marketing benchmarks: Criteo, Hillstorm, and Lenta. In these experiments, the control group served as the limited unbiased dataset, while the treatment group represented the large, biased source.
Key Results and Insights
The primary benefit of CalEM is a significant reduction in the variance of the calibration curve. Traditional methods often produce unstable or "wiggly" curves when data is sparse. By incorporating the feature distribution information from the biased dataset, CalEM produces smoother, more reliable estimates.
In synthetic tests, CalEM reduced $L^2$ calibration error by up to 52% compared to baselines using only clean data. On real-world datasets, CalEM-enhanced models consistently outperformed standard methods like Generalized Additive Models (GAM), Isotonic Regression, and Beta Calibration across metrics including Kolmogorov-Smirnov (KS) error, Brier score, and Log-likelihood.
Notably, CalEM is designed as a "drop-in" enhancement. It is compatible with any likelihood-based calibration method, such as spline-based GAMs or Beta Calibration, making it a versatile tool for existing machine learning pipelines.
Limitations and Future Directions
While effective, CalEM relies on a few key assumptions. It assumes the transition function (the treatment effect) is relatively smooth; highly erratic or discontinuous bias may degrade performance. Additionally, the method currently requires a likelihood-based objective function, leaving non-likelihood methods like Histogram Binning as a subject for future research. Finally, the algorithm's success depends on a reasonable initial estimate of the bias; if the treatment effect is so extreme that the original signal is obliterated, the model may struggle to recover the underlying unbiased distribution.
Conclusion
CalEM demonstrates that biased "big data" is not waste; rather, it is a rich source of information that can be harvested to stabilize and improve model calibration. By formalizing the integration of biased and unbiased sources through an EM framework, this research provides a robust path forward for calibrating models in data-constrained environments.
Summary updated