COAL-SQL: Coverage-Guided Augmentation and Failure-Driven Learning for Text-to-SQL Post-Training
Qifeng Cai, Xuanguang Pan, Hao Liang, Chang Xu, Wentao Zhang
Abstract
Text-to-SQL translates natural-language questions into executable SQL queries, but open-source large language models still require task-specific post-training for complex, real-world SQL generation. Effective post-training requires both training data that cover the capabilities demanded by the target task and a learning strategy that enables the model to acquire them. Existing datasets provide valuable supervision but incompletely cover SQL structures, while augmentation methods typically expand data without identifying structural gaps. Moreover, supervised fine-tuning (SFT) or reinforcement learning (RL) alone cannot dynamically address weaknesses exposed during training. We propose COAL-SQL, a unified framework combining Coverage-Guided Augmentation (CGA) and Failure-Driven Learning (FDL). CGA uses greedy selection to identify SQL structures missing from the original dataset and constructs complementary examples, improving structural coverage. FDL retains GRPO as the main optimization objective while supplying targeted supervision for unsolved examples. At the step level, it applies SFT to verified reasoning traces generated by a strong LLM for accumulated failures. At the epoch level, it retrieves structurally related examples based on accumulated failures to create targeted practice, helping the model acquire the corresponding SQL capabilities. With only 12,600 distinct post-training examples, COAL-SQL achieves 64.9% execution accuracy on the BIRD development set and outperforms baselines trained at comparable scale. The code is available at https://github.com/TechNomad-ds/COAL-SQL.
Create a lesson
Metadata
- Categories
- cs.CL, cs.DB
Related papers
Can Post-Training Transform LLMs into Causal Reasoners?
Shared title terminologycs.CLJunqi Chen, Sirui Chen, Chaochao Lu
Emulate or Estimate? The Divergent Strengths of Base and Post-Trained Language Models for Opinion Simulation
Shared title terminologycs.CLSeth Grief-Albert, Jessica Bo, Difan Jiao et al.
Pruned BPE: Post-training Visibility Pruning and Token Reallocation for Byte Pair Encoding
Shared title terminologycs.CLKenny Shao
Example-Guided Prompting for Document-Level Text Simplification
Shared title terminologycs.CLMarina Litvak, Ariel Perstin, Ilan Shtilman et al.
Integrating Human Linguistic Insights into AI: Theory-Driven Representation for Multilingual Text-to-Speech
Shared title terminologycs.CLCong Zhang, Huinan Zeng, Huang Liu et al.
ANCHOR-RE: An Agentic Biomedical Relation Extraction Framework with Retrieval Augmentation and Error-Driven Verification
Shared title terminologycs.CLShufan Ming, Yikun Han, Gibong Hong et al.