OpenSearch-SQL: Enhancing Text-to-SQL with Dynamic Few-shot and Consistency Alignment
Not on the map. Why?
Abstract (arXiv)
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 reward-based 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.
Key facts. Cited by 51 papers in the map (data through 7 Oct 2026). Builds on 35 of its 60 references that are in the map. First posted on arXiv 19 Feb 2025.
Builds on
35 of 60 references.
References · 35
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2023Qwen Technical Reportcited by 3,273
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
- 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 853
- 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
23 more
- 2022Precise Zero-Shot Dense Retrieval without Relevance Labelscited by 508
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
- 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 420
- 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
- 2023Enhancing Retrieval-Augmented Large Language Models with Iterative Retrieval-Generation Synergycited by 343
- 2022Generate rather than Retrieve: Large Language Models are Strong Context Generatorscited by 296
- 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 210
- 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 183
- 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 164
- 2023C3: Zero-shot Text-to-SQL with ChatGPTcited by 159
- 2017SQLNet: Generating Structured Queries From Natural Language Without Reinforcement Learningcited by 135
- 2020Semantic Evaluation for Text-to-SQL with Distilled Test Suitescited by 123
- 2024MCS-SQL: Leveraging Multiple Prompts and Multiple-Choice Selection For Text-to-SQL Generationcited by 103
- 2017Learning a Neural Semantic Parser from User Feedbackcited by 98
- 2020SmBoP: Semi-autoregressive Bottom-up Semantic Parsingcited by 97
- 2018SyntaxSQLNet: Syntax Tree Networks for Complex and Cross-DomainText-to-SQL Taskcited by 74
- 2023Exploring Chain-of-Thought Style Prompting for Text-to-SQLcited by 69
- 2024The Death of Schema Linking? Text-to-SQL in the Age of Well-Reasoned Language Modelscited by 67
- 2020RYANSQL: Recursively Applying Sketch-based Slot Fillings for Complex Text-to-SQL in Cross-Domain Databasescited by 63
- 2024DTS-SQL: Decomposed Text-to-SQL with Small Large Language Modelscited by 45
- 2019Global Reasoning over Database Structures for Text-to-SQL Parsingcited by 43
- 2023Prompting GPT-3.5 for Text-to-SQL with De-semanticization and Skeleton Retrievalcited by 16
- 2024Dubo-SQL: Diverse Retrieval-Augmented Generation and Fine Tuning for Text-to-SQLcited by 12
Built on by
Citing papers per year: 2025: 24; 2026: 27.
51 papers.
Sort:
By area:
- 2025Reasoning-SQL: Reinforcement Learning with SQL Tailored Partial Rewards for Reasoning-Enhanced Text-to-SQLcited by 59
- 2025XiYan-SQL: A Novel Multi-Generator Framework For Text-to-SQLcited by 40
- 2025A Survey of Data Agents: Emerging Paradigm or Overstated Hype?cited by 30
- 2025CSC-SQL: Corrective Self-Consistency in Text-to-SQL via Reinforcement Learningcited by 15
- 2025LLM/Agent-as-Data-Analyst: A Surveycited by 15
- 2025MARS-SQL: A multi-agent reinforcement learning framework for Text-to-SQLcited by 14
- 2026Pervasive Annotation Errors Break Text-to-SQL Benchmarks and Leaderboardscited by 12
- 2025ST-Raptor: LLM-Powered Semi-Structured Table Question Answeringcited by 11
- 2025Beluga: A CXL-Based Memory Architecture for Scalable and Efficient LLM KVCache Managementcited by 11
- 2025SLM-SQL: An Exploration of Small Language Models for Text-to-SQLcited by 10
- 2025Text-to-SQL as Dual-State Reasoning: Integrating Adaptive Context and Progressive Generationcited by 8
- 2025LogicCat: A Chain-of-Thought Text-to-SQL Benchmark for Complex Reasoningcited by 7
38 more
- 2025Plugging Schema Graph into Multi-Table QA: A Human-Guided Framework for Reducing LLM Reliancecited by 7
- 2026APEX-SQL: Talking to the data via Agentic Exploration for Text-to-SQLcited by 7
- 2026Arming Data Agents with Tribal Knowledgecited by 6
- 2025SING-SQL: A Synthetic Data Generation Framework for In-Domain Text-to-SQL Translationcited by 5
- 2025RAISE: Reasoning Agent for Interactive SQL Explorationcited by 4
- 2025Pi-SQL: Enhancing Text-to-SQL with Fine-Grained Guidance from Pivot Programming Languagescited by 3
- 2026RoboPhD: Self-Improving Text-to-SQL Through Autonomous Agent Evolutioncited by 3
- 2026Memo-SQL: Structured Decomposition and Experience-Driven Self-Correction for Training-Free NL2SQLcited by 3
- 2025Text2Schema: Filling the Gap in Designing Database Table Structures based on Natural Languagecited by 2
- 2025Toward Real-World Table Agents: Capabilities, Workflows, and Design Principles for LLM-based Table Intelligencecited by 2
- 2025Node-Level Uncertainty Estimation in LLM-Generated SQLcited by 2
- 2025AGRO-SQL: Agentic Group-Relative Optimization with High-Fidelity Data Synthesiscited by 2
- 2025HES-SQL: Hybrid Reasoning for Efficient Text-to-SQL with Structural Skeleton Guidancecited by 1
- 2025Squrve: A Unified and Modular Framework for Complex Real-World Text-to-SQL Taskscited by 1
- 2026ErrorLLM: Modeling SQL Errors for Text-to-SQL Refinementcited by 1
- 2026Human-Level Text-to-SQL via Reinforcement Learning on Verified Data, Without Pipeline Engineeringcited by 1
- 2026NL2SQLBench: A Modular Benchmarking Framework for LLM-Enabled NL2SQL Solutionscited by 1
- 2026R3-SQL: Ranking Reward and Resampling for Text-to-SQLcited by 1
- 2026SQLConductor: Search-to-Policy Learning for Step-wise Text-to-SQL Orchestrationcited by 1
- 2026SQLMorph: Query Mutation and Fine-Grained Metrics for Text-to-SQL Evaluationcited by 1
- 2025Agentic generative AI for media content discovery at the national football leaguecited by 0
- 2025GEMMA-SQL: A Novel Text-to-SQL Model Based on Large Language Modelscited by 0
- 2025Bridging Global Intent with Local Details: A Hierarchical Representation Approach for Semantic Validation in Text-to-SQLcited by 0
- 2026Boundary-Aware NL2SQL: Integrating Reliability through Hybrid Reward and Data Synthesiscited by 0
- 2026ROSE: An Intent-Centered Evaluation Metric for NL2SQLcited by 0
- 2026Reliable Answers for Recurring Questions: Boosting Text-to-SQL Accuracy with Template Constrained Decodingcited by 0
- 2026ZAS-SQL: Distilling Rules from Failures for Zero-Shot Text-to-SQLcited by 0
- 2026Data Intelligence Agents: Interpreting, Modeling, and Querying Enterprise Data via Autonomous Coding Agentscited by 0
- 2026STRATOS: Bridging the Symbolic-to-Numeric Gap in Spatio-Temporal Text-to-SQL for Meteorological Datacited by 0
- 2026Beyond Static Rules: Automated Discovery of Latent Vulnerabilities in Text-to-SQLcited by 0
- 2026Benchmarking Text-to-SQL under Role-Based Access Controlcited by 0
- 2026SafeQL: Search-based Refinement for Safe and Efficient LLM-based Text-to-SQLcited by 0
- 2026DexterSQL: Deep Schema Exploration and Rule-based Correction for Text-to-SQL Generationcited by 0
- 2026Iteration Without Elaboration: A Simple ReAct Architecture Suffices for Text-to-SQL Generationcited by 0
- 2026Are These Modules Worth Their Cost? A Paradigm-Level Accuracy-Cost Analysis of In-context Learning Text-to-SQLcited by 0
- 2026BIRD-History: A Benchmark for History-Driven Text-to-SQL with Fine-Grained Knowledge Annotationscited by 0
- 2026ProcArena: A Multi-Scenario Benchmark for LLMs on Direct and Interactive PL/SQL Development from Natural Languagecited by 0
- 2026TQTS-Bench: A Multi-Syntax Benchmark for Text-to-Query over Time-Series Databasescited by 0
50 most cited of 51 All 51 (JSON)
- 2026Towards Reliable AI Data Scientists: Data Agents with Workflow Harnesses28 Sep 2026
- 2026TQTS-Bench: A Multi-Syntax Benchmark for Text-to-Query over Time-Series Databases28 Sep 2026
- 2026SQLMorph: Query Mutation and Fine-Grained Metrics for Text-to-SQL Evaluation8 Sep 2026
- 2026ProcArena: A Multi-Scenario Benchmark for LLMs on Direct and Interactive PL/SQL Development from Natural Language6 Sep 2026
- 2026BIRD-History: A Benchmark for History-Driven Text-to-SQL with Fine-Grained Knowledge Annotations29 Aug 2026
- 2026Are These Modules Worth Their Cost? A Paradigm-Level Accuracy-Cost Analysis of In-context Learning Text-to-SQL28 Aug 2026
- 2026Iteration Without Elaboration: A Simple ReAct Architecture Suffices for Text-to-SQL Generation23 Aug 2026
- 2026DexterSQL: Deep Schema Exploration and Rule-based Correction for Text-to-SQL Generation12 Aug 2026
- 2026SafeQL: Search-based Refinement for Safe and Efficient LLM-based Text-to-SQL10 Aug 2026
- 2026Benchmarking Text-to-SQL under Role-Based Access Control24 Jul 2026
- 2026Beyond Static Rules: Automated Discovery of Latent Vulnerabilities in Text-to-SQL4 Jul 2026
- 2026STRATOS: Bridging the Symbolic-to-Numeric Gap in Spatio-Temporal Text-to-SQL for Meteorological Data3 Jul 2026
38 more
- 2026SQLConductor: Search-to-Policy Learning for Step-wise Text-to-SQL Orchestration22 Jun 2026
- 2026Data Intelligence Agents: Interpreting, Modeling, and Querying Enterprise Data via Autonomous Coding Agents17 Jun 2026
- 2026ZAS-SQL: Distilling Rules from Failures for Zero-Shot Text-to-SQL6 Jun 2026
- 2026Reliable Answers for Recurring Questions: Boosting Text-to-SQL Accuracy with Template Constrained Decoding30 Apr 2026
- 2026R3-SQL: Ranking Reward and Resampling for Text-to-SQL28 Apr 2026
- 2026ROSE: An Intent-Centered Evaluation Metric for NL2SQL14 Apr 2026
- 2026NL2SQLBench: A Modular Benchmarking Framework for LLM-Enabled NL2SQL Solutions13 Apr 2026
- 2026Human-Level Text-to-SQL via Reinforcement Learning on Verified Data, Without Pipeline Engineering20 Mar 2026
- 2026ErrorLLM: Modeling SQL Errors for Text-to-SQL Refinement4 Mar 2026
- 2026Arming Data Agents with Tribal Knowledge13 Feb 2026
- 2026APEX-SQL: Talking to the data via Agentic Exploration for Text-to-SQL11 Feb 2026
- 2026Boundary-Aware NL2SQL: Integrating Reliability through Hybrid Reward and Data Synthesis15 Jan 2026
- 2026Memo-SQL: Structured Decomposition and Experience-Driven Self-Correction for Training-Free NL2SQL15 Jan 2026
- 2026Pervasive Annotation Errors Break Text-to-SQL Benchmarks and Leaderboards13 Jan 2026
- 2026RoboPhD: Self-Improving Text-to-SQL Through Autonomous Agent Evolution3 Jan 2026
- 2025AGRO-SQL: Agentic Group-Relative Optimization with High-Fidelity Data Synthesis29 Dec 2025
- 2025Bridging Global Intent with Local Details: A Hierarchical Representation Approach for Semantic Validation in Text-to-SQL28 Dec 2025
- 2025Text-to-SQL as Dual-State Reasoning: Integrating Adaptive Context and Progressive Generation26 Nov 2025
- 2025Beluga: A CXL-Based Memory Architecture for Scalable and Efficient LLM KVCache Management25 Nov 2025
- 2025Node-Level Uncertainty Estimation in LLM-Generated SQL17 Nov 2025
- 2025GEMMA-SQL: A Novel Text-to-SQL Model Based on Large Language Models5 Nov 2025
- 2025MARS-SQL: A multi-agent reinforcement learning framework for Text-to-SQL2 Nov 2025
- 2025Squrve: A Unified and Modular Framework for Complex Real-World Text-to-SQL Tasks28 Oct 2025
- 2025A Survey of Data Agents: Emerging Paradigm or Overstated Hype?27 Oct 2025
- 2025HES-SQL: Hybrid Reasoning for Efficient Text-to-SQL with Structural Skeleton Guidance10 Oct 2025
- 2025Agentic generative AI for media content discovery at the national football league8 Oct 2025
- 2025SING-SQL: A Synthetic Data Generation Framework for In-Domain Text-to-SQL Translation30 Sep 2025
- 2025LLM/Agent-as-Data-Analyst: A Survey28 Sep 2025
- 2025ST-Raptor: LLM-Powered Semi-Structured Table Question Answering25 Aug 2025
- 2025SLM-SQL: An Exploration of Small Language Models for Text-to-SQL30 Jul 2025
- 2025Toward Real-World Table Agents: Capabilities, Workflows, and Design Principles for LLM-based Table Intelligence14 Jul 2025
- 2025XiYan-SQL: A Novel Multi-Generator Framework For Text-to-SQL7 Jul 2025
- 2025Plugging Schema Graph into Multi-Table QA: A Human-Guided Framework for Reducing LLM Reliance4 Jun 2025
- 2025RAISE: Reasoning Agent for Interactive SQL Exploration2 Jun 2025
- 2025Pi-SQL: Enhancing Text-to-SQL with Fine-Grained Guidance from Pivot Programming Languages1 Jun 2025
- 2025LogicCat: A Chain-of-Thought Text-to-SQL Benchmark for Complex Reasoning24 May 2025
- 2025CSC-SQL: Corrective Self-Consistency in Text-to-SQL via Reinforcement Learning19 May 2025
- 2025Text2Schema: Filling the Gap in Designing Database Table Structures based on Natural Language31 Mar 2025
50 newest of 51 All 51 (JSON)
- 2025A Survey of Data Agents: Emerging Paradigm or Overstated Hype?cited by 30
- 2025LLM/Agent-as-Data-Analyst: A Surveycited by 15
- 2025MARS-SQL: A multi-agent reinforcement learning framework for Text-to-SQLcited by 14
- 2026APEX-SQL: Talking to the data via Agentic Exploration for Text-to-SQLcited by 7
- 2026Arming Data Agents with Tribal Knowledgecited by 6
- 2025Toward Real-World Table Agents: Capabilities, Workflows, and Design Principles for LLM-based Table Intelligencecited by 2
- 2025Agentic generative AI for media content discovery at the national football leaguecited by 0
- 2026Data Intelligence Agents: Interpreting, Modeling, and Querying Enterprise Data via Autonomous Coding Agentscited by 0
- 2026Towards Reliable AI Data Scientists: Data Agents with Workflow Harnessescited by 0
- 2026Towards Reliable AI Data Scientists: Data Agents with Workflow Harnesses28 Sep 2026
- 2026Data Intelligence Agents: Interpreting, Modeling, and Querying Enterprise Data via Autonomous Coding Agents17 Jun 2026
- 2026Arming Data Agents with Tribal Knowledge13 Feb 2026
- 2026APEX-SQL: Talking to the data via Agentic Exploration for Text-to-SQL11 Feb 2026
- 2025MARS-SQL: A multi-agent reinforcement learning framework for Text-to-SQL2 Nov 2025
- 2025A Survey of Data Agents: Emerging Paradigm or Overstated Hype?27 Oct 2025
- 2025Agentic generative AI for media content discovery at the national football league8 Oct 2025
- 2025LLM/Agent-as-Data-Analyst: A Survey28 Sep 2025
- 2025Toward Real-World Table Agents: Capabilities, Workflows, and Design Principles for LLM-based Table Intelligence14 Jul 2025
- 2025Reasoning-SQL: Reinforcement Learning with SQL Tailored Partial Rewards for Reasoning-Enhanced Text-to-SQLcited by 59
- 2025CSC-SQL: Corrective Self-Consistency in Text-to-SQL via Reinforcement Learningcited by 15
- 2025Text-to-SQL as Dual-State Reasoning: Integrating Adaptive Context and Progressive Generationcited by 8
- 2025LogicCat: A Chain-of-Thought Text-to-SQL Benchmark for Complex Reasoningcited by 7
- 2025RAISE: Reasoning Agent for Interactive SQL Explorationcited by 4
- 2026Memo-SQL: Structured Decomposition and Experience-Driven Self-Correction for Training-Free NL2SQLcited by 3
- 2025AGRO-SQL: Agentic Group-Relative Optimization with High-Fidelity Data Synthesiscited by 2
- 2025HES-SQL: Hybrid Reasoning for Efficient Text-to-SQL with Structural Skeleton Guidancecited by 1
- 2026Memo-SQL: Structured Decomposition and Experience-Driven Self-Correction for Training-Free NL2SQL15 Jan 2026
- 2025AGRO-SQL: Agentic Group-Relative Optimization with High-Fidelity Data Synthesis29 Dec 2025
- 2025Text-to-SQL as Dual-State Reasoning: Integrating Adaptive Context and Progressive Generation26 Nov 2025
- 2025HES-SQL: Hybrid Reasoning for Efficient Text-to-SQL with Structural Skeleton Guidance10 Oct 2025
- 2025RAISE: Reasoning Agent for Interactive SQL Exploration2 Jun 2025
- 2025LogicCat: A Chain-of-Thought Text-to-SQL Benchmark for Complex Reasoning24 May 2025
- 2025CSC-SQL: Corrective Self-Consistency in Text-to-SQL via Reinforcement Learning19 May 2025
- 2025Reasoning-SQL: Reinforcement Learning with SQL Tailored Partial Rewards for Reasoning-Enhanced Text-to-SQL29 Mar 2025
- 2025XiYan-SQL: A Novel Multi-Generator Framework For Text-to-SQLcited by 40
- 2026Pervasive Annotation Errors Break Text-to-SQL Benchmarks and Leaderboardscited by 12
- 2025ST-Raptor: LLM-Powered Semi-Structured Table Question Answeringcited by 11
- 2025SLM-SQL: An Exploration of Small Language Models for Text-to-SQLcited by 10
- 2025Plugging Schema Graph into Multi-Table QA: A Human-Guided Framework for Reducing LLM Reliancecited by 7
- 2025Pi-SQL: Enhancing Text-to-SQL with Fine-Grained Guidance from Pivot Programming Languagescited by 3
- 2026RoboPhD: Self-Improving Text-to-SQL Through Autonomous Agent Evolutioncited by 3
- 2025Text2Schema: Filling the Gap in Designing Database Table Structures based on Natural Languagecited by 2
- 2025Node-Level Uncertainty Estimation in LLM-Generated SQLcited by 2
- 2025Squrve: A Unified and Modular Framework for Complex Real-World Text-to-SQL Taskscited by 1
- 2026ErrorLLM: Modeling SQL Errors for Text-to-SQL Refinementcited by 1
- 2026Human-Level Text-to-SQL via Reinforcement Learning on Verified Data, Without Pipeline Engineeringcited by 1
12 most cited of 30 All 30 (JSON)
- 2026TQTS-Bench: A Multi-Syntax Benchmark for Text-to-Query over Time-Series Databases28 Sep 2026
- 2026SQLMorph: Query Mutation and Fine-Grained Metrics for Text-to-SQL Evaluation8 Sep 2026
- 2026ProcArena: A Multi-Scenario Benchmark for LLMs on Direct and Interactive PL/SQL Development from Natural Language6 Sep 2026
- 2026BIRD-History: A Benchmark for History-Driven Text-to-SQL with Fine-Grained Knowledge Annotations29 Aug 2026
- 2026Are These Modules Worth Their Cost? A Paradigm-Level Accuracy-Cost Analysis of In-context Learning Text-to-SQL28 Aug 2026
- 2026DexterSQL: Deep Schema Exploration and Rule-based Correction for Text-to-SQL Generation12 Aug 2026
- 2026SafeQL: Search-based Refinement for Safe and Efficient LLM-based Text-to-SQL10 Aug 2026
- 2026Benchmarking Text-to-SQL under Role-Based Access Control24 Jul 2026
- 2026Beyond Static Rules: Automated Discovery of Latent Vulnerabilities in Text-to-SQL4 Jul 2026
- 2026STRATOS: Bridging the Symbolic-to-Numeric Gap in Spatio-Temporal Text-to-SQL for Meteorological Data3 Jul 2026
- 2026SQLConductor: Search-to-Policy Learning for Step-wise Text-to-SQL Orchestration22 Jun 2026
- 2026ZAS-SQL: Distilling Rules from Failures for Zero-Shot Text-to-SQL6 Jun 2026
12 newest of 30 All 30 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Multilingual Text-to-SQL: Benchmarking the Limits of Language Models with Collaborative Language Agents
- 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQL
- 2024Open-SQL Framework: Enhancing Text-to-SQL on Open-source Large Language Models
- 2025SQL-o1: A Self-Reward Heuristic Dynamic Search Method for Text-to-SQL
- 2024ROUTE: Robust Multitask Tuning and Collaboration for Text-to-SQL
- 2024Tool-Assisted Agent on SQL Inspection and Refinement in Real-World Scenarios
- 2025BAPPA: Benchmarking Agents, Plans, and Pipelines for Automated Text-to-SQL Generation
- 2025A Multi-agent Text2SQL Framework using Small Language Models and Execution Feedback