Sub topic 14
What These Checks Cannot Catch
Prerequisites
This chapter assumes you have read the earlier chapters on next-token prediction, red flags, self-consistency, source verification, prompting for uncertainty, and grounding. You should be able to read short Python functions. The code here reuses the agreement and quote-checking ideas from those chapters.
Every check has a blind spot
The earlier chapters gave you four ways to catch fabricated answers:
- Compare several sampled answers.
- Check claims against sources.
- Ask the model to express uncertainty.
- Supply documents for the model to answer from.
Each one tests a proxy for truth, not truth itself. A proxy is something that usually goes along with a correct answer. When the proxy and the truth come apart, the check passes a wrong answer. Knowing how each check fails tells you how much weight a pass deserves.
The model has no internal fact-checker, so every check sits outside it. Each check looks at the output, or at the output compared with something else, and infers whether the output can be trusted. An inference can be wrong.
Self-consistency: consistent and wrong
Self-consistency checks sample the model several times and measure agreement. Low agreement suggests the model is guessing. The reverse does not hold. High agreement shows that the model's probability is concentrated on one answer. It does not show that the answer is true.
Agreement can be high and wrong for three reasons:
- Shared training errors. If a false claim appears often in the training text, such as a popular misconception, every sample reproduces it.
- Low temperature. Lower temperature concentrates probability on the top candidate, so samples agree more. Dropping the temperature raises agreement without adding any knowledge.
- A misleading prompt. A false premise in the question pushes every sample toward the same wrong frame.
from collections import Counter
def agreement(answers):
normalized = [a.strip().lower().rstrip(".") for a in answers]
value, count = Counter(normalized).most_common(1)[0]
return value, count / len(normalized)
# Five samples from a model that learned a common wrong date.
samples = ["1887", "1887.", "1887", "1887", "1887"]
print(agreement(samples))This prints ('1887', 1.0). Perfect agreement, and the answer could still be wrong. The check also has a cost problem. Several samples per question multiply your spend and latency, and free-text answers are hard to compare because the same fact can be phrased many ways. The agreement function normalizes only case, whitespace, and a trailing period. Two answers like "March 3" and "3 March" count as different, which makes agreement look lower than it is.
Source verification: real source, wrong claim
Checking a claim against a primary source is the strongest method in this tutorial. It still has limits.
The quote-matching function from the earlier chapter tests only whether a string appears in a document. It cannot tell whether the model used the string correctly.
def quote_supported(quote, source_text):
def norm(s):
return " ".join(s.lower().split())
return norm(quote) in norm(source_text)
source = "The study found no evidence that the drug works in adults."
print(quote_supported("the drug works in adults", source))This prints True. The quoted words are in the source, but the model dropped the "no evidence that" before them and reversed the meaning. A substring match proves the words exist. It does not prove the claim.
Other ways verification fails:
- The source is wrong. A real paper can be mistaken, retracted, or outdated. A source you found through a search engine may itself be machine-generated.
- The source exists but does not say that. A model can cite a real paper for a claim the paper never makes. The reference passes an existence check and fails a content check.
- You checked the wrong thing. You confirmed that a citation exists and stopped, without reading what it says.
- You cannot find a source. Failing to find one does not prove the claim is false. It may be in a paywalled document, a non-English source, or a book you cannot search.
- Verification fatigue. After checking five claims that were right, people stop reading the sixth carefully.
Prompting for uncertainty
You can ask a model to say when it is unsure, to give a confidence level, or to answer "I don't know" when it lacks information. These prompts help, but the model's stated confidence is also generated text. It is predicted the same way as every other token.
- Stated confidence is weakly calibrated. A model may say "I'm about 90% sure" without any mechanism that makes 90% mean 90%.
- Hedging can be a style, not a signal. Models can hedge on correct claims and state wrong claims flatly. If you train yourself to trust hedged answers less and flat answers more, you will sometimes get the reverse of the right ordering.
- Permission to abstain can backfire. A prompt that pushes strongly toward "say you don't know" can make the model refuse questions it could answer correctly. This costs you useful answers.
- It does not remove false premises. If the question assumes something false, an uncertainty instruction may not make the model examine the assumption.
Treat expressed uncertainty as a cue to look closer. Do not treat expressed certainty as a reason to skip checking.
Grounding: faithful to the documents, not to the facts
Grounding means supplying documents and telling the model to answer only from them. It reduces fabrication, because the model has the facts in its context. It does not remove fabrication.
- Ignored sources. The model may blend in its own memory, or contradict a passage it was given, especially when the passage conflicts with a strongly learned fact.
- Bad retrieval. If the retrieval step finds the wrong passages, the model answers fluently from irrelevant text. The answer looks grounded because it cites something.
- Long contexts. Details buried in a long input can be missed or merged with other details.
- Garbage in, garbage out. A grounded answer is only as correct as the documents. An outdated policy document produces an outdated answer.
- Missing information. If the documents lack the answer, the model may still produce one. You need to instruct it to report the gap and then check that it did.
Summary of blind spots
| Check | What a pass shows | What a pass does not show |
|---|---|---|
| Self-consistency | The model's probability is concentrated on one answer | That the answer is true |
| Quote matching | The words appear in the source | That the claim uses them correctly |
| Citation exists | The reference is real | That it supports the claim |
| Expressed uncertainty | The model produced hedging text | That its confidence is calibrated |
| Grounding | The model had relevant text available | That it used the text faithfully |
| Human review | A person looked at the output | That the person could judge it, or looked carefully |
Failures that cut across methods
Some failures affect every method:
- Errors that look normal. A fabricated claim that fits what you expect passes every informal check, including your own intuition. Confirmation bias helps the model here.
- Correlated checks. If you ask the same model to verify its own answer, the verifier shares the generator's blind spots and often the same wrong belief. Using a second model reduces this but does not remove it, because models share training data.
- Partial errors. An answer can be 95% correct with one invented number. Checking the main claim and skipping the details misses it.
- Omissions. Every check examines what the model said. None examines what it left out, such as a caveat, a counterexample, or a key study.
- Drift over time. A check that worked on last year's model, prompt, or documents may not work now. Facts also change, so a verified answer can go stale.
Matching effort to risk
Since no check is complete, decide how much checking a task needs before you start. Two questions drive the decision: how costly is an error, and how easily can you verify the claim?
Practical rules follow from this:
- Layer checks that fail differently. Self-consistency catches guessing. Source checking catches invented facts. Grounding limits what the model can invent. Together they cover more than any one alone.
- Verify high-stakes claims at the source. Medical, legal, financial, and safety claims need a primary source and often a qualified person.
- Check the risky parts first. Citations, quotations, numbers, dates, and names of obscure people and places deserve checks even in a low-stakes answer.
- Record what you checked. "Quote verified against the report, number not verified" is more honest than "checked".
- Do not use AI output as the only evidence for anything you cannot afford to get wrong.
Exercise
A model answers a factual question five times at temperature 0.2 and gives the same date each time. A colleague says this proves the date is right. Give two reasons the date could still be wrong, and one check that would add real evidence.
Show answer
First, low temperature concentrates probability on the top candidate, so agreement is expected whether or not the answer is true. Second, the model may have learned a wrong date from widely repeated training text, so every sample repeats it. A check that adds real evidence is looking up the date in a primary source, such as an official record or the original publication, and reading what it says.
Exercise
The function quote_supported returns True for a quotation the model attributed to a report. What two further checks does this result still leave undone?
Show answer
It does not check whether the quotation is used with its original meaning, since the surrounding words may change or reverse it. It also does not check whether the report itself is accurate and current. You should read the passage in context and judge the source.