aiqbench analysis
SPOC-SQL introduces a novel framework that decomposes Text-to-SQL generation into sequential subtasks, applying fine-grained preference optimization at critical decision points to enhance reliability. By leveraging stage-specific feedback and intermediate representations, this approach addresses the limitations of single-step generation models in handling complex database schemas. The method demonstrates that integrating structured human knowledge throughout the query construction process significantly improves performance over traditional end-to-end training.
SPOC-SQL: Stage-wise Preference Optimization for Controllable Text-to-SQL
arXiv:2608.22772v1 Announce Type: new Abstract: Text-to-SQL aims to translate natural language questions into executable SQL queries over relational databases, requiring multi-stage structured reasoning over database schemas and query constraints. However, existing methods treat this task as single-step generation, where models optimize entire SQL sequences without targeted feedback at key decision points and lack support for interacting with and controlling the intermediate generation process. To address this issue, we propose SPOC-SQL, which decomposes Text-to-SQL into four sequential subtasks following standard SQL execution logic and designs stage-specific optimization strategies for the model to learn key decisions. Specifically, we propose the implementation of fine-grained preference optimisation at key decision points across SQL stages, with the objective of enhancing structured decision-making during query construction. Furthermore, a structured decomposition strategy is designed, facilitating stage-wise intervention and correction through explicit intermediate representations. This results in more controllable and reliable SQL generation. Experiments demonstrate that incorporating stage-wise human knowledge consistently improves performance, validating the effectiveness of stage perception controllable generation.
Abstract:Text-to-SQL aims to translate natural language questions into executable SQL queries over relational databases, requiring multi-stage structured reasoning over database schemas and query constraints. However, existing methods treat this task as single-step generation, where models optimize entire SQL sequences without targeted feedback at key decision points and lack support for interacting with and controlling the intermediate generation process. To address this issue, we propose SPOC-SQL, which decomposes Text-to-SQL into four sequential subtasks following standard SQL execution logic and designs stage-specific optimization strategies for the model to learn key decisions. Specifically, we propose the implementation of fine-grained preference optimisation at key decision points across SQL stages, with the objective of enhancing structured decision-making during query construction. Furthermore, a structured decomposition strategy is designed, facilitating stage-wise intervention and correction through explicit intermediate representations. This results in more controllable and reliable SQL generation. Experiments demonstrate that incorporating stage-wise human knowledge consistently improves performance, validating the effectiveness of stage perception controllable generation.
Computation and Language (cs.CL)
arXiv:2608.22772 [cs.CL]
(or arXiv:2608.22772v1 [cs.CL] for this version)
https://doi.org/10.48550/arXiv.2608.22772 Focus to learn more arXiv-issued DOI via DataCite (pending registration)
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.
Full text under the publisher's open licence · 253 words
Related coverage

Why do models task game?
AI Alignment Forum · Aug 6, 2026

Presentation: Engineering AI for Creativity and Curiosity on Mobile
InfoQ · Jul 21, 2026
State of the Field: AI for Epistemics and Coordination
LessWrong · Oct 2, 2026
Fable and Mythos: Model Welfare
LessWrong · Jun 16, 2026