Large language models sometimes produce confident output that is wrong, and the most effective response depends on where in the system the error originates and which kind of hallucination you are seeing. Technical surveys of the field group mitigation techniques by their point of intervention: curating pre-training data, fine-tuning and alignment, and inference-stage methods such as retrieval-augmented generation (RAG), prompt engineering, and post-hoc verification. The practical decision for a developer or product manager therefore reduces to two questions: is the model contradicting itself or contradicting external facts, and how much implementation complexity can the project absorb? This article lays out the diagnostic categories, explains the three most common mitigation approaches, and presents a decision framework that maps each strategy to its intervention stage, its primary target, and its relative cost.
Understanding LLM Hallucinations: Intrinsic vs. Extrinsic Errors
Before selecting a mitigation strategy, a team needs to correctly diagnose the failure mode, because the taxonomy of hallucinations maps onto different root causes. A widely used classification, described in Microsoft's Azure AI guidance on hallucination mitigation, distinguishes four categories. Intrinsic hallucinations are contradictory or self-conflicting answers—for instance, a model stating in one breath that a platform supports fine-tuning and, in the next, that it does not. Extrinsic hallucinations are outputs unsupported by the source documents, such as a RAG-backed chatbot citing facts that appear nowhere in its retrieved context.
Two further categories capture subtler failures. Contextual hallucinations add concepts that were never mentioned or implied—for example, a document summary that appends an editorial claim the source never made. Linguistic hallucinations are grammatically correct but incoherent sentences that read fluently while carrying no meaning. The distinction matters for mitigation because intrinsic errors tend to reflect the model's internal knowledge and coherence, whereas extrinsic errors often stem from the model's inability to access or correctly interpret external facts—a difference that points toward different remedies.
Survey literature on the causes of hallucinations identifies recurring contributors: data quality issues, model complexity, lack of grounding, and limitations inherent in the generative process itself. This causal picture explains why no single technique eliminates hallucinations; each intervention targets a different link in the chain from training data to generated answer.





