
Inside an LLM, every concept sits somewhere in the semantic latent space—a 3D cloud where ideas cluster into neighbourhoods. Some neighbourhoods feel rich and well-mapped because the model saw plenty of examples during training. Others feel thin, with only a few scattered traces. When you give a prompt, you focus the model on one of these neighbourhoods. If the region holds lots of structure, the model stays grounded. If the region feels sparse, the model begins to drift.
This drift gives rise to what we call hallucination. The model doesn’t choose to invent; it simply continues predicting the next likely token based on whatever sits nearby in the space. When the nearby material lacks clarity, the model leans on weak associations. Because the model cannot opt out of prediction, it fills gaps with fluent guesses. In that sense, models operate as hallucination engines: they generate plausible continuations whether or not the underlying region contains solid ground.
We tend to approve of these hallucinations when they match reality or align with the meaning we intend. A creative description, an elegant summary, or a precise explanation all count as hallucinations that happened to land in a well-structured part of the space. We dislike hallucinations when the model drifts into poorly mapped territory and builds an answer from fragments that do not hold together.
The geometry dictates everything. Dense regions produce stable, accurate answers. Sparse regions produce confident nonsense. Clear prompts help by steering the model into areas with stronger structure, but the underlying landscape still shapes the outcome.
Hallucination reflects the terrain, not intent. It tells us where the model has strong understanding and where its map thins out.