OpenSearch-SQL: Enhancing Text-to-SQL with Dynamic Few-shot and Consistency Alignment
Xiangjin Xie, Guangwei Xu, Lingyan Zhao, Ruijie Guo
摘要
Although multi-agent collaborative Large Language Models (LLMs) have achieved significant breakthroughs in the Text-to-SQL task, their performance is still constrained by various factors. These factors include the incompleteness of the framework, failure to follow instructions, and model hallucination problems. To address these problems, we propose OpenSearch-SQL, which divides the Text-to-SQL task into four main modules: Preprocessing, Extraction, Generation, and Refinement, along with an Alignment module based on a consistency alignment mechanism. This architecture aligns the inputs and outputs of agents through the Alignment module, reducing failures in instruction following and hallucination. Additionally, we designed an intermediate language called SQL-Like and optimized the structured CoT based on SQL-Like. Meanwhile, we developed a dynamic few-shot strategy in the form of self-taught Query-CoT-SQL. These methods have significantly improved the performance of LLMs in the Text-to-SQL task. In terms of model selection, we directly applied the base LLMs without any post-training, thereby simplifying the task chain and enhancing the framework's portability. Experimental results show that OpenSearch-SQL achieves an execution accuracy(EX) of 69.3% on the BIRD development set, 72.28% on the test set, and a rewardbased validity efficiency score (R-VES) of 69.36%, with all three metrics ranking first at the time of submission. These results demonstrate the comprehensive advantages of the proposed method in both effectiveness and efficiency.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 20 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Enhancing Retrieval-Augmented Large Language Models with Iterative Retrieval-Generation Synergy 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Pervasive Annotation Errors Break Text-to-SQL Benchmarks and Leaderboards 引用了 DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
- Pervasive Annotation Errors Break Text-to-SQL Benchmarks and Leaderboards 引用了 Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation
- DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- SQL-R1: Training Natural Language to SQL Reasoning Model By Reinforcement Learning 引用了 DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
- SQL-R1: Training Natural Language to SQL Reasoning Model By Reinforcement Learning 引用了 Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation
- SQL-R1: Training Natural Language to SQL Reasoning Model By Reinforcement Learning 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- MARS-SQL: A Multi-Agent Reinforcement Learning Framework For Text-To-SQL 引用了 DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
- MARS-SQL: A Multi-Agent Reinforcement Learning Framework For Text-To-SQL 引用了 Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation
- MARS-SQL: A Multi-Agent Reinforcement Learning Framework For Text-To-SQL 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation 引用了 DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
- DeepEye-SQL: A Software-Engineering-Inspired Text-to-SQL Framework 引用了 DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
- DeepEye-SQL: A Software-Engineering-Inspired Text-to-SQL Framework 引用了 Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation
引用它的顶会 Paper20
- SQL-R1: Training Natural Language to SQL Reasoning Model By Reinforcement LearningPeixian Ma, Xialie Zhuang, Chengjin Xu, Xuhui Jiang 等NeurIPS 2025 · 94 次引用
- DeepEye-SQL: A Software-Engineering-Inspired Text-to-SQL FrameworkBoyan Li, Chong Chen, Zhujun Xue, Yinan Mei 等SIGMOD 2026 · 40 次引用
- Beluga: A CXL-Based Memory Architecture for Scalable and Efficient LLM KVCache ManagementXinjun Yang, Qingda Hu, Junru Li, Feifei Li 等SIGMOD 2026 · 24 次引用
- MARS-SQL: A Multi-Agent Reinforcement Learning Framework For Text-To-SQLHaolin Yang, Jipeng Zhang, Zhitao He, Alexander Zhou 等ICML 2026 · 12 次引用
- Pervasive Annotation Errors Break Text-to-SQL Benchmarks and LeaderboardsTengjun Jin, Yoojin Choi, Yuxuan Zhu, Daniel KangVLDB 2026 · 7 次引用
它引用的 Paper10
- Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma 等NeurIPS 2022 · 22,562 次引用
- DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-CorrectionMohammadreza Pourreza, Davood RafieiNeurIPS 2023 · 909 次引用
- Text-to-SQL Empowered by Large Language Models: A Benchmark EvaluationDawei Gao, Haibin Wang, Yaliang Li, Xiuyu Sun 等VLDB 2024 · 609 次引用
- Precise Zero-Shot Dense Retrieval without Relevance LabelsLuyu Gao, Xueguang Ma, Jimmy Lin, Jamie CallanACL 2023 · 211 次引用
- Enhancing Retrieval-Augmented Large Language Models with Iterative Retrieval-Generation SynergyZhihong Shao, Yeyun Gong, Yelong Shen, Minlie Huang 等EMNLP Findings 2023 · 200 次引用
相关 Paper
- CHASE-SQL: Multi-Path Reasoning and Preference Optimized Candidate Selection in Text-to-SQLMohammadreza Pourreza, Hailong Li, Ruoxi Sun, Yeounoh Chung 等ICLR 2025
- Alpha-SQL: Zero-Shot Text-to-SQL using Monte Carlo Tree SearchBoyan Li, Jiayi Zhang, Ju Fan, Yanwei Xu 等ICML 2025
- Before Generation, Align it! A Novel and Effective Strategy for Mitigating Hallucinations in Text-to-SQL GenerationGe Qu, Jinyang Li, Bowen Li, Bowen Qin 等ACL Findings 2024 · 32 次引用
- Optimizing Reasoning for Text-to-SQL with Execution FeedbackBohan Zhai, Canwen Xu, Yuxiong He, Zhewei YaoACL Findings 2025 · 8 次引用
- ACT-SQL: In-Context Learning for Text-to-SQL with Automatically-Generated Chain-of-ThoughtHanchong Zhang, Ruisheng Cao, Lu Chen, Hongshen Xu 等EMNLP Findings 2023 · 54 次引用
