arXiv · 2506.10572
Probability Bounding: Post-Hoc Calibration via Box-Constrained Softmax
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.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Kyohei Atarashi, Satoshi Oyama, Hiromi Arai, Hisashi Kashima. 2025-06-12. Probability Bounding: Post-Hoc Calibration via Box-Constrained Softmax. https://arxiv.org/abs/2506.10572
Cite the original work for its findings. Save a collection to share your selection of sources.