mlsanityData to 24 Nov 2026

VCoT-SQL: Enhancing Text-to-SQL Generation through Dual Chain-of-Thought Validation Training

arXiv 2611.00815 ↗Submitted 31 Oct 2026cs.AIcited by 0

On the map: LLM reasoning → Knowledge- and tool-augmented reasoning

Abstract (arXiv)

Open-source LLMs provide a flexible alternative to closed-source models for Text-to-SQL but still struggle with complex queries. Finetuning with chain-of-thought (CoT) data improves reasoning, yet standard datasets lack CoT annotations, requiring synthetic generation. Existing synthesis methods only verify the final answer, allowing flawed reasoning steps to corrupt the training data. We propose VCoT-SQL, a framework that improves Text-to-SQL generation through intermediate-step validated CoT supervision and a dedicated SQL validator, which enables small open-source models to outperform frontier closed-source models. VCoT-SQL trains two complementary models on curated reasoning traces: an SQL generator using clause-level CoT templates where reasoning steps are verified via execution and schema alignment checks, and an SQL validator using diagnostic CoT templates to detect syntactic, semantic, and type level errors. We further design a hierarchical schema filtering pipeline that integrates and refines complementary retrieval strategies to distill relevant database elements. VCoT-SQL achieves 66.82% execution accuracy on challenging dataset BIRD dev and 86.8% on Spider test, improving the base 7B model by 7% on BIRD. Notably, our CoT synthesis relies on 7B models yet outperforms methods that use 72B-scale or even proprietary closed source teachers for data generation, demonstrating that rigorous step-level validation can be more effective than scaling up teacher model size. Our dataset and code are available at https://github.com/INTREBID/VCoT-SQL.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Knowledge- and tool-augmented reasoning, one of 17 directions in LLM reasoning. Builds on 33 of its 44 references that are in the map. Submitted 31 Oct 2026.

Builds on

33 of 44 references.

Closest ancestors · 3

Same direction, newest first

  1. 2025Reasoning-SQL: Reinforcement Learning with SQL Tailored Partial Rewards for Reasoning-Enhanced Text-to-SQL29 Mar
  2. 2025ExCoT: Optimizing Reasoning for Text-to-SQL with Execution Feedback25 Mar
  3. 2024CHASE-SQL: Multi-Path Reasoning and Preference Optimized Candidate Selection in Text-to-SQL2 Oct

Other references · 30

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 41,272
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,866
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,771
  4. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,378
  5. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,241
  6. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,205
  7. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 747
  8. 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 714
  9. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 503
  10. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 407
  11. 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 216
  12. 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 204
18 more
  1. 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 196
  2. 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 181
  3. 2020Structure-Grounded Pretraining for Text-to-SQLcited by 131
  4. 2021Towards Robustness of Text-to-SQL Models against Synonym Substitutioncited by 117
  5. 2023The CoT Collection: Improving Zero-shot and Few-shot Learning of Language Models via Chain-of-Thought Fine-Tuningcited by 113
  6. 2024MCS-SQL: Leveraging Multiple Prompts and Multiple-Choice Selection For Text-to-SQL Generationcited by 110
  7. 2025OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scalecited by 101
  8. 2021Exploring Underexplored Limitations of Cross-Domain Text-to-SQL Generalizationcited by 97
  9. 2023Graphix-T5: Mixing Pre-Trained Transformers with Graph-Aware Layers for Text-to-SQL Parsingcited by 95
  10. 2019A Comprehensive Exploration on WikiSQL with Table-Aware Word Contextualizationcited by 90
  11. 2022RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQLcited by 86
  12. 2018SyntaxSQLNet: Syntax Tree Networks for Complex and Cross-DomainText-to-SQL Taskcited by 76
  13. 2023Dr.Spider: A Diagnostic Evaluation Benchmark towards Text-to-SQL Robustnesscited by 56
  14. 2024Synthesizing Text-to-SQL Data from Weak and Strong LLMscited by 56
  15. 2024DTS-SQL: Decomposed Text-to-SQL with Small Large Language Modelscited by 51
  16. 2025XiYan-SQL: A Novel Multi-Generator Framework For Text-to-SQLcited by 47
  17. 2025Understanding, Detecting, and Repairing Real-World In-Context-Learning-Based Text-to-SQL Errorscited by 15
  18. 2025SLM-SQL: An Exploration of Small Language Models for Text-to-SQLcited by 11

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Rationalization Models for Text-to-SQL
  2. 2026Integrating Reasoning and Generalization in Text-to-SQL via Self-Enhanced Fine-Tuning
  3. 2025Text2SQL-Flow: A Robust SQL-Aware Data Augmentation Framework for Text-to-SQL
  4. 2025SQLForge: Synthesizing Reliable and Diverse Data to Enhance Text-to-SQL Reasoning in LLMs
  5. 2025Bridging Global Intent with Local Details: A Hierarchical Representation Approach for Semantic Validation in Text-to-SQL
  6. 2025Text-to-SQL as Dual-State Reasoning: Integrating Adaptive Context and Progressive Generation
  7. 2026DecoSearch: Complexity-Aware Routing and Plan-Level Repair for Text-to-SQL
  8. 2025SQL-of-Thought: Multi-agentic Text-to-SQL with Guided Error Correction