MaxEnt Loss: Constrained Maximum Entropy for Calibration under Out-of-Distribution Shift

Authors

  • Dexter Neo National University of Singapore
  • Stefan Winkler National University of Singapore
  • Tsuhan Chen National University of Singapore

DOI:

https://doi.org/10.1609/aaai.v38i19.30143

Keywords:

General

Abstract

We present a new loss function that addresses the out-of-distribution (OOD) network calibration problem. While many objective functions have been proposed to effectively calibrate models in-distribution, our findings show that they do not always fare well OOD. Based on the Principle of Maximum Entropy, we incorporate helpful statistical constraints observed during training, delivering better model calibration without sacrificing accuracy. We provide theoretical analysis and show empirically that our method works well in practice, achieving state-of-the-art calibration on both synthetic and real-world benchmarks. Our code is available at https://github.com/dexterdley/MaxEnt-Loss.

Published

2024-03-24

How to Cite

Neo, D., Winkler, S., & Chen, T. (2024). MaxEnt Loss: Constrained Maximum Entropy for Calibration under Out-of-Distribution Shift. Proceedings of the AAAI Conference on Artificial Intelligence, 38(19), 21463–21472. https://doi.org/10.1609/aaai.v38i19.30143

Issue

Section

AAAI Technical Track on Safe, Robust and Responsible AI Track