Optimal and Provable Calibration in High-Dimensional Binary Classification: Angular Calibration and Platt Scaling

Yufan Li, Pragya Sur

TL;DR

Modern classifiers trained in high-dimensional settings—where the number of features matches or exceeds the sample size—are notoriously overconfident and poorly calibrated. This paper introduces Angular Calibration, a novel framework that achieves provably optimal calibration by geometrically adjusting prediction logits based on the angle between estimated and true weights. Crucially, the authors also provide the first high-dimensional theoretical guarantee for the widely used Platt scaling method, proving it naturally converges to this optimal angular solution.

What Problem Does This Paper Address?

When a machine learning model predicts a 70% chance of rain, or a 70% probability that a medical image shows a tumor, we expect that outcome to happen exactly 70% of the time over many similar predictions. This alignment is called calibration.

While calibration is well-studied in classical regimes (where the number of samples $n$ is much larger than the number of features $d$), modern machine learning often operates in a high-dimensional proportional regime ($n \approx d$). In this setting, standard classifiers like logistic regression yield severely biased, overconfident probabilities. Existing post-hoc calibration techniques lack rigorous theoretical guarantees in high dimensions, leaving practitioners without a principled understanding of which calibration strategy is truly optimal.

Methods

The authors propose a data-driven calibration strategy called Angular Calibration. The core idea is beautifully geometric: it interpolates the biased prediction logits of a pre-trained linear classifier with a noninformative "chance" predictor (Gaussian noise).

The interpolation weight is determined by the angle $\theta_*$ between the estimated weight vector $\hat{w}$ and the true, unknown weight vector $w_\star$:

$$\theta_* = \arccos\left(\frac{\langle w_\star, \hat{w} \rangle_\Sigma}{\|\hat{w}\|_\Sigma \|w_\star\|_\Sigma}\right)$$

To make this actionable without knowing $w_\star$, the authors leverage recent breakthroughs in high-dimensional statistics to construct a consistent data-driven estimator $\hat{\theta}$ for this angle using random matrix theory.

Furthermore, the paper establishes Bregman-optimality, proving that this angular predictor uniquely minimizes any Bregman divergence (such as squared loss or KL-divergence) relative to the true label distribution. Finally, they analyze Platt scaling—a popular heuristic that fits a logistic regression on a holdout set—and prove mathematically that as the holdout set grows, the Platt-scaled predictor converges exactly to their Bregman-optimal angular solution.

Datasets

The authors evaluated their approach using three distinct types of data:

  1. Synthetic Simulations: Gaussian, Rademacher, and uniformly distributed features to test theoretical limits and universality.
  2. Pretrained Representations: High-dimensional embeddings extracted from deep networks, including ResNet-34 (on CIFAR-10), MiniLM (on 20 Newsgroups), and ChemBERTa (on Tox21).
  3. UCI/OpenML Benchmarks: 23 classic tabular datasets, including Communities & Crime, Splice-junction Gene Sequences, Madelon, MNIST, Covertype, and Gisette.

Key Insights and Ideas

  • The Noise-Calibration Tradeoff: The paper uncovers a fundamental conceptual link: the poorer the alignment between your estimated weights and the truth, the more noise you must inject into the prediction logits to maintain calibration. If your model is weak, calibration demands that you intentionally blunt its confidence.
  • Platt Scaling Vindicated: Platt scaling has been used as a heuristic for decades. This work provides its first formal high-dimensional justification, showing it isn't just a practical trick—it asymptotically tracks the theoretically optimal Bregman minimizer.
Platt scaling predictors converging to the angular calibration predictor as holdout set size ($n_{ho}$) increases.

Key Results

  • Provable Calibration: Theorem 3.2 mathematically guarantees that the Expected Calibration Error (ECE) of the angular predictor vanishes as $n$ and $d$ grow proportionally.
  • Empirical Superiority: Across 20 UCI/OpenML datasets, Angular Calibration achieved the lowest ECE in 15 cases, yielding a mean ECE of 0.026, compared to 0.049 for Platt scaling with a small holdout set ($n_{ho} = 100$).
  • Robustness (Universality): While the primary theory assumes Gaussian features, experiments with Rademacher and Uniform distributions show that the calibration guarantees hold robustly for light-tailed distributions.
Figure 2: Reliability plots for angular calibration and Platt scaling of a logistic ridge predictor. Left panel uses a small holdout set for Platt scaling with nho = 100; Right panel uses a large holdout set with nho = 2000. The plot is generated with Gaussian data with covariance Σ = 1

Limitations and Future Work

  • Covariance Dependency: The current angle estimation framework assumes the feature covariance matrix $\Sigma$ is known or can be reliably estimated from a separate, large unlabeled dataset.
  • Real-Data Instability: The plug-in estimator for the inner product can be unstable on real-world datasets that violate random-matrix-theoretic assumptions (like Wigner-type structures). For some semi-real experiments, the authors had to bypass this by using the true angle.
  • Extension to Complex Models: The paper focuses primarily on binary linear classification. While they sketch a theoretical extension to multi-index models (like multi-class problems and two-layer neural networks), practical estimators for the required cross-index angles remain an open area for future research.

Summary updated

BibTeX
@inproceedings{li2025optimal,
  author = {Yufan Li and Pragya Sur},
  title = {{Optimal and Provable Calibration in High-Dimensional Binary Classification: Angular Calibration and Platt Scaling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=SgQAleMecy},
}
Figure