Ever wondered why AI chatbots always give a definite answer, even when they're completely clueless? The culprit is a mathematical function called Softmax.
When an AI generates text, it scores thousands of possible next words. Softmax then converts those scores into probabilities that sum to exactly 100%. Because the total must equal 100% and one option will always have the highest probability, the AI always commits to an answer—even when it has no idea. There's no mathematical slot for "I don't know."
This forced certainty is the architectural root of AI hallucination. The AI isn't lying; it's mathematically compelled to pick something. Softmax ensures that something always wins.