[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-328156-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-328156-en":130,"doc-similar-328156":163},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","what-predicts-correctness-in-text-to-sql-a-selectiveprediction-study","What Predicts Correctness in Text-to-SQL? - A SelectivePrediction Study","","Evaluating uncertainty in AI-generated SQL requires an estimate of whether a query is correct, meaning it executes to the same result as a human reference. The study compares many correctness signals on hard multi-table text-to-SQL using auroc, on BIRD and Spider, and finds black-box statistical measures mostly plateau around 0.61–0.68, while execution-grounded verification with LLM judges reaches higher performance and calibrated ensembles. Trained verifiers improve in-distribution but struggle to transfer to unseen schemas.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/what-predicts-correctness-in-text-to-sql-a-selectiveprediction-study/328156/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/what-predicts-correctness-in-text-to-sql-a-selectiveprediction-study/328156.png","ImageObject",300,407,{"name":42,"@type":43},"Theodora","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-23","2026-09-21",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",20,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"How is “correctness” defined for Text-to-SQL queries in this study?","Question",{"text":63,"@type":64},"A generated query is correct when executing against the database returns the same result as a human-written reference query for the same question.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What comparison metric is used to judge whether a signal predicts correctness?",{"text":68,"@type":64},"Signals are scored by their ability to rank correct queries above incorrect ones using auroc, interpreted as the probability a random correct query receives a higher score than a random incorrect one.",{"name":70,"@type":61,"acceptedAnswer":71},"Which signals work best, and how do trained verifiers perform?",{"text":72,"@type":64},"Verification-based signals using an LLM judge outperform black-box statistical signals and can be improved by a two-provider ensemble with good calibration. Fine-tuned verifiers achieve strong in-distribution auroc but drop substantially on unseen schemas.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},328156,1790215656,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,111,115,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":107,"doc_module":4,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},7,"Healthcare",40,"healthcare",{"id":112,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":113,"slug":114},8,30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":55,"slug":118},9,"Religion & Spirituality","religion-spirituality",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":55,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":112,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":145,"preview_page_count":33,"preview_urls":146},687197207919,"https://ap-avatar.wpscdn.com/avatar/a000253d6f5f7c60be?x-image-process=image/resize,m_fixed,w_180,h_180&k=1779446848396160552","arXiv :2607 .06799v 1 [ cs .LG] 7 Jul 2026  \nWhat Predicts Correctness in Text-to-SQL? A SelectivePrediction Study  \nRobert Richardson  \nAffiliation  \n[rebelrob10@gmail.com](rebelrob10@gmail.com)  \nAbstract  \nEvaluating uncertainty in AI-generated SQL queries requires an estimate of whether it is correct, where correct means the query executes to the same result as a human-written reference query. We study which signals provide correctness on hard multi-table text-to-SQL using auroc to compare how well various methods rank correct queries above incorrect ones. Using BIRD and Spider SQL query datasets, the black-box statistical signals such as string, structural, and execution self-consistency, a schema-relevance score, and query executability all fall between about 0.61 and 0.68 auroc, with string self-consistency the strongest at 0.675. White-box log-probability is similar (0 .67) . The signals that move past this ceiling are verification-based, with an LLM judge scoring from 0.72 (GPT-4o-mini) to 0.78 (Claude) . Judges from different providers make different errors, so a two-provider ensemble reaches 0.82 auroc with a well-calibrated probability (expected calibration error 0.03), and it supports useful abstention frontiers (for example, answering 27% of questions at 24% selective risk) where self-consistency offers no valid low-risk subset. The pattern holds across two benchmarks (BIRD and Spider), two generators, and two judge providers.  \nWe also explore whether a verifier can be trained. Fine-tuned verifiers, both encoder and generative, reach about 0.77–0.79 auroc in-distribution but fall to about 0.66 on unseen schemas, and scaling to 7B, adding schema diversity, distilling a strong judge’s rationales, and cross-benchmark training all fail to close that gap. Cross-schema transfer appears to track model scale and reasoning rather than fine-tuning. In practice, correctness uncertainty for text-to-SQL lives in reasoning-based signals, meaning that a fine-tuned verifier is a good in-domain tool, while a verifier that generalizes across schemas currently means a large frozen reasoning model.  \n1 Introduction  \nA text-to-SQL system turns a natural-language question into a SQL query that runs against a database. These systems are increasingly used where a wrong query is costly, so a system needs to know not just how to answer but when it should decline to. Knowing when to decline requires, for each query the system produces, an estimate of how likely that query is to be correct. We use correct in its standard benchmark sense: the generated query, when executed against the database, returns the same result as a human-written reference query for the same question. Predicting correctness so a system can choose to answer or to abstain is the problem of selective prediction, and it is the focus of this paper.  \nMost uncertainty-quantification (UQ) work for text-to-SQL reads it off statistics of the model’s own outputs, without any extra model or labels. The clearest example is self-consistency: draw several queries for the same question and measure how much they agree, on the premise that a confident model repeats itself (Wang et al. , 2023) . Related signals include the entropy of the samples’ meanings (Kuhn et al., 2023; Farquhar et al., 2024) and how often a particular query structure recurs. We call these black-box statistical signals because they look only at agreement among samples, not at whether a query’s logic actually answers the question. The alternative is verification: show a separate model the question, the schema, and the candidate query, and  \nask it to judge whether the query is correct (also called LLM-as-judge) . We ask a direct question: on hard text-to-SQL, which of these signals actually predicts correctness, and by how much?  \nTo answer it we score each signal by its ability to rank correct queries above incorrect ones, measured asthe area under the ROC curve (auroc), which is the probability that a randomly ","cbCait9xy4e8qZov","https://ap.wps.com/l/cbCait9xy4e8qZov","pdf",375607,11,"English","# Abstract\n# 1 Introduction\n## Problem setup: selective prediction and correctness\n## Uncertainty quantification approaches: black-box signals vs verification\n## Evaluation method: auroc and confidence intervals\n# 2 Related work","[{\"question\":\"How is “correctness” defined for Text-to-SQL queries in this study?\",\"answer\":\"A generated query is correct when executing against the database returns the same result as a human-written reference query for the same question.\"},{\"question\":\"What comparison metric is used to judge whether a signal predicts correctness?\",\"answer\":\"Signals are scored by their ability to rank correct queries above incorrect ones using auroc, interpreted as the probability a random correct query receives a higher score than a random incorrect one.\"},{\"question\":\"Which signals work best, and how do trained verifiers perform?\",\"answer\":\"Verification-based signals using an LLM judge outperform black-box statistical signals and can be improved by a two-provider ensemble with good calibration. Fine-tuned verifiers achieve strong in-distribution auroc but drop substantially on unseen schemas.\"}]","What Predicts Correctness in Text-to-SQL? - A SelectivePrediction Study | PDF",1789978750,28,[147,151,155,159],{"page_no":22,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/86a590496da8cbe106f4a19c0c74db35.webp",983,1272,{"page_no":26,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/b5de2a7fbb506c2e9a0f5f00d7cda03d.webp",982,1270,{"page_no":30,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/266648aab331b0eb48a25380d620cc39.webp",981,1269,{"page_no":33,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/db6f65970dd14ba722238a94d71d6f0c.webp",980,1268,{"list":164,"token":11},[165,172,179,186,192,199,205,212,219,226],{"doc_id":166,"doc_title":167,"file_type":137,"home_preview_img_url":168,"slug":169,"view_count":170,"category_name":29,"create_tm":171},273509,"Uncertainty-Aware Decision Making in Multimodal Large Language Models - A Survey of Sources, Signals, Calibration, and Actions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899943752/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=LGcUMiqhGs9BvfSVCTIzjxZJKnE%3D","uncertainty-aware-decision-making-in-multimodal-large-language-models-a-survey-of-sources-signals-calibration-and-actions",18,1789471790,{"doc_id":173,"doc_title":174,"file_type":137,"home_preview_img_url":175,"slug":176,"view_count":177,"category_name":29,"create_tm":178},82680,"TAG A Lightweight Framework for Test-Driven Agentic Artifact Generation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808777673/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=X4FkmtrVfp9rHU7CdhYABehkGUw%3D","tag-a-lightweight-framework-for-test-driven-agentic-artifact-generation",33,1784182245,{"doc_id":180,"doc_title":181,"file_type":137,"home_preview_img_url":182,"slug":183,"view_count":184,"category_name":29,"create_tm":185},82269,"SQL RewriteBench A Correctness-Gated Full-Denominator Benchmark for Statement-Level SQL Rewriting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808727334/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=8pSfsPgEbCvZS75t5kf2V1k6uM8%3D","sql-rewritebench-a-correctness-gated-full-denominator-benchmark-for-statement-level-sql-rewriting",32,1784179291,{"doc_id":187,"doc_title":188,"file_type":137,"home_preview_img_url":189,"slug":190,"view_count":116,"category_name":29,"create_tm":191},656143,"Star-schema join support within DB2 for i - Abstract and Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974785932/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=NHbUAYE%2FKTNq7CGFylW7qdMLmPo%3D","star-schema-join-support-within-db2-for-i-abstract-and-overview",1792966698,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":197,"category_name":29,"create_tm":198},273433,"PLSQLBENCH - Benchmarking LLM Systems for Executable Procedural Database Programming","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899937019/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=v9Mz37A2vUL17DhuLjVl6wef52A%3D","plsqlbench-benchmarking-llm-systems-for-executable-procedural-database-programming",24,1789471409,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":97,"category_name":29,"create_tm":204},678096,"QUERYDIAGRAMEVAL - Evaluating and Benchmarking LLM Diagram Generation under Noisy Conditions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229994793039/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=ZwzNBmRQa2d1BY5SuiaVC8JeJas%3D","querydiagrameval-evaluating-and-benchmarking-llm-diagram-generation-under-noisy-conditions",1793784209,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":29,"create_tm":211},234,"XNX Gas Detector Calibration Guide 2023","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727733/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=JaY%2BKYx5zTqlQut5X6ufzwpzLfA%3D","xnx-gas-detector-calibration-2023",7895,1776136863,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":217,"category_name":29,"create_tm":218},227,"Sridevi Matka Chart Full Guide to Panel, Jodi & Pana Records","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727553/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=buGPrcHHgcb0fUoWf1qNl%2BTWZNo%3D","sridevi-matka-chart-full-guide-to-panel-jodi-pana-records",6925,1776136851,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":224,"category_name":29,"create_tm":225},167314,"Linear Algebra and Its Applications 6th edition Textbook by david c. lay","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229876163444/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=jPf%2FW02JyIq8guMADEy0QxDFSNA%3D","linear-algebra-and-its-applications-sixth-edition-david-c-lay-steven-r-lay-judi-j-mcdonald",5865,1788211707,{"doc_id":227,"doc_title":228,"file_type":137,"home_preview_img_url":229,"slug":230,"view_count":231,"category_name":29,"create_tm":232},32070,"Blueprint Pengelolaan Sumber Daya Manusia Kesehatan (SDMK) Tahun 2025–2029","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229758685683/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=64I%2B8t0OREu%2FqAUN8%2B4oVBxYXj0%3D","healthcare-human-resources-management-blueprint-sdmk-20252029",1292,1780779716]