← Latest papers
🤖 machine learning

Improved Confidence Estimates for Black-Box Large Language Models

This paper proposes a low-overhead method that improves uncertainty quantification for black-box large language models by training simple classifiers to predict response correctness using existing confidence scores and the correctness of similar queries from a target dataset.

Original authors: Sokhna Diarra Mbacke, Mouloud Belbahri, Gabriel Loaiza-Ganem

Published 2026-08-21
📖 5 min read🧠 Deep dive

Original authors: Sokhna Diarra Mbacke, Mouloud Belbahri, Gabriel Loaiza-Ganem

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

Large language models have become powerful tools for writing, coding, and answering questions, yet they carry a hidden risk: they sometimes invent facts with absolute certainty. This phenomenon, often called hallucination, creates a significant barrier to using these systems in high-stakes fields like healthcare or scientific research, where a wrong answer can have serious consequences. To solve this, researchers have long tried to build systems that can tell us how much to trust a specific answer. The goal is to assign a score to every response that indicates its reliability. Currently, many methods exist to generate these scores, ranging from asking the model to rate its own confidence to analyzing how much its answers vary when asked the same question in different ways. However, these existing scores often operate in isolation, treating every new question as if it were the first time the model has ever seen it, without looking at how the model has performed on similar questions in the past.

A team of researchers at Layer 6 AI and TD Insurance has proposed a different approach that treats confidence not as a fixed property of the model, but as a pattern that can be learned. They argue that while existing methods generate raw uncertainty scores without needing any prior data, real-world applications almost always involve a dataset of questions and answers that have already been checked for correctness. The researchers realized this labeled data is a vast, untapped resource. Instead of trying to invent a new way to measure uncertainty from scratch, they built a simple system that takes the existing scores and combines them with information about how the model answered similar questions in the past. By training a standard computer program to recognize the relationship between these inputs and the actual correctness of the answers, they created a new method that consistently outperforms the original scores on its own.

The core of their work involves a two-step process that mimics how a human expert might verify a new claim. First, the system takes a new question and the answer the large language model provides. It then calculates the standard uncertainty scores that the model or other tools would normally produce. Next, the system looks into a reference library of previously answered questions to find the ones that are most similar to the new question. It checks whether the model got those similar questions right or wrong in the past and measures how close they are to the current question. These details—the standard scores, the history of similar questions, and the model's past performance on them—are fed into a simple classifier. This classifier learns to predict whether the new answer is correct, effectively translating raw uncertainty signals into a calibrated probability of truth.

The researchers tested this method across several different datasets, including benchmarks for common sense reasoning, scientific facts, and general knowledge questions, using various sizes of language models. They compared their new system against the best existing methods, including those that ask the model to speak its confidence and those that generate many variations of an answer to check for consistency. The results showed that their approach consistently provided more accurate predictions of correctness. In almost every test, the new method was better at distinguishing between right and wrong answers than the original scores alone. Furthermore, the system produced well-calibrated probabilities, meaning that when it predicted an answer had an 80 percent chance of being correct, it was correct roughly 80 percent of the time. This calibration is crucial for decision-making, as it allows users to trust the numbers the system provides.

One of the most significant findings was that the method worked well even when it relied on very little extra information. In some tests, the system used only a single answer from the model and a history of similar questions, without needing the model to generate multiple variations of the answer. This kept the computational cost low, making the method practical for real-world use where speed and efficiency matter. The researchers also found that the best way to combine these signals depended on the specific task, suggesting that a flexible approach that can adapt to different types of questions is superior to a one-size-fits-all solution. By treating confidence estimation as a learning problem rather than a fixed calculation, the team demonstrated that existing data can be used to significantly improve the safety and reliability of large language models without requiring access to their internal workings or expensive retraining.

The study concludes that while the initial uncertainty scores generated by current tools are useful, they are not the final word on reliability. By leveraging the simple fact that models tend to perform consistently on similar types of questions, a supervised learning framework can refine these scores into much more trustworthy estimates. This does not replace the need for good uncertainty metrics but rather enhances them, turning raw data into actionable insight. The work suggests that the path to safer artificial intelligence lies not just in building better models, but in building better ways to understand and interpret the answers those models give.

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 →