This question is broader than it sounds and I kind of learned that the hard way.
Structure your answer around the four areas the question specifies: training objectives, model-level limitations, inference-time factors, and mitigation techniques. For each, explain the root cause and connect it to practical implications, using concrete examples where possible. Conclude by discussing trade-offs of different mitigation strategies and how you would choose among them in a production system.
Pro tip: Emphasize that hallucination is not a single bug but an emergent property of probabilistic training and generation; show maturity by discussing how to measure and monitor hallucination rates in production, and how to set acceptable thresholds based on business risk.
Explain that LLMs are trained to maximize likelihood of the next token, not to be truthful. This objective rewards plausible continuations, even if factually incorrect, because the model learns statistical patterns rather than a grounded world model.
Discuss how the model's knowledge is frozen at training time, lacks real-time verification, and may have gaps or biases in its training data. Also mention that the softmax output is a probability distribution over tokens, not a confidence measure of factual accuracy.
Cover how decoding strategies (e.g., temperature, top-k, top-p) affect hallucination: higher randomness increases creativity but also fabrication. Also note that the model has no inherent mechanism to say 'I don't know' and may overgeneralize from limited context.
List practical techniques: retrieval-augmented generation (RAG) to ground responses, fine-tuning on domain-specific data, prompt engineering (e.g., chain-of-thought, self-consistency), and post-hoc verification (e.g., fact-checking APIs, ensemble methods).
Discuss trade-offs: RAG adds latency and complexity, fine-tuning requires labeled data, and verification may not scale. Emphasize the need to measure hallucination rates, set thresholds, and choose techniques based on use case and risk tolerance.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.