Hacker News new | ask | show | jobs
by mediaman 19 days ago
LLM token probabilities are really poorly calibrated for decision making.

Every time I see someone saying something like "isn't this just structured output?", it's because they don't understand that probability calibration is one of the most important parts of the product, especially to understand uncertainty.

I think Jev did a pretty good job on calibration. I wonder how the fast-follow competition from OpenAI and Gemini do.

2 comments

Yeah, a few years back I briefly worked on the outlines library that did alternate sampling/constrained outputs (classes, json, grammars etc).

It was pretty obvious that calibration was a major problem.

You might ask a question, and say your classes/target tokens are “high”/“medium”/“low”. Well maybe the model really want to say “The” first, and none of your classes might be in the top 1000 tokens for all you know. The models were really not trained to produce one word answer but sentences.

It was still useful for tool calling as back then parameter/API hallucinations were common. But the actual results were sub-par.

Right, that's always been true for LLMs + constrained generation. It ensures syntactic correctness, but semantics are "best effort".