Foundation Models: Tokens, Attention, And Generation · Lesson 17

Why AI Hallucinates And Gets Facts Wrong

Name the specific unsupported or incorrect behavior, check whether the relevant passage supports the claim, and make uncertainty change the response or action path. Citation presence and confident language do not establish correctness.

Study And Save Progress

Watch The Lesson

6 min 41 sec

Read the video transcript

A museum assistant says that the archive reading room will be open until 16:00 on 12 June 2026. It cites a real supplied notice. The notice gives those hours for the temporary gallery and says the archive reading room is closed that day. What must we check beyond

the existence of a citation? Follow the failure, the supporting passage, the response it permits and the evidence needed to evaluate uncertainty. The example is fictional, but the distinction can be inspected directly. Name the specific failure. Here the system retrieved a relevant

notice but transferred the gallery's hours to the archive and missed its closure. That is a source-interpretation error. An invented notice, a wrong calculation, invalid output formatting and an unauthorized booking would be different failures. Calling every problem hallucination would hide which component needs repair.

Hallucination commonly describes unsupported or incorrect generated content under a task. A model can fill an absent detail with a plausible continuation, repeat a stale fact or misinterpret supplied evidence. In our case the required closure statement is already in the notice, so adding another citation is

not the first missing operation. The claim must be matched to the actual passage's facility, date and exception. Check grounding at the claim level. The citation points to notice C2, but the sentence about the reading room needs support from the part about that room. Read the scope and conditions,

not just the document title. The supported response to this supplied case is that the reading room is closed on 12 June. The gallery's separate opening interval does not override that statement. Change the task slightly: a visitor asks about another date

that the notice does not cover. The workflow now lacks applicable evidence. It can ask for the missing date, retrieve an authoritative current notice, state the available limit, abstain or route the case to staff, depending on what is missing. The response should help resolve the actual gap rather than merely append a

generic warning to an unsupported opening time. If the application can reserve a room or book a visit, uncertainty must affect that action path. Hold the action while its required evidence or permission is missing. A footer saying the answer may be wrong does not repair an

automatic booking based on unverified hours. The application needs defined conditions for proceeding, clarifying or escalating, with a record of what evidence justified the decision. Model knowledge can be incomplete, stale or poorly elicited. A stated model knowledge cutoff concerns the model's reported training boundary; a product may

also use current retrieved information or tools. Inspect what the actual request received and which source applies. Neither a cutoff date nor the presence of a search tool establishes that the current answer used correct, authorized evidence. TruthfulQA supplies a dated evaluation case. Its 2021 preprint and May 2022 ACL

paper used questions designed around human misconceptions to test whether models repeated false answers. The study separated truthfulness from informativeness. This illustrates a useful evaluation distinction: a detailed-looking answer and a truthful useful answer need separate checks. Its historical models and deliberately constructed questions do not provide a present-day

error rate for the museum system. Confidence also needs a defined meaning. Suppose a hypothetical evaluation groups 100 answers assigned an 80% correctness score, but only 60 are correct under the stated rubric. Their observed correctness is 60%, below the assigned score. That bin reveals overstatement in this

supplied example; a complete calibration assessment needs adequate representative data and its protocol. The word certainly is not by itself an evaluated probability, and a next-token probability does not automatically measure whole-answer truth. Keep retrieval success and evidence-supported correctness as separate outcomes. Notice C2 can be retrieved successfully

while the answer still misreads it. Also inspect whether a correct answer was formatted properly and whether any action respected permission. These distinctions let the team repair retrieval, interpretation, validation or action controls instead of assuming that changing model size addresses every failure.

Pause with the supplied notice: the temporary gallery is open from 10:00 to 16:00 on 12 June 2026, and the archive reading room is closed that day. The assistant cites it while claiming the reading room is open until 16:00. Did retrieval succeed? Does the passage support that claim?

State the response justified by these givens. The notice was retrieved, but it does not support the reading-room opening claim. The hours belong to the temporary gallery, while the reading room is explicitly closed on the specified date. State the reading-room closure and preserve the facility and date distinction.

This is a source-interpretation repair, not evidence that any cited sentence is automatically grounded. Try another domain. A supplied bus timetable says route 7 runs from 07:00 to 19:00 on weekdays, from 10:00 to 14:00 on Saturday, and has no Sunday service. A generated answer cites the timetable

and offers to book a Sunday trip at 11:00 using the weekday hours. Identify the failure and the supported response. What should happen to the booking action? The answer has applied the wrong day condition. The timetable says there is no Sunday service, so those weekday hours

do not support the proposed trip. Explain the supplied Sunday limitation and hold that booking route. An alternative trip would require applicable evidence and permission. A real citation and confident wording cannot authorize a trip that contradicts the cited conditions.

You can now name a failure, inspect whether a passage supports a particular claim, and choose a response that changes the workflow when evidence is missing or contradictory. Useful uncertainty is specific and consequential. The final lesson will turn these distinctions into a controlled comparison, so that model capability and changes in system

input are evaluated without being mixed together.

Main Point

Name the specific unsupported or incorrect behavior, check whether the relevant passage supports the claim, and make uncertainty change the response or action path. Citation presence and confident language do not establish correctness.

Key Points

1. Inspect the exact claim and passage

Use this fictional supplied notice:

> C2: On 12 June 2026 the temporary gallery is open 10:00–16:00. The archive reading room is closed that day.

The assistant claims: “The archive reading room is open until 16:00 on 12 June 2026”, citing C2. Retrieval of the notice can succeed while that answer fails. The hours concern the gallery; the reading room has a separate closure condition.

Match a claim to the source’s entity, date, conditions and exclusions. Here the justified response states the reading-room closure. No model run or actual museum notice is represented by this illustration.

2. Name the failure before choosing a remedy

FailureWhat to investigate
No applicable source retrievedRetrieval, permissions, indexing and source availability
Applicable source misreadEntity/date/exception interpretation and evidence support
Wrong arithmeticCalculation inputs and checking method
Correct content in invalid formatOutput/schema validation
Unsupported or unauthorized actionEvidence gate and action permissions

Hallucination commonly covers unsupported or incorrect generated content under a task. A precise diagnosis makes a useful repair possible. A larger model does not automatically repair a missing source or broken action gate.

3. Use uncertainty to resolve an actual gap

If C2 does not cover the visitor’s requested date, obtain applicable evidence or explain the available limit. Depending on the gap, ask a clarifying question, retrieve an authoritative current notice, abstain or route to staff.

If a booking requires evidence or permission that is missing, hold the action. A generic uncertainty footer does not repair an automatic booking using an unsupported time. Record the condition needed to proceed and the evidence that eventually satisfies it.

4. Distinguish model knowledge from product evidence

A stated knowledge cutoff describes a model-specific reported boundary. A product may additionally retrieve current material or call tools. Inspect what this request actually received and whether that evidence applies. A tool’s presence does not establish correct retrieval or interpretation.

5. Learn from a bounded historical evaluation

Lin, Hilton and Evans’ TruthfulQA preprint appeared in September 2021 and its ACL paper in May 2022. It used misconception-oriented questions and separated truthfulness from informativeness in evaluated answers. This shows why a detailed-looking answer and a truthful useful answer need distinct criteria.

The deliberately constructed questions and historical model setups do not supply a current museum-system error rate or a universal cause for every unsupported answer.

6. Check confidence against outcomes

In a hypothetical bin, 100 answers are each assigned an 80% correctness score, but 60 are correct under the rubric. Observed correctness is `60/100=60%`. That bin overstates correctness relative to the assigned score; a full calibration assessment requires adequate representative data and its protocol.

The word “certainly” is not automatically a calibrated probability. A next-token probability also concerns a different object from whole-answer correctness.

7. Closing

Keep retrieval success, evidence-supported correctness, output validity and authorized action as separate outcomes. You can now inspect a cited claim and choose a consequential uncertainty response. The final lesson uses these distinctions in a controlled comparison of model and system behavior.

8. Learning Checks

Attempt each question before opening its explanation. Use only the supplied fictional record for these exercises.

M14-L17-Q01

Supplied fictional notice C2: “On 12 June 2026 the temporary gallery is open 10:00–16:00. The archive reading room is closed that day.” An assistant cites C2 and claims the reading room is open until 16:00. Did retrieval succeed? Does the passage support the claim? Give the response justified by these givens.

Your diagnosis and response: ____________________

Show explanation after your attempt

Retrieval of C2 succeeded, but the passage does not support the reading-room opening claim. The stated hours apply to the temporary gallery, while the archive reading room is explicitly closed on 12 June 2026. State the reading-room closure and preserve facility/date scope. This identifies a source-interpretation failure; a citation’s existence does not establish support for every nearby claim.

M14-L17-P01

A supplied fictional timetable says route 7 operates 07:00–19:00 on weekdays, 10:00–14:00 on Saturday, and has no Sunday service. An answer cites it and offers to book a Sunday trip at 11:00 using weekday hours. Identify the failure, supported response and booking action behavior.

Your diagnosis and response: ____________________

Show explanation after your attempt

The answer applies the wrong day condition. The supplied timetable has no Sunday service, so weekday hours do not support the Sunday trip. Explain that limitation and hold this booking route. Any alternative requires applicable evidence and action permission. A real timetable citation and confident language cannot justify an action contradicting the cited conditions.

Sources

Learner Materials

Download Lesson 17 Learner Materials

Use the supplied fictional cases and templates for practice.

Practice

Write your answer, compare it with the model answer and decide what to revisit. These written checkpoints are self-assessed.

Supplied fictional notice C2: “On 12 June 2026 the temporary gallery is open 10:00–16:00. The archive reading room is closed that day.” An assistant cites C2 and claims the reading room is open until 16:00. Did retrieval succeed? Does the passage support the claim? Give the response justified by these givens. Your diagnosis and response: ____________________

Show The Model Answer

Retrieval of C2 succeeded, but the passage does not support the reading-room opening claim. The stated hours apply to the temporary gallery, while the archive reading room is explicitly closed on 12 June 2026. State the reading-room closure and preserve facility/date scope. This identifies a source-interpretation failure; a citation’s existence does not establish support for every nearby claim.

Compare your reasoning with the model answer. These written checks are self-assessed.

A supplied fictional timetable says route 7 operates 07:00–19:00 on weekdays, 10:00–14:00 on Saturday, and has no Sunday service. An answer cites it and offers to book a Sunday trip at 11:00 using weekday hours. Identify the failure, supported response and booking action behavior. Your diagnosis and response: ____________________

Show The Model Answer

The answer applies the wrong day condition. The supplied timetable has no Sunday service, so weekday hours do not support the Sunday trip. Explain that limitation and hold this booking route. Any alternative requires applicable evidence and action permission. A real timetable citation and confident language cannot justify an action contradicting the cited conditions.

Compare your reasoning with the model answer. These written checks are self-assessed.

Open Practice And Save Your Work