Practical estimation of the optimal classification error with soft labels and calibration

Ryota Ushio, Takashi Ishida, Masashi Sugiyama

In machine learning, researchers frequently grapple with a fundamental question: "How much better can this model get?" Every dataset has an inherent limit on accuracy known as the Bayes error. This limit is dictated by overlapping classes or ambiguous data (e.g., an image that genuinely resembles both a cat and a dog). Knowing this absolute performance ceiling prevents researchers from wasting computational resources chasing impossible improvements and helps identify when a model is overfitting to a specific test set.

While previous research demonstrated that we could estimate this limit using "soft labels" (class probabilities), it suffered from two major gaps: the mathematical guarantees for how quickly the estimate improves were very loose, and it assumed access to perfectly "clean" probabilities. In reality, soft labels often come from biased human annotators or inconsistent Large Language Models (LLMs), resulting in "corrupted" or unconfident data.

This paper introduces a practical, privacy-preserving method to estimate the Bayes error using isotonic calibration, allowing for accurate estimations even when the available soft labels are corrupted.

The Calibration Trap

One might assume that simply calibrating a model's probabilities would solve the issue of corrupted labels. However, the authors reveal a surprising trap: calibration is necessary but not sufficient.

Even a "perfectly calibrated" model can yield a wildly inaccurate Bayes error estimate if the calibration is too simplistic (e.g., just predicting the average). If an estimator is flawed, it might predict a Bayes error that is significantly higher than the actual test error of a standard model—a mathematical impossibility that highlights the danger of naive estimation.

An example where a simplistic Bayes error estimate drastically overshoots the actual test error of a Vision Transformer (ViT), illustrating the calibration trap.

Methodological Improvements

To address these shortcomings, the authors propose a two-pronged improvement to Bayes error estimation:

1. Fine-Grained Bias Analysis

The authors mathematically prove that the error in our estimation (the bias) disappears much faster than previously thought, particularly when the two classes are well-separated. If a classification task is "easy," the estimation becomes highly efficient, with the bias decaying at a rate of $1/m$ instead of the worst-case $1/\sqrt{m}$.

They provide a new computable bound that is significantly tighter than prior work. On binarized CIFAR-10 datasets, this new theoretical bound proved to be over 200 times tighter than the previous state-of-the-art.

Comparison of maximum bias bounds showing the proposed method yields a vastly tighter bound than prior work by Ishida et al. (2023).

2. Isotonic Calibration for Corrupted Labels

If you have biased soft labels (e.g., a human annotator who is consistently under-confident), standard formulas fail. The authors' core contribution is the use of isotonic calibration—a non-parametric method that re-aligns probabilities while preserving their relative order.

The key insight here is that order is everything. You do not need the soft labels to be perfectly accurate in their exact values; you only need them to maintain the correct monotonic order. Isotonic calibration exploits this ordinal information without making rigid assumptions about the shape of the bias, proving to be a "consistent estimator" that converges to the true Bayes error as more data is collected.

3. Instance-Free Privacy

Crucially, this method is "instance-free." It does not require access to the original raw data (like images or text). It only requires the soft labels and a single hard label for each point. This makes the approach ideal for privacy-sensitive applications, such as medical diagnostics, where raw patient data cannot be shared.

Experimental Validation

The researchers evaluated their method across a diverse range of benchmarks, including:

  • Synthetic Data: Gaussian mixtures with artificial corruption functions.
  • Computer Vision: Binarized versions of CIFAR-10 (using CIFAR-10H human labels) and Fashion-MNIST.
  • Natural Language Processing: ChaosNLI, which provides 100 human labels per instance to capture true linguistic uncertainty.
  • ICLR Peer-Review: A novel dataset based on OpenReview data, using averaged reviewer scores as "corrupted" soft labels and the final Accept/Reject decision as the hard label to estimate the inherent difficulty of the peer-review process.

Using the "FeeBee" framework to evaluate Bayes error estimators, the isotonic calibration method consistently outperformed standard techniques like Platt scaling or Beta calibration across almost all datasets.

Limitations and Future Work

While a significant step forward, the current framework has limitations:

  • Binary Only: The theory and experiments are currently restricted to binary (two-class) classification tasks. Extending this to multi-class problems remains a crucial next step.
  • Order-Preserving Assumption: The method relies on the assumption that the corruption does not "flip" the order of probabilities. If the corruption is entirely random or breaks this monotonic relationship, the estimator's performance will degrade.
  • Computational Bounds: Although the theoretical bounds are much tighter, calculating them in practice still requires an estimated upper bound on the Bayes error (such as the score of a state-of-the-art model).

Summary updated

BibTeX
@inproceedings{ushio2026practical,
  author = {Ryota Ushio and Takashi Ishida and Masashi Sugiyama},
  title = {{Practical estimation of the optimal classification error with soft labels and calibration}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=1Q85tfZaOa},
}
Figure