mlsanityData to 7 Oct 2026

Prompt Tuning for Natural Language to SQL with Embedding Fine-Tuning and RAG

arXiv 2511.08245 ↗First posted 11 Nov 2025cs.CL cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

This paper introduces an Error Correction through Prompt Tuning for NL-to-SQL, leveraging the latest advancements in generative pre-training-based LLMs and RAG. Our work addresses the crucial need for efficient and accurate translation of natural language queries into SQL expressions in various settings with the growing use of natural language interfaces. We explore the evolution of NLIDBs from early rule-based systems to advanced neural network-driven approaches. Drawing inspiration from the medical diagnostic process, we propose a novel framework integrating an error correction mechanism that diagnoses error types, identifies their causes, provides fixing instructions, and applies these corrections to SQL queries. This approach is further enriched by embedding fine-tuning and RAG, which harnesses external knowledge bases for improved accuracy and transparency. Through comprehensive experiments, we demonstrate that our framework achieves a significant 12 percent accuracy improvement over existing baselines, highlighting its potential to revolutionize data access and handling in contemporary data-driven environments.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 24 of its 29 references that are in the map. First posted on arXiv 11 Nov 2025.

Builds on

24 of 29 references.

References · 24

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  5. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  6. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  7. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  8. 2017Billion-scale similarity search with GPUscited by 2,477
  9. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  10. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  11. 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 973
  12. 2023BloombergGPT: A Large Language Model for Financecited by 923
12 more
  1. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
  2. 2014Deep metric learning using Triplet networkcited by 421
  3. 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 420
  4. 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 402
  5. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
  6. 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 191
  7. 2022A Comprehensive Survey of Few-shot Learning: Evolution, Applications, Challenges, and Opportunitiescited by 162
  8. 2020Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic Parsingcited by 133
  9. 2023Text Classification via Large Language Modelscited by 104
  10. 2022Evaluating the Text-to-SQL Capabilities of Large Language Modelscited by 101
  11. 2019A Comprehensive Exploration on WikiSQL with Table-Aware Word Contextualizationcited by 88
  12. 2020Hybrid Ranking Network for Text-to-SQLcited by 33

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024ROUTE: Robust Multitask Tuning and Collaboration for Text-to-SQL
  2. 2024PET-SQL: A Prompt-Enhanced Two-Round Refinement of Text-to-SQL with Cross-consistency
  3. 2024SelECT-SQL: Self-correcting ensemble Chain-of-Thought for Text-to-SQL
  4. 2025Do LLMs Align with My Task? Evaluating Text-to-SQL via Dataset Alignment
  5. 2026Integrating Reasoning and Generalization in Text-to-SQL via Self-Enhanced Fine-Tuning
  6. 2026Memo-SQL: Structured Decomposition and Experience-Driven Self-Correction for Training-Free NL2SQL
  7. 2023How to Prompt LLMs for Text-to-SQL: A Study in Zero-shot, Single-domain, and Cross-domain Settings
  8. 2025SLM-SQL: An Exploration of Small Language Models for Text-to-SQL