by NitpickLawyer · 2w ago · 0 comments
You can do it manually or use ready made libs. I know there's one in python on top of vllm that can do something like this.
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.
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.
Once a model goes through instruction fine tuning and RLVR/RLHF the log probs decorrelate from what's ground truth (given the propensity of the data seen during training)