Why Large Language Models Hallucinate: Causes and Practical Mitigation Strategies
This article explains why large language models confidently generate false information, using the etymology of the word "hypotenuse" as a case study. It breaks down the technical roots of hallucination—sparse long-tail training data, probabilistic token generation, cross-language semantic drift, and invisible knowledge boundaries—and presents actionable mitigation strategies including Retrieval-Augmented Generation (RAG), explicit refusal prompts, verifiable reasoning, bilingual terminology tables, and production monitoring. A practical checklist for developers building high-stakes AI applications is included.
1. A Simple Question That Stumps the Model
“Why is the side opposite the right angle in a right triangle called the hypotenuse?”
The question sounds elementary, yet it is surprisingly hard to answer. Most people only store a conclusion: the two sides adjacent to the right angle are the legs, and the side opposite it is the hypotenuse. The conclusion is easy to memorize; the reasoning behind the name is often missing. When the person asking is a grade-school student, “the textbook just says so” is not a real answer.
The natural path is to trace the concept back to its source. In English, the side opposite the right angle is called the hypotenuse, which breaks down into hypo- (under) and -ten- (to stretch or extend), roughly meaning “the side stretched out underneath.” The original Ancient Greek term similarly carries the sense of “base” or “chord.” Historical sources on mathematics add that the name is tied to the geometry of a right triangle inscribed in a circle: when the right angle is inscribed, the opposite side is exactly the circle’s diameter, appearing as a chord held taut by the diameter beneath it.
This line of investigation is itself a perfect sample for understanding LLM hallucination: it is a long-chain, low-corpus-density problem that requires cross-language and cross-disciplinary reasoning. It is precisely on this kind of problem that large language models are most likely to produce fluent but unreliable answers.
2. The Technical Roots of Hallucination: Why Models Make Things Up
2.1 The Long-Tail Sparsity Effect in Training Data
A model’s parametric knowledge comes from the statistical distribution of its training corpus. High-frequency concepts (such as the Pythagorean theorem) are stated repeatedly, so the model masters them firmly. In contrast, etymologies and naming rationales like “why the hypotenuse is called the hypotenuse” appear very rarely in public text and are scattered across mathematics history, linguistics, and Ancient Greek literature. The sparser the data, the more the model tends to stitch together statistically “plausible-looking” fragments. This is the fundamental reason fabrication probability rises as source material thins out.
2.2 Generation Is Probabilistic Continuation, Not Fact Retrieval
The objective of an autoregressive model is to predict the next token, optimizing for fluency and likelihood rather than factual correctness. When knowledge is insufficient, the model does not stay silent; it emits high-likelihood text that lacks grounding. Common manifestations include fabricated citations, invented theorems, and conflating similar concepts.
2.3 Semantic Drift from Cross-Language Term Transfer
Technical terms often lose their rationale in translation. Hypotenuse becomes “the slanted side,” dropping the original imagery of “stretching” and “chord.” Conversely, when transferring between English and Chinese corpora, the model easily conflates etymology with geometric definition, producing circular reasoning such as “it is called the slanted side because it is slanted.”
2.4 Invisible Knowledge Boundaries
The model cannot reliably distinguish “I know this” from “I am guessing,” and its expressed confidence is disconnected from actual accuracy. This makes it hard for downstream applications to trigger human review at critical points.
3. Actionable Mitigation Strategies
3.1 Retrieval-Augmented Generation (RAG)
Chunk authoritative material (textbooks, terminology dictionaries, mathematics-history references) into a searchable store, retrieve before generating, and require answers to include clickable source excerpts.
def grounded_answer(query, retriever, llm):docs = retriever.search(query, top_k=5)context = "\n".join(f"[{i}] {d.text}" for i, d in enumerate(docs))prompt = f"""Answer only based on the material below. If the material is insufficient, state "insufficient material" explicitly.Material:{context}Question: {query}"""return llm(prompt)
3.2 Prompt Constraints and Explicit Refusal
In the system prompt, enforce “refuse when there is no grounding,” and require the model to separate three kinds of statements: definitions, etymology, and personal speculation. For educational scenarios, you can require the model to first give a verifiable geometric argument, then the naming explanation.
3.3 Replace Memory with Verifiable Reasoning
Convert the naming question into a verifiable geometric proposition: by Thales’s theorem, an inscribed angle subtending a diameter is a right angle; therefore the side opposite the right angle must be the diameter, located at the bottom of the figure and stretched like a chord. Such a reasoning chain can be checked by code or symbolic computation, substantially reducing hallucination.
# Pseudocode: verify the conclusion with geometric constraintsassert is_right_angle(A, B, C) and is_diameter(A, C)# Conclusion: side opposite the right angle = diameter = chord of the circle
3.4 A Bilingual Etymology Reference Table
Maintain a bilingual (Chinese-English) etymology reference for domain terms, injecting structured knowledge such as “hypotenuse—hypo- (under) + ten- (stretch)” to prevent the model from drifting during translation.
3.5 Production Monitoring and Gradual Rollout
At the application layer, connect logging and alerting, sample patterns like “missing citation” and “answering despite insufficient material” for human evaluation, and build a hallucination-rate metric with continuous regression testing. For enterprise deployment, you can pair object storage for source documents with a container platform hosting the retrieval service, decoupling knowledge updates from the model.
4. A Practical Checklist for Developers
- Enable retrieval and refusal by default in high-stakes scenarios (medical, legal, educational);
- Answers must be traceable; no conclusion without a source;
- Design “I don’t know” as a first-class output, not an exception;
- Build a domain terminology and etymology knowledge base, updated regularly;
- Replace trust in model memory with executable checks (unit tests, symbolic computation).
Back to the original question: the “slant” in hypotenuse does not describe a tilt; it carries the ancient geometric image of “a chord stretched out underneath.” Understanding this is more valuable than memorizing the definition. And for developers building AI applications, understanding why models fabricate matters more than chasing fluent answers.
