{"paper_id":"2611.31190","title":"Know When to Abstain: Conformal Confidence Estimation for Text-to-SQL","authors":["Avinash Kumar Singh","Bhaskarjit Sarmah","Stefano Pasquali"],"paper_date":"2026-11-23","paper_type":"empirical","paper_url":"https://arxiv.org/pdf/2611.31190","page_url":"https://thequant.space/flowcharts/know-when-to-abstain-conformal-confidence-estimation-for-text-to-sql/","scores":{"empirical_rigor":8,"math_complexity":7,"quadrant":"Holy Grail"},"proposes":{"status":"available","statement":"We propose a generator–critic estimator where a separate critic model validates the generator’s query and its execution result, and a Random Forest fuses the critic’s judgments with generator-side signals.","quote":"A separate critic model validates the generator’s query and its execution result, and a Random Forest fuses the critic’s judg-ments with generator-side signals.","summary":"Text-to-SQL systems often return queries that execute successfully but answer the wrong question. Detecting these errors at deployment is hard because execution correctness is defined against a gold query, which exists only in labeled data. We formulate confidence estimation for Text-to-SQL as…","strategy":null},"assumptions":{"status":"available","items":[{"assumption":"Both propositions assume that deployment queries follow the calibration distribution; guarantees do not hold under distribution shift.","type":"statistical","stated":"explicit","quote":"(1) Scope of the guarantees. Coverage is not guar-anteed, and with 636 calibration queries a 10% risk budget is often not certifiable.","support":"full"},{"assumption":"The execution‑correctness variable Z is latent at deployment because the gold query is unavailable, but observable on labeled data via execution matching.","type":"model","stated":"explicit","quote":"Z is latent because s∗is unavailable at deployment, not because execution is infeasible. On labeled data, Z is computed exactly by execution matching, which is how we obtain training and calibration labels.","support":"full"},{"assumption":"The execution result r = Exec(ˆs, D) is always obtainable for read‑only SELECT queries.","type":"execution","stated":"explicit","quote":"(1) The result r = Exec(ˆs, D) is always obtainable for read-only SELECT queries.","support":"full"},{"assumption":"Calibration and training use gold SQL to compute Z, while deployment uses only generator, critic, local features, frozen forest, and stored calibration scores.","type":"data","stated":"explicit","quote":"Training and calibration use gold SQL to compute Z. Deploy-ment uses only the generator, the critic, the local Stage 3 features, the frozen forest, and the stored calibration scores.","support":"full"},{"assumption":"The estimator relies on LLM‑derived signals (verbalized confidence, token probabilities, critic judgments) as the main information source.","type":"model","stated":"implied","quote":"An ablation shows that the LLM-derived signals carry most of the information, so a variant without logit access retains most of the performance (Sections 4, 5.4). • Calibrated abstention. The largest feature families come from LLM judgments.","support":"full"},{"assumption":"Exchangeability of calibration and deployment queries is required for the conformal p‑value guarantee.","type":"statistical","stated":"explicit","quote":"Under exchangeability, conditional on the trained estimator p, the rank of ηm1+1 among the m1 + 1 scores is uniform on {1, . . . , m1 + 1}. Taking t = 1 −α gives FAR(1 −α) = P(ˆc < 1 −α | Z = 1) ≤1 −α (Angelopoulos & Bates, 2023, Prop. 3). Proposition 2. Fix λ ∈Λ.","support":"full"}]},"datasets":{"status":"available","items":[{"name":"Spider","provider":null,"kind":"benchmark","access":"public","period":null,"universe":null,"quote":"We use 3,181 question–SQL pairs from the Spider dev and test sets (Yu et al., 2018), covering 200 databases.","support":"full"},{"name":"BIRD","provider":null,"kind":"benchmark","access":"public","period":null,"universe":null,"quote":"For zero-shot transfer we use the BIRD dev set (Li et al., 2023) (1,534 samples) and NL2SQL-BUGs (Liu et al., 2025b) (1,019 correct and 999 semantically erroneous queries).","support":"full"},{"name":"NL2SQL-BUGs","provider":null,"kind":"benchmark","access":"public","period":null,"universe":null,"quote":"For zero-shot transfer we use the BIRD dev set (Li et al., 2023) (1,534 samples) and NL2SQL-BUGs (Liu et al., 2025b) (1,019 correct and 999 semantically erroneous queries).","support":"full"}],"known":[],"sample":{"start":null,"end":null,"market":null,"asset_class":null,"frequency":null},"data_resolution":"none"},"transaction_costs":{"status":"not_applicable","modeled":"n/a","headline_net_of_costs":null,"detail":null,"quote":null,"source":"front_matter","rule":"R3","candidates":{"front_matter":"n/a","evidence_card":"n/a","evidence_card_quoted":false},"meaning":"the paper reports no trading or execution result"},"results":{"status":"available","evaluation_type":"forecast-accuracy","findings":[{"finding":"The estimator obtains an AUARC of 0.899 on the Spider test split.","kind":"predictive-accuracy","quote":"The estimator obtains an AUARC of 0.899.","support":"full"},{"finding":"With a 15% risk budget (δ=0.1), a threshold is certified on all 10 resampled splits, the system accepts 52.4% of queries with 9.1% observed error (versus 22.6% error without abstention).","kind":"performance","quote":"With a 15% risk budget ($δ=0.1$), a threshold is certified on all 10 resampled splits, and the system accepts 52.4% of queries on average with 9.1% observed error. Five different critic models give similar results.","support":"partial"},{"finding":"In a controlled comparison on Spider with Olmo‑3‑32B as generator, the estimator achieves AUARC 89.5, compared with 81.2 for the strongest logit‑based baseline.","kind":"predictive-accuracy","quote":"In a controlled comparison on Spider with Olmo-3-32B as generator, the estimator obtains an AUARC of 89.5, compared with 81.2 for the strongest logit-based baseline.","support":"full"},{"finding":"Applied to BIRD without retraining, confidence scores remain informative (AUROC 0.72) but the risk guarantee does not transfer.","kind":"predictive-accuracy","quote":"Applied to BIRD without retraining, the confidence scores remain informative (AUROC 0.72, against 0.79 on Spider), but the risk guarantee does not transfer, as expected without exchangeability.","support":"full"},{"finding":"Five different critic models give similar results; AUARC ranges from 0.899 to 0.922 across critics.","kind":"predictive-accuracy","quote":"Five different critic models give similar results. AUARC ranges from 0.899 (Gemma-4-31B) to 0.922 (Qwen3.8-27B), and self-critique obtains 0.913.","support":"full"}],"reported_performance":null,"out_of_sample":{"method":"unclear","headline_out_of_sample":null}},"independent_evidence":{"status":"none_found","supports":[],"contradicts":[],"qualifies":[],"compared_with":20,"citations":{"cited_by_in_corpus":0,"by_independent_authors":0,"how_cited":{"used_as_baseline":0,"uses_method_or_data":0,"extends":0,"discusses_findings":0,"mentions":0,"unclassified":0},"independent_papers":[],"scope":"Citations between papers in this corpus only; citations from outside it are not counted."}},"implementation":{"status":"available","public":false,"code_url":null,"note":"No repository presented by the authors as their own was found in the paper. Absence here is not proof that no code exists."},"replication":{"status":"none_found","card":null,"note":"No replication of this paper has been run by thequant.space yet."},"extraction":{"text_source":"fulltext","model":"openai/gpt-oss-120b","version":3,"extracted_at":"2026-11-24T11:40:49Z"},"provenance":{"claims":"Everything here is what the authors state in the paper. Nothing was re-run or reproduced by the platform.","quotes":"Assumptions, datasets, cost detail and findings were extracted by a language model. Every quote is verbatim paper text. Where an item has `support`, \"full\" means every figure in it appears in the quoted sentences and \"partial\" means a figure is stated elsewhere in the paper; items with a figure found nowhere in the paper were discarded.","datasets_known":"datasets.known lists well-known vendors and public datasets by a stable id, found by a dictionary over the full text where the sentence says the data is used; it is independent of the model and covers only names in the dictionary.","flags":"transaction_costs.modeled, results.evaluation_type and results.out_of_sample.method are platform classifications (structured-decision models); see https://thequant.space/score-guide/#penalty-flags","comparisons":"supports / contradicts / qualifies are a language model's reading of two papers' quoted findings, restricted to closely related papers that share no author. They are pointers to read, not verified replications, and coverage is partial.","implementation":"code_url is a repository the paper itself presents as its own (rule-scored, ambiguous cases judged by a model), checked for liveness when it was recorded."},"docs":"https://thequant.space/agents/"}