ResearchNov 24, 2026, 2:49 AM EST

Text-to-SQL study tests when AI systems should withhold queries

In an arXiv preprint, Avinash Kumar Singh and colleagues tested a method for deciding when to withhold an AI-generated SQL query. On the Spider benchmark, GPT-OSS-120B generated the query and Gemma-4-31B assessed it alongside its execution result. With a 15% error budget, the system accepted 52.4% of queries on average across 10 resampled splits. The observed error rate among accepted queries was 9.1%, compared with 22.6% when every query was accepted. Confidence scores still helped distinguish correct queries on the BIRD benchmark without retraining, but the error guarantee did not carry over.

Why it matters

A query can run successfully and still answer the wrong question. The benchmark quantifies the trade-off between returning fewer queries and reducing the error rate among those returned.

Sources

Written by AIToolMaps from the source above and checked against it sentence by sentence.

Comments

No comments yet