LearnQuestion bank

Define hallucination in language models, propose a way to measure it, and outline approaches for reducing it.

ResearchTechnicalMedium

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • Hallucination is fluent, confident output that is false or unsupported; intrinsic means inconsistent with the provided context, extrinsic means inconsistent with external truth.
  • Measure by decomposing answers into atomic claims and verifying each against a trusted source or known answer; report unsupported or false claims per total claims, with closed-book QA and citation checks as complementary signals.
  • Track calibration and abstention: confidence should track accuracy, and the model should say it does not know when evidence is missing.
  • Reduce it with retrieval grounding, training to abstain or cite, honesty or calibration rewards, and decoding choices such as lower temperature, constrained or verified generation, and self-consistency.
  • Balance against helpfulness: more refusal and conservative decoding lower hallucination but reduce coverage and usefulness, so thresholds should be task-specific.

In full

Hallucination is when a language model produces fluent, confident text that is false or unsupported; intrinsically it can contradict the context it was given, while extrinsically it can contradict external knowledge or sources. A practical measure is claim-level verification: sample prompts, split answers into atomic claims, check each against a trusted reference or known answer, and report the fraction of unsupported or false claims, with closed-book QA and citation checks as complementary signals. I would also track calibration and abstention, because a model that is confident when wrong is worse than one that says it does not know. Mitigations include retrieval grounding, training to abstain or cite, honesty and calibration rewards, and decoding choices such as lower temperature, constrained or verified generation, and self-consistency. The trade-off is that stronger abstention and conservative decoding reduce hallucination but can reduce helpfulness and coverage, so the operating point should be set by the task and risk.

Checked against sources by an independent AI reviewer.

What a strong answer covers

  • Fluent but unsupported or false claims; intrinsic vs extrinsic.
  • Measurement: closed-book QA with known answers, citation checks, claim decomposition plus verification.
  • Calibration and abstention.
  • Mitigations: retrieval grounding, training to abstain, honesty rewards, decoding choices.
  • The trade-off with helpfulness.

Common mistakes

  • No measurable definition.
  • Assuming retrieval eliminates hallucination.