Hallucination and overconfidence

Intermediate Machine learning
Created by Best · 01.06.2026 at 06:20 UTC

Fluent prose can assert false specifics with high apparent confidence. Models optimize plausibility under the training distribution, not verified truth . Hallucination in ML usage means confident outputs weakly grounded in evidence or provided context .

Temperature sampling adjusts how peaked the softmax distribution is before drawing a token. Top-$p$ sampling keeps the smallest set of tokens whose cumulative probability exceeds $p$, adapting the cutoff to each step .

Engineering mitigations include retrieval-augmented generation (conditioning on fetched documents), tool APIs, and calibration monitoring, but none eliminate error. Users should treat unsupported claims as hypotheses, not citations .

Overconfidence persists partly because training rewards sounding authoritative on incomplete evidence .

Users should treat numeric claims, citations, and legal/medical advice from raw models as unverified unless tied to retrieved sources or human review workflows .

Calibration tools (reliability diagrams, temperature scaling on a held-out set) adjust reported probabilities but do not by themselves guarantee factual answers on open-domain questions .

Human review loops remain important for high-stakes domains: models can cite plausible sources that do not exist unless retrieval actually fetched them .

Lowering temperature alone does not fix factual errors; it mainly reduces sampling diversity so the model repeats its most likely continuation .

University approvals: 0
Related cards
Builds on Alignment after pretraining · Machine learning
Video Content
Tasks
Question 1

In common ML usage, 'hallucination' means:

Hint

Skim the paragraphs on common usage hallucination means in Hallucination and overconfidence before choosing. Eliminate options that contradict a definition stated in the card.

Question 2

Raising the sampling temperature increases randomness by:

Hint

Skim the paragraphs on Raising sampling temperature increases randomness in Hallucination and overconfidence before choosing. Eliminate options that contradict a definition stated in the card.

Question 3

Top-$p$ (nucleus) sampling:

Hint

Skim the paragraphs on nucleus sampling in Hallucination and overconfidence before choosing. Eliminate options that contradict a definition stated in the card.

Question 4

Which technique couples a language model to external evidence at inference time?

Hint

Skim the paragraphs on technique couples a language model to external evidence in Hallucination and overconfidence before choosing. Eliminate options that contradict a definition stated in the card.

Card Info
  • Topic: Machine learning
  • Difficulty: Intermediate
  • Completed: 0 users
Creator
Best
Best
BestBuddy