A developer notices that an LLM sometimes provides plausible-sounding but factually incorrect information. This phenomenon is best described as:
Hallucination describes an LLM generating fluent, plausible-sounding output that is factually incorrect or unsupported by its training data. This matches the developer's observation exactly, distinguishing it from other failure modes such as bias or prompt leakage, and satisfies the stem's requirement for the correct descriptive term.
Why this answer
Hallucination in LLMs refers to the generation of outputs that are coherent and plausible-sounding but factually incorrect or nonsensical. This occurs due to the model's probabilistic nature and lack of true understanding, often producing confident-sounding falsehoods when it lacks sufficient training data or context.
Exam trap
CompTIA often tests the distinction between model behavior flaws (hallucination) and security-specific attacks (prompt injection, adversarial examples), so candidates may confuse a general output error with a deliberate exploitation technique.
How to eliminate wrong answers
Option A is wrong because model inversion is a privacy attack where an adversary reconstructs training data from a model's outputs, not a phenomenon of generating incorrect information. Option B is wrong because an adversarial example is a specially crafted input designed to cause a model to misclassify or produce a specific erroneous output, not the model's inherent tendency to produce falsehoods. Option C is wrong because prompt injection is a security exploit where an attacker manipulates a model's behavior by injecting malicious instructions into the input, not a general property of the model generating incorrect facts.