Sub topic 8
Where fabrication is most likely
This chapter assumes you have used a chat-based LLM assistant and can read short Python. It also assumes you know that a model writes by predicting likely next tokens, and that fluent text is not necessarily true text.
The working model
A model fabricates most readily when two conditions hold. The answer has a rigid, predictable shape, and the model has little or no stored knowledge to fill that shape. The shape pulls the model toward text that looks right. Nothing in the process checks that the text is right.
Take a citation. It has authors, a year, a title, a journal and a page range. If the model has not memorized a specific paper, it can still produce all five parts in the correct style. The result reads like a real reference.
High-risk content types
| Content type | Why it is risky | Typical failure |
|---|---|---|
| Citations and references | Strong format, weak memory of individual papers | Real-sounding authors and titles that do not exist |
| Quotations | The model reproduces the gist, not the exact words | Paraphrase presented as a verbatim quote |
| Numbers and dates | Many plausible values look alike | Statistics, prices or years that are close but wrong |
| Obscure entities | Few training examples | Invented biography or details for a small company or minor figure |
| URLs and identifiers | Patterns are easy to imitate | Links, DOIs and case numbers that do not resolve |
| Code APIs | Names follow conventions | Functions or parameters that do not exist in the library |
| Recent events | Training data ends at a cutoff | Confident answers about things the model never saw |
Several of these overlap. A request for "three studies with exact sample sizes" combines citations and numbers, so the risk compounds.
Checking a quotation
Quotations are one of the easiest items to test mechanically, if you have the source text. This function checks whether a quote appears in a document, ignoring case and spacing.
def quote_supported(quote, source_text):
def norm(s):
return " ".join(s.lower().split())
return norm(quote) in norm(source_text)
source = "The report was published in March and covers 2021 data."
print(quote_supported("covers 2021 data", source))
print(quote_supported("covers 2023 data", source))The first call prints True and the second prints False. The test is strict. A quote with one changed word fails, which is what you want from a verbatim check.
Common errors when judging risk
- Trusting a detailed answer. Detail is not evidence. A model can produce precise-looking page numbers for a paper that does not exist.
- Assuming famous means safe. Well-known topics are lower risk, but specifics about them (an exact figure, a minor date) can still be wrong.
- Treating a real author as a real paper. The model often pairs a genuine researcher with an invented title.
- Ignoring the cutoff. Questions about the latest version of a library or a recent ruling fall outside what the model learned.
A practical habit
Sort claims into two groups. General explanations, such as how a sorting algorithm works, are usually safe to read quickly. Specific, checkable items are where you spend effort. Later chapters cover how to verify them. Here the goal is only to know where to look.
Exercise
A model answers: "Smith and Lee (2019), 'Adaptive Caching in Distributed Systems', Journal of Systems Research, 41(3), pp. 211-229, found a 37.4% latency reduction." List the claims in this sentence that you would verify first, and explain why each is high risk.
Show answer
Verify the citation itself (authors, year, title, journal, volume and pages), because a rigid format makes invented references look real. Verify the 37.4% figure, because a precise number is a high-risk type and false precision is easy to produce. Also check that the paper actually reports that number, since a real paper can be paired with a wrong statistic. If you cannot find the paper in a library or publisher database, treat the whole sentence as unsupported.
Exercise
Why is "What does the Python function str.reverse() do?" a riskier question than "Explain what a hash table is"?
Show answer
str.reverse() asks about a specific API name, and Python strings have no such method. A model may invent behavior to match the naming pattern. The hash table question is a general concept with abundant training coverage and no rigid detail that must be exactly right.