English

Probability Bounding: Post-Hoc Calibration via Box-Constrained Softmax

Machine Learning 2026-02-24 v2 Machine Learning

Abstract

Many studies have observed that modern neural networks achieve high accuracy while producing poorly calibrated probabilities, making calibration a critical practical issue. In this work, we propose probability bounding (PB), a novel post-hoc calibration method that mitigates both underconfidence and overconfidence by learning lower and upper bounds on the output probabilities. To implement PB, we introduce the box-constrained softmax (BCSoftmax) function, a generalization of Softmax that explicitly enforces lower and upper bounds on the output probabilities. While BCSoftmax is formulated as the solution to a box-constrained optimization problem, we develop an exact and efficient algorithm for computing BCSoftmax. We further provide theoretical guarantees for PB and introduce two variants of PB. We demonstrate the effectiveness of our methods experimentally on four real-world datasets, consistently reducing calibration errors. Our Python implementation is available at https://github.com/neonnnnn/torchbcsoftmax.

Keywords

Cite

@article{arxiv.2506.10572,
  title  = {Probability Bounding: Post-Hoc Calibration via Box-Constrained Softmax},
  author = {Kyohei Atarashi and Satoshi Oyama and Hiromi Arai and Hisashi Kashima},
  journal= {arXiv preprint arXiv:2506.10572},
  year   = {2026}
}

Comments

46 pages, 4 figures

R2 v1 2026-07-01T03:13:02.671Z