mlsanityData to 7 Oct 2026

Enhancing Text-to-SQL Capabilities of Large Language Models via Domain Database Knowledge Injection

arXiv 2409.15907 ↗First posted 24 Sep 2024cs.CL cs.AIcited by 2

Not on the map. Why?

Abstract (arXiv)

Text-to-SQL is a subtask in semantic parsing that has seen rapid progress with the evolution of Large Language Models (LLMs). However, LLMs face challenges due to hallucination issues and a lack of domain-specific database knowledge(such as table schema and cell values). As a result, they can make errors in generating table names, columns, and matching values to the correct columns in SQL statements. This paper introduces a method of knowledge injection to enhance LLMs' ability to understand schema contents by incorporating prior knowledge. This approach improves their performance in Text-to-SQL tasks. Experimental results show that pre-training LLMs on domain-specific database knowledge and fine-tuning them on downstream Text-to-SQL tasks significantly improves the Execution Match (EX) and Exact Match (EM) metrics across various models. This effectively reduces errors in generating column names and matching values to the columns. Furthermore, the knowledge-injected models can be applied to many downstream Text-to-SQL tasks, demonstrating the generalizability of the approach presented in this paper.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 33 of its 35 references that are in the map. First posted on arXiv 24 Sep 2024.

Builds on

33 of 35 references.

References · 33

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  4. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
  5. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  6. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  7. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  8. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
  9. 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 684
  10. 2023Baichuan 2: Open Large-scale Language Modelscited by 664
  11. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
  12. 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 420
21 more
  1. 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 402
  2. 2020TaBERT: Pretraining for Joint Understanding of Textual and Tabular Datacited by 395
  3. 2022UnifiedSKG: Unifying and Multi-Tasking Structured Knowledge Grounding with Text-to-Text Language Modelscited by 231
  4. 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 210
  5. 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 191
  6. 2020GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsingcited by 171
  7. 2020Compositional Generalization and Natural Language Variation: Can a Semantic Parsing Approach Handle Both?cited by 147
  8. 2020Structure-Grounded Pretraining for Text-to-SQLcited by 126
  9. 2021LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relationscited by 119
  10. 2023A comprehensive evaluation of ChatGPT's zero-shot Text-to-SQL capabilitycited by 118
  11. 2021Large-Scale Differentially Private BERTcited by 117
  12. 2021Towards Robustness of Text-to-SQL Models against Synonym Substitutioncited by 110
  13. 2022RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQLcited by 85
  14. 2019Representing Schema Structure with Graph Neural Networks for Text-to-SQL Parsingcited by 74
  15. 2020Learning Contextual Representations for Semantic Parsing with Generation-Augmented Pre-Trainingcited by 65
  16. 2021Selective Differential Privacy for Language Modelingcited by 61
  17. 2023Improving Generalization in Language Model-Based Text-to-SQL Semantic Parsing: Two Simple Semantic Boundary-Based Techniquescited by 23
  18. 2021CAPE: Context-Aware Private Embeddings for Private Language Learningcited by 22
  19. 2023Impact of Co-occurrence on Factual Knowledge of Large Language Modelscited by 19
  20. 2021LET: Linguistic Knowledge Enhanced Graph Transformer for Chinese Short Text Matchingcited by 15
  21. 2021Relation Aware Semi-autoregressive Semantic Parsing for NL2SQLcited by 8

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.