atlas

Research map / Large language models / Language, safety and interpretability

Confidence Estimation for Error Detection in Text-to-SQL Systems

AAAI 2025 · Large language models › Language, safety and interpretability · approach: Uncertainty quantification for LLMs · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Studies selective classification (reject option) for text-to-SQL using entropy-based confidence, Gaussian Mixture/logistic/threshold classifiers, and calibration (MinMax, Platt, isotonic) across distribution-shift splits of SPIDER-based PAUQ and EHRSQL.

Problem

Text-to-SQL models generate incorrect queries under distribution shift (cross-database, compositional, unanswerable questions) without reliable confidence signals, so users cannot tell when to trust outputs.

Approach

Applies selective prediction to text-to-SQL by using maximum token-entropy as the sequence uncertainty and fitting an external selective classifier (Gaussian Mixture, logistic regression, threshold) to flag execution errors, then calibrates scores with Platt and isotonic regression and analyzes coverage-risk trade-offs.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Gaussian Mixture instead of Logistic Regression for selective error detectionSelective text-to-SQL classifier · All splits and modelsFDR: 0.469 -> 0.364Helped
Use Gaussian Mixture instead of Threshold for selective error detectionSelective text-to-SQL classifier · All splits and modelsResult EX: 0.143 -> 0.251Helped
Add Isotonic calibration instead of MinMax normalizationT5-large uncertainty estimates · All splitsBrier score: 0.2 -> 0.117Helped
Add Isotonic calibration instead of Platt calibrationT5-large uncertainty estimates · All splitsBrier score: 0.121 -> 0.117Helped
Add Isotonic calibration instead of MinMax normalizationT5-3B uncertainty estimates · All splitsBrier score: 0.17 -> 0.106Helped
Add Isotonic calibration instead of Platt calibrationT5-3B uncertainty estimates · All splitsBrier score: 0.108 -> 0.106Helped
Add Isotonic calibration instead of MinMax normalizationLlama3-8B LoRA uncertainty estimates · All splitsBrier score: 0.22 -> 0.199Helped
Add Isotonic calibration instead of Platt calibrationLlama3-8B LoRA uncertainty estimates · All splitsBrier score: 0.216 -> 0.199Helped
Add Isotonic calibration instead of MinMax normalizationLlama3-8B SFT uncertainty estimates · All splitsBrier score: 0.21 -> 0.175Helped
Add Isotonic calibration instead of Platt calibrationLlama3-8B SFT uncertainty estimates · All splitsBrier score: 0.19 -> 0.175Helped
Add Isotonic calibration instead of MinMax normalizationDAIL-SQL uncertainty estimates · All splitsBrier score: 0.239 -> 0.152Helped
Add Isotonic calibration instead of Platt calibrationDAIL-SQL uncertainty estimates · All splitsBrier score: 0.16 -> 0.152Helped

Surprising findings

Limitations

Experimental setup

Datasets: SPIDER PAUQ EHRSQL

Benchmarks: PAUQ XSP Template SSP TSL SSP EHRSQL

Metrics: F-beta score recall false discovery rate AUC Brier score coverage-risk

Baselines: Logistic Regression selective classifier Threshold selective classifier MinMax normalization Platt calibration

Builds on: DAIL-SQL LoRA PAUQ EHRSQL Platt scaling

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy