Live data from Hacker News

Don't ask an LLM for a confidence score

justinflick.com

21–30 of 46 posts

Re: Don't ask an LLM for a confidence score

#21
That's what I thought was interesting about the Watson Jeopardy Challenge. Watson had a sense of its confidence, and it seemed to be accurate. The answers it got wrong were the ones it knew it had difficulty understanding.

3 videos at https://archive.org/details/Jeopardy_2011-02-14_The_IBM_Chal...

Re: Don't ask an LLM for a confidence score

#23

You don’t ask an LLM, but certain LLMs expose internal metrics you can tell how many token candidates where there what was the score which one and which one was selected. So there are objective ways to control hallucinations as well as figuring out how “correct” the answer is to some extent.

But those scores are only the likelihood of the given token being the next one in a plausible phrase, not that the underlying data is correct.

Re: Don't ask an LLM for a confidence score

#24
The statement near the top of the post > "The short version: asking an LLM to generate a score for how confident it is in its own response is, from everything I can tell, completely useless."

is definitely too strong of a claim and directly undercut by what is said near the end of the post: > "Tian et al. found in Just Ask for Calibration that with the right prompting strategy, RLHF’d models verbalize probabilities that are better calibrated than the model’s own conditional probabilities, and that prompting plus temperature scaling can cut expected calibration error by more than half. And Anthropic’s Language Models (Mostly) Know What They Know found encouraging results asking models to estimate the probability that their own proposed answer is true."

My own experience is that stated confidence is a helpful tool and of course you need a rubric and a proper prompt, but this is clearly less work than training a classifier (as advocated by the post) and requires less data.

Re: Don't ask an LLM for a confidence score

#26

The statement near the top of the post > "The short version: asking an LLM to generate a score for how confident it is in its own response is, from everything I can tell, completely useless." is definitely too strong of a claim and directly undercut by what is said near the end of the post: > "Tian et al. found in Just Ask for Calibration that with the right prompting strategy, RLHF’d models verbalize probabilities t…

Fully agree. I found for most of my work with LLMs and Finance, ~90% of the time a high or low confidence score was accurate. There's the occasional ambiguous case, and that'll happen, but the engineering work that comes with building a classifier makes it not practical for my usecases.

Re: Don't ask an LLM for a confidence score

#27
I was designing a system that pulls structured data out of an unstructured transcript, and Opus initially suggested a confidence score for each value. When I asked it “do you think the model will generate a meaningful number there?” the answer was basically “ha, you caught me.”

What did work was asking the model to emit citations in the form of line numbers from the transcript. It dramatically dropped hallucination.

Re: Don't ask an LLM for a confidence score

#28

I was designing a system that pulls structured data out of an unstructured transcript, and Opus initially suggested a confidence score for each value. When I asked it “do you think the model will generate a meaningful number there?” the answer was basically “ha, you caught me.” What did work was asking the model to emit citations in the form of line numbers from the transcript. It dramatically dropped hallucination.

> I asked it “do you think the model will generate a meaningful number there?”

This also isn't likely to give you good results, models don't have a good sense of their own capabilities.

This is also in the same camp of asking a model why it did something. It'll generate something plausible and likely totally incorrect.

Re: Don't ask an LLM for a confidence score

#29

The statement near the top of the post > "The short version: asking an LLM to generate a score for how confident it is in its own response is, from everything I can tell, completely useless." is definitely too strong of a claim and directly undercut by what is said near the end of the post: > "Tian et al. found in Just Ask for Calibration that with the right prompting strategy, RLHF’d models verbalize probabilities t…

[dead]

Re: Don't ask an LLM for a confidence score

#30
post #28

I was designing a system that pulls structured data out of an unstructured transcript, and Opus initially suggested a confidence score for each value. When I asked it “do you think the model will generate a meaningful number there?” the answer was basically “ha, you caught me.” What did work was asking the model to emit citations in the form of line numbers from the transcript. It dramatically dropped hallucination.

> I asked it “do you think the model will generate a meaningful number there?” This also isn't likely to give you good results, models don't have a good sense of their own capabilities. This is also in the same camp of asking a model why it did something. It'll generate something plausible and likely totally incorrect.

> models don't have a good sense of their own capabilities.

It actually had some memorized knowledge about LLMs being bad at confidence intervals, then it did a cursory web search. But it didn't need to do any of that; I already knew they would be bad numbers.

Post reply on HN