Skip to content
Technology, explained from the insideAI · Software · Digital payments
TayoTechTalk.

How AI Works

AI Logprobs: Does a Likely Word Mean a Correct Answer?

By Temitayo Solomon Gbadebo · December 2, 2026
A magnifier over probability bars beside a separate page with a question mark.

An AI assistant reads a customer message and picks the label “refund.” The probability for the label token is 95%. Does that mean the refund is 95% likely to be eligible? No. It tells you how likely the model was to produce that token from what it had read so far. The eligibility decision still needs the order record and the refund policy.

What a logprob tells you

A language model generates text in tokens, which can be words, pieces of words or punctuation. When the interface provides a token’s log probability, or logprob, it is reporting that probability on a logarithmic scale. With natural logs, a value of about −0.69 corresponds to about 50% probability, and −2.30 to about 10%. A value closer to zero means a more likely token under the reported distribution. See the OpenAI Cookbook’s logprobs examples for how an API can expose probabilities for the token chosen and some alternatives.

The distinction matters for longer answers. After the model has started a familiar but mistaken explanation, the next words may be easy to predict. A sequence can read smoothly while getting the underlying fact wrong. Averaging the token probabilities cannot turn that sequence into a verified statement.

Use it where you can compare with the right answer

Imagine a tool that sorts incoming tickets into billing, delivery or general support, with people handling uncertain cases. Start with tickets labelled by a person and not used to tune the prompt. Compare the model’s labels against those answers. Group the scores into bands and check how many tickets in each band were actually routed correctly. Hypothetically, if a high-scoring band contains 100 tickets and 86 are routed correctly, the observed accuracy of that band is 86%. The model’s score alone did not tell you that.

Keep the model, prompt and label format fixed during the check. If comparing possible labels, check their tokenization in context: a score for the first token of a multi-token label is not a score for that whole label. An API that returns only a few alternatives may also omit one of your labels; omitted doesn’t mean impossible.

Illustrative comparison: a 95% probability for one label token versus 86 of 100 high-scoring tickets routed correctly.
A predicted token probability and measured routing accuracy answer different questions. Figures are illustrative.

Use the right evidence for the job

For ticket routing, a score that you’ve validated can help decide what to send to a person. For deciding whether someone deserves a refund, compare the order facts against the policy. The first task is sorting a message. The second is making a decision based on evidence.