mlsanityData to 7 Oct 2026

OpenSearch-SQL: Enhancing Text-to-SQL with Dynamic Few-shot and Consistency Alignment

arXiv 2502.14913 ↗First posted 19 Feb 2025cs.CL cs.AI cs.IRcited by 51

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

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2023GPT-4 Technical Reportcited by 18,132
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  5. 2023Qwen Technical Reportcited by 3,273
  6. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
  7. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
  8. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  9. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
  10. 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 853
  11. 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
  12. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
23 more
  1. 2022Precise Zero-Shot Dense Retrieval without Relevance Labelscited by 508
  2. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
  3. 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 420
  4. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
  5. 2023Enhancing Retrieval-Augmented Large Language Models with Iterative Retrieval-Generation Synergycited by 343
  6. 2022Generate rather than Retrieve: Large Language Models are Strong Context Generatorscited by 296
  7. 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 210
  8. 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 183
  9. 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 164
  10. 2023C3: Zero-shot Text-to-SQL with ChatGPTcited by 159
  11. 2017SQLNet: Generating Structured Queries From Natural Language Without Reinforcement Learningcited by 135
  12. 2020Semantic Evaluation for Text-to-SQL with Distilled Test Suitescited by 123
  13. 2024MCS-SQL: Leveraging Multiple Prompts and Multiple-Choice Selection For Text-to-SQL Generationcited by 103
  14. 2017Learning a Neural Semantic Parser from User Feedbackcited by 98
  15. 2020SmBoP: Semi-autoregressive Bottom-up Semantic Parsingcited by 97
  16. 2018SyntaxSQLNet: Syntax Tree Networks for Complex and Cross-DomainText-to-SQL Taskcited by 74
  17. 2023Exploring Chain-of-Thought Style Prompting for Text-to-SQLcited by 69
  18. 2024The Death of Schema Linking? Text-to-SQL in the Age of Well-Reasoned Language Modelscited by 67
  19. 2020RYANSQL: Recursively Applying Sketch-based Slot Fillings for Complex Text-to-SQL in Cross-Domain Databasescited by 63
  20. 2024DTS-SQL: Decomposed Text-to-SQL with Small Large Language Modelscited by 45
  21. 2019Global Reasoning over Database Structures for Text-to-SQL Parsingcited by 43
  22. 2023Prompting GPT-3.5 for Text-to-SQL with De-semanticization and Skeleton Retrievalcited by 16
  23. 2024Dubo-SQL: Diverse Retrieval-Augmented Generation and Fine Tuning for Text-to-SQLcited by 12

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 24; 2026: 27.

51 papers.

Sort:

By area:

  1. 2025Reasoning-SQL: Reinforcement Learning with SQL Tailored Partial Rewards for Reasoning-Enhanced Text-to-SQLcited by 59
  2. 2025XiYan-SQL: A Novel Multi-Generator Framework For Text-to-SQLcited by 40
  3. 2025A Survey of Data Agents: Emerging Paradigm or Overstated Hype?cited by 30
  4. 2025CSC-SQL: Corrective Self-Consistency in Text-to-SQL via Reinforcement Learningcited by 15
  5. 2025LLM/Agent-as-Data-Analyst: A Surveycited by 15
  6. 2025MARS-SQL: A multi-agent reinforcement learning framework for Text-to-SQLcited by 14
  7. 2026Pervasive Annotation Errors Break Text-to-SQL Benchmarks and Leaderboardscited by 12
  8. 2025ST-Raptor: LLM-Powered Semi-Structured Table Question Answeringcited by 11
  9. 2025Beluga: A CXL-Based Memory Architecture for Scalable and Efficient LLM KVCache Managementcited by 11
  10. 2025SLM-SQL: An Exploration of Small Language Models for Text-to-SQLcited by 10
  11. 2025Text-to-SQL as Dual-State Reasoning: Integrating Adaptive Context and Progressive Generationcited by 8
  12. 2025LogicCat: A Chain-of-Thought Text-to-SQL Benchmark for Complex Reasoningcited by 7
38 more
  1. 2025Plugging Schema Graph into Multi-Table QA: A Human-Guided Framework for Reducing LLM Reliancecited by 7
  2. 2026APEX-SQL: Talking to the data via Agentic Exploration for Text-to-SQLcited by 7
  3. 2026Arming Data Agents with Tribal Knowledgecited by 6
  4. 2025SING-SQL: A Synthetic Data Generation Framework for In-Domain Text-to-SQL Translationcited by 5
  5. 2025RAISE: Reasoning Agent for Interactive SQL Explorationcited by 4
  6. 2025Pi-SQL: Enhancing Text-to-SQL with Fine-Grained Guidance from Pivot Programming Languagescited by 3
  7. 2026RoboPhD: Self-Improving Text-to-SQL Through Autonomous Agent Evolutioncited by 3
  8. 2026Memo-SQL: Structured Decomposition and Experience-Driven Self-Correction for Training-Free NL2SQLcited by 3
  9. 2025Text2Schema: Filling the Gap in Designing Database Table Structures based on Natural Languagecited by 2
  10. 2025Toward Real-World Table Agents: Capabilities, Workflows, and Design Principles for LLM-based Table Intelligencecited by 2
  11. 2025Node-Level Uncertainty Estimation in LLM-Generated SQLcited by 2
  12. 2025AGRO-SQL: Agentic Group-Relative Optimization with High-Fidelity Data Synthesiscited by 2
  13. 2025HES-SQL: Hybrid Reasoning for Efficient Text-to-SQL with Structural Skeleton Guidancecited by 1
  14. 2025Squrve: A Unified and Modular Framework for Complex Real-World Text-to-SQL Taskscited by 1
  15. 2026ErrorLLM: Modeling SQL Errors for Text-to-SQL Refinementcited by 1
  16. 2026Human-Level Text-to-SQL via Reinforcement Learning on Verified Data, Without Pipeline Engineeringcited by 1
  17. 2026NL2SQLBench: A Modular Benchmarking Framework for LLM-Enabled NL2SQL Solutionscited by 1
  18. 2026R3-SQL: Ranking Reward and Resampling for Text-to-SQLcited by 1
  19. 2026SQLConductor: Search-to-Policy Learning for Step-wise Text-to-SQL Orchestrationcited by 1
  20. 2026SQLMorph: Query Mutation and Fine-Grained Metrics for Text-to-SQL Evaluationcited by 1
  21. 2025Agentic generative AI for media content discovery at the national football leaguecited by 0
  22. 2025GEMMA-SQL: A Novel Text-to-SQL Model Based on Large Language Modelscited by 0
  23. 2025Bridging Global Intent with Local Details: A Hierarchical Representation Approach for Semantic Validation in Text-to-SQLcited by 0
  24. 2026Boundary-Aware NL2SQL: Integrating Reliability through Hybrid Reward and Data Synthesiscited by 0
  25. 2026ROSE: An Intent-Centered Evaluation Metric for NL2SQLcited by 0
  26. 2026Reliable Answers for Recurring Questions: Boosting Text-to-SQL Accuracy with Template Constrained Decodingcited by 0
  27. 2026ZAS-SQL: Distilling Rules from Failures for Zero-Shot Text-to-SQLcited by 0
  28. 2026Data Intelligence Agents: Interpreting, Modeling, and Querying Enterprise Data via Autonomous Coding Agentscited by 0
  29. 2026STRATOS: Bridging the Symbolic-to-Numeric Gap in Spatio-Temporal Text-to-SQL for Meteorological Datacited by 0
  30. 2026Beyond Static Rules: Automated Discovery of Latent Vulnerabilities in Text-to-SQLcited by 0
  31. 2026Benchmarking Text-to-SQL under Role-Based Access Controlcited by 0
  32. 2026SafeQL: Search-based Refinement for Safe and Efficient LLM-based Text-to-SQLcited by 0
  33. 2026DexterSQL: Deep Schema Exploration and Rule-based Correction for Text-to-SQL Generationcited by 0
  34. 2026Iteration Without Elaboration: A Simple ReAct Architecture Suffices for Text-to-SQL Generationcited by 0
  35. 2026Are These Modules Worth Their Cost? A Paradigm-Level Accuracy-Cost Analysis of In-context Learning Text-to-SQLcited by 0
  36. 2026BIRD-History: A Benchmark for History-Driven Text-to-SQL with Fine-Grained Knowledge Annotationscited by 0
  37. 2026ProcArena: A Multi-Scenario Benchmark for LLMs on Direct and Interactive PL/SQL Development from Natural Languagecited by 0
  38. 2026TQTS-Bench: A Multi-Syntax Benchmark for Text-to-Query over Time-Series Databasescited by 0

50 most cited of 51 All 51 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2025Multilingual Text-to-SQL: Benchmarking the Limits of Language Models with Collaborative Language Agents
  2. 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQL
  3. 2024Open-SQL Framework: Enhancing Text-to-SQL on Open-source Large Language Models
  4. 2025SQL-o1: A Self-Reward Heuristic Dynamic Search Method for Text-to-SQL
  5. 2024ROUTE: Robust Multitask Tuning and Collaboration for Text-to-SQL
  6. 2024Tool-Assisted Agent on SQL Inspection and Refinement in Real-World Scenarios
  7. 2025BAPPA: Benchmarking Agents, Plans, and Pipelines for Automated Text-to-SQL Generation
  8. 2025A Multi-agent Text2SQL Framework using Small Language Models and Execution Feedback