← Latest papers
💻 computer science

Quantile Adaptive Temperature Scaling for Confidence Calibration

This paper introduces Quantile Adaptive Temperature Scaling (QaTS), a post-hoc calibration method that dynamically adjusts temperature based on prediction confidence quantiles to effectively address heterogeneous miscalibration and outperform existing state-of-the-art techniques across diverse scenarios.

Original authors: Omprakash Chakraborty, Leo Fillioux, Ismail Ben Ayed, Jose Dolz

Published 2026-06-23
📖 5 min read🧠 Deep dive

Original authors: Omprakash Chakraborty, Leo Fillioux, Ismail Ben Ayed, Jose Dolz

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Problem: The Overconfident Student

Imagine a deep learning model (an AI) as a very smart student taking a test. This student is great at getting the right answers, but they have a bad habit: they are always overconfident.

Even when the student is guessing, they say, "I am 99% sure this is the right answer!" But often, they are wrong. In the real world (like healthcare or self-driving cars), this is dangerous. If a doctor's AI says, "I'm 99% sure this is a tumor," but it's actually a harmless mole, the patient might undergo unnecessary surgery.

We need a way to teach the AI to say, "I'm only 60% sure," when it's actually guessing, and "I'm 95% sure," when it's truly confident. This process is called calibration.

The Old Solution: The "One-Size-Fits-All" Thermostat

For a long time, the standard way to fix this overconfidence was a method called Temperature Scaling (TS).

Think of the AI's confidence scores as the temperature in a room.

  • If the room is too hot (the AI is too overconfident), you turn down the thermostat.
  • If the room is too cold, you turn it up.

The old method used a single, global thermostat. It looked at the whole house and said, "Okay, everyone is too hot, so I'll lower the temperature by the same amount for every single room."

The Flaw: This doesn't work well because the "rooms" (the AI's predictions) are different.

  • Some predictions are wildly wrong and overconfident (the "hot" rooms).
  • Some predictions are actually quite accurate and just need a tiny nudge.
  • Some predictions are in the middle.

By applying the same fix to everyone, the old method often fixes the easy problems but leaves the hardest, most dangerous errors uncorrected. It's like trying to cool down a burning kitchen and a lukewarm living room with the exact same amount of ice water.

The New Solution: QaTS (The "Smart, Customized" Thermostat)

The authors introduce a new method called Quantile-Adaptive Temperature Scaling (QaTS).

Instead of looking at the raw confidence score (e.g., "99%"), QaTS looks at where that score ranks compared to all other predictions. This is called the quantile.

The Analogy: The Race
Imagine the AI is running a race against itself.

  1. The Old Way: It looks at the runner's speed (confidence score) and tells everyone to slow down by 5 mph.
  2. The QaTS Way: It looks at the runner's position in the race.
    • "You are in the bottom 10% of runners (the ones who are most confused and overconfident). You need a big slowdown."
    • "You are in the top 10% of runners (the ones who are usually right). You only need a tiny adjustment."
    • "You are in the middle? You get a medium adjustment."

QaTS creates a customized temperature for every single prediction based on its rank. It realizes that the biggest mistakes happen in specific "zones" of the confidence spectrum and targets those zones specifically.

Why This is a Big Deal

The paper shows that this "rank-based" approach is much smarter than the old "score-based" approach for three main reasons:

  1. It Targets the Real Problems: The biggest errors usually happen in specific groups (like when the AI is guessing on rare items). QaTS finds these groups and fixes them, whereas the old method misses them.
  2. It Survives "Chaos" (Distribution Shifts): Imagine the AI is trained on sunny days but has to work on rainy days. The raw numbers (confidence scores) might change wildly because the weather is different. However, the ranking usually stays the same (the AI is still most confident about the same things, just with different numbers). Because QaTS relies on ranking (who is #1, #2, #3) rather than raw numbers, it keeps working perfectly even when the environment changes.
  3. It Doesn't Break the AI: Some other methods try to fix confidence by changing the AI's actual answers (which can make it less accurate). QaTS is like a "post-processing" filter. It fixes the confidence numbers without changing the answers. The AI still picks the right answer; it just admits, "I'm not 100% sure about this anymore."

The Results

The authors tested this on many different tasks:

  • Standard Images: Recognizing cats and dogs.
  • Long-Tailed Data: Recognizing rare animals (where the AI is usually very confused).
  • Medical Images: Analyzing X-rays.
  • Text: Understanding news articles.
  • Corrupted Data: Images with noise, blur, or fog.

In almost every single test, QaTS made the AI's confidence estimates much more reliable than the previous best methods. It reduced the "Expected Calibration Error" (a measure of how wrong the confidence is) significantly, especially in difficult situations where other methods failed.

Summary

The paper argues that we shouldn't treat all AI predictions the same. Just like a teacher wouldn't give the same homework to a struggling student and a genius student, we shouldn't apply the same confidence fix to every AI prediction.

QaTS is a simple, efficient tool that looks at how a prediction ranks compared to others and applies a custom "confidence correction" to it. This makes AI systems safer and more trustworthy, especially when they are facing difficult or unusual situations.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →