Interleaving Pre-Trained Language Models and Large Language Models for Zero-Shot NL2SQL Generation
Not on the map. Why?
Abstract (arXiv)
Zero-shot NL2SQL is crucial in achieving natural language to SQL that is adaptive to new environments (e.g., new databases, new linguistic phenomena or SQL structures) with zero annotated NL2SQL samples from such environments. Existing approaches either fine-tune pre-trained language models (PLMs) based on annotated data or use prompts to guide fixed large language models (LLMs) such as ChatGPT. PLMs can perform well in schema alignment but struggle to achieve complex reasoning, while LLMs is superior in complex reasoning tasks but cannot achieve precise schema alignment. In this paper, we propose a ZeroNL2SQL framework that combines the complementary advantages of PLMs and LLMs for supporting zero-shot NL2SQL. ZeroNL2SQL first uses PLMs to generate an SQL sketch via schema alignment, then uses LLMs to fill the missing information via complex reasoning. Moreover, in order to better align the generated SQL queries with values in the given database instances, we design a predicate calibration method to guide the LLM in completing the SQL sketches based on the database instances and select the optimal SQL query via an execution-based strategy. Comprehensive experiments show that ZeroNL2SQL can achieve the best zero-shot NL2SQL performance on real-world benchmarks. Specifically, ZeroNL2SQL outperforms the state-of-the-art PLM-based methods by 3.2% to 13% and exceeds LLM-based methods by 10% to 20% on execution accuracy.
Key facts. Cited by 24 papers in the map (data through 14 Oct 2026). Builds on 41 of its 52 references that are in the map. First posted on arXiv 15 Jun 2023.
Builds on
41 of 52 references.
References · 41
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
29 more
- 2023A Survey of Large Language Modelscited by 2,576
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,181
- 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,470
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
- 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 905
- 2021GLaM: Efficient Scaling of Language Models with Mixture-of-Expertscited by 897
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
- 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 424
- 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 411
- 2016Deep Reinforcement Learning for Dialogue Generationcited by 288
- 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 195
- 2019CoSQL: A Conversational Text-to-SQL Challenge Towards Cross-Domain Natural Language Interfaces to Databasescited by 185
- 2021Constrained Language Models Yield Few-Shot Semantic Parserscited by 163
- 2020Compositional Generalization and Natural Language Variation: Can a Semantic Parsing Approach Handle Both?cited by 147
- 2021SimCLS: A Simple Framework for Contrastive Learning of Abstractive Summarizationcited by 132
- 2020Structure-Grounded Pretraining for Text-to-SQLcited by 126
- 2021LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relationscited by 119
- 2023A comprehensive evaluation of ChatGPT's zero-shot Text-to-SQL capabilitycited by 119
- 2021KaggleDBQA: Realistic Evaluation of Text-to-SQL Parserscited by 106
- 2022Evaluating the Text-to-SQL Capabilities of Large Language Modelscited by 101
- 2020SmBoP: Semi-autoregressive Bottom-up Semantic Parsingcited by 97
- 2022RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQLcited by 85
- 2020Grounded Adaptation for Zero-shot Executable Semantic Parsingcited by 76
- 2022Improving In-Context Few-Shot Learning via Self-Supervised Trainingcited by 57
- 2023Dr.Spider: A Diagnostic Evaluation Benchmark towards Text-to-SQL Robustnesscited by 53
- 2023On Robustness of Prompt-based Semantic Parsing with Large Pre-trained Language Model: An Empirical Study on Codexcited by 41
- 2020Bertrand-DR: Improving Text-to-SQL using a Discriminative Re-rankercited by 12
Built on by
Citing papers per year: 2023: 3; 2024: 11; 2025: 8; 2026: 2.
24 papers.
Sort:
By area:
- 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 187
- 2024A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?cited by 56
- 2024PURPLE: Making a Large Language Model a Better SQL Writercited by 34
- 2023Natural Language Interfaces for Tabular Data Querying and Visualization: A Surveycited by 27
- 2024Metasql: A Generate-then-Rank Framework for Natural Language to SQL Translationcited by 17
- 2024ERAGent: Enhancing Retrieval-Augmented Language Models with Improved Accuracy, Efficiency, and Personalizationcited by 15
- 2024ROUTE: Robust Multitask Tuning and Collaboration for Text-to-SQLcited by 13
- 2024TrustUQA: A Trustful Framework for Unified Structured Data Question Answeringcited by 12
- 2023SEED: Domain-Specific Data Curation With Large Language Modelscited by 10
- 2023DBCopilot: Natural Language Querying over Massive Databases via Schema Routingcited by 10
- 2024Grounding Natural Language to SQL Translation with Data-Based Self-Explanationscited by 8
- 2024DAC: Decomposed Automation Correction for Text-to-SQLcited by 6
12 more
- 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunitiescited by 4
- 2024On Linearizing Structured Data in Encoder-Decoder Language Models: Insights from Text-to-SQLcited by 2
- 2025Toward Real-World Table Agents: Capabilities, Workflows, and Design Principles for LLM-based Table Intelligencecited by 2
- 2024Improving the Capabilities of Large Language Model Based Marketing Analytics Copilots With Semantic Search And Fine-Tuningcited by 1
- 2025HES-SQL: Hybrid Reasoning for Efficient Text-to-SQL with Structural Skeleton Guidancecited by 1
- 2025ORANGE: An Online Reflection ANd GEneration framework with Domain Knowledge for Text-to-SQLcited by 1
- 2025Beyond SELECT: A Comprehensive Taxonomy-Guided Benchmark for Real-World Text-to-SQL Translationcited by 1
- 2025PLM4NDV: Minimizing Data Access for Number of Distinct Values Estimation with Pre-trained Language Modelscited by 0
- 2025A Multi-agent Text2SQL Framework using Small Language Models and Execution Feedbackcited by 0
- 2025Bridging Global Intent with Local Details: A Hierarchical Representation Approach for Semantic Validation in Text-to-SQLcited by 0
- 2026When Prompts Become Payloads: A Framework for Mitigating SQL Injection Attacks in Large Language Model-Driven Applicationscited by 0
- 2026SafeQL: Search-based Refinement for Safe and Efficient LLM-based Text-to-SQLcited by 0
- 2026SafeQL: Search-based Refinement for Safe and Efficient LLM-based Text-to-SQL10 Aug 2026
- 2026When Prompts Become Payloads: A Framework for Mitigating SQL Injection Attacks in Large Language Model-Driven Applications11 May 2026
- 2025Bridging Global Intent with Local Details: A Hierarchical Representation Approach for Semantic Validation in Text-to-SQL28 Dec 2025
- 2025A Multi-agent Text2SQL Framework using Small Language Models and Execution Feedback21 Dec 2025
- 2025Beyond SELECT: A Comprehensive Taxonomy-Guided Benchmark for Real-World Text-to-SQL Translation17 Nov 2025
- 2025ORANGE: An Online Reflection ANd GEneration framework with Domain Knowledge for Text-to-SQL2 Nov 2025
- 2025HES-SQL: Hybrid Reasoning for Efficient Text-to-SQL with Structural Skeleton Guidance10 Oct 2025
- 2025Toward Real-World Table Agents: Capabilities, Workflows, and Design Principles for LLM-based Table Intelligence14 Jul 2025
- 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunities28 May 2025
- 2025PLM4NDV: Minimizing Data Access for Number of Distinct Values Estimation with Pre-trained Language Models1 Apr 2025
- 2024ROUTE: Robust Multitask Tuning and Collaboration for Text-to-SQL13 Dec 2024
- 2024Grounding Natural Language to SQL Translation with Data-Based Self-Explanations5 Nov 2024
12 more
- 2024DAC: Decomposed Automation Correction for Text-to-SQL16 Aug 2024
- 2024A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?9 Aug 2024
- 2024TrustUQA: A Trustful Framework for Unified Structured Data Question Answering27 Jun 2024
- 2024ERAGent: Enhancing Retrieval-Augmented Language Models with Improved Accuracy, Efficiency, and Personalization6 May 2024
- 2024Improving the Capabilities of Large Language Model Based Marketing Analytics Copilots With Semantic Search And Fine-Tuning16 Apr 2024
- 2024On Linearizing Structured Data in Encoder-Decoder Language Models: Insights from Text-to-SQL3 Apr 2024
- 2024PURPLE: Making a Large Language Model a Better SQL Writer29 Mar 2024
- 2024Metasql: A Generate-then-Rank Framework for Natural Language to SQL Translation27 Feb 2024
- 2024CodeS: Towards Building Open-source Language Models for Text-to-SQL26 Feb 2024
- 2023DBCopilot: Natural Language Querying over Massive Databases via Schema Routing6 Dec 2023
- 2023Natural Language Interfaces for Tabular Data Querying and Visualization: A Survey27 Oct 2023
- 2023SEED: Domain-Specific Data Curation With Large Language Models1 Oct 2023
- 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 187
- 2024A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?cited by 56
- 2024PURPLE: Making a Large Language Model a Better SQL Writercited by 34
- 2023Natural Language Interfaces for Tabular Data Querying and Visualization: A Surveycited by 27
- 2024Metasql: A Generate-then-Rank Framework for Natural Language to SQL Translationcited by 17
- 2024ROUTE: Robust Multitask Tuning and Collaboration for Text-to-SQLcited by 13
- 2024TrustUQA: A Trustful Framework for Unified Structured Data Question Answeringcited by 12
- 2023SEED: Domain-Specific Data Curation With Large Language Modelscited by 10
- 2023DBCopilot: Natural Language Querying over Massive Databases via Schema Routingcited by 10
- 2024Grounding Natural Language to SQL Translation with Data-Based Self-Explanationscited by 8
- 2024DAC: Decomposed Automation Correction for Text-to-SQLcited by 6
- 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunitiescited by 4
12 most cited of 19 All 19 (JSON)
- 2026SafeQL: Search-based Refinement for Safe and Efficient LLM-based Text-to-SQL10 Aug 2026
- 2025Bridging Global Intent with Local Details: A Hierarchical Representation Approach for Semantic Validation in Text-to-SQL28 Dec 2025
- 2025Beyond SELECT: A Comprehensive Taxonomy-Guided Benchmark for Real-World Text-to-SQL Translation17 Nov 2025
- 2025ORANGE: An Online Reflection ANd GEneration framework with Domain Knowledge for Text-to-SQL2 Nov 2025
- 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunities28 May 2025
- 2025PLM4NDV: Minimizing Data Access for Number of Distinct Values Estimation with Pre-trained Language Models1 Apr 2025
- 2024ROUTE: Robust Multitask Tuning and Collaboration for Text-to-SQL13 Dec 2024
- 2024Grounding Natural Language to SQL Translation with Data-Based Self-Explanations5 Nov 2024
- 2024DAC: Decomposed Automation Correction for Text-to-SQL16 Aug 2024
- 2024A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?9 Aug 2024
- 2024TrustUQA: A Trustful Framework for Unified Structured Data Question Answering27 Jun 2024
- 2024Improving the Capabilities of Large Language Model Based Marketing Analytics Copilots With Semantic Search And Fine-Tuning16 Apr 2024
12 newest of 19 All 19 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2026Optimizing Small Language Models for NL2SQL via Chain-of-Thought Fine-Tuning
- 2025SLM-SQL: An Exploration of Small Language Models for Text-to-SQL
- 2025Distill-C: Enhanced NL2SQL via Distilled Customization with LLMs
- 2025SING-SQL: A Synthetic Data Generation Framework for In-Domain Text-to-SQL Translation
- 2024Lucy: Think and Reason to Solve Text-to-SQL
- 2025Do LLMs Align with My Task? Evaluating Text-to-SQL via Dataset Alignment
- 2025LLMSQL: Upgrading WikiSQL for the LLM Era of Text-to-SQL
- 2025SQLForge: Synthesizing Reliable and Diverse Data to Enhance Text-to-SQL Reasoning in LLMs