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 66 of 66 matching observations.

YearMethodMetricScoreProtocol / FacetsPaper & Evidence
2026Progress-SQL-7B proposedExecution accuracy (EX)86.8%split: test · params=7B · decoding=greedy · difficulty=allProgress-SQL: Improving Reinforcement Learning for Text-to-SQL via Progressive Rewards
Source quote
L1030: 93.8 │ 90.2 │ 82.9 │ 74.2 │ 86.8
2026SGT, DPO iteration 4 (Qwen3-1.7B supplement generator) proposedAccuracy0.825split: test · actor=v3.5-sonnet-v2 · params=1.7B · DPO-iteration=4 · supplement-generator=Qwen3-1.7BSupplement Generation Training for Enhancing Agentic Task Performance
Source quote
L428: \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%
2026R^3-SQL (groupwise Point + List + FMV) proposedEX (execution accuracy)87.19%split: test · params=32B · backbone=Arctic-Text2SQL-R1-32B · candidate-pool=32 · resampled-candidates=1024R$^3$-SQL: Ranking Reward and Resampling for Text-to-SQL
Source quote
L451: \ours │ Groupwise (Point + List) + FMV │ 75.03 │ 87.19 │ 77.92 │ 80.05 │ 46.30 │ 66.82 │ 56.56
2026EvolSQL proposedEX86.1%split: testEvolSQL: Structure-Aware Evolution for Scalable Text-to-SQL Data Synthesis
Source quote
L324: 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.
2026Consispace proposedDice90.56%split: testTowards Voxel Spacing Consistency for Medical Image Segmentation
Source quote
L248: 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.
2026SQL-Zero-7B iter3 (base-init) proposedexecution accuracy79.8%split: test · model=SQL-Zero-7B · params=7B · protocol=self-play spiral · iteration=3 · initialization=baseSQL-Zero: Self-Evolving Text-to-SQL
Source quote
L450: SQL-Zero-7B iter3 (base-init) │ 58.4 │ 79.8 │ 70.4
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
2026ORM-based BoN proposedExecution accuracy87.47%split: test · candidates=32Test-Time Verification for Text-to-SQL via Outcome Reward Models
Source quote
L359: 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
2026SQL component pre-generation + AST matching reward (GRPO; Qwen2.5-Coder-7B-Instruct) proposedEX (execution accuracy)84.4%split: test · params=7BAddressing Semantic Blind Spots in Text-to-SQL via Component Pre-generation and AST Matching Rewards
Source quote
L240: (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
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}.
2025ConstrainedSQL (Ours), Qwen2.5-Coder-7B proposedExecution Accuracy86.7split: test · params=7BConstrainedSQL: Training LLMs for Text2SQL via Constrained Reinforcement Learning
Source quote
L218: ConstrainedSQL (Ours) │ Qwen2.5-Coder-7B │ 85.2 │ 86.7 │ 61.9
2025OpenSearch-SQL + GPT-4o proposedEX87.1%split: test · few-shot · model=GPT-4o-0513OpenSearch-SQL: Enhancing Text-to-SQL with Dynamic Few-shot and Consistency Alignment
Source quote
L422: OpenSearch-SQL+GPT-4o │ 87.1
2025End-to-end Text-to-SQL: Gpt-4o-mini proposedEX92.44split: test · model=GPT-4o-miniEnd-to-End Text-to-SQL with Dataset Selection: Leveraging LLMs for Adaptive Query Generation
Source quote
L304: End-to-end Text-to-SQL: Gpt-4o-mini (ours) │ 92.44 │ 64.78
2025End-to-end Text-to-SQL: Gpt-3.5-turbo proposedEX91.44split: test · model=GPT-3.5-turboEnd-to-End Text-to-SQL with Dataset Selection: Leveraging LLMs for Adaptive Query Generation
Source quote
L305: End-to-end Text-to-SQL: Gpt-3.5-turbo (ours) │ 91.44 │ 60.45
2025db_id Prediction Model (our; hybrid RoBERTa-base) proposed non-standard sliceNDCG0.945split: test · subset=merged train/dev/test · backbone=RoBERTa-baseEnd-to-End Text-to-SQL with Dataset Selection: Leveraging LLMs for Adaptive Query Generation
Source quote
L279: 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
2025db_id Prediction Model (our; hybrid RoBERTa-base) proposed non-standard sliceMAP0.933split: test · subset=merged train/dev/test · backbone=RoBERTa-baseEnd-to-End Text-to-SQL with Dataset Selection: Leveraging LLMs for Adaptive Query Generation
Source quote
L279: 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
2025db_id Prediction Model (our; hybrid RoBERTa-base) proposed non-standard slicePrecision @10.901split: test · subset=merged train/dev/test · backbone=RoBERTa-baseEnd-to-End Text-to-SQL with Dataset Selection: Leveraging LLMs for Adaptive Query Generation
Source quote
L279: 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
2025db_id Prediction Model (our; hybrid RoBERTa-base) proposed non-standard sliceRecall @10.899split: test · subset=merged train/dev/test · backbone=RoBERTa-baseEnd-to-End Text-to-SQL with Dataset Selection: Leveraging LLMs for Adaptive Query Generation
Source quote
L279: 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
2025SPFT-SQL+Qwen2.5 Coder-32B proposedEX89.1split: test · params=32B · backbone=Qwen2.5 Coder-32BSPFT-SQL: Enhancing Large Language Model for Text-to-SQL Parsing by Self-Play Fine-Tuning
Source quote
L604: SPFT-SQL+Qwen2.5 Coder-32B │ 89.1 │ 65.2
2025DCG-SQL proposedRetrieval latency1.3 ssplit: test · params=8B · backbone=Llama-3.1-8B-InstructDCG-SQL: Enhancing In-Context Learning for Text-to-SQL with Deep Contextual Schema Link Graph
Source quote
L890: 1.3
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.
2025MARS-SQL proposedExecution Accuracy89.75%split: test · training-data=BIRD onlyMARS-SQL: A Multi-Agent Reinforcement Learning Framework For Text-To-SQL
Source quote
L180: 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.
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
2025MPS (beam) proposedBrier0.1545split: test · params=3B · outputs=10 · backbone=T5 3B · beam-width=20 · calibration=MPS · output-generation=beam searchCalibrating LLMs for Text-to-SQL Parsing by Leveraging Sub-clause Frequencies
Source quote
L1082: MPS (beam) │ 0.1545 │ 0.0261 │ 0.0355 │ 0.7873
2025MPS (beam) proposedECE0.0261split: test · params=3B · outputs=10 · backbone=T5 3B · beam-width=20 · calibration=MPS · output-generation=beam searchCalibrating LLMs for Text-to-SQL Parsing by Leveraging Sub-clause Frequencies
Source quote
L1082: MPS (beam) │ 0.1545 │ 0.0261 │ 0.0355 │ 0.7873
2025MPS (beam) proposedACE0.0355split: test · params=3B · outputs=10 · backbone=T5 3B · beam-width=20 · calibration=MPS · output-generation=beam searchCalibrating LLMs for Text-to-SQL Parsing by Leveraging Sub-clause Frequencies
Source quote
L1082: MPS (beam) │ 0.1545 │ 0.0261 │ 0.0355 │ 0.7873
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
2025SDE-SQL (SFT) proposedtest(EX)88.5split: test · fine-tuned · training-data=BIRD trainSDE-SQL: Enhancing Text-to-SQL Generation in Large Language Models via Self-Driven Exploration with SQL Probes
Source quote
L197: SDE-SQL (SFT) │ 87.5 │ 88.5
2025GBV-SQL + No Gold Errors proposed non-standard sliceexecution accuracy (EX)97.6%split: test · subset=No Gold ErrorsGBV-SQL: Guided Generation and SQL2Text Back-Translation Validation for Multi-Agent Text2SQL
Source quote
L167: GBV-SQL + No Gold Errors │ 96.5 │ 97.6
2025GBV-SQL + Deepseek-v3 proposedexecution accuracy (EX)82.8%split: test · backbone=Deepseek-v3GBV-SQL: Guided Generation and SQL2Text Back-Translation Validation for Multi-Agent Text2SQL
Source quote
L165: GBV-SQL + Deepseek-v3 (ours) │ 79.6 │ 82.8(\uparrow5.2%)
2025DeepEye-SQL with Qwen3-Coder-30B-A3B proposedexecution accuracy (EX)89.8%split: test · 0-shot · params=30B · backbone=Qwen3-Coder-30B-A3B · fine-tuning=noneDeepEye-SQL: A Software-Engineering-Inspired Text-to-SQL Framework
Source quote
L506: 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.
2025MageSQL proposedEX (%)86.8%split: test · few-shot · backbone=GPT-4MageSQL: Enhancing In-context Learning for Text-to-SQL Applications with Large Language Models
Source quote
L429: \ensuremath{\mathsf{MageSQL}}\xspace │ 69.7 │ 87.4 │ 67.2 │ 86.8
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
2024SPINEPS two-phase approach proposedinstance-wise vertebra Dice score0.929split: testSPINEPS—automatic whole spine segmentation of T2-weighted MR images using a two-phase approach to multi-class semantic and instance segmentation
Source quote
L9: 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.
2024Tool-SQL + GPT-4 proposedExecution Accuracy86.0split: test · few-shot · backbone=GPT-4Tool-Assisted Agent on SQL Inspection and Refinement in Real-World Scenarios
Source quote
L180: Tool-SQL + GPT-4 │ 86.9 │ 85.6 │ 86.0
2024CSMA (TwoPart) proposedExecution accuracy (EX)74.94%split: test · agents=2 · schema-division=two equal table-count partsCooperative SQL Generation for Segmented Databases By Using Multi-functional LLM Agents
Source quote
L158: TwoPart │ 32.40 │ 75.92 │ 33.44 │ 74.94 │ 49.28 │ 20.74
2024SuperSQL proposedExecution accuracy (EX)87%split: testThe Dawn of Natural Language to SQL: Are We Fully Ready? [Experiment, Analysis & Benchmark ]
Source quote
L14: \rev{Remarkably, {\att {SuperSQL}}\xspace achieves competitive performance with execution accuracy of 87% and 62.66% on the Spider and BIRD test sets, respectively.}
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
2024XiYan-SQL proposedEX(%)89.65%split: testXiYan-SQL: A Multi-Generator Ensemble Framework for Text-to-SQL
Source quote
L187: 89.65
2024TiSQL + GPT-4 proposedTest EX86.3%split: test · fine-tuned · model=GPT-4Towards Automated Cross-Domain Exploratory Data Analysis through Large Language Models
Source quote
L625: TiSQL + GPT-4 (ours) │ 86.3
2023Teacher sampling (TF; forward KL) proposedToken acceptance rate (\alpha)0.76split: test · fine-tuned · loss=forward KL · epochs=2 · backbone=Vicuna-7B · sampling=teacher samplingOnline Speculative Decoding
Source quote
L293: \multirow{4}{*}{Vicuna-7B} │ Spider │ 0.28 │ 0.74 │ {\bf 0.76} │ 0.62 │ 0.70
2023Teacher sampling (TF; forward KL) proposedToken acceptance rate (\alpha)0.78split: test · fine-tuned · loss=forward KL · epochs=2 · backbone=FLAN T5-XL · sampling=teacher samplingOnline Speculative Decoding
Source quote
L298: \multirow{4}{*}{FLAN T5-XL} │ Spider │ 0.13 │ 0.33 │ 0.78 │ 0.67 │ 0.70
2023C3 proposedexecution accuracy82.3%split: test · 0-shotC3: Zero-shot Text-to-SQL with ChatGPT
Source quote
L4: 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}
2023DIN-SQL + GPT-4 proposedexecution accuracy85.3%split: test · few-shot · model=GPT-4DIN-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.
2023DIN-SQL + CodeX Davinci proposedexecution accuracy78.2%split: test · few-shot · model=CodeX DavinciDIN-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.
2022TKK-Base proposedEM39.2split: test · fine-tuned · params=Base · subset=Extra hardnessTowards Generalizable and Robust Text-to-SQL Parsing
Source quote
L297: TKK-Base │ 83.9 │ 63.0 │ 47.1 │ 39.2
2022BERTimbau proposedTest Accuracy98.0%split: test · subset=Hospital_1Integrating question answering and text-to-SQL in Portuguese
Source quote
L155: 99.8 % │ 98.0% │ 99.6%
2021RAT-SQL + GAP + NatSQL_G proposedExact match accuracy68.7%split: testNatural SQL: Making SQL Easier to Infer from Natural Language Specifications
Source quote
L464: {\bf RAT-SQL + GAP + NatSQL-\bf G} (Ours)\ \ │ 68.7% │ \bf 73.3%
2021RAT-SQL + GAP + NatSQL_G proposedExecution match accuracy73.3%split: testNatural SQL: Making SQL Easier to Infer from Natural Language Specifications
Source quote
L464: {\bf RAT-SQL + GAP + NatSQL-\bf G} (Ours)\ \ │ 68.7% │ \bf 73.3%
2021EtA + BERT (SLSQL_P parser) proposedEx.Set59.5split: test · backbone=BERTAwakening Latent Grounding from Pretrained Language Models for Semantic Parsing
Source quote
L371: \abr{EtA}\,+\,BERT\xspace │ 64.5 │ 59.5
2021EtA + BERT-large (SLSQL_P parser) proposedEx.Set65.3split: test · backbone=BERT-largeAwakening Latent Grounding from Pretrained Language Models for Semantic Parsing
Source quote
L372: \abr{EtA}\,+\,\text{BERT}_\text{L}\xspace │ 70.8 │ 65.3
2021ShadowGNN + RoBERTa-large proposedexact match accuracy66.1%split: test · backbone=RoBERTa-large · evaluation-setting=cross-domainShadowGNN: Graph Projection Neural Network for Text-to-SQL Parser
Source quote
L219: ShadowGNN + RoBERTa-large │ 72.3% │ 66.1%
2021Ours subset (GraPPa) proposed non-standard sliceExecution accuracy62.0%split: test · pretraining=GraPPa · training-data=Spider subsetSPARQLing Database Queries from Intermediate Question Decompositions
Source quote
L282: 62.0
2021LGESQL (GloVe) proposedexact set match accuracy62.8%split: test · word-vectors=GloVeLGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relations
Source quote
L199: 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.
2021LGESQL + PLM (bert-large-wwm) proposedexact set match accuracy68.3%split: test · backbone=bert-large-wwmLGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relations
Source quote
L199: 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.
2021LGESQL + PLM (electra-large) proposedexact set match accuracy72.0%split: test · backbone=electra-largeLGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relations
Source quote
L199: 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.
2021T5-3B (database content) proposedEM (exact-set-match accuracy)68.0%split: test · 0-shot · params=3B · backbone=T5-3B · beam-size=4 · database-content=enabledPICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Models
Source quote
L310: T5-3B^\dagger │ 71.5 │ 74.4 │ 68.0 │ 70.1
2021T5-3B (database content) proposedEX (execution accuracy)70.1%split: test · 0-shot · params=3B · backbone=T5-3B · beam-size=4 · database-content=enabledPICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Models
Source quote
L310: T5-3B^\dagger │ 71.5 │ 74.4 │ 68.0 │ 70.1
2020CFGNN (ours, full model) proposedExact matching accuracy44.1%split: testCFGNN: Cross Flow Graph Neural Networks for Question Answering on Complex Tables
Source quote
L296: 44.1%
2020BRIDGE_L (ours, ensemble) proposedExact set match67.5%split: test · fine-tuned · backbone=BERT-large · ensemble=3 modelsBridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic Parsing
Source quote
L359: BRIDGE\xspace_{\text{L}} (ours, ensemble) \spadesuit \heartsuit │ 71.1 │ 67.5
2020RAT-SQL with GraPPa (MLM+SSP) proposedset match accuracy69.6split: test · base-parser=RAT-SQL · pretraining=MLM+SSPGraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing
Source quote
L507: \bf{69.6}
2020SQL-SP with DT-Fixup proposedexact match accuracy70.9%split: test · fine-tuned · total-layers=48 · relation-aware-layers=24 · pretrained-RoBERTa-layers=24 · task-specific-pretraining=noneOptimizing Deeper Transformers on Small Datasets
Source quote
L45: 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.
2020SLSQL default proposedExact matching accuracy55.0split: test · schema-linking=manualRe-examining the Role of Schema Linking in Text-to-SQL
Source quote
L178: 55.0 hard ref
2020RAT-SQL + GAP Model proposedaccuracy0.697split: testLearning Contextual Representations for Semantic Parsing with Generation-Augmented Pre-Training
Source quote
L290: +GAP~Model │ 0.872 │ 0.751 │ 0.637 │ 0.412 │ 0.697
2019GNN proposedaccuracy39.4%split: test · 0-shotRepresenting Schema Structure with Graph Neural Networks for Text-to-SQL Parsing
Source quote
L132: 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.
2019Grammar-based model with runtime constraints proposedexact component matching accuracy33.8%split: test · beam-size=10 · database-split=146/20/40 train/dev/test databases · runtime-constraints=enabled · identifier-anonymization=disabled · database-value-generation=disabledGrammar-based Neural Text-to-SQL Generation
Source quote
L18: 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.