Sub topic 8
Where fabrication is most likely
This chapter assumes you have used a chat assistant and can read short Python. It also assumes you know the basic idea from earlier chapters: a model predicts one likely token at a time, and nothing in that process checks facts. Here you will learn which kinds of content fail most often and why. That lets you spend your checking effort where it pays off.
Why content type matters
Models are not equally reliable on every sentence. Two properties of a claim largely decide the risk.
- Redundancy in training data. A fact stated thousands of times, such as the boiling point of water or the capital of France, leaves a strong statistical pattern. A fact stated once or never leaves a weak one.
- Exactness required. Some answers tolerate paraphrase. Others must be character-perfect: a DOI, a function name, a page number, a case citation. A near miss in these is simply wrong.
Fabrication peaks where redundancy is low and exactness is high. The model still writes fluent text in that situation. Fluent but wrong text is the failure.
Citations and references
Citations are the classic case. A reference has a predictable shape: authors, year, title, venue, pages, DOI. The model learns that shape very well. It does not store a reliable index of which papers exist.
When asked for sources, the model often assembles a reference from plausible parts:
- A real author who works in the field, paired with a title they never wrote.
- A real journal, with a volume and page range that point to an unrelated article.
- A realistic title that matches no publication at all.
- A DOI with the correct prefix for the publisher and an invented suffix.
Partly correct references are the dangerous ones. If the author and journal are real, a quick glance gives you false confidence. Check the whole record: title, year, venue and identifier must all resolve to the same document.
Legal citations (case names, reporters, page numbers) follow the same pattern and have caused real problems when fabricated cases reached court filings.
Numbers and statistics
Numbers are tokens like any others. The model has no calculator or database behind them unless you connect one. Three sub-cases are common.
- Precise statistics with no source. "73.4% of users improved" reads like a measurement. If you did not supply the data, the figure is a pattern-completion guess.
- Arithmetic and counting. Multi-step arithmetic, counting letters or items, and unit conversions fail more often than their difficulty suggests, because the model writes digits left to right without carrying out the computation.
- Dates and quantities for lesser-known events. The year of a famous battle is probably fine. The year a mid-size company was founded is much shakier.
Round, approximate claims ("about a third") are usually safer than precise ones. When an answer gives more precision than the topic could plausibly support, treat that precision as a warning sign. Later chapters return to this under red flags.
Obscure entities and long-tail facts
Knowledge gaps cluster around the "long tail": small companies, local people, minor software libraries, regional history, niche academic subfields. The model recognizes the genre of a question ("tell me about Dr. X's research") and writes in that genre even when it has nothing underneath.
Typical failures:
- A biography for a private or semi-public person that mixes in details from similar people.
- A confident description of a small open-source library, including functions it does not have.
- A merged entity: two companies or two people with similar names blended into one.
- A plausible answer about something that does not exist at all, such as a nonexistent product or a book that was never published.
The last case is the sharpest test. If a question names an entity, ask yourself whether the model has any way to refuse. Most models will describe the entity rather than say it is unknown, unless prompted otherwise.
Quotations, URLs and identifiers
Anything that must be copied exactly is high risk when it is not in the prompt.
| Content | Typical failure | Quick check |
|---|---|---|
| Direct quotation | Real speaker, paraphrased or invented wording | Search the exact phrase in the source text |
| URL | Well-formed address that returns 404 or a different page | Open it |
| DOI, ISBN, patent or case number | Valid format, wrong or nonexistent record | Look it up in the registry |
| API or function name | Plausible name from a different library or version | Read the official docs |
| Command-line flag | Flag exists in a similar tool, not this one | Run `--help` |
| Page or section number | Plausible number, wrong location | Open the document |
Code deserves its own note. Model-written code often compiles and still calls a function that does not exist in your installed version. This is a hallucination that the interpreter will catch for you, which makes it cheaper to detect than a fake citation. Run it.
Recent events and fast-changing facts
A model's knowledge stops at its training cutoff, and the most recent months are covered thinly. Questions about current prices, the latest software release, recent legislation, sports results or "who is the current CEO" get stale or invented answers. Unless the system has a search or retrieval tool, the model cannot tell you what has changed since training. It may also not realize how much time has passed.
Summaries and transformations of material you did not supply
Fabrication is not limited to recall. If you ask for a summary of an article but only provide its title or URL, the model writes the summary it expects such an article to contain. Even with the full text in the prompt, long documents invite two errors: details that appear nowhere in the source, and claims attributed to the wrong section. Source-based tasks are safer than recall, but not safe by default. Grounding is covered in a later chapter.
A small risk scanner
You can automate the first step of triage: finding the spans in an answer that fit high-risk shapes. This does not tell you whether they are true. It tells you what to verify.
import re
PATTERNS = {
"citation": r"\([A-Z][A-Za-z\-]+(?: et al\.)?,?\s*\d{4}\)",
"doi": r"\b10\.\d{4,9}/[^\s,;]+",
"url": r"https?://\S+",
"percentage": r"\b\d+(?:\.\d+)?%",
"year": r"\b(?:1[5-9]|20)\d{2}\b",
"quotation": r'"[^"]{10,}"',
}
def claims_to_check(text):
found = {}
for label, pattern in PATTERNS.items():
matches = re.findall(pattern, text)
if matches:
found[label] = matches
return found
answer = (
'A study (Okafor et al., 2019) found that 73.4% of users improved. '
'See https://example.org/study and doi 10.1234/abcd.5678 for details. '
'The authors wrote "Sleep quality improved in every group" in their summary.'
)
for label, items in claims_to_check(answer).items():
print(label, items)The scanner finds a citation, a DOI, a URL, a percentage, a year and a quotation. Every one of them is a candidate for lookup. It will miss risky claims that have no special shape, such as an invented biography. It will also flag items that are correct. Treat it as a checklist generator.
Edge cases
- Famous things get a pass they do not always deserve. A quote attributed to Einstein or Churchill often comes from neither. Popular misattributions are common in the training text, so the model repeats them.
- Mixed answers. One paragraph can contain three correct facts and one fabricated one. Correct surroundings make the false item harder to spot.
- Consistency is not evidence. If you ask the same question again and the model repeats the same invented reference, it was not confirmed. Repeated wording can reflect a strong but wrong pattern.
- Translation and domain shifts. Facts about a topic that is mostly documented in another language, or in specialist jargon, are thinner in the model than their importance suggests.
- Formatting raises trust. Tables, bullet lists and footnote markers make an answer look researched. They add no verification.
Matching checking effort to risk
A practical rule: check in proportion to how rare the claim is, how exact it must be, and what happens if it is wrong. A casual brainstorm needs little checking. A citation going into a report, a dosage, a legal reference or a figure in a financial decision needs a lookup in a primary source every time. The later chapters on verification and the limits of detection build this into a routine.
Exercise
An assistant answers a question about a small regional bakery chain. The answer says the chain was founded in 1987 by "Maria Delgado", operates 14 stores, and cites "Hartwell, 2016, Journal of Food Retail, pp. 212-229". Which parts carry the highest fabrication risk, and what is the first check for each?
Show answer
All four details are high risk because the entity is obscure (low redundancy) and each detail demands exactness. The founding year, founder name and store count should be checked against the company's own website or a business registry. The citation is the riskiest item: search for the journal and look up the article by title and author in the journal's archive or a registry such as Crossref, and confirm that the volume, pages and year all point to the same article. Precise numbers and a formal-looking reference do not make the answer more trustworthy. For an obscure entity they are more reason to check.
Exercise
You ask a model to explain a function from a small Python library and it describes a method called fetch_all(retries=3). The code you write using it raises an AttributeError. Why is this fabrication easy to detect, and what should you do before trusting the rest of the explanation?
Show answer
The interpreter checks the name for you, so running the code exposes the invented method immediately. Before trusting the rest, compare the other function names, parameters and behavior in the explanation against the library's official documentation or source code. One invented method suggests the model was pattern-matching from similar libraries, so other details may be wrong in the same way.