SKT-SQL: multi-decoupling and skeleton prompt framework for text-to-SQL on small-scale LMs
摘要
To address the strong coupling between schema linking and structural parsing in text-to-SQL tasks for small-scale language models, as well as the neglect of SQL skeleton guidance in existing decoupling methods, this paper proposes SKT-SQL, a multi-stage decoupling framework. The framework redesigns the generation process through a three-stage decoupling mechanism: (1) leveraging a schema decoupler to eliminate irrelevant schema items and reduce semantic noise; (2) predicting query hardness to generate an abstract SQL skeleton, forming a structured template with operator logic; (3) utilizing the skeleton as dynamic prompts to guide a transformer-based seq2seq T5 model in precisely filling specific schema items, followed by execution-guided beam search to derive the final SQL query. This "structure-first, entity-later" paradigm eliminates the need to simultaneously resolve syntactic complexity and schema correlations, significantly reducing cognitive load. Experiments on the Spider 1.0 benchmark show that SKT-SQL-base achieves 80.8% execution accuracy (EX), surpassing the 12