Does a Governed Confidence Score Know When a Text-to-SQL Answer Is Right? An Exploratory Study on BIRD and a Pre-registered Confirmation on Spider
- 0.725
- AUROC of the rule frozen before the Spider test, against 0.566 for the designed score
- 8.8%
- of correct Spider answers withheld, down from 49.0%
- 2 of 4
- pre-registered hypotheses held; the paper reports the two that did not
A production system scores every answer it writes over a database, then shows it, shows it with a warning, or withholds it. This paper audits that score, including the parts that did not work.
The question
Conversational analytics answers plain-language questions from records spread across many systems. The failure that matters is the confident wrong answer: a valid query over real tables that answers a different question, written up as calmly as a right one.
The system under test attaches a confidence score, the Interpretive Evidence Score (IES), to every answer it writes over a database. At 0.80 or above the answer is shown, from 0.60 up to 0.80 it is shown with a warning, and below 0.60 it is withheld. The weights and thresholds were set by design and had not been measured. This paper is the audit.
- Does the score predict whether an answer is right?
- Does each check catch the error it was built for?
- Does each part of the score earn its place?
What was measured
- Two public text-to-SQL benchmarks: BIRD dev (1,534 questions over 11 databases) and Spider dev (1,034 questions over 20 databases).
- Answers from GPT-5.1 with the system's production prompt, trimmed only of tools the benchmarks do not provide. Five answers per question.
- Correctness judged by GPT-5.4 against the reference answer. Answers ruled unclear or ambiguous were left out.
- Ranking measured as AUROC with bootstrap intervals, plus what the gate does: how accurate the shown answers are, and how many correct and wrong answers it withholds.
- The authors' company develops the system under test. Every result is reported, including those unfavourable to the design.
Findings on BIRD (exploratory)
As designed, the score separated right from wrong answers weakly: AUROC 0.624 (95% interval 0.595 to 0.652). It withheld 35.7% of correct answers and 43.7% of wrong ones.
Taking the score apart showed where the signal came from and where it was lost.
- Nearly all of the useful signal came from agreement among the five sampled answers. Agreement alone reached 0.721.
- Most of it was lost where agreement met a checklist through a minimum. The checklist dropped to zero on any unsupported claim, including claims in the commentary around a correct answer.
- The deterministic checks caught every planted error of their kind: fake tables, bad joins, stand-in codes and wrong numbers, 60 of 60 each. Judge-based checks caught 70 to 90%.
- Real errors are harder than planted ones. The designed score withheld 43.7% of the wrong answers the model actually produced.
- The score is not a probability. Answers scoring 0.8 to 0.9 were right 62.5% of the time.
| Score | AUROC | Shown answers right | Correct withheld | Wrong withheld |
|---|---|---|---|---|
| Designed | 0.624 | 77.9% | 35.7% | 43.7% |
| Agreement alone | 0.721 | 81.3% | 6.3% | 32.9% |
| Agreement-first | 0.730 | 83.6% | 8.3% | 37.3% |
The pre-registered test on Spider
Before any Spider answer existed, the authors froze and hashed a revised rule, agreement-first: agreement with the shown answer is the score, and deterministic checks act as vetoes and caps. They wrote down four hypotheses and their pass criteria. The answering harness and prompts were rebuilt afterwards, and the paper lists every deviation.
On 983 labelled Spider answers the primary hypothesis held. AUROC rose from 0.566 to 0.725, a paired difference of +0.159 (95% interval +0.097 to +0.221). Correct answers withheld fell from 49.0% to 8.8%, and shown answers were right 95.7% of the time against a base rate of 92.6%.
Designed score
Agreement-first (pre-registered)
Agreement alone
Agreement-first with empty-result signal
0.5 is chance. The three agreement-based scores are not separated by their intervals.
| Hypothesis | Observed | Verdict |
|---|---|---|
| H1. Agreement-first ranks better than the designed score | +0.159 AUROC (+0.097 to +0.221) | Held |
| H2. Fewer correct answers withheld, shown answers no less accurate | 8.8% against 49.0% withheld; 95.7% against 93.9% right | Held |
| H3. An empty final result marks a likely wrong answer | Right 73.0% of the time, 19.6 points below overall, short of the 30 required | Did not hold |
| H4. Predicted order of the four scores | Agreement alone ranked above the primary rule | Not as predicted |
What did not work
- The pre-registered rule was not the best agreement-based rule on Spider. Agreement alone (0.749) and the rule with an empty-result signal (0.767) ranked higher, though no difference among the three is resolved by its interval.
- The empty-result check did not meet its pre-registered effect size on Spider. On BIRD it had been a strong sign of a wrong answer.
- On Spider the added checks moved 157 correct and 9 wrong answers from shown to shown-with-a-warning, and withheld no additional wrong answer. On these benchmarks they mainly cost coverage.
- When all five answers agree and are wrong, agreement cannot help. A definition the organisation uses but never wrote down is invisible to every check.
- The judge already inside the pipeline, scored on its own, ranked below agreement in every evaluation.
Added after review
These analyses were not pre-registered, and the paper labels them so.
- A judge asked directly how likely an answer is to be right, averaged with agreement, ranked above agreement in every evaluation (0.837 on Spider). The judge is the answering model, its probabilities are not calibrated, and the gain shrinks when correctness is defined by exact result match.
- One answer per Spider question from a second model family (Claude Sonnet 4.5) added ranking to agreement under both definitions of correctness, at the cost of a second answering run.
Limits
- Correctness labels are model-judged. Two people checked a ten-answer pilot and agreed with the labels on all ten; a full human audit has not been done.
- One answering model and two benchmarks, neither in the system's own domain.
- The Spider test has 73 wrong answers, below the 100 the pre-registration named as adequate.
- The pre-registration fixed the rule code and analysis, not the harness or prompts, and was not publicly timestamped.
- The paper tests a reference implementation written from the design, not the product scorer, which differs in places.
- One run per benchmark, beyond a BIRD rerun.
What comes next
Until that test is done, the paper recommends a narrower practice. Show an answer only when at least four of five samples reach the same result. Name the check behind every warning or withheld answer. Do not present the score as a probability.
- Test whether approved business definitions help the answering system, the checking system, or both, in four conditions on held-out questions, with the rules frozen first.
- Run that contrast first on BIRD, with and without its evidence hints.
- Test the checks on records where tables are missing, joins are ambiguous and codes stand in for values, the setting they were designed for.
- Complete a full human audit of the labels.
Keep reading
interpretDB
ProductQuestions over databases, PDFs and Word files
PageWhat a gated sensing pipeline never looks at
ResearchAll research
ResearchDiscuss the evidence.
Tell us the decision you need to support. Our engineers reply directly.
Start a conversation