← Latest papers
💬 NLP

Unconditional Truthfulness: Learning Unconditional Uncertainty of Large Language Models

This paper proposes a novel method for quantifying Large Language Model uncertainty by training a regression model on attention maps, token probabilities, and recurrently computed uncertainty scores to effectively detect hallucinations and improve selective generation across multiple datasets and models.

Original authors: Artem Vazhentsev, Ekaterina Fadeeva, Rui Xing, Gleb Kuzmin, Ivan Lazichny, Alexander Panchenko, Preslav Nakov, Timothy Baldwin, Maxim Panov, Artem Shelmanov

Published 2026-04-29
📖 4 min read☕ Coffee break read

Original authors: Artem Vazhentsev, Ekaterina Fadeeva, Rui Xing, Gleb Kuzmin, Ivan Lazichny, Alexander Panchenko, Preslav Nakov, Timothy Baldwin, Maxim Panov, Artem Shelmanov

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

Imagine you are listening to a very smart, fast-talking robot tell you a story. The robot is great at making up sentences, but sometimes it gets confident about things that are actually wrong (these are called "hallucinations").

The problem is, the robot doesn't know it's lying. It just keeps talking, and if it makes a mistake early on, it gets even more confident as it builds the rest of the story on top of that mistake. It's like a game of "telephone" where the first person whispers a wrong fact, and everyone else repeats it with increasing confidence.

The Problem: The Robot's Blind Spot
Current ways to check if the robot is lying usually look at the robot's "confidence score" for each word it says. But this is tricky. If the robot says, "The sky is green," it might still feel very confident about the next word, "grass," because it's just following its own logic. It doesn't realize that the whole sentence is built on a lie.

The authors of this paper call this the "conditional dependency" problem. The robot's confidence for the next word depends entirely on the previous word, even if that previous word was a mistake.

The Solution: TAD (Trainable Attention-Based Dependency)
The researchers built a new tool called TAD. Think of TAD as a super-intelligent editor sitting next to the robot, watching it write one word at a time.

Here is how the editor works, using a few simple analogies:

  1. The "Gaze" (Attention): When the robot speaks, it "looks" at previous words to decide what to say next. The researchers realized that when the robot is telling the truth, its "gaze" (attention) is steady and focused. But when it starts hallucinating, its gaze gets shaky or confused. TAD watches this gaze closely.
  2. The "Chain Reaction" (Recurrence): The editor doesn't just look at the current word. It remembers the uncertainty of the previous words. If the robot stumbled on word #1, the editor flags word #2, #3, and #4 as suspicious, even if the robot sounds confident about them. It's like a teacher who knows that if a student gets the first step of a math problem wrong, the final answer is likely wrong too, regardless of how neatly the student wrote it.
  3. The "Two-Stage Training": To teach this editor, the researchers used a two-step process.
    • Step 1: They taught the editor to spot mistakes using just the robot's raw confidence.
    • Step 2: They let the editor use its own "gut feeling" from Step 1 to help it learn even better. It's like practicing a sport: first you learn the basic moves, then you practice playing a full game where you have to react to your own previous moves.

How They Tested It
They tested this editor on ten different types of tasks, from summarizing news articles to answering tricky trivia questions, using three different versions of the robot (LLaMA, Gemma, and Qwen).

  • The Result: TAD was much better at catching the robot's lies than any other method they tried. It was especially good at spotting when a long story went off the rails.
  • The Efficiency: Unlike other methods that require the robot to "think" about the answer five different times (which is slow and expensive), TAD is very fast. It adds only about 5% extra time to the robot's thinking process. It's like adding a quick second glance instead of asking the robot to rewrite the whole story.

The Bottom Line
The paper claims that by teaching a computer model to pay attention to how the robot looks at its own previous words, and by remembering the mistakes made earlier in the sentence, we can build a much better "lie detector" for AI. This makes AI safer and more reliable, especially for long answers, without slowing things down too much.

What the Paper Does NOT Claim

  • It does not claim this works for every type of AI in every situation (it was tested on specific models and tasks).
  • It does not claim this is a medical tool or a legal judge.
  • It does not claim the AI will never make mistakes again; it just claims this tool is better at spotting the mistakes so they can be filtered out.

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 →