mlsanityData to 14 Oct 2026

Interleaving Pre-Trained Language Models and Large Language Models for Zero-Shot NL2SQL Generation

arXiv 2306.08891 ↗First posted 15 Jun 2023cs.CLcited by 24

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  4. 2020Language Models are Few-Shot Learnerscited by 32,419
  5. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  6. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  7. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  8. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  9. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  10. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
  11. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  12. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
29 more
  1. 2023A Survey of Large Language Modelscited by 2,576
  2. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,181
  3. 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,470
  4. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
  5. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
  6. 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 905
  7. 2021GLaM: Efficient Scaling of Language Models with Mixture-of-Expertscited by 897
  8. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
  9. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
  10. 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 424
  11. 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 411
  12. 2016Deep Reinforcement Learning for Dialogue Generationcited by 288
  13. 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 195
  14. 2019CoSQL: A Conversational Text-to-SQL Challenge Towards Cross-Domain Natural Language Interfaces to Databasescited by 185
  15. 2021Constrained Language Models Yield Few-Shot Semantic Parserscited by 163
  16. 2020Compositional Generalization and Natural Language Variation: Can a Semantic Parsing Approach Handle Both?cited by 147
  17. 2021SimCLS: A Simple Framework for Contrastive Learning of Abstractive Summarizationcited by 132
  18. 2020Structure-Grounded Pretraining for Text-to-SQLcited by 126
  19. 2021LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relationscited by 119
  20. 2023A comprehensive evaluation of ChatGPT's zero-shot Text-to-SQL capabilitycited by 119
  21. 2021KaggleDBQA: Realistic Evaluation of Text-to-SQL Parserscited by 106
  22. 2022Evaluating the Text-to-SQL Capabilities of Large Language Modelscited by 101
  23. 2020SmBoP: Semi-autoregressive Bottom-up Semantic Parsingcited by 97
  24. 2022RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQLcited by 85
  25. 2020Grounded Adaptation for Zero-shot Executable Semantic Parsingcited by 76
  26. 2022Improving In-Context Few-Shot Learning via Self-Supervised Trainingcited by 57
  27. 2023Dr.Spider: A Diagnostic Evaluation Benchmark towards Text-to-SQL Robustnesscited by 53
  28. 2023On Robustness of Prompt-based Semantic Parsing with Large Pre-trained Language Model: An Empirical Study on Codexcited by 41
  29. 2020Bertrand-DR: Improving Text-to-SQL using a Discriminative Re-rankercited by 12

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 3; 2024: 11; 2025: 8; 2026: 2.

24 papers.

Sort:

By area:

  1. 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 187
  2. 2024A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?cited by 56
  3. 2024PURPLE: Making a Large Language Model a Better SQL Writercited by 34
  4. 2023Natural Language Interfaces for Tabular Data Querying and Visualization: A Surveycited by 27
  5. 2024Metasql: A Generate-then-Rank Framework for Natural Language to SQL Translationcited by 17
  6. 2024ERAGent: Enhancing Retrieval-Augmented Language Models with Improved Accuracy, Efficiency, and Personalizationcited by 15
  7. 2024ROUTE: Robust Multitask Tuning and Collaboration for Text-to-SQLcited by 13
  8. 2024TrustUQA: A Trustful Framework for Unified Structured Data Question Answeringcited by 12
  9. 2023SEED: Domain-Specific Data Curation With Large Language Modelscited by 10
  10. 2023DBCopilot: Natural Language Querying over Massive Databases via Schema Routingcited by 10
  11. 2024Grounding Natural Language to SQL Translation with Data-Based Self-Explanationscited by 8
  12. 2024DAC: Decomposed Automation Correction for Text-to-SQLcited by 6
12 more
  1. 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunitiescited by 4
  2. 2024On Linearizing Structured Data in Encoder-Decoder Language Models: Insights from Text-to-SQLcited by 2
  3. 2025Toward Real-World Table Agents: Capabilities, Workflows, and Design Principles for LLM-based Table Intelligencecited by 2
  4. 2024Improving the Capabilities of Large Language Model Based Marketing Analytics Copilots With Semantic Search And Fine-Tuningcited by 1
  5. 2025HES-SQL: Hybrid Reasoning for Efficient Text-to-SQL with Structural Skeleton Guidancecited by 1
  6. 2025ORANGE: An Online Reflection ANd GEneration framework with Domain Knowledge for Text-to-SQLcited by 1
  7. 2025Beyond SELECT: A Comprehensive Taxonomy-Guided Benchmark for Real-World Text-to-SQL Translationcited by 1
  8. 2025PLM4NDV: Minimizing Data Access for Number of Distinct Values Estimation with Pre-trained Language Modelscited by 0
  9. 2025A Multi-agent Text2SQL Framework using Small Language Models and Execution Feedbackcited by 0
  10. 2025Bridging Global Intent with Local Details: A Hierarchical Representation Approach for Semantic Validation in Text-to-SQLcited by 0
  11. 2026When Prompts Become Payloads: A Framework for Mitigating SQL Injection Attacks in Large Language Model-Driven Applicationscited by 0
  12. 2026SafeQL: Search-based Refinement for Safe and Efficient LLM-based Text-to-SQLcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026Optimizing Small Language Models for NL2SQL via Chain-of-Thought Fine-Tuning
  2. 2025SLM-SQL: An Exploration of Small Language Models for Text-to-SQL
  3. 2025Distill-C: Enhanced NL2SQL via Distilled Customization with LLMs
  4. 2025SING-SQL: A Synthetic Data Generation Framework for In-Domain Text-to-SQL Translation
  5. 2024Lucy: Think and Reason to Solve Text-to-SQL
  6. 2025Do LLMs Align with My Task? Evaluating Text-to-SQL via Dataset Alignment
  7. 2025LLMSQL: Upgrading WikiSQL for the LLM Era of Text-to-SQL
  8. 2025SQLForge: Synthesizing Reliable and Diverse Data to Enhance Text-to-SQL Reasoning in LLMs