Running summarizing tools on a new article
Check the paper below, then start its synthesis.
AGCS-SQL: Adaptive SQL Generation and Confidence-Aware Selection for Text-to-SQL
Hongfu Jia (Xinjiang University), Xuejian Zhao (Xinjiang University), Qingyuan Ma (Xinjiang University), Ruida Ye (Tsinghua University), Liang He (Xinjiang University)
Abstract: Recent advancements in large language models (LLMs) have significantly propelled the performance of Text to-SQL tasks. However, existing LLM-based approaches still struggle with complex queries, where a unified generation strategy fails to accommodate varying reasoning difficulty, and candidate selection methods based on self-consistency often conflate execution frequency with correctness. In this paper, we propose AGCS-SQL, a Text-to-SQL framework that combines adaptive SQL generation with confidence-aware selection. AGCS-SQL first predicts query difficulty and dynamically routes queries to different generation strategies. For complex queries, it adopts a structure-content decoupled generation paradigm that separates SQL structure inference from schema instantiation, reducing structural reasoning interference and improving generation stability. To further address ambiguity during candidate selection, we introduce a confidence-aware selection mechanism that treats execution consistency as a prior signal and refines it through LLM-based pairwise preference comparisons, enabling more reliable decisions without additional model training. Experiments on benchmark datasets, including BIRD and Spider, show that AGCS-SQL consistently outperforms existing methods, achieving execution accuracies of 67.54% on the BIRD development set and 88.2% on the Spider test set, demonstrating its effectiveness and strong generalization ability.