Faithfulness-Aware Uncertainty Quantification for Fact-Checking the Output of Retrieval Augmented Generation
This paper introduces FRANQ, a novel hallucination detection method for Retrieval-Augmented Generation that improves factual error identification by applying distinct uncertainty quantification techniques conditioned on a statement's faithfulness to retrieved evidence, validated through a new dataset annotated for both factuality and faithfulness.
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 Big Picture: The "Smart Librarian" Problem
Imagine you have a Super-Intelligent Librarian (the AI) who knows a lot about the world. But, this librarian has a bad habit: sometimes they make things up, or they remember things incorrectly. This is called a hallucination.
To fix this, you give the librarian a stack of Reference Books (retrieved documents) and tell them: "Only answer the question using what's in these books." This is called RAG (Retrieval-Augmented Generation).
The Problem:
Even with the books, the librarian still makes mistakes.
- The "Wrong Book" Mistake: The librarian reads a book that has a typo or a lie in it, and they repeat the lie, thinking it's true because it's in the book.
- The "Outside Knowledge" Mistake: The librarian ignores the books and answers from their own memory, which might be right or wrong.
The Old Way of Checking:
Previous methods were like a strict teacher who said: "If it's not written in the book, it's a lie!"
This is unfair. If the librarian knows the answer from their own memory (and it's actually true), but the book didn't mention it, the old method would still call it a "hallucination." It confused "Did you follow the rules?" with "Is the answer actually true?"
The Solution: FRANQ (The Smart Detective)
The authors created a new method called FRANQ. Think of FRANQ as a two-step Detective that doesn't just check if the librarian followed the rules, but also checks if the answer is actually true.
FRANQ splits the truth-checking process into two distinct questions:
Step 1: The "Faithfulness" Check (Did they follow the script?)
- The Metaphor: Imagine the librarian is an actor. The "Reference Books" are the script.
- The Question: "Did the actor stick to the script, or did they improvise?"
- How FRANQ does it: It uses a tool called AlignScore to measure how closely the answer matches the text in the books.
- High Score: The answer is right there in the books.
- Low Score: The answer came from the librarian's own head.
Step 2: The "Factuality" Check (Is the answer actually true?)
This is where FRANQ gets clever. It asks a different question depending on the result of Step 1.
Scenario A: The Librarian Followed the Script (Faithful)
- The Risk: The script itself might be wrong! (Maybe the book had a typo).
- The Detective's Move: FRANQ asks, "If the librarian is just reading the script, how confident are they in reading it?" It checks the probability of the words appearing. If the librarian is stuttering or unsure while reading the script, the answer is likely shaky.
Scenario B: The Librarian Improvised (Unfaithful)
- The Risk: The librarian is guessing from their own memory.
- The Detective's Move: FRANQ ignores the books entirely. It asks, "Based on the librarian's own internal knowledge, how likely is this to be true?" It checks the librarian's internal confidence without looking at the books.
The Magic Formula: Mixing the Scores
FRANQ combines these two checks into one final "Truth Score."
Think of it like a Smoothie:
- The Base: How much of the answer came from the books? (Faithfulness).
- The Fruit: How true is the answer if it came from the books?
- The Yogurt: How true is the answer if it came from the librarian's own brain?
FRANQ mixes these ingredients based on the recipe. If the answer is 90% from the books, the "Book Truth" matters more. If it's 90% from the librarian's brain, the "Brain Truth" matters more.
Why This Matters (The "Aha!" Moment)
In the past, if a librarian gave a correct answer that wasn't in the book, the old systems would flag it as an error.
- Old System: "You didn't use the book! That's a hallucination!" (False Alarm).
- FRANQ: "You didn't use the book, but your answer is actually correct based on your own knowledge. That's fine!" (Accurate).
Conversely, if the librarian blindly copied a lie from a book:
- Old System: "You used the book! It must be true." (Missed Error).
- FRANQ: "You used the book, but the book looks suspicious, and you seem unsure. This is likely a lie." (Caught Error).
The New Dataset (The Training Ground)
To teach this new detective, the authors built a brand new dataset.
- Imagine a massive library of questions and answers.
- They didn't just label them "Right" or "Wrong."
- They labeled them with two tags:
- Is it in the book? (Faithfulness)
- Is it actually true? (Factuality)
- They used a mix of AI and human experts to make sure these labels were perfect, especially for the tricky cases where the AI was confused.
The Result
When they tested FRANQ against other methods, it was like bringing a Sherlock Holmes to a fight with a magnifying glass.
- It caught more lies.
- It made fewer false accusations against correct answers.
- It worked well whether the answers were short (like a trivia question) or long (like an essay).
Summary in One Sentence
FRANQ is a smart fact-checker that knows the difference between "following the rules" and "telling the truth," ensuring we don't punish correct answers just because they weren't in the reference book, and don't trust wrong answers just because they were.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.