It can't, because top n isn't always reliable.

Hallucination detection is an open problem. If it were that simple, people would indeed "just" do it.

Basically the problem is that LLMs aren't trained on things they don't know; an alternative way of saying this is that they're not trained on things they're not trained on, which is obviously true.

When you RL a model and it answers incorrectly, you don't teach it to answer "I don't know", you teach it to answer correctly instead. This makes it very hard for it to realize when it doesn't know things.

[dead]