# Invertible Logits Transformation for Accuracy-Preserving Post-Hoc Uncertainty Calibration

*Lening Zhao, Qipeng Zhan, Li Shen*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153997) · [OpenReview](https://openreview.net/forum?id=GywVajmdc3) · [Open on the map](../papers.html#p153997)

Category: [Causality, Privacy & Learning Theory](../pcat/11.md) › [Label Noise and Data Attribution](../pgroup/555.md) · Type: new method · Keywords: post-hoc calibration, confidence calibration, logit transformation, monotonic neural network, image classification

## Summary
Invertible Logits Transformation (InvLT) introduces a shared scalar MLP applied element-wise to logits to calibrate uncertainty while preserving original predictions and accuracy.

## Explained to a 5-year-old
A computer program makes guesses about pictures and says how sure it is. Sometimes its 'sureness' numbers are wrong. We give it a tiny helper that slightly changes those numbers so they become more honest, but it never changes which guess it picks. This helper works the same for all guesses, so it stays small. It helps the program look more trustworthy without needing to learn everything again.

## Explained to a 5-year-old, longer
A computer looks at pictures and tries to say what is in them. It also gives a number that says how confident it is about its answer. Sometimes that confidence number is too high or too low, so it doesn't match how often it is actually correct. We want a way to fix those confidence numbers without changing the answers it gives. So we create a simple rule that slightly tweaks each confidence number. This rule is the same for every picture, which keeps it tiny and easy. It makes sure that if the computer thought one picture was more likely than another, it stays that way. The rule also helps the confidence numbers line up better with reality. We test it on many different sets of pictures and different computer models. It works better than the old ways of fixing confidence numbers. This makes the computer's judgments more reliable for important tasks. All of this is done without having to retrain the whole computer from scratch.

## For a technical reader
The paper addresses the need to calibrate a classifier's confidence scores after training without altering its predictions. It does so by applying a shared scalar neural network to each logit, ensuring the transformation is monotonic and preserves the original class ordering. An auxiliary inverse network softly enforces monotonicity, keeping the model lightweight and independent of the number of classes. Experiments on standard image classification benchmarks show that this approach consistently outperforms existing post-hoc calibrators. The method can be dropped in as a plug-and-play module, requiring no additional training of the base model.

## Problem
Post-hoc calibration methods often fail to preserve the original class ranking, scale poorly with many classes, or introduce class-dependent parameters, making it difficult to align predicted confidences with true accuracy while keeping the model’s decisions unchanged. This problem limits the reliability of confidence estimates in practical deployments.

## Method
The approach uses a single learned scalar function applied to each pre-softmax logit, sharing parameters across classes to keep the model size independent of the number of labels. Monotonicity of this transformation is softly encouraged through an auxiliary inverse network, which helps preserve the original class ordering and classification accuracy while calibrating confidences. This design yields a flexible, scalable calibrator that does not require retraining the underlying model.

## Contributions
The work provides a post-hoc calibration technique that applies a single shared scalar transformation to logits, ensuring the predicted class remains unchanged while offering high expressivity and class-independent parameter count. It also demonstrates superior calibration performance across diverse image classification tasks and model architectures.

## Research questions this paper is counted under

- [How can we reliably calibrate model confidence to reflect true accuracy across different scenarios?](../q/225.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/153997)
