Skip to main content

Chapter 3: Limitations and Hallucinations

What LLMs Cannot Do​

Understanding LLM limitations is as important as knowing their capabilities. Let's explore where LLMs fall short and why.


The Hallucination Problem​

Definition

Hallucination is when an LLM generates information that sounds confident and plausible but is factually incorrect or completely made up.

Why It Happens​

Remember: LLMs predict likely text, not verified facts.

What LLMs DoWhat This Causes
Predict probable wordsPlausible-sounding output
Learn from internet dataMay learn false information
Generate creative contentCan invent "facts"
Complete patternsMay fill gaps with fiction

Examples of Hallucinations​

Made-up citations:

"According to Smith et al. (2019) in the Journal of AI Research..." (The paper doesn't exist)

False facts:

"The Golden Gate Bridge, completed in 1932, is the longest suspension bridge in the world." (Wrong date, wrong claim)

Invented expertise:

"As a licensed medical professional, I recommend..." (LLMs aren't licensed anything)


Knowledge Cutoff​

What It Means​

LLMs only know what was in their training data. Information after the cutoff date is unknown.

Current Cutoffs (Approximate)​

ModelKnowledge Cutoff
GPT-4 (original)September 2021
GPT-4 TurboApril 2024
Claude 3Early 2024
GeminiVaries

Implications​

  • Won't know about recent events
  • Outdated information about fast-changing topics
  • May give obsolete advice (technology, regulations)

Reasoning Limitations​

LLMs Struggle With:​

Complex math:

"What is 847 × 593?" → Often wrong without tools

Multi-step logic:

Complex puzzles with many interdependencies

Consistent world modeling:

Tracking positions in a spatial reasoning task

True planning:

Long-term strategy with many variables

Why?​

LLMs work word-by-word. They don't have working memory or a "scratchpad" for complex calculations (unless prompted to use one).


What LLMs Don't Have​

❌ Real Understanding​

LLMs process patterns, not meanings. They don't "understand" that fire is hot or that falling hurts.

❌ Common Sense Reasoning​

Sometimes fails on obvious things:

"Can a 3-year-old run a marathon?" LLM might discuss marathon training instead of saying "no."

❌ True Creativity​

LLMs recombine patterns—they don't have genuine novel insights or experiences to draw from.

❌ Persistent Memory​

Each conversation starts fresh (unless explicitly stored).

❌ Self-Awareness​

LLMs don't know they're AI, don't have preferences, and can't reflect on their own processes.


The Confidence Problem​

LLMs Sound Confident Even When Wrong​

This is a major danger:

Correct AnswerIncorrect Answer
"Paris is the capital of France.""The capital of Australia is Sydney."
Same confidenceSame confidence

LLMs don't signal uncertainty well. A 100% wrong answer often sounds just as confident as a correct one.

Why This Matters​

  • Users may trust incorrect information
  • Hard to distinguish reliable from unreliable outputs
  • Professional contexts become risky

When NOT to Trust LLMs​

High-Risk Situations​

DomainRisk
Medical adviceCould harm health
Legal adviceCould lead to legal problems
Financial decisionsCould lose money
Safety-critical systemsCould cause physical harm
Academic factsCould spread misinformation

Rule of Thumb​

If the cost of being wrong is high, verify independently.


The "Stochastic Parrot" Critique​

Concept

Some researchers call LLMs "stochastic parrots"—they repeat patterns from training data with statistical variation, without true understanding.

The Debate​

Proponents say: LLMs don't really understand; they just pattern match.

Critics of this view say: Maybe understanding is pattern matching at sufficient scale?

Practical implication: Regardless of the philosophy, treat outputs skeptically.


Mitigation Strategies​

For Users​

  1. Verify important information with trusted sources
  2. Ask for sources (but verify them—they may be hallucinated!)
  3. Use specific prompts to reduce ambiguity
  4. Cross-check with multiple queries or models
  5. Be skeptical of confident-sounding claims

For Developers​

  1. Add disclaimers to AI outputs
  2. Use RAG (Retrieval-Augmented Generation) for factual tasks
  3. Implement human review for critical outputs
  4. Limit scope to reduce error surface
  5. Monitor for hallucinations in production

Retrieval-Augmented Generation (RAG)​

What Is RAG?

RAG connects LLMs to verified knowledge bases, reducing hallucination by grounding responses in real documents.

How It Works​

This doesn't eliminate hallucination, but significantly reduces it for covered topics.


Current Improvements​

Tools and Agents​

LLMs connected to calculators, search engines, code interpreters.

Fact-Checking Layers​

AI systems that verify LLM outputs.

Better Training​

Constitutional AI, RLHF for truthfulness.

Confidence Calibration​

Research into making LLMs express appropriate uncertainty.


Key Takeaways​

✅ Hallucination is when LLMs generate plausible but false information

✅ Knowledge cutoffs mean LLMs don't know recent events

✅ LLMs struggle with complex math, logic, and planning

✅ Confidence doesn't indicate accuracy

✅ High-stakes decisions should never rely solely on LLM output

✅ RAG and verification help but don't eliminate problems


Think About It​

  1. Why might hallucinations be dangerous in a customer support context?
  2. How would you explain to a non-technical colleague why they shouldn't blindly trust ChatGPT?
  3. What safeguards would you want if an LLM was helping with medical information?

Next Steps​

Test your understanding of practical LLM use in Module 3 Quiz, then explore the LLM ecosystem in Module 4.