Getting started with legal AI
AI Confidence Scores: Can AI Say How Sure It Is?
By Lucerna LawPublished 8 min read
AI confidence scores are a model's estimate of how likely its answer is to be right, shown as a number, a word such as "high", or a sure tone. Research shows such estimates can be measured and sometimes trained. A chat assistant's stated certainty is not a checked probability, and in legal work an open source outweighs it.
What is an AI confidence score?
An AI confidence score is any signal of how likely an output is to be correct. It comes in three forms: the probability the model gave each word it produced, a confidence level it states in its answer, and the assurance of its prose. Only the first is computed rather than written.
The computed kind exists below the chat window. OpenAI's cookbook recipe on using logprobs for classification and Q&A evaluation explains that when the logprobs setting is on, the API "returns the log probabilities of each output token". The recipe says these figures allow users "to gauge the model's confidence in its output or explore alternative responses the model considered." The page is marked as archived and "may reference outdated models or APIs."
A token probability measures something narrow. It says how strongly the model expected that word in that place, given everything before it. It does not say whether the sentence the words form is true. A model can be very sure of the next word in a citation it is inventing, because citations follow a regular pattern.
The other two forms are output. When an assistant writes "I am fairly confident", that phrase was generated the same way as the rest of the answer. When it writes without hedging, that is a style, not a score.
| Form of confidence | Where it comes from | What it measures |
|---|---|---|
| Token probability | Computed by the model for each word | How expected each word was, in context |
| Stated confidence ("90%", "high") | Written by the model as part of its answer | Whatever the model learned to say about itself |
| Tone | The style of the prose | Nothing, by itself |
Is an AI model's stated confidence calibrated?
A model's confidence is calibrated when answers it rates at 80% are right about 80% of the time. Research shows some models are well calibrated on narrow tests in the right format, and that tuning a raw model into an assistant can reduce calibration. No source read for this post shows calibration on legal questions.
The plainest statement comes from a model maker. In the GPT-4 Technical Report, OpenAI writes that GPT-4 "can also be confidently wrong in its predictions, not taking care to double-check work when it's likely to make a mistake." The report adds that the pre-trained model was "highly calibrated", meaning its predicted confidence "generally matches the probability of being correct", and that "after the post-training process, the calibration is reduced." Its figure caption, for a subset of a multiple-choice test called MMLU, says post-training "hurts calibration significantly."
Two research papers show what is possible under controlled conditions:
- Self-evaluation on fixed-format questions. Language Models (Mostly) Know What They Know, posted in July 2022, reports that "larger models are well-calibrated on diverse multiple choice and true/false questions when they are provided in the right format." The same abstract says models "struggle with calibration" of their estimate that they know an answer when moved to new tasks. It also reports that this estimate rose "in the presence of relevant source materials in the context."
- Confidence stated in words. Teaching Models to Express Their Uncertainty in Words, posted in May 2022, shows "a GPT-3 model can learn to express uncertainty about its own answers in natural language", with stated levels that "map to probabilities that are well calibrated." The model was trained for this, and the tests were arithmetic problems in a suite the authors built.
Read together, these say calibration is a property that has to be measured for a given model, task and format. A legal question is a new task in an open format. A percentage written into an answer about a statute of limitations is not backed by any of these results unless the vendor has measured it for that kind of question.
Why do AI models sound sure when they are guessing?
One explanation is the way models are tested. A 2025 paper argues that most benchmarks score a wrong answer and "I don't know" the same, at zero, so a model trained to score well learns that guessing pays. The result is a confident, specific answer where an honest one would hedge.
The paper is Why Language Models Hallucinate, by Adam Tauman Kalai, Ofir Nachum, Santosh Vempala and Edwin Zhang. The post on why an AI hallucination reads as confidently as a true answer covers its main argument. The part that bears on confidence is its description of the bluff. The authors write that "Bluffs are often overconfident and specific, such as 'September 30' rather than 'Sometime in autumn' for a question about a date."
That example maps onto legal work directly. Asked for a filing deadline, a model that does not know may give an exact date rather than "it depends on the triggering event." Asked for a holding, it may state one rule rather than say the circuits differ. Specificity reads as knowledge. In this account, it can be the opposite.
The paper's proposed fix is about the tests, not the user. It suggests that evaluations state "explicit confidence targets" in their instructions, for example telling the model to answer only if it is more than a stated percentage confident, because mistakes cost points and "I don't know" earns zero. The authors note that some human exams have used penalties for wrong answers in the same way. The paper also says search and retrieval "are not panaceas", because a scoring system that rewards guessing still rewards it "whenever search fails to yield a confident answer."
This is one paper's argument, and three of its four authors list OpenAI as their affiliation. It explains a pattern. It is not a measurement of any legal tool.
Asking an AI "how confident are you?" in legal work
Asking an assistant to rate its confidence produces a sentence, not a measurement. The answer can still be useful as a flag: it may surface the part of a response the model treats as weakest. It should change what you check first, never whether you check.
A better use of the same instinct is to ask for the gaps rather than a grade. A request like the one below asks for things you can verify:
Ask the file
For each statement in your answer, give the document and page it comes from.
List any statement that does not come from a document in this matter.
Say which questions the documents do not answer.
Each of those requests produces something checkable. A page reference can be opened. A statement marked as not coming from the file can be researched or cut. An admitted gap tells you where to look. A confidence grade produces none of that.
Two cautions apply when you ask. First, how you ask may shape the answer you get, so a leading question can push a stated confidence either way. The post on AI bias for lawyers explains why models tend to agree with the person asking. Second, a second run of the same question may return a different confidence, for the reasons covered in why AI gives different answers. Neither is a reason to trust the higher number.
Confidence scores in legal software: what is being scored?
A score shown in legal software can measure several different things, and the label rarely says which. It may rank how closely a passage matched your search, estimate how likely a document is relevant, or be a confidence the model wrote. Each needs a different question before you rely on it.
The common kinds, and what each one tells you:
- A search or match score. Ranks passages by similarity to your question. A high score means "closely related", not "answers the question" or "supports the statement".
- A classification probability. In document review, a score that a document belongs in a category, such as responsive. The model behind it can be tested against a sample a lawyer has coded, which is the point of the measurement.
- A generated confidence. A level the model states about its own answer. As the research above shows, its meaning depends on whether anyone measured it for this task.
For any score a vendor shows, three questions turn a number into evidence:
- What exactly is being scored: a match, a document, or a sentence of an answer?
- On what kind of material was the score's accuracy measured, and is that material like mine?
- What should a user do differently at a low score than at a high one?
A vendor who can answer the second question with a test on material like yours has given you something. A vendor who cannot has given you a number to display.
What an AI confidence score cannot replace: opening the source
A confidence score, however well calibrated, describes answers in general. A lawyer has to know whether this answer is right, and that comes from the source it cites. Calibration tells you how often to expect an error. Only reading the cited passage tells you whether this is one.
ABA Formal Opinion 512 sets the expectation in terms of review, not scores. The opinion says the appropriate amount of independent verification "will necessarily depend on the GAI tool and the specific task that it performs." It gives an example in which a lawyer who had tested a tool's summaries against a smaller set of documents reviewed by hand, and found them accurate, might not need to review every document. That is calibration done by the lawyer, on the lawyer's own material.
The same logic gives a routine any team can follow:
- Test on a sample. Before relying on a tool for a kind of task, check a set of its answers against the documents by hand, and count the errors.
- Check by consequence, not by tone. Statements that will reach a client, opposing counsel or a court get opened at the source whatever confidence they came with.
- Treat a missing source as the low score. A statement with no citation is the one most in need of checking, whatever the prose sounds like.
Lucerna Law's answers cite passages from the matter's files. As its product page states, the server checks that each citation names a passage the model was given and strikes through one that does not, and it does not check that the passage supports the statement. That last step stays with the reader.
Benchmarks are the other place confidence is measured. The post on legal AI benchmarks explains what a test score says about a tool, and what it leaves out.