In my use case and tests, model itself is not capable of giving a reliable confidence value where logprobs almost always provide a better view on calibration.
In my use case and tests, model itself is not capable of giving a reliable confidence value where logprobs almost always provide a better view on calibration.
But of course that's not the way LLMs are normally used. And it precludes any sort of chain-of-thought reasoning.
For some questions, like those involving calculations, letting the model talk to itself produces much better results. For example compare https://chatgpt.com/share/67238eda-6b08-8011-8d2d-a945f78e6f... to https://chatgpt.com/share/67235a98-d2c8-8011-b2bf-53c0efabea...
Similar to exams where both the progress to the solution and the final outcome/value of the calculations are part of the grade.
To have the cake and eat it too for chain-of-thought reasoning, one way is to ask for a "final answer" so the final response token logprobs can be evaluated https://chatgpt.com/share/67239d92-b24c-800a-af8c-40da7be1f5...
Another trick is using JSON mode to keep intermediate results and final response separate, so each can be graded accordingly.
Alas, this won't work.
Imagine I ask an LLM to continue the sentence "Summing those up: 4+6.75+6.52=17.27 litres of pure alcohol. In summary, the total amount of pure alcohol they have is: "
The logprobs of the next token do not represent the LLM's confidence in its own answer. They represent the LLM's confidence in its ability to repeat the total from 18 words previously.
https://cleanlab.ai/blog/4o-claude/
These approaches can detect errors better than random guessing, but there are other approaches that are significantly more effective in practice.