paper-with-me

홈 › Papers

CSC-SQL: Corrective Self-Consistency in Text-to-SQL via Reinforcement Learning

2025-05-19 · Lei Sheng, Shuai-Shuai Xu

Large language models (LLMs) have demonstrated strong capabilities in translating natural language questions about relational databases into SQL queries. In particular, test-time scaling techniques such as Self-Consistency and Self-Correction can enhance SQL generation accuracy by increasing computational effort during inference. However, these methods have notable limitations: Self-Consistency may select suboptimal outputs despite majority votes, while Self-Correction typically addresses only syntactic errors. To leverage the strengths of both approaches, we propose CSC-SQL, a novel method that integrates Self-Consistency and Self-Correction. CSC-SQL selects the two most frequently occurring outputs from parallel sampling and feeds them into a merge revision model for correction. Additionally, we employ the Group Relative Policy Optimization (GRPO) algorithm to fine-tune both the SQL generation and revision models via reinforcement learning, significantly enhancing output quality. Experimental results confirm the effectiveness and generalizability of CSC-SQL. On the BIRD development set, our 3B model achieves 65.28% execution accuracy, while the 7B model achieves 69.19%. The code will be open sourced at https://github.com/CycloneBoy/csc_sql.

📄 PDF Abstract BibTeX arXiv:2505.13271

Code (1)

cycloneboy/csc_sql 공식 구현

Tasks

Text to SQLText-To-SQL

Similar Papers 제목 키워드 기반

McSc: Motion-Corrective Preference Alignment for Video Generation with Self-Critic Hierarchical Reasoning

2025-11-28 · Qiushi Yang, Yingjie Chen, Yuan Yao, Yifang Men 외 arxiv

Text-to-video (T2V) generation has achieved remarkable progress in producing high-quality videos aligned with textual prompts. However, aligning synthesized videos with nuanced human preference remains challenging due to…

Reinforcement LearningVideo Generation

SLM-SQL: An Exploration of Small Language Models for Text-to-SQL

2025-07-30 · Lei Sheng, Shuai-Shuai Xu arxiv

Large language models (LLMs) have demonstrated strong performance in translating natural language questions into SQL queries (Text-to-SQL). In contrast, small language models (SLMs) ranging from 0.5B to 1.5B parameters c…

Reinforcement LearningLogical Reasoning

Agentic Retoucher for Text-To-Image Generation

2026-01-05 · Shaocheng Shen, Jianfeng Liang, Chunlei Cai, Cong Geng 외 arxiv

Text-to-image (T2I) diffusion models such as SDXL and FLUX have achieved impressive photorealism, yet small-scale distortions remain pervasive in limbs, face, text and so on. Existing refinement approaches either perform…

Text-to-Image Generation

Soft Q Network

2019-12-20 · Jingbin Liu, Shuai Liu, Xinyang Gu

Deep Q Network (DQN) is a very successful algorithm, yet the inherent problem of reinforcement learning, i.e. the exploit-explore balance, remains. In this work, we introduce entropy regularization into DQN and propose S…

Q-Learning

Corrective In-Context Learning: Evaluating Self-Correction in Large Language Models

2025-03-20 · Mario Sanz-Guerrero, Katharina von der Wense

In-context learning (ICL) has transformed the use of large language models (LLMs) for NLP tasks, enabling few-shot learning by conditioning on labeled examples without finetuning. Despite its effectiveness, ICL is prone …

Few-Shot LearningIn-Context Learningtext-classificationText Classification