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.

12.641.770.9100.0201920232026SyntaxSQLNet: 18.9 (2019)GNN-SQL: 22.0 (2019)SyntaxSQLNet + DAE: 22.1 (2019)SyntaxSQLNet + Data Augmentation: 24.8 (2019)SyntaxSQLNetAug + DAE: 27.4 (2019)SyntaxSQLNet, SemQL output: 27.5 (2019)SyntaxSQLNet (BERT), SemQL output: 35.8 (2019)SyntaxSQLNet: 53.5 (2019)GNN-SQL: 57.0 (2019)SyntaxSQLNet + Data Augmentation: 61.9 (2019)RECPARSER: 39.3 (2020)RECPARSER (BERT): 46.8 (2020)CFGNN (ours, full model): 48.7 (2020)IRNet + PIIA(H): 52.7 (2020)EditSQL+Feedback (BERT-equipped): 53.73 (2020)RECPARSER: 54.3 (2020)IRNet + PIIA: 59.3 (2020)RECPARSER (BERT): 63.1 (2020)GNN + Bertrand-DR: 57.9 (2020)EditSQL + Bertrand-DR: 58.5 (2020)Base Parser: 56.4 (2021)Base Parser + DG-MAML: 58.5 (2021)RAT-SQL + NatSQL: 74.6 (2021)Turing + RoBERTa (best reported run): 75.1 (2021)S²SQL + ELECTRA: 76.4 (2022)LogicalBeam: 81.3 (2023)SuperSQL (GPT-4): 87.0 (2024)MTSQL: 75.6 (2024)Open-SQL (7B; same procedure as the BIRD experiments): 84.1 (2024)DataGpt-sql-7B: 84.8 (2024)DataGpt-sql-7B + Invalid-SQL Feedback: 87.2 (2024)PARSQL-3Bllm: 77.7 (2025)PARSQL-3Bllm: 83.8 (2025)SQL-of-Thought, W/o Error Correction (Claude 3 Opus): 85.0 (2025)SQLForge-LM: 85.7 (2025)SQL-of-Thought, W/o Query Plan Generation (Claude 3 Opus): 90.0 (2025)SQL-of-Thought (with Claude Opus 3): 91.59 (2025)SQL-of-Thought (Claude 3 Opus): 95.0 (2025)HHNAS-AM Model 1 (standalone RoBERTa): 91.02 (2025)HHNAS-AM Model 4 (RoBERTa with parallel CNNs for LLM and rule-based features): 94.76 (2025)HHNAS-AM Model 4 (RoBERTa with parallel CNNs for LLM and rule-based features): 97.11 (2025)HHNAS-AM Model 4 (RoBERTa with parallel CNNs for LLM and rule-based features): 97.66 (2025)HHNAS-AM Model 4 (RoBERTa with parallel CNNs for LLM and rule-based features): 97.78 (2025)HHNAS-AM Model 4 (RoBERTa with parallel CNNs for LLM and rule-based features): 98.21 (2025)MATS (9B): 87.1 (2025)SQL component pre-generation + AST matching reward (GRPO; Qwen2.5-Coder-7B-Instruct): 83.0 (2026)FINER-SQL 3B: 85.0 (2026)Progress-SQL-7B: 80.0 (2026)ORM-based BoN: 84.53 (2026)Progress-SQL-7B: 86.6 (2026)DecoSearch (DeepSeek backbone): 88.31 (2026)
Click any point on the timeline to inspect method, protocol, and paper.

Showing 58 of 58 matching observations.

YearMethodMetricScoreProtocol / FacetsPaper & Evidence
2026Grok 4.7 FDE agent (autonomous; Ministral 3 8B) proposedExecution accuracy (EX)75.82%split: val · fine-tuned · params=8BCan LLM Agents Be Forward-Deployed Engineers? Requirement Discovery and Delivery for Enterprise Text-to-SQL
Source quote
L643: 75.82
2026GPT-5.6 Sol FDE agent (decoupled; Ministral 3 8B) proposedExecution accuracy (EX)76.11%split: val · fine-tuned · params=8BCan LLM Agents Be Forward-Deployed Engineers? Requirement Discovery and Delivery for Enterprise Text-to-SQL
Source quote
L606: 76.11
2026GPT-5.6 Sol FDE agent (autonomous; Llama 3.1 8B) proposedExecution accuracy (EX)72.63%split: val · fine-tuned · params=8BCan LLM Agents Be Forward-Deployed Engineers? Requirement Discovery and Delivery for Enterprise Text-to-SQL
Source quote
L613: 72.63
2026GPT-6.1 Sol FDE agent (decoupled; Llama 3.1 8B) proposedExecution accuracy (EX)55.90%split: val · fine-tuned · params=8BCan LLM Agents Be Forward-Deployed Engineers? Requirement Discovery and Delivery for Enterprise Text-to-SQL
Source quote
L621: 55.90
2026GPT-6.1 Sol FDE agent (autonomous; Llama 3.1 8B) proposedExecution accuracy (EX)71.57%split: val · fine-tuned · params=8BCan LLM Agents Be Forward-Deployed Engineers? Requirement Discovery and Delivery for Enterprise Text-to-SQL
Source quote
L628: 71.57
2026Grok 4.7 FDE agent (decoupled; Ministral 3 8B) proposedExecution accuracy (EX)63.64%split: val · fine-tuned · params=8BCan LLM Agents Be Forward-Deployed Engineers? Requirement Discovery and Delivery for Enterprise Text-to-SQL
Source quote
L636: 63.64
2026GLM-5.3-Flash FDE agent (decoupled; Ministral 3 8B) proposedExecution accuracy (EX)56.77%split: val · fine-tuned · params=8BCan LLM Agents Be Forward-Deployed Engineers? Requirement Discovery and Delivery for Enterprise Text-to-SQL
Source quote
L651: 56.77
2026GLM-5.3-Flash FDE agent (autonomous; Llama 3.1 8B) proposedExecution accuracy (EX)67.50%split: val · fine-tuned · params=8BCan LLM Agents Be Forward-Deployed Engineers? Requirement Discovery and Delivery for Enterprise Text-to-SQL
Source quote
L658: 67.50
2026DataEvolver-SFT proposedExec-Acc60.43fine-tuned · params=8B · backbone=Qwen3-8B-Base · seed_examples=20 · training_samples=5kDataEvolver: Automatic Data Preparation for Large Language Models through Multi-Level Self-Evolving
Source quote
L141: DataEvolver-SFT │ 5k │ 56.3 │ 73.37 │ 66.09 │ 87.83 │ 68.42 │ 60.43 │ 50.34
2026SQLoom (Qwen3-1.7B) proposedExecution accuracy (EX)88.7%split: val · fine-tuned · params=1.7BSQLoom: Set-Contrastive Learning of Syntactic, Semantic, and Logical Dependencies for Text-to-SQL
Source quote
L45: Qwen3-1.7B from 62.9% zero-shot to 88.7% on Spider development,
2026SQLoom (Qwen3-1.7B) proposedExecution accuracy (EX)89.2%split: test · fine-tuned · params=1.7BSQLoom: Set-Contrastive Learning of Syntactic, Semantic, and Logical Dependencies for Text-to-SQL
Source quote
L46: reaching 89.2% on Spider test and 73.4% on BIRD development. It
2026Human FDE shipped system (Ministral 3 8B) baselineExecution accuracy (EX)79.90%split: val · fine-tuned · params=8BCan LLM Agents Be Forward-Deployed Engineers? Requirement Discovery and Delivery for Enterprise Text-to-SQL
Source quote
L666: 79.90
2026DataFlow-SFT baselineExec-Acc55.26fine-tuned · params=8B · backbone=Qwen3-8B-Base · training_samples=5kDataEvolver: Automatic Data Preparation for Large Language Models through Multi-Level Self-Evolving
Source quote
L139: DataFlow-SFT │ 5k │ 51.9 │ 68.83 │ 64.93 │ 87.16 │ 69.28 │ 55.26 │ 46.33
2025Qwen-1.5B +SQL-Factory proposedAccuracy76.5%fine-tuned · params=1.5B · backbone=Qwen-1.5B · training-data=SQL-Factory-generatedSQL-Factory: A Multi-Agent Framework for High-Quality and Large-Scale SQL Generation
Source quote
L465: \ \ \ \ +SQL-Factory │ 97.2 (\uparrow11.5) │ 76.5 (\uparrow7.3) │ 82.1 (\uparrow24.5) │ 40.9 (\uparrow12.3)
2025LLaMA-3.1 70B ExCoT proposedexecution accuracy86.59%split: test · fine-tuned · params=70B · backbone=LLaMA-3.1 70B · reasoning=Complex CoTOptimizing Reasoning for Text-to-SQL with Execution Feedback
Source quote
L169: 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}.
2025JOLT-SQL + Qwen2.5-Coder-14B proposedExecution accuracy (EX)88.4%split: val · fine-tuned · params=14B · backbone=Qwen2.5-Coder-14BJOLT-SQL: Joint Loss Tuning of Text-to-SQL with Confusion-aware Noisy Schema Sampling
Source quote
L235: 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.
2025JOLT-SQL + Qwen2.5-Coder-14B proposedExecution accuracy (EX)88.9%split: test · fine-tuned · params=14B · backbone=Qwen2.5-Coder-14BJOLT-SQL: Joint Loss Tuning of Text-to-SQL with Confusion-aware Noisy Schema Sampling
Source quote
L235: 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.
2025State-offset Tuning (\bm{h}) proposedExecution accuracy57.4split: val · fine-tuned · module=S6 · params=1.4B · backbone=Mamba 1.4BState-offset Tuning: State-based Parameter-Efficient Fine-Tuning for State Space Models
Source quote
L586: \textbf{State-offset Tuning (\bm{h})} │ 0.23 │ 57.4 │ 77.4 │ 59.9 │ 44.8 │ 33.7 │ 50.9 │ 26.5 │ 42.4 │ 0.45 │ 70.0 │ 47.0 │ 78.5
2025DB-Explore + Qwen2.5-Coder-7B proposedDev-EX (Execution Accuracy)84.0%split: val · fine-tuned · params=7BDB-Explore: Automated Database Exploration and Instruction Synthesis for Text-to-SQL
Source quote
L184: Ours: DB-Explore + Qwen2.5-Coder-7B │ 84.0 │ 79.3 │ 52.1 │ 55.8
2025DB-Explore + Qwen2.5-Coder-7B proposedDev-TS (Test-Suite Accuracy)79.3split: test · fine-tuned · params=7BDB-Explore: Automated Database Exploration and Instruction Synthesis for Text-to-SQL
Source quote
L184: Ours: DB-Explore + Qwen2.5-Coder-7B │ 84.0 │ 79.3 │ 52.1 │ 55.8
20253B LLaMA fine-tuned on L3_4 train proposedTest-suite accuracy (TS)0.684split: val · fine-tuned · params=3B · backbone=LLaMA-3B · training-subset=L3_4 train · evaluation-subset=L4 devText2Sql: Pure Fine-Tuning and Pure Knowledge Distillation
Source quote
L114: 0.684
2025Pure-KD (1B LLaMA student) proposedTest-suite accuracy (TS)0.596split: val · fine-tuned · params=1B · backbone=LLaMA-1B · distillation=Pure-KD from LLaMA-3B · training-subset=L4_train · evaluation-subset=L4 devText2Sql: Pure Fine-Tuning and Pure Knowledge Distillation
Source quote
L231: 0.596
2025OmniSQL-7B proposedExecution accuracy (EX)87.9%split: test · fine-tuned · params=7B · decoding=greedyOmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale
Source quote
L294: 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
2025Gemma-SQL proposedTest-Suite Accuracy (TS)64.5%split: val · fine-tuned · params=2B · backbone=Gemma-2BGEMMA-SQL: A Novel Text-to-SQL Model Based on Large Language Models
Source quote
L748: 64.5
2025Gemma-SQL Instruct proposedTest-Suite Accuracy (TS)66.8%split: val · fine-tuned · params=2B · variant=instruction-tuned · backbone=Gemma-2BGEMMA-SQL: A Novel Text-to-SQL Model Based on Large Language Models
Source quote
L751: 66.8
2025StreamLink-SQL-Generator (SSQLG3.1-8B), fine-tuned on Llama-3.1-8B proposedExecution Accuracy (EA; table column “Accuracy”)89.7split: val · fine-tuned · params=8B · backbone=Llama-3.1-8BStreamLink: Large-Language-Model Driven Distributed Data Engineering System
Source quote
L120: SSQLG3.1-8B │ 86.9 │ 89.7
2025SynSQL(50K) proposed non-standard sliceExecution accuracy (Gre)81.8split: test · fine-tuned · params=7B · backbone=Qwen2.5-Coder-7B-Instruct · decoding=greedy · training-data=SynSQL · training-examples=50KDataFlow: An LLM-Driven Framework for Unified Data Preparation and Workflow Automation in the Era of Data-Centric AI
Source quote
L739: 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
2025Qwen2.5-Coder-7B-Instruct fine-tuned on SQLFlow(50k)Execution accuracy (Gre)84.6%split: test · fine-tuned · params=7BText2sql-Flow: a Robust Sql-Aware Data Augmentation Framework for Text-To-Sql
Source quote
L324: 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
2025Qwen2.5-Coder-7B-Instruct fine-tuned on SynSQL(50k)Execution accuracy (Gre)81.8%split: test · fine-tuned · params=7BText2sql-Flow: a Robust Sql-Aware Data Augmentation Framework for Text-To-Sql
Source quote
L320: 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
2025Qwen-1.5B +Official-Data baselineAccuracy73.2%fine-tuned · params=1.5B · backbone=Qwen-1.5B · training-data=official Spider training dataSQL-Factory: A Multi-Agent Framework for High-Quality and Large-Scale SQL Generation
Source quote
L464: \ \ \ \ +Official-Data │ 91.9 (\uparrow6.2) │ 73.2 (\uparrow4.0) │ 79.1 (\uparrow21.5) │ 39.2 (\uparrow10.6)
2025LLaMA-3.1 70B SFT model baselineexecution accuracy82.49%split: test · fine-tuned · params=70B · backbone=LLaMA-3.1 70B · training=SFTOptimizing Reasoning for Text-to-SQL with Execution Feedback
Source quote
L169: 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}.
2025SDT baselineExecution accuracy19.8split: val · fine-tuned · module=S6 · params=1.4B · backbone=Mamba 1.4BState-offset Tuning: State-based Parameter-Efficient Fine-Tuning for State Space Models
Source quote
L585: SDT │ 0.26 │ 19.8 │ 38.3 │ 16.6 │ 16.1 │ \phantom{0}4.8 │ 46.3 │ 21.5 │ 37.7 │ 0.51 │ 67.5 │ 48.2 │ 63.7
20253B LLaMA fine-tuned on L4_train (baseline) baselineTest-suite accuracy (TS)60.2%split: val · fine-tuned · params=3B · backbone=LLaMA-3B · training-subset=L4_train · evaluation-subset=L4 devText2Sql: Pure Fine-Tuning and Pure Knowledge Distillation
Source quote
L170: For the 3B model: As shown in Table 1, our finetuned baseline achieves TS of 60.2% and EM of
20251B LLaMA student fine-tuned on L4_train (before distillation) baselineTest-suite accuracy (TS)0.577split: val · fine-tuned · stage=before distillation · params=1B · backbone=LLaMA-1B · training-subset=L4_train · evaluation-subset=L4 devText2Sql: Pure Fine-Tuning and Pure Knowledge Distillation
Source quote
L228: 0.577
2024Spider Skeleton Wizard Coder (QLoRA fine-tuned WizardCoder-15B) proposedexecution accuracy61%split: val · fine-tuned · params=15B · backbone=WizardCoder-15B · fine-tuning=QLoRAAnalyzing the Effectiveness of Large Language Models on Text-to-SQL Synthesis
Source quote
L15: For our first set of experiments, we chose to fine-tune WizardLM's WizardCoder, a 15B parameter model renowned for its proficiency in programming tasks \cite{luo2023WizardCoder}. This decision was driven by the need for a coding model, especially pertinent to the spider dataset in Text-to-SQL program synthesis. The fine-tuned model, named Spider Skeleton Wizard Coder, attained an execution accuracy of 61% On the spider development set comprising 1,034 entries. The model is publicly available on the HuggingFace Transformers Library\footnote{https://huggingface.co/richardr1126/spider-skeleton-wizard-coder-merged}.
2024Fine-tuned gpt-3.5-turbo-16k proposedexecution accuracy73.4%fine-tuned · model=gpt-3.5-turbo-16k · evaluation=zero-shot environmentAnalyzing the Effectiveness of Large Language Models on Text-to-SQL Synthesis
Source quote
L38: The subsequent phase involved fine-tuning OpenAI's gpt-3.5-turbo-16k on the spider dataset, incorporating database context. The fine-tuning process was facilitated using OpenAI's API. Even in a zero-shot environment, the fine-tuned model demonstrated a substantial improvement, achieving a 73.4% execution accuracy in generating SQL queries, highlighting the effectiveness of fine-tuning models.
2024DeepSeek 7B + DTS-SQL proposedEX (execution accuracy)85.5split: val · fine-tuned · params=7B · backbone=DeepSeek-7BDTS-SQL: Decomposed Text-to-SQL with Small Large Language Models
Source quote
L123: DeepSeek 7B │ DTS-SQL │ 85.5 │ 79.1
2024Mistral 7B + DTS-SQL proposedEX (execution accuracy)78.6split: val · fine-tuned · params=7B · backbone=Mistral-7BDTS-SQL: Decomposed Text-to-SQL with Small Large Language Models
Source quote
L120: Mistral 7B │ DTS-SQL │ 78.6 │ 73.3
2024SQLfuse proposedTEST Acc (execution accuracy)85.6%split: test · fine-tuned · queries=with-values · evaluation=execution-accuracySQLfuse: Enhancing Text-to-SQL Performance through Comprehensive LLM Synergy
Source quote
L237: 4. │ SQLfuse │ 85.6 │ Fine-tuning │ Open source
2024Infusing Prompt (T5-3B with NatSQL) proposedEX (execution accuracy)0.804split: val · fine-tuned · params=3B · backbone=T5-3B · language=Portuguese · intermediate-representation=NatSQLInfusing Prompts with Syntax and Semantics
Source quote
L404: Portuguese │ 0.752 │ 0.804 │ 0.687
2024Infusing Prompt (T5-3B with NatSQL) proposedEX (execution accuracy)0.765split: val · fine-tuned · params=3B · backbone=T5-3B · language=French · intermediate-representation=NatSQLInfusing Prompts with Syntax and Semantics
Source quote
L405: French │ 0.749 │ 0.765 │ 0.698
2024DeepSeek 7B, FT Tuning baselineEX (execution accuracy)82.1split: val · fine-tuned · params=7B · backbone=DeepSeek-7BDTS-SQL: Decomposed Text-to-SQL with Small Large Language Models
Source quote
L122: DeepSeek 7B │ FT Tuning │ 82.1 │ 69.0
2024Mistral 7B, FT Tuning baselineEX (execution accuracy)71.9split: val · fine-tuned · params=7B · backbone=Mistral-7BDTS-SQL: Decomposed Text-to-SQL with Small Large Language Models
Source quote
L119: Mistral 7B │ FT Tuning │ 71.9 │ 70.9
2024RESDSQL baselineexecution accuracy (EA)0.841split: val · fine-tunedSQL-to-Schema Enhances Schema Linking in Text-to-SQL
Source quote
L176: RESDSQL │ fine-tuning │ 0.841
2023Q →QPL (Flan-T5-XL; Rich Schema Encoding) proposedExecution accuracy74.7%split: val · fine-tuned · backbone=Flan-T5-XL · difficulty=hard · schema-encoding=richSemantic Decomposition of Question and SQL for Text-to-SQL Parsing
Source quote
L309: 74.7%
2023Q →QPL (Flan-T5-XL; Rich Schema Encoding) proposedExecution accuracy65.1%split: val · fine-tuned · backbone=Flan-T5-XL · difficulty=extra-hard · schema-encoding=richSemantic Decomposition of Question and SQL for Text-to-SQL Parsing
Source quote
L313: 65.1%
2023RESDSQL-3B + NatSQL baselineEX (execution accuracy)84.1split: test · fine-tuned · params=3B · model-size=3BA comprehensive evaluation of ChatGPT's zero-shot Text-to-SQL capability
Source quote
L43: RESDSQL-3B + NatSQL │ 99.1 │ 84.1 │ 73.5 │ 98.8 │ 76.9 │ 66.8 │ 98.4 │ 81.9 │ 70.1
2023RESDSQL-3B + NatSQL (DB content used) baselineexecution accuracy (EX)79.9%split: test · fine-tuned · model=RESDSQL-3B · params=3B · db-content=used · representation=NatSQLDIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
Source quote
L57: 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.
2023Q →SQL (Flan-T5-XL; Rich Schema Encoding) baselineExecution accuracy69.5%split: val · fine-tuned · backbone=Flan-T5-XL · difficulty=hard · schema-encoding=richSemantic Decomposition of Question and SQL for Text-to-SQL Parsing
Source quote
L310: 69.5%
2023Q →SQL (Flan-T5-XL; Rich Schema Encoding) baselineExecution accuracy63.9%split: val · fine-tuned · backbone=Flan-T5-XL · difficulty=extra-hard · schema-encoding=richSemantic Decomposition of Question and SQL for Text-to-SQL Parsing
Source quote
L314: 63.9%
2023RESDSQL+NatSQL (T5-3B) baselineExecution accuracy (EX)84.1split: val · fine-tuned · params=3B · backbone=T5-3B · evaluation=official-test-suiteSelective Demonstrations for Cross-domain Text-to-SQL
Source quote
L285: RESDSQL+NatSQL \cite{li2023resdsql} │ T5-3B │ 84.1
2023RESDSQL-3B baselineExecution accuracy (EX)84.1fine-tuned · params=3B · backbone=RESDSQL-3BPrompting GPT-3.5 for Text-to-SQL with De-semanticization and Skeleton Retrieval
Source quote
L244: \multicolumn{1}{c|}{} │ RESDSQL-3B │ 99.1 │ 84.1 │ 73.5 │ 98.8 │ 76.9 │ 66.8 │ 98.8 │ 66.0
2022T5-3B† + PICARD + Syn data proposedEX (execution accuracy)81.4split: val · fine-tuned · params=3B · backbone=T5-3B · training=synthetic-data pre-finetuning, then real-data finetuning · database-content=included · decoding-constraint=PICARDImportance of Synthesizing High-quality Data for Text-to-SQL Parsing
Source quote
L270: T5-3B^\dagger + PICARD + Syn data (ours) │ 76.1 │ 81.4
2022Codex davinci (davinci-codex) baselineexecution accuracy (EX)67.0%split: val · fine-tuned · prompt=Create Table + Select 3 · database-content=includedEvaluating the Text-to-SQL Capabilities of Large Language Models
Source quote
L126: There is a progressive improvement to 56.8% as schema information is introduced in API Docs, to 59.9% when valid SQL and foreign key information is used in Create Table, and to 67.0% when database content is introduced with Create Table + Select 3.
2022Codex cushman (cushman-codex) baselineexecution accuracy (EX)63.7%split: val · fine-tuned · prompt=+1 Row · database-content=includedEvaluating the Text-to-SQL Capabilities of Large Language Models
Source quote
L331: cushman │ + 1 Row │ 86.3 (85.0) │ 63.7 (54.9) │ 53.0 (39.6)
2022Codex davinci (davinci-codex) baselineexecution accuracy (EX)8.3%split: val · fine-tuned · prompt=question-onlyEvaluating the Text-to-SQL Capabilities of Large Language Models
Source quote
L125: As seen in \Cref{tab:prompts}, providing the question alone results in a low 8.3% execution accuracy.
2022Codex davinci (davinci-codex) baselineexecution accuracy (EX)56.8%split: val · fine-tuned · prompt=API DocsEvaluating the Text-to-SQL Capabilities of Large Language Models
Source quote
L126: There is a progressive improvement to 56.8% as schema information is introduced in API Docs, to 59.9% when valid SQL and foreign key information is used in Create Table, and to 67.0% when database content is introduced with Create Table + Select 3.
2022Codex davinci (davinci-codex) baselineexecution accuracy (EX)59.9%split: val · fine-tuned · prompt=Create TableEvaluating the Text-to-SQL Capabilities of Large Language Models
Source quote
L126: There is a progressive improvement to 56.8% as schema information is introduced in API Docs, to 59.9% when valid SQL and foreign key information is used in Create Table, and to 67.0% when database content is introduced with Create Table + Select 3.