Spider
223 papers · 603 extracted observations · text to sql · code · Markdown · CSV · JSON API
Comparable Cohort Timeline (proposed/measured methods; excludes quoted baselines)
Proposed/measured results matching split=val.
Click any point on the timeline to inspect method, protocol, and paper.
| # | Method | Score ↑ | Year | Protocol / Settings | Paper & Evidence |
|---|---|---|---|---|---|
| 1 | HHNAS-AM Model 4 (RoBERTa with parallel CNNs for LLM and rule-based features) SOTA frontier (+5 variants) | 98.21% | 2025-08-01 | epochs=20 · classes=86 · batch-size=16 · 86 classes; 70/15/15 train/validation/test split. Maximum across the search run; one … | HHNAS-AM: Hierarchical Hybrid Neural Architecture Search using Adaptive Mutation PoliciesSource quoteM4 │ 98.21 │ 94.76 │ 10 |
| 2 | SQL-of-Thought (Claude 3 Opus) SOTA frontier (+3 variants) | 95% | 2025-01-01 | model=Claude 3 Opus · subset=first 100 samples · First 100 samples; Claude 3 Opus; full SQL-of-Thought configuration; temperature 0 | SQL-of-Thought: Multi-agentic Text-to-SQL with Guided Error CorrectionSource quoteClaude 3 Opus │ 95 │ 85 │ 90 |
| 3 | DecoSearch (DeepSeek backbone) | 88.31% | 2026-06-01 | backbone=DeepSeek · training=training-free · Training-free; dev split per the comparison-table headers. | DecoSearch: Complexity-Aware Routing and Plan-Level Repair for Text-to-SQLSource quoteDecoSearch achieves 70.53% execution accuracy on BIRD and 88.31% on Spider with a DeepSeek backbone, surpassing all training-free baselines while consuming an order of magnitude fewer tokens than competing methods. |
| 4 | DataGpt-sql-7B + Invalid-SQL Feedback SOTA frontier (+1 variant) | 87.2% | 2024-09-01 | params=7B · feedback=invalid-SQL · model-size=7B · Spider-dev evaluation; system includes Invalid-SQL Feedback. | DataGpt-SQL-7B: An Open-Source Language Model for Text-to-SQLSource quoteDataGpt-sql-7B + Invalid-SQL Feedback │ 87.2 │ 83.8 \tabularnewline |
| 5 | MATS (9B) | 87.1% | 2025-12-01 | params=9B · Development split; MATS framework, 9B total parameters. | A Multi-agent Text2SQL Framework using Small Language Models and Execution FeedbackSource quote\texttt{MATS}\xspace │ 9B │ 87.1 │ 82.3 │ 13.9 |
| 6 | SuperSQL (GPT-4) SOTA frontier | 87% | 2024-01-01 | model=GPT-4 · Overall development-set result; reported in the Spider/BIRD development-set economy t… | The Dawn of Natural Language to SQL: Are We Fully Ready? [Experiment, Analysis & Benchmark ]Source quote\multicolumn{1}{c|}{87.0} |
| 7 | Progress-SQL-7B (+1 variant) | 86.6% | 2026-06-01 | params=7B · decoding=greedy · difficulty=all · All-difficulty aggregate; greedy decoding; evaluated with standard single-turn infere… | Progress-SQL: Improving Reinforcement Learning for Text-to-SQL via Progressive RewardsSource quote96.0 │ 90.4 │ 82.2 │ 66.9 │ 86.6 |
| 8 | SQLForge-LM | 85.7% | 2025-01-01 | Dev split; greedy decoding; reported among open-source models. | SQLForge: Synthesizing Reliable and Diverse Data to Enhance Text-to-SQL Reasoning in LLMsSource quoteBuilding on the augmented data, we fine-tune a variety of open-source models with different architectures and parameter sizes, resulting in a family of models termed SQLForgeLM. SQLForge-LM achieves the state-of-theart performance on the widely recognized Spider and BIRD benchmarks among the opensource models. Specifically, SQLForge-LM achieves EX accuracy of 85.7% on Spider Dev and 59.8% on BIRD Dev, significantly narrowing the performance gap with closed-source methods. |
| 9 | FINER-SQL 3B | 85% | 2026-05-01 | params=3B · Development set; schema filtering retrieves the top 30 relevant columns; generates 30… | FINER-SQL: Boosting Small Language Models for Text-to-SQLSource quote\texttt{FINER-SQL}\xspace 3B (Ours) │ 67.73 │ 85.0 |
| 10 | ORM-based BoN | 84.53% | 2026-06-01 | candidates=32 · N=32 candidates; test-time selection. The table reports execution accuracy (%) across… | Test-Time Verification for Text-to-SQL via Outcome Reward ModelsSource quote32 │ 66.04 │ 82.79 │ 85.14 │ 66.95 │ 83.75 │ 85.47 │ 68.90 │ 84.53 │ 87.47 │ 80.57 │ 91.68 │ 93.29 |
| 11 | Open-SQL (7B; same procedure as the BIRD experiments) | 84.1% | 2024-05-01 | method=Open-SQL · params=7B · model-size=7B · Spider leaderboard result; the conclusion says the same procedures were used on Spide… | Open-SQL Framework: Enhancing Text-to-SQL on Open-source Large Language ModelsSource quote5 │ Open-SQL (Ours) │ 7B │ 84.1 |
| 12 | PARSQL-3Bllm (+1 variant) | 83.8% | 2025-01-01 | params=3B · backbone=CodeS-3B · inference=first-valid-execution · CodeS-3B backbone; LLM-based reason pairs; PARSQLllm uses first-valid-execution at in… | PARSQL: Enhancing Text-to-SQL through SQL Parsing and ReasoningSource quote83.8 (+1.6) |
| 13 | SQL component pre-generation + AST matching reward (GRPO; Qwen2.5-Coder-7B-Instruct) | 83% | 2026-01-01 | params=7B · Main model setup; trained on BIRD only, without SPIDER training data. | Addressing Semantic Blind Spots in Text-to-SQL via Component Pre-generation and AST Matching RewardsSource quote(2) Our method has good generalization. We train only on the BIRD training set, yet achieve 83% and 84.4% execution accuracy on SPIDER-DEV and SPIDER-TEST. This |
| 14 | LogicalBeam SOTA frontier | 81.3% | 2023-01-01 | outputs=top-5 · dev split. | Benchmarking and Improving Text-to-SQL Generation under AmbiguitySource quoteLogicalBeam │ 78.4 │ 81.3 |
| 15 | S²SQL + ELECTRA SOTA frontier | 76.4% | 2022-01-01 | pretraining=ELECTRA · Development set; ELECTRA pre-training | S²SQL: Injecting Syntax to Question-Schema Interaction Graph Encoder for Text-to-SQL ParsersSource quoteSimilarity, the accuracy of the SOTA model LGESQL + ELECTRA is 72.0% on the hidden test set, and 75.1% on the development set, while S^2SQL + ELECTRA can reach 72.1% test and 76.4 development accuracy. |
| 16 | MTSQL | 75.6% | 2024-03-01 | Development split: 1,034 question-SQL pairs; databases do not overlap with training. | Schema-Aware Multi-Task Learning for Complex Text-to-SQLSource quoteMTSQL │ 75.6 \\[2pt] |
| 17 | Turing + RoBERTa (best reported run) SOTA frontier | 75.1% | 2021-01-01 | backbone=RoBERTa · Cross-domain Text-to-SQL; best result reported in the comparison table. | TURING: an Accurate and Interpretable Multi-Hypothesis Cross-Domain Natural Language Database InterfaceSource quote{Turing + RoBERTa} │ {75.1 (\text{best}), 73.8 ± 0.7} |
| 18 | RAT-SQL + NatSQL | 74.6% | 2021-01-01 | RAT-SQL extended with GAP; NatSQL representation. | Natural SQL: Making SQL Easier to Infer from Natural Language SpecificationsSource quoteRAT-SQL + NatSQL │ \bf 73.7% │ 74.6% |
| 19 | RECPARSER (BERT) SOTA frontier (+3 variants) | 63.1% | 2020-01-01 | backbone=BERT-base · database-content=used · Development set; BERT-enhanced RECPARSER (BERT-base), using database content. | RECPARSER: A Recursive Semantic Parsing Framework for Text-to-SQL TaskSource quote63.1% |
| 20 | SyntaxSQLNet + Data Augmentation SOTA frontier (+5 variants) | 61.9% | 2019-01-01 | Development set; Spider split has 1,034 examples and 40 databases. Table 2. | Graph Enhanced Cross-Domain Text-to-SQL GenerationSource quote61.9% |
| 21 | IRNet + PIIA (+1 variant) | 59.3% | 2020-01-01 | selection=ideal · evaluation=PIIA simulation · simulated-options=up to 100 combinations · Simulation comparison on the Spider development set (1,034 samples); the test set is … | "What Do You Mean by That?" A Parser-Independent Interactive Approach for Enhancing Text-to-SQLSource quote{~~~~~~+PIIA} │ 59.3 │ {N/A} │ 2.9 |
| 22 | Base Parser + DG-MAML (+1 variant) | 58.5% | 2021-01-01 | Development set; base parser without pretrained representations, trained with DG-MAML… | Meta-Learning for Domain Generalization in Semantic ParsingSource quote\quad Base Parser + DG-MAML │ 58.5 |
| 23 | EditSQL + Bertrand-DR (+1 variant) | 58.5% | 2020-02-01 | beam-size=10 · candidate-generator=EditSQL · Bertrand-DR reranks EditSQL beam candidates; the reranker training/dev candidate data… | Bertrand-DR: Improving Text-to-SQL using a Discriminative Re-rankerSource quoteEditSQL │ 57.6 │ 58.5 │ 78.7 |
| 24 | EditSQL+Feedback (BERT-equipped) | 53.73% | 2020-01-01 | backbone=BERT · interaction=two-turn · initial-parser=Seq2Struct · Two-turn interaction: Seq2Struct parses first; if incorrect, the correction model use… | Speak to your Parser: Interactive Text-to-SQL with Natural Language FeedbackSource quote\ \ \ \ \ \Rightarrow EditSQL+Feedback │ 25.16 │ 53.73 |
| 25 | CFGNN (ours, full model) | 48.7% | 2020-01-01 | Development set; all SQL queries; official exact-matching evaluation. | CFGNN: Cross Flow Graph Neural Networks for Question Answering on Complex TablesSource quote48.7% |
| 26 | SyntaxSQLNet (BERT), SemQL output (+1 variant) | 35.8% | 2019-01-01 | output=SemQL · backbone=BERT · evaluation=database-split · Development set; database split; BERT-augmented SyntaxSQLNet trained to generate SemQ… | Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate RepresentationSource quoteSyntaxSQLNet(BERT) │ 25.0% │ 35.8%(+10.8) |
| 27 | SyntaxSQLNetAug + DAE (+1 variant) | 27.4% | 2019-01-01 | Spider dev set; overall across query hardness levels. | Data-Anonymous Encoding for Text-to-SQL GenerationSource quote27.4(+2.5) |
Showing 113 of 113 matching observations.
| Year | Method | Metric | Score | Protocol / Facets | Paper & Evidence |
|---|---|---|---|---|---|
| 2026 | Progress-SQL-7B proposed | Execution accuracy (EX) | 86.8% | split: test · params=7B · decoding=greedy · difficulty=all | Progress-SQL: Improving Reinforcement Learning for Text-to-SQL via Progressive RewardsSource quoteL1030: 93.8 │ 90.2 │ 82.9 │ 74.2 │ 86.8 |
| 2026 | SGT, DPO iteration 4 (Qwen3-1.7B supplement generator) proposed | Accuracy | 0.825 | split: test · actor=v3.5-sonnet-v2 · params=1.7B · DPO-iteration=4 · supplement-generator=Qwen3-1.7B | Supplement Generation Training for Enhancing Agentic Task PerformanceSource quoteL428: \pi (4)_\mathcal{S}\rightarrow\pi_\mathcal{A} │ 0.825 │ 0.620 │ 0.700 │ 0.037 │ 0.212 │ 0.747 │ 0.520 │ 0.713 │ 0.046 │ 0.385 │ 14% |
| 2026 | R^3-SQL (groupwise Point + List + FMV) proposed | EX (execution accuracy) | 87.19% | split: test · params=32B · backbone=Arctic-Text2SQL-R1-32B · candidate-pool=32 · resampled-candidates=1024 | R$^3$-SQL: Ranking Reward and Resampling for Text-to-SQLSource quoteL451: \ours │ Groupwise (Point + List) + FMV │ 75.03 │ 87.19 │ 77.92 │ 80.05 │ 46.30 │ 66.82 │ 56.56 |
| 2026 | EvolSQL proposed | EX | 86.1% | split: test | EvolSQL: Structure-Aware Evolution for Scalable Text-to-SQL Data SynthesisSource quoteL324: On Spider benchmark, {\sc EvolSQL}\xspace achieves a competitive 86.1% EX on the test set, outperforming recent specialized SFT models such as SQLFLOW and SENSE-7B. Notably, our evolutionary synthesis was conducted exclusively using BIRD schemas and seeds. The performance gains on Spider demonstrate that {\sc EvolSQL}\xspace effectively instills general structural reasoning capabilities. This confirms that the complexity and logical depth introduced by our evolution are domain-agnostic, providing a robust foundation for real-world generalization even on benchmarks not involved in the synthesis process. |
| 2026 | Consispace proposed | Dice | 90.56% | split: test | Towards Voxel Spacing Consistency for Medical Image SegmentationSource quoteL248: Comparison with voxel-spacing-oriented approaches. Table \ref{tab segmentation}(b) demonstrates that our method yields more significant improvements in downstream segmentation compared with prior voxel-spacing-oriented methods across three datasets. In contrast to Synthseg \cite{billot2023synthseg} and Hyperspace \cite{joutard2024hyperspace}, we achieve the highest Dice score and the lowest HD95 on testing datasets of SPIDER (90.56%/3.48mm), TopCow24 (90.83%/1.88mm), and BraTS20 (87.20%/5.39mm). Indeed, DINOv3 is incorporated to extract high-quality semantic similarities. These semantic cues are injected by reweighting interpolated features generated by the ODE interpolator, boosting the intra-class semantic consistency within anatomical structures. Thus, the proposed framework effectively bridges the upstream resampling task and the downstream segmentation objective, rather than treating them as two isolated tasks. This contributes to the superior downstream segmentation performance of our method compared with other spacing-oriented approaches. |
| 2026 | SQL-Zero-7B iter3 (base-init) proposed | execution accuracy | 79.8% | split: test · model=SQL-Zero-7B · params=7B · protocol=self-play spiral · iteration=3 · initialization=base | SQL-Zero: Self-Evolving Text-to-SQLSource quoteL450: SQL-Zero-7B iter3 (base-init) │ 58.4 │ 79.8 │ 70.4 |
| 2026 | SQLoom (Qwen3-1.7B) proposed | Execution accuracy (EX) | 89.2% | split: test · fine-tuned · params=1.7B | SQLoom: Set-Contrastive Learning of Syntactic, Semantic, and Logical Dependencies for Text-to-SQLSource quoteL46: reaching 89.2% on Spider test and 73.4% on BIRD development. It |
| 2026 | ORM-based BoN proposed | Execution accuracy | 87.47% | split: test · candidates=32 | Test-Time Verification for Text-to-SQL via Outcome Reward ModelsSource quoteL359: 32 │ 66.04 │ 82.79 │ 85.14 │ 66.95 │ 83.75 │ 85.47 │ 68.90 │ 84.53 │ 87.47 │ 80.57 │ 91.68 │ 93.29 |
| 2026 | SQL component pre-generation + AST matching reward (GRPO; Qwen2.5-Coder-7B-Instruct) proposed | EX (execution accuracy) | 84.4% | split: test · params=7B | Addressing Semantic Blind Spots in Text-to-SQL via Component Pre-generation and AST Matching RewardsSource quoteL240: (2) Our method has good generalization. We train only on the BIRD training set, yet achieve 83% and 84.4% execution accuracy on SPIDER-DEV and SPIDER-TEST. This |
| 2026 | No-supplement actor (∅→π_A) ablation | Accuracy | 0.641 | split: test · actor=v3.5-sonnet-v2 · supplements=none | Supplement Generation Training for Enhancing Agentic Task PerformanceSource quoteL212: Across benchmarks, we observe that the effectiveness of supplement generation depends on the nature of reasoning demanded by each task. The largest gains appear in structured reasoning tasks such as Spider and DS-1000, where the actor must decompose inputs into compositional logic or code structures. In these settings, supplements likely help by externalizing intermediate reasoning steps and clarifying latent constraints before execution, allowing the actor to plan more systematically. For instance, Spider accuracy increases from 0.641 to 0.825 under v3.5-sonnet-v2, indicating that supplements enable more consistent schema mapping and query formulation. |
| 2026 | Majority Voting baseline | Execution accuracy | 85.47% | split: test · candidates=32 | Test-Time Verification for Text-to-SQL via Outcome Reward ModelsSource quoteL359: 32 │ 66.04 │ 82.79 │ 85.14 │ 66.95 │ 83.75 │ 85.47 │ 68.90 │ 84.53 │ 87.47 │ 80.57 │ 91.68 │ 93.29 |
| 2025 | LLaMA-3.1 70B ExCoT proposed | execution accuracy | 86.59% | split: test · fine-tuned · params=70B · backbone=LLaMA-3.1 70B · reasoning=Complex CoT | Optimizing Reasoning for Text-to-SQL with Execution FeedbackSource quoteL169: Table~\ref{tab:main} summarizes our main results on the BIRD and Spider benchmarks. Notably, for LLaMA-3.1 70B model~\citep{dubey2024llama}, our ExCoT\xspace approach improves BIRD performance from 58.14% to 68.51% with both off-policy and on-policy DPO, representing a significant 10.37% gain. Similarly, on Spider, our ExCoT\xspace approach improves the SFT model's performance of 82.49% to 86.59%. On both datasets, our approach achieves state-of-the-art performance in the single-model setting. With Qwen-2.5-Coder 32B~\citep{hui2024qwen2} model as the base model, our ExCoT\xspace approach outperforms recent work XiyanSQL~\citep{gao2024xiyan} which uses the same base model, demonstrating the effectiveness of our approach. Our best model even outperforms state-of-the-art proprietary models, including OpenAI o1-mini~\citep{jaech2024openai} and o3-mini, which are built with chain-of-thought ability and optimized for reasoning. Notably, ExCoT achieves 68.53% on BIRD test set, the highest performance among single models, as shown in Table~\ref{tab:test}. |
| 2025 | ConstrainedSQL (Ours), Qwen2.5-Coder-7B proposed | Execution Accuracy | 86.7 | split: test · params=7B | ConstrainedSQL: Training LLMs for Text2SQL via Constrained Reinforcement LearningSource quoteL218: ConstrainedSQL (Ours) │ Qwen2.5-Coder-7B │ 85.2 │ 86.7 │ 61.9 |
| 2025 | OpenSearch-SQL + GPT-4o proposed | EX | 87.1% | split: test · few-shot · model=GPT-4o-0513 | OpenSearch-SQL: Enhancing Text-to-SQL with Dynamic Few-shot and Consistency AlignmentSource quoteL422: OpenSearch-SQL+GPT-4o │ 87.1 |
| 2025 | End-to-end Text-to-SQL: Gpt-4o-mini proposed | EX | 92.44 | split: test · model=GPT-4o-mini | End-to-End Text-to-SQL with Dataset Selection: Leveraging LLMs for Adaptive Query GenerationSource quoteL304: End-to-end Text-to-SQL: Gpt-4o-mini (ours) │ 92.44 │ 64.78 |
| 2025 | End-to-end Text-to-SQL: Gpt-3.5-turbo proposed | EX | 91.44 | split: test · model=GPT-3.5-turbo | End-to-End Text-to-SQL with Dataset Selection: Leveraging LLMs for Adaptive Query GenerationSource quoteL305: End-to-end Text-to-SQL: Gpt-3.5-turbo (ours) │ 91.44 │ 60.45 |
| 2025 | db_id Prediction Model (our; hybrid RoBERTa-base) proposed non-standard slice | NDCG | 0.945 | split: test · subset=merged train/dev/test · backbone=RoBERTa-base | End-to-End Text-to-SQL with Dataset Selection: Leveraging LLMs for Adaptive Query GenerationSource quoteL279: MODEL │ Test NLQ │ Within Top 5 │ More than top5 │ NDCG │ MAP │ Precision @1 │ Recall @1 db\_id Prediction Model (our) │ 1058 │ 1036 │ 21 │ 0.945 │ 0.933 │ 0.901 │ 0.899 |
| 2025 | db_id Prediction Model (our; hybrid RoBERTa-base) proposed non-standard slice | MAP | 0.933 | split: test · subset=merged train/dev/test · backbone=RoBERTa-base | End-to-End Text-to-SQL with Dataset Selection: Leveraging LLMs for Adaptive Query GenerationSource quoteL279: MODEL │ Test NLQ │ Within Top 5 │ More than top5 │ NDCG │ MAP │ Precision @1 │ Recall @1 db\_id Prediction Model (our) │ 1058 │ 1036 │ 21 │ 0.945 │ 0.933 │ 0.901 │ 0.899 |
| 2025 | db_id Prediction Model (our; hybrid RoBERTa-base) proposed non-standard slice | Precision @1 | 0.901 | split: test · subset=merged train/dev/test · backbone=RoBERTa-base | End-to-End Text-to-SQL with Dataset Selection: Leveraging LLMs for Adaptive Query GenerationSource quoteL279: MODEL │ Test NLQ │ Within Top 5 │ More than top5 │ NDCG │ MAP │ Precision @1 │ Recall @1 db\_id Prediction Model (our) │ 1058 │ 1036 │ 21 │ 0.945 │ 0.933 │ 0.901 │ 0.899 |
| 2025 | db_id Prediction Model (our; hybrid RoBERTa-base) proposed non-standard slice | Recall @1 | 0.899 | split: test · subset=merged train/dev/test · backbone=RoBERTa-base | End-to-End Text-to-SQL with Dataset Selection: Leveraging LLMs for Adaptive Query GenerationSource quoteL279: MODEL │ Test NLQ │ Within Top 5 │ More than top5 │ NDCG │ MAP │ Precision @1 │ Recall @1 db\_id Prediction Model (our) │ 1058 │ 1036 │ 21 │ 0.945 │ 0.933 │ 0.901 │ 0.899 |
| 2025 | SPFT-SQL+Qwen2.5 Coder-32B proposed | EX | 89.1 | split: test · params=32B · backbone=Qwen2.5 Coder-32B | SPFT-SQL: Enhancing Large Language Model for Text-to-SQL Parsing by Self-Play Fine-TuningSource quoteL604: SPFT-SQL+Qwen2.5 Coder-32B │ 89.1 │ 65.2 |
| 2025 | DCG-SQL proposed | Retrieval latency | 1.3 s | split: test · params=8B · backbone=Llama-3.1-8B-Instruct | DCG-SQL: Enhancing In-Context Learning for Text-to-SQL with Deep Contextual Schema Link GraphSource quoteL890: 1.3 |
| 2025 | JOLT-SQL + Qwen2.5-Coder-14B proposed | Execution accuracy (EX) | 88.9% | split: test · fine-tuned · params=14B · backbone=Qwen2.5-Coder-14B | JOLT-SQL: Joint Loss Tuning of Text-to-SQL with Confusion-aware Noisy Schema SamplingSource quoteL235: Table \ref{main_table} presents our main experimental results and a comparison with baselines. JOLT-SQL demonstrates excellent performance on both the Spider and BIRD benchmarks. Specifically, JOLT-SQL using the Qwen2.5-Coder-14B model achieves execution accuracies of 88.4%, 88.9%, and 64.9% on the Spider Dev set, Test set, and BIRD Dev Set, respectively. This performance is state-of-the-art among open-source models of comparable size based on SFT. Notably, JOLT-SQL with Qwen2.5-Coder-7B even surpasses larger models like CodeS-15B and SENSE-13B in results. |
| 2025 | MARS-SQL proposed | Execution Accuracy | 89.75% | split: test · training-data=BIRD only | MARS-SQL: A Multi-Agent Reinforcement Learning Framework For Text-To-SQLSource quoteL180: The out-of-domain generalization of MARS-SQL is particularly noteworthy, demonstrated by its strong performance on both the Spider-test and Spider-DK benchmarks. On the broad Spider-test set, it achieves a state-of-the-art score of 89.75%, showcasing exceptional generalization to unseen schemas and question types. This robustness extends to the specialized Spider-DK benchmark—which tests for implicit domain knowledge—where MARS-SQL secures a competitive second-highest score of 78.13%. Crucially, these results were achieved without any exposure to the Spider training set. This contrasts with competitors like Arctic-Text2SQL-R1, which required training on Spider data (from which Spider-DK is derived) to achieve its high scores. Therefore, our model's performance highlights that training solely on the diverse BIRD dataset effectively equips it for broad cross-domain and knowledge-intensive challenges. |
| 2025 | DB-Explore + Qwen2.5-Coder-7B proposed | Dev-TS (Test-Suite Accuracy) | 79.3 | split: test · fine-tuned · params=7B | DB-Explore: Automated Database Exploration and Instruction Synthesis for Text-to-SQLSource quoteL184: Ours: DB-Explore + Qwen2.5-Coder-7B │ 84.0 │ 79.3 │ 52.1 │ 55.8 |
| 2025 | MPS (beam) proposed | Brier | 0.1545 | split: test · params=3B · outputs=10 · backbone=T5 3B · beam-width=20 · calibration=MPS · output-generation=beam search | Calibrating LLMs for Text-to-SQL Parsing by Leveraging Sub-clause FrequenciesSource quoteL1082: MPS (beam) │ 0.1545 │ 0.0261 │ 0.0355 │ 0.7873 |
| 2025 | MPS (beam) proposed | ECE | 0.0261 | split: test · params=3B · outputs=10 · backbone=T5 3B · beam-width=20 · calibration=MPS · output-generation=beam search | Calibrating LLMs for Text-to-SQL Parsing by Leveraging Sub-clause FrequenciesSource quoteL1082: MPS (beam) │ 0.1545 │ 0.0261 │ 0.0355 │ 0.7873 |
| 2025 | MPS (beam) proposed | ACE | 0.0355 | split: test · params=3B · outputs=10 · backbone=T5 3B · beam-width=20 · calibration=MPS · output-generation=beam search | Calibrating LLMs for Text-to-SQL Parsing by Leveraging Sub-clause FrequenciesSource quoteL1082: MPS (beam) │ 0.1545 │ 0.0261 │ 0.0355 │ 0.7873 |
| 2025 | OmniSQL-7B proposed | Execution accuracy (EX) | 87.9% | split: test · fine-tuned · params=7B · decoding=greedy | OmniSQL: Synthesizing High-quality Text-to-SQL Data at ScaleSource quoteL294: OmniSQL\xspace-7B │ 81.2 │ 81.6 │ 87.9 │ 88.9 │ 63.9 │ 66.1 │ 10.4 │ 10.4 │ 50.2 │ 55.9 │ 34.9 │ 40.0 │ 76.1 │ 77.8 │ 69.7 │ 69.6 │ 76.2 │ 78.0 │ 61.2 │ 63.1 |
| 2025 | SDE-SQL (SFT) proposed | test(EX) | 88.5 | split: test · fine-tuned · training-data=BIRD train | SDE-SQL: Enhancing Text-to-SQL Generation in Large Language Models via Self-Driven Exploration with SQL ProbesSource quoteL197: SDE-SQL (SFT) │ 87.5 │ 88.5 |
| 2025 | GBV-SQL + No Gold Errors proposed non-standard slice | execution accuracy (EX) | 97.6% | split: test · subset=No Gold Errors | GBV-SQL: Guided Generation and SQL2Text Back-Translation Validation for Multi-Agent Text2SQLSource quoteL167: GBV-SQL + No Gold Errors │ 96.5 │ 97.6 |
| 2025 | GBV-SQL + Deepseek-v3 proposed | execution accuracy (EX) | 82.8% | split: test · backbone=Deepseek-v3 | GBV-SQL: Guided Generation and SQL2Text Back-Translation Validation for Multi-Agent Text2SQLSource quoteL165: GBV-SQL + Deepseek-v3 (ours) │ 79.6 │ 82.8(\uparrow5.2%) |
| 2025 | DeepEye-SQL with Qwen3-Coder-30B-A3B proposed | execution accuracy (EX) | 89.8% | split: test · 0-shot · params=30B · backbone=Qwen3-Coder-30B-A3B · fine-tuning=none | DeepEye-SQL: A Software-Engineering-Inspired Text-to-SQL FrameworkSource quoteL506: On the Spider-Test dataset, DeepEye-SQL\xspace with \texttt{Qwen3-Coder-30B-A3B} achieves an execution accuracy of 89.8%. This performance matches the best fine-tuned method, OmniSQL, and surpasses other strong competitors like XiYan-SQL (89.7%). This demonstrates that our prompting-based framework can attain the same level of accuracy as highly specialized, fine-tuned models on this foundational benchmark without incurring any training costs. |
| 2025 | MageSQL proposed | EX (%) | 86.8% | split: test · few-shot · backbone=GPT-4 | MageSQL: Enhancing In-context Learning for Text-to-SQL Applications with Large Language ModelsSource quoteL429: \ensuremath{\mathsf{MageSQL}}\xspace │ 69.7 │ 87.4 │ 67.2 │ 86.8 |
| 2025 | SynSQL(50K) proposed non-standard slice | Execution accuracy (Gre) | 81.8 | split: test · fine-tuned · params=7B · backbone=Qwen2.5-Coder-7B-Instruct · decoding=greedy · training-data=SynSQL · training-examples=50K | DataFlow: An LLM-Driven Framework for Unified Data Preparation and Workflow Automation in the Era of Data-Centric AISource quoteL739: SynSQL(50K) │ 77.1 │ 82.1 │ 81.8 │ 84.8 │ 54.0 │ 59.3 │ 33.1 │ 44.1 │ 67.1 │ 69.5 │ 68.0 │ 70.6 │ 77.2 │ 80.3 │ 65.5 │ 70.1 |
| 2025 | Skeletron 7B ablation | EX | 84.7 | split: test · params=7B | Skeletons Matter: Dynamic Data Augmentation for Text-to-QuerySource quoteL194: \multirow{-2}{*}{} │ EX │ TS │ EX │ EX Skeletron 7B │ 85.7 │ 78.2 │ 84.7 │ 61.4 |
| 2025 | No schema linking (Full) ablation | SQL execution accuracy | 77.3 | split: test | Extractive Schema Linking for Text-to-SQLSource quoteL261: Full │ 78.7 │ 77.3 │ 62.4 │ 69.7 │ 69.5 |
| 2025 | Qwen2.5-Coder-7B-Instruct fine-tuned on SQLFlow(50k) | Execution accuracy (Gre) | 84.6% | split: test · fine-tuned · params=7B | Text2sql-Flow: a Robust Sql-Aware Data Augmentation Framework for Text-To-SqlSource quoteL324: SQLFlow(50k) │ 80.9 │ 84.9 │ 84.6 │ 85.8 │ 57.9 │ 62.5 │ 27.8 │ 39.4 │ 69.7 │ 71.2 │ 70.0 │ 74.0 │ 77.8 │ 82.1 │ 67.0 │ 71.4 |
| 2025 | Qwen2.5-Coder-7B-Instruct fine-tuned on SynSQL(50k) | Execution accuracy (Gre) | 81.8% | split: test · fine-tuned · params=7B | Text2sql-Flow: a Robust Sql-Aware Data Augmentation Framework for Text-To-SqlSource quoteL320: SynSQL(50k) │ 77.1 │ 82.1 │ 81.8 │ 84.8 │ 54.0 │ 59.3 │ 33.1 │ 44.1 │ 67.1 │ 69.5 │ 68.0 │ 70.6 │ 77.2 │ 80.3 │ 65.5 │ 70.1 |
| 2025 | SQL-R1, Qwen2.5-Coder-7B | Execution Accuracy | 86.1 | split: test · params=7B | ConstrainedSQL: Training LLMs for Text2SQL via Constrained Reinforcement LearningSource quoteL217: SQL-R1 │ Qwen2.5-Coder-7B │ 84.5 │ 86.1 │ 63.1 |
| 2025 | DAIL-SQL | Retrieval latency | 9.1 s | split: test · params=8B · backbone=Llama-3.1-8B-Instruct | DCG-SQL: Enhancing In-Context Learning for Text-to-SQL with Deep Contextual Schema Link GraphSource quoteL885: 9.1 |
| 2025 | ToxicSQL poisoned T5-Base non-standard slice | Attack Success Rate (ASR) | 84.76% | split: test | Are Your LLM-based Text-to-SQL Models Secure? Exploring SQL Injection via Backdoor AttacksSource quoteL373: Comment │ 76.56 │ 58.87 │ 84.76 │ 75.50 │ 57.62 │ 81.89 │ 76.71 │ 58.92 │ 78.96 │ 76.46 │ 58.03 │ 80.41 |
| 2025 | LLaMA-3.1 70B SFT model baseline | execution accuracy | 82.49% | split: test · fine-tuned · params=70B · backbone=LLaMA-3.1 70B · training=SFT | Optimizing Reasoning for Text-to-SQL with Execution FeedbackSource quoteL169: Table~\ref{tab:main} summarizes our main results on the BIRD and Spider benchmarks. Notably, for LLaMA-3.1 70B model~\citep{dubey2024llama}, our ExCoT\xspace approach improves BIRD performance from 58.14% to 68.51% with both off-policy and on-policy DPO, representing a significant 10.37% gain. Similarly, on Spider, our ExCoT\xspace approach improves the SFT model's performance of 82.49% to 86.59%. On both datasets, our approach achieves state-of-the-art performance in the single-model setting. With Qwen-2.5-Coder 32B~\citep{hui2024qwen2} model as the base model, our ExCoT\xspace approach outperforms recent work XiyanSQL~\citep{gao2024xiyan} which uses the same base model, demonstrating the effectiveness of our approach. Our best model even outperforms state-of-the-art proprietary models, including OpenAI o1-mini~\citep{jaech2024openai} and o3-mini, which are built with chain-of-thought ability and optimized for reasoning. Notably, ExCoT achieves 68.53% on BIRD test set, the highest performance among single models, as shown in Table~\ref{tab:test}. |
| 2025 | CHASE-SQL+Gemini 1.5 baseline | EX | 87.6 | split: test · backbone=Gemini 1.5 | SPFT-SQL: Enhancing Large Language Model for Text-to-SQL Parsing by Self-Play Fine-TuningSource quoteL602: CHASE-SQL+Gemini 1.5 │ 87.6 │ 73.0 |
| 2025 | Qwen2.5-Coder-7B baseline | Execution accuracy | 79.4% | split: test · params=7B | SQL-R1: Training Natural Language to SQL Reasoning Model By Reinforcement LearningSource quoteL367: Qwen2.5-Coder-7B │ 77.4 │ 79.4 │ 58.2 |
| 2025 | PS baseline | Brier | 0.1626 | split: test · params=3B · backbone=T5 3B · calibration=Platt scaling | Calibrating LLMs for Text-to-SQL Parsing by Leveraging Sub-clause FrequenciesSource quoteL1081: PS │ 0.1626 │ 0.0626 │ 0.1102 │ 0.8108 |
| 2025 | PS baseline | ECE | 0.0626 | split: test · params=3B · backbone=T5 3B · calibration=Platt scaling | Calibrating LLMs for Text-to-SQL Parsing by Leveraging Sub-clause FrequenciesSource quoteL1081: PS │ 0.1626 │ 0.0626 │ 0.1102 │ 0.8108 |
| 2025 | PS baseline | ACE | 0.1102 | split: test · params=3B · backbone=T5 3B · calibration=Platt scaling | Calibrating LLMs for Text-to-SQL Parsing by Leveraging Sub-clause FrequenciesSource quoteL1081: PS │ 0.1626 │ 0.0626 │ 0.1102 │ 0.8108 |
| 2025 | DAIL-SQL + GPT-4 + Self-Consistency baseline | Accuracy | 86.6% | split: test · model=GPT-4 · decoding=self-consistency | OmniSQL: Synthesizing High-quality Text-to-SQL Data at ScaleSource quoteL328: OmniSQL\xspace consistently demonstrates leading performance on standard benchmarks, including Spider (dev), Spider (test), and BIRD (dev). Notably, OmniSQL\xspace-7B model attains an accuracy of 87.9% (greedy decoding) on Spider's test set, surpassing the best publicly available method on Spider's leaderboard\footnote{Spider's leaderboard can be found at \url{https://yale-lily.github.io/spider}. The top-ranked method, MiniSeek, is excluded from comparisons as it is not publicly available.}, DAIL-SQL + GPT-4 + Self-Consistency (86.6%)~\cite{Gao2024@dailsql}, by 1.3%. Additionally, by employing a simple majority voting strategy, OmniSQL\xspace's performance on the Spider test set improves to 88.9%, 88.3%, and 89.8% for the 7B, 14B, and 32B model scales, respectively. In addition, we observe that increasing the model scale does not yield consistent performance gains on Spider. This is likely due to Spider being a relatively simple benchmark, where smaller-scale but powerful models already achieve near-optimal performance. In contrast, as BIRD is more challenging than Spider, we can observe slight performance improvements as the scale of OmniSQL\xspace increases. Notable, OmniSQL\xspace-32B achieves 67.0% (major voting) accuracy on BIRD's development set, making it competitive with Distillery + GPT-4o (67.2%)~\cite{Maamari2024@Distillery}, which fine-tunes GPT-4o on BIRD's training set. |
| 2025 | Qwen2.5-72B-Instruct baseline | test(EX) | 84.0 | split: test · params=72B · backbone=Qwen2.5-72B-Instruct | SDE-SQL: Enhancing Text-to-SQL Generation in Large Language Models via Self-Driven Exploration with SQL ProbesSource quoteL206: Qwen2.5-72B-Instruct │ 73.9 │ 84.0 |
| 2025 | MAC-SQL + Deepseek-v3 baseline | execution accuracy (EX) | 77.6% | split: test · backbone=Deepseek-v3 | GBV-SQL: Guided Generation and SQL2Text Back-Translation Validation for Multi-Agent Text2SQLSource quoteL164: MAC-SQL + Deepseek-v3 │ 80.1 │ 77.6 |
| 2025 | XiYan-SQL baseline | execution accuracy (EX) | 89.7% | split: test | DeepEye-SQL: A Software-Engineering-Inspired Text-to-SQL FrameworkSource quoteL506: On the Spider-Test dataset, DeepEye-SQL\xspace with \texttt{Qwen3-Coder-30B-A3B} achieves an execution accuracy of 89.8%. This performance matches the best fine-tuned method, OmniSQL, and surpasses other strong competitors like XiYan-SQL (89.7%). This demonstrates that our prompting-based framework can attain the same level of accuracy as highly specialized, fine-tuned models on this foundational benchmark without incurring any training costs. |
| 2025 | DAIL-SQL baseline | EX (%) | 86.2% | split: test · backbone=GPT-4 | MageSQL: Enhancing In-context Learning for Text-to-SQL Applications with Large Language ModelsSource quoteL427: DAIL-SQL │ 71.9 │ 82.4 │ 86.2 |
| 2024 | SPINEPS two-phase approach proposed | instance-wise vertebra Dice score | 0.929 | split: test | SPINEPS—automatic whole spine segmentation of T2-weighted MR images using a two-phase approach to multi-class semantic and instance segmentationSource quoteL9: Results. On the public dataset, our approach outperformed the baseline (instance-wise vertebra dice score 0.929 vs. 0.907, p-value<0.001). Training on auto-generated annotations and evaluating on manually corrected test data from the GNC yielded global dice scores of 0.900 for vertebrae, 0.960 for intervertebral discs, and 0.947 for the spinal canal. Incorporating the SPIDER dataset during training increased these scores to 0.920, 0.967, 0.958, respectively. |
| 2024 | Tool-SQL + GPT-4 proposed | Execution Accuracy | 86.0 | split: test · few-shot · backbone=GPT-4 | Tool-Assisted Agent on SQL Inspection and Refinement in Real-World ScenariosSource quoteL180: Tool-SQL + GPT-4 │ 86.9 │ 85.6 │ 86.0 |
| 2024 | CSMA (TwoPart) proposed | Execution accuracy (EX) | 74.94% | split: test · agents=2 · schema-division=two equal table-count parts | Cooperative SQL Generation for Segmented Databases By Using Multi-functional LLM AgentsSource quoteL158: TwoPart │ 32.40 │ 75.92 │ 33.44 │ 74.94 │ 49.28 │ 20.74 |
| 2024 | SuperSQL proposed | Execution accuracy (EX) | 87% | split: test | The Dawn of Natural Language to SQL: Are We Fully Ready? [Experiment, Analysis & Benchmark ]Source quoteL14: \rev{Remarkably, {\att {SuperSQL}}\xspace achieves competitive performance with execution accuracy of 87% and 62.66% on the Spider and BIRD test sets, respectively.} |
| 2024 | SQLfuse proposed | TEST Acc (execution accuracy) | 85.6% | split: test · fine-tuned · queries=with-values · evaluation=execution-accuracy | SQLfuse: Enhancing Text-to-SQL Performance through Comprehensive LLM SynergySource quoteL237: 4. │ SQLfuse │ 85.6 │ Fine-tuning │ Open source |
| 2024 | XiYan-SQL proposed | EX(%) | 89.65% | split: test | XiYan-SQL: A Multi-Generator Ensemble Framework for Text-to-SQLSource quoteL187: 89.65 |
| 2024 | TiSQL + GPT-4 proposed | Test EX | 86.3% | split: test · fine-tuned · model=GPT-4 | Towards Automated Cross-Domain Exploratory Data Analysis through Large Language ModelsSource quoteL625: TiSQL + GPT-4 (ours) │ 86.3 |
| 2024 | OneAll setting ablation | Execution accuracy (EX) | 74.57% | split: test · agents=1 · schema-availability=whole schema | Cooperative SQL Generation for Segmented Databases By Using Multi-functional LLM AgentsSource quoteL157: OneAll │ 31.62 │ 75.15 │ 32.18 │ 74.57 │ 48.89 │ 20.62 |
| 2024 | TwoAll setting ablation | Execution accuracy (EX) | 74.90% | split: test · agents=2 · schema-availability=whole schema | Cooperative SQL Generation for Segmented Databases By Using Multi-functional LLM AgentsSource quoteL159: TwoAll │ 30.95 │ 76.31 │ 32.70 │ 74.90 │ 49.35 │ 20.76 |
| 2024 | nnUNet baseline baseline | instance-wise vertebra Dice score | 0.907 | split: test | SPINEPS—automatic whole spine segmentation of T2-weighted MR images using a two-phase approach to multi-class semantic and instance segmentationSource quoteL9: Results. On the public dataset, our approach outperformed the baseline (instance-wise vertebra dice score 0.929 vs. 0.907, p-value<0.001). Training on auto-generated annotations and evaluating on manually corrected test data from the GNC yielded global dice scores of 0.900 for vertebrae, 0.960 for intervertebral discs, and 0.947 for the spinal canal. Incorporating the SPIDER dataset during training increased these scores to 0.920, 0.967, 0.958, respectively. |
| 2024 | DAIL-SQL + GPT-4 + SC baseline | Execution Accuracy | 85.6 | split: test · few-shot · backbone=GPT-4 | Tool-Assisted Agent on SQL Inspection and Refinement in Real-World ScenariosSource quoteL178: DAIL-SQL + GPT-4 + SC \cite{gao2023text} │ 83.6 │ 86.6 │ 85.6 |
| 2024 | MCS-SQL + GPT-4 [7] baseline | EX(%) | 89.6% | split: test | XiYan-SQL: A Multi-Generator Ensemble Framework for Text-to-SQLSource quoteL167: 89.6 |
| 2023 | Teacher sampling (TF; forward KL) proposed | Token acceptance rate (\alpha) | 0.76 | split: test · fine-tuned · loss=forward KL · epochs=2 · backbone=Vicuna-7B · sampling=teacher sampling | Online Speculative DecodingSource quoteL293: \multirow{4}{*}{Vicuna-7B} │ Spider │ 0.28 │ 0.74 │ {\bf 0.76} │ 0.62 │ 0.70 |
| 2023 | Teacher sampling (TF; forward KL) proposed | Token acceptance rate (\alpha) | 0.78 | split: test · fine-tuned · loss=forward KL · epochs=2 · backbone=FLAN T5-XL · sampling=teacher sampling | Online Speculative DecodingSource quoteL298: \multirow{4}{*}{FLAN T5-XL} │ Spider │ 0.13 │ 0.33 │ 0.78 │ 0.67 │ 0.70 |
| 2023 | C3 proposed | execution accuracy | 82.3% | split: test · 0-shot | C3: Zero-shot Text-to-SQL with ChatGPTSource quoteL4: This paper proposes a ChatGPT-based zero-shot Text-to-SQL method, dubbed C3, which achieves 82.3% in terms of execution accuracy on the holdout test set of Spider and becomes the state-of-the-art zero-shot Text-to-SQL method on the Spider Challenge. C3 consists of three key components: Clear Prompting (CP), Calibration with Hints (CH), and Consistent Output (CO), which are corresponding to the model input, model bias and model output respectively. It provides a systematic treatment for zero-shot Text-to-SQL. Extensive experiments have been conducted to verify the effectiveness and efficiency of our proposed method. Our code is available at \href{https://github.com/bigbigwatermalon/C3SQL}{https://github.com/bigbigwatermalon/C3SQL} |
| 2023 | DIN-SQL + GPT-4 proposed | execution accuracy | 85.3% | split: test · few-shot · model=GPT-4 | DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-CorrectionSource quoteL57: Previous works on text-to-SQL prompting using LLMs are only evaluated in a zero-shot setting \citep{rajkumar2022evaluating,liu2023comprehensive}. However, zero-shot prompting only provides a lower bound on the potential power of LLMs for most tasks \citep{zhang2022automatic, kojima2022large, wei2022chain, wei2021finetuned, brown2020language}. We show that our proposed method outperforms the few-shot prompting method by a large margin. We also compare our method with previous approaches on two cross-domain challenging benchmarks, Spider and BIRD. For Spider dataset, we use the two official evaluation metrics of execution accuracy and exact set match accuracy \citep{ruiqi20}. We utilize two variants of the CodeX family, namely Davinci and Cushman \citep{chen2021evaluating}, and the GPT-4 model for prompting. On the holdout test set of Spider, our method achieves an execution accuracy of 85.3% and 78.2% respectively using GPT-4 and CodeX Davinci models and an exact set match accuracy of 60% and 57% respectively using the same models. The large gap between the exact match and execution accuracies is due to the few-shot in-context nature of our method. Pretrained and fine-tuned approaches are more likely to generate SQL queries with a higher exact set match accuracy simply because these models have seen many examples during training that follow the composition style of the queries in the test set (queries in both sets are often written by the same people). Before our work, the SOTA on the test set had an execution accuracy of 79.9% \citep{li2023decoupling} and an exact set match accuracy of 74% \citep{li2023graphix}, and our method sets a new ground in terms of the execution accuracy. On the BIRD benchmark, our approach achieves a new SOTA result, attaining an execution accuracy of 55.9% on the holdout test set and 50.72% on the development set when employing GPT-4. Moreover, using the valid efficiency score introduced in this benchmark, our approach outperformed a GPT-4 baseline, demonstrating a 9% improvement on the development set. This highlights the effectiveness of our method. |
| 2023 | DIN-SQL + CodeX Davinci proposed | execution accuracy | 78.2% | split: test · few-shot · model=CodeX Davinci | DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-CorrectionSource quoteL57: Previous works on text-to-SQL prompting using LLMs are only evaluated in a zero-shot setting \citep{rajkumar2022evaluating,liu2023comprehensive}. However, zero-shot prompting only provides a lower bound on the potential power of LLMs for most tasks \citep{zhang2022automatic, kojima2022large, wei2022chain, wei2021finetuned, brown2020language}. We show that our proposed method outperforms the few-shot prompting method by a large margin. We also compare our method with previous approaches on two cross-domain challenging benchmarks, Spider and BIRD. For Spider dataset, we use the two official evaluation metrics of execution accuracy and exact set match accuracy \citep{ruiqi20}. We utilize two variants of the CodeX family, namely Davinci and Cushman \citep{chen2021evaluating}, and the GPT-4 model for prompting. On the holdout test set of Spider, our method achieves an execution accuracy of 85.3% and 78.2% respectively using GPT-4 and CodeX Davinci models and an exact set match accuracy of 60% and 57% respectively using the same models. The large gap between the exact match and execution accuracies is due to the few-shot in-context nature of our method. Pretrained and fine-tuned approaches are more likely to generate SQL queries with a higher exact set match accuracy simply because these models have seen many examples during training that follow the composition style of the queries in the test set (queries in both sets are often written by the same people). Before our work, the SOTA on the test set had an execution accuracy of 79.9% \citep{li2023decoupling} and an exact set match accuracy of 74% \citep{li2023graphix}, and our method sets a new ground in terms of the execution accuracy. On the BIRD benchmark, our approach achieves a new SOTA result, attaining an execution accuracy of 55.9% on the holdout test set and 50.72% on the development set when employing GPT-4. Moreover, using the valid efficiency score introduced in this benchmark, our approach outperformed a GPT-4 baseline, demonstrating a 9% improvement on the development set. This highlights the effectiveness of our method. |
| 2023 | DAIL-SQL + GPT-4 + Self-consistency | Execution accuracy (EX) | 86.6% | split: test | Text-to-SQL Empowered by Large Language Models: A Benchmark EvaluationSource quoteL1029: DAIL-SQL + GPT-4 + Self-consistency │ 83.6 │ \bf{86.6} |
| 2023 | Original baseline | Token acceptance rate (\alpha) | 0.28 | split: test · fine-tuned · epochs=2 · backbone=Vicuna-7B | Online Speculative DecodingSource quoteL293: \multirow{4}{*}{Vicuna-7B} │ Spider │ 0.28 │ 0.74 │ {\bf 0.76} │ 0.62 │ 0.70 |
| 2023 | Original baseline | Token acceptance rate (\alpha) | 0.13 | split: test · fine-tuned · epochs=2 · backbone=FLAN T5-XL | Online Speculative DecodingSource quoteL298: \multirow{4}{*}{FLAN T5-XL} │ Spider │ 0.13 │ 0.33 │ 0.78 │ 0.67 │ 0.70 |
| 2023 | FedAvg baseline | Exact string match (EM), avg across eight clients | 40.03 | split: test · clients=8 · backbone=T5-base | Federated Learning for Semantic Parsing: Task Formulation, Evaluation Setup, New AlgorithmsSource quoteL654: FedAvg │ 76.44 │ 50.11 │ 59.86 │ 72.97 │ 38.07 │ 2.63 │ 7.69 │ 12.5 │ 40.03 │ 57.89 |
| 2023 | FedOPT baseline | Exact string match (EM), avg across eight clients | 58.32 | split: test · clients=8 · backbone=T5-base | Federated Learning for Semantic Parsing: Task Formulation, Evaluation Setup, New AlgorithmsSource quoteL651: FedOPT │ 79.76 │ 51.23 │ 77.42 │ 98.65 │ 66.51 │ 50 │ 34.62 │ 8.33 │ 58.32 │ 68.49 |
| 2023 | FedProx baseline | Exact string match (EM), avg across eight clients | 41.67 | split: test · clients=8 · backbone=T5-base | Federated Learning for Semantic Parsing: Task Formulation, Evaluation Setup, New AlgorithmsSource quoteL657: FedProx │ 74.52 │ 50.56 │ 65.95 │ 81.08 │ 38.53 │ 10.53 │ 3.85 │ 8.33 │ 41.67 │ 58.84 |
| 2023 | RESDSQL-3B + NatSQL baseline | EX (execution accuracy) | 84.1 | split: test · fine-tuned · params=3B · model-size=3B | A comprehensive evaluation of ChatGPT's zero-shot Text-to-SQL capabilitySource quoteL43: RESDSQL-3B + NatSQL │ 99.1 │ 84.1 │ 73.5 │ 98.8 │ 76.9 │ 66.8 │ 98.4 │ 81.9 │ 70.1 |
| 2023 | RESDSQL-3B + NatSQL (DB content used) baseline | execution accuracy (EX) | 79.9% | split: test · fine-tuned · model=RESDSQL-3B · params=3B · db-content=used · representation=NatSQL | DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-CorrectionSource quoteL57: Previous works on text-to-SQL prompting using LLMs are only evaluated in a zero-shot setting \citep{rajkumar2022evaluating,liu2023comprehensive}. However, zero-shot prompting only provides a lower bound on the potential power of LLMs for most tasks \citep{zhang2022automatic, kojima2022large, wei2022chain, wei2021finetuned, brown2020language}. We show that our proposed method outperforms the few-shot prompting method by a large margin. We also compare our method with previous approaches on two cross-domain challenging benchmarks, Spider and BIRD. For Spider dataset, we use the two official evaluation metrics of execution accuracy and exact set match accuracy \citep{ruiqi20}. We utilize two variants of the CodeX family, namely Davinci and Cushman \citep{chen2021evaluating}, and the GPT-4 model for prompting. On the holdout test set of Spider, our method achieves an execution accuracy of 85.3% and 78.2% respectively using GPT-4 and CodeX Davinci models and an exact set match accuracy of 60% and 57% respectively using the same models. The large gap between the exact match and execution accuracies is due to the few-shot in-context nature of our method. Pretrained and fine-tuned approaches are more likely to generate SQL queries with a higher exact set match accuracy simply because these models have seen many examples during training that follow the composition style of the queries in the test set (queries in both sets are often written by the same people). Before our work, the SOTA on the test set had an execution accuracy of 79.9% \citep{li2023decoupling} and an exact set match accuracy of 74% \citep{li2023graphix}, and our method sets a new ground in terms of the execution accuracy. On the BIRD benchmark, our approach achieves a new SOTA result, attaining an execution accuracy of 55.9% on the holdout test set and 50.72% on the development set when employing GPT-4. Moreover, using the valid efficiency score introduced in this benchmark, our approach outperformed a GPT-4 baseline, demonstrating a 9% improvement on the development set. This highlights the effectiveness of our method. |
| 2022 | TKK-Base proposed | EM | 39.2 | split: test · fine-tuned · params=Base · subset=Extra hardness | Towards Generalizable and Robust Text-to-SQL ParsingSource quoteL297: TKK-Base │ 83.9 │ 63.0 │ 47.1 │ 39.2 |
| 2022 | BERTimbau proposed | Test Accuracy | 98.0% | split: test · subset=Hospital_1 | Integrating question answering and text-to-SQL in PortugueseSource quoteL155: 99.8 % │ 98.0% │ 99.6% |
| 2022 | T5-Base baseline | EM | 22.9 | split: test · fine-tuned · params=Base · subset=Extra hardness · backbone=T5 | Towards Generalizable and Robust Text-to-SQL ParsingSource quoteL294: T5-Base │ 83.9 │ 59.9 │ 42.5 │ 22.9 |
| 2021 | RAT-SQL + GAP + NatSQL_G proposed | Exact match accuracy | 68.7% | split: test | Natural SQL: Making SQL Easier to Infer from Natural Language SpecificationsSource quoteL464: {\bf RAT-SQL + GAP + NatSQL-\bf G} (Ours)\ \ │ 68.7% │ \bf 73.3% |
| 2021 | RAT-SQL + GAP + NatSQL_G proposed | Execution match accuracy | 73.3% | split: test | Natural SQL: Making SQL Easier to Infer from Natural Language SpecificationsSource quoteL464: {\bf RAT-SQL + GAP + NatSQL-\bf G} (Ours)\ \ │ 68.7% │ \bf 73.3% |
| 2021 | EtA + BERT (SLSQL_P parser) proposed | Ex.Set | 59.5 | split: test · backbone=BERT | Awakening Latent Grounding from Pretrained Language Models for Semantic ParsingSource quoteL371: \abr{EtA}\,+\,BERT\xspace │ 64.5 │ 59.5 |
| 2021 | EtA + BERT-large (SLSQL_P parser) proposed | Ex.Set | 65.3 | split: test · backbone=BERT-large | Awakening Latent Grounding from Pretrained Language Models for Semantic ParsingSource quoteL372: \abr{EtA}\,+\,\text{BERT}_\text{L}\xspace │ 70.8 │ 65.3 |
| 2021 | ShadowGNN + RoBERTa-large proposed | exact match accuracy | 66.1% | split: test · backbone=RoBERTa-large · evaluation-setting=cross-domain | ShadowGNN: Graph Projection Neural Network for Text-to-SQL ParserSource quoteL219: ShadowGNN + RoBERTa-large │ 72.3% │ 66.1% |
| 2021 | Ours subset (GraPPa) proposed non-standard slice | Execution accuracy | 62.0% | split: test · pretraining=GraPPa · training-data=Spider subset | SPARQLing Database Queries from Intermediate Question DecompositionsSource quoteL282: 62.0 |
| 2021 | LGESQL (GloVe) proposed | exact set match accuracy | 62.8% | split: test · word-vectors=GloVe | LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local RelationsSource quoteL199: The main results of the test set are provided in Table \ref{tab:main}. Our proposed line graph enhanced text-to-SQL~(LGESQL) model achieves state-of-the-art results in all configurations at the time of writing. With word vectors GloVe, the performance increases from 57.2% to 62.8%, 5.6% absolute improvements. With PLM {\tt bert-large-wwm}, LGESQL also surpasses all previous methods, including the ensemble model, and attains 68.3% accuracy. Recently, more advanced approaches all leverage the benefits of larger PLMs, more task adaptive data~(text-table pairs), and tailored pre-training tasks. For example, Gap~\cite{DBLP:journals/corr/abs-2012-10309} designs some task adaptive self-supervised tasks such as column prediction and column recovery to better address the downstream joint encoding problem. We utilize {\tt electra-large} for its compatibility with our model and achieves 72.0% accuracy. |
| 2021 | LGESQL + PLM (bert-large-wwm) proposed | exact set match accuracy | 68.3% | split: test · backbone=bert-large-wwm | LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local RelationsSource quoteL199: The main results of the test set are provided in Table \ref{tab:main}. Our proposed line graph enhanced text-to-SQL~(LGESQL) model achieves state-of-the-art results in all configurations at the time of writing. With word vectors GloVe, the performance increases from 57.2% to 62.8%, 5.6% absolute improvements. With PLM {\tt bert-large-wwm}, LGESQL also surpasses all previous methods, including the ensemble model, and attains 68.3% accuracy. Recently, more advanced approaches all leverage the benefits of larger PLMs, more task adaptive data~(text-table pairs), and tailored pre-training tasks. For example, Gap~\cite{DBLP:journals/corr/abs-2012-10309} designs some task adaptive self-supervised tasks such as column prediction and column recovery to better address the downstream joint encoding problem. We utilize {\tt electra-large} for its compatibility with our model and achieves 72.0% accuracy. |
| 2021 | LGESQL + PLM (electra-large) proposed | exact set match accuracy | 72.0% | split: test · backbone=electra-large | LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local RelationsSource quoteL199: The main results of the test set are provided in Table \ref{tab:main}. Our proposed line graph enhanced text-to-SQL~(LGESQL) model achieves state-of-the-art results in all configurations at the time of writing. With word vectors GloVe, the performance increases from 57.2% to 62.8%, 5.6% absolute improvements. With PLM {\tt bert-large-wwm}, LGESQL also surpasses all previous methods, including the ensemble model, and attains 68.3% accuracy. Recently, more advanced approaches all leverage the benefits of larger PLMs, more task adaptive data~(text-table pairs), and tailored pre-training tasks. For example, Gap~\cite{DBLP:journals/corr/abs-2012-10309} designs some task adaptive self-supervised tasks such as column prediction and column recovery to better address the downstream joint encoding problem. We utilize {\tt electra-large} for its compatibility with our model and achieves 72.0% accuracy. |
| 2021 | T5-3B (database content) proposed | EM (exact-set-match accuracy) | 68.0% | split: test · 0-shot · params=3B · backbone=T5-3B · beam-size=4 · database-content=enabled | PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language ModelsSource quoteL310: T5-3B^\dagger │ 71.5 │ 74.4 │ 68.0 │ 70.1 |
| 2021 | T5-3B (database content) proposed | EX (execution accuracy) | 70.1% | split: test · 0-shot · params=3B · backbone=T5-3B · beam-size=4 · database-content=enabled | PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language ModelsSource quoteL310: T5-3B^\dagger │ 71.5 │ 74.4 │ 68.0 │ 70.1 |
| 2021 | SmBoP + GraPPa baseline | Execution match accuracy | 71.1% | split: test | Natural SQL: Making SQL Easier to Infer from Natural Language SpecificationsSource quoteL460: SmBoP + GraPPa \cite{DBLP:journals/corr/abs-2010-12412} │ 69.5% │ 71.1% |
| 2021 | RATSQL v3 + BERT-large baseline | exact match accuracy | 65.6% | split: test · backbone=BERT-large | ShadowGNN: Graph Projection Neural Network for Text-to-SQL ParserSource quoteL213: RATSQL v3 + BERT-large~\cite{rat-sql} │ 69.7% │ 65.6% |
| 2021 | BRIDGE subset (BERT) baseline non-standard slice | Execution accuracy | 60.3% | split: test · backbone=BERT · training-data=Spider subset | SPARQLing Database Queries from Intermediate Question DecompositionsSource quoteL270: 60.3 |
| 2021 | SmBoP subset (GraPPa) baseline non-standard slice | Execution accuracy | 64.9% | split: test · pretraining=GraPPa · training-data=Spider subset | SPARQLing Database Queries from Intermediate Question DecompositionsSource quoteL274: 64.9 |
| 2021 | RATSQL baseline | exact set match accuracy | 57.2% | split: test | LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local RelationsSource quoteL208: Test │ 74.8 │ 60.7 │ 53.6 │ 31.5 │ 57.2 |
| 2021 | RATSQL + PLM (bert-large-wwm) baseline | exact set match accuracy | 65.6% | split: test · backbone=bert-large-wwm | LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local RelationsSource quoteL217: Test │ 83.0 │ 71.3 │ 58.3 │ 38.4 │ 65.6 |
| 2020 | CFGNN (ours, full model) proposed | Exact matching accuracy | 44.1% | split: test | CFGNN: Cross Flow Graph Neural Networks for Question Answering on Complex TablesSource quoteL296: 44.1% |
| 2020 | BRIDGE_L (ours, ensemble) proposed | Exact set match | 67.5% | split: test · fine-tuned · backbone=BERT-large · ensemble=3 models | Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic ParsingSource quoteL359: BRIDGE\xspace_{\text{L}} (ours, ensemble) \spadesuit \heartsuit │ 71.1 │ 67.5 |
| 2020 | RAT-SQL with GraPPa (MLM+SSP) proposed | set match accuracy | 69.6 | split: test · base-parser=RAT-SQL · pretraining=MLM+SSP | GraPPa: Grammar-Augmented Pre-Training for Table Semantic ParsingSource quoteL507: \bf{69.6} |
| 2020 | SQL-SP with DT-Fixup proposed | exact match accuracy | 70.9% | split: test · fine-tuned · total-layers=48 · relation-aware-layers=24 · pretrained-RoBERTa-layers=24 · task-specific-pretraining=none | Optimizing Deeper Transformers on Small DatasetsSource quoteL45: Our parser achieves 70.9% exact match accuracy on the Spider test set, which is the state of the art at the time of writing. |
| 2020 | SLSQL default proposed | Exact matching accuracy | 55.0 | split: test · schema-linking=manual | Re-examining the Role of Schema Linking in Text-to-SQLSource quoteL178: 55.0 hard ref |
| 2020 | RAT-SQL + GAP Model proposed | accuracy | 0.697 | split: test | Learning Contextual Representations for Semantic Parsing with Generation-Augmented Pre-TrainingSource quoteL290: +GAP~Model │ 0.872 │ 0.751 │ 0.637 │ 0.412 │ 0.697 |
| 2020 | Schema GNN baseline | Exact matching accuracy | 39.4% | split: test | CFGNN: Cross Flow Graph Neural Networks for Question Answering on Complex TablesSource quoteL289: 39.4% |
| 2020 | RAT-SQL with BERT-large baseline | set match accuracy | 65.6 | split: test · backbone=BERT-large · base-parser=RAT-SQL | GraPPa: Grammar-Augmented Pre-Training for Table Semantic ParsingSource quoteL499: w. BERT-large │ 69.7 │ 65.6 |
| 2020 | Official ESM baseline | Kendall τ correlation with test suite accuracy | 40% | split: test | Semantic Evaluation for Text-to-SQL with Distilled Test SuitesSource quoteL377: all data (%) │ 91 │ 40 │ 98 |
| 2020 | Official ESM baseline | Kendall τ correlation with test suite accuracy | 20% | split: test · subset=extra-hard | Semantic Evaluation for Text-to-SQL with Distilled Test SuitesSource quoteL375: \mathsf{extra} (%) │ 91 │ 20 │ 82 |
| 2020 | RAT-SQL + BERT baseline | accuracy | 0.656 | split: test · backbone=BERT | Learning Contextual Representations for Semantic Parsing with Generation-Augmented Pre-TrainingSource quoteL288: +BERT │ 0.830 │ 0.713 │ 0.583 │ 0.384 │ 0.656 |
| 2019 | GNN proposed | accuracy | 39.4% | split: test · 0-shot | Representing Schema Structure with Graph Neural Networks for Text-to-SQL ParsingSource quoteL132: Our full model (GNN) obtains 39.4% accuracy on the test set, substantially higher than prior state-of-the-art (SyntaxSQLNet), which is at 19.7%. Removing the GNN from the parser (No GNN), which results in the parser of \newcite{krishnamurthy2017neural}, augmented with a grammar for SQL, obtains an accuracy of 33.8%, showing the importance of encoding the schema structure. |
| 2019 | Grammar-based model with runtime constraints proposed | exact component matching accuracy | 33.8% | split: test · beam-size=10 · database-split=146/20/40 train/dev/test databases · runtime-constraints=enabled · identifier-anonymization=disabled · database-value-generation=disabled | Grammar-based Neural Text-to-SQL GenerationSource quoteL18: We apply these contributions to models for ATIS and Spider{}, demonstrating the effectiveness of grammar-based decoding for text-to-SQL tasks. Our model achieves 73.7% denotation accuracy on the resplit, contextual ATIS task \cite{Suhr2018LearningTM}, a 4.5% absolute improvement over the prior best result, and 33.8% accuracy on the database split of Spider{}, a 14.1% absolute improvement over the best prior work with the same supervision. |
| 2019 | ENG (Yu et al. model on the English dataset) baseline | Exact matching accuracy | 14.1% | split: test · language=English · difficulty=all | A Pilot Study for Chinese SQL Semantic ParsingSource quoteL168: 14.1% |
| 2019 | IRNet V2 baseline | exact match accuracy | 48.5% | split: test | RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL ParsersSource quoteL461: IRNet V2 \cite{irnet} │ 55.4 │ 48.5 |